maplestory-openapi 2.7.3 → 2.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/index.js +2492 -0
- package/dist/index.min.js +10 -1
- package/dist/index.mjs +2492 -0
- package/package.json +2 -1
- package/types/maplestory/api/dto/character/characterImageDto.d.ts +96 -0
- package/types/maplestory/api/mapleStoryApi.d.ts +43 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maplestory-openapi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maplestory",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@types/xml2js": "^0.4.14",
|
|
59
59
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
60
60
|
"@typescript-eslint/parser": "^6.15.0",
|
|
61
|
+
"buffer": "^6.0.3",
|
|
61
62
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
62
63
|
"eslint": "^8.56.0",
|
|
63
64
|
"eslint-config-google": "^0.14.0",
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 캐릭터 외형 이미지 정보
|
|
3
|
+
*/
|
|
4
|
+
declare class CharacterImageDto {
|
|
5
|
+
/**
|
|
6
|
+
* 조회 기준일
|
|
7
|
+
*/
|
|
8
|
+
date: Date | null;
|
|
9
|
+
/**
|
|
10
|
+
* 캐릭터 외형 이미지 원본 (URL)
|
|
11
|
+
*/
|
|
12
|
+
originUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* 캐릭터 외형 기본 이미지 (base64)
|
|
15
|
+
*/
|
|
16
|
+
originImage: string;
|
|
17
|
+
/**
|
|
18
|
+
* 캐릭터 외형 이미지 (base64)
|
|
19
|
+
*/
|
|
20
|
+
image: string;
|
|
21
|
+
/**
|
|
22
|
+
* 캐릭터 액션
|
|
23
|
+
*/
|
|
24
|
+
action: CharacterImageAction;
|
|
25
|
+
/**
|
|
26
|
+
* 캐릭터 감정표현
|
|
27
|
+
*/
|
|
28
|
+
emotion: CharacterImageEmotion;
|
|
29
|
+
/**
|
|
30
|
+
* 캐릭터 무기 모션
|
|
31
|
+
*/
|
|
32
|
+
wmotion: CharacterImageWeaponMotion;
|
|
33
|
+
/**
|
|
34
|
+
* 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
|
|
35
|
+
*/
|
|
36
|
+
width: number;
|
|
37
|
+
/**
|
|
38
|
+
* 세로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
|
|
39
|
+
*/
|
|
40
|
+
height: number;
|
|
41
|
+
/**
|
|
42
|
+
* 캐릭터의 가로 좌표
|
|
43
|
+
*/
|
|
44
|
+
x: number | null;
|
|
45
|
+
/**
|
|
46
|
+
* 캐릭터의 세로 좌표.
|
|
47
|
+
*/
|
|
48
|
+
y: number | null;
|
|
49
|
+
constructor(obj: {
|
|
50
|
+
date: Date | null;
|
|
51
|
+
originUrl: string;
|
|
52
|
+
originImage: string;
|
|
53
|
+
image: string;
|
|
54
|
+
action: CharacterImageAction;
|
|
55
|
+
emotion: CharacterImageEmotion;
|
|
56
|
+
wmotion: CharacterImageWeaponMotion;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
x: number | null;
|
|
60
|
+
y: number | null;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 캐릭터 액션
|
|
65
|
+
*/
|
|
66
|
+
declare enum CharacterImageAction {
|
|
67
|
+
Stand1 = "A00",
|
|
68
|
+
Stand2 = "A01",
|
|
69
|
+
Walk1 = "A02",
|
|
70
|
+
Walk2 = "A03",
|
|
71
|
+
Prone = "A04",
|
|
72
|
+
Fly = "A05",
|
|
73
|
+
Jump = "A06",
|
|
74
|
+
Sit = "A07"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 캐릭터 감정표현
|
|
78
|
+
*/
|
|
79
|
+
declare enum CharacterImageEmotion {
|
|
80
|
+
Default = "E00",
|
|
81
|
+
Wink = "E01",
|
|
82
|
+
Smile = "E02",
|
|
83
|
+
Cry = "E03",
|
|
84
|
+
Angry = "E04",
|
|
85
|
+
Bewildered = "E05"
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* 캐릭터 무기 모션
|
|
89
|
+
*/
|
|
90
|
+
declare enum CharacterImageWeaponMotion {
|
|
91
|
+
Default = "W00",
|
|
92
|
+
OneHand = "W01",
|
|
93
|
+
TwoHands = "W02",
|
|
94
|
+
Gun = "W03"
|
|
95
|
+
}
|
|
96
|
+
export { CharacterImageDto, CharacterImageAction, CharacterImageEmotion, CharacterImageWeaponMotion };
|
|
@@ -8,6 +8,7 @@ import { CharacterDto } from './dto/character/characterDto';
|
|
|
8
8
|
import { CharacterHexaMatrixDto } from './dto/character/characterHexaMatrixDto';
|
|
9
9
|
import { CharacterHexaMatrixStatDto } from './dto/character/characterHexaMatrixStatDto';
|
|
10
10
|
import { CharacterHyperStatDto } from './dto/character/characterHyperStatDto';
|
|
11
|
+
import { CharacterImageAction, CharacterImageDto, CharacterImageEmotion, CharacterImageWeaponMotion } from './dto/character/characterImageDto';
|
|
11
12
|
import { CharacterItemEquipmentDto } from './dto/character/characterItemEquipmentDto';
|
|
12
13
|
import { CharacterLinkSkillDto } from './dto/character/characterLinkSkillDto';
|
|
13
14
|
import { CharacterListDto } from './dto/character/characterListDto';
|
|
@@ -83,6 +84,18 @@ declare class MapleStoryApi {
|
|
|
83
84
|
* @param dateOptions 조회 기준일 (KST)
|
|
84
85
|
*/
|
|
85
86
|
getCharacterBasic(ocid: string, dateOptions?: DateOptions): Promise<CharacterBasicDto>;
|
|
87
|
+
/**
|
|
88
|
+
* 캐릭터 외형 이미지 정보를 조회합니다.
|
|
89
|
+
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
90
|
+
* - 2023년 12월 21일 데이터부터 조회할 수 있습니다.
|
|
91
|
+
* - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
|
|
92
|
+
* - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
|
|
93
|
+
*
|
|
94
|
+
* @param ocid 캐릭터 식별자
|
|
95
|
+
* @param imageOptions 캐릭터 외형 파라미터
|
|
96
|
+
* @param dateOptions 조회 기준일 (KST)
|
|
97
|
+
*/
|
|
98
|
+
getCharacterImage(ocid: string, imageOptions?: CharacterImageOptions, dateOptions?: DateOptions): Promise<CharacterImageDto>;
|
|
86
99
|
/**
|
|
87
100
|
* 인기도 정보를 조회합니다.
|
|
88
101
|
* - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
|
|
@@ -573,6 +586,36 @@ declare class MapleStoryApi {
|
|
|
573
586
|
*/
|
|
574
587
|
private static toDateString;
|
|
575
588
|
}
|
|
589
|
+
type CharacterImageOptions = {
|
|
590
|
+
/**
|
|
591
|
+
* 캐릭터 액션
|
|
592
|
+
*/
|
|
593
|
+
action?: CharacterImageAction;
|
|
594
|
+
/**
|
|
595
|
+
* 캐릭터 감정표현
|
|
596
|
+
*/
|
|
597
|
+
emotion?: CharacterImageEmotion;
|
|
598
|
+
/**
|
|
599
|
+
* 캐릭터 무기 모션
|
|
600
|
+
*/
|
|
601
|
+
wmotion?: CharacterImageWeaponMotion;
|
|
602
|
+
/**
|
|
603
|
+
* 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
|
|
604
|
+
*/
|
|
605
|
+
width?: number;
|
|
606
|
+
/**
|
|
607
|
+
* 세로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
|
|
608
|
+
*/
|
|
609
|
+
height?: number;
|
|
610
|
+
/**
|
|
611
|
+
* 캐릭터의 가로 좌표
|
|
612
|
+
*/
|
|
613
|
+
x?: number;
|
|
614
|
+
/**
|
|
615
|
+
* 캐릭터의 세로 좌표.
|
|
616
|
+
*/
|
|
617
|
+
y?: number;
|
|
618
|
+
};
|
|
576
619
|
type OverallRankingApiFilterOptions = {
|
|
577
620
|
/**
|
|
578
621
|
* 월드 명
|