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