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,424 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterAndroidEquipment = require('../../../common/dto/character/characterAndroidEquipment.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色已裝備機器人資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterAndroidEquipmentDto extends characterAndroidEquipment.CharacterAndroidEquipmentDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 機器人名稱
|
|
17
|
+
*/
|
|
18
|
+
androidName;
|
|
19
|
+
/**
|
|
20
|
+
* 機器人暱稱
|
|
21
|
+
*/
|
|
22
|
+
androidNickname;
|
|
23
|
+
/**
|
|
24
|
+
* 機器人圖示
|
|
25
|
+
*/
|
|
26
|
+
androidIcon;
|
|
27
|
+
/**
|
|
28
|
+
* 機器人道具描述
|
|
29
|
+
*/
|
|
30
|
+
androidDescription;
|
|
31
|
+
/**
|
|
32
|
+
* 機器人髮型資訊
|
|
33
|
+
*/
|
|
34
|
+
androidHair;
|
|
35
|
+
/**
|
|
36
|
+
* 機器人臉型資訊
|
|
37
|
+
*/
|
|
38
|
+
androidFace;
|
|
39
|
+
/**
|
|
40
|
+
* 機器人膚色資訊
|
|
41
|
+
*/
|
|
42
|
+
androidSkin;
|
|
43
|
+
/**
|
|
44
|
+
* 機器人的已裝備現金道具資訊
|
|
45
|
+
*/
|
|
46
|
+
androidCashItemEquipment;
|
|
47
|
+
/**
|
|
48
|
+
* 機器人耳飾感應器
|
|
49
|
+
*/
|
|
50
|
+
androidEarSensorClipFlag;
|
|
51
|
+
/**
|
|
52
|
+
* 機器人性別
|
|
53
|
+
*/
|
|
54
|
+
androidGender;
|
|
55
|
+
/**
|
|
56
|
+
* 機器人階級
|
|
57
|
+
*/
|
|
58
|
+
androidGrade;
|
|
59
|
+
/**
|
|
60
|
+
* 非人型機器人
|
|
61
|
+
*/
|
|
62
|
+
androidNonHumanoidFlag;
|
|
63
|
+
/**
|
|
64
|
+
* 是否具備雜貨店功能
|
|
65
|
+
*/
|
|
66
|
+
androidShopUsableFlag;
|
|
67
|
+
/**
|
|
68
|
+
* 目前套用的道具預設編號
|
|
69
|
+
*/
|
|
70
|
+
presetNo;
|
|
71
|
+
/**
|
|
72
|
+
* 預設 1 的機器人資訊
|
|
73
|
+
*/
|
|
74
|
+
androidPreset1;
|
|
75
|
+
/**
|
|
76
|
+
* 預設 2 的機器人資訊
|
|
77
|
+
*/
|
|
78
|
+
androidPreset2;
|
|
79
|
+
/**
|
|
80
|
+
* 預設 3 的機器人資訊
|
|
81
|
+
*/
|
|
82
|
+
androidPreset3;
|
|
83
|
+
constructor(obj) {
|
|
84
|
+
super();
|
|
85
|
+
const { date, android_name, android_nickname, android_icon, android_description, android_hair, android_face, android_skin, android_cash_item_equipment, android_ear_sensor_clip_flag, android_gender, android_grade, android_non_humanoid_flag, android_shop_usable_flag, preset_no, android_preset_1, android_preset_2, android_preset_3, } = obj;
|
|
86
|
+
this.date = date ? new Date(date) : null;
|
|
87
|
+
this.androidName = android_name;
|
|
88
|
+
this.androidNickname = android_nickname;
|
|
89
|
+
this.androidIcon = android_icon;
|
|
90
|
+
this.androidDescription = android_description;
|
|
91
|
+
this.androidHair = android_hair
|
|
92
|
+
? new CharacterAndroidEquipmentHairDto(android_hair)
|
|
93
|
+
: null;
|
|
94
|
+
this.androidFace = android_face
|
|
95
|
+
? new CharacterAndroidEquipmentFaceDto(android_face)
|
|
96
|
+
: null;
|
|
97
|
+
this.androidSkin = android_skin
|
|
98
|
+
? new CharacterAndroidEquipmentSkinDto(android_skin)
|
|
99
|
+
: null;
|
|
100
|
+
this.androidCashItemEquipment = android_cash_item_equipment.map((equipment) => new CharacterAndroidCashItemEquipmentDto(equipment));
|
|
101
|
+
this.androidEarSensorClipFlag = android_ear_sensor_clip_flag ?? null;
|
|
102
|
+
this.androidGender = android_gender;
|
|
103
|
+
this.androidGrade = android_grade;
|
|
104
|
+
this.androidNonHumanoidFlag = android_non_humanoid_flag;
|
|
105
|
+
this.androidShopUsableFlag = android_shop_usable_flag;
|
|
106
|
+
this.presetNo = preset_no;
|
|
107
|
+
this.androidPreset1 = android_preset_1
|
|
108
|
+
? new CharacterAndroidEquipmentPresetDto(android_preset_1)
|
|
109
|
+
: null;
|
|
110
|
+
this.androidPreset2 = android_preset_2
|
|
111
|
+
? new CharacterAndroidEquipmentPresetDto(android_preset_2)
|
|
112
|
+
: null;
|
|
113
|
+
this.androidPreset3 = android_preset_3
|
|
114
|
+
? new CharacterAndroidEquipmentPresetDto(android_preset_3)
|
|
115
|
+
: null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 機器人臉型資訊
|
|
120
|
+
*/
|
|
121
|
+
class CharacterAndroidEquipmentFaceDto extends characterAndroidEquipment.CharacterAndroidEquipmentFaceDto {
|
|
122
|
+
/**
|
|
123
|
+
* 機器人臉型名稱
|
|
124
|
+
*/
|
|
125
|
+
faceName;
|
|
126
|
+
/**
|
|
127
|
+
* 機器人臉型基本顏色
|
|
128
|
+
*/
|
|
129
|
+
baseColor;
|
|
130
|
+
/**
|
|
131
|
+
* 機器人臉型混染顏色
|
|
132
|
+
*/
|
|
133
|
+
mixColor;
|
|
134
|
+
/**
|
|
135
|
+
* 機器人臉型混染顏色比例
|
|
136
|
+
*/
|
|
137
|
+
mixRate;
|
|
138
|
+
constructor(obj) {
|
|
139
|
+
super();
|
|
140
|
+
const { face_name, base_color, mix_color, mix_rate } = obj;
|
|
141
|
+
this.faceName = face_name;
|
|
142
|
+
this.baseColor = base_color;
|
|
143
|
+
this.mixColor = mix_color;
|
|
144
|
+
this.mixRate = mix_rate;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* 機器人髮型資訊
|
|
149
|
+
*/
|
|
150
|
+
class CharacterAndroidEquipmentHairDto extends characterAndroidEquipment.CharacterAndroidEquipmentHairDto {
|
|
151
|
+
/**
|
|
152
|
+
* 機器人髮型名稱
|
|
153
|
+
*/
|
|
154
|
+
hairName;
|
|
155
|
+
/**
|
|
156
|
+
* 機器人髮型基本顏色
|
|
157
|
+
*/
|
|
158
|
+
baseColor;
|
|
159
|
+
/**
|
|
160
|
+
* 機器人髮型混染顏色
|
|
161
|
+
*/
|
|
162
|
+
mixColor;
|
|
163
|
+
/**
|
|
164
|
+
* 機器人髮型混染顏色比例
|
|
165
|
+
*/
|
|
166
|
+
mixRate;
|
|
167
|
+
constructor(obj) {
|
|
168
|
+
super();
|
|
169
|
+
const { hair_name, base_color, mix_color, mix_rate } = obj;
|
|
170
|
+
this.hairName = hair_name;
|
|
171
|
+
this.baseColor = base_color;
|
|
172
|
+
this.mixColor = mix_color;
|
|
173
|
+
this.mixRate = mix_rate;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 機器人膚色資訊
|
|
178
|
+
*/
|
|
179
|
+
class CharacterAndroidEquipmentSkinDto extends characterAndroidEquipment.CharacterAndroidEquipmentSkinDto {
|
|
180
|
+
/**
|
|
181
|
+
* 膚色名稱
|
|
182
|
+
*/
|
|
183
|
+
skinName;
|
|
184
|
+
/**
|
|
185
|
+
* 色系
|
|
186
|
+
*/
|
|
187
|
+
colorStyle;
|
|
188
|
+
/**
|
|
189
|
+
* 膚色色調
|
|
190
|
+
*/
|
|
191
|
+
hue;
|
|
192
|
+
/**
|
|
193
|
+
* 膚色彩度
|
|
194
|
+
*/
|
|
195
|
+
saturation;
|
|
196
|
+
/**
|
|
197
|
+
* 膚色明度
|
|
198
|
+
*/
|
|
199
|
+
brightness;
|
|
200
|
+
constructor(obj) {
|
|
201
|
+
super();
|
|
202
|
+
const { skin_name, color_style, hue, saturation, brightness } = obj;
|
|
203
|
+
this.skinName = skin_name;
|
|
204
|
+
this.colorStyle = color_style;
|
|
205
|
+
this.hue = hue;
|
|
206
|
+
this.saturation = saturation;
|
|
207
|
+
this.brightness = brightness;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* 預設的機器人資訊
|
|
212
|
+
*/
|
|
213
|
+
class CharacterAndroidEquipmentPresetDto extends characterAndroidEquipment.CharacterAndroidEquipmentPresetDto {
|
|
214
|
+
/**
|
|
215
|
+
* 機器人名稱
|
|
216
|
+
*/
|
|
217
|
+
androidName;
|
|
218
|
+
/**
|
|
219
|
+
* 機器人暱稱
|
|
220
|
+
*/
|
|
221
|
+
androidNickname;
|
|
222
|
+
/**
|
|
223
|
+
* 機器人圖示
|
|
224
|
+
*/
|
|
225
|
+
androidIcon;
|
|
226
|
+
/**
|
|
227
|
+
* 機器人道具描述
|
|
228
|
+
*/
|
|
229
|
+
androidDescription;
|
|
230
|
+
/**
|
|
231
|
+
* 機器人性別
|
|
232
|
+
*/
|
|
233
|
+
androidGender;
|
|
234
|
+
/**
|
|
235
|
+
* 機器人階級
|
|
236
|
+
*/
|
|
237
|
+
androidGrade;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* 機器人髮型資訊
|
|
241
|
+
*/
|
|
242
|
+
androidHair;
|
|
243
|
+
/**
|
|
244
|
+
* 機器人臉型資訊
|
|
245
|
+
*/
|
|
246
|
+
androidFace;
|
|
247
|
+
/**
|
|
248
|
+
* 機器人膚色資訊
|
|
249
|
+
*/
|
|
250
|
+
androidSkin;
|
|
251
|
+
/**
|
|
252
|
+
* 機器人耳飾感應器
|
|
253
|
+
*/
|
|
254
|
+
androidEarSensorClipFlag;
|
|
255
|
+
/**
|
|
256
|
+
* 非人型機器人
|
|
257
|
+
*/
|
|
258
|
+
androidNonHumanoidFlag;
|
|
259
|
+
/**
|
|
260
|
+
* 是否具備雜貨店功能
|
|
261
|
+
*/
|
|
262
|
+
androidShopUsableFlag;
|
|
263
|
+
constructor(obj) {
|
|
264
|
+
super();
|
|
265
|
+
const { android_name, android_nickname, android_icon, android_description, android_gender, android_grade, android_hair, android_face, android_skin, android_ear_sensor_clip_flag, android_non_humanoid_flag, android_shop_usable_flag, } = obj;
|
|
266
|
+
this.androidName = android_name;
|
|
267
|
+
this.androidNickname = android_nickname;
|
|
268
|
+
this.androidIcon = android_icon;
|
|
269
|
+
this.androidDescription = android_description;
|
|
270
|
+
this.androidGender = android_gender;
|
|
271
|
+
this.androidGrade = android_grade;
|
|
272
|
+
this.androidHair = new CharacterAndroidEquipmentHairDto(android_hair);
|
|
273
|
+
this.androidFace = new CharacterAndroidEquipmentFaceDto(android_face);
|
|
274
|
+
this.androidSkin = android_skin
|
|
275
|
+
? new CharacterAndroidEquipmentSkinDto(android_skin)
|
|
276
|
+
: null;
|
|
277
|
+
this.androidEarSensorClipFlag = android_ear_sensor_clip_flag;
|
|
278
|
+
this.androidNonHumanoidFlag = android_non_humanoid_flag;
|
|
279
|
+
this.androidShopUsableFlag = android_shop_usable_flag;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* 機器人現金道具彩色稜鏡資訊
|
|
284
|
+
*/
|
|
285
|
+
class CharacterAndroidCashItemEquipmentColoringPrismDto extends characterAndroidEquipment.CharacterAndroidCashItemEquipmentColoringPrismDto {
|
|
286
|
+
/**
|
|
287
|
+
* 彩色稜鏡顏色範圍
|
|
288
|
+
*/
|
|
289
|
+
colorRange;
|
|
290
|
+
/**
|
|
291
|
+
* 彩色稜鏡色調
|
|
292
|
+
*/
|
|
293
|
+
hue;
|
|
294
|
+
/**
|
|
295
|
+
* 彩色稜鏡彩度
|
|
296
|
+
*/
|
|
297
|
+
saturation;
|
|
298
|
+
/**
|
|
299
|
+
* 彩色稜鏡明度
|
|
300
|
+
*/
|
|
301
|
+
value;
|
|
302
|
+
constructor(obj) {
|
|
303
|
+
super();
|
|
304
|
+
const { color_range, hue, saturation, value } = obj;
|
|
305
|
+
this.colorRange = color_range;
|
|
306
|
+
this.hue = hue;
|
|
307
|
+
this.saturation = saturation;
|
|
308
|
+
this.value = value;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* 機器人現金道具選項
|
|
313
|
+
*/
|
|
314
|
+
class CharacterAndroidCashItemEquipmentOptionDto extends characterAndroidEquipment.CharacterAndroidCashItemEquipmentOptionDto {
|
|
315
|
+
/**
|
|
316
|
+
* 選項類型
|
|
317
|
+
*/
|
|
318
|
+
optionType;
|
|
319
|
+
/**
|
|
320
|
+
* 選項數值
|
|
321
|
+
*/
|
|
322
|
+
optionValue;
|
|
323
|
+
constructor(obj) {
|
|
324
|
+
super();
|
|
325
|
+
const { option_type, option_value } = obj;
|
|
326
|
+
this.optionType = option_type;
|
|
327
|
+
this.optionValue = option_value;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* 機器人的已裝備現金道具資訊
|
|
332
|
+
*/
|
|
333
|
+
class CharacterAndroidCashItemEquipmentDto extends characterAndroidEquipment.CharacterAndroidCashItemEquipmentDto {
|
|
334
|
+
/**
|
|
335
|
+
* 機器人現金道具部位名稱
|
|
336
|
+
*/
|
|
337
|
+
cashItemEquipmentPart;
|
|
338
|
+
/**
|
|
339
|
+
* 機器人現金道具欄位位置
|
|
340
|
+
*/
|
|
341
|
+
cashItemEquipmentSlot;
|
|
342
|
+
/**
|
|
343
|
+
* 機器人現金道具名稱
|
|
344
|
+
*/
|
|
345
|
+
cashItemName;
|
|
346
|
+
/**
|
|
347
|
+
* 機器人現金道具圖示
|
|
348
|
+
*/
|
|
349
|
+
cashItemIcon;
|
|
350
|
+
/**
|
|
351
|
+
* 機器人現金道具描述
|
|
352
|
+
*/
|
|
353
|
+
cashItemDescription;
|
|
354
|
+
/**
|
|
355
|
+
* 機器人現金道具選項
|
|
356
|
+
*/
|
|
357
|
+
cashItemOption;
|
|
358
|
+
/**
|
|
359
|
+
* 機器人現金道具有效期間 (TST)
|
|
360
|
+
*/
|
|
361
|
+
dateExpire = null;
|
|
362
|
+
/**
|
|
363
|
+
* Whether the android cash item is expired
|
|
364
|
+
*/
|
|
365
|
+
isExpired = null;
|
|
366
|
+
/**
|
|
367
|
+
* 機器人現金道具選項有效期間 (TST,時間單位資料中的分鐘顯示為 0)
|
|
368
|
+
*/
|
|
369
|
+
dateOptionExpire = null;
|
|
370
|
+
/**
|
|
371
|
+
* Whether the android cash item option is expired
|
|
372
|
+
*/
|
|
373
|
+
isOptionExpired = null;
|
|
374
|
+
/**
|
|
375
|
+
* 機器人現金道具標籤資訊 (特殊標籤、紅標籤、黑標籤、大師標籤)
|
|
376
|
+
*/
|
|
377
|
+
cashItemLabel;
|
|
378
|
+
/**
|
|
379
|
+
* 機器人現金道具彩色稜鏡資訊
|
|
380
|
+
*/
|
|
381
|
+
cashItemColoringPrism;
|
|
382
|
+
/**
|
|
383
|
+
* 道具可裝備性別
|
|
384
|
+
*/
|
|
385
|
+
androidItemGender;
|
|
386
|
+
constructor(obj) {
|
|
387
|
+
super();
|
|
388
|
+
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, android_item_gender, } = obj;
|
|
389
|
+
this.cashItemEquipmentPart = cash_item_equipment_part;
|
|
390
|
+
this.cashItemEquipmentSlot = cash_item_equipment_slot;
|
|
391
|
+
this.cashItemName = cash_item_name;
|
|
392
|
+
this.cashItemIcon = cash_item_icon;
|
|
393
|
+
this.cashItemDescription = cash_item_description;
|
|
394
|
+
this.cashItemOption = cash_item_option.map((option) => new CharacterAndroidCashItemEquipmentOptionDto(option));
|
|
395
|
+
this.cashItemLabel = cash_item_label;
|
|
396
|
+
this.cashItemColoringPrism = cash_item_coloring_prism
|
|
397
|
+
? new CharacterAndroidCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
|
|
398
|
+
: null;
|
|
399
|
+
this.androidItemGender = android_item_gender;
|
|
400
|
+
if (date_expire === 'expired') {
|
|
401
|
+
this.isExpired = true;
|
|
402
|
+
}
|
|
403
|
+
else if (typeof date_expire === 'string') {
|
|
404
|
+
this.dateExpire = date_expire ? new Date(date_expire) : null;
|
|
405
|
+
}
|
|
406
|
+
if (date_option_expire === 'expired') {
|
|
407
|
+
this.isOptionExpired = true;
|
|
408
|
+
}
|
|
409
|
+
else if (typeof date_option_expire === 'string') {
|
|
410
|
+
this.dateOptionExpire = date_option_expire
|
|
411
|
+
? new Date(date_option_expire)
|
|
412
|
+
: null;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
exports.CharacterAndroidCashItemEquipmentColoringPrismDto = CharacterAndroidCashItemEquipmentColoringPrismDto;
|
|
418
|
+
exports.CharacterAndroidCashItemEquipmentDto = CharacterAndroidCashItemEquipmentDto;
|
|
419
|
+
exports.CharacterAndroidCashItemEquipmentOptionDto = CharacterAndroidCashItemEquipmentOptionDto;
|
|
420
|
+
exports.CharacterAndroidEquipmentDto = CharacterAndroidEquipmentDto;
|
|
421
|
+
exports.CharacterAndroidEquipmentFaceDto = CharacterAndroidEquipmentFaceDto;
|
|
422
|
+
exports.CharacterAndroidEquipmentHairDto = CharacterAndroidEquipmentHairDto;
|
|
423
|
+
exports.CharacterAndroidEquipmentPresetDto = CharacterAndroidEquipmentPresetDto;
|
|
424
|
+
exports.CharacterAndroidEquipmentSkinDto = CharacterAndroidEquipmentSkinDto;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterBasic = require('../../../common/dto/character/characterBasic.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色基本資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterBasicDto extends characterBasic.CharacterBasicDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色名稱
|
|
17
|
+
*/
|
|
18
|
+
characterName;
|
|
19
|
+
/**
|
|
20
|
+
* 世界名稱
|
|
21
|
+
*/
|
|
22
|
+
worldName;
|
|
23
|
+
/**
|
|
24
|
+
* 角色性別
|
|
25
|
+
*/
|
|
26
|
+
characterGender;
|
|
27
|
+
/**
|
|
28
|
+
* 角色職業
|
|
29
|
+
*/
|
|
30
|
+
characterClass;
|
|
31
|
+
/**
|
|
32
|
+
* 角色轉職次數
|
|
33
|
+
*/
|
|
34
|
+
characterClassLevel;
|
|
35
|
+
/**
|
|
36
|
+
* 角色等級
|
|
37
|
+
*/
|
|
38
|
+
characterLevel;
|
|
39
|
+
/**
|
|
40
|
+
* 當前等級的經驗值
|
|
41
|
+
*/
|
|
42
|
+
characterExp;
|
|
43
|
+
/**
|
|
44
|
+
* 當前等級的經驗值百分比
|
|
45
|
+
*/
|
|
46
|
+
characterExpRate;
|
|
47
|
+
/**
|
|
48
|
+
* 角色所屬公會的名稱
|
|
49
|
+
*/
|
|
50
|
+
characterGuildName;
|
|
51
|
+
/**
|
|
52
|
+
* 角色外型圖片
|
|
53
|
+
*/
|
|
54
|
+
characterImage;
|
|
55
|
+
/**
|
|
56
|
+
* 角色建立日期 (TST,每日資料中的小時與分鐘將顯示為 0)
|
|
57
|
+
*/
|
|
58
|
+
characterDateCreate;
|
|
59
|
+
/**
|
|
60
|
+
* 過去 7 天的登入狀態 (true:已登入,false:未登入)
|
|
61
|
+
*/
|
|
62
|
+
accessFlag;
|
|
63
|
+
/**
|
|
64
|
+
* 解放任務完成狀態 (0:未完成,1:創世武器已解放)
|
|
65
|
+
*/
|
|
66
|
+
liberationQuestClear;
|
|
67
|
+
constructor(obj) {
|
|
68
|
+
super();
|
|
69
|
+
const { date, character_name, world_name, character_gender, character_class, character_class_level, character_level, character_exp, character_exp_rate, character_guild_name, character_image, character_date_create, access_flag, liberation_quest_clear, } = obj;
|
|
70
|
+
this.date = date ? new Date(date) : null;
|
|
71
|
+
this.characterName = character_name;
|
|
72
|
+
this.worldName = world_name;
|
|
73
|
+
this.characterGender = character_gender;
|
|
74
|
+
this.characterClass = character_class;
|
|
75
|
+
this.characterClassLevel = character_class_level;
|
|
76
|
+
this.characterLevel = character_level;
|
|
77
|
+
this.characterExp = character_exp;
|
|
78
|
+
this.characterExpRate = character_exp_rate;
|
|
79
|
+
this.characterGuildName = character_guild_name;
|
|
80
|
+
this.characterImage = character_image;
|
|
81
|
+
this.characterDateCreate = new Date(character_date_create);
|
|
82
|
+
this.accessFlag = access_flag;
|
|
83
|
+
this.liberationQuestClear = liberation_quest_clear;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Login status in the past 7 days
|
|
87
|
+
*/
|
|
88
|
+
get isAccessFlag() {
|
|
89
|
+
return super.isAccessFlag;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.CharacterBasicDto = CharacterBasicDto;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var characterBeautyEquipment = require('../../../common/dto/character/characterBeautyEquipment.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 角色目前已裝備的髮型、臉型與膚色資訊
|
|
9
|
+
*/
|
|
10
|
+
class CharacterBeautyEquipmentDto extends characterBeautyEquipment.CharacterBeautyEquipmentDto {
|
|
11
|
+
/**
|
|
12
|
+
* 要搜尋的日期 (TST)
|
|
13
|
+
*/
|
|
14
|
+
date;
|
|
15
|
+
/**
|
|
16
|
+
* 角色性別
|
|
17
|
+
*/
|
|
18
|
+
characterGender;
|
|
19
|
+
/**
|
|
20
|
+
* 角色職業
|
|
21
|
+
*/
|
|
22
|
+
characterClass;
|
|
23
|
+
/**
|
|
24
|
+
* 角色髮型資訊<br>
|
|
25
|
+
* (神之子為 Alpha、天使破壞者為一般模式時)
|
|
26
|
+
*/
|
|
27
|
+
characterHair;
|
|
28
|
+
/**
|
|
29
|
+
* 角色臉型資訊<br>
|
|
30
|
+
* (神之子為 Alpha、天使破壞者為一般模式時)
|
|
31
|
+
*/
|
|
32
|
+
characterFace;
|
|
33
|
+
/**
|
|
34
|
+
* 角色膚色資訊<br>
|
|
35
|
+
* (神之子為 Alpha、天使破壞者為一般模式時)
|
|
36
|
+
*/
|
|
37
|
+
characterSkin;
|
|
38
|
+
/**
|
|
39
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的目前已裝備髮型資訊
|
|
40
|
+
*/
|
|
41
|
+
additionalCharacterHair;
|
|
42
|
+
/**
|
|
43
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的目前已裝備臉型資訊
|
|
44
|
+
*/
|
|
45
|
+
additionalCharacterFace;
|
|
46
|
+
/**
|
|
47
|
+
* 神之子為 Beta 及天使破壞者為變裝模式時的目前已裝備膚色資訊
|
|
48
|
+
*/
|
|
49
|
+
additionalCharacterSkin;
|
|
50
|
+
constructor(obj) {
|
|
51
|
+
super();
|
|
52
|
+
const { date, character_gender, character_class, character_hair, character_face, character_skin, additional_character_hair, additional_character_face, additional_character_skin, } = obj;
|
|
53
|
+
this.date = date ? new Date(date) : null;
|
|
54
|
+
this.characterGender = character_gender;
|
|
55
|
+
this.characterClass = character_class;
|
|
56
|
+
this.characterHair = character_hair
|
|
57
|
+
? new CharacterBeautyEquipmentHairDto(character_hair)
|
|
58
|
+
: null;
|
|
59
|
+
this.characterFace = character_face
|
|
60
|
+
? new CharacterBeautyEquipmentFaceDto(character_face)
|
|
61
|
+
: null;
|
|
62
|
+
this.characterSkin = character_skin
|
|
63
|
+
? new CharacterBeautyEquipmentSkinDto(character_skin)
|
|
64
|
+
: null;
|
|
65
|
+
this.additionalCharacterHair = additional_character_hair
|
|
66
|
+
? new CharacterBeautyEquipmentHairDto(additional_character_hair)
|
|
67
|
+
: null;
|
|
68
|
+
this.additionalCharacterFace = additional_character_face
|
|
69
|
+
? new CharacterBeautyEquipmentFaceDto(additional_character_face)
|
|
70
|
+
: null;
|
|
71
|
+
this.additionalCharacterSkin = additional_character_skin
|
|
72
|
+
? new CharacterBeautyEquipmentSkinDto(additional_character_skin)
|
|
73
|
+
: null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 角色臉型資訊
|
|
78
|
+
*/
|
|
79
|
+
class CharacterBeautyEquipmentFaceDto extends characterBeautyEquipment.CharacterBeautyEquipmentFaceDto {
|
|
80
|
+
/**
|
|
81
|
+
* 臉型名稱
|
|
82
|
+
*/
|
|
83
|
+
faceName;
|
|
84
|
+
/**
|
|
85
|
+
* 臉型基本顏色
|
|
86
|
+
*/
|
|
87
|
+
baseColor;
|
|
88
|
+
/**
|
|
89
|
+
* 臉型混染顏色
|
|
90
|
+
*/
|
|
91
|
+
mixColor;
|
|
92
|
+
/**
|
|
93
|
+
* 臉型混染顏色比例
|
|
94
|
+
*/
|
|
95
|
+
mixRate;
|
|
96
|
+
constructor(obj) {
|
|
97
|
+
super();
|
|
98
|
+
const { face_name, base_color, mix_color, mix_rate } = obj;
|
|
99
|
+
this.faceName = face_name;
|
|
100
|
+
this.baseColor = base_color;
|
|
101
|
+
this.mixColor = mix_color;
|
|
102
|
+
this.mixRate = mix_rate;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 角色髮型資訊
|
|
107
|
+
*/
|
|
108
|
+
class CharacterBeautyEquipmentHairDto extends characterBeautyEquipment.CharacterBeautyEquipmentHairDto {
|
|
109
|
+
/**
|
|
110
|
+
* 髮型名稱
|
|
111
|
+
*/
|
|
112
|
+
hairName;
|
|
113
|
+
/**
|
|
114
|
+
* 髮型基本顏色
|
|
115
|
+
*/
|
|
116
|
+
baseColor;
|
|
117
|
+
/**
|
|
118
|
+
* 髮型混染顏色
|
|
119
|
+
*/
|
|
120
|
+
mixColor;
|
|
121
|
+
/**
|
|
122
|
+
* 髮型混染顏色比例
|
|
123
|
+
*/
|
|
124
|
+
mixRate;
|
|
125
|
+
constructor(obj) {
|
|
126
|
+
super();
|
|
127
|
+
const { hair_name, base_color, mix_color, mix_rate } = obj;
|
|
128
|
+
this.hairName = hair_name;
|
|
129
|
+
this.baseColor = base_color;
|
|
130
|
+
this.mixColor = mix_color;
|
|
131
|
+
this.mixRate = mix_rate;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 角色膚色資訊
|
|
136
|
+
*/
|
|
137
|
+
class CharacterBeautyEquipmentSkinDto extends characterBeautyEquipment.CharacterBeautyEquipmentSkinDto {
|
|
138
|
+
/**
|
|
139
|
+
* 膚色名稱
|
|
140
|
+
*/
|
|
141
|
+
skinName;
|
|
142
|
+
/**
|
|
143
|
+
* 色系
|
|
144
|
+
*/
|
|
145
|
+
colorStyle;
|
|
146
|
+
/**
|
|
147
|
+
* 膚色色調
|
|
148
|
+
*/
|
|
149
|
+
hue;
|
|
150
|
+
/**
|
|
151
|
+
* 膚色彩度
|
|
152
|
+
*/
|
|
153
|
+
saturation;
|
|
154
|
+
/**
|
|
155
|
+
* 膚色明度
|
|
156
|
+
*/
|
|
157
|
+
brightness;
|
|
158
|
+
constructor(obj) {
|
|
159
|
+
super();
|
|
160
|
+
const { skin_name, color_style, hue, saturation, brightness } = obj;
|
|
161
|
+
this.skinName = skin_name;
|
|
162
|
+
this.colorStyle = color_style;
|
|
163
|
+
this.hue = hue;
|
|
164
|
+
this.saturation = saturation;
|
|
165
|
+
this.brightness = brightness;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
exports.CharacterBeautyEquipmentDto = CharacterBeautyEquipmentDto;
|
|
170
|
+
exports.CharacterBeautyEquipmentFaceDto = CharacterBeautyEquipmentFaceDto;
|
|
171
|
+
exports.CharacterBeautyEquipmentHairDto = CharacterBeautyEquipmentHairDto;
|
|
172
|
+
exports.CharacterBeautyEquipmentSkinDto = CharacterBeautyEquipmentSkinDto;
|