maplestory-openapi 3.2.1 → 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.
- package/README.md +50 -39
- package/dist/cjs/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/cjs/_virtual/index.js_commonjs-exports3.js +2 -2
- package/dist/cjs/maplestory/api/kms/dto/character/characterImage.js +2 -2
- package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
- package/dist/cjs/maplestory/api/kms/dto/character/characterOtherStat.js +62 -0
- package/dist/cjs/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +34 -0
- package/dist/cjs/maplestory/api/kms/kms.js +4 -0
- package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +66 -10
- 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/base64-js/index.js +1 -1
- package/dist/cjs/node_modules/buffer/index.js +2 -2
- package/dist/cjs/node_modules/dayjs/plugin/utc.js +1 -1
- package/dist/cjs/node_modules/ieee754/index.js +1 -1
- package/dist/esm/_virtual/index.js_commonjs-exports2.js +2 -2
- package/dist/esm/_virtual/index.js_commonjs-exports3.js +2 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterImage.js +2 -2
- package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
- package/dist/esm/maplestory/api/kms/dto/character/characterOtherStat.js +56 -0
- package/dist/esm/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +30 -0
- package/dist/esm/maplestory/api/kms/kms.js +1 -0
- package/dist/esm/maplestory/api/kms/mapleStoryApi.js +66 -10
- 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/base64-js/index.js +2 -2
- package/dist/esm/node_modules/buffer/index.js +2 -2
- package/dist/esm/node_modules/dayjs/plugin/utc.js +1 -1
- package/dist/esm/node_modules/ieee754/index.js +2 -2
- 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/common/mapleStoryApi.d.ts +0 -16
- package/types/maplestory/api/kms/dto/character/characterImage.d.ts +2 -2
- package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +8 -0
- package/types/maplestory/api/kms/dto/character/characterOtherStat.d.ts +43 -0
- package/types/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.d.ts +23 -0
- package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
- package/types/maplestory/api/kms/index.d.ts +1 -0
- package/types/maplestory/api/kms/mapleStoryApi.d.ts +27 -17
- package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
- package/types/maplestory/api/kms/response/character/characterOtherStatBody.d.ts +12 -0
- package/types/maplestory/api/kms/response/character/characterRingExchangeSkillEquipmentBody.d.ts +6 -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,228 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterCashItemEquipment = require('../../../common/dto/character/characterCashItemEquipment.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色已裝備現金道具資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterCashItemEquipmentDto extends characterCashItemEquipment.CharacterCashItemEquipmentDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色性別
|
|
17
|
+
*/
|
|
18
|
+
characterGender;
|
|
19
|
+
/**
|
|
20
|
+
* 角色職業
|
|
21
|
+
*/
|
|
22
|
+
characterClass;
|
|
23
|
+
/**
|
|
24
|
+
* 角色外型模式 (0:一般模式,1:神之子為 Beta、天使破壞者為變裝模式時)
|
|
25
|
+
*/
|
|
26
|
+
characterLookMode;
|
|
27
|
+
/**
|
|
28
|
+
* 目前套用的現金道具預設編號
|
|
29
|
+
*/
|
|
30
|
+
presetNo;
|
|
31
|
+
/**
|
|
32
|
+
* 目前已裝備的現金道具
|
|
33
|
+
*/
|
|
34
|
+
cashItemEquipmentBase;
|
|
35
|
+
/**
|
|
36
|
+
* 外型預設 1
|
|
37
|
+
*/
|
|
38
|
+
cashItemEquipmentPreset1;
|
|
39
|
+
/**
|
|
40
|
+
* 外型預設 2
|
|
41
|
+
*/
|
|
42
|
+
cashItemEquipmentPreset2;
|
|
43
|
+
/**
|
|
44
|
+
* 外型預設 3
|
|
45
|
+
*/
|
|
46
|
+
cashItemEquipmentPreset3;
|
|
47
|
+
/**
|
|
48
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的目前已裝備現金道具
|
|
49
|
+
*/
|
|
50
|
+
additionalCashItemEquipmentBase;
|
|
51
|
+
/**
|
|
52
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的外型預設 1
|
|
53
|
+
*/
|
|
54
|
+
additionalCashItemEquipmentPreset1;
|
|
55
|
+
/**
|
|
56
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的外型預設 2
|
|
57
|
+
*/
|
|
58
|
+
additionalCashItemEquipmentPreset2;
|
|
59
|
+
/**
|
|
60
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的外型預設 3
|
|
61
|
+
*/
|
|
62
|
+
additionalCashItemEquipmentPreset3;
|
|
63
|
+
constructor(obj) {
|
|
64
|
+
super();
|
|
65
|
+
const { date, character_gender, character_class, character_look_mode, preset_no, cash_item_equipment_base, cash_item_equipment_preset_1, cash_item_equipment_preset_2, cash_item_equipment_preset_3, additional_cash_item_equipment_base, additional_cash_item_equipment_preset_1, additional_cash_item_equipment_preset_2, additional_cash_item_equipment_preset_3, } = obj;
|
|
66
|
+
this.date = date ? new Date(date) : null;
|
|
67
|
+
this.characterGender = character_gender;
|
|
68
|
+
this.characterClass = character_class;
|
|
69
|
+
this.characterLookMode = character_look_mode;
|
|
70
|
+
this.presetNo = preset_no;
|
|
71
|
+
this.cashItemEquipmentBase = cash_item_equipment_base.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
72
|
+
this.cashItemEquipmentPreset1 = cash_item_equipment_preset_1.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
73
|
+
this.cashItemEquipmentPreset2 = cash_item_equipment_preset_2.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
74
|
+
this.cashItemEquipmentPreset3 = cash_item_equipment_preset_3.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
75
|
+
this.additionalCashItemEquipmentBase =
|
|
76
|
+
additional_cash_item_equipment_base.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
77
|
+
this.additionalCashItemEquipmentPreset1 =
|
|
78
|
+
additional_cash_item_equipment_preset_1.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
79
|
+
this.additionalCashItemEquipmentPreset2 =
|
|
80
|
+
additional_cash_item_equipment_preset_2.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
81
|
+
this.additionalCashItemEquipmentPreset3 =
|
|
82
|
+
additional_cash_item_equipment_preset_3.map((preset) => new CharacterCashItemEquipmentPresetDto(preset));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 現金道具彩色稜鏡資訊
|
|
87
|
+
*/
|
|
88
|
+
class CharacterCashItemEquipmentColoringPrismDto extends characterCashItemEquipment.CharacterCashItemEquipmentColoringPrismDto {
|
|
89
|
+
/**
|
|
90
|
+
* 彩色稜鏡顏色範圍
|
|
91
|
+
*/
|
|
92
|
+
colorRange;
|
|
93
|
+
/**
|
|
94
|
+
* 彩色稜鏡色調
|
|
95
|
+
*/
|
|
96
|
+
hue;
|
|
97
|
+
/**
|
|
98
|
+
* 彩色稜鏡彩度
|
|
99
|
+
*/
|
|
100
|
+
saturation;
|
|
101
|
+
/**
|
|
102
|
+
* 彩色稜鏡明度
|
|
103
|
+
*/
|
|
104
|
+
value;
|
|
105
|
+
constructor(obj) {
|
|
106
|
+
super();
|
|
107
|
+
const { color_range, hue, saturation, value } = obj;
|
|
108
|
+
this.colorRange = color_range;
|
|
109
|
+
this.hue = hue;
|
|
110
|
+
this.saturation = saturation;
|
|
111
|
+
this.value = value;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 現金道具選項
|
|
116
|
+
*/
|
|
117
|
+
class CharacterCashItemEquipmentOptionDto extends characterCashItemEquipment.CharacterCashItemEquipmentOptionDto {
|
|
118
|
+
/**
|
|
119
|
+
* 選項類型
|
|
120
|
+
*/
|
|
121
|
+
optionType;
|
|
122
|
+
/**
|
|
123
|
+
* 選項數值
|
|
124
|
+
*/
|
|
125
|
+
optionValue;
|
|
126
|
+
constructor(obj) {
|
|
127
|
+
super();
|
|
128
|
+
const { option_type, option_value } = obj;
|
|
129
|
+
this.optionType = option_type;
|
|
130
|
+
this.optionValue = option_value;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 外型預設
|
|
135
|
+
*/
|
|
136
|
+
class CharacterCashItemEquipmentPresetDto extends characterCashItemEquipment.CharacterCashItemEquipmentPresetDto {
|
|
137
|
+
/**
|
|
138
|
+
* 現金道具部位名稱
|
|
139
|
+
*/
|
|
140
|
+
cashItemEquipmentPart;
|
|
141
|
+
/**
|
|
142
|
+
* 現金道具欄位位置
|
|
143
|
+
*/
|
|
144
|
+
cashItemEquipmentSlot;
|
|
145
|
+
/**
|
|
146
|
+
* 現金道具名稱
|
|
147
|
+
*/
|
|
148
|
+
cashItemName;
|
|
149
|
+
/**
|
|
150
|
+
* 現金道具圖示
|
|
151
|
+
*/
|
|
152
|
+
cashItemIcon;
|
|
153
|
+
/**
|
|
154
|
+
* 現金道具描述
|
|
155
|
+
*/
|
|
156
|
+
cashItemDescription;
|
|
157
|
+
/**
|
|
158
|
+
* 現金道具選項
|
|
159
|
+
*/
|
|
160
|
+
cashItemOption;
|
|
161
|
+
/**
|
|
162
|
+
* 現金道具有效期間 (TST)
|
|
163
|
+
*/
|
|
164
|
+
dateExpire = null;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the cash equipment is expired
|
|
167
|
+
*/
|
|
168
|
+
isExpired = null;
|
|
169
|
+
/**
|
|
170
|
+
* 現金道具選項有效期間 (TST,時間單位資料中的分鐘顯示為 0)
|
|
171
|
+
*/
|
|
172
|
+
dateOptionExpire = null;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the cash equipment option is expired
|
|
175
|
+
*/
|
|
176
|
+
isOptionExpired = null;
|
|
177
|
+
/**
|
|
178
|
+
* 現金道具等級資訊
|
|
179
|
+
*/
|
|
180
|
+
cashItemLabel;
|
|
181
|
+
/**
|
|
182
|
+
* 現金道具彩色稜鏡資訊
|
|
183
|
+
*/
|
|
184
|
+
cashItemColoringPrism;
|
|
185
|
+
/**
|
|
186
|
+
* 道具可裝備性別
|
|
187
|
+
*/
|
|
188
|
+
itemGender;
|
|
189
|
+
/**
|
|
190
|
+
* 技能名稱
|
|
191
|
+
*/
|
|
192
|
+
skills;
|
|
193
|
+
constructor(obj) {
|
|
194
|
+
super();
|
|
195
|
+
const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, skills, } = obj;
|
|
196
|
+
this.cashItemEquipmentPart = cash_item_equipment_part;
|
|
197
|
+
this.cashItemEquipmentSlot = cash_item_equipment_slot;
|
|
198
|
+
this.cashItemName = cash_item_name;
|
|
199
|
+
this.cashItemIcon = cash_item_icon;
|
|
200
|
+
this.cashItemDescription = cash_item_description;
|
|
201
|
+
this.cashItemOption = cash_item_option.map((option) => new CharacterCashItemEquipmentOptionDto(option));
|
|
202
|
+
this.cashItemLabel = cash_item_label;
|
|
203
|
+
this.cashItemColoringPrism = cash_item_coloring_prism
|
|
204
|
+
? new CharacterCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
|
|
205
|
+
: null;
|
|
206
|
+
this.itemGender = item_gender;
|
|
207
|
+
this.skills = skills;
|
|
208
|
+
if (date_expire === 'expired') {
|
|
209
|
+
this.isExpired = true;
|
|
210
|
+
}
|
|
211
|
+
else if (typeof date_expire === 'string') {
|
|
212
|
+
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
213
|
+
}
|
|
214
|
+
if (date_option_expire === 'expired') {
|
|
215
|
+
this.isOptionExpired = true;
|
|
216
|
+
}
|
|
217
|
+
else if (typeof date_option_expire === 'string') {
|
|
218
|
+
this.dateOptionExpire = date_option_expire
|
|
219
|
+
? new Date(date_option_expire)
|
|
220
|
+
: null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
exports.CharacterCashItemEquipmentColoringPrismDto = CharacterCashItemEquipmentColoringPrismDto;
|
|
226
|
+
exports.CharacterCashItemEquipmentDto = CharacterCashItemEquipmentDto;
|
|
227
|
+
exports.CharacterCashItemEquipmentOptionDto = CharacterCashItemEquipmentOptionDto;
|
|
228
|
+
exports.CharacterCashItemEquipmentPresetDto = CharacterCashItemEquipmentPresetDto;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterDojang = require('../../../common/dto/character/characterDojang.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色在武陵道場的最高紀錄資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterDojangDto extends characterDojang.CharacterDojangDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色職業
|
|
17
|
+
*/
|
|
18
|
+
characterClass;
|
|
19
|
+
/**
|
|
20
|
+
* 世界名稱
|
|
21
|
+
*/
|
|
22
|
+
worldName;
|
|
23
|
+
/**
|
|
24
|
+
* 武陵道場最高紀錄層數
|
|
25
|
+
*/
|
|
26
|
+
dojangBestFloor;
|
|
27
|
+
/**
|
|
28
|
+
* 達成武陵道場最高紀錄的日期 (TST,每日資料的小時與分鐘顯示為 0)
|
|
29
|
+
*/
|
|
30
|
+
dateDojangRecord;
|
|
31
|
+
/**
|
|
32
|
+
* 通關武陵道場最高樓層所花費的時間 (秒)
|
|
33
|
+
*/
|
|
34
|
+
dojangBestTime;
|
|
35
|
+
constructor(obj) {
|
|
36
|
+
super();
|
|
37
|
+
const { date, character_class, world_name, dojang_best_floor, date_dojang_record, dojang_best_time, } = obj;
|
|
38
|
+
this.date = date ? new Date(date) : null;
|
|
39
|
+
this.characterClass = character_class;
|
|
40
|
+
this.worldName = world_name;
|
|
41
|
+
this.dojangBestFloor = dojang_best_floor;
|
|
42
|
+
this.dateDojangRecord = date_dojang_record
|
|
43
|
+
? new Date(date_dojang_record)
|
|
44
|
+
: null;
|
|
45
|
+
this.dojangBestTime = dojang_best_time;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.CharacterDojangDto = CharacterDojangDto;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterHexaMatrix = require('../../../common/dto/character/characterHexaMatrix.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色已裝備於 HEXA 矩陣的 HEXA 核心資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterHexaMatrixDto extends characterHexaMatrix.CharacterHexaMatrixDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* HEXA 核心資訊
|
|
17
|
+
*/
|
|
18
|
+
characterHexaCoreEquipment;
|
|
19
|
+
constructor(obj) {
|
|
20
|
+
super();
|
|
21
|
+
const { date, character_hexa_core_equipment } = obj;
|
|
22
|
+
this.date = date ? new Date(date) : null;
|
|
23
|
+
this.characterHexaCoreEquipment =
|
|
24
|
+
character_hexa_core_equipment?.map((equipment) => new CharacterHexaMatrixEquipmentDto(equipment)) ?? [];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 已連接的技能
|
|
29
|
+
*/
|
|
30
|
+
class CharacterHexaMatrixEquipmentLinkedSkillDto extends characterHexaMatrix.CharacterHexaMatrixEquipmentLinkedSkillDto {
|
|
31
|
+
/**
|
|
32
|
+
* HEXA 技能名稱
|
|
33
|
+
*/
|
|
34
|
+
hexaSkillId;
|
|
35
|
+
constructor(obj) {
|
|
36
|
+
super();
|
|
37
|
+
const { hexa_skill_id } = obj;
|
|
38
|
+
this.hexaSkillId = hexa_skill_id;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* HEXA 核心資訊
|
|
43
|
+
*/
|
|
44
|
+
class CharacterHexaMatrixEquipmentDto extends characterHexaMatrix.CharacterHexaMatrixEquipmentDto {
|
|
45
|
+
/**
|
|
46
|
+
* 核心名稱
|
|
47
|
+
*/
|
|
48
|
+
hexaCoreName;
|
|
49
|
+
/**
|
|
50
|
+
* 核心等級
|
|
51
|
+
*/
|
|
52
|
+
hexaCoreLevel;
|
|
53
|
+
/**
|
|
54
|
+
* 核心類型
|
|
55
|
+
*/
|
|
56
|
+
hexaCoreType;
|
|
57
|
+
/**
|
|
58
|
+
* 已連接的技能
|
|
59
|
+
*/
|
|
60
|
+
linkedSkill;
|
|
61
|
+
constructor(obj) {
|
|
62
|
+
super();
|
|
63
|
+
const { hexa_core_name, hexa_core_level, hexa_core_type, linked_skill } = obj;
|
|
64
|
+
this.hexaCoreName = hexa_core_name;
|
|
65
|
+
this.hexaCoreLevel = hexa_core_level;
|
|
66
|
+
this.hexaCoreType = hexa_core_type;
|
|
67
|
+
this.linkedSkill = linked_skill.map((skill) => new CharacterHexaMatrixEquipmentLinkedSkillDto(skill));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
exports.CharacterHexaMatrixDto = CharacterHexaMatrixDto;
|
|
72
|
+
exports.CharacterHexaMatrixEquipmentDto = CharacterHexaMatrixEquipmentDto;
|
|
73
|
+
exports.CharacterHexaMatrixEquipmentLinkedSkillDto = CharacterHexaMatrixEquipmentLinkedSkillDto;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterHexaMatrixStat = require('../../../common/dto/character/characterHexaMatrixStat.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色設定於 HEXA 矩陣中的 HEXA 屬性資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterHexaMatrixStatDto extends characterHexaMatrixStat.CharacterHexaMatrixStatDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色職業
|
|
17
|
+
*/
|
|
18
|
+
characterClass;
|
|
19
|
+
/**
|
|
20
|
+
* HEXA 屬性 I 核心資訊
|
|
21
|
+
*/
|
|
22
|
+
characterHexaStatCore;
|
|
23
|
+
/**
|
|
24
|
+
* HEXA 屬性 II 核心資訊
|
|
25
|
+
*/
|
|
26
|
+
characterHexaStatCore2;
|
|
27
|
+
/**
|
|
28
|
+
* HEXA 屬性 III 核心資訊
|
|
29
|
+
*/
|
|
30
|
+
characterHexaStatCore3;
|
|
31
|
+
/**
|
|
32
|
+
* 預設的 HEXA 屬性 I 核心資訊
|
|
33
|
+
*/
|
|
34
|
+
presetHexaStatCore;
|
|
35
|
+
/**
|
|
36
|
+
* 預設的 HEXA 屬性 II 核心資訊
|
|
37
|
+
*/
|
|
38
|
+
presetHexaStatCore2;
|
|
39
|
+
/**
|
|
40
|
+
* 預設的 HEXA 屬性 III 核心資訊
|
|
41
|
+
*/
|
|
42
|
+
presetHexaStatCore3;
|
|
43
|
+
constructor(obj) {
|
|
44
|
+
super();
|
|
45
|
+
const { date, character_class, character_hexa_stat_core, character_hexa_stat_core_2, character_hexa_stat_core_3, preset_hexa_stat_core, preset_hexa_stat_core_2, preset_hexa_stat_core_3, } = obj;
|
|
46
|
+
this.date = date ? new Date(date) : null;
|
|
47
|
+
this.characterClass = character_class;
|
|
48
|
+
this.characterHexaStatCore =
|
|
49
|
+
character_hexa_stat_core?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
50
|
+
this.characterHexaStatCore2 =
|
|
51
|
+
character_hexa_stat_core_2?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
52
|
+
this.characterHexaStatCore3 =
|
|
53
|
+
character_hexa_stat_core_3?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
54
|
+
this.presetHexaStatCore =
|
|
55
|
+
preset_hexa_stat_core?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
56
|
+
this.presetHexaStatCore2 =
|
|
57
|
+
preset_hexa_stat_core_2?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
58
|
+
this.presetHexaStatCore3 =
|
|
59
|
+
preset_hexa_stat_core_3?.map((core) => new CharacterHexaMatrixStatCoreDto(core)) ?? [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* HEXA 屬性核心資訊
|
|
64
|
+
*/
|
|
65
|
+
class CharacterHexaMatrixStatCoreDto extends characterHexaMatrixStat.CharacterHexaMatrixStatCoreDto {
|
|
66
|
+
/**
|
|
67
|
+
* 欄位索引
|
|
68
|
+
*/
|
|
69
|
+
slotId;
|
|
70
|
+
/**
|
|
71
|
+
* 主要屬性名稱
|
|
72
|
+
*/
|
|
73
|
+
mainStatName;
|
|
74
|
+
/**
|
|
75
|
+
* 第一副屬性名稱
|
|
76
|
+
*/
|
|
77
|
+
subStatName1;
|
|
78
|
+
/**
|
|
79
|
+
* 第二副屬性名稱
|
|
80
|
+
*/
|
|
81
|
+
subStatName2;
|
|
82
|
+
/**
|
|
83
|
+
* 主要屬性等級
|
|
84
|
+
*/
|
|
85
|
+
mainStatLevel;
|
|
86
|
+
/**
|
|
87
|
+
* 第一副屬性等級
|
|
88
|
+
*/
|
|
89
|
+
subStatLevel1;
|
|
90
|
+
/**
|
|
91
|
+
* 第二副屬性等級
|
|
92
|
+
*/
|
|
93
|
+
subStatLevel2;
|
|
94
|
+
/**
|
|
95
|
+
* 屬性核心階級
|
|
96
|
+
*/
|
|
97
|
+
statGrade;
|
|
98
|
+
constructor(obj) {
|
|
99
|
+
super();
|
|
100
|
+
const { slot_id, main_stat_name, sub_stat_name_1, sub_stat_name_2, main_stat_level, sub_stat_level_1, sub_stat_level_2, stat_grade, } = obj;
|
|
101
|
+
this.slotId = slot_id;
|
|
102
|
+
this.mainStatName = main_stat_name;
|
|
103
|
+
this.subStatName1 = sub_stat_name_1;
|
|
104
|
+
this.subStatName2 = sub_stat_name_2;
|
|
105
|
+
this.mainStatLevel = main_stat_level;
|
|
106
|
+
this.subStatLevel1 = sub_stat_level_1;
|
|
107
|
+
this.subStatLevel2 = sub_stat_level_2;
|
|
108
|
+
this.statGrade = stat_grade;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
exports.CharacterHexaMatrixStatCoreDto = CharacterHexaMatrixStatCoreDto;
|
|
113
|
+
exports.CharacterHexaMatrixStatDto = CharacterHexaMatrixStatDto;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterHyperStat = require('../../../common/dto/character/characterHyperStat.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色極限屬性資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterHyperStatDto extends characterHyperStat.CharacterHyperStatDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色職業
|
|
17
|
+
*/
|
|
18
|
+
characterClass;
|
|
19
|
+
/**
|
|
20
|
+
* 目前套用的預設編號
|
|
21
|
+
*/
|
|
22
|
+
usePresetNo;
|
|
23
|
+
/**
|
|
24
|
+
* 可用的極限屬性點數上限
|
|
25
|
+
*/
|
|
26
|
+
useAvailableHyperStat;
|
|
27
|
+
/**
|
|
28
|
+
* 預設 1 的極限屬性資訊
|
|
29
|
+
*/
|
|
30
|
+
hyperStatPreset1;
|
|
31
|
+
/**
|
|
32
|
+
* 預設 1 剩餘的極限屬性點數
|
|
33
|
+
*/
|
|
34
|
+
hyperStatPreset1RemainPoint;
|
|
35
|
+
/**
|
|
36
|
+
* 預設 2 的極限屬性資訊
|
|
37
|
+
*/
|
|
38
|
+
hyperStatPreset2;
|
|
39
|
+
/**
|
|
40
|
+
* 預設 2 剩餘的極限屬性點數
|
|
41
|
+
*/
|
|
42
|
+
hyperStatPreset2RemainPoint;
|
|
43
|
+
/**
|
|
44
|
+
* 預設 3 的極限屬性資訊
|
|
45
|
+
*/
|
|
46
|
+
hyperStatPreset3;
|
|
47
|
+
/**
|
|
48
|
+
* 預設 3 剩餘的極限屬性點數
|
|
49
|
+
*/
|
|
50
|
+
hyperStatPreset3RemainPoint;
|
|
51
|
+
constructor(obj) {
|
|
52
|
+
super();
|
|
53
|
+
const { date, character_class, use_preset_no, use_available_hyper_stat, hyper_stat_preset_1, hyper_stat_preset_1_remain_point, hyper_stat_preset_2, hyper_stat_preset_2_remain_point, hyper_stat_preset_3, hyper_stat_preset_3_remain_point, } = obj;
|
|
54
|
+
this.date = date ? new Date(date) : null;
|
|
55
|
+
this.characterClass = character_class;
|
|
56
|
+
this.usePresetNo = use_preset_no;
|
|
57
|
+
this.useAvailableHyperStat = use_available_hyper_stat;
|
|
58
|
+
this.hyperStatPreset1 = hyper_stat_preset_1.map((preset) => new CharacterHyperStatPresetDto(preset));
|
|
59
|
+
this.hyperStatPreset1RemainPoint = hyper_stat_preset_1_remain_point;
|
|
60
|
+
this.hyperStatPreset2 = hyper_stat_preset_2.map((preset) => new CharacterHyperStatPresetDto(preset));
|
|
61
|
+
this.hyperStatPreset2RemainPoint = hyper_stat_preset_2_remain_point;
|
|
62
|
+
this.hyperStatPreset3 = hyper_stat_preset_3.map((preset) => new CharacterHyperStatPresetDto(preset));
|
|
63
|
+
this.hyperStatPreset3RemainPoint = hyper_stat_preset_3_remain_point;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 預設的極限屬性資訊
|
|
68
|
+
*/
|
|
69
|
+
class CharacterHyperStatPresetDto extends characterHyperStat.CharacterHyperStatPresetDto {
|
|
70
|
+
/**
|
|
71
|
+
* 能力值類型
|
|
72
|
+
*/
|
|
73
|
+
statType;
|
|
74
|
+
/**
|
|
75
|
+
* 投入於能力值的點數
|
|
76
|
+
*/
|
|
77
|
+
statPoint;
|
|
78
|
+
/**
|
|
79
|
+
* 能力值等級
|
|
80
|
+
*/
|
|
81
|
+
statLevel;
|
|
82
|
+
/**
|
|
83
|
+
* 能力值提升量
|
|
84
|
+
*/
|
|
85
|
+
statIncrease;
|
|
86
|
+
constructor(obj) {
|
|
87
|
+
super();
|
|
88
|
+
const { stat_type, stat_point, stat_level, stat_increase } = obj;
|
|
89
|
+
this.statType = stat_type;
|
|
90
|
+
this.statPoint = stat_point;
|
|
91
|
+
this.statLevel = stat_level;
|
|
92
|
+
this.statIncrease = stat_increase;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
exports.CharacterHyperStatDto = CharacterHyperStatDto;
|
|
97
|
+
exports.CharacterHyperStatPresetDto = CharacterHyperStatPresetDto;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterImage = require('../../../common/dto/character/characterImage.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色外型圖片資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterImageDto extends characterImage.CharacterImageDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色外型圖片原始 (URL)
|
|
17
|
+
*/
|
|
18
|
+
originUrl;
|
|
19
|
+
/**
|
|
20
|
+
* 角色外型圖片原始 (base64)
|
|
21
|
+
*/
|
|
22
|
+
originImage;
|
|
23
|
+
/**
|
|
24
|
+
* 角色外型圖片 (base64)
|
|
25
|
+
*/
|
|
26
|
+
image;
|
|
27
|
+
/**
|
|
28
|
+
* 角色動作
|
|
29
|
+
*/
|
|
30
|
+
action;
|
|
31
|
+
/**
|
|
32
|
+
* 角色表情
|
|
33
|
+
*/
|
|
34
|
+
emotion;
|
|
35
|
+
/**
|
|
36
|
+
* 角色武器動作
|
|
37
|
+
*/
|
|
38
|
+
wmotion;
|
|
39
|
+
/**
|
|
40
|
+
* 角色動作影格
|
|
41
|
+
*/
|
|
42
|
+
actionFrame;
|
|
43
|
+
/**
|
|
44
|
+
* 角色表情影格
|
|
45
|
+
*/
|
|
46
|
+
emotionFrame;
|
|
47
|
+
/**
|
|
48
|
+
* 寬度 (對應背景大小,96 (預設) 至 1000)
|
|
49
|
+
*/
|
|
50
|
+
width;
|
|
51
|
+
/**
|
|
52
|
+
* 高度 (對應背景大小,96 (預設) 至 1000)
|
|
53
|
+
*/
|
|
54
|
+
height;
|
|
55
|
+
/**
|
|
56
|
+
* 角色的水平座標 (座標範圍 0 < x < 寬度,0 對應至最左起點)
|
|
57
|
+
*/
|
|
58
|
+
x;
|
|
59
|
+
/**
|
|
60
|
+
* 角色的垂直座標 (座標範圍 0 < y < 高度,0 對應至最上方起點)
|
|
61
|
+
*/
|
|
62
|
+
y;
|
|
63
|
+
constructor(obj) {
|
|
64
|
+
super();
|
|
65
|
+
this.date = obj.date;
|
|
66
|
+
this.originUrl = obj.originUrl;
|
|
67
|
+
this.originImage = obj.originImage;
|
|
68
|
+
this.image = obj.image;
|
|
69
|
+
this.action = obj.action;
|
|
70
|
+
this.emotion = obj.emotion;
|
|
71
|
+
this.wmotion = obj.wmotion;
|
|
72
|
+
this.actionFrame = obj.actionFrame;
|
|
73
|
+
this.emotionFrame = obj.emotionFrame;
|
|
74
|
+
this.width = obj.width;
|
|
75
|
+
this.height = obj.height;
|
|
76
|
+
this.x = obj.x;
|
|
77
|
+
this.y = obj.y;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports.CharacterImageDto = CharacterImageDto;
|