maplestory-openapi 3.4.1 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/dist/cjs/maplestory/api/common/lib.js +16 -0
- package/dist/cjs/maplestory/api/common/mapleStoryApi.js +25 -0
- package/dist/cjs/maplestory/api/kms/dto/character/characterAndroidEquipment.js +1 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterBasic.js +3 -2
- package/dist/cjs/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +1 -1
- package/dist/cjs/maplestory/api/kms/dto/history/starforceHistory.js +1 -1
- package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +98 -11
- package/dist/cjs/maplestory/api/msea/dto/character/characterBasic.js +3 -2
- package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +79 -1
- package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +3 -2
- package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +79 -1
- package/dist/esm/maplestory/api/common/lib.js +16 -1
- package/dist/esm/maplestory/api/common/mapleStoryApi.js +25 -0
- package/dist/esm/maplestory/api/kms/dto/character/characterAndroidEquipment.js +1 -1
- package/dist/esm/maplestory/api/kms/dto/character/characterBasic.js +3 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +1 -1
- package/dist/esm/maplestory/api/kms/dto/history/starforceHistory.js +1 -1
- package/dist/esm/maplestory/api/kms/mapleStoryApi.js +98 -11
- package/dist/esm/maplestory/api/msea/dto/character/characterBasic.js +3 -2
- package/dist/esm/maplestory/api/msea/mapleStoryApi.js +79 -1
- package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +3 -2
- package/dist/esm/maplestory/api/tms/mapleStoryApi.js +79 -1
- package/dist/index.min.js +1 -1
- package/package.json +4 -3
- package/types/maplestory/api/common/dto/character/characterAbility.d.ts +2 -2
- package/types/maplestory/api/common/dto/character/characterBasic.d.ts +1 -1
- package/types/maplestory/api/common/dto/character/characterCashItemEquipment.d.ts +3 -3
- package/types/maplestory/api/common/dto/character/characterDojang.d.ts +4 -4
- package/types/maplestory/api/common/dto/character/characterHexaMatrixStat.d.ts +1 -1
- package/types/maplestory/api/common/dto/character/characterHyperStat.d.ts +6 -6
- package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +2 -2
- package/types/maplestory/api/common/dto/character/characterLinkSkill.d.ts +1 -1
- package/types/maplestory/api/common/dto/character/characterPropensity.d.ts +6 -6
- package/types/maplestory/api/common/dto/character/characterSkill.d.ts +1 -1
- package/types/maplestory/api/common/dto/character/characterStat.d.ts +2 -2
- package/types/maplestory/api/common/dto/character/characterSymbolEquipment.d.ts +1 -1
- package/types/maplestory/api/common/dto/character/characterVMatrix.d.ts +2 -2
- package/types/maplestory/api/common/dto/union/unionRaider.d.ts +1 -1
- package/types/maplestory/api/common/lib.d.ts +9 -0
- package/types/maplestory/api/common/mapleStoryApi.d.ts +36 -25
- package/types/maplestory/api/kms/dto/character/characterAbility.d.ts +2 -2
- package/types/maplestory/api/kms/dto/character/characterAndroidEquipment.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterBasic.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterCashItemEquipment.d.ts +3 -3
- package/types/maplestory/api/kms/dto/character/characterDojang.d.ts +4 -4
- package/types/maplestory/api/kms/dto/character/characterHexaMatrixStat.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterHyperStat.d.ts +6 -6
- package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +2 -2
- package/types/maplestory/api/kms/dto/character/characterLinkSkill.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterPropensity.d.ts +6 -6
- package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterStat.d.ts +2 -2
- package/types/maplestory/api/kms/dto/character/characterSymbolEquipment.d.ts +1 -1
- package/types/maplestory/api/kms/dto/character/characterVMatrix.d.ts +2 -2
- package/types/maplestory/api/kms/dto/history/starforceHistory.d.ts +4 -4
- package/types/maplestory/api/kms/dto/union/unionRaider.d.ts +1 -1
- package/types/maplestory/api/kms/mapleStoryApi.d.ts +32 -32
- package/types/maplestory/api/kms/response/character/characterAndroidEquipmentBody.d.ts +1 -1
- package/types/maplestory/api/kms/response/character/characterBasicBody.d.ts +1 -1
- package/types/maplestory/api/kms/response/character/characterPopularityBody.d.ts +1 -1
- package/types/maplestory/api/kms/response/union/unionRaiderBody.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterAbility.d.ts +2 -2
- package/types/maplestory/api/msea/dto/character/characterBasic.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterCashItemEquipment.d.ts +3 -3
- package/types/maplestory/api/msea/dto/character/characterDojang.d.ts +4 -4
- package/types/maplestory/api/msea/dto/character/characterHexaMatrixStat.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterHyperStat.d.ts +6 -6
- package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +2 -2
- package/types/maplestory/api/msea/dto/character/characterLinkSkill.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterPropensity.d.ts +6 -6
- package/types/maplestory/api/msea/dto/character/characterSkill.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterStat.d.ts +2 -2
- package/types/maplestory/api/msea/dto/character/characterSymbolEquipment.d.ts +1 -1
- package/types/maplestory/api/msea/dto/character/characterVMatrix.d.ts +2 -2
- package/types/maplestory/api/msea/dto/union/unionRaider.d.ts +1 -1
- package/types/maplestory/api/msea/mapleStoryApi.d.ts +25 -25
- package/types/maplestory/api/msea/response/character/characterBasicBody.d.ts +1 -1
- package/types/maplestory/api/msea/response/character/characterPopularityBody.d.ts +1 -1
- package/types/maplestory/api/msea/response/union/unionRaiderBody.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterAbility.d.ts +2 -2
- package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +3 -3
- package/types/maplestory/api/tms/dto/character/characterDojang.d.ts +4 -4
- package/types/maplestory/api/tms/dto/character/characterHexaMatrixStat.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterHyperStat.d.ts +6 -6
- package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +2 -2
- package/types/maplestory/api/tms/dto/character/characterLinkSkill.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterPropensity.d.ts +6 -6
- package/types/maplestory/api/tms/dto/character/characterSkill.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterStat.d.ts +2 -2
- package/types/maplestory/api/tms/dto/character/characterSymbolEquipment.d.ts +1 -1
- package/types/maplestory/api/tms/dto/character/characterVMatrix.d.ts +2 -2
- package/types/maplestory/api/tms/dto/union/unionRaider.d.ts +1 -1
- package/types/maplestory/api/tms/mapleStoryApi.d.ts +25 -25
- package/types/maplestory/api/tms/response/character/characterBasicBody.d.ts +1 -1
- package/types/maplestory/api/tms/response/character/characterPopularityBody.d.ts +1 -1
- package/types/maplestory/api/tms/response/union/unionRaiderBody.d.ts +1 -1
|
@@ -52,6 +52,7 @@ import { AchievementDto } from './dto/user/achievement.js';
|
|
|
52
52
|
import { CharacterListDto } from './dto/user/characterList.js';
|
|
53
53
|
import { CharacterImageAction, CharacterImageEmotion, CharacterImageWeaponMotion } from '../common/enum/characterImage.js';
|
|
54
54
|
import { MapleStoryApi as MapleStoryApi$1 } from '../common/mapleStoryApi.js';
|
|
55
|
+
import { removeQuery } from '../common/lib.js';
|
|
55
56
|
import { __exports as buffer } from '../../../_virtual/index.js_commonjs-exports.js';
|
|
56
57
|
|
|
57
58
|
/**
|
|
@@ -137,6 +138,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
137
138
|
const { data } = await this.client.get(path, {
|
|
138
139
|
params: query,
|
|
139
140
|
});
|
|
141
|
+
if (this.isEmptyResponse(data)) {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
140
144
|
return new CharacterBasicDto(data);
|
|
141
145
|
}
|
|
142
146
|
/**
|
|
@@ -152,7 +156,11 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
152
156
|
* @param dateOptions 조회 기준일 (KST)
|
|
153
157
|
*/
|
|
154
158
|
async getCharacterImage(ocid, imageOptions, dateOptions) {
|
|
155
|
-
const
|
|
159
|
+
const basic = await this.getCharacterBasic(ocid, dateOptions);
|
|
160
|
+
if (!basic) {
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
const { date, characterImage } = basic;
|
|
156
164
|
const action = imageOptions?.action ?? CharacterImageAction.Stand1;
|
|
157
165
|
const emotion = imageOptions?.emotion ?? CharacterImageEmotion.Default;
|
|
158
166
|
const wmotion = imageOptions?.wmotion ?? CharacterImageWeaponMotion.Default;
|
|
@@ -162,6 +170,7 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
162
170
|
const height = 300;
|
|
163
171
|
const x = 150;
|
|
164
172
|
const y = 200;
|
|
173
|
+
const path = removeQuery(characterImage);
|
|
165
174
|
const query = {
|
|
166
175
|
action: `${action}.${actionFrame}`,
|
|
167
176
|
emotion: `${emotion}.${emotionFrame}`,
|
|
@@ -223,6 +232,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
223
232
|
const { data } = await this.client.get(path, {
|
|
224
233
|
params: query,
|
|
225
234
|
});
|
|
235
|
+
if (this.isEmptyResponse(data)) {
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
226
238
|
return new CharacterPopularityDto(data);
|
|
227
239
|
}
|
|
228
240
|
/**
|
|
@@ -252,6 +264,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
252
264
|
const { data } = await this.client.get(path, {
|
|
253
265
|
params: query,
|
|
254
266
|
});
|
|
267
|
+
if (this.isEmptyResponse(data)) {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
255
270
|
return new CharacterStatDto(data);
|
|
256
271
|
}
|
|
257
272
|
/**
|
|
@@ -281,6 +296,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
281
296
|
const { data } = await this.client.get(path, {
|
|
282
297
|
params: query,
|
|
283
298
|
});
|
|
299
|
+
if (this.isEmptyResponse(data)) {
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
284
302
|
return new CharacterHyperStatDto(data);
|
|
285
303
|
}
|
|
286
304
|
/**
|
|
@@ -310,6 +328,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
310
328
|
const { data } = await this.client.get(path, {
|
|
311
329
|
params: query,
|
|
312
330
|
});
|
|
331
|
+
if (this.isEmptyResponse(data)) {
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
313
334
|
return new CharacterPropensityDto(data);
|
|
314
335
|
}
|
|
315
336
|
/**
|
|
@@ -339,6 +360,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
339
360
|
const { data } = await this.client.get(path, {
|
|
340
361
|
params: query,
|
|
341
362
|
});
|
|
363
|
+
if (this.isEmptyResponse(data)) {
|
|
364
|
+
return null;
|
|
365
|
+
}
|
|
342
366
|
return new CharacterAbilityDto(data);
|
|
343
367
|
}
|
|
344
368
|
/**
|
|
@@ -368,6 +392,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
368
392
|
const { data } = await this.client.get(path, {
|
|
369
393
|
params: query,
|
|
370
394
|
});
|
|
395
|
+
if (this.isEmptyResponse(data)) {
|
|
396
|
+
return null;
|
|
397
|
+
}
|
|
371
398
|
return new CharacterItemEquipmentDto(data);
|
|
372
399
|
}
|
|
373
400
|
/**
|
|
@@ -397,6 +424,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
397
424
|
const { data } = await this.client.get(path, {
|
|
398
425
|
params: query,
|
|
399
426
|
});
|
|
427
|
+
if (this.isEmptyResponse(data)) {
|
|
428
|
+
return null;
|
|
429
|
+
}
|
|
400
430
|
return new CharacterCashItemEquipmentDto(data);
|
|
401
431
|
}
|
|
402
432
|
/**
|
|
@@ -426,6 +456,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
426
456
|
const { data } = await this.client.get(path, {
|
|
427
457
|
params: query,
|
|
428
458
|
});
|
|
459
|
+
if (this.isEmptyResponse(data)) {
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
429
462
|
return new CharacterSymbolEquipmentDto(data);
|
|
430
463
|
}
|
|
431
464
|
/**
|
|
@@ -455,6 +488,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
455
488
|
const { data } = await this.client.get(path, {
|
|
456
489
|
params: query,
|
|
457
490
|
});
|
|
491
|
+
if (this.isEmptyResponse(data)) {
|
|
492
|
+
return null;
|
|
493
|
+
}
|
|
458
494
|
return new CharacterSetEffectDto(data);
|
|
459
495
|
}
|
|
460
496
|
/**
|
|
@@ -484,6 +520,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
484
520
|
const { data } = await this.client.get(path, {
|
|
485
521
|
params: query,
|
|
486
522
|
});
|
|
523
|
+
if (this.isEmptyResponse(data)) {
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
487
526
|
return new CharacterBeautyEquipmentDto(data);
|
|
488
527
|
}
|
|
489
528
|
/**
|
|
@@ -513,6 +552,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
513
552
|
const { data } = await this.client.get(path, {
|
|
514
553
|
params: query,
|
|
515
554
|
});
|
|
555
|
+
if (this.isEmptyResponse(data)) {
|
|
556
|
+
return null;
|
|
557
|
+
}
|
|
516
558
|
return new CharacterAndroidEquipmentDto(data);
|
|
517
559
|
}
|
|
518
560
|
/**
|
|
@@ -542,6 +584,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
542
584
|
const { data } = await this.client.get(path, {
|
|
543
585
|
params: query,
|
|
544
586
|
});
|
|
587
|
+
if (this.isEmptyResponse(data)) {
|
|
588
|
+
return null;
|
|
589
|
+
}
|
|
545
590
|
return new CharacterPetEquipmentDto(data);
|
|
546
591
|
}
|
|
547
592
|
/**
|
|
@@ -573,6 +618,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
573
618
|
const { data } = await this.client.get(path, {
|
|
574
619
|
params: query,
|
|
575
620
|
});
|
|
621
|
+
if (this.isEmptyResponse(data)) {
|
|
622
|
+
return null;
|
|
623
|
+
}
|
|
576
624
|
return new CharacterSkillDto(data);
|
|
577
625
|
}
|
|
578
626
|
/**
|
|
@@ -602,6 +650,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
602
650
|
const { data } = await this.client.get(path, {
|
|
603
651
|
params: query,
|
|
604
652
|
});
|
|
653
|
+
if (this.isEmptyResponse(data)) {
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
605
656
|
return new CharacterLinkSkillDto(data);
|
|
606
657
|
}
|
|
607
658
|
/**
|
|
@@ -631,6 +682,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
631
682
|
const { data } = await this.client.get(path, {
|
|
632
683
|
params: query,
|
|
633
684
|
});
|
|
685
|
+
if (this.isEmptyResponse(data)) {
|
|
686
|
+
return null;
|
|
687
|
+
}
|
|
634
688
|
return new CharacterVMatrixDto(data);
|
|
635
689
|
}
|
|
636
690
|
/**
|
|
@@ -660,6 +714,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
660
714
|
const { data } = await this.client.get(path, {
|
|
661
715
|
params: query,
|
|
662
716
|
});
|
|
717
|
+
if (this.isEmptyResponse(data)) {
|
|
718
|
+
return null;
|
|
719
|
+
}
|
|
663
720
|
return new CharacterHexaMatrixDto(data);
|
|
664
721
|
}
|
|
665
722
|
/**
|
|
@@ -689,6 +746,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
689
746
|
const { data } = await this.client.get(path, {
|
|
690
747
|
params: query,
|
|
691
748
|
});
|
|
749
|
+
if (this.isEmptyResponse(data)) {
|
|
750
|
+
return null;
|
|
751
|
+
}
|
|
692
752
|
return new CharacterHexaMatrixStatDto(data);
|
|
693
753
|
}
|
|
694
754
|
/**
|
|
@@ -718,6 +778,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
718
778
|
const { data } = await this.client.get(path, {
|
|
719
779
|
params: query,
|
|
720
780
|
});
|
|
781
|
+
if (this.isEmptyResponse(data)) {
|
|
782
|
+
return null;
|
|
783
|
+
}
|
|
721
784
|
return new CharacterDojangDto(data);
|
|
722
785
|
}
|
|
723
786
|
/**
|
|
@@ -747,6 +810,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
747
810
|
const { data } = await this.client.get(path, {
|
|
748
811
|
params: query,
|
|
749
812
|
});
|
|
813
|
+
if (this.isEmptyResponse(data)) {
|
|
814
|
+
return null;
|
|
815
|
+
}
|
|
750
816
|
return new CharacterOtherStatDto(data);
|
|
751
817
|
}
|
|
752
818
|
/**
|
|
@@ -776,6 +842,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
776
842
|
const { data } = await this.client.get(path, {
|
|
777
843
|
params: query,
|
|
778
844
|
});
|
|
845
|
+
if (this.isEmptyResponse(data)) {
|
|
846
|
+
return null;
|
|
847
|
+
}
|
|
779
848
|
return new CharacterRingExchangeSkillEquipmentDto(data);
|
|
780
849
|
}
|
|
781
850
|
//#endregion
|
|
@@ -807,6 +876,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
807
876
|
const { data } = await this.client.get(path, {
|
|
808
877
|
params: query,
|
|
809
878
|
});
|
|
879
|
+
if (this.isEmptyResponse(data)) {
|
|
880
|
+
return null;
|
|
881
|
+
}
|
|
810
882
|
return new UnionDto(data);
|
|
811
883
|
}
|
|
812
884
|
/**
|
|
@@ -836,12 +908,15 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
836
908
|
const { data } = await this.client.get(path, {
|
|
837
909
|
params: query,
|
|
838
910
|
});
|
|
911
|
+
if (this.isEmptyResponse(data)) {
|
|
912
|
+
return null;
|
|
913
|
+
}
|
|
839
914
|
return new UnionRaiderDto(data);
|
|
840
915
|
}
|
|
841
916
|
/**
|
|
842
917
|
* 유니온 아티팩트 정보를 조회합니다.
|
|
843
918
|
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
844
|
-
* -
|
|
919
|
+
* - 2024년 1월 18일 데이터부터 조회할 수 있습니다.
|
|
845
920
|
* - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
|
|
846
921
|
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
847
922
|
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
@@ -853,9 +928,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
853
928
|
const path = `${this.subUrl}/v1/user/union-artifact`;
|
|
854
929
|
const date = dateOptions
|
|
855
930
|
? this.toDateString(dateOptions, {
|
|
856
|
-
year:
|
|
857
|
-
month:
|
|
858
|
-
day:
|
|
931
|
+
year: 2024,
|
|
932
|
+
month: 1,
|
|
933
|
+
day: 18,
|
|
859
934
|
})
|
|
860
935
|
: undefined;
|
|
861
936
|
const query = {
|
|
@@ -865,13 +940,16 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
865
940
|
const { data } = await this.client.get(path, {
|
|
866
941
|
params: query,
|
|
867
942
|
});
|
|
943
|
+
if (this.isEmptyResponse(data)) {
|
|
944
|
+
return null;
|
|
945
|
+
}
|
|
868
946
|
return new UnionArtifactDto(data);
|
|
869
947
|
}
|
|
870
948
|
/**
|
|
871
949
|
* 유니온 챔피언 정보를 조회합니다.<br>
|
|
872
950
|
* 유니온 챔피언 정보는 2025년 2월 20일 메이플스토리 점검 이후 데이터부터 조회 가능합니다.<br>
|
|
873
951
|
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
874
|
-
* -
|
|
952
|
+
* - 2025년 2월 20일 데이터부터 조회할 수 있습니다.
|
|
875
953
|
* - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
|
|
876
954
|
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
877
955
|
* - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
|
|
@@ -883,9 +961,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
883
961
|
const path = `${this.subUrl}/v1/user/union-champion`;
|
|
884
962
|
const date = dateOptions
|
|
885
963
|
? this.toDateString(dateOptions, {
|
|
886
|
-
year:
|
|
887
|
-
month:
|
|
888
|
-
day:
|
|
964
|
+
year: 2025,
|
|
965
|
+
month: 2,
|
|
966
|
+
day: 20,
|
|
889
967
|
})
|
|
890
968
|
: undefined;
|
|
891
969
|
const query = {
|
|
@@ -895,6 +973,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
895
973
|
const { data } = await this.client.get(path, {
|
|
896
974
|
params: query,
|
|
897
975
|
});
|
|
976
|
+
if (this.isEmptyResponse(data)) {
|
|
977
|
+
return null;
|
|
978
|
+
}
|
|
898
979
|
return new UnionChampionDto(data);
|
|
899
980
|
}
|
|
900
981
|
//#endregion
|
|
@@ -918,6 +999,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
918
999
|
world_name: worldName,
|
|
919
1000
|
},
|
|
920
1001
|
});
|
|
1002
|
+
if (this.isEmptyResponse(data)) {
|
|
1003
|
+
return null;
|
|
1004
|
+
}
|
|
921
1005
|
return new GuildDto(data);
|
|
922
1006
|
}
|
|
923
1007
|
/**
|
|
@@ -947,6 +1031,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
947
1031
|
const { data } = await this.client.get(path, {
|
|
948
1032
|
params: query,
|
|
949
1033
|
});
|
|
1034
|
+
if (this.isEmptyResponse(data)) {
|
|
1035
|
+
return null;
|
|
1036
|
+
}
|
|
950
1037
|
return new GuildBasicDto(data);
|
|
951
1038
|
}
|
|
952
1039
|
async getStarforceHistory(count, parameter) {
|
|
@@ -1115,10 +1202,10 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
1115
1202
|
ranking_type: 0,
|
|
1116
1203
|
};
|
|
1117
1204
|
if (filterOptions) {
|
|
1118
|
-
const { worldName, rankingType,
|
|
1205
|
+
const { worldName, rankingType, guildName, page } = filterOptions;
|
|
1119
1206
|
query.world_name = worldName;
|
|
1120
1207
|
query.ranking_type = rankingType;
|
|
1121
|
-
query.
|
|
1208
|
+
query.guild_name = guildName;
|
|
1122
1209
|
query.page = page;
|
|
1123
1210
|
}
|
|
1124
1211
|
const { data } = await this.client.get(path, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CharacterBasicDto as CharacterBasicDto$1 } from '../../../common/dto/character/characterBasic.js';
|
|
2
|
+
import { removeQuery } from '../../../common/lib.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Character basic information
|
|
@@ -73,8 +74,8 @@ class CharacterBasicDto extends CharacterBasicDto$1 {
|
|
|
73
74
|
this.characterExp = character_exp;
|
|
74
75
|
this.characterExpRate = character_exp_rate;
|
|
75
76
|
this.characterGuildName = character_guild_name;
|
|
76
|
-
this.characterImage = character_image;
|
|
77
|
-
this.characterDateCreate = new Date(character_date_create);
|
|
77
|
+
this.characterImage = removeQuery(character_image);
|
|
78
|
+
this.characterDateCreate = character_date_create ? new Date(character_date_create) : null;
|
|
78
79
|
this.accessFlag = access_flag;
|
|
79
80
|
this.liberationQuestClearFlag = liberation_quest_clear_flag;
|
|
80
81
|
}
|
|
@@ -28,6 +28,7 @@ import { UnionArtifactDto } from './dto/union/unionArtifact.js';
|
|
|
28
28
|
import { UnionRaiderDto } from './dto/union/unionRaider.js';
|
|
29
29
|
import { CharacterImageAction, CharacterImageEmotion, CharacterImageWeaponMotion } from '../common/enum/characterImage.js';
|
|
30
30
|
import { MapleStoryApi as MapleStoryApi$1 } from '../common/mapleStoryApi.js';
|
|
31
|
+
import { removeQuery } from '../common/lib.js';
|
|
31
32
|
import { __exports as buffer } from '../../../_virtual/index.js_commonjs-exports.js';
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -85,6 +86,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
85
86
|
const { data } = await this.client.get(path, {
|
|
86
87
|
params: query,
|
|
87
88
|
});
|
|
89
|
+
if (this.isEmptyResponse(data)) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
88
92
|
return new CharacterBasicDto(data);
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
@@ -99,7 +103,11 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
99
103
|
* @param dateOptions Reference date for query (SGT)
|
|
100
104
|
*/
|
|
101
105
|
async getCharacterImage(ocid, imageOptions, dateOptions) {
|
|
102
|
-
const
|
|
106
|
+
const basic = await this.getCharacterBasic(ocid, dateOptions);
|
|
107
|
+
if (!basic) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
const { date, characterImage } = basic;
|
|
103
111
|
const action = imageOptions?.action ?? CharacterImageAction.Stand1;
|
|
104
112
|
const emotion = imageOptions?.emotion ?? CharacterImageEmotion.Default;
|
|
105
113
|
const wmotion = imageOptions?.wmotion ?? CharacterImageWeaponMotion.Default;
|
|
@@ -109,6 +117,7 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
109
117
|
const height = 96;
|
|
110
118
|
const x = imageOptions?.x ?? null;
|
|
111
119
|
const y = imageOptions?.y ?? null;
|
|
120
|
+
const path = removeQuery(characterImage);
|
|
112
121
|
const query = {
|
|
113
122
|
action: `${action}.${actionFrame}`,
|
|
114
123
|
emotion: `${emotion}.${emotionFrame}`,
|
|
@@ -173,6 +182,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
173
182
|
const { data } = await this.client.get(path, {
|
|
174
183
|
params: query,
|
|
175
184
|
});
|
|
185
|
+
if (this.isEmptyResponse(data)) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
176
188
|
return new CharacterPopularityDto(data);
|
|
177
189
|
}
|
|
178
190
|
/**
|
|
@@ -201,6 +213,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
201
213
|
const { data } = await this.client.get(path, {
|
|
202
214
|
params: query,
|
|
203
215
|
});
|
|
216
|
+
if (this.isEmptyResponse(data)) {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
204
219
|
return new CharacterStatDto(data);
|
|
205
220
|
}
|
|
206
221
|
/**
|
|
@@ -229,6 +244,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
229
244
|
const { data } = await this.client.get(path, {
|
|
230
245
|
params: query,
|
|
231
246
|
});
|
|
247
|
+
if (this.isEmptyResponse(data)) {
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
232
250
|
return new CharacterHyperStatDto(data);
|
|
233
251
|
}
|
|
234
252
|
/**
|
|
@@ -257,6 +275,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
257
275
|
const { data } = await this.client.get(path, {
|
|
258
276
|
params: query,
|
|
259
277
|
});
|
|
278
|
+
if (this.isEmptyResponse(data)) {
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
260
281
|
return new CharacterPropensityDto(data);
|
|
261
282
|
}
|
|
262
283
|
/**
|
|
@@ -285,6 +306,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
285
306
|
const { data } = await this.client.get(path, {
|
|
286
307
|
params: query,
|
|
287
308
|
});
|
|
309
|
+
if (this.isEmptyResponse(data)) {
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
288
312
|
return new CharacterAbilityDto(data);
|
|
289
313
|
}
|
|
290
314
|
/**
|
|
@@ -313,6 +337,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
313
337
|
const { data } = await this.client.get(path, {
|
|
314
338
|
params: query,
|
|
315
339
|
});
|
|
340
|
+
if (this.isEmptyResponse(data)) {
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
316
343
|
return new CharacterItemEquipmentDto(data);
|
|
317
344
|
}
|
|
318
345
|
/**
|
|
@@ -341,6 +368,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
341
368
|
const { data } = await this.client.get(path, {
|
|
342
369
|
params: query,
|
|
343
370
|
});
|
|
371
|
+
if (this.isEmptyResponse(data)) {
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
344
374
|
return new CharacterCashItemEquipmentDto(data);
|
|
345
375
|
}
|
|
346
376
|
/**
|
|
@@ -369,6 +399,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
369
399
|
const { data } = await this.client.get(path, {
|
|
370
400
|
params: query,
|
|
371
401
|
});
|
|
402
|
+
if (this.isEmptyResponse(data)) {
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
372
405
|
return new CharacterSymbolEquipmentDto(data);
|
|
373
406
|
}
|
|
374
407
|
/**
|
|
@@ -397,6 +430,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
397
430
|
const { data } = await this.client.get(path, {
|
|
398
431
|
params: query,
|
|
399
432
|
});
|
|
433
|
+
if (this.isEmptyResponse(data)) {
|
|
434
|
+
return null;
|
|
435
|
+
}
|
|
400
436
|
return new CharacterSetEffectDto(data);
|
|
401
437
|
}
|
|
402
438
|
/**
|
|
@@ -425,6 +461,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
425
461
|
const { data } = await this.client.get(path, {
|
|
426
462
|
params: query,
|
|
427
463
|
});
|
|
464
|
+
if (this.isEmptyResponse(data)) {
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
428
467
|
return new CharacterBeautyEquipmentDto(data);
|
|
429
468
|
}
|
|
430
469
|
/**
|
|
@@ -453,6 +492,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
453
492
|
const { data } = await this.client.get(path, {
|
|
454
493
|
params: query,
|
|
455
494
|
});
|
|
495
|
+
if (this.isEmptyResponse(data)) {
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
456
498
|
return new CharacterAndroidEquipmentDto(data);
|
|
457
499
|
}
|
|
458
500
|
/**
|
|
@@ -481,6 +523,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
481
523
|
const { data } = await this.client.get(path, {
|
|
482
524
|
params: query,
|
|
483
525
|
});
|
|
526
|
+
if (this.isEmptyResponse(data)) {
|
|
527
|
+
return null;
|
|
528
|
+
}
|
|
484
529
|
return new CharacterPetEquipmentDto(data);
|
|
485
530
|
}
|
|
486
531
|
/**
|
|
@@ -511,6 +556,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
511
556
|
const { data } = await this.client.get(path, {
|
|
512
557
|
params: query,
|
|
513
558
|
});
|
|
559
|
+
if (this.isEmptyResponse(data)) {
|
|
560
|
+
return null;
|
|
561
|
+
}
|
|
514
562
|
return new CharacterSkillDto(data);
|
|
515
563
|
}
|
|
516
564
|
/**
|
|
@@ -539,6 +587,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
539
587
|
const { data } = await this.client.get(path, {
|
|
540
588
|
params: query,
|
|
541
589
|
});
|
|
590
|
+
if (this.isEmptyResponse(data)) {
|
|
591
|
+
return null;
|
|
592
|
+
}
|
|
542
593
|
return new CharacterLinkSkillDto(data);
|
|
543
594
|
}
|
|
544
595
|
/**
|
|
@@ -567,6 +618,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
567
618
|
const { data } = await this.client.get(path, {
|
|
568
619
|
params: query,
|
|
569
620
|
});
|
|
621
|
+
if (this.isEmptyResponse(data)) {
|
|
622
|
+
return null;
|
|
623
|
+
}
|
|
570
624
|
return new CharacterVMatrixDto(data);
|
|
571
625
|
}
|
|
572
626
|
/**
|
|
@@ -595,6 +649,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
595
649
|
const { data } = await this.client.get(path, {
|
|
596
650
|
params: query,
|
|
597
651
|
});
|
|
652
|
+
if (this.isEmptyResponse(data)) {
|
|
653
|
+
return null;
|
|
654
|
+
}
|
|
598
655
|
return new CharacterHexaMatrixDto(data);
|
|
599
656
|
}
|
|
600
657
|
/**
|
|
@@ -623,6 +680,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
623
680
|
const { data } = await this.client.get(path, {
|
|
624
681
|
params: query,
|
|
625
682
|
});
|
|
683
|
+
if (this.isEmptyResponse(data)) {
|
|
684
|
+
return null;
|
|
685
|
+
}
|
|
626
686
|
return new CharacterHexaMatrixStatDto(data);
|
|
627
687
|
}
|
|
628
688
|
/**
|
|
@@ -651,6 +711,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
651
711
|
const { data } = await this.client.get(path, {
|
|
652
712
|
params: query,
|
|
653
713
|
});
|
|
714
|
+
if (this.isEmptyResponse(data)) {
|
|
715
|
+
return null;
|
|
716
|
+
}
|
|
654
717
|
return new CharacterDojangDto(data);
|
|
655
718
|
}
|
|
656
719
|
//#endregion
|
|
@@ -681,6 +744,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
681
744
|
const { data } = await this.client.get(path, {
|
|
682
745
|
params: query,
|
|
683
746
|
});
|
|
747
|
+
if (this.isEmptyResponse(data)) {
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
684
750
|
return new UnionDto(data);
|
|
685
751
|
}
|
|
686
752
|
/**
|
|
@@ -709,6 +775,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
709
775
|
const { data } = await this.client.get(path, {
|
|
710
776
|
params: query,
|
|
711
777
|
});
|
|
778
|
+
if (this.isEmptyResponse(data)) {
|
|
779
|
+
return null;
|
|
780
|
+
}
|
|
712
781
|
return new UnionRaiderDto(data);
|
|
713
782
|
}
|
|
714
783
|
/**
|
|
@@ -737,6 +806,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
737
806
|
const { data } = await this.client.get(path, {
|
|
738
807
|
params: query,
|
|
739
808
|
});
|
|
809
|
+
if (this.isEmptyResponse(data)) {
|
|
810
|
+
return null;
|
|
811
|
+
}
|
|
740
812
|
return new UnionArtifactDto(data);
|
|
741
813
|
}
|
|
742
814
|
//#endregion
|
|
@@ -759,6 +831,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
759
831
|
world_name: worldName,
|
|
760
832
|
},
|
|
761
833
|
});
|
|
834
|
+
if (this.isEmptyResponse(data)) {
|
|
835
|
+
return null;
|
|
836
|
+
}
|
|
762
837
|
return new GuildDto(data);
|
|
763
838
|
}
|
|
764
839
|
/**
|
|
@@ -787,6 +862,9 @@ class MapleStoryApi extends MapleStoryApi$1 {
|
|
|
787
862
|
const { data } = await this.client.get(path, {
|
|
788
863
|
params: query,
|
|
789
864
|
});
|
|
865
|
+
if (this.isEmptyResponse(data)) {
|
|
866
|
+
return null;
|
|
867
|
+
}
|
|
790
868
|
return new GuildBasicDto(data);
|
|
791
869
|
}
|
|
792
870
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CharacterBasicDto as CharacterBasicDto$1 } from '../../../common/dto/character/characterBasic.js';
|
|
2
|
+
import { removeQuery } from '../../../common/lib.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 角色基本資訊
|
|
@@ -73,8 +74,8 @@ class CharacterBasicDto extends CharacterBasicDto$1 {
|
|
|
73
74
|
this.characterExp = character_exp;
|
|
74
75
|
this.characterExpRate = character_exp_rate;
|
|
75
76
|
this.characterGuildName = character_guild_name;
|
|
76
|
-
this.characterImage = character_image;
|
|
77
|
-
this.characterDateCreate = new Date(character_date_create);
|
|
77
|
+
this.characterImage = removeQuery(character_image);
|
|
78
|
+
this.characterDateCreate = character_date_create ? new Date(character_date_create) : null;
|
|
78
79
|
this.accessFlag = access_flag;
|
|
79
80
|
this.liberationQuestClear = liberation_quest_clear;
|
|
80
81
|
}
|