maplestory-openapi 3.7.0 → 3.8.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/dist/cjs/index.js +5 -0
- package/dist/cjs/maplestory/api/common/dto/character/characterItemEquipment.js +3 -0
- package/dist/cjs/maplestory/api/common/dto/union/unionChampion.js +14 -0
- package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +2 -1
- package/dist/cjs/maplestory/api/kms/dto/union/unionChampion.js +8 -3
- package/dist/cjs/maplestory/api/msea/dto/character/characterAndroidEquipment.js +36 -3
- package/dist/cjs/maplestory/api/msea/dto/character/characterBasic.js +4 -10
- package/dist/cjs/maplestory/api/msea/dto/character/characterBeautyEquipment.js +24 -2
- package/dist/cjs/maplestory/api/msea/dto/character/characterCashItemEquipment.js +17 -1
- package/dist/cjs/maplestory/api/msea/dto/character/characterItemEquipment.js +100 -5
- package/dist/cjs/maplestory/api/msea/dto/union/unionChampion.js +82 -0
- package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +32 -0
- package/dist/cjs/maplestory/api/msea/msea.js +5 -0
- package/dist/cjs/maplestory/api/tms/dto/character/characterAndroidEquipment.js +36 -3
- package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +1 -1
- package/dist/cjs/maplestory/api/tms/dto/character/characterBeautyEquipment.js +24 -2
- package/dist/cjs/maplestory/api/tms/dto/character/characterCashItemEquipment.js +12 -1
- package/dist/cjs/maplestory/api/tms/dto/character/characterItemEquipment.js +84 -4
- package/dist/cjs/maplestory/api/tms/dto/union/unionChampion.js +79 -0
- package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +32 -0
- package/dist/cjs/maplestory/api/tms/tms.js +5 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/maplestory/api/common/dto/character/characterItemEquipment.js +3 -1
- package/dist/esm/maplestory/api/common/dto/union/unionChampion.js +8 -0
- package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +3 -2
- package/dist/esm/maplestory/api/kms/dto/union/unionChampion.js +8 -3
- package/dist/esm/maplestory/api/msea/dto/character/characterAndroidEquipment.js +36 -3
- package/dist/esm/maplestory/api/msea/dto/character/characterBasic.js +4 -10
- package/dist/esm/maplestory/api/msea/dto/character/characterBeautyEquipment.js +24 -2
- package/dist/esm/maplestory/api/msea/dto/character/characterCashItemEquipment.js +17 -1
- package/dist/esm/maplestory/api/msea/dto/character/characterItemEquipment.js +101 -7
- package/dist/esm/maplestory/api/msea/dto/union/unionChampion.js +76 -0
- package/dist/esm/maplestory/api/msea/mapleStoryApi.js +32 -0
- package/dist/esm/maplestory/api/msea/msea.js +2 -1
- package/dist/esm/maplestory/api/tms/dto/character/characterAndroidEquipment.js +36 -3
- package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +1 -1
- package/dist/esm/maplestory/api/tms/dto/character/characterBeautyEquipment.js +24 -2
- package/dist/esm/maplestory/api/tms/dto/character/characterCashItemEquipment.js +12 -1
- package/dist/esm/maplestory/api/tms/dto/character/characterItemEquipment.js +85 -6
- package/dist/esm/maplestory/api/tms/dto/union/unionChampion.js +73 -0
- package/dist/esm/maplestory/api/tms/mapleStoryApi.js +32 -0
- package/dist/esm/maplestory/api/tms/tms.js +2 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +1 -0
- package/types/maplestory/api/common/dto/character/characterAndroidEquipment.d.ts +3 -0
- package/types/maplestory/api/common/dto/character/characterBasic.d.ts +1 -0
- package/types/maplestory/api/common/dto/character/characterBeautyEquipment.d.ts +2 -0
- package/types/maplestory/api/common/dto/character/characterCashItemEquipment.d.ts +2 -0
- package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +15 -0
- package/types/maplestory/api/common/dto/union/unionChampion.d.ts +15 -0
- package/types/maplestory/api/common/mapleStoryApi.d.ts +2 -0
- package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +1 -1
- package/types/maplestory/api/kms/dto/union/unionChampion.d.ts +4 -3
- package/types/maplestory/api/msea/dto/character/characterAndroidEquipment.d.ts +24 -0
- package/types/maplestory/api/msea/dto/character/characterBasic.d.ts +2 -6
- package/types/maplestory/api/msea/dto/character/characterBeautyEquipment.d.ts +16 -0
- package/types/maplestory/api/msea/dto/character/characterCashItemEquipment.d.ts +12 -0
- package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +71 -1
- package/types/maplestory/api/msea/dto/union/unionChampion.d.ts +56 -0
- package/types/maplestory/api/msea/index.d.ts +1 -0
- package/types/maplestory/api/msea/mapleStoryApi.d.ts +12 -0
- package/types/maplestory/api/msea/response/character/characterAndroidEquipmentBody.d.ts +3 -0
- package/types/maplestory/api/msea/response/character/characterBasicBody.d.ts +1 -1
- package/types/maplestory/api/msea/response/character/characterBeautyEquipmentBody.d.ts +2 -0
- package/types/maplestory/api/msea/response/character/characterCashItemEquipmentBody.d.ts +2 -0
- package/types/maplestory/api/msea/response/character/characterItemEquipmentBody.d.ts +14 -0
- package/types/maplestory/api/msea/response/union/unionChampionBody.d.ts +15 -0
- package/types/maplestory/api/tms/dto/character/characterAndroidEquipment.d.ts +24 -0
- package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterBeautyEquipment.d.ts +16 -0
- package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +8 -0
- package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +59 -1
- package/types/maplestory/api/tms/dto/union/unionChampion.d.ts +53 -0
- 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/characterAndroidEquipmentBody.d.ts +3 -0
- package/types/maplestory/api/tms/response/character/characterBeautyEquipmentBody.d.ts +2 -0
- package/types/maplestory/api/tms/response/character/characterCashItemEquipmentBody.d.ts +1 -0
- package/types/maplestory/api/tms/response/character/characterItemEquipmentBody.d.ts +11 -0
- package/types/maplestory/api/tms/response/union/unionChampionBody.d.ts +15 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CharacterItemEquipmentDto as CharacterItemEquipmentDto$1, CharacterItemEquipmentTitleDto as CharacterItemEquipmentTitleDto$1, CharacterItemEquipmentAddOptionDto as CharacterItemEquipmentAddOptionDto$1, CharacterItemEquipmentBaseOptionDto as CharacterItemEquipmentBaseOptionDto$1, CharacterItemEquipmentEtcOptionDto as CharacterItemEquipmentEtcOptionDto$1, CharacterItemEquipmentExceptionalOptionDto as CharacterItemEquipmentExceptionalOptionDto$1, CharacterItemEquipmentStarforceOptionDto as CharacterItemEquipmentStarforceOptionDto$1, CharacterItemEquipmentTotalOptionDto as CharacterItemEquipmentTotalOptionDto$1, CharacterItemEquipmentDragonInfoDto as CharacterItemEquipmentDragonInfoDto$1, CharacterItemEquipmentMechanicInfoDto as CharacterItemEquipmentMechanicInfoDto$1, CharacterItemEquipmentInfoDto as CharacterItemEquipmentInfoDto$1 } from '../../../common/dto/character/characterItemEquipment.js';
|
|
1
|
+
import { CharacterItemEquipmentDto as CharacterItemEquipmentDto$1, CharacterItemEquipmentTitleDto as CharacterItemEquipmentTitleDto$1, CharacterItemEquipmentMedalShapeDto as CharacterItemEquipmentMedalShapeDto$1, CharacterItemEquipmentAddOptionDto as CharacterItemEquipmentAddOptionDto$1, CharacterItemEquipmentBaseOptionDto as CharacterItemEquipmentBaseOptionDto$1, CharacterItemEquipmentEtcOptionDto as CharacterItemEquipmentEtcOptionDto$1, CharacterItemEquipmentExceptionalOptionDto as CharacterItemEquipmentExceptionalOptionDto$1, CharacterItemEquipmentStarforceOptionDto as CharacterItemEquipmentStarforceOptionDto$1, CharacterItemEquipmentTotalOptionDto as CharacterItemEquipmentTotalOptionDto$1, CharacterItemEquipmentDragonInfoDto as CharacterItemEquipmentDragonInfoDto$1, CharacterItemEquipmentMechanicInfoDto as CharacterItemEquipmentMechanicInfoDto$1, CharacterItemEquipmentInfoDto as CharacterItemEquipmentInfoDto$1 } from '../../../common/dto/character/characterItemEquipment.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 캐릭터 장비 아이템 정보
|
|
@@ -146,7 +146,7 @@ class CharacterItemEquipmentTitleDto extends CharacterItemEquipmentTitleDto$1 {
|
|
|
146
146
|
/**
|
|
147
147
|
* 캐릭터 외형 설정에 등록한 훈장 외형 정보
|
|
148
148
|
*/
|
|
149
|
-
class CharacterItemEquipmentMedalShapeDto {
|
|
149
|
+
class CharacterItemEquipmentMedalShapeDto extends CharacterItemEquipmentMedalShapeDto$1 {
|
|
150
150
|
/**
|
|
151
151
|
* 외형 설정에 등록한 훈장 장비 명
|
|
152
152
|
*/
|
|
@@ -172,6 +172,7 @@ class CharacterItemEquipmentMedalShapeDto {
|
|
|
172
172
|
*/
|
|
173
173
|
medalShapeChangedDescription;
|
|
174
174
|
constructor(obj) {
|
|
175
|
+
super();
|
|
175
176
|
const { medal_shape_name, medal_shape_icon, medal_shape_description, medal_shape_changed_name, medal_shape_changed_icon, medal_shape_changed_description, } = obj;
|
|
176
177
|
this.medalShapeName = medal_shape_name;
|
|
177
178
|
this.medalShapeIcon = medal_shape_icon;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { UnionChampionDto as UnionChampionDto$1, UnionChampionBadgeInfoDto as UnionChampionBadgeInfoDto$1, UnionChampionInfoDto as UnionChampionInfoDto$1 } from '../../../common/dto/union/unionChampion.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 유니온 챔피언 정보
|
|
3
5
|
*/
|
|
4
|
-
class UnionChampionDto {
|
|
6
|
+
class UnionChampionDto extends UnionChampionDto$1 {
|
|
5
7
|
/**
|
|
6
8
|
* 조회 기준일 (KST, 일 단위 데이터로 시, 분은 일괄 0으로 표기)
|
|
7
9
|
*/
|
|
@@ -15,6 +17,7 @@ class UnionChampionDto {
|
|
|
15
17
|
*/
|
|
16
18
|
championBadgeTotalInfo;
|
|
17
19
|
constructor(obj) {
|
|
20
|
+
super();
|
|
18
21
|
const { date, union_champion, champion_badge_total_info } = obj;
|
|
19
22
|
this.date = date ? new Date(date) : null;
|
|
20
23
|
this.unionChampion = union_champion.map((info) => new UnionChampionInfoDto(info));
|
|
@@ -24,12 +27,13 @@ class UnionChampionDto {
|
|
|
24
27
|
/**
|
|
25
28
|
* 유니온 챔피언 휘장 정보
|
|
26
29
|
*/
|
|
27
|
-
class UnionChampionBadgeInfoDto {
|
|
30
|
+
class UnionChampionBadgeInfoDto extends UnionChampionBadgeInfoDto$1 {
|
|
28
31
|
/**
|
|
29
32
|
* 유니온 챔피언 휘장 효과
|
|
30
33
|
*/
|
|
31
34
|
stat;
|
|
32
35
|
constructor(obj) {
|
|
36
|
+
super();
|
|
33
37
|
const { stat } = obj;
|
|
34
38
|
this.stat = stat;
|
|
35
39
|
}
|
|
@@ -37,7 +41,7 @@ class UnionChampionBadgeInfoDto {
|
|
|
37
41
|
/**
|
|
38
42
|
* 유니온 챔피언 상세 정보
|
|
39
43
|
*/
|
|
40
|
-
class UnionChampionInfoDto {
|
|
44
|
+
class UnionChampionInfoDto extends UnionChampionInfoDto$1 {
|
|
41
45
|
/**
|
|
42
46
|
* 유니온 챔피언 캐릭터 명
|
|
43
47
|
*/
|
|
@@ -59,6 +63,7 @@ class UnionChampionInfoDto {
|
|
|
59
63
|
*/
|
|
60
64
|
championBadgeInfo;
|
|
61
65
|
constructor(obj) {
|
|
66
|
+
super();
|
|
62
67
|
const { champion_name, champion_slot, champion_grade, champion_class, champion_badge_info, } = obj;
|
|
63
68
|
this.championName = champion_name;
|
|
64
69
|
this.championSlot = champion_slot;
|
|
@@ -131,13 +131,24 @@ class CharacterAndroidEquipmentFaceDto extends CharacterAndroidEquipmentFaceDto$
|
|
|
131
131
|
* Dye ratio for Android mixed face color
|
|
132
132
|
*/
|
|
133
133
|
mixRate;
|
|
134
|
+
/**
|
|
135
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
136
|
+
*/
|
|
137
|
+
freestyleFlag;
|
|
134
138
|
constructor(obj) {
|
|
135
139
|
super();
|
|
136
|
-
const { face_name, base_color, mix_color, mix_rate } = obj;
|
|
140
|
+
const { face_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
|
|
137
141
|
this.faceName = face_name;
|
|
138
142
|
this.baseColor = base_color;
|
|
139
143
|
this.mixColor = mix_color;
|
|
140
144
|
this.mixRate = mix_rate;
|
|
145
|
+
this.freestyleFlag = freestyle_flag;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Freestyle Coupon application status
|
|
149
|
+
*/
|
|
150
|
+
get isFreestyleFlag() {
|
|
151
|
+
return this.freestyleFlag === '1';
|
|
141
152
|
}
|
|
142
153
|
}
|
|
143
154
|
/**
|
|
@@ -160,13 +171,24 @@ class CharacterAndroidEquipmentHairDto extends CharacterAndroidEquipmentHairDto$
|
|
|
160
171
|
* Dye ratio for Android mixed hair color
|
|
161
172
|
*/
|
|
162
173
|
mixRate;
|
|
174
|
+
/**
|
|
175
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
176
|
+
*/
|
|
177
|
+
freestyleFlag;
|
|
163
178
|
constructor(obj) {
|
|
164
179
|
super();
|
|
165
|
-
const { hair_name, base_color, mix_color, mix_rate } = obj;
|
|
180
|
+
const { hair_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
|
|
166
181
|
this.hairName = hair_name;
|
|
167
182
|
this.baseColor = base_color;
|
|
168
183
|
this.mixColor = mix_color;
|
|
169
184
|
this.mixRate = mix_rate;
|
|
185
|
+
this.freestyleFlag = freestyle_flag;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Freestyle Coupon application status
|
|
189
|
+
*/
|
|
190
|
+
get isFreestyleFlag() {
|
|
191
|
+
return this.freestyleFlag === '1';
|
|
170
192
|
}
|
|
171
193
|
}
|
|
172
194
|
/**
|
|
@@ -379,9 +401,13 @@ class CharacterAndroidCashItemEquipmentDto extends CharacterAndroidCashItemEquip
|
|
|
379
401
|
* Gender compatibility for item equipment
|
|
380
402
|
*/
|
|
381
403
|
androidItemGender;
|
|
404
|
+
/**
|
|
405
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
406
|
+
*/
|
|
407
|
+
freestyleFlag;
|
|
382
408
|
constructor(obj) {
|
|
383
409
|
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, android_item_gender, } = obj;
|
|
410
|
+
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;
|
|
385
411
|
this.cashItemEquipmentPart = cash_item_equipment_part;
|
|
386
412
|
this.cashItemEquipmentSlot = cash_item_equipment_slot;
|
|
387
413
|
this.cashItemName = cash_item_name;
|
|
@@ -393,6 +419,7 @@ class CharacterAndroidCashItemEquipmentDto extends CharacterAndroidCashItemEquip
|
|
|
393
419
|
? new CharacterAndroidCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
|
|
394
420
|
: null;
|
|
395
421
|
this.androidItemGender = android_item_gender;
|
|
422
|
+
this.freestyleFlag = freestyle_flag;
|
|
396
423
|
if (date_expire === 'expired') {
|
|
397
424
|
this.isExpired = true;
|
|
398
425
|
}
|
|
@@ -408,6 +435,12 @@ class CharacterAndroidCashItemEquipmentDto extends CharacterAndroidCashItemEquip
|
|
|
408
435
|
: null;
|
|
409
436
|
}
|
|
410
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Freestyle Coupon application status
|
|
440
|
+
*/
|
|
441
|
+
get isFreestyleFlag() {
|
|
442
|
+
return this.freestyleFlag === '1';
|
|
443
|
+
}
|
|
411
444
|
}
|
|
412
445
|
|
|
413
446
|
export { CharacterAndroidCashItemEquipmentColoringPrismDto, CharacterAndroidCashItemEquipmentDto, CharacterAndroidCashItemEquipmentOptionDto, CharacterAndroidEquipmentDto, CharacterAndroidEquipmentFaceDto, CharacterAndroidEquipmentHairDto, CharacterAndroidEquipmentPresetDto, CharacterAndroidEquipmentSkinDto };
|
|
@@ -58,12 +58,12 @@ class CharacterBasicDto extends CharacterBasicDto$1 {
|
|
|
58
58
|
*/
|
|
59
59
|
accessFlag;
|
|
60
60
|
/**
|
|
61
|
-
* Liberation
|
|
61
|
+
* Liberation Quest completion status (0:not completed, 1:Genesis Weapon liberated, 2:Destiny Weapon Phase 1 liberated)
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
liberationQuestClear;
|
|
64
64
|
constructor(obj) {
|
|
65
65
|
super();
|
|
66
|
-
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,
|
|
66
|
+
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;
|
|
67
67
|
this.date = date ? new Date(date) : null;
|
|
68
68
|
this.characterName = character_name;
|
|
69
69
|
this.worldName = world_name;
|
|
@@ -77,7 +77,7 @@ class CharacterBasicDto extends CharacterBasicDto$1 {
|
|
|
77
77
|
this.characterImage = removeQuery(character_image);
|
|
78
78
|
this.characterDateCreate = character_date_create ? new Date(character_date_create) : null;
|
|
79
79
|
this.accessFlag = access_flag;
|
|
80
|
-
this.
|
|
80
|
+
this.liberationQuestClear = liberation_quest_clear;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Login status in the past 7 days
|
|
@@ -85,12 +85,6 @@ class CharacterBasicDto extends CharacterBasicDto$1 {
|
|
|
85
85
|
get isAccessFlag() {
|
|
86
86
|
return super.isAccessFlag;
|
|
87
87
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Liberation quest completion status
|
|
90
|
-
*/
|
|
91
|
-
get isLiberationQuestClearFlag() {
|
|
92
|
-
return this.liberationQuestClearFlag === 'true';
|
|
93
|
-
}
|
|
94
88
|
}
|
|
95
89
|
|
|
96
90
|
export { CharacterBasicDto };
|
|
@@ -89,13 +89,24 @@ class CharacterBeautyEquipmentFaceDto extends CharacterBeautyEquipmentFaceDto$1
|
|
|
89
89
|
* Dye ratio for mixed face color
|
|
90
90
|
*/
|
|
91
91
|
mixRate;
|
|
92
|
+
/**
|
|
93
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
94
|
+
*/
|
|
95
|
+
freestyleFlag;
|
|
92
96
|
constructor(obj) {
|
|
93
97
|
super();
|
|
94
|
-
const { face_name, base_color, mix_color, mix_rate } = obj;
|
|
98
|
+
const { face_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
|
|
95
99
|
this.faceName = face_name;
|
|
96
100
|
this.baseColor = base_color;
|
|
97
101
|
this.mixColor = mix_color;
|
|
98
102
|
this.mixRate = mix_rate;
|
|
103
|
+
this.freestyleFlag = freestyle_flag;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Freestyle Coupon application status
|
|
107
|
+
*/
|
|
108
|
+
get isFreestyleFlag() {
|
|
109
|
+
return this.freestyleFlag === '1';
|
|
99
110
|
}
|
|
100
111
|
}
|
|
101
112
|
/**
|
|
@@ -118,13 +129,24 @@ class CharacterBeautyEquipmentHairDto extends CharacterBeautyEquipmentHairDto$1
|
|
|
118
129
|
* Dye ratio for mixed hair color
|
|
119
130
|
*/
|
|
120
131
|
mixRate;
|
|
132
|
+
/**
|
|
133
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
134
|
+
*/
|
|
135
|
+
freestyleFlag;
|
|
121
136
|
constructor(obj) {
|
|
122
137
|
super();
|
|
123
|
-
const { hair_name, base_color, mix_color, mix_rate } = obj;
|
|
138
|
+
const { hair_name, base_color, mix_color, mix_rate, freestyle_flag } = obj;
|
|
124
139
|
this.hairName = hair_name;
|
|
125
140
|
this.baseColor = base_color;
|
|
126
141
|
this.mixColor = mix_color;
|
|
127
142
|
this.mixRate = mix_rate;
|
|
143
|
+
this.freestyleFlag = freestyle_flag;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Freestyle Coupon application status
|
|
147
|
+
*/
|
|
148
|
+
get isFreestyleFlag() {
|
|
149
|
+
return this.freestyleFlag === '1';
|
|
128
150
|
}
|
|
129
151
|
}
|
|
130
152
|
/**
|
|
@@ -182,9 +182,17 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
182
182
|
* Gender compatibility for item equipment
|
|
183
183
|
*/
|
|
184
184
|
itemGender;
|
|
185
|
+
/**
|
|
186
|
+
* Skill name
|
|
187
|
+
*/
|
|
188
|
+
skills;
|
|
189
|
+
/**
|
|
190
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
191
|
+
*/
|
|
192
|
+
freestyleFlag;
|
|
185
193
|
constructor(obj) {
|
|
186
194
|
super();
|
|
187
|
-
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, } = obj;
|
|
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, freestyle_flag, } = obj;
|
|
188
196
|
this.cashItemEquipmentPart = cash_item_equipment_part;
|
|
189
197
|
this.cashItemEquipmentSlot = cash_item_equipment_slot;
|
|
190
198
|
this.cashItemName = cash_item_name;
|
|
@@ -196,6 +204,8 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
196
204
|
? new CharacterCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
|
|
197
205
|
: null;
|
|
198
206
|
this.itemGender = item_gender;
|
|
207
|
+
this.skills = skills;
|
|
208
|
+
this.freestyleFlag = freestyle_flag;
|
|
199
209
|
if (date_expire === 'expired') {
|
|
200
210
|
this.isExpired = true;
|
|
201
211
|
}
|
|
@@ -211,6 +221,12 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
211
221
|
: null;
|
|
212
222
|
}
|
|
213
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Freestyle Coupon application status
|
|
226
|
+
*/
|
|
227
|
+
get isFreestyleFlag() {
|
|
228
|
+
return this.freestyleFlag === '1';
|
|
229
|
+
}
|
|
214
230
|
}
|
|
215
231
|
|
|
216
232
|
export { CharacterCashItemEquipmentColoringPrismDto, CharacterCashItemEquipmentDto, CharacterCashItemEquipmentOptionDto, CharacterCashItemEquipmentPresetDto };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CharacterItemEquipmentDto as CharacterItemEquipmentDto$1, CharacterItemEquipmentTitleDto as CharacterItemEquipmentTitleDto$1, CharacterItemEquipmentAddOptionDto as CharacterItemEquipmentAddOptionDto$1, CharacterItemEquipmentBaseOptionDto as CharacterItemEquipmentBaseOptionDto$1, CharacterItemEquipmentEtcOptionDto as CharacterItemEquipmentEtcOptionDto$1, CharacterItemEquipmentExceptionalOptionDto as CharacterItemEquipmentExceptionalOptionDto$1, CharacterItemEquipmentStarforceOptionDto as CharacterItemEquipmentStarforceOptionDto$1, CharacterItemEquipmentTotalOptionDto as CharacterItemEquipmentTotalOptionDto$1, CharacterItemEquipmentDragonInfoDto as CharacterItemEquipmentDragonInfoDto$1, CharacterItemEquipmentMechanicInfoDto as CharacterItemEquipmentMechanicInfoDto$1, CharacterItemEquipmentInfoDto as CharacterItemEquipmentInfoDto$1 } from '../../../common/dto/character/characterItemEquipment.js';
|
|
1
|
+
import { CharacterItemEquipmentDto as CharacterItemEquipmentDto$1, CharacterItemEquipmentTitleDto as CharacterItemEquipmentTitleDto$1, CharacterItemEquipmentMedalShapeDto as CharacterItemEquipmentMedalShapeDto$1, CharacterItemEquipmentAddOptionDto as CharacterItemEquipmentAddOptionDto$1, CharacterItemEquipmentBaseOptionDto as CharacterItemEquipmentBaseOptionDto$1, CharacterItemEquipmentEtcOptionDto as CharacterItemEquipmentEtcOptionDto$1, CharacterItemEquipmentExceptionalOptionDto as CharacterItemEquipmentExceptionalOptionDto$1, CharacterItemEquipmentStarforceOptionDto as CharacterItemEquipmentStarforceOptionDto$1, CharacterItemEquipmentTotalOptionDto as CharacterItemEquipmentTotalOptionDto$1, CharacterItemEquipmentDragonInfoDto as CharacterItemEquipmentDragonInfoDto$1, CharacterItemEquipmentMechanicInfoDto as CharacterItemEquipmentMechanicInfoDto$1, CharacterItemEquipmentInfoDto as CharacterItemEquipmentInfoDto$1 } from '../../../common/dto/character/characterItemEquipment.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Character equipped equipment information
|
|
@@ -40,6 +40,10 @@ class CharacterItemEquipmentDto extends CharacterItemEquipmentDto$1 {
|
|
|
40
40
|
* Title information
|
|
41
41
|
*/
|
|
42
42
|
title;
|
|
43
|
+
/**
|
|
44
|
+
* Medal appearance information registered in the appearance settings
|
|
45
|
+
*/
|
|
46
|
+
medalShape;
|
|
43
47
|
/**
|
|
44
48
|
* Evan Dragon equipment information (response provided if the character is Evan)
|
|
45
49
|
*/
|
|
@@ -50,7 +54,7 @@ class CharacterItemEquipmentDto extends CharacterItemEquipmentDto$1 {
|
|
|
50
54
|
mechanicEquipment;
|
|
51
55
|
constructor(obj) {
|
|
52
56
|
super();
|
|
53
|
-
const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, dragon_equipment, mechanic_equipment, } = obj;
|
|
57
|
+
const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, medal_shape, dragon_equipment, mechanic_equipment, } = obj;
|
|
54
58
|
this.date = date ? new Date(date) : null;
|
|
55
59
|
this.characterGender = character_gender;
|
|
56
60
|
this.characterClass = character_class;
|
|
@@ -63,6 +67,9 @@ class CharacterItemEquipmentDto extends CharacterItemEquipmentDto$1 {
|
|
|
63
67
|
this.itemEquipmentPreset3 =
|
|
64
68
|
item_equipment_preset_3?.map((equipment) => new CharacterItemEquipmentInfoDto(equipment)) ?? [];
|
|
65
69
|
this.title = title ? new CharacterItemEquipmentTitleDto(title) : null;
|
|
70
|
+
this.medalShape = medal_shape
|
|
71
|
+
? new CharacterItemEquipmentMedalShapeDto(medal_shape)
|
|
72
|
+
: null;
|
|
66
73
|
this.dragonEquipment = dragon_equipment.map((equipment) => new CharacterItemEquipmentDragonInfoDto(equipment));
|
|
67
74
|
this.mechanicEquipment = mechanic_equipment.map((equipment) => new CharacterItemEquipmentMechanicInfoDto(equipment));
|
|
68
75
|
}
|
|
@@ -99,12 +106,27 @@ class CharacterItemEquipmentTitleDto extends CharacterItemEquipmentTitleDto$1 {
|
|
|
99
106
|
* Whether the title option is expired
|
|
100
107
|
*/
|
|
101
108
|
isOptionExpired = null;
|
|
109
|
+
/**
|
|
110
|
+
* Title equipment name registered in the appearance settings
|
|
111
|
+
*/
|
|
112
|
+
titleShapeName;
|
|
113
|
+
/**
|
|
114
|
+
* Title icon registered in the appearance settings
|
|
115
|
+
*/
|
|
116
|
+
titleShapeIcon;
|
|
117
|
+
/**
|
|
118
|
+
* Title description registered in the appearance settings
|
|
119
|
+
*/
|
|
120
|
+
titleShapeDescription;
|
|
102
121
|
constructor(obj) {
|
|
103
122
|
super();
|
|
104
|
-
const { title_name, title_icon, title_description, date_expire, date_option_expire, } = obj;
|
|
123
|
+
const { title_name, title_icon, title_description, date_expire, date_option_expire, title_shape_name, title_shape_icon, title_shape_description, } = obj;
|
|
105
124
|
this.titleName = title_name;
|
|
106
125
|
this.titleIcon = title_icon;
|
|
107
126
|
this.titleDescription = title_description;
|
|
127
|
+
this.titleShapeName = title_shape_name;
|
|
128
|
+
this.titleShapeIcon = title_shape_icon;
|
|
129
|
+
this.titleShapeDescription = title_shape_description;
|
|
108
130
|
if (date_expire === 'expired') {
|
|
109
131
|
this.isExpired = true;
|
|
110
132
|
}
|
|
@@ -121,6 +143,45 @@ class CharacterItemEquipmentTitleDto extends CharacterItemEquipmentTitleDto$1 {
|
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Medal appearance information
|
|
148
|
+
*/
|
|
149
|
+
class CharacterItemEquipmentMedalShapeDto extends CharacterItemEquipmentMedalShapeDto$1 {
|
|
150
|
+
/**
|
|
151
|
+
* Medal equipment name registered in the appearance settings
|
|
152
|
+
*/
|
|
153
|
+
medalShapeName;
|
|
154
|
+
/**
|
|
155
|
+
* Medal icon registered in the appearance settings
|
|
156
|
+
*/
|
|
157
|
+
medalShapeIcon;
|
|
158
|
+
/**
|
|
159
|
+
* Medal description registered in the appearance settings
|
|
160
|
+
*/
|
|
161
|
+
medalShapeDescription;
|
|
162
|
+
/**
|
|
163
|
+
* Fusion Anvil-applied medal equipment name registered in the appearance settings
|
|
164
|
+
*/
|
|
165
|
+
medalShapeChangedName;
|
|
166
|
+
/**
|
|
167
|
+
* Fusion Anvil-applied medal icon registered in the appearance settings
|
|
168
|
+
*/
|
|
169
|
+
medalShapeChangedIcon;
|
|
170
|
+
/**
|
|
171
|
+
* Fusion Anvil-applied medal description registered in the appearance settings
|
|
172
|
+
*/
|
|
173
|
+
medalShapeChangedDescription;
|
|
174
|
+
constructor(obj) {
|
|
175
|
+
super();
|
|
176
|
+
const { medal_shape_name, medal_shape_icon, medal_shape_description, medal_shape_changed_name, medal_shape_changed_icon, medal_shape_changed_description, } = obj;
|
|
177
|
+
this.medalShapeName = medal_shape_name;
|
|
178
|
+
this.medalShapeIcon = medal_shape_icon;
|
|
179
|
+
this.medalShapeDescription = medal_shape_description;
|
|
180
|
+
this.medalShapeChangedName = medal_shape_changed_name;
|
|
181
|
+
this.medalShapeChangedIcon = medal_shape_changed_icon;
|
|
182
|
+
this.medalShapeChangedDescription = medal_shape_changed_description;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
124
185
|
/**
|
|
125
186
|
* Additional equipment options
|
|
126
187
|
*/
|
|
@@ -700,9 +761,13 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
700
761
|
* Whether the equipment is expired
|
|
701
762
|
*/
|
|
702
763
|
isExpired = null;
|
|
764
|
+
/**
|
|
765
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
766
|
+
*/
|
|
767
|
+
freestyleFlag;
|
|
703
768
|
constructor(obj) {
|
|
704
769
|
super();
|
|
705
|
-
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;
|
|
770
|
+
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;
|
|
706
771
|
this.itemEquipmentPart = item_equipment_part;
|
|
707
772
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
708
773
|
this.itemName = item_name;
|
|
@@ -730,6 +795,7 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
730
795
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
731
796
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
732
797
|
this.specialRingLevel = special_ring_level;
|
|
798
|
+
this.freestyleFlag = freestyle_flag;
|
|
733
799
|
if (date_expire === 'expired') {
|
|
734
800
|
this.isExpired = true;
|
|
735
801
|
}
|
|
@@ -737,6 +803,12 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
737
803
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
738
804
|
}
|
|
739
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
* Freestyle Coupon application status
|
|
808
|
+
*/
|
|
809
|
+
get isFreestyleFlag() {
|
|
810
|
+
return this.freestyleFlag === '1';
|
|
811
|
+
}
|
|
740
812
|
}
|
|
741
813
|
/**
|
|
742
814
|
* Mechanic equipment information
|
|
@@ -858,9 +930,13 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
858
930
|
* Whether the equipment is expired
|
|
859
931
|
*/
|
|
860
932
|
isExpired = null;
|
|
933
|
+
/**
|
|
934
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
935
|
+
*/
|
|
936
|
+
freestyleFlag;
|
|
861
937
|
constructor(obj) {
|
|
862
938
|
super();
|
|
863
|
-
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;
|
|
939
|
+
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;
|
|
864
940
|
this.itemEquipmentPart = item_equipment_part;
|
|
865
941
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
866
942
|
this.itemName = item_name;
|
|
@@ -888,6 +964,7 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
888
964
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
889
965
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
890
966
|
this.specialRingLevel = special_ring_level;
|
|
967
|
+
this.freestyleFlag = freestyle_flag;
|
|
891
968
|
if (date_expire === 'expired') {
|
|
892
969
|
this.isExpired = true;
|
|
893
970
|
}
|
|
@@ -895,6 +972,12 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
895
972
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
896
973
|
}
|
|
897
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* Freestyle Coupon application status
|
|
977
|
+
*/
|
|
978
|
+
get isFreestyleFlag() {
|
|
979
|
+
return this.freestyleFlag === '1';
|
|
980
|
+
}
|
|
898
981
|
}
|
|
899
982
|
/**
|
|
900
983
|
* Equipment information
|
|
@@ -1056,9 +1139,13 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1056
1139
|
* Whether the equipment is expired
|
|
1057
1140
|
*/
|
|
1058
1141
|
isExpired = null;
|
|
1142
|
+
/**
|
|
1143
|
+
* Freestyle Coupon application status (0:not applied, 1:applied)
|
|
1144
|
+
*/
|
|
1145
|
+
freestyleFlag;
|
|
1059
1146
|
constructor(obj) {
|
|
1060
1147
|
super();
|
|
1061
|
-
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_flag, additional_potential_option_flag, 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;
|
|
1148
|
+
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_flag, additional_potential_option_flag, 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;
|
|
1062
1149
|
this.itemEquipmentPart = item_equipment_part;
|
|
1063
1150
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
1064
1151
|
this.itemName = item_name;
|
|
@@ -1096,6 +1183,7 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1096
1183
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
1097
1184
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
1098
1185
|
this.specialRingLevel = special_ring_level;
|
|
1186
|
+
this.freestyleFlag = freestyle_flag;
|
|
1099
1187
|
if (date_expire === 'expired') {
|
|
1100
1188
|
this.isExpired = true;
|
|
1101
1189
|
}
|
|
@@ -1103,6 +1191,12 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1103
1191
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
1104
1192
|
}
|
|
1105
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Freestyle Coupon application status
|
|
1196
|
+
*/
|
|
1197
|
+
get isFreestyleFlag() {
|
|
1198
|
+
return this.freestyleFlag === '1';
|
|
1199
|
+
}
|
|
1106
1200
|
}
|
|
1107
1201
|
|
|
1108
|
-
export { CharacterItemEquipmentAddOptionDto, CharacterItemEquipmentBaseOptionDto, CharacterItemEquipmentDragonInfoDto, CharacterItemEquipmentDto, CharacterItemEquipmentEtcOptionDto, CharacterItemEquipmentExceptionalOptionDto, CharacterItemEquipmentInfoDto, CharacterItemEquipmentMechanicInfoDto, CharacterItemEquipmentStarforceOptionDto, CharacterItemEquipmentTitleDto, CharacterItemEquipmentTotalOptionDto };
|
|
1202
|
+
export { CharacterItemEquipmentAddOptionDto, CharacterItemEquipmentBaseOptionDto, CharacterItemEquipmentDragonInfoDto, CharacterItemEquipmentDto, CharacterItemEquipmentEtcOptionDto, CharacterItemEquipmentExceptionalOptionDto, CharacterItemEquipmentInfoDto, CharacterItemEquipmentMechanicInfoDto, CharacterItemEquipmentMedalShapeDto, CharacterItemEquipmentStarforceOptionDto, CharacterItemEquipmentTitleDto, CharacterItemEquipmentTotalOptionDto };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { UnionChampionDto as UnionChampionDto$1, UnionChampionBadgeInfoDto as UnionChampionBadgeInfoDto$1, UnionChampionInfoDto as UnionChampionInfoDto$1 } from '../../../common/dto/union/unionChampion.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Union Champion information
|
|
5
|
+
*/
|
|
6
|
+
class UnionChampionDto extends UnionChampionDto$1 {
|
|
7
|
+
/**
|
|
8
|
+
* Reference date for query (SGT, daily data with hours and minutes set to 0)
|
|
9
|
+
*/
|
|
10
|
+
date;
|
|
11
|
+
/**
|
|
12
|
+
* Union Champion information
|
|
13
|
+
*/
|
|
14
|
+
unionChampion;
|
|
15
|
+
/**
|
|
16
|
+
* Champion Insignia effects
|
|
17
|
+
*/
|
|
18
|
+
championBadgeTotalInfo;
|
|
19
|
+
constructor(obj) {
|
|
20
|
+
super();
|
|
21
|
+
const { date, union_champion, champion_badge_total_info } = obj;
|
|
22
|
+
this.date = date ? new Date(date) : null;
|
|
23
|
+
this.unionChampion = union_champion.map((info) => new UnionChampionInfoDto(info));
|
|
24
|
+
this.championBadgeTotalInfo = champion_badge_total_info.map((info) => new UnionChampionBadgeInfoDto(info));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Champion Insignia effects
|
|
29
|
+
*/
|
|
30
|
+
class UnionChampionBadgeInfoDto extends UnionChampionBadgeInfoDto$1 {
|
|
31
|
+
/**
|
|
32
|
+
* Union Champion Insignia effects
|
|
33
|
+
*/
|
|
34
|
+
stat;
|
|
35
|
+
constructor(obj) {
|
|
36
|
+
super();
|
|
37
|
+
const { stat } = obj;
|
|
38
|
+
this.stat = stat;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Union Champion information
|
|
43
|
+
*/
|
|
44
|
+
class UnionChampionInfoDto extends UnionChampionInfoDto$1 {
|
|
45
|
+
/**
|
|
46
|
+
* Union Champion character name
|
|
47
|
+
*/
|
|
48
|
+
championName;
|
|
49
|
+
/**
|
|
50
|
+
* Union Champion slot
|
|
51
|
+
*/
|
|
52
|
+
championSlot;
|
|
53
|
+
/**
|
|
54
|
+
* Union Champion level
|
|
55
|
+
*/
|
|
56
|
+
championGrade;
|
|
57
|
+
/**
|
|
58
|
+
* Union Champion character's job
|
|
59
|
+
*/
|
|
60
|
+
championClass;
|
|
61
|
+
/**
|
|
62
|
+
* Union Champion Insignia information
|
|
63
|
+
*/
|
|
64
|
+
championBadgeInfo;
|
|
65
|
+
constructor(obj) {
|
|
66
|
+
super();
|
|
67
|
+
const { champion_name, champion_slot, champion_grade, champion_class, champion_badge_info, } = obj;
|
|
68
|
+
this.championName = champion_name;
|
|
69
|
+
this.championSlot = champion_slot;
|
|
70
|
+
this.championGrade = champion_grade;
|
|
71
|
+
this.championClass = champion_class;
|
|
72
|
+
this.championBadgeInfo = champion_badge_info.map((info) => new UnionChampionBadgeInfoDto(info));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { UnionChampionBadgeInfoDto, UnionChampionDto, UnionChampionInfoDto };
|
|
@@ -25,6 +25,7 @@ import { GuildDto } from './dto/guild/guild.js';
|
|
|
25
25
|
import { GuildBasicDto } from './dto/guild/guildBasic.js';
|
|
26
26
|
import { UnionDto } from './dto/union/union.js';
|
|
27
27
|
import { UnionArtifactDto } from './dto/union/unionArtifact.js';
|
|
28
|
+
import { UnionChampionDto } from './dto/union/unionChampion.js';
|
|
28
29
|
import { UnionRaiderDto } from './dto/union/unionRaider.js';
|
|
29
30
|
import { CharacterImageAction, CharacterImageEmotion, CharacterImageWeaponMotion } from '../common/enum/characterImage.js';
|
|
30
31
|
import { MapleStoryApi as MapleStoryApi$1 } from '../common/mapleStoryApi.js';
|
|
@@ -811,6 +812,37 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
811
812
|
}
|
|
812
813
|
return new UnionArtifactDto(data);
|
|
813
814
|
}
|
|
815
|
+
/**
|
|
816
|
+
* Retrieves Union Champion information.
|
|
817
|
+
* - MapleStory game data can be verified approximately 15 minutes after updates.
|
|
818
|
+
* - Data is available starting from December 18, 2025.
|
|
819
|
+
* - Historical data can be queried by specifying the desired date, and data from the previous day can be accessed starting at 2 AM the next day. (For example, when querying data for December 22, data from 00:00 to 24:00 on December 22 will be retrieved.)
|
|
820
|
+
* - Due to game content changes, the ocid may be updated. Please pay attention to this when updating services based on ocid.
|
|
821
|
+
* - This API provides data for MapleStory SEA.
|
|
822
|
+
* @param ocid Character identifier
|
|
823
|
+
* @param dateOptions Reference date for query (SGT)
|
|
824
|
+
*/
|
|
825
|
+
async getUnionChampion(ocid, dateOptions) {
|
|
826
|
+
const path = `${this.subUrl}/v1/user/union-champion`;
|
|
827
|
+
const date = dateOptions
|
|
828
|
+
? this.toDateString(dateOptions, {
|
|
829
|
+
year: 2025,
|
|
830
|
+
month: 12,
|
|
831
|
+
day: 18,
|
|
832
|
+
})
|
|
833
|
+
: undefined;
|
|
834
|
+
const query = {
|
|
835
|
+
ocid: ocid,
|
|
836
|
+
date: date,
|
|
837
|
+
};
|
|
838
|
+
const { data } = await this.client.get(path, {
|
|
839
|
+
params: query,
|
|
840
|
+
});
|
|
841
|
+
if (this.isEmptyResponse(data)) {
|
|
842
|
+
return null;
|
|
843
|
+
}
|
|
844
|
+
return new UnionChampionDto(data);
|
|
845
|
+
}
|
|
814
846
|
//#endregion
|
|
815
847
|
//#region Guild Information Retrieval
|
|
816
848
|
/**
|
|
@@ -10,7 +10,7 @@ export { CharacterHexaMatrixDto, CharacterHexaMatrixEquipmentDto, CharacterHexaM
|
|
|
10
10
|
export { CharacterHexaMatrixStatCoreDto, CharacterHexaMatrixStatDto } from './dto/character/characterHexaMatrixStat.js';
|
|
11
11
|
export { CharacterHyperStatDto, CharacterHyperStatPresetDto } from './dto/character/characterHyperStat.js';
|
|
12
12
|
export { CharacterImageDto } from './dto/character/characterImage.js';
|
|
13
|
-
export { CharacterItemEquipmentAddOptionDto, CharacterItemEquipmentBaseOptionDto, CharacterItemEquipmentDragonInfoDto, CharacterItemEquipmentDto, CharacterItemEquipmentEtcOptionDto, CharacterItemEquipmentExceptionalOptionDto, CharacterItemEquipmentInfoDto, CharacterItemEquipmentMechanicInfoDto, CharacterItemEquipmentStarforceOptionDto, CharacterItemEquipmentTitleDto, CharacterItemEquipmentTotalOptionDto } from './dto/character/characterItemEquipment.js';
|
|
13
|
+
export { CharacterItemEquipmentAddOptionDto, CharacterItemEquipmentBaseOptionDto, CharacterItemEquipmentDragonInfoDto, CharacterItemEquipmentDto, CharacterItemEquipmentEtcOptionDto, CharacterItemEquipmentExceptionalOptionDto, CharacterItemEquipmentInfoDto, CharacterItemEquipmentMechanicInfoDto, CharacterItemEquipmentMedalShapeDto, CharacterItemEquipmentStarforceOptionDto, CharacterItemEquipmentTitleDto, CharacterItemEquipmentTotalOptionDto } from './dto/character/characterItemEquipment.js';
|
|
14
14
|
export { CharacterLinkSkillDto, CharacterLinkSkillInfoDto } from './dto/character/characterLinkSkill.js';
|
|
15
15
|
export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto } from './dto/character/characterPetEquipment.js';
|
|
16
16
|
export { CharacterPopularityDto } from './dto/character/characterPopularity.js';
|
|
@@ -24,4 +24,5 @@ export { GuildDto } from './dto/guild/guild.js';
|
|
|
24
24
|
export { GuildBasicDto, GuildSkillDto } from './dto/guild/guildBasic.js';
|
|
25
25
|
export { UnionDto } from './dto/union/union.js';
|
|
26
26
|
export { UnionArtifactCrystalDto, UnionArtifactDto, UnionArtifactEffectDto } from './dto/union/unionArtifact.js';
|
|
27
|
+
export { UnionChampionBadgeInfoDto, UnionChampionDto, UnionChampionInfoDto } from './dto/union/unionChampion.js';
|
|
27
28
|
export { UnionRaiderBlockControlPointDto, UnionRaiderBlockDto, UnionRaiderBlockPositionDto, UnionRaiderDto, UnionRaiderInnerStatDto, UnionRaiderPresetDto } from './dto/union/unionRaider.js';
|