maplestory-openapi 3.6.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/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/cjs/_virtual/index.js_commonjs-exports3.js +2 -2
- 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/characterCashItemEquipment.js +42 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +2 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterSymbolEquipment.js +6 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterVMatrix.js +4 -0
- package/dist/cjs/maplestory/api/kms/dto/notice/cashshopNoticeList.js +6 -1
- package/dist/cjs/maplestory/api/kms/dto/notice/eventNoticeList.js +6 -1
- package/dist/cjs/maplestory/api/kms/dto/union/unionChampion.js +8 -3
- package/dist/cjs/maplestory/api/kms/kms.js +1 -0
- 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/cjs/node_modules/base64-js/index.js +1 -1
- package/dist/cjs/node_modules/buffer/index.js +2 -2
- package/dist/cjs/node_modules/ieee754/index.js +1 -1
- package/dist/esm/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/esm/_virtual/index.js_commonjs-exports3.js +2 -2
- package/dist/esm/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/characterCashItemEquipment.js +42 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +3 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterSymbolEquipment.js +6 -1
- package/dist/esm/maplestory/api/kms/dto/character/characterVMatrix.js +4 -0
- package/dist/esm/maplestory/api/kms/dto/notice/cashshopNoticeList.js +6 -1
- package/dist/esm/maplestory/api/kms/dto/notice/eventNoticeList.js +6 -1
- package/dist/esm/maplestory/api/kms/dto/union/unionChampion.js +8 -3
- package/dist/esm/maplestory/api/kms/kms.js +1 -1
- 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/esm/node_modules/base64-js/index.js +2 -2
- package/dist/esm/node_modules/buffer/index.js +2 -2
- package/dist/esm/node_modules/ieee754/index.js +2 -2
- package/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/character/characterVMatrix.d.ts +1 -1
- 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/characterCashItemEquipment.d.ts +31 -1
- package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterSymbolEquipment.d.ts +4 -0
- package/types/maplestory/api/kms/dto/character/characterVMatrix.d.ts +5 -1
- package/types/maplestory/api/kms/dto/notice/cashshopNoticeList.d.ts +4 -0
- package/types/maplestory/api/kms/dto/notice/eventNoticeList.d.ts +4 -0
- package/types/maplestory/api/kms/dto/union/unionChampion.d.ts +4 -3
- package/types/maplestory/api/kms/response/character/characterCashItemEquipmentBody.d.ts +8 -0
- package/types/maplestory/api/kms/response/character/characterSymbolEquipmentBody.d.ts +1 -0
- package/types/maplestory/api/kms/response/notice/cashshopNoticeListBody.d.ts +1 -0
- package/types/maplestory/api/kms/response/notice/eventNoticeListBody.d.ts +1 -0
- 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
|
@@ -131,13 +131,24 @@ class CharacterAndroidEquipmentFaceDto extends CharacterAndroidEquipmentFaceDto$
|
|
|
131
131
|
* 機器人臉型混染顏色比例
|
|
132
132
|
*/
|
|
133
133
|
mixRate;
|
|
134
|
+
/**
|
|
135
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
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
|
+
* 自由造型券 使用狀態
|
|
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
|
* 機器人髮型混染顏色比例
|
|
161
172
|
*/
|
|
162
173
|
mixRate;
|
|
174
|
+
/**
|
|
175
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
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
|
+
* 自由造型券 使用狀態
|
|
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
|
* 道具可裝備性別
|
|
380
402
|
*/
|
|
381
403
|
androidItemGender;
|
|
404
|
+
/**
|
|
405
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
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
|
+
* 自由造型券 使用狀態
|
|
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 };
|
|
@@ -89,13 +89,24 @@ class CharacterBeautyEquipmentFaceDto extends CharacterBeautyEquipmentFaceDto$1
|
|
|
89
89
|
* 臉型混染顏色比例
|
|
90
90
|
*/
|
|
91
91
|
mixRate;
|
|
92
|
+
/**
|
|
93
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
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
|
+
* 自由造型券 使用狀態
|
|
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
|
* 髮型混染顏色比例
|
|
119
130
|
*/
|
|
120
131
|
mixRate;
|
|
132
|
+
/**
|
|
133
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
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
|
+
* 自由造型券 使用狀態
|
|
147
|
+
*/
|
|
148
|
+
get isFreestyleFlag() {
|
|
149
|
+
return this.freestyleFlag === '1';
|
|
128
150
|
}
|
|
129
151
|
}
|
|
130
152
|
/**
|
|
@@ -186,9 +186,13 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
186
186
|
* 技能名稱
|
|
187
187
|
*/
|
|
188
188
|
skills;
|
|
189
|
+
/**
|
|
190
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
191
|
+
*/
|
|
192
|
+
freestyleFlag;
|
|
189
193
|
constructor(obj) {
|
|
190
194
|
super();
|
|
191
|
-
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;
|
|
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;
|
|
192
196
|
this.cashItemEquipmentPart = cash_item_equipment_part;
|
|
193
197
|
this.cashItemEquipmentSlot = cash_item_equipment_slot;
|
|
194
198
|
this.cashItemName = cash_item_name;
|
|
@@ -201,6 +205,7 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
201
205
|
: null;
|
|
202
206
|
this.itemGender = item_gender;
|
|
203
207
|
this.skills = skills;
|
|
208
|
+
this.freestyleFlag = freestyle_flag;
|
|
204
209
|
if (date_expire === 'expired') {
|
|
205
210
|
this.isExpired = true;
|
|
206
211
|
}
|
|
@@ -216,6 +221,12 @@ class CharacterCashItemEquipmentPresetDto extends CharacterCashItemEquipmentPres
|
|
|
216
221
|
: null;
|
|
217
222
|
}
|
|
218
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* 自由造型券 使用狀態
|
|
226
|
+
*/
|
|
227
|
+
get isFreestyleFlag() {
|
|
228
|
+
return this.freestyleFlag === '1';
|
|
229
|
+
}
|
|
219
230
|
}
|
|
220
231
|
|
|
221
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
|
* 角色已裝備道具資訊
|
|
@@ -40,6 +40,10 @@ class CharacterItemEquipmentDto extends CharacterItemEquipmentDto$1 {
|
|
|
40
40
|
* 稱號資訊
|
|
41
41
|
*/
|
|
42
42
|
title;
|
|
43
|
+
/**
|
|
44
|
+
* 外型設定中已登錄勳章的外型資訊
|
|
45
|
+
*/
|
|
46
|
+
medalShape;
|
|
43
47
|
/**
|
|
44
48
|
* 龍魔導士的龍道具資訊 (僅在龍魔導士時回應)
|
|
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
|
}
|
|
@@ -136,6 +143,45 @@ class CharacterItemEquipmentTitleDto extends CharacterItemEquipmentTitleDto$1 {
|
|
|
136
143
|
}
|
|
137
144
|
}
|
|
138
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* 外型設定中已登錄勳章的外型資訊
|
|
148
|
+
*/
|
|
149
|
+
class CharacterItemEquipmentMedalShapeDto extends CharacterItemEquipmentMedalShapeDto$1 {
|
|
150
|
+
/**
|
|
151
|
+
* 外型設定中已登錄勳章的道具名稱
|
|
152
|
+
*/
|
|
153
|
+
medalShapeName;
|
|
154
|
+
/**
|
|
155
|
+
* 外型設定中已登錄勳章的圖示
|
|
156
|
+
*/
|
|
157
|
+
medalShapeIcon;
|
|
158
|
+
/**
|
|
159
|
+
* 外型設定中已登錄勳章的描述
|
|
160
|
+
*/
|
|
161
|
+
medalShapeDescription;
|
|
162
|
+
/**
|
|
163
|
+
* 外型設定中已登錄勳章的鐵砧套用道具名稱
|
|
164
|
+
*/
|
|
165
|
+
medalShapeChangedName;
|
|
166
|
+
/**
|
|
167
|
+
* 外型設定中已登錄勳章的鐵砧套用圖示
|
|
168
|
+
*/
|
|
169
|
+
medalShapeChangedIcon;
|
|
170
|
+
/**
|
|
171
|
+
* 外型設定中已登錄勳章的鐵砧套用勳章說明
|
|
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
|
+
}
|
|
139
185
|
/**
|
|
140
186
|
* 附加道具選項
|
|
141
187
|
*/
|
|
@@ -715,9 +761,13 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
715
761
|
* Whether the equipment is expired
|
|
716
762
|
*/
|
|
717
763
|
isExpired = null;
|
|
764
|
+
/**
|
|
765
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
766
|
+
*/
|
|
767
|
+
freestyleFlag;
|
|
718
768
|
constructor(obj) {
|
|
719
769
|
super();
|
|
720
|
-
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;
|
|
721
771
|
this.itemEquipmentPart = item_equipment_part;
|
|
722
772
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
723
773
|
this.itemName = item_name;
|
|
@@ -745,6 +795,7 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
745
795
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
746
796
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
747
797
|
this.specialRingLevel = special_ring_level;
|
|
798
|
+
this.freestyleFlag = freestyle_flag;
|
|
748
799
|
if (date_expire === 'expired') {
|
|
749
800
|
this.isExpired = true;
|
|
750
801
|
}
|
|
@@ -752,6 +803,12 @@ class CharacterItemEquipmentDragonInfoDto extends CharacterItemEquipmentDragonIn
|
|
|
752
803
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
753
804
|
}
|
|
754
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
* 自由造型券 使用狀態
|
|
808
|
+
*/
|
|
809
|
+
get isFreestyleFlag() {
|
|
810
|
+
return this.freestyleFlag === '1';
|
|
811
|
+
}
|
|
755
812
|
}
|
|
756
813
|
/**
|
|
757
814
|
* 機甲戰神道具資訊
|
|
@@ -873,9 +930,13 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
873
930
|
* Whether the equipment is expired
|
|
874
931
|
*/
|
|
875
932
|
isExpired = null;
|
|
933
|
+
/**
|
|
934
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
935
|
+
*/
|
|
936
|
+
freestyleFlag;
|
|
876
937
|
constructor(obj) {
|
|
877
938
|
super();
|
|
878
|
-
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;
|
|
879
940
|
this.itemEquipmentPart = item_equipment_part;
|
|
880
941
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
881
942
|
this.itemName = item_name;
|
|
@@ -903,6 +964,7 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
903
964
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
904
965
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
905
966
|
this.specialRingLevel = special_ring_level;
|
|
967
|
+
this.freestyleFlag = freestyle_flag;
|
|
906
968
|
if (date_expire === 'expired') {
|
|
907
969
|
this.isExpired = true;
|
|
908
970
|
}
|
|
@@ -910,6 +972,12 @@ class CharacterItemEquipmentMechanicInfoDto extends CharacterItemEquipmentMechan
|
|
|
910
972
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
911
973
|
}
|
|
912
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* 自由造型券 使用狀態
|
|
977
|
+
*/
|
|
978
|
+
get isFreestyleFlag() {
|
|
979
|
+
return this.freestyleFlag === '1';
|
|
980
|
+
}
|
|
913
981
|
}
|
|
914
982
|
/**
|
|
915
983
|
* 道具資訊
|
|
@@ -1071,9 +1139,13 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1071
1139
|
* Whether the equipment is expired
|
|
1072
1140
|
*/
|
|
1073
1141
|
isExpired = null;
|
|
1142
|
+
/**
|
|
1143
|
+
* 自由造型券 使用狀態(0:未使用,1:已使用)
|
|
1144
|
+
*/
|
|
1145
|
+
freestyleFlag;
|
|
1074
1146
|
constructor(obj) {
|
|
1075
1147
|
super();
|
|
1076
|
-
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;
|
|
1077
1149
|
this.itemEquipmentPart = item_equipment_part;
|
|
1078
1150
|
this.itemEquipmentSlot = item_equipment_slot;
|
|
1079
1151
|
this.itemName = item_name;
|
|
@@ -1111,6 +1183,7 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1111
1183
|
this.starforceScrollFlag = starforce_scroll_flag;
|
|
1112
1184
|
this.itemStarforceOption = new CharacterItemEquipmentStarforceOptionDto(item_starforce_option);
|
|
1113
1185
|
this.specialRingLevel = special_ring_level;
|
|
1186
|
+
this.freestyleFlag = freestyle_flag;
|
|
1114
1187
|
if (date_expire === 'expired') {
|
|
1115
1188
|
this.isExpired = true;
|
|
1116
1189
|
}
|
|
@@ -1118,6 +1191,12 @@ class CharacterItemEquipmentInfoDto extends CharacterItemEquipmentInfoDto$1 {
|
|
|
1118
1191
|
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
1119
1192
|
}
|
|
1120
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* 自由造型券 使用狀態
|
|
1196
|
+
*/
|
|
1197
|
+
get isFreestyleFlag() {
|
|
1198
|
+
return this.freestyleFlag === '1';
|
|
1199
|
+
}
|
|
1121
1200
|
}
|
|
1122
1201
|
|
|
1123
|
-
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,73 @@
|
|
|
1
|
+
import { UnionChampionDto as UnionChampionDto$1, UnionChampionBadgeInfoDto as UnionChampionBadgeInfoDto$1, UnionChampionInfoDto as UnionChampionInfoDto$1 } from '../../../common/dto/union/unionChampion.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 聯盟冠軍資訊
|
|
5
|
+
*/
|
|
6
|
+
class UnionChampionDto extends UnionChampionDto$1 {
|
|
7
|
+
date;
|
|
8
|
+
/**
|
|
9
|
+
* 聯盟冠軍資訊
|
|
10
|
+
*/
|
|
11
|
+
unionChampion;
|
|
12
|
+
/**
|
|
13
|
+
* 冠軍徽章效果
|
|
14
|
+
*/
|
|
15
|
+
championBadgeTotalInfo;
|
|
16
|
+
constructor(obj) {
|
|
17
|
+
super();
|
|
18
|
+
const { date, union_champion, champion_badge_total_info } = obj;
|
|
19
|
+
this.date = date ? new Date(date) : null;
|
|
20
|
+
this.unionChampion = union_champion.map((info) => new UnionChampionInfoDto(info));
|
|
21
|
+
this.championBadgeTotalInfo = champion_badge_total_info.map((info) => new UnionChampionBadgeInfoDto(info));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 聯盟冠軍徽章資訊
|
|
26
|
+
*/
|
|
27
|
+
class UnionChampionBadgeInfoDto extends UnionChampionBadgeInfoDto$1 {
|
|
28
|
+
/**
|
|
29
|
+
* 聯盟冠軍徽章資訊
|
|
30
|
+
*/
|
|
31
|
+
stat;
|
|
32
|
+
constructor(obj) {
|
|
33
|
+
super();
|
|
34
|
+
const { stat } = obj;
|
|
35
|
+
this.stat = stat;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 聯盟冠軍資訊
|
|
40
|
+
*/
|
|
41
|
+
class UnionChampionInfoDto extends UnionChampionInfoDto$1 {
|
|
42
|
+
/**
|
|
43
|
+
* 聯盟冠軍角色名稱
|
|
44
|
+
*/
|
|
45
|
+
championName;
|
|
46
|
+
/**
|
|
47
|
+
* 聯盟冠軍欄位
|
|
48
|
+
*/
|
|
49
|
+
championSlot;
|
|
50
|
+
/**
|
|
51
|
+
* 聯盟冠軍等級
|
|
52
|
+
*/
|
|
53
|
+
championGrade;
|
|
54
|
+
/**
|
|
55
|
+
* 聯盟冠軍角色職業
|
|
56
|
+
*/
|
|
57
|
+
championClass;
|
|
58
|
+
/**
|
|
59
|
+
* 聯盟冠軍徽章資訊
|
|
60
|
+
*/
|
|
61
|
+
championBadgeInfo;
|
|
62
|
+
constructor(obj) {
|
|
63
|
+
super();
|
|
64
|
+
const { champion_name, champion_slot, champion_grade, champion_class, champion_badge_info, } = obj;
|
|
65
|
+
this.championName = champion_name;
|
|
66
|
+
this.championSlot = champion_slot;
|
|
67
|
+
this.championGrade = champion_grade;
|
|
68
|
+
this.championClass = champion_class;
|
|
69
|
+
this.championBadgeInfo = champion_badge_info.map((info) => new UnionChampionBadgeInfoDto(info));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
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
|
+
* 查詢聯盟冠軍資訊。
|
|
817
|
+
* - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
|
|
818
|
+
* - 您可以從 2025 年 12 月 18 日起搜尋資料。
|
|
819
|
+
* - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
|
|
820
|
+
* - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
|
|
821
|
+
* - 此 API 提供來自楓之谷台灣的資料。
|
|
822
|
+
* @param ocid 角色辨識器
|
|
823
|
+
* @param dateOptions 要搜尋的日期 (TST)
|
|
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 檢視公會資訊
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-
|
|
2
|
-
export { __exports as default } from '../../_virtual/index.js_commonjs-
|
|
1
|
+
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
2
|
+
export { __exports as default } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
3
3
|
|
|
4
4
|
base64Js.byteLength = byteLength;
|
|
5
5
|
base64Js.toByteArray = toByteArray;
|
|
@@ -2,8 +2,8 @@ import { __exports as buffer } from '../../_virtual/index.js_commonjs-exports.js
|
|
|
2
2
|
export { __exports as default } from '../../_virtual/index.js_commonjs-exports.js';
|
|
3
3
|
import '../base64-js/index.js';
|
|
4
4
|
import '../ieee754/index.js';
|
|
5
|
-
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-
|
|
6
|
-
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-
|
|
5
|
+
import { __exports as base64Js } from '../../_virtual/index.js_commonjs-exports3.js';
|
|
6
|
+
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
9
|
* The buffer module from node.js, for the browser.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-
|
|
2
|
-
export { __exports as default } from '../../_virtual/index.js_commonjs-
|
|
1
|
+
import { __exports as ieee754 } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
2
|
+
export { __exports as default } from '../../_virtual/index.js_commonjs-exports2.js';
|
|
3
3
|
|
|
4
4
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5
5
|
|
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs)}(this,function(t,e,a){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(a),s=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t){var e,a;t.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},a={},function(t,r,o){var i,s=function(t,e,r){void 0===r&&(r={});var o=new Date(t),i=function(t,e){void 0===e&&(e={});var r=e.timeZoneName||"short",o=t+"|"+r,i=a[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),a[o]=i),i}(e,r);return i.formatToParts(o)},n=function(t,a){for(var r=s(t,a),i=[],n=0;n<r.length;n+=1){var c=r[n],l=c.type,u=c.value,f=e[l];f>=0&&(i[f]=parseInt(u,10))}var h=i[3],m=24===h?0:h,d=i[0]+"-"+i[1]+"-"+i[2]+" "+m+":"+i[4]+":"+i[5]+":000",E=+t;return(o.utc(d).valueOf()-(E-=E%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=i);var a,r=this.utcOffset(),s=this.toDate(),n=s.toLocaleString("en-US",{timeZone:t}),c=Math.round((s-new Date(n))/1e3/60),l=15*-Math.round(s.getTimezoneOffset()/15)-c;if(Number(l)){if(a=o(n,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var u=a.utcOffset();a=a.add(r-u,"minute")}}else a=this.utcOffset(0,e);return a.$x.$timezone=t,a},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),a=s(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,a){var r=a&&e,s=a||e||i,c=n(+o(),s);if("string"!=typeof t)return o(t).tz(s);var l=function(t,e,a){var r=t-60*e*1e3,o=n(r,a);if(e===o)return[r,e];var i=n(r-=60*(o-e)*1e3,a);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),c,s),u=l[0],f=l[1],h=o(u).utcOffset(f);return h.$x.$timezone=s,h},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}})}(s);var n=s.exports,c={exports:{}};!function(t){var e,a,r;t.exports=(e="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g,function(t,o,i){var s=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},s.utc=function(t){var a=i(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),n.call(this,t)};var c=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=s.utcOffset;s.utcOffset=function(t,o){var i=this.$utils().u;if(i(t))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(a);if(!e)return null;var o=(""+e[0]).match(r)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(t),null===t))return this;var s=Math.abs(t)<=16?60*t:t;if(0===s)return this.utc(o);var n=this.clone();if(o)return n.$offset=s,n.$u=!1,n;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+c,e)).$offset=s,n.$x.$localOffset=c,n};var u=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(t,e,a){if(t&&this.$u===t.$u)return h.call(this,t,e,a);var r=this.local(),o=i(t).local();return h.call(r,o,e,a)}})}(c);var l,u=c.exports;class f extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=h[e],this.message=a}}t.MapleStoryApiErrorCode=void 0,(l=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[l.OPENAPI00001=0]="OPENAPI00001",l[l.OPENAPI00002=1]="OPENAPI00002",l[l.OPENAPI00003=2]="OPENAPI00003",l[l.OPENAPI00004=3]="OPENAPI00004",l[l.OPENAPI00005=4]="OPENAPI00005",l[l.OPENAPI00006=5]="OPENAPI00006",l[l.OPENAPI00007=6]="OPENAPI00007",l[l.OPENAPI00009=7]="OPENAPI00009",l[l.OPENAPI00010=8]="OPENAPI00010",l[l.OPENAPI00011=9]="OPENAPI00011",l[l.OPENAPI00012=10]="OPENAPI00012";const h={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010,OPENAPI00011:t.MapleStoryApiErrorCode.OPENAPI00011,OPENAPI00012:t.MapleStoryApiErrorCode.OPENAPI00012};i.default.extend(n),i.default.extend(u);class m{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=o.default.create({baseURL:m.BASE_URL,timeout:m.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use(t=>t,t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new f(e)}throw t})}getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:r}=t,o=i.default().utcOffset(this.timezoneOffset),s=i.default().utcOffset(this.timezoneOffset).hour(e).minute(a);let n;return n=o.isAfter(s)?o:o.subtract(1,"day"),n=n.subtract(r??0,"day"),{year:n.year(),month:n.month()+1,day:n.date()}}toDateString(t,e){const a=t=>{let e,a,r,o;return t instanceof Date?(o=i.default(t).utcOffset(this.timezoneOffset),e=o.year(),a=o.month()+1,r=o.date()):(e=t.year,a=t.month,r=t.day,o=i.default(`${e}-${a}-${r}`).utcOffset(this.timezoneOffset)),{year:e,month:a,day:r,d:o}},{year:r,month:o,day:s,d:n}=a(t),c=n.format("YYYY-MM-DD");if(e){const{year:t,month:n,day:c}=a(e);if(r<t||r===t&&o<n||r===t&&o===n&&s<c)throw new Error(`You can only retrieve data after ${i.default(`${t}-${n}-${c}`).format("YYYY-MM-DD")}.`)}return c}isEmptyResponse(t){for(const[e,a]of Object.entries(t))if("date"!==e&&null!=a&&(!Array.isArray(a)||0!==a.length))return!1;return!0}}var d,E,p,A;t.CharacterImageAction=void 0,(d=t.CharacterImageAction||(t.CharacterImageAction={})).Stand1="A00",d.Stand2="A01",d.Walk1="A02",d.Walk2="A03",d.Prone="A04",d.Fly="A05",d.Jump="A06",d.Sit="A07",d.Ladder="A08",d.Rope="A09",d.Heal="A10",d.Alert="A11",d.ProneStab="A12",d.SwingO1="A13",d.SwingO2="A14",d.SwingO3="A15",d.SwingOF="A16",d.SwingP1="A17",d.SwingP2="A18",d.SwingPF="A19",d.SwingT1="A20",d.SwingT2="A21",d.SwingT3="A22",d.SwingTF="A23",d.StabO1="A24",d.StabO2="A25",d.StabOF="A26",d.StabT1="A27",d.StabT2="A28",d.StabTF="A29",d.Shoot1="A30",d.Shoot2="A31",d.ShootF="A32",d.Dead="A33",d.GhostWalk="A34",d.GhostStand="A35",d.GhostJump="A36",d.GhostProneStab="A37",d.GhostLadder="A38",d.GhostRope="A39",d.GhostFly="A40",d.GhostSit="A41",t.CharacterImageEmotion=void 0,(E=t.CharacterImageEmotion||(t.CharacterImageEmotion={})).Default="E00",E.Wink="E01",E.Smile="E02",E.Cry="E03",E.Angry="E04",E.Bewildered="E05",E.Blink="E06",E.Blaze="E07",E.Bowing="E08",E.Cheers="E09",E.Chu="E10",E.Dam="E11",E.Despair="E12",E.Glitter="E13",E.Hit="E14",E.Hot="E15",E.Hum="E16",E.Love="E17",E.Oops="E18",E.Pain="E19",E.Troubled="E20",E.QBlue="E21",E.Shine="E22",E.Stunned="E23",E.Vomit="E24",t.CharacterImageWeaponMotion=void 0,(p=t.CharacterImageWeaponMotion||(t.CharacterImageWeaponMotion={})).Default="W00",p.OneHand="W01",p.TwoHands="W02",p.Gun="W03",p.Nothing="W04",t.PotentialOptionGrade=void 0,(A=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[A.RARE=0]="RARE",A[A.EPIC=1]="EPIC",A[A.UNIQUE=2]="UNIQUE",A[A.LEGENDARY=3]="LEGENDARY";t.CharacterAbilityDto=class{},t.CharacterAbilityInfoDto=class{},t.CharacterAbilityPresetDto=class{},t.CharacterAndroidCashItemEquipmentColoringPrismDto=class{},t.CharacterAndroidCashItemEquipmentDto=class{},t.CharacterAndroidCashItemEquipmentOptionDto=class{},t.CharacterAndroidEquipmentDto=class{},t.CharacterAndroidEquipmentFaceDto=class{},t.CharacterAndroidEquipmentHairDto=class{},t.CharacterAndroidEquipmentPresetDto=class{},t.CharacterAndroidEquipmentSkinDto=class{},t.CharacterBasicDto=class{get isAccessFlag(){return"true"===this.accessFlag}},t.CharacterBeautyEquipmentDto=class{},t.CharacterBeautyEquipmentFaceDto=class{},t.CharacterBeautyEquipmentHairDto=class{},t.CharacterBeautyEquipmentSkinDto=class{},t.CharacterCashItemEquipmentColoringPrismDto=class{},t.CharacterCashItemEquipmentDto=class{},t.CharacterCashItemEquipmentOptionDto=class{},t.CharacterCashItemEquipmentPresetDto=class{},t.CharacterDojangDto=class{},t.CharacterDto=class{},t.CharacterFinalStatDto=class{},t.CharacterHexaMatrixDto=class{},t.CharacterHexaMatrixEquipmentDto=class{},t.CharacterHexaMatrixEquipmentLinkedSkillDto=class{},t.CharacterHexaMatrixStatCoreDto=class{},t.CharacterHexaMatrixStatDto=class{},t.CharacterHyperStatDto=class{},t.CharacterHyperStatPresetDto=class{},t.CharacterImageDto=class{},t.CharacterItemEquipmentAddOptionDto=class{},t.CharacterItemEquipmentBaseOptionDto=class{},t.CharacterItemEquipmentDragonInfoDto=class{},t.CharacterItemEquipmentDto=class{},t.CharacterItemEquipmentEtcOptionDto=class{},t.CharacterItemEquipmentExceptionalOptionDto=class{},t.CharacterItemEquipmentInfoDto=class{},t.CharacterItemEquipmentMechanicInfoDto=class{},t.CharacterItemEquipmentStarforceOptionDto=class{},t.CharacterItemEquipmentTitleDto=class{},t.CharacterItemEquipmentTotalOptionDto=class{},t.CharacterLinkSkillDto=class{},t.CharacterLinkSkillInfoDto=class{},t.CharacterPetEquipmentAutoSkillDto=class{},t.CharacterPetEquipmentDto=class{},t.CharacterPetEquipmentItemDto=class{},t.CharacterPetEquipmentItemOptionDto=class{},t.CharacterPopularityDto=class{},t.CharacterPropensityDto=class{},t.CharacterSetEffectDto=class{},t.CharacterSetEffectInfoDto=class{},t.CharacterSetEffectOptionFullDto=class{},t.CharacterSetEffectSetDto=class{},t.CharacterSkillDto=class{},t.CharacterSkillInfoDto=class{},t.CharacterStatDto=class{},t.CharacterSymbolEquipmentDto=class{},t.CharacterSymbolEquipmentInfoDto=class{},t.CharacterVMatrixCodeEquipmentDto=class{},t.CharacterVMatrixDto=class{},t.GuildBasicDto=class{},t.GuildDto=class{},t.GuildSkillDto=class{},t.MapleStoryApi=m,t.MapleStoryApiError=f,t.UnionArtifactCrystalDto=class{},t.UnionArtifactDto=class{},t.UnionArtifactEffectDto=class{},t.UnionDto=class{},t.UnionRaiderBlockControlPointDto=class{},t.UnionRaiderBlockDto=class{},t.UnionRaiderBlockPositionDto=class{},t.UnionRaiderDto=class{},t.UnionRaiderInnerStatDto=class{},t.UnionRaiderPresetDto=class{}});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs)}(this,function(t,e,a){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(a),s=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t){var e,a;t.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},a={},function(t,r,o){var i,s=function(t,e,r){void 0===r&&(r={});var o=new Date(t),i=function(t,e){void 0===e&&(e={});var r=e.timeZoneName||"short",o=t+"|"+r,i=a[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),a[o]=i),i}(e,r);return i.formatToParts(o)},n=function(t,a){for(var r=s(t,a),i=[],n=0;n<r.length;n+=1){var c=r[n],l=c.type,u=c.value,h=e[l];h>=0&&(i[h]=parseInt(u,10))}var f=i[3],m=24===f?0:f,d=i[0]+"-"+i[1]+"-"+i[2]+" "+m+":"+i[4]+":"+i[5]+":000",E=+t;return(o.utc(d).valueOf()-(E-=E%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=i);var a,r=this.utcOffset(),s=this.toDate(),n=s.toLocaleString("en-US",{timeZone:t}),c=Math.round((s-new Date(n))/1e3/60),l=15*-Math.round(s.getTimezoneOffset()/15)-c;if(Number(l)){if(a=o(n,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var u=a.utcOffset();a=a.add(r-u,"minute")}}else a=this.utcOffset(0,e);return a.$x.$timezone=t,a},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),a=s(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,a){var r=a&&e,s=a||e||i,c=n(+o(),s);if("string"!=typeof t)return o(t).tz(s);var l=function(t,e,a){var r=t-60*e*1e3,o=n(r,a);if(e===o)return[r,e];var i=n(r-=60*(o-e)*1e3,a);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),c,s),u=l[0],h=l[1],f=o(u).utcOffset(h);return f.$x.$timezone=s,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}})}(s);var n=s.exports,c={exports:{}};!function(t){var e,a,r;t.exports=(e="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g,function(t,o,i){var s=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},s.utc=function(t){var a=i(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),n.call(this,t)};var c=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=s.utcOffset;s.utcOffset=function(t,o){var i=this.$utils().u;if(i(t))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(a);if(!e)return null;var o=(""+e[0]).match(r)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(t),null===t))return this;var s=Math.abs(t)<=16?60*t:t;if(0===s)return this.utc(o);var n=this.clone();if(o)return n.$offset=s,n.$u=!1,n;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+c,e)).$offset=s,n.$x.$localOffset=c,n};var u=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=s.diff;s.diff=function(t,e,a){if(t&&this.$u===t.$u)return f.call(this,t,e,a);var r=this.local(),o=i(t).local();return f.call(r,o,e,a)}})}(c);var l,u=c.exports;class h extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=f[e],this.message=a}}t.MapleStoryApiErrorCode=void 0,(l=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[l.OPENAPI00001=0]="OPENAPI00001",l[l.OPENAPI00002=1]="OPENAPI00002",l[l.OPENAPI00003=2]="OPENAPI00003",l[l.OPENAPI00004=3]="OPENAPI00004",l[l.OPENAPI00005=4]="OPENAPI00005",l[l.OPENAPI00006=5]="OPENAPI00006",l[l.OPENAPI00007=6]="OPENAPI00007",l[l.OPENAPI00009=7]="OPENAPI00009",l[l.OPENAPI00010=8]="OPENAPI00010",l[l.OPENAPI00011=9]="OPENAPI00011",l[l.OPENAPI00012=10]="OPENAPI00012";const f={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010,OPENAPI00011:t.MapleStoryApiErrorCode.OPENAPI00011,OPENAPI00012:t.MapleStoryApiErrorCode.OPENAPI00012};i.default.extend(n),i.default.extend(u);class m{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=o.default.create({baseURL:m.BASE_URL,timeout:m.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use(t=>t,t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new h(e)}throw t})}getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:r}=t,o=i.default().utcOffset(this.timezoneOffset),s=i.default().utcOffset(this.timezoneOffset).hour(e).minute(a);let n;return n=o.isAfter(s)?o:o.subtract(1,"day"),n=n.subtract(r??0,"day"),{year:n.year(),month:n.month()+1,day:n.date()}}toDateString(t,e){const a=t=>{let e,a,r,o;return t instanceof Date?(o=i.default(t).utcOffset(this.timezoneOffset),e=o.year(),a=o.month()+1,r=o.date()):(e=t.year,a=t.month,r=t.day,o=i.default(`${e}-${a}-${r}`).utcOffset(this.timezoneOffset)),{year:e,month:a,day:r,d:o}},{year:r,month:o,day:s,d:n}=a(t),c=n.format("YYYY-MM-DD");if(e){const{year:t,month:n,day:c}=a(e);if(r<t||r===t&&o<n||r===t&&o===n&&s<c)throw new Error(`You can only retrieve data after ${i.default(`${t}-${n}-${c}`).format("YYYY-MM-DD")}.`)}return c}isEmptyResponse(t){for(const[e,a]of Object.entries(t))if("date"!==e&&null!=a&&(!Array.isArray(a)||0!==a.length))return!1;return!0}}var d,E,p,A;t.CharacterImageAction=void 0,(d=t.CharacterImageAction||(t.CharacterImageAction={})).Stand1="A00",d.Stand2="A01",d.Walk1="A02",d.Walk2="A03",d.Prone="A04",d.Fly="A05",d.Jump="A06",d.Sit="A07",d.Ladder="A08",d.Rope="A09",d.Heal="A10",d.Alert="A11",d.ProneStab="A12",d.SwingO1="A13",d.SwingO2="A14",d.SwingO3="A15",d.SwingOF="A16",d.SwingP1="A17",d.SwingP2="A18",d.SwingPF="A19",d.SwingT1="A20",d.SwingT2="A21",d.SwingT3="A22",d.SwingTF="A23",d.StabO1="A24",d.StabO2="A25",d.StabOF="A26",d.StabT1="A27",d.StabT2="A28",d.StabTF="A29",d.Shoot1="A30",d.Shoot2="A31",d.ShootF="A32",d.Dead="A33",d.GhostWalk="A34",d.GhostStand="A35",d.GhostJump="A36",d.GhostProneStab="A37",d.GhostLadder="A38",d.GhostRope="A39",d.GhostFly="A40",d.GhostSit="A41",t.CharacterImageEmotion=void 0,(E=t.CharacterImageEmotion||(t.CharacterImageEmotion={})).Default="E00",E.Wink="E01",E.Smile="E02",E.Cry="E03",E.Angry="E04",E.Bewildered="E05",E.Blink="E06",E.Blaze="E07",E.Bowing="E08",E.Cheers="E09",E.Chu="E10",E.Dam="E11",E.Despair="E12",E.Glitter="E13",E.Hit="E14",E.Hot="E15",E.Hum="E16",E.Love="E17",E.Oops="E18",E.Pain="E19",E.Troubled="E20",E.QBlue="E21",E.Shine="E22",E.Stunned="E23",E.Vomit="E24",t.CharacterImageWeaponMotion=void 0,(p=t.CharacterImageWeaponMotion||(t.CharacterImageWeaponMotion={})).Default="W00",p.OneHand="W01",p.TwoHands="W02",p.Gun="W03",p.Nothing="W04",t.PotentialOptionGrade=void 0,(A=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[A.RARE=0]="RARE",A[A.EPIC=1]="EPIC",A[A.UNIQUE=2]="UNIQUE",A[A.LEGENDARY=3]="LEGENDARY";t.CharacterAbilityDto=class{},t.CharacterAbilityInfoDto=class{},t.CharacterAbilityPresetDto=class{},t.CharacterAndroidCashItemEquipmentColoringPrismDto=class{},t.CharacterAndroidCashItemEquipmentDto=class{},t.CharacterAndroidCashItemEquipmentOptionDto=class{},t.CharacterAndroidEquipmentDto=class{},t.CharacterAndroidEquipmentFaceDto=class{},t.CharacterAndroidEquipmentHairDto=class{},t.CharacterAndroidEquipmentPresetDto=class{},t.CharacterAndroidEquipmentSkinDto=class{},t.CharacterBasicDto=class{get isAccessFlag(){return"true"===this.accessFlag}},t.CharacterBeautyEquipmentDto=class{},t.CharacterBeautyEquipmentFaceDto=class{},t.CharacterBeautyEquipmentHairDto=class{},t.CharacterBeautyEquipmentSkinDto=class{},t.CharacterCashItemEquipmentColoringPrismDto=class{},t.CharacterCashItemEquipmentDto=class{},t.CharacterCashItemEquipmentOptionDto=class{},t.CharacterCashItemEquipmentPresetDto=class{},t.CharacterDojangDto=class{},t.CharacterDto=class{},t.CharacterFinalStatDto=class{},t.CharacterHexaMatrixDto=class{},t.CharacterHexaMatrixEquipmentDto=class{},t.CharacterHexaMatrixEquipmentLinkedSkillDto=class{},t.CharacterHexaMatrixStatCoreDto=class{},t.CharacterHexaMatrixStatDto=class{},t.CharacterHyperStatDto=class{},t.CharacterHyperStatPresetDto=class{},t.CharacterImageDto=class{},t.CharacterItemEquipmentAddOptionDto=class{},t.CharacterItemEquipmentBaseOptionDto=class{},t.CharacterItemEquipmentDragonInfoDto=class{},t.CharacterItemEquipmentDto=class{},t.CharacterItemEquipmentEtcOptionDto=class{},t.CharacterItemEquipmentExceptionalOptionDto=class{},t.CharacterItemEquipmentInfoDto=class{},t.CharacterItemEquipmentMechanicInfoDto=class{},t.CharacterItemEquipmentMedalShapeDto=class{},t.CharacterItemEquipmentStarforceOptionDto=class{},t.CharacterItemEquipmentTitleDto=class{},t.CharacterItemEquipmentTotalOptionDto=class{},t.CharacterLinkSkillDto=class{},t.CharacterLinkSkillInfoDto=class{},t.CharacterPetEquipmentAutoSkillDto=class{},t.CharacterPetEquipmentDto=class{},t.CharacterPetEquipmentItemDto=class{},t.CharacterPetEquipmentItemOptionDto=class{},t.CharacterPopularityDto=class{},t.CharacterPropensityDto=class{},t.CharacterSetEffectDto=class{},t.CharacterSetEffectInfoDto=class{},t.CharacterSetEffectOptionFullDto=class{},t.CharacterSetEffectSetDto=class{},t.CharacterSkillDto=class{},t.CharacterSkillInfoDto=class{},t.CharacterStatDto=class{},t.CharacterSymbolEquipmentDto=class{},t.CharacterSymbolEquipmentInfoDto=class{},t.CharacterVMatrixCodeEquipmentDto=class{},t.CharacterVMatrixDto=class{},t.GuildBasicDto=class{},t.GuildDto=class{},t.GuildSkillDto=class{},t.MapleStoryApi=m,t.MapleStoryApiError=h,t.UnionArtifactCrystalDto=class{},t.UnionArtifactDto=class{},t.UnionArtifactEffectDto=class{},t.UnionChampionBadgeInfoDto=class{},t.UnionChampionDto=class{},t.UnionChampionInfoDto=class{},t.UnionDto=class{},t.UnionRaiderBlockControlPointDto=class{},t.UnionRaiderBlockDto=class{},t.UnionRaiderBlockPositionDto=class{},t.UnionRaiderDto=class{},t.UnionRaiderInnerStatDto=class{},t.UnionRaiderPresetDto=class{}});
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -27,4 +27,5 @@ export * from './maplestory/api/common/dto/guild/guild';
|
|
|
27
27
|
export * from './maplestory/api/common/dto/guild/guildBasic';
|
|
28
28
|
export * from './maplestory/api/common/dto/union/union';
|
|
29
29
|
export * from './maplestory/api/common/dto/union/unionArtifact';
|
|
30
|
+
export * from './maplestory/api/common/dto/union/unionChampion';
|
|
30
31
|
export * from './maplestory/api/common/dto/union/unionRaider';
|
|
@@ -23,12 +23,14 @@ export declare abstract class CharacterAndroidEquipmentFaceDto {
|
|
|
23
23
|
abstract baseColor: string | null;
|
|
24
24
|
abstract mixColor: string | null;
|
|
25
25
|
abstract mixRate: string;
|
|
26
|
+
abstract freestyleFlag: string | null;
|
|
26
27
|
}
|
|
27
28
|
export declare abstract class CharacterAndroidEquipmentHairDto {
|
|
28
29
|
abstract hairName: string | null;
|
|
29
30
|
abstract baseColor: string | null;
|
|
30
31
|
abstract mixColor: string | null;
|
|
31
32
|
abstract mixRate: string;
|
|
33
|
+
abstract freestyleFlag: string | null;
|
|
32
34
|
}
|
|
33
35
|
export declare abstract class CharacterAndroidEquipmentSkinDto {
|
|
34
36
|
abstract skinName: string;
|
|
@@ -75,4 +77,5 @@ export declare abstract class CharacterAndroidCashItemEquipmentDto {
|
|
|
75
77
|
abstract cashItemLabel: string | null;
|
|
76
78
|
abstract cashItemColoringPrism: CharacterAndroidCashItemEquipmentColoringPrismDto | null;
|
|
77
79
|
abstract androidItemGender: string | null;
|
|
80
|
+
abstract freestyleFlag: string | null;
|
|
78
81
|
}
|