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.
Files changed (158) hide show
  1. package/README.md +50 -39
  2. package/dist/cjs/_virtual/index.js_commonjs-exports2.js +2 -2
  3. package/dist/cjs/_virtual/index.js_commonjs-exports3.js +2 -2
  4. package/dist/cjs/maplestory/api/kms/dto/character/characterImage.js +2 -2
  5. package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  6. package/dist/cjs/maplestory/api/kms/dto/character/characterOtherStat.js +62 -0
  7. package/dist/cjs/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +34 -0
  8. package/dist/cjs/maplestory/api/kms/kms.js +4 -0
  9. package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +66 -10
  10. package/dist/cjs/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  11. package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +1 -1
  12. package/dist/cjs/maplestory/api/tms/dto/character/character.js +22 -0
  13. package/dist/cjs/maplestory/api/tms/dto/character/characterAbility.js +108 -0
  14. package/dist/cjs/maplestory/api/tms/dto/character/characterAndroidEquipment.js +424 -0
  15. package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +93 -0
  16. package/dist/cjs/maplestory/api/tms/dto/character/characterBeautyEquipment.js +172 -0
  17. package/dist/cjs/maplestory/api/tms/dto/character/characterCashItemEquipment.js +228 -0
  18. package/dist/cjs/maplestory/api/tms/dto/character/characterDojang.js +49 -0
  19. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrix.js +73 -0
  20. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +113 -0
  21. package/dist/cjs/maplestory/api/tms/dto/character/characterHyperStat.js +97 -0
  22. package/dist/cjs/maplestory/api/tms/dto/character/characterImage.js +81 -0
  23. package/dist/cjs/maplestory/api/tms/dto/character/characterItemEquipment.js +1137 -0
  24. package/dist/cjs/maplestory/api/tms/dto/character/characterLinkSkill.js +115 -0
  25. package/dist/cjs/maplestory/api/tms/dto/character/characterPetEquipment.js +332 -0
  26. package/dist/cjs/maplestory/api/tms/dto/character/characterPopularity.js +27 -0
  27. package/dist/cjs/maplestory/api/tms/dto/character/characterPropensity.js +52 -0
  28. package/dist/cjs/maplestory/api/tms/dto/character/characterSetEffect.js +97 -0
  29. package/dist/cjs/maplestory/api/tms/dto/character/characterSkill.js +77 -0
  30. package/dist/cjs/maplestory/api/tms/dto/character/characterStat.js +57 -0
  31. package/dist/cjs/maplestory/api/tms/dto/character/characterSymbolEquipment.js +119 -0
  32. package/dist/cjs/maplestory/api/tms/dto/character/characterVMatrix.js +88 -0
  33. package/dist/cjs/maplestory/api/tms/dto/guild/guild.js +22 -0
  34. package/dist/cjs/maplestory/api/tms/dto/guild/guildBasic.js +107 -0
  35. package/dist/cjs/maplestory/api/tms/dto/union/union.js +47 -0
  36. package/dist/cjs/maplestory/api/tms/dto/union/unionArtifact.js +111 -0
  37. package/dist/cjs/maplestory/api/tms/dto/union/unionRaider.js +214 -0
  38. package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +802 -0
  39. package/dist/cjs/maplestory/api/tms/tms.js +109 -0
  40. package/dist/cjs/node_modules/base64-js/index.js +1 -1
  41. package/dist/cjs/node_modules/buffer/index.js +2 -2
  42. package/dist/cjs/node_modules/dayjs/plugin/utc.js +1 -1
  43. package/dist/cjs/node_modules/ieee754/index.js +1 -1
  44. package/dist/esm/_virtual/index.js_commonjs-exports2.js +2 -2
  45. package/dist/esm/_virtual/index.js_commonjs-exports3.js +2 -2
  46. package/dist/esm/maplestory/api/kms/dto/character/characterImage.js +2 -2
  47. package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  48. package/dist/esm/maplestory/api/kms/dto/character/characterOtherStat.js +56 -0
  49. package/dist/esm/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.js +30 -0
  50. package/dist/esm/maplestory/api/kms/kms.js +1 -0
  51. package/dist/esm/maplestory/api/kms/mapleStoryApi.js +66 -10
  52. package/dist/esm/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  53. package/dist/esm/maplestory/api/msea/mapleStoryApi.js +1 -1
  54. package/dist/esm/maplestory/api/tms/dto/character/character.js +18 -0
  55. package/dist/esm/maplestory/api/tms/dto/character/characterAbility.js +102 -0
  56. package/dist/esm/maplestory/api/tms/dto/character/characterAndroidEquipment.js +413 -0
  57. package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +89 -0
  58. package/dist/esm/maplestory/api/tms/dto/character/characterBeautyEquipment.js +165 -0
  59. package/dist/esm/maplestory/api/tms/dto/character/characterCashItemEquipment.js +221 -0
  60. package/dist/esm/maplestory/api/tms/dto/character/characterDojang.js +45 -0
  61. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrix.js +67 -0
  62. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +108 -0
  63. package/dist/esm/maplestory/api/tms/dto/character/characterHyperStat.js +92 -0
  64. package/dist/esm/maplestory/api/tms/dto/character/characterImage.js +77 -0
  65. package/dist/esm/maplestory/api/tms/dto/character/characterItemEquipment.js +1123 -0
  66. package/dist/esm/maplestory/api/tms/dto/character/characterLinkSkill.js +110 -0
  67. package/dist/esm/maplestory/api/tms/dto/character/characterPetEquipment.js +325 -0
  68. package/dist/esm/maplestory/api/tms/dto/character/characterPopularity.js +23 -0
  69. package/dist/esm/maplestory/api/tms/dto/character/characterPropensity.js +48 -0
  70. package/dist/esm/maplestory/api/tms/dto/character/characterSetEffect.js +90 -0
  71. package/dist/esm/maplestory/api/tms/dto/character/characterSkill.js +72 -0
  72. package/dist/esm/maplestory/api/tms/dto/character/characterStat.js +52 -0
  73. package/dist/esm/maplestory/api/tms/dto/character/characterSymbolEquipment.js +114 -0
  74. package/dist/esm/maplestory/api/tms/dto/character/characterVMatrix.js +83 -0
  75. package/dist/esm/maplestory/api/tms/dto/guild/guild.js +18 -0
  76. package/dist/esm/maplestory/api/tms/dto/guild/guildBasic.js +102 -0
  77. package/dist/esm/maplestory/api/tms/dto/union/union.js +43 -0
  78. package/dist/esm/maplestory/api/tms/dto/union/unionArtifact.js +105 -0
  79. package/dist/esm/maplestory/api/tms/dto/union/unionRaider.js +205 -0
  80. package/dist/esm/maplestory/api/tms/mapleStoryApi.js +794 -0
  81. package/dist/esm/maplestory/api/tms/tms.js +27 -0
  82. package/dist/esm/node_modules/base64-js/index.js +2 -2
  83. package/dist/esm/node_modules/buffer/index.js +2 -2
  84. package/dist/esm/node_modules/dayjs/plugin/utc.js +1 -1
  85. package/dist/esm/node_modules/ieee754/index.js +2 -2
  86. package/dist/index.min.js +1 -1
  87. package/package.json +6 -1
  88. package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +2 -0
  89. package/types/maplestory/api/common/dto/character/characterSkill.d.ts +1 -1
  90. package/types/maplestory/api/common/mapleStoryApi.d.ts +0 -16
  91. package/types/maplestory/api/kms/dto/character/characterImage.d.ts +2 -2
  92. package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +8 -0
  93. package/types/maplestory/api/kms/dto/character/characterOtherStat.d.ts +43 -0
  94. package/types/maplestory/api/kms/dto/character/characterRingExchangeSkillEquipment.d.ts +23 -0
  95. package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
  96. package/types/maplestory/api/kms/index.d.ts +1 -0
  97. package/types/maplestory/api/kms/mapleStoryApi.d.ts +27 -17
  98. package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
  99. package/types/maplestory/api/kms/response/character/characterOtherStatBody.d.ts +12 -0
  100. package/types/maplestory/api/kms/response/character/characterRingExchangeSkillEquipmentBody.d.ts +6 -0
  101. package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +8 -0
  102. package/types/maplestory/api/msea/dto/character/characterSkill.d.ts +1 -1
  103. package/types/maplestory/api/msea/mapleStoryApi.d.ts +1 -1
  104. package/types/maplestory/api/msea/response/character/characterItemEquipmentBody.d.ts +2 -0
  105. package/types/maplestory/api/msea/response/character/characterSkillBody.d.ts +1 -1
  106. package/types/maplestory/api/tms/dto/character/character.d.ts +12 -0
  107. package/types/maplestory/api/tms/dto/character/characterAbility.d.ts +72 -0
  108. package/types/maplestory/api/tms/dto/character/characterAndroidEquipment.d.ts +299 -0
  109. package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +68 -0
  110. package/types/maplestory/api/tms/dto/character/characterBeautyEquipment.d.ts +117 -0
  111. package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +158 -0
  112. package/types/maplestory/api/tms/dto/character/characterDojang.d.ts +32 -0
  113. package/types/maplestory/api/tms/dto/character/characterHexaMatrix.d.ts +48 -0
  114. package/types/maplestory/api/tms/dto/character/characterHexaMatrixStat.d.ts +78 -0
  115. package/types/maplestory/api/tms/dto/character/characterHyperStat.d.ts +70 -0
  116. package/types/maplestory/api/tms/dto/character/characterImage.d.ts +74 -0
  117. package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +864 -0
  118. package/types/maplestory/api/tms/dto/character/characterLinkSkill.d.ts +78 -0
  119. package/types/maplestory/api/tms/dto/character/characterPetEquipment.d.ts +230 -0
  120. package/types/maplestory/api/tms/dto/character/characterPopularity.d.ts +16 -0
  121. package/types/maplestory/api/tms/dto/character/characterPropensity.d.ts +36 -0
  122. package/types/maplestory/api/tms/dto/character/characterSetEffect.d.ts +66 -0
  123. package/types/maplestory/api/tms/dto/character/characterSkill.d.ts +54 -0
  124. package/types/maplestory/api/tms/dto/character/characterStat.d.ts +38 -0
  125. package/types/maplestory/api/tms/dto/character/characterSymbolEquipment.d.ts +86 -0
  126. package/types/maplestory/api/tms/dto/character/characterVMatrix.d.ts +62 -0
  127. package/types/maplestory/api/tms/dto/guild/guild.d.ts +12 -0
  128. package/types/maplestory/api/tms/dto/guild/guildBasic.d.ts +78 -0
  129. package/types/maplestory/api/tms/dto/union/union.d.ts +32 -0
  130. package/types/maplestory/api/tms/dto/union/unionArtifact.d.ts +76 -0
  131. package/types/maplestory/api/tms/dto/union/unionRaider.d.ts +147 -0
  132. package/types/maplestory/api/tms/index.d.ts +27 -0
  133. package/types/maplestory/api/tms/mapleStoryApi.d.ts +364 -0
  134. package/types/maplestory/api/tms/response/character/characterAbilityBody.d.ts +19 -0
  135. package/types/maplestory/api/tms/response/character/characterAndroidEquipmentBody.d.ts +76 -0
  136. package/types/maplestory/api/tms/response/character/characterBasicBody.d.ts +16 -0
  137. package/types/maplestory/api/tms/response/character/characterBeautyEquipmentBody.d.ts +30 -0
  138. package/types/maplestory/api/tms/response/character/characterBody.d.ts +3 -0
  139. package/types/maplestory/api/tms/response/character/characterCashItemEquipmentBody.d.ts +39 -0
  140. package/types/maplestory/api/tms/response/character/characterDojangBody.d.ts +8 -0
  141. package/types/maplestory/api/tms/response/character/characterHexaMatrixBody.d.ts +13 -0
  142. package/types/maplestory/api/tms/response/character/characterHexaMatrixStatBody.d.ts +20 -0
  143. package/types/maplestory/api/tms/response/character/characterHyperStatBody.d.ts +18 -0
  144. package/types/maplestory/api/tms/response/character/characterItemEquipmentBody.d.ts +195 -0
  145. package/types/maplestory/api/tms/response/character/characterLinkSkillBody.d.ts +20 -0
  146. package/types/maplestory/api/tms/response/character/characterPetEquipmentBody.d.ts +56 -0
  147. package/types/maplestory/api/tms/response/character/characterPopularityBody.d.ts +4 -0
  148. package/types/maplestory/api/tms/response/character/characterPropensityBody.d.ts +9 -0
  149. package/types/maplestory/api/tms/response/character/characterSetEffectBody.d.ts +18 -0
  150. package/types/maplestory/api/tms/response/character/characterSkillBody.d.ts +14 -0
  151. package/types/maplestory/api/tms/response/character/characterStatBody.d.ts +10 -0
  152. package/types/maplestory/api/tms/response/character/characterSymbolEquipmentBody.d.ts +22 -0
  153. package/types/maplestory/api/tms/response/character/characterVMatrixBody.d.ts +16 -0
  154. package/types/maplestory/api/tms/response/guild/guildBasicBody.d.ts +20 -0
  155. package/types/maplestory/api/tms/response/guild/guildBody.d.ts +3 -0
  156. package/types/maplestory/api/tms/response/union/unionArtifactBody.d.ts +19 -0
  157. package/types/maplestory/api/tms/response/union/unionBody.d.ts +8 -0
  158. package/types/maplestory/api/tms/response/union/unionRaiderBody.d.ts +38 -0
@@ -0,0 +1,110 @@
1
+ import { CharacterLinkSkillDto as CharacterLinkSkillDto$1, CharacterLinkSkillInfoDto as CharacterLinkSkillInfoDto$1 } from '../../../common/dto/character/characterLinkSkill.js';
2
+
3
+ /**
4
+ * 角色已裝備連結技能資訊
5
+ */
6
+ class CharacterLinkSkillDto extends CharacterLinkSkillDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 角色職業
13
+ */
14
+ characterClass;
15
+ /**
16
+ * 連結技能資訊
17
+ */
18
+ characterLinkSkill;
19
+ /**
20
+ * 連結技能 1 預設資訊
21
+ */
22
+ characterLinkSkillPreset1;
23
+ /**
24
+ * 連結技能 2 預設資訊
25
+ */
26
+ characterLinkSkillPreset2;
27
+ /**
28
+ * 連結技能 3 預設資訊
29
+ */
30
+ characterLinkSkillPreset3;
31
+ /**
32
+ * 我的連結技能資訊
33
+ */
34
+ characterOwnedLinkSkill;
35
+ /**
36
+ * 我的連結技能 1 預設資訊
37
+ */
38
+ characterOwnedLinkSkillPreset1;
39
+ /**
40
+ * 我的連結技能 2 預設資訊
41
+ */
42
+ characterOwnedLinkSkillPreset2;
43
+ /**
44
+ * 我的連結技能 3 預設資訊
45
+ */
46
+ characterOwnedLinkSkillPreset3;
47
+ constructor(obj) {
48
+ super();
49
+ const { date, character_class, character_link_skill, character_link_skill_preset_1, character_link_skill_preset_2, character_link_skill_preset_3, character_owned_link_skill, character_owned_link_skill_preset_1, character_owned_link_skill_preset_2, character_owned_link_skill_preset_3, } = obj;
50
+ this.date = date ? new Date(date) : null;
51
+ this.characterClass = character_class;
52
+ this.characterLinkSkill = character_link_skill.map((skill) => new CharacterLinkSkillInfoDto(skill));
53
+ this.characterLinkSkillPreset1 = character_link_skill_preset_1.map((skill) => new CharacterLinkSkillInfoDto(skill));
54
+ this.characterLinkSkillPreset2 = character_link_skill_preset_2.map((skill) => new CharacterLinkSkillInfoDto(skill));
55
+ this.characterLinkSkillPreset3 = character_link_skill_preset_3.map((skill) => new CharacterLinkSkillInfoDto(skill));
56
+ this.characterOwnedLinkSkill = character_owned_link_skill
57
+ ? new CharacterLinkSkillInfoDto(character_owned_link_skill)
58
+ : null;
59
+ this.characterOwnedLinkSkillPreset1 = character_owned_link_skill_preset_1
60
+ ? new CharacterLinkSkillInfoDto(character_owned_link_skill_preset_1)
61
+ : null;
62
+ this.characterOwnedLinkSkillPreset2 = character_owned_link_skill_preset_2
63
+ ? new CharacterLinkSkillInfoDto(character_owned_link_skill_preset_2)
64
+ : null;
65
+ this.characterOwnedLinkSkillPreset3 = character_owned_link_skill_preset_3
66
+ ? new CharacterLinkSkillInfoDto(character_owned_link_skill_preset_3)
67
+ : null;
68
+ }
69
+ }
70
+ /**
71
+ * 角色連結技能資訊
72
+ */
73
+ class CharacterLinkSkillInfoDto extends CharacterLinkSkillInfoDto$1 {
74
+ /**
75
+ * 技能名稱
76
+ */
77
+ skillName;
78
+ /**
79
+ * 技能描述
80
+ */
81
+ skillDescription;
82
+ /**
83
+ * 技能等級
84
+ */
85
+ skillLevel;
86
+ /**
87
+ * 技能效果
88
+ */
89
+ skillEffect;
90
+ /**
91
+ * 下一等級的技能效果
92
+ */
93
+ skillEffectNext;
94
+ /**
95
+ * 技能圖示
96
+ */
97
+ skillIcon;
98
+ constructor(obj) {
99
+ super();
100
+ const { skill_name, skill_description, skill_level, skill_effect, skill_effect_next, skill_icon, } = obj;
101
+ this.skillName = skill_name;
102
+ this.skillDescription = skill_description;
103
+ this.skillLevel = skill_level;
104
+ this.skillEffect = skill_effect;
105
+ this.skillEffectNext = skill_effect_next;
106
+ this.skillIcon = skill_icon;
107
+ }
108
+ }
109
+
110
+ export { CharacterLinkSkillDto, CharacterLinkSkillInfoDto };
@@ -0,0 +1,325 @@
1
+ import { CharacterPetEquipmentDto as CharacterPetEquipmentDto$1, CharacterPetEquipmentAutoSkillDto as CharacterPetEquipmentAutoSkillDto$1, CharacterPetEquipmentItemOptionDto as CharacterPetEquipmentItemOptionDto$1, CharacterPetEquipmentItemDto as CharacterPetEquipmentItemDto$1 } from '../../../common/dto/character/characterPetEquipment.js';
2
+
3
+ /**
4
+ * 角色已裝備寵物資訊
5
+ */
6
+ class CharacterPetEquipmentDto extends CharacterPetEquipmentDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 寵物 1 名稱
13
+ */
14
+ pet1Name;
15
+ /**
16
+ * 寵物 1 暱稱
17
+ */
18
+ pet1Nickname;
19
+ /**
20
+ * 寵物 1 圖示
21
+ */
22
+ pet1Icon;
23
+ /**
24
+ * 寵物 1 描述
25
+ */
26
+ pet1Description;
27
+ /**
28
+ * 寵物 1 道具資訊
29
+ */
30
+ pet1Equipment;
31
+ /**
32
+ * 寵物 1 的寵物自動加持技能資訊
33
+ */
34
+ pet1AutoSkill;
35
+ /**
36
+ * 寵物 1 神奇寵物類型
37
+ */
38
+ pet1PetType;
39
+ /**
40
+ * 寵物 1 技能
41
+ */
42
+ pet1Skill;
43
+ /**
44
+ * 寵物 1 魔法時間 (TST,時間單位資料中的分鐘顯示為 0)
45
+ */
46
+ pet1DateExpire = null;
47
+ /**
48
+ * Whether the magic time for pet 1 is expired
49
+ */
50
+ pet1Expired = null;
51
+ /**
52
+ * 寵物 1 外型
53
+ */
54
+ pet1Appearance;
55
+ /**
56
+ * 寵物 1 外型圖示
57
+ */
58
+ pet1AppearanceIcon;
59
+ /**
60
+ * 寵物 2 名稱
61
+ */
62
+ pet2Name;
63
+ /**
64
+ * 寵物 2 暱稱
65
+ */
66
+ pet2Nickname;
67
+ /**
68
+ * 寵物 2 圖示
69
+ */
70
+ pet2Icon;
71
+ /**
72
+ * 寵物 2 描述
73
+ */
74
+ pet2Description;
75
+ /**
76
+ * 寵物 2 道具資訊
77
+ */
78
+ pet2Equipment;
79
+ /**
80
+ * 寵物 2 的寵物自動加持技能資訊
81
+ */
82
+ pet2AutoSkill;
83
+ /**
84
+ * 寵物 2 神奇寵物類型
85
+ */
86
+ pet2PetType;
87
+ /**
88
+ * 寵物 2 技能
89
+ */
90
+ pet2Skill;
91
+ /**
92
+ * 寵物 2 魔法時間 (TST,時間單位資料中的分鐘顯示為 0)
93
+ */
94
+ pet2DateExpire = null;
95
+ /**
96
+ * Whether the magic time for pet 2 is expired
97
+ */
98
+ pet2Expired = null;
99
+ /**
100
+ * 寵物 2 外型
101
+ */
102
+ pet2Appearance;
103
+ /**
104
+ * 寵物 2 外型圖示
105
+ */
106
+ pet2AppearanceIcon;
107
+ /**
108
+ * 寵物 3 名稱
109
+ */
110
+ pet3Name;
111
+ /**
112
+ * 寵物 3 暱稱
113
+ */
114
+ pet3Nickname;
115
+ /**
116
+ * 寵物 3 圖示
117
+ */
118
+ pet3Icon;
119
+ /**
120
+ * 寵物 3 描述
121
+ */
122
+ pet3Description;
123
+ /**
124
+ * 寵物 3 道具資訊
125
+ */
126
+ pet3Equipment;
127
+ /**
128
+ * 寵物 3 的寵物自動加持技能資訊
129
+ */
130
+ pet3AutoSkill;
131
+ /**
132
+ * 寵物 3 神奇寵物類型
133
+ */
134
+ pet3PetType;
135
+ /**
136
+ * 寵物 3 技能
137
+ */
138
+ pet3Skill;
139
+ /**
140
+ * 寵物 3 魔法時間 (TST,時間單位資料中的分鐘顯示為 0)
141
+ */
142
+ pet3DateExpire = null;
143
+ /**
144
+ * Whether the magic time for pet 3 is expired
145
+ */
146
+ pet3Expired = null;
147
+ /**
148
+ * 寵物 3 外型
149
+ */
150
+ pet3Appearance;
151
+ /**
152
+ * 寵物 3 外型圖示
153
+ */
154
+ pet3AppearanceIcon;
155
+ constructor(obj) {
156
+ super();
157
+ const { date, pet_1_name, pet_1_nickname, pet_1_icon, pet_1_description, pet_1_equipment, pet_1_auto_skill, pet_1_pet_type, pet_1_skill, pet_1_date_expire, pet_1_appearance, pet_1_appearance_icon, pet_2_name, pet_2_nickname, pet_2_icon, pet_2_description, pet_2_equipment, pet_2_auto_skill, pet_2_pet_type, pet_2_skill, pet_2_date_expire, pet_2_appearance, pet_2_appearance_icon, pet_3_name, pet_3_nickname, pet_3_icon, pet_3_description, pet_3_equipment, pet_3_auto_skill, pet_3_pet_type, pet_3_skill, pet_3_date_expire, pet_3_appearance, pet_3_appearance_icon, } = obj;
158
+ this.date = date ? new Date(date) : null;
159
+ this.pet1Name = pet_1_name;
160
+ this.pet1Nickname = pet_1_nickname;
161
+ this.pet1Icon = pet_1_icon;
162
+ this.pet1Description = pet_1_description;
163
+ this.pet1Equipment = pet_1_equipment
164
+ ? new CharacterPetEquipmentItemDto(pet_1_equipment)
165
+ : null;
166
+ this.pet1AutoSkill = pet_1_auto_skill
167
+ ? new CharacterPetEquipmentAutoSkillDto(pet_1_auto_skill)
168
+ : null;
169
+ this.pet1PetType = pet_1_pet_type;
170
+ this.pet1Skill = pet_1_skill;
171
+ this.pet1Appearance = pet_1_appearance;
172
+ this.pet1AppearanceIcon = pet_1_appearance_icon;
173
+ this.pet2Name = pet_2_name;
174
+ this.pet2Nickname = pet_2_nickname;
175
+ this.pet2Icon = pet_2_icon;
176
+ this.pet2Description = pet_2_description;
177
+ this.pet2Equipment = pet_2_equipment
178
+ ? new CharacterPetEquipmentItemDto(pet_2_equipment)
179
+ : null;
180
+ this.pet2AutoSkill = pet_2_auto_skill
181
+ ? new CharacterPetEquipmentAutoSkillDto(pet_2_auto_skill)
182
+ : null;
183
+ this.pet2PetType = pet_2_pet_type;
184
+ this.pet2Skill = pet_2_skill;
185
+ this.pet2Appearance = pet_2_appearance;
186
+ this.pet2AppearanceIcon = pet_2_appearance_icon;
187
+ this.pet3Name = pet_3_name;
188
+ this.pet3Nickname = pet_3_nickname;
189
+ this.pet3Icon = pet_3_icon;
190
+ this.pet3Description = pet_3_description;
191
+ this.pet3Equipment = pet_3_equipment
192
+ ? new CharacterPetEquipmentItemDto(pet_3_equipment)
193
+ : null;
194
+ this.pet3AutoSkill = pet_3_auto_skill
195
+ ? new CharacterPetEquipmentAutoSkillDto(pet_3_auto_skill)
196
+ : null;
197
+ this.pet3PetType = pet_3_pet_type;
198
+ this.pet3Skill = pet_3_skill;
199
+ this.pet3Appearance = pet_3_appearance;
200
+ this.pet3AppearanceIcon = pet_3_appearance_icon;
201
+ if (pet_1_date_expire === 'expired') {
202
+ this.pet1Expired = true;
203
+ }
204
+ else if (typeof pet_1_date_expire === 'string') {
205
+ this.pet1DateExpire = pet_1_date_expire
206
+ ? new Date(pet_1_date_expire)
207
+ : null;
208
+ }
209
+ if (pet_2_date_expire === 'expired') {
210
+ this.pet2Expired = true;
211
+ }
212
+ else if (typeof pet_2_date_expire === 'string') {
213
+ this.pet2DateExpire = pet_2_date_expire
214
+ ? new Date(pet_2_date_expire)
215
+ : null;
216
+ }
217
+ if (pet_3_date_expire === 'expired') {
218
+ this.pet3Expired = true;
219
+ }
220
+ else if (typeof pet_3_date_expire === 'string') {
221
+ this.pet3DateExpire = pet_3_date_expire
222
+ ? new Date(pet_3_date_expire)
223
+ : null;
224
+ }
225
+ }
226
+ }
227
+ /**
228
+ * 寵物的寵物自動加持技能資訊
229
+ */
230
+ class CharacterPetEquipmentAutoSkillDto extends CharacterPetEquipmentAutoSkillDto$1 {
231
+ /**
232
+ * 登錄於第一欄位的自動加持技能
233
+ */
234
+ skill1;
235
+ /**
236
+ * 登錄於第一欄位的自動加持技能圖示
237
+ */
238
+ skill1Icon;
239
+ /**
240
+ * 登錄於第二欄位的自動加持技能
241
+ */
242
+ skill2;
243
+ /**
244
+ * 登錄於第二欄位的自動加持技能圖示
245
+ */
246
+ skill2Icon;
247
+ constructor(obj) {
248
+ super();
249
+ const { skill_1, skill_1_icon, skill_2, skill_2_icon } = obj;
250
+ this.skill1 = skill_1;
251
+ this.skill1Icon = skill_1_icon;
252
+ this.skill2 = skill_2;
253
+ this.skill2Icon = skill_2_icon;
254
+ }
255
+ }
256
+ /**
257
+ * 道具顯示選項
258
+ */
259
+ class CharacterPetEquipmentItemOptionDto extends CharacterPetEquipmentItemOptionDto$1 {
260
+ /**
261
+ * 選項類型
262
+ */
263
+ optionType;
264
+ /**
265
+ * 選項數值
266
+ */
267
+ optionValue;
268
+ constructor(obj) {
269
+ super();
270
+ const { option_type, option_value } = obj;
271
+ this.optionType = option_type;
272
+ this.optionValue = option_value;
273
+ }
274
+ }
275
+ /**
276
+ * 寵物道具資訊
277
+ */
278
+ class CharacterPetEquipmentItemDto extends CharacterPetEquipmentItemDto$1 {
279
+ /**
280
+ * 道具名稱
281
+ */
282
+ itemName;
283
+ /**
284
+ * 道具圖示
285
+ */
286
+ itemIcon;
287
+ /**
288
+ * 道具描述
289
+ */
290
+ itemDescription;
291
+ /**
292
+ * 道具顯示選項
293
+ */
294
+ itemOption;
295
+ /**
296
+ * 強化次數
297
+ */
298
+ scrollUpgrade;
299
+ /**
300
+ * 道具可升級次數
301
+ */
302
+ scrollUpgradable;
303
+ /**
304
+ * 道具外型
305
+ */
306
+ itemShape;
307
+ /**
308
+ * 道具外型圖示
309
+ */
310
+ itemShapeIcon;
311
+ constructor(obj) {
312
+ super();
313
+ const { item_name, item_icon, item_description, item_option, scroll_upgrade, scroll_upgradable, item_shape, item_shape_icon, } = obj;
314
+ this.itemName = item_name;
315
+ this.itemIcon = item_icon;
316
+ this.itemDescription = item_description;
317
+ this.itemOption = item_option.map((option) => new CharacterPetEquipmentItemOptionDto(option));
318
+ this.scrollUpgrade = scroll_upgrade;
319
+ this.scrollUpgradable = scroll_upgradable;
320
+ this.itemShape = item_shape;
321
+ this.itemShapeIcon = item_shape_icon;
322
+ }
323
+ }
324
+
325
+ export { CharacterPetEquipmentAutoSkillDto, CharacterPetEquipmentDto, CharacterPetEquipmentItemDto, CharacterPetEquipmentItemOptionDto };
@@ -0,0 +1,23 @@
1
+ import { CharacterPopularityDto as CharacterPopularityDto$1 } from '../../../common/dto/character/characterPopularity.js';
2
+
3
+ /**
4
+ * 角色名聲資訊
5
+ */
6
+ class CharacterPopularityDto extends CharacterPopularityDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 角色名聲
13
+ */
14
+ popularity;
15
+ constructor(obj) {
16
+ super();
17
+ const { date, popularity } = obj;
18
+ this.date = date ? new Date(date) : null;
19
+ this.popularity = popularity;
20
+ }
21
+ }
22
+
23
+ export { CharacterPopularityDto };
@@ -0,0 +1,48 @@
1
+ import { CharacterPropensityDto as CharacterPropensityDto$1 } from '../../../common/dto/character/characterPropensity.js';
2
+
3
+ /**
4
+ * 角色性向資訊
5
+ */
6
+ class CharacterPropensityDto extends CharacterPropensityDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 領導力等級
13
+ */
14
+ charismaLevel;
15
+ /**
16
+ * 感性等級
17
+ */
18
+ sensibilityLevel;
19
+ /**
20
+ * 洞察力等級
21
+ */
22
+ insightLevel;
23
+ /**
24
+ * 意志等級
25
+ */
26
+ willingnessLevel;
27
+ /**
28
+ * 手藝等級
29
+ */
30
+ handicraftLevel;
31
+ /**
32
+ * 魅力等級
33
+ */
34
+ charmLevel;
35
+ constructor(obj) {
36
+ super();
37
+ const { date, charisma_level, sensibility_level, insight_level, willingness_level, handicraft_level, charm_level, } = obj;
38
+ this.date = date ? new Date(date) : null;
39
+ this.charismaLevel = charisma_level;
40
+ this.sensibilityLevel = sensibility_level;
41
+ this.insightLevel = insight_level;
42
+ this.willingnessLevel = willingness_level;
43
+ this.handicraftLevel = handicraft_level;
44
+ this.charmLevel = charm_level;
45
+ }
46
+ }
47
+
48
+ export { CharacterPropensityDto };
@@ -0,0 +1,90 @@
1
+ import { CharacterSetEffectDto as CharacterSetEffectDto$1, CharacterSetEffectInfoDto as CharacterSetEffectInfoDto$1, CharacterSetEffectOptionFullDto as CharacterSetEffectOptionFullDto$1, CharacterSetEffectSetDto as CharacterSetEffectSetDto$1 } from '../../../common/dto/character/characterSetEffect.js';
2
+
3
+ /**
4
+ * 角色目前套用的套裝效果資訊
5
+ */
6
+ class CharacterSetEffectDto extends CharacterSetEffectDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 套裝效果資訊
13
+ */
14
+ setEffect;
15
+ constructor(obj) {
16
+ super();
17
+ const { date, set_effect } = obj;
18
+ this.date = date ? new Date(date) : null;
19
+ this.setEffect = set_effect.map((effect) => new CharacterSetEffectSetDto(effect));
20
+ }
21
+ }
22
+ /**
23
+ * 目前已裝備的套裝效果資訊
24
+ */
25
+ class CharacterSetEffectInfoDto extends CharacterSetEffectInfoDto$1 {
26
+ /**
27
+ * 套裝效果等級 (裝備件數)
28
+ */
29
+ setCount;
30
+ /**
31
+ * 套裝效果
32
+ */
33
+ setOption;
34
+ constructor(obj) {
35
+ super();
36
+ const { set_count, set_option } = obj;
37
+ this.setCount = set_count;
38
+ this.setOption = set_option;
39
+ }
40
+ }
41
+ /**
42
+ * 全部套裝效果資訊
43
+ */
44
+ class CharacterSetEffectOptionFullDto extends CharacterSetEffectOptionFullDto$1 {
45
+ /**
46
+ * 套裝效果等級 (裝備件數)
47
+ */
48
+ setCount;
49
+ /**
50
+ * 套裝效果
51
+ */
52
+ setOption;
53
+ constructor(obj) {
54
+ super();
55
+ const { set_count, set_option } = obj;
56
+ this.setCount = set_count;
57
+ this.setOption = set_option;
58
+ }
59
+ }
60
+ /**
61
+ * 套裝效果資訊
62
+ */
63
+ class CharacterSetEffectSetDto extends CharacterSetEffectSetDto$1 {
64
+ /**
65
+ * 套裝效果名稱
66
+ */
67
+ setName;
68
+ /**
69
+ * 套裝件數 (包含幸運道具)
70
+ */
71
+ totalSetCount;
72
+ /**
73
+ * 目前已裝備的套裝效果資訊
74
+ */
75
+ setEffectInfo;
76
+ /**
77
+ * 全部套裝效果資訊
78
+ */
79
+ setOptionFull;
80
+ constructor(obj) {
81
+ super();
82
+ const { set_name, total_set_count, set_effect_info, set_option_full } = obj;
83
+ this.setName = set_name;
84
+ this.totalSetCount = total_set_count;
85
+ this.setEffectInfo = set_effect_info.map((info) => new CharacterSetEffectInfoDto(info));
86
+ this.setOptionFull = set_option_full.map((info) => new CharacterSetEffectOptionFullDto(info));
87
+ }
88
+ }
89
+
90
+ export { CharacterSetEffectDto, CharacterSetEffectInfoDto, CharacterSetEffectOptionFullDto, CharacterSetEffectSetDto };
@@ -0,0 +1,72 @@
1
+ import { CharacterSkillDto as CharacterSkillDto$1, CharacterSkillInfoDto as CharacterSkillInfoDto$1 } from '../../../common/dto/character/characterSkill.js';
2
+
3
+ /**
4
+ * 角色技能與超技能資訊
5
+ */
6
+ class CharacterSkillDto extends CharacterSkillDto$1 {
7
+ /**
8
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
9
+ */
10
+ date;
11
+ /**
12
+ * 角色職業
13
+ */
14
+ characterClass;
15
+ /**
16
+ * 技能轉職次數
17
+ */
18
+ characterSkillGrade;
19
+ /**
20
+ * 技能資訊
21
+ */
22
+ characterSkill;
23
+ constructor(obj) {
24
+ super();
25
+ const { date, character_class, character_skill_grade, character_skill } = obj;
26
+ this.date = date ? new Date(date) : null;
27
+ this.characterClass = character_class;
28
+ this.characterSkillGrade = character_skill_grade;
29
+ this.characterSkill = character_skill.map((skill) => new CharacterSkillInfoDto(skill));
30
+ }
31
+ }
32
+ /**
33
+ * 技能資訊
34
+ */
35
+ class CharacterSkillInfoDto extends CharacterSkillInfoDto$1 {
36
+ /**
37
+ * 技能名稱
38
+ */
39
+ skillName;
40
+ /**
41
+ * 技能描述
42
+ */
43
+ skillDescription;
44
+ /**
45
+ * 技能等級
46
+ */
47
+ skillLevel;
48
+ /**
49
+ * 技能等級的效果描述
50
+ */
51
+ skillEffect;
52
+ /**
53
+ * 下一等級的技能效果
54
+ */
55
+ skillEffectNext;
56
+ /**
57
+ * 技能圖示
58
+ */
59
+ skillIcon;
60
+ constructor(obj) {
61
+ super();
62
+ const { skill_name, skill_description, skill_level, skill_effect, skill_effect_next, skill_icon, } = obj;
63
+ this.skillName = skill_name;
64
+ this.skillDescription = skill_description;
65
+ this.skillLevel = skill_level;
66
+ this.skillEffect = skill_effect;
67
+ this.skillEffectNext = skill_effect_next;
68
+ this.skillIcon = skill_icon;
69
+ }
70
+ }
71
+
72
+ export { CharacterSkillDto, CharacterSkillInfoDto };