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