maplestory-openapi 3.3.0 → 3.4.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.
Files changed (133) 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/mapleStoryApi.js +1 -1
  4. package/dist/cjs/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  5. package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +1 -1
  6. package/dist/cjs/maplestory/api/tms/dto/character/character.js +22 -0
  7. package/dist/cjs/maplestory/api/tms/dto/character/characterAbility.js +108 -0
  8. package/dist/cjs/maplestory/api/tms/dto/character/characterAndroidEquipment.js +424 -0
  9. package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +93 -0
  10. package/dist/cjs/maplestory/api/tms/dto/character/characterBeautyEquipment.js +172 -0
  11. package/dist/cjs/maplestory/api/tms/dto/character/characterCashItemEquipment.js +228 -0
  12. package/dist/cjs/maplestory/api/tms/dto/character/characterDojang.js +49 -0
  13. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrix.js +73 -0
  14. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +113 -0
  15. package/dist/cjs/maplestory/api/tms/dto/character/characterHyperStat.js +97 -0
  16. package/dist/cjs/maplestory/api/tms/dto/character/characterImage.js +81 -0
  17. package/dist/cjs/maplestory/api/tms/dto/character/characterItemEquipment.js +1137 -0
  18. package/dist/cjs/maplestory/api/tms/dto/character/characterLinkSkill.js +115 -0
  19. package/dist/cjs/maplestory/api/tms/dto/character/characterPetEquipment.js +332 -0
  20. package/dist/cjs/maplestory/api/tms/dto/character/characterPopularity.js +27 -0
  21. package/dist/cjs/maplestory/api/tms/dto/character/characterPropensity.js +52 -0
  22. package/dist/cjs/maplestory/api/tms/dto/character/characterSetEffect.js +97 -0
  23. package/dist/cjs/maplestory/api/tms/dto/character/characterSkill.js +77 -0
  24. package/dist/cjs/maplestory/api/tms/dto/character/characterStat.js +57 -0
  25. package/dist/cjs/maplestory/api/tms/dto/character/characterSymbolEquipment.js +119 -0
  26. package/dist/cjs/maplestory/api/tms/dto/character/characterVMatrix.js +88 -0
  27. package/dist/cjs/maplestory/api/tms/dto/guild/guild.js +22 -0
  28. package/dist/cjs/maplestory/api/tms/dto/guild/guildBasic.js +107 -0
  29. package/dist/cjs/maplestory/api/tms/dto/union/union.js +47 -0
  30. package/dist/cjs/maplestory/api/tms/dto/union/unionArtifact.js +111 -0
  31. package/dist/cjs/maplestory/api/tms/dto/union/unionRaider.js +214 -0
  32. package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +802 -0
  33. package/dist/cjs/maplestory/api/tms/tms.js +109 -0
  34. package/dist/cjs/node_modules/dayjs/plugin/utc.js +1 -1
  35. package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  36. package/dist/esm/maplestory/api/kms/mapleStoryApi.js +1 -1
  37. package/dist/esm/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  38. package/dist/esm/maplestory/api/msea/mapleStoryApi.js +1 -1
  39. package/dist/esm/maplestory/api/tms/dto/character/character.js +18 -0
  40. package/dist/esm/maplestory/api/tms/dto/character/characterAbility.js +102 -0
  41. package/dist/esm/maplestory/api/tms/dto/character/characterAndroidEquipment.js +413 -0
  42. package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +89 -0
  43. package/dist/esm/maplestory/api/tms/dto/character/characterBeautyEquipment.js +165 -0
  44. package/dist/esm/maplestory/api/tms/dto/character/characterCashItemEquipment.js +221 -0
  45. package/dist/esm/maplestory/api/tms/dto/character/characterDojang.js +45 -0
  46. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrix.js +67 -0
  47. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +108 -0
  48. package/dist/esm/maplestory/api/tms/dto/character/characterHyperStat.js +92 -0
  49. package/dist/esm/maplestory/api/tms/dto/character/characterImage.js +77 -0
  50. package/dist/esm/maplestory/api/tms/dto/character/characterItemEquipment.js +1123 -0
  51. package/dist/esm/maplestory/api/tms/dto/character/characterLinkSkill.js +110 -0
  52. package/dist/esm/maplestory/api/tms/dto/character/characterPetEquipment.js +325 -0
  53. package/dist/esm/maplestory/api/tms/dto/character/characterPopularity.js +23 -0
  54. package/dist/esm/maplestory/api/tms/dto/character/characterPropensity.js +48 -0
  55. package/dist/esm/maplestory/api/tms/dto/character/characterSetEffect.js +90 -0
  56. package/dist/esm/maplestory/api/tms/dto/character/characterSkill.js +72 -0
  57. package/dist/esm/maplestory/api/tms/dto/character/characterStat.js +52 -0
  58. package/dist/esm/maplestory/api/tms/dto/character/characterSymbolEquipment.js +114 -0
  59. package/dist/esm/maplestory/api/tms/dto/character/characterVMatrix.js +83 -0
  60. package/dist/esm/maplestory/api/tms/dto/guild/guild.js +18 -0
  61. package/dist/esm/maplestory/api/tms/dto/guild/guildBasic.js +102 -0
  62. package/dist/esm/maplestory/api/tms/dto/union/union.js +43 -0
  63. package/dist/esm/maplestory/api/tms/dto/union/unionArtifact.js +105 -0
  64. package/dist/esm/maplestory/api/tms/dto/union/unionRaider.js +205 -0
  65. package/dist/esm/maplestory/api/tms/mapleStoryApi.js +794 -0
  66. package/dist/esm/maplestory/api/tms/tms.js +27 -0
  67. package/dist/esm/node_modules/dayjs/plugin/utc.js +1 -1
  68. package/dist/index.min.js +1 -1
  69. package/package.json +6 -1
  70. package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +2 -0
  71. package/types/maplestory/api/common/dto/character/characterSkill.d.ts +1 -1
  72. package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +8 -0
  73. package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
  74. package/types/maplestory/api/kms/mapleStoryApi.d.ts +1 -1
  75. package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
  76. package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +8 -0
  77. package/types/maplestory/api/msea/dto/character/characterSkill.d.ts +1 -1
  78. package/types/maplestory/api/msea/mapleStoryApi.d.ts +1 -1
  79. package/types/maplestory/api/msea/response/character/characterItemEquipmentBody.d.ts +2 -0
  80. package/types/maplestory/api/msea/response/character/characterSkillBody.d.ts +1 -1
  81. package/types/maplestory/api/tms/dto/character/character.d.ts +12 -0
  82. package/types/maplestory/api/tms/dto/character/characterAbility.d.ts +72 -0
  83. package/types/maplestory/api/tms/dto/character/characterAndroidEquipment.d.ts +299 -0
  84. package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +68 -0
  85. package/types/maplestory/api/tms/dto/character/characterBeautyEquipment.d.ts +117 -0
  86. package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +158 -0
  87. package/types/maplestory/api/tms/dto/character/characterDojang.d.ts +32 -0
  88. package/types/maplestory/api/tms/dto/character/characterHexaMatrix.d.ts +48 -0
  89. package/types/maplestory/api/tms/dto/character/characterHexaMatrixStat.d.ts +78 -0
  90. package/types/maplestory/api/tms/dto/character/characterHyperStat.d.ts +70 -0
  91. package/types/maplestory/api/tms/dto/character/characterImage.d.ts +74 -0
  92. package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +864 -0
  93. package/types/maplestory/api/tms/dto/character/characterLinkSkill.d.ts +78 -0
  94. package/types/maplestory/api/tms/dto/character/characterPetEquipment.d.ts +230 -0
  95. package/types/maplestory/api/tms/dto/character/characterPopularity.d.ts +16 -0
  96. package/types/maplestory/api/tms/dto/character/characterPropensity.d.ts +36 -0
  97. package/types/maplestory/api/tms/dto/character/characterSetEffect.d.ts +66 -0
  98. package/types/maplestory/api/tms/dto/character/characterSkill.d.ts +54 -0
  99. package/types/maplestory/api/tms/dto/character/characterStat.d.ts +38 -0
  100. package/types/maplestory/api/tms/dto/character/characterSymbolEquipment.d.ts +86 -0
  101. package/types/maplestory/api/tms/dto/character/characterVMatrix.d.ts +62 -0
  102. package/types/maplestory/api/tms/dto/guild/guild.d.ts +12 -0
  103. package/types/maplestory/api/tms/dto/guild/guildBasic.d.ts +78 -0
  104. package/types/maplestory/api/tms/dto/union/union.d.ts +32 -0
  105. package/types/maplestory/api/tms/dto/union/unionArtifact.d.ts +76 -0
  106. package/types/maplestory/api/tms/dto/union/unionRaider.d.ts +147 -0
  107. package/types/maplestory/api/tms/index.d.ts +27 -0
  108. package/types/maplestory/api/tms/mapleStoryApi.d.ts +364 -0
  109. package/types/maplestory/api/tms/response/character/characterAbilityBody.d.ts +19 -0
  110. package/types/maplestory/api/tms/response/character/characterAndroidEquipmentBody.d.ts +76 -0
  111. package/types/maplestory/api/tms/response/character/characterBasicBody.d.ts +16 -0
  112. package/types/maplestory/api/tms/response/character/characterBeautyEquipmentBody.d.ts +30 -0
  113. package/types/maplestory/api/tms/response/character/characterBody.d.ts +3 -0
  114. package/types/maplestory/api/tms/response/character/characterCashItemEquipmentBody.d.ts +39 -0
  115. package/types/maplestory/api/tms/response/character/characterDojangBody.d.ts +8 -0
  116. package/types/maplestory/api/tms/response/character/characterHexaMatrixBody.d.ts +13 -0
  117. package/types/maplestory/api/tms/response/character/characterHexaMatrixStatBody.d.ts +20 -0
  118. package/types/maplestory/api/tms/response/character/characterHyperStatBody.d.ts +18 -0
  119. package/types/maplestory/api/tms/response/character/characterItemEquipmentBody.d.ts +195 -0
  120. package/types/maplestory/api/tms/response/character/characterLinkSkillBody.d.ts +20 -0
  121. package/types/maplestory/api/tms/response/character/characterPetEquipmentBody.d.ts +56 -0
  122. package/types/maplestory/api/tms/response/character/characterPopularityBody.d.ts +4 -0
  123. package/types/maplestory/api/tms/response/character/characterPropensityBody.d.ts +9 -0
  124. package/types/maplestory/api/tms/response/character/characterSetEffectBody.d.ts +18 -0
  125. package/types/maplestory/api/tms/response/character/characterSkillBody.d.ts +14 -0
  126. package/types/maplestory/api/tms/response/character/characterStatBody.d.ts +10 -0
  127. package/types/maplestory/api/tms/response/character/characterSymbolEquipmentBody.d.ts +22 -0
  128. package/types/maplestory/api/tms/response/character/characterVMatrixBody.d.ts +16 -0
  129. package/types/maplestory/api/tms/response/guild/guildBasicBody.d.ts +20 -0
  130. package/types/maplestory/api/tms/response/guild/guildBody.d.ts +3 -0
  131. package/types/maplestory/api/tms/response/union/unionArtifactBody.d.ts +19 -0
  132. package/types/maplestory/api/tms/response/union/unionBody.d.ts +8 -0
  133. package/types/maplestory/api/tms/response/union/unionRaiderBody.d.ts +38 -0
@@ -0,0 +1,802 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var axios = require('axios');
6
+ require('../../../node_modules/buffer/index.js');
7
+ var character = require('./dto/character/character.js');
8
+ var characterAbility = require('./dto/character/characterAbility.js');
9
+ var characterAndroidEquipment = require('./dto/character/characterAndroidEquipment.js');
10
+ var characterBasic = require('./dto/character/characterBasic.js');
11
+ var characterBeautyEquipment = require('./dto/character/characterBeautyEquipment.js');
12
+ var characterCashItemEquipment = require('./dto/character/characterCashItemEquipment.js');
13
+ var characterDojang = require('./dto/character/characterDojang.js');
14
+ var characterHexaMatrix = require('./dto/character/characterHexaMatrix.js');
15
+ var characterHexaMatrixStat = require('./dto/character/characterHexaMatrixStat.js');
16
+ var characterHyperStat = require('./dto/character/characterHyperStat.js');
17
+ var characterImage$1 = require('./dto/character/characterImage.js');
18
+ var characterItemEquipment = require('./dto/character/characterItemEquipment.js');
19
+ var characterLinkSkill = require('./dto/character/characterLinkSkill.js');
20
+ var characterPetEquipment = require('./dto/character/characterPetEquipment.js');
21
+ var characterPopularity = require('./dto/character/characterPopularity.js');
22
+ var characterPropensity = require('./dto/character/characterPropensity.js');
23
+ var characterSetEffect = require('./dto/character/characterSetEffect.js');
24
+ var characterSkill = require('./dto/character/characterSkill.js');
25
+ var characterStat = require('./dto/character/characterStat.js');
26
+ var characterSymbolEquipment = require('./dto/character/characterSymbolEquipment.js');
27
+ var characterVMatrix = require('./dto/character/characterVMatrix.js');
28
+ var guild = require('./dto/guild/guild.js');
29
+ var guildBasic = require('./dto/guild/guildBasic.js');
30
+ var union = require('./dto/union/union.js');
31
+ var unionArtifact = require('./dto/union/unionArtifact.js');
32
+ var unionRaider = require('./dto/union/unionRaider.js');
33
+ var characterImage = require('../common/enum/characterImage.js');
34
+ var mapleStoryApi = require('../common/mapleStoryApi.js');
35
+ var index = require('../../../_virtual/index.js_commonjs-exports.js');
36
+
37
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
38
+
39
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
40
+
41
+ /**
42
+ * MapleStory OpenAPI client for TMS.<br>
43
+ * This is an implementation of <a href="https://openapi.nexon.com/game/maplestorytw">MapleStory API</a>
44
+ */
45
+ class MapleStoryApi extends mapleStoryApi.MapleStoryApi {
46
+ subUrl = 'maplestorytw';
47
+ timezoneOffset = 480;
48
+ constructor(apiKey) {
49
+ super(apiKey);
50
+ }
51
+ //#region 檢視角色資訊
52
+ /**
53
+ * 檢視角色辨識器 (OCID)。
54
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
55
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
56
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
57
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
58
+ * - 此 API 提供來自楓之谷台灣的資料。
59
+ * @param characterName 角色名稱
60
+ */
61
+ async getCharacter(characterName) {
62
+ const path = `${this.subUrl}/v1/id`;
63
+ const { data } = await this.client.get(path, {
64
+ params: {
65
+ character_name: characterName,
66
+ },
67
+ });
68
+ return new character.CharacterDto(data);
69
+ }
70
+ /**
71
+ * 檢視基本資訊。
72
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
73
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
74
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
75
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
76
+ * - 此 API 提供來自楓之谷台灣的資料。
77
+ * @param ocid 角色辨識器
78
+ * @param dateOptions 要搜尋的日期 (TST)
79
+ */
80
+ async getCharacterBasic(ocid, dateOptions) {
81
+ const path = `${this.subUrl}/v1/character/basic`;
82
+ const date = dateOptions
83
+ ? this.toDateString(dateOptions, {
84
+ year: 2025,
85
+ month: 10,
86
+ day: 15,
87
+ })
88
+ : undefined;
89
+ const query = {
90
+ ocid: ocid,
91
+ date: date,
92
+ };
93
+ const { data } = await this.client.get(path, {
94
+ params: query,
95
+ });
96
+ return new characterBasic.CharacterBasicDto(data);
97
+ }
98
+ /**
99
+ * 檢視角色外型圖片資訊。
100
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
101
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
102
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
103
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
104
+ * - 此 API 提供來自楓之谷台灣的資料。
105
+ * @param ocid 角色辨識器
106
+ * @param imageOptions 圖像選項
107
+ * @param dateOptions 要搜尋的日期 (TST)
108
+ */
109
+ async getCharacterImage(ocid, imageOptions, dateOptions) {
110
+ const { date, characterImage: path } = await this.getCharacterBasic(ocid, dateOptions);
111
+ const action = imageOptions?.action ?? characterImage.CharacterImageAction.Stand1;
112
+ const emotion = imageOptions?.emotion ?? characterImage.CharacterImageEmotion.Default;
113
+ const wmotion = imageOptions?.wmotion ?? characterImage.CharacterImageWeaponMotion.Default;
114
+ const actionFrame = imageOptions?.actionFrame ?? 0;
115
+ const emotionFrame = imageOptions?.emotionFrame ?? 0;
116
+ const width = 96;
117
+ const height = 96;
118
+ const x = imageOptions?.x ?? null;
119
+ const y = imageOptions?.y ?? null;
120
+ const query = {
121
+ action: `${action}.${actionFrame}`,
122
+ emotion: `${emotion}.${emotionFrame}`,
123
+ wmotion,
124
+ width,
125
+ height,
126
+ x,
127
+ y,
128
+ };
129
+ const urlImageToBase64 = async (path, query) => {
130
+ const { data, headers } = await axios__default["default"].get(path, {
131
+ params: query,
132
+ responseType: 'arraybuffer',
133
+ });
134
+ const base64 = index.__exports.Buffer.from(data, 'binary').toString('base64');
135
+ const mimeType = headers['content-type'];
136
+ return `data:${mimeType};base64,${base64}`;
137
+ };
138
+ const [originImage, image] = await Promise.all([
139
+ urlImageToBase64(path),
140
+ urlImageToBase64(path, query),
141
+ ]);
142
+ return new characterImage$1.CharacterImageDto({
143
+ date,
144
+ originUrl: path,
145
+ originImage,
146
+ image,
147
+ action,
148
+ emotion,
149
+ wmotion,
150
+ actionFrame,
151
+ emotionFrame,
152
+ width,
153
+ height,
154
+ x,
155
+ y,
156
+ });
157
+ }
158
+ /**
159
+ * 檢視名聲資訊。
160
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
161
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
162
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
163
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
164
+ * - 此 API 提供來自楓之谷台灣的資料。
165
+ * @param ocid 角色辨識器
166
+ * @param dateOptions 要搜尋的日期 (TST)
167
+ */
168
+ async getCharacterPopularity(ocid, dateOptions) {
169
+ const path = `${this.subUrl}/v1/character/popularity`;
170
+ const date = dateOptions
171
+ ? this.toDateString(dateOptions, {
172
+ year: 2025,
173
+ month: 10,
174
+ day: 15,
175
+ })
176
+ : undefined;
177
+ const query = {
178
+ ocid: ocid,
179
+ date: date,
180
+ };
181
+ const { data } = await this.client.get(path, {
182
+ params: query,
183
+ });
184
+ return new characterPopularity.CharacterPopularityDto(data);
185
+ }
186
+ /**
187
+ * 檢視綜合能力值資訊。
188
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
189
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
190
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
191
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
192
+ * - 此 API 提供來自楓之谷台灣的資料。
193
+ * @param ocid 角色辨識器
194
+ * @param dateOptions 要搜尋的日期 (TST)
195
+ */
196
+ async getCharacterStat(ocid, dateOptions) {
197
+ const path = `${this.subUrl}/v1/character/stat`;
198
+ const date = dateOptions
199
+ ? this.toDateString(dateOptions, {
200
+ year: 2025,
201
+ month: 10,
202
+ day: 15,
203
+ })
204
+ : undefined;
205
+ const query = {
206
+ ocid: ocid,
207
+ date: date,
208
+ };
209
+ const { data } = await this.client.get(path, {
210
+ params: query,
211
+ });
212
+ return new characterStat.CharacterStatDto(data);
213
+ }
214
+ /**
215
+ * 檢視極限屬性資訊。
216
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
217
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
218
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
219
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
220
+ * - 此 API 提供來自楓之谷台灣的資料。
221
+ * @param ocid 角色辨識器
222
+ * @param dateOptions 要搜尋的日期 (TST)
223
+ */
224
+ async getCharacterHyperStat(ocid, dateOptions) {
225
+ const path = `${this.subUrl}/v1/character/hyper-stat`;
226
+ const date = dateOptions
227
+ ? this.toDateString(dateOptions, {
228
+ year: 2025,
229
+ month: 10,
230
+ day: 15,
231
+ })
232
+ : undefined;
233
+ const query = {
234
+ ocid: ocid,
235
+ date: date,
236
+ };
237
+ const { data } = await this.client.get(path, {
238
+ params: query,
239
+ });
240
+ return new characterHyperStat.CharacterHyperStatDto(data);
241
+ }
242
+ /**
243
+ * 檢視性向資訊。
244
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
245
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
246
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
247
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
248
+ * - 此 API 提供來自楓之谷台灣的資料。
249
+ * @param ocid 角色辨識器
250
+ * @param dateOptions 要搜尋的日期 (TST)
251
+ */
252
+ async getCharacterPropensity(ocid, dateOptions) {
253
+ const path = `${this.subUrl}/v1/character/propensity`;
254
+ const date = dateOptions
255
+ ? this.toDateString(dateOptions, {
256
+ year: 2025,
257
+ month: 10,
258
+ day: 15,
259
+ })
260
+ : undefined;
261
+ const query = {
262
+ ocid: ocid,
263
+ date: date,
264
+ };
265
+ const { data } = await this.client.get(path, {
266
+ params: query,
267
+ });
268
+ return new characterPropensity.CharacterPropensityDto(data);
269
+ }
270
+ /**
271
+ * 檢視能力資訊。
272
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
273
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
274
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
275
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
276
+ * - 此 API 提供來自楓之谷台灣的資料。
277
+ * @param ocid 角色辨識器
278
+ * @param dateOptions 要搜尋的日期 (TST)
279
+ */
280
+ async getCharacterAbility(ocid, dateOptions) {
281
+ const path = `${this.subUrl}/v1/character/ability`;
282
+ const date = dateOptions
283
+ ? this.toDateString(dateOptions, {
284
+ year: 2025,
285
+ month: 10,
286
+ day: 15,
287
+ })
288
+ : undefined;
289
+ const query = {
290
+ ocid: ocid,
291
+ date: date,
292
+ };
293
+ const { data } = await this.client.get(path, {
294
+ params: query,
295
+ });
296
+ return new characterAbility.CharacterAbilityDto(data);
297
+ }
298
+ /**
299
+ * 檢視已裝備道具資訊 (不含現金道具)。
300
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
301
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
302
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
303
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
304
+ * - 此 API 提供來自楓之谷台灣的資料。
305
+ * @param ocid 角色辨識器
306
+ * @param dateOptions 要搜尋的日期 (TST)
307
+ */
308
+ async getCharacterItemEquipment(ocid, dateOptions) {
309
+ const path = `${this.subUrl}/v1/character/item-equipment`;
310
+ const date = dateOptions
311
+ ? this.toDateString(dateOptions, {
312
+ year: 2025,
313
+ month: 10,
314
+ day: 15,
315
+ })
316
+ : undefined;
317
+ const query = {
318
+ ocid: ocid,
319
+ date: date,
320
+ };
321
+ const { data } = await this.client.get(path, {
322
+ params: query,
323
+ });
324
+ return new characterItemEquipment.CharacterItemEquipmentDto(data);
325
+ }
326
+ /**
327
+ * 檢視已裝備現金道具資訊。
328
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
329
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
330
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
331
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
332
+ * - 此 API 提供來自楓之谷台灣的資料。
333
+ * @param ocid 角色辨識器
334
+ * @param dateOptions 要搜尋的日期 (TST)
335
+ */
336
+ async getCharacterCashItemEquipment(ocid, dateOptions) {
337
+ const path = `${this.subUrl}/v1/character/cashitem-equipment`;
338
+ const date = dateOptions
339
+ ? this.toDateString(dateOptions, {
340
+ year: 2025,
341
+ month: 10,
342
+ day: 15,
343
+ })
344
+ : undefined;
345
+ const query = {
346
+ ocid: ocid,
347
+ date: date,
348
+ };
349
+ const { data } = await this.client.get(path, {
350
+ params: query,
351
+ });
352
+ return new characterCashItemEquipment.CharacterCashItemEquipmentDto(data);
353
+ }
354
+ /**
355
+ * 檢視已裝備符文資訊。
356
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
357
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
358
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
359
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
360
+ * - 此 API 提供來自楓之谷台灣的資料。
361
+ * @param ocid 角色辨識器
362
+ * @param dateOptions 要搜尋的日期 (TST)
363
+ */
364
+ async getCharacterSymbolEquipment(ocid, dateOptions) {
365
+ const path = `${this.subUrl}/v1/character/symbol-equipment`;
366
+ const date = dateOptions
367
+ ? this.toDateString(dateOptions, {
368
+ year: 2025,
369
+ month: 10,
370
+ day: 15,
371
+ })
372
+ : undefined;
373
+ const query = {
374
+ ocid: ocid,
375
+ date: date,
376
+ };
377
+ const { data } = await this.client.get(path, {
378
+ params: query,
379
+ });
380
+ return new characterSymbolEquipment.CharacterSymbolEquipmentDto(data);
381
+ }
382
+ /**
383
+ * 檢視目前套用的套裝效果資訊。
384
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
385
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
386
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
387
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
388
+ * - 此 API 提供來自楓之谷台灣的資料。
389
+ * @param ocid 角色辨識器
390
+ * @param dateOptions 要搜尋的日期 (TST)
391
+ */
392
+ async getCharacterSetEffect(ocid, dateOptions) {
393
+ const path = `${this.subUrl}/v1/character/set-effect`;
394
+ const date = dateOptions
395
+ ? this.toDateString(dateOptions, {
396
+ year: 2025,
397
+ month: 10,
398
+ day: 15,
399
+ })
400
+ : undefined;
401
+ const query = {
402
+ ocid: ocid,
403
+ date: date,
404
+ };
405
+ const { data } = await this.client.get(path, {
406
+ params: query,
407
+ });
408
+ return new characterSetEffect.CharacterSetEffectDto(data);
409
+ }
410
+ /**
411
+ * 檢視目前已裝備的髮型、臉型與膚色資訊。
412
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
413
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
414
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
415
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
416
+ * - 此 API 提供來自楓之谷台灣的資料。
417
+ * @param ocid 角色辨識器
418
+ * @param dateOptions 要搜尋的日期 (TST)
419
+ */
420
+ async getCharacterBeautyEquipment(ocid, dateOptions) {
421
+ const path = `${this.subUrl}/v1/character/beauty-equipment`;
422
+ const date = dateOptions
423
+ ? this.toDateString(dateOptions, {
424
+ year: 2025,
425
+ month: 10,
426
+ day: 15,
427
+ })
428
+ : undefined;
429
+ const query = {
430
+ ocid: ocid,
431
+ date: date,
432
+ };
433
+ const { data } = await this.client.get(path, {
434
+ params: query,
435
+ });
436
+ return new characterBeautyEquipment.CharacterBeautyEquipmentDto(data);
437
+ }
438
+ /**
439
+ * 檢視已裝備機器人資訊。
440
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
441
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
442
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
443
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
444
+ * - 此 API 提供來自楓之谷台灣的資料。
445
+ * @param ocid 角色辨識器
446
+ * @param dateOptions 要搜尋的日期 (TST)
447
+ */
448
+ async getCharacterAndroidEquipment(ocid, dateOptions) {
449
+ const path = `${this.subUrl}/v1/character/android-equipment`;
450
+ const date = dateOptions
451
+ ? this.toDateString(dateOptions, {
452
+ year: 2025,
453
+ month: 10,
454
+ day: 15,
455
+ })
456
+ : undefined;
457
+ const query = {
458
+ ocid: ocid,
459
+ date: date,
460
+ };
461
+ const { data } = await this.client.get(path, {
462
+ params: query,
463
+ });
464
+ return new characterAndroidEquipment.CharacterAndroidEquipmentDto(data);
465
+ }
466
+ /**
467
+ * 檢視已裝備寵物、寵物技能與寵物道具資訊。
468
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
469
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
470
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
471
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
472
+ * - 此 API 提供來自楓之谷台灣的資料。
473
+ * @param ocid 角色辨識器
474
+ * @param dateOptions 要搜尋的日期 (TST)
475
+ */
476
+ async getCharacterPetEquipment(ocid, dateOptions) {
477
+ const path = `${this.subUrl}/v1/character/pet-equipment`;
478
+ const date = dateOptions
479
+ ? this.toDateString(dateOptions, {
480
+ year: 2025,
481
+ month: 10,
482
+ day: 15,
483
+ })
484
+ : undefined;
485
+ const query = {
486
+ ocid: ocid,
487
+ date: date,
488
+ };
489
+ const { data } = await this.client.get(path, {
490
+ params: query,
491
+ });
492
+ return new characterPetEquipment.CharacterPetEquipmentDto(data);
493
+ }
494
+ /**
495
+ * 檢視角色技能與超技能資訊。
496
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
497
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
498
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
499
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
500
+ * - 此 API 提供來自楓之谷台灣的資料。
501
+ * @param ocid 角色辨識器
502
+ * @param characterSkillGrade 您要檢視的轉職階段 <a href="https://openapi.nexon.com/game/maplestorytw/?id=49">Available values</a>
503
+ * @param dateOptions 要搜尋的日期 (TST)
504
+ */
505
+ async getCharacterSkill(ocid, characterSkillGrade, dateOptions) {
506
+ const path = `${this.subUrl}/v1/character/skill`;
507
+ const date = dateOptions
508
+ ? this.toDateString(dateOptions, {
509
+ year: 2025,
510
+ month: 10,
511
+ day: 15,
512
+ })
513
+ : undefined;
514
+ const query = {
515
+ ocid: ocid,
516
+ character_skill_grade: characterSkillGrade,
517
+ date: date,
518
+ };
519
+ const { data } = await this.client.get(path, {
520
+ params: query,
521
+ });
522
+ return new characterSkill.CharacterSkillDto(data);
523
+ }
524
+ /**
525
+ * 檢視已裝備連結技能資訊。
526
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
527
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
528
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
529
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
530
+ * - 此 API 提供來自楓之谷台灣的資料。
531
+ * @param ocid 角色辨識器
532
+ * @param dateOptions 要搜尋的日期 (TST)
533
+ */
534
+ async getCharacterLinkSkill(ocid, dateOptions) {
535
+ const path = `${this.subUrl}/v1/character/link-skill`;
536
+ const date = dateOptions
537
+ ? this.toDateString(dateOptions, {
538
+ year: 2025,
539
+ month: 10,
540
+ day: 15,
541
+ })
542
+ : undefined;
543
+ const query = {
544
+ ocid: ocid,
545
+ date: date,
546
+ };
547
+ const { data } = await this.client.get(path, {
548
+ params: query,
549
+ });
550
+ return new characterLinkSkill.CharacterLinkSkillDto(data);
551
+ }
552
+ /**
553
+ * 檢視 V 矩陣欄位資訊與已裝備 V 核心資訊。
554
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
555
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
556
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
557
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
558
+ * - 此 API 提供來自楓之谷台灣的資料。
559
+ * @param ocid 角色辨識器
560
+ * @param dateOptions 要搜尋的日期 (TST)
561
+ */
562
+ async getCharacterVMatrix(ocid, dateOptions) {
563
+ const path = `${this.subUrl}/v1/character/vmatrix`;
564
+ const date = dateOptions
565
+ ? this.toDateString(dateOptions, {
566
+ year: 2025,
567
+ month: 10,
568
+ day: 15,
569
+ })
570
+ : undefined;
571
+ const query = {
572
+ ocid: ocid,
573
+ date: date,
574
+ };
575
+ const { data } = await this.client.get(path, {
576
+ params: query,
577
+ });
578
+ return new characterVMatrix.CharacterVMatrixDto(data);
579
+ }
580
+ /**
581
+ * 檢視已裝備於 HEXA 矩陣的 HEXA 核心資訊。
582
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
583
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
584
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
585
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
586
+ * - 此 API 提供來自楓之谷台灣的資料。
587
+ * @param ocid 角色辨識器
588
+ * @param dateOptions 要搜尋的日期 (TST)
589
+ */
590
+ async getCharacterHexaMatrix(ocid, dateOptions) {
591
+ const path = `${this.subUrl}/v1/character/hexamatrix`;
592
+ const date = dateOptions
593
+ ? this.toDateString(dateOptions, {
594
+ year: 2025,
595
+ month: 10,
596
+ day: 15,
597
+ })
598
+ : undefined;
599
+ const query = {
600
+ ocid: ocid,
601
+ date: date,
602
+ };
603
+ const { data } = await this.client.get(path, {
604
+ params: query,
605
+ });
606
+ return new characterHexaMatrix.CharacterHexaMatrixDto(data);
607
+ }
608
+ /**
609
+ * 檢視設定於 HEXA 矩陣中的 HEXA 屬性資訊。
610
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
611
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
612
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
613
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
614
+ * - 此 API 提供來自楓之谷台灣的資料。
615
+ * @param ocid 角色辨識器
616
+ * @param dateOptions 要搜尋的日期 (TST)
617
+ */
618
+ async getCharacterHexaMatrixStat(ocid, dateOptions) {
619
+ const path = `${this.subUrl}/v1/character/hexamatrix-stat`;
620
+ const date = dateOptions
621
+ ? this.toDateString(dateOptions, {
622
+ year: 2025,
623
+ month: 10,
624
+ day: 15,
625
+ })
626
+ : undefined;
627
+ const query = {
628
+ ocid: ocid,
629
+ date: date,
630
+ };
631
+ const { data } = await this.client.get(path, {
632
+ params: query,
633
+ });
634
+ return new characterHexaMatrixStat.CharacterHexaMatrixStatDto(data);
635
+ }
636
+ /**
637
+ * 檢視角色在武陵道場的最高紀錄資訊。
638
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
639
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
640
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
641
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
642
+ * - 此 API 提供來自楓之谷台灣的資料。
643
+ * @param ocid 角色辨識器
644
+ * @param dateOptions 要搜尋的日期 (TST)
645
+ */
646
+ async getCharacterDojang(ocid, dateOptions) {
647
+ const path = `${this.subUrl}/v1/character/dojang`;
648
+ const date = dateOptions
649
+ ? this.toDateString(dateOptions, {
650
+ year: 2025,
651
+ month: 10,
652
+ day: 15,
653
+ })
654
+ : undefined;
655
+ const query = {
656
+ ocid: ocid,
657
+ date: date,
658
+ };
659
+ const { data } = await this.client.get(path, {
660
+ params: query,
661
+ });
662
+ return new characterDojang.CharacterDojangDto(data);
663
+ }
664
+ //#endregion
665
+ //#region 檢視聯盟資訊
666
+ /**
667
+ * 檢視戰地等級與戰地階級資訊。
668
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
669
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
670
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
671
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
672
+ * - 此 API 提供來自楓之谷台灣的資料。
673
+ * @param ocid 角色辨識器
674
+ * @param dateOptions 要搜尋的日期 (TST)
675
+ */
676
+ async getUnion(ocid, dateOptions) {
677
+ const path = `${this.subUrl}/v1/user/union`;
678
+ const date = dateOptions
679
+ ? this.toDateString(dateOptions, {
680
+ year: 2025,
681
+ month: 10,
682
+ day: 15,
683
+ })
684
+ : undefined;
685
+ const query = {
686
+ ocid: ocid,
687
+ date: date,
688
+ };
689
+ const { data } = await this.client.get(path, {
690
+ params: query,
691
+ });
692
+ return new union.UnionDto(data);
693
+ }
694
+ /**
695
+ * 檢視詳細資訊,例如派遣至聯盟的攻擊單位成員效果,以及攻擊單位佔領效果。
696
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
697
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
698
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
699
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
700
+ * - 此 API 提供來自楓之谷台灣的資料。
701
+ * @param ocid 角色辨識器
702
+ * @param dateOptions 要搜尋的日期 (TST)
703
+ */
704
+ async getUnionRaider(ocid, dateOptions) {
705
+ const path = `${this.subUrl}/v1/user/union-raider`;
706
+ const date = dateOptions
707
+ ? this.toDateString(dateOptions, {
708
+ year: 2025,
709
+ month: 10,
710
+ day: 15,
711
+ })
712
+ : undefined;
713
+ const query = {
714
+ ocid: ocid,
715
+ date: date,
716
+ };
717
+ const { data } = await this.client.get(path, {
718
+ params: query,
719
+ });
720
+ return new unionRaider.UnionRaiderDto(data);
721
+ }
722
+ /**
723
+ * 檢視戰地神器資訊。
724
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
725
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
726
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
727
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
728
+ * - 此 API 提供來自楓之谷台灣的資料。
729
+ * @param ocid 角色辨識器
730
+ * @param dateOptions 要搜尋的日期 (TST)
731
+ */
732
+ async getUnionArtifact(ocid, dateOptions) {
733
+ const path = `${this.subUrl}/v1/user/union-artifact`;
734
+ const date = dateOptions
735
+ ? this.toDateString(dateOptions, {
736
+ year: 2025,
737
+ month: 10,
738
+ day: 15,
739
+ })
740
+ : undefined;
741
+ const query = {
742
+ ocid: ocid,
743
+ date: date,
744
+ };
745
+ const { data } = await this.client.get(path, {
746
+ params: query,
747
+ });
748
+ return new unionArtifact.UnionArtifactDto(data);
749
+ }
750
+ //#endregion
751
+ //#region 檢視公會資訊
752
+ /**
753
+ * 檢視公會識別碼 (oguild_id) 資訊。
754
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
755
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
756
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
757
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
758
+ * - 此 API 提供來自楓之谷台灣的資料。
759
+ * @param guildName 公會名稱
760
+ * @param worldName 世界名稱 <a href="https://openapi.nexon.com/game/maplestorytw/?id=51">Available values</a>
761
+ */
762
+ async getGuild(guildName, worldName) {
763
+ const path = `${this.subUrl}/v1/guild/id`;
764
+ const { data } = await this.client.get(path, {
765
+ params: {
766
+ guild_name: guildName,
767
+ world_name: worldName,
768
+ },
769
+ });
770
+ return new guild.GuildDto(data);
771
+ }
772
+ /**
773
+ * 檢視公會基本資訊。
774
+ * - 楓之谷遊戲資料平均在 15 分鐘後即可使用。
775
+ * - 您可以從 2025 年 10 月 15 日起搜尋資料。
776
+ * - 您可以輸入所需日期以搜尋過往資料。前一日的資料將於翌日凌晨 2:00 起提供。(當您搜尋 10 月 15 日的資料時,將會擷取從 15 日 00:00 到 16 日 00:00 的資料。)
777
+ * - 由於遊戲內容變動,OCID 可能會有所變更。在更新以 OCID 為基礎的服務時,請務必留意。
778
+ * - 此 API 提供來自楓之谷台灣的資料。
779
+ * @param guildId 公會識別碼
780
+ * @param dateOptions 要搜尋的日期 (TST)
781
+ */
782
+ async getGuildBasic(guildId, dateOptions) {
783
+ const path = `${this.subUrl}/v1/guild/basic`;
784
+ const date = dateOptions
785
+ ? this.toDateString(dateOptions, {
786
+ year: 2025,
787
+ month: 10,
788
+ day: 15,
789
+ })
790
+ : undefined;
791
+ const query = {
792
+ oguild_id: guildId,
793
+ date: date,
794
+ };
795
+ const { data } = await this.client.get(path, {
796
+ params: query,
797
+ });
798
+ return new guildBasic.GuildBasicDto(data);
799
+ }
800
+ }
801
+
802
+ exports.MapleStoryApi = MapleStoryApi;