maplestory-openapi 3.3.0 → 3.4.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.
Files changed (137) hide show
  1. package/README.md +50 -39
  2. package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  3. package/dist/cjs/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +11 -1
  4. package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +1 -1
  5. package/dist/cjs/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  6. package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +1 -1
  7. package/dist/cjs/maplestory/api/tms/dto/character/character.js +22 -0
  8. package/dist/cjs/maplestory/api/tms/dto/character/characterAbility.js +108 -0
  9. package/dist/cjs/maplestory/api/tms/dto/character/characterAndroidEquipment.js +424 -0
  10. package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +93 -0
  11. package/dist/cjs/maplestory/api/tms/dto/character/characterBeautyEquipment.js +172 -0
  12. package/dist/cjs/maplestory/api/tms/dto/character/characterCashItemEquipment.js +228 -0
  13. package/dist/cjs/maplestory/api/tms/dto/character/characterDojang.js +49 -0
  14. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrix.js +73 -0
  15. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +113 -0
  16. package/dist/cjs/maplestory/api/tms/dto/character/characterHyperStat.js +97 -0
  17. package/dist/cjs/maplestory/api/tms/dto/character/characterImage.js +81 -0
  18. package/dist/cjs/maplestory/api/tms/dto/character/characterItemEquipment.js +1137 -0
  19. package/dist/cjs/maplestory/api/tms/dto/character/characterLinkSkill.js +115 -0
  20. package/dist/cjs/maplestory/api/tms/dto/character/characterPetEquipment.js +332 -0
  21. package/dist/cjs/maplestory/api/tms/dto/character/characterPopularity.js +27 -0
  22. package/dist/cjs/maplestory/api/tms/dto/character/characterPropensity.js +52 -0
  23. package/dist/cjs/maplestory/api/tms/dto/character/characterSetEffect.js +97 -0
  24. package/dist/cjs/maplestory/api/tms/dto/character/characterSkill.js +77 -0
  25. package/dist/cjs/maplestory/api/tms/dto/character/characterStat.js +57 -0
  26. package/dist/cjs/maplestory/api/tms/dto/character/characterSymbolEquipment.js +119 -0
  27. package/dist/cjs/maplestory/api/tms/dto/character/characterVMatrix.js +88 -0
  28. package/dist/cjs/maplestory/api/tms/dto/guild/guild.js +22 -0
  29. package/dist/cjs/maplestory/api/tms/dto/guild/guildBasic.js +107 -0
  30. package/dist/cjs/maplestory/api/tms/dto/union/union.js +47 -0
  31. package/dist/cjs/maplestory/api/tms/dto/union/unionArtifact.js +111 -0
  32. package/dist/cjs/maplestory/api/tms/dto/union/unionRaider.js +214 -0
  33. package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +802 -0
  34. package/dist/cjs/maplestory/api/tms/tms.js +109 -0
  35. package/dist/cjs/node_modules/dayjs/plugin/utc.js +1 -1
  36. package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  37. package/dist/esm/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +11 -1
  38. package/dist/esm/maplestory/api/kms/mapleStoryApi.js +1 -1
  39. package/dist/esm/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  40. package/dist/esm/maplestory/api/msea/mapleStoryApi.js +1 -1
  41. package/dist/esm/maplestory/api/tms/dto/character/character.js +18 -0
  42. package/dist/esm/maplestory/api/tms/dto/character/characterAbility.js +102 -0
  43. package/dist/esm/maplestory/api/tms/dto/character/characterAndroidEquipment.js +413 -0
  44. package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +89 -0
  45. package/dist/esm/maplestory/api/tms/dto/character/characterBeautyEquipment.js +165 -0
  46. package/dist/esm/maplestory/api/tms/dto/character/characterCashItemEquipment.js +221 -0
  47. package/dist/esm/maplestory/api/tms/dto/character/characterDojang.js +45 -0
  48. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrix.js +67 -0
  49. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +108 -0
  50. package/dist/esm/maplestory/api/tms/dto/character/characterHyperStat.js +92 -0
  51. package/dist/esm/maplestory/api/tms/dto/character/characterImage.js +77 -0
  52. package/dist/esm/maplestory/api/tms/dto/character/characterItemEquipment.js +1123 -0
  53. package/dist/esm/maplestory/api/tms/dto/character/characterLinkSkill.js +110 -0
  54. package/dist/esm/maplestory/api/tms/dto/character/characterPetEquipment.js +325 -0
  55. package/dist/esm/maplestory/api/tms/dto/character/characterPopularity.js +23 -0
  56. package/dist/esm/maplestory/api/tms/dto/character/characterPropensity.js +48 -0
  57. package/dist/esm/maplestory/api/tms/dto/character/characterSetEffect.js +90 -0
  58. package/dist/esm/maplestory/api/tms/dto/character/characterSkill.js +72 -0
  59. package/dist/esm/maplestory/api/tms/dto/character/characterStat.js +52 -0
  60. package/dist/esm/maplestory/api/tms/dto/character/characterSymbolEquipment.js +114 -0
  61. package/dist/esm/maplestory/api/tms/dto/character/characterVMatrix.js +83 -0
  62. package/dist/esm/maplestory/api/tms/dto/guild/guild.js +18 -0
  63. package/dist/esm/maplestory/api/tms/dto/guild/guildBasic.js +102 -0
  64. package/dist/esm/maplestory/api/tms/dto/union/union.js +43 -0
  65. package/dist/esm/maplestory/api/tms/dto/union/unionArtifact.js +105 -0
  66. package/dist/esm/maplestory/api/tms/dto/union/unionRaider.js +205 -0
  67. package/dist/esm/maplestory/api/tms/mapleStoryApi.js +794 -0
  68. package/dist/esm/maplestory/api/tms/tms.js +27 -0
  69. package/dist/esm/node_modules/dayjs/plugin/utc.js +1 -1
  70. package/dist/index.min.js +1 -1
  71. package/package.json +6 -1
  72. package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +2 -0
  73. package/types/maplestory/api/common/dto/character/characterSkill.d.ts +1 -1
  74. package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +8 -0
  75. package/types/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.d.ts +8 -0
  76. package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
  77. package/types/maplestory/api/kms/mapleStoryApi.d.ts +1 -1
  78. package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
  79. package/types/maplestory/api/kms/response/character/characterRingExchangeSkillEquipmentBody.d.ts +2 -0
  80. package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +8 -0
  81. package/types/maplestory/api/msea/dto/character/characterSkill.d.ts +1 -1
  82. package/types/maplestory/api/msea/mapleStoryApi.d.ts +1 -1
  83. package/types/maplestory/api/msea/response/character/characterItemEquipmentBody.d.ts +2 -0
  84. package/types/maplestory/api/msea/response/character/characterSkillBody.d.ts +1 -1
  85. package/types/maplestory/api/tms/dto/character/character.d.ts +12 -0
  86. package/types/maplestory/api/tms/dto/character/characterAbility.d.ts +72 -0
  87. package/types/maplestory/api/tms/dto/character/characterAndroidEquipment.d.ts +299 -0
  88. package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +68 -0
  89. package/types/maplestory/api/tms/dto/character/characterBeautyEquipment.d.ts +117 -0
  90. package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +158 -0
  91. package/types/maplestory/api/tms/dto/character/characterDojang.d.ts +32 -0
  92. package/types/maplestory/api/tms/dto/character/characterHexaMatrix.d.ts +48 -0
  93. package/types/maplestory/api/tms/dto/character/characterHexaMatrixStat.d.ts +78 -0
  94. package/types/maplestory/api/tms/dto/character/characterHyperStat.d.ts +70 -0
  95. package/types/maplestory/api/tms/dto/character/characterImage.d.ts +74 -0
  96. package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +864 -0
  97. package/types/maplestory/api/tms/dto/character/characterLinkSkill.d.ts +78 -0
  98. package/types/maplestory/api/tms/dto/character/characterPetEquipment.d.ts +230 -0
  99. package/types/maplestory/api/tms/dto/character/characterPopularity.d.ts +16 -0
  100. package/types/maplestory/api/tms/dto/character/characterPropensity.d.ts +36 -0
  101. package/types/maplestory/api/tms/dto/character/characterSetEffect.d.ts +66 -0
  102. package/types/maplestory/api/tms/dto/character/characterSkill.d.ts +54 -0
  103. package/types/maplestory/api/tms/dto/character/characterStat.d.ts +38 -0
  104. package/types/maplestory/api/tms/dto/character/characterSymbolEquipment.d.ts +86 -0
  105. package/types/maplestory/api/tms/dto/character/characterVMatrix.d.ts +62 -0
  106. package/types/maplestory/api/tms/dto/guild/guild.d.ts +12 -0
  107. package/types/maplestory/api/tms/dto/guild/guildBasic.d.ts +78 -0
  108. package/types/maplestory/api/tms/dto/union/union.d.ts +32 -0
  109. package/types/maplestory/api/tms/dto/union/unionArtifact.d.ts +76 -0
  110. package/types/maplestory/api/tms/dto/union/unionRaider.d.ts +147 -0
  111. package/types/maplestory/api/tms/index.d.ts +27 -0
  112. package/types/maplestory/api/tms/mapleStoryApi.d.ts +364 -0
  113. package/types/maplestory/api/tms/response/character/characterAbilityBody.d.ts +19 -0
  114. package/types/maplestory/api/tms/response/character/characterAndroidEquipmentBody.d.ts +76 -0
  115. package/types/maplestory/api/tms/response/character/characterBasicBody.d.ts +16 -0
  116. package/types/maplestory/api/tms/response/character/characterBeautyEquipmentBody.d.ts +30 -0
  117. package/types/maplestory/api/tms/response/character/characterBody.d.ts +3 -0
  118. package/types/maplestory/api/tms/response/character/characterCashItemEquipmentBody.d.ts +39 -0
  119. package/types/maplestory/api/tms/response/character/characterDojangBody.d.ts +8 -0
  120. package/types/maplestory/api/tms/response/character/characterHexaMatrixBody.d.ts +13 -0
  121. package/types/maplestory/api/tms/response/character/characterHexaMatrixStatBody.d.ts +20 -0
  122. package/types/maplestory/api/tms/response/character/characterHyperStatBody.d.ts +18 -0
  123. package/types/maplestory/api/tms/response/character/characterItemEquipmentBody.d.ts +195 -0
  124. package/types/maplestory/api/tms/response/character/characterLinkSkillBody.d.ts +20 -0
  125. package/types/maplestory/api/tms/response/character/characterPetEquipmentBody.d.ts +56 -0
  126. package/types/maplestory/api/tms/response/character/characterPopularityBody.d.ts +4 -0
  127. package/types/maplestory/api/tms/response/character/characterPropensityBody.d.ts +9 -0
  128. package/types/maplestory/api/tms/response/character/characterSetEffectBody.d.ts +18 -0
  129. package/types/maplestory/api/tms/response/character/characterSkillBody.d.ts +14 -0
  130. package/types/maplestory/api/tms/response/character/characterStatBody.d.ts +10 -0
  131. package/types/maplestory/api/tms/response/character/characterSymbolEquipmentBody.d.ts +22 -0
  132. package/types/maplestory/api/tms/response/character/characterVMatrixBody.d.ts +16 -0
  133. package/types/maplestory/api/tms/response/guild/guildBasicBody.d.ts +20 -0
  134. package/types/maplestory/api/tms/response/guild/guildBody.d.ts +3 -0
  135. package/types/maplestory/api/tms/response/union/unionArtifactBody.d.ts +19 -0
  136. package/types/maplestory/api/tms/response/union/unionBody.d.ts +8 -0
  137. package/types/maplestory/api/tms/response/union/unionRaiderBody.d.ts +38 -0
package/README.md CHANGED
@@ -3,21 +3,23 @@
3
3
  [![npm](https://img.shields.io/npm/v/maplestory-openapi)](https://www.npmjs.com/package/maplestory-openapi)
4
4
  [![JS](https://github.com/SpiralMoon/maplestory.openapi/actions/workflows/js_test.yaml/badge.svg)](https://github.com/SpiralMoon/maplestory.openapi/actions/workflows/js_test.yaml)
5
5
 
6
- 넥슨의 MapleStory OpenAPI를 Javascript 환경에서 사용할 있게 해주는 라이브러리입니다.
6
+ This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
7
7
 
8
- 다른 언어로 작성된 패키지는 [여기](https://github.com/SpiralMoon/maplestory.openapi)에서 확인할 수 있습니다.
8
+ Packages written in other languages can be found [HERE](https://github.com/SpiralMoon/maplestory.openapi).
9
9
 
10
- (English document is [HERE](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/README-en.md))
10
+ English | [한국어](./README-ko.md)
11
11
 
12
12
  ## Notice
13
13
 
14
- >🌏 알림1: 3.0.0 버전부터 여러 서비스 지역에 대한 지원이 추가 되었습니다. 현재 [KMS](https://maplestory.nexon.com/), [MSEA](http://www.maplesea.com/index/)의 데이터를 조회 가능합니다.
14
+ >🌏 Notice 1: Starting from version 3.4.0, support for tms region has been added. You can now retrieve data from [KMS](https://maplestory.nexon.com/), [TMS](https://maplestory.beanfun.com/), [MSEA](http://www.maplesea.com/index/).
15
15
  >
16
- >💡 알림2: Version 2.x.x 3.0.0 업데이트 과정에서 마이그레이션이 필요합니다. [Migration](https://github.com/SpiralMoon/maplestory.openapi/tree/master/js/docs/migration-ko.md) 항목을 참고 해주세요.
16
+ >🌏 Notice 2: Starting from version 3.0.0, support for msea region has been added.
17
+ >
18
+ >💡 Notice 3: Migration is required when updating from version 2.x.x to 3.0.0. Please refer to the documentation for [Migration](https://github.com/SpiralMoon/maplestory.openapi/tree/master/js/docs/migration-en.md).
17
19
 
18
20
  ## Installation
19
21
 
20
- npm 기반 프로젝트에 아래 정보를 입력하여 패키지를 추가하세요:
22
+ Install the latest version of the JavaScript/TypeScript library in your npm project:
21
23
 
22
24
  ```bash
23
25
  npm install maplestory-openapi
@@ -27,13 +29,13 @@ npm install maplestory-openapi
27
29
 
28
30
  ### API Key
29
31
 
30
- 라이브러리를 사용하기 전에 [Nexon Open API 콘솔](https://openapi.nexon.com/my-application/)에서 애플리케이션을 등록하고 **api key**를 발급 받으세요.
32
+ Before using the library, register your application and obtain an **api key** from the [Nexon Open API Console](https://openapi.nexon.com/my-application/).
31
33
 
32
- 애플리케이션은 지역별로 따로 등록해야 합니다. (KMS의 api key MSEA의 데이터를 요청할 없음)
34
+ Applications must be registered separately for each region. (For example, an API key issued for KMS cannot be used to request data from MSEA.)
33
35
 
34
36
  ### Region
35
37
 
36
- 현재 KMS, MSEA 지역에 대한 데이터 조회를 지원 합니다. 조회를 원하는 지역별로 패키지 경로를 다르게 설정 합니다.
38
+ Currently, this library supports data retrieval from the KMS, TMS, MSEA regions. To access data from a specific region, import the corresponding package path.
37
39
 
38
40
  ```typescript
39
41
  import { MapleStoryApi } from 'maplestory-openapi/kms'; // data from KMS
@@ -41,13 +43,13 @@ import { MapleStoryApi } from 'maplestory-openapi/kms'; // data from KMS
41
43
  import { MapleStoryApi } from 'maplestory-openapi/msea'; // data from MSEA
42
44
  ```
43
45
 
44
- 지역이 달라도 동일한 인터페이스를 상속하기 때문에 API 사용 경험은 기본적으로 동일 합니다.
46
+ Even though the regions differ, each package inherits the same interface, ensuring a consistent API usage experience across all regions.
45
47
 
46
48
  ### Supports
47
49
 
48
- 1. **TypeScript 지원**: 타입 정의가 포함되어 있으므로 타입스크립트 환경에서도 사용 가능합니다.
50
+ 1. **TypeScript Support**: TypeScript is fully supported. Type definitions are included.
49
51
 
50
- 2. **CommonJS, ESM 지원**: 라이브러리는 CommonJS ESM 방식을 모두 지원합니다.
52
+ 2. **CommonJS, ESM Support**: The library supports both CommonJS and ESM usage.
51
53
 
52
54
  ```javascript
53
55
  const { MapleStoryApi } = require('maplestory-openapi/kms'); // CommonJS
@@ -56,7 +58,7 @@ const { MapleStoryApi } = require('maplestory-openapi/kms'); // CommonJS
56
58
  import { MapleStoryApi } from 'maplestory-openapi/kms'; // ESM
57
59
  ```
58
60
 
59
- 3. **TS2307 Cannot find module** 오류 대응: `moduleResolution`이 `node`인 경우 패키지를 찾을 있습니다. `node16`, `nodenext`, `bundler` 등으로 설정 합니다.
61
+ 3. **TS2307 Cannot find module**: it may be due to the `moduleResolution` option being set to `node`. In such cases, update it to `node16`, `nodenext`, or `bundler` as shown below
60
62
 
61
63
  ```json
62
64
  {
@@ -68,7 +70,7 @@ import { MapleStoryApi } from 'maplestory-openapi/kms'; // ESM
68
70
 
69
71
  ### Sample Code
70
72
 
71
- 아래 코드는 KMS 서버에서 닉네임을 바탕으로 특정 캐릭터의 식별자를 조회한 캐릭터의 기본 정보를 조회하는 예시입니다.
73
+ Below is an example that retrieves the identifier of a specific character from the KMS server based on the nickname, and then fetches that character’s basic information.
72
74
 
73
75
  ```javascript
74
76
  const { MapleStoryApi } = require('maplestory-openapi/kms');
@@ -79,14 +81,14 @@ const api = new MapleStoryApi(apiKey);
79
81
 
80
82
  try {
81
83
  // run your code
82
-
84
+
83
85
  const character = await api.getCharacter('{Your Character Name}');
84
86
  const characterBasic = await api.getCharacterBasic(character.ocid);
85
-
87
+
86
88
  console.log(characterBasic);
87
89
  } catch (e) {
88
90
  // exception handling
89
-
91
+
90
92
  if (e instanceof MapleStoryApiError) {
91
93
  // handle MapleStoryApiError
92
94
  } else {
@@ -95,32 +97,41 @@ try {
95
97
  }
96
98
  ```
97
99
 
98
- 많은 예시는 아래 링크의 테스트 케이스에서 확인할 있습니다.
100
+ You can find more examples in the test cases at the following link.
101
+
102
+ - [Character Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/characterApi.test.ts)
103
+ - [Union Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/unionApi.test.ts)
104
+ - [Guild Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/guildApi.test.ts)
105
+ - [History Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/historyApi.test.ts)
106
+ - [Ranking Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/rankingApi.test.ts)
107
+ - [Notice Information Retrieval](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/noticeApi.test.ts)
108
+
109
+ ### Features
110
+ This library supports all apis published in the MapleStory OpenAPI official docs.
111
+
112
+ Some features are supported only in specific regions. Please refer to the official documentation for each region for details.
99
113
 
100
- - [캐릭터 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/characterApi.test.ts)
101
- - [유니온 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/unionApi.test.ts)
102
- - [길드 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/guildApi.test.ts)
103
- - [확률 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/historyApi.test.ts)
104
- - [랭킹 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/rankingApi.test.ts)
105
- - [공지 정보 조회](https://github.com/SpiralMoon/maplestory.openapi/blob/master/js/test/noticeApi.test.ts)
114
+ - KMS: [https://openapi.nexon.com/game/maplestory](https://openapi.nexon.com/game/maplestory)
115
+ - TMS: [https://openapi.nexon.com/game/maplestorytw](https://openapi.nexon.com/game/maplestorytw)
116
+ - MSEA: [https://openapi.nexon.com/game/maplestorysea](https://openapi.nexon.com/game/maplestorysea)
106
117
 
107
118
  ### Exception Handling
108
119
 
109
- [MapleStory OpenAPI 가이드](https://openapi.nexon.com/guide/request-api/) 서술된 에러 사유를 `MapleStoryApiError`를 통해 예외 처리 해야합니다.
120
+ Handle `MapleStoryApiError` to safely make calls, ensuring that specific Status defined in the [MapleStory OpenAPI Guide](https://openapi.nexon.com/guide/request-api) are not encountered.
110
121
 
111
- `MapleStoryApi`는 특정 상태의 예외를 발생시키지 않도록 설계되었으나, 라이브러리를 사용하는 개발자의 실수로 인해 여전히 일부 상태의 예외가 발생할 수 있습니다.
122
+ While `MapleStoryApi` is designed to prevent the occurrence of certain Status, exceptions may arise due to developer mistakes.
112
123
 
113
- 따라서 아래 표에 설명된 `MapleStoryApiErrorCode` 목록을 기반으로 `MapleStoryApiError`를 예외 처리하시기 바랍니다.
124
+ Therefore, it's recommended to use `MapleStoryApiError` for exception handling based on the `MapleStoryApiErrorCode` list described in the table below.
114
125
 
115
- | ErrorCode | Description |
116
- |--------------|--------------------|
117
- | OPENAPI00001 | 서버 내부 오류 |
118
- | OPENAPI00002 | 권한이 없는 경우 |
119
- | OPENAPI00003 | 유효하지 않은 식별자 |
120
- | OPENAPI00004 | 파라미터 누락 또는 유효하지 않음 |
121
- | OPENAPI00005 | 유효하지 않은 API KEY |
122
- | OPENAPI00006 | 유효하지 않은 API PATH |
123
- | OPENAPI00007 | API 호출량 초과 |
124
- | OPENAPI00009 | 데이터 준비 |
125
- | OPENAPI00010 | 게임 점검 |
126
- | OPENAPI00011 | API 점검 |
126
+ | ErrorCode | Description |
127
+ |--------------|--------------------------------------------------|
128
+ | OPENAPI00001 | Internal server error |
129
+ | OPENAPI00002 | Access denied |
130
+ | OPENAPI00003 | Invalid identifier |
131
+ | OPENAPI00004 | Request format error (incorrect parameter input) |
132
+ | OPENAPI00005 | Invalid api key |
133
+ | OPENAPI00006 | Invalid api path |
134
+ | OPENAPI00007 | Request allowance (Rate Limit) exceeded |
135
+ | OPENAPI00009 | Not prepared data |
136
+ | OPENAPI00010 | Game server maintenance |
137
+ | OPENAPI00011 | API server maintenance |
@@ -1026,6 +1026,14 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1026
1026
  * 장비 기본 옵션
1027
1027
  */
1028
1028
  itemBaseOption;
1029
+ /**
1030
+ * 잠재능력 봉인 여부 (true 봉인, false 봉인 없음)
1031
+ */
1032
+ potentialOptionFlag;
1033
+ /**
1034
+ * 에디셔널 잠재능력 봉인 여부 (true 봉인, false 봉인 없음)
1035
+ */
1036
+ additionalPotentialOptionFlag;
1029
1037
  /**
1030
1038
  * 잠재능력 등급
1031
1039
  */
@@ -1140,7 +1148,7 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1140
1148
  freestyleFlag;
1141
1149
  constructor(obj) {
1142
1150
  super();
1143
- 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_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;
1151
+ 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;
1144
1152
  this.itemEquipmentPart = item_equipment_part;
1145
1153
  this.itemEquipmentSlot = item_equipment_slot;
1146
1154
  this.itemName = item_name;
@@ -1151,6 +1159,8 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1151
1159
  this.itemGender = item_gender;
1152
1160
  this.itemTotalOption = new CharacterItemEquipmentTotalOptionDto(item_total_option);
1153
1161
  this.itemBaseOption = new CharacterItemEquipmentBaseOptionDto(item_base_option);
1162
+ this.potentialOptionFlag = potential_option_flag;
1163
+ this.additionalPotentialOptionFlag = additional_potential_option_flag;
1154
1164
  this.potentialOptionGrade = potential_option_grade;
1155
1165
  this.additionalPotentialOptionGrade = additional_potential_option_grade;
1156
1166
  this.potentialOption1 = potential_option_1;
@@ -22,12 +22,22 @@ class CharacterRingExchangeSkillEquipmentDto {
22
22
  * 링 익스체인지에 등록된 특수 반지 레벨
23
23
  */
24
24
  specialRingExchangeLevel;
25
+ /**
26
+ * 링 익스체인지에 등록된 특수 반지 아이콘
27
+ */
28
+ specialRingExchangeIcon;
29
+ /**
30
+ * 링 익스체인지에 등록된 특수 반지 설명
31
+ */
32
+ specialRingExchangeDescription;
25
33
  constructor(obj) {
26
- const { date, character_class, special_ring_exchange_name, special_ring_exchange_level } = obj;
34
+ const { date, character_class, special_ring_exchange_name, special_ring_exchange_level, special_ring_exchange_icon, special_ring_exchange_description } = obj;
27
35
  this.date = date ? new Date(date) : null;
28
36
  this.characterClass = character_class ?? '';
29
37
  this.specialRingExchangeName = special_ring_exchange_name ?? null;
30
38
  this.specialRingExchangeLevel = special_ring_exchange_level ?? null;
39
+ this.specialRingExchangeIcon = special_ring_exchange_icon ?? null;
40
+ this.specialRingExchangeDescription = special_ring_exchange_description ?? null;
31
41
  }
32
42
  }
33
43
 
@@ -917,7 +917,7 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
917
917
  * - 해당 API는 메이플스토리 한국의 데이터가 제공됩니다.
918
918
  *
919
919
  * @param guildName 길드 명
920
- * @param worldName 월드 명
920
+ * @param worldName 월드 명 <a href="https://openapi.nexon.com/game/maplestory/?id=16">Available values</a>
921
921
  */
922
922
  async getGuild(guildName, worldName) {
923
923
  const path = `${this.subUrl}/v1/guild/id`;
@@ -944,6 +944,14 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
944
944
  * Basic equipment option information
945
945
  */
946
946
  itemBaseOption;
947
+ /**
948
+ * Potential seal status (true:sealed, false:not sealed)
949
+ */
950
+ potentialOptionFlag;
951
+ /**
952
+ * Additional potential seal status (true:sealed, false:not sealed)
953
+ */
954
+ additionalPotentialOptionFlag;
947
955
  /**
948
956
  * Potential grade
949
957
  */
@@ -1054,7 +1062,7 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1054
1062
  isExpired = null;
1055
1063
  constructor(obj) {
1056
1064
  super();
1057
- 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_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;
1065
+ 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;
1058
1066
  this.itemEquipmentPart = item_equipment_part;
1059
1067
  this.itemEquipmentSlot = item_equipment_slot;
1060
1068
  this.itemName = item_name;
@@ -1065,6 +1073,8 @@ class CharacterItemEquipmentInfoDto extends characterItemEquipment.CharacterItem
1065
1073
  this.itemGender = item_gender;
1066
1074
  this.itemTotalOption = new CharacterItemEquipmentTotalOptionDto(item_total_option);
1067
1075
  this.itemBaseOption = new CharacterItemEquipmentBaseOptionDto(item_base_option);
1076
+ this.potentialOptionFlag = potential_option_flag;
1077
+ this.additionalPotentialOptionFlag = additional_potential_option_flag;
1068
1078
  this.potentialOptionGrade = potential_option_grade;
1069
1079
  this.additionalPotentialOptionGrade = additional_potential_option_grade;
1070
1080
  this.potentialOption1 = potential_option_1;
@@ -757,7 +757,7 @@ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
757
757
  * - Due to game content changes, the ocid may be updated. Please pay attention to this when updating services based on ocid.
758
758
  * - This API provides data for MapleStory SEA.
759
759
  * @param guildName Guild name
760
- * @param worldName World name
760
+ * @param worldName World name <a href="https://openapi.nexon.com/game/maplestorysea/?id=47">Available values</a>
761
761
  */
762
762
  async getGuild(guildName, worldName) {
763
763
  const path = `${this.subUrl}/v1/guild/id`;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var character = require('../../../common/dto/character/character.js');
6
+
7
+ /**
8
+ * 角色辨識器資訊
9
+ */
10
+ class CharacterDto extends character.CharacterDto {
11
+ /**
12
+ * 角色辨識器
13
+ */
14
+ ocid;
15
+ constructor(obj) {
16
+ super();
17
+ const { ocid } = obj;
18
+ this.ocid = ocid;
19
+ }
20
+ }
21
+
22
+ exports.CharacterDto = CharacterDto;
@@ -0,0 +1,108 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var characterAbility = require('../../../common/dto/character/characterAbility.js');
6
+
7
+ /**
8
+ * 角色能力資訊
9
+ */
10
+ class CharacterAbilityDto extends characterAbility.CharacterAbilityDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 能力階級
17
+ */
18
+ abilityGrade;
19
+ /**
20
+ * 能力資訊
21
+ */
22
+ abilityInfo;
23
+ /**
24
+ * 名聲值
25
+ */
26
+ remainFame;
27
+ /**
28
+ * 目前套用的能力預設編號
29
+ */
30
+ presetNo;
31
+ /**
32
+ * 能力 1 預設完整資訊
33
+ */
34
+ abilityPreset1;
35
+ /**
36
+ * 能力 2 預設完整資訊
37
+ */
38
+ abilityPreset2;
39
+ /**
40
+ * 能力 3 預設完整資訊
41
+ */
42
+ abilityPreset3;
43
+ constructor(obj) {
44
+ super();
45
+ const { date, ability_grade, ability_info, remain_fame, preset_no, ability_preset_1, ability_preset_2, ability_preset_3, } = obj;
46
+ this.date = date ? new Date(date) : null;
47
+ this.abilityGrade = ability_grade;
48
+ this.abilityInfo = ability_info.map((info) => new CharacterAbilityInfoDto(info));
49
+ this.remainFame = remain_fame;
50
+ this.presetNo = preset_no;
51
+ this.abilityPreset1 = ability_preset_1
52
+ ? new CharacterAbilityPresetDto(ability_preset_1)
53
+ : null;
54
+ this.abilityPreset2 = ability_preset_2
55
+ ? new CharacterAbilityPresetDto(ability_preset_2)
56
+ : null;
57
+ this.abilityPreset3 = ability_preset_3
58
+ ? new CharacterAbilityPresetDto(ability_preset_3)
59
+ : null;
60
+ }
61
+ }
62
+ /**
63
+ * 能力資訊
64
+ */
65
+ class CharacterAbilityInfoDto extends characterAbility.CharacterAbilityInfoDto {
66
+ /**
67
+ * 能力編號
68
+ */
69
+ abilityNo;
70
+ /**
71
+ * 能力階級
72
+ */
73
+ abilityGrade;
74
+ /**
75
+ * 能力選項與數值
76
+ */
77
+ abilityValue;
78
+ constructor(obj) {
79
+ super();
80
+ const { ability_no, ability_grade, ability_value } = obj;
81
+ this.abilityNo = ability_no;
82
+ this.abilityGrade = ability_grade;
83
+ this.abilityValue = ability_value;
84
+ }
85
+ }
86
+ /**
87
+ * 能力預設完整資訊
88
+ */
89
+ class CharacterAbilityPresetDto extends characterAbility.CharacterAbilityPresetDto {
90
+ /**
91
+ * 能力預設能力階級
92
+ */
93
+ abilityPresetGrade;
94
+ /**
95
+ * 能力預設資訊
96
+ */
97
+ abilityInfo;
98
+ constructor(obj) {
99
+ super();
100
+ const { ability_preset_grade, ability_info } = obj;
101
+ this.abilityPresetGrade = ability_preset_grade;
102
+ this.abilityInfo = ability_info.map((info) => new CharacterAbilityInfoDto(info));
103
+ }
104
+ }
105
+
106
+ exports.CharacterAbilityDto = CharacterAbilityDto;
107
+ exports.CharacterAbilityInfoDto = CharacterAbilityInfoDto;
108
+ exports.CharacterAbilityPresetDto = CharacterAbilityPresetDto;