maplestory-openapi 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +50 -39
  2. package/dist/cjs/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  3. package/dist/cjs/maplestory/api/kms/mapleStoryApi.js +1 -1
  4. package/dist/cjs/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  5. package/dist/cjs/maplestory/api/msea/mapleStoryApi.js +1 -1
  6. package/dist/cjs/maplestory/api/tms/dto/character/character.js +22 -0
  7. package/dist/cjs/maplestory/api/tms/dto/character/characterAbility.js +108 -0
  8. package/dist/cjs/maplestory/api/tms/dto/character/characterAndroidEquipment.js +424 -0
  9. package/dist/cjs/maplestory/api/tms/dto/character/characterBasic.js +93 -0
  10. package/dist/cjs/maplestory/api/tms/dto/character/characterBeautyEquipment.js +172 -0
  11. package/dist/cjs/maplestory/api/tms/dto/character/characterCashItemEquipment.js +228 -0
  12. package/dist/cjs/maplestory/api/tms/dto/character/characterDojang.js +49 -0
  13. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrix.js +73 -0
  14. package/dist/cjs/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +113 -0
  15. package/dist/cjs/maplestory/api/tms/dto/character/characterHyperStat.js +97 -0
  16. package/dist/cjs/maplestory/api/tms/dto/character/characterImage.js +81 -0
  17. package/dist/cjs/maplestory/api/tms/dto/character/characterItemEquipment.js +1137 -0
  18. package/dist/cjs/maplestory/api/tms/dto/character/characterLinkSkill.js +115 -0
  19. package/dist/cjs/maplestory/api/tms/dto/character/characterPetEquipment.js +332 -0
  20. package/dist/cjs/maplestory/api/tms/dto/character/characterPopularity.js +27 -0
  21. package/dist/cjs/maplestory/api/tms/dto/character/characterPropensity.js +52 -0
  22. package/dist/cjs/maplestory/api/tms/dto/character/characterSetEffect.js +97 -0
  23. package/dist/cjs/maplestory/api/tms/dto/character/characterSkill.js +77 -0
  24. package/dist/cjs/maplestory/api/tms/dto/character/characterStat.js +57 -0
  25. package/dist/cjs/maplestory/api/tms/dto/character/characterSymbolEquipment.js +119 -0
  26. package/dist/cjs/maplestory/api/tms/dto/character/characterVMatrix.js +88 -0
  27. package/dist/cjs/maplestory/api/tms/dto/guild/guild.js +22 -0
  28. package/dist/cjs/maplestory/api/tms/dto/guild/guildBasic.js +107 -0
  29. package/dist/cjs/maplestory/api/tms/dto/union/union.js +47 -0
  30. package/dist/cjs/maplestory/api/tms/dto/union/unionArtifact.js +111 -0
  31. package/dist/cjs/maplestory/api/tms/dto/union/unionRaider.js +214 -0
  32. package/dist/cjs/maplestory/api/tms/mapleStoryApi.js +802 -0
  33. package/dist/cjs/maplestory/api/tms/tms.js +109 -0
  34. package/dist/cjs/node_modules/dayjs/plugin/utc.js +1 -1
  35. package/dist/esm/maplestory/api/kms/dto/character/characterItemEquipment.js +11 -1
  36. package/dist/esm/maplestory/api/kms/mapleStoryApi.js +1 -1
  37. package/dist/esm/maplestory/api/msea/dto/character/characterItemEquipment.js +11 -1
  38. package/dist/esm/maplestory/api/msea/mapleStoryApi.js +1 -1
  39. package/dist/esm/maplestory/api/tms/dto/character/character.js +18 -0
  40. package/dist/esm/maplestory/api/tms/dto/character/characterAbility.js +102 -0
  41. package/dist/esm/maplestory/api/tms/dto/character/characterAndroidEquipment.js +413 -0
  42. package/dist/esm/maplestory/api/tms/dto/character/characterBasic.js +89 -0
  43. package/dist/esm/maplestory/api/tms/dto/character/characterBeautyEquipment.js +165 -0
  44. package/dist/esm/maplestory/api/tms/dto/character/characterCashItemEquipment.js +221 -0
  45. package/dist/esm/maplestory/api/tms/dto/character/characterDojang.js +45 -0
  46. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrix.js +67 -0
  47. package/dist/esm/maplestory/api/tms/dto/character/characterHexaMatrixStat.js +108 -0
  48. package/dist/esm/maplestory/api/tms/dto/character/characterHyperStat.js +92 -0
  49. package/dist/esm/maplestory/api/tms/dto/character/characterImage.js +77 -0
  50. package/dist/esm/maplestory/api/tms/dto/character/characterItemEquipment.js +1123 -0
  51. package/dist/esm/maplestory/api/tms/dto/character/characterLinkSkill.js +110 -0
  52. package/dist/esm/maplestory/api/tms/dto/character/characterPetEquipment.js +325 -0
  53. package/dist/esm/maplestory/api/tms/dto/character/characterPopularity.js +23 -0
  54. package/dist/esm/maplestory/api/tms/dto/character/characterPropensity.js +48 -0
  55. package/dist/esm/maplestory/api/tms/dto/character/characterSetEffect.js +90 -0
  56. package/dist/esm/maplestory/api/tms/dto/character/characterSkill.js +72 -0
  57. package/dist/esm/maplestory/api/tms/dto/character/characterStat.js +52 -0
  58. package/dist/esm/maplestory/api/tms/dto/character/characterSymbolEquipment.js +114 -0
  59. package/dist/esm/maplestory/api/tms/dto/character/characterVMatrix.js +83 -0
  60. package/dist/esm/maplestory/api/tms/dto/guild/guild.js +18 -0
  61. package/dist/esm/maplestory/api/tms/dto/guild/guildBasic.js +102 -0
  62. package/dist/esm/maplestory/api/tms/dto/union/union.js +43 -0
  63. package/dist/esm/maplestory/api/tms/dto/union/unionArtifact.js +105 -0
  64. package/dist/esm/maplestory/api/tms/dto/union/unionRaider.js +205 -0
  65. package/dist/esm/maplestory/api/tms/mapleStoryApi.js +794 -0
  66. package/dist/esm/maplestory/api/tms/tms.js +27 -0
  67. package/dist/esm/node_modules/dayjs/plugin/utc.js +1 -1
  68. package/dist/index.min.js +1 -1
  69. package/package.json +6 -1
  70. package/types/maplestory/api/common/dto/character/characterItemEquipment.d.ts +2 -0
  71. package/types/maplestory/api/common/dto/character/characterSkill.d.ts +1 -1
  72. package/types/maplestory/api/kms/dto/character/characterItemEquipment.d.ts +8 -0
  73. package/types/maplestory/api/kms/dto/character/characterSkill.d.ts +1 -1
  74. package/types/maplestory/api/kms/mapleStoryApi.d.ts +1 -1
  75. package/types/maplestory/api/kms/response/character/characterItemEquipmentBody.d.ts +2 -0
  76. package/types/maplestory/api/msea/dto/character/characterItemEquipment.d.ts +8 -0
  77. package/types/maplestory/api/msea/dto/character/characterSkill.d.ts +1 -1
  78. package/types/maplestory/api/msea/mapleStoryApi.d.ts +1 -1
  79. package/types/maplestory/api/msea/response/character/characterItemEquipmentBody.d.ts +2 -0
  80. package/types/maplestory/api/msea/response/character/characterSkillBody.d.ts +1 -1
  81. package/types/maplestory/api/tms/dto/character/character.d.ts +12 -0
  82. package/types/maplestory/api/tms/dto/character/characterAbility.d.ts +72 -0
  83. package/types/maplestory/api/tms/dto/character/characterAndroidEquipment.d.ts +299 -0
  84. package/types/maplestory/api/tms/dto/character/characterBasic.d.ts +68 -0
  85. package/types/maplestory/api/tms/dto/character/characterBeautyEquipment.d.ts +117 -0
  86. package/types/maplestory/api/tms/dto/character/characterCashItemEquipment.d.ts +158 -0
  87. package/types/maplestory/api/tms/dto/character/characterDojang.d.ts +32 -0
  88. package/types/maplestory/api/tms/dto/character/characterHexaMatrix.d.ts +48 -0
  89. package/types/maplestory/api/tms/dto/character/characterHexaMatrixStat.d.ts +78 -0
  90. package/types/maplestory/api/tms/dto/character/characterHyperStat.d.ts +70 -0
  91. package/types/maplestory/api/tms/dto/character/characterImage.d.ts +74 -0
  92. package/types/maplestory/api/tms/dto/character/characterItemEquipment.d.ts +864 -0
  93. package/types/maplestory/api/tms/dto/character/characterLinkSkill.d.ts +78 -0
  94. package/types/maplestory/api/tms/dto/character/characterPetEquipment.d.ts +230 -0
  95. package/types/maplestory/api/tms/dto/character/characterPopularity.d.ts +16 -0
  96. package/types/maplestory/api/tms/dto/character/characterPropensity.d.ts +36 -0
  97. package/types/maplestory/api/tms/dto/character/characterSetEffect.d.ts +66 -0
  98. package/types/maplestory/api/tms/dto/character/characterSkill.d.ts +54 -0
  99. package/types/maplestory/api/tms/dto/character/characterStat.d.ts +38 -0
  100. package/types/maplestory/api/tms/dto/character/characterSymbolEquipment.d.ts +86 -0
  101. package/types/maplestory/api/tms/dto/character/characterVMatrix.d.ts +62 -0
  102. package/types/maplestory/api/tms/dto/guild/guild.d.ts +12 -0
  103. package/types/maplestory/api/tms/dto/guild/guildBasic.d.ts +78 -0
  104. package/types/maplestory/api/tms/dto/union/union.d.ts +32 -0
  105. package/types/maplestory/api/tms/dto/union/unionArtifact.d.ts +76 -0
  106. package/types/maplestory/api/tms/dto/union/unionRaider.d.ts +147 -0
  107. package/types/maplestory/api/tms/index.d.ts +27 -0
  108. package/types/maplestory/api/tms/mapleStoryApi.d.ts +364 -0
  109. package/types/maplestory/api/tms/response/character/characterAbilityBody.d.ts +19 -0
  110. package/types/maplestory/api/tms/response/character/characterAndroidEquipmentBody.d.ts +76 -0
  111. package/types/maplestory/api/tms/response/character/characterBasicBody.d.ts +16 -0
  112. package/types/maplestory/api/tms/response/character/characterBeautyEquipmentBody.d.ts +30 -0
  113. package/types/maplestory/api/tms/response/character/characterBody.d.ts +3 -0
  114. package/types/maplestory/api/tms/response/character/characterCashItemEquipmentBody.d.ts +39 -0
  115. package/types/maplestory/api/tms/response/character/characterDojangBody.d.ts +8 -0
  116. package/types/maplestory/api/tms/response/character/characterHexaMatrixBody.d.ts +13 -0
  117. package/types/maplestory/api/tms/response/character/characterHexaMatrixStatBody.d.ts +20 -0
  118. package/types/maplestory/api/tms/response/character/characterHyperStatBody.d.ts +18 -0
  119. package/types/maplestory/api/tms/response/character/characterItemEquipmentBody.d.ts +195 -0
  120. package/types/maplestory/api/tms/response/character/characterLinkSkillBody.d.ts +20 -0
  121. package/types/maplestory/api/tms/response/character/characterPetEquipmentBody.d.ts +56 -0
  122. package/types/maplestory/api/tms/response/character/characterPopularityBody.d.ts +4 -0
  123. package/types/maplestory/api/tms/response/character/characterPropensityBody.d.ts +9 -0
  124. package/types/maplestory/api/tms/response/character/characterSetEffectBody.d.ts +18 -0
  125. package/types/maplestory/api/tms/response/character/characterSkillBody.d.ts +14 -0
  126. package/types/maplestory/api/tms/response/character/characterStatBody.d.ts +10 -0
  127. package/types/maplestory/api/tms/response/character/characterSymbolEquipmentBody.d.ts +22 -0
  128. package/types/maplestory/api/tms/response/character/characterVMatrixBody.d.ts +16 -0
  129. package/types/maplestory/api/tms/response/guild/guildBasicBody.d.ts +20 -0
  130. package/types/maplestory/api/tms/response/guild/guildBody.d.ts +3 -0
  131. package/types/maplestory/api/tms/response/union/unionArtifactBody.d.ts +19 -0
  132. package/types/maplestory/api/tms/response/union/unionBody.d.ts +8 -0
  133. package/types/maplestory/api/tms/response/union/unionRaiderBody.d.ts +38 -0
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var characterStat = require('../../../common/dto/character/characterStat.js');
6
+
7
+ /**
8
+ * 角色綜合能力值資訊
9
+ */
10
+ class CharacterStatDto extends characterStat.CharacterStatDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 角色職業
17
+ */
18
+ characterClass;
19
+ /**
20
+ * 當前能力值資訊
21
+ */
22
+ finalStat;
23
+ /**
24
+ * 剩餘 AP
25
+ */
26
+ remainAP;
27
+ constructor(obj) {
28
+ super();
29
+ const { date, character_class, final_stat, remain_ap } = obj;
30
+ this.date = date ? new Date(date) : null;
31
+ this.characterClass = character_class;
32
+ this.finalStat = final_stat.map((stat) => new CharacterFinalStatDto(stat));
33
+ this.remainAP = remain_ap;
34
+ }
35
+ }
36
+ /**
37
+ * 當前能力值資訊
38
+ */
39
+ class CharacterFinalStatDto extends characterStat.CharacterFinalStatDto {
40
+ /**
41
+ * 能力值名稱
42
+ */
43
+ statName;
44
+ /**
45
+ * 能力值數值
46
+ */
47
+ statValue;
48
+ constructor(obj) {
49
+ super();
50
+ const { stat_name, stat_value } = obj;
51
+ this.statName = stat_name;
52
+ this.statValue = stat_value;
53
+ }
54
+ }
55
+
56
+ exports.CharacterFinalStatDto = CharacterFinalStatDto;
57
+ exports.CharacterStatDto = CharacterStatDto;
@@ -0,0 +1,119 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var characterSymbolEquipment = require('../../../common/dto/character/characterSymbolEquipment.js');
6
+
7
+ /**
8
+ * 角色已裝備符文資訊
9
+ */
10
+ class CharacterSymbolEquipmentDto extends characterSymbolEquipment.CharacterSymbolEquipmentDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 角色職業
17
+ */
18
+ characterClass;
19
+ /**
20
+ * 符文資訊
21
+ */
22
+ symbol;
23
+ constructor(obj) {
24
+ super();
25
+ const { date, character_class, symbol } = obj;
26
+ this.date = date ? new Date(date) : null;
27
+ this.characterClass = character_class;
28
+ this.symbol = symbol.map((s) => new CharacterSymbolEquipmentInfoDto(s));
29
+ }
30
+ }
31
+ /**
32
+ * 符文資訊
33
+ */
34
+ class CharacterSymbolEquipmentInfoDto extends characterSymbolEquipment.CharacterSymbolEquipmentInfoDto {
35
+ /**
36
+ * 符文名稱
37
+ */
38
+ symbolName;
39
+ /**
40
+ * 符文圖示
41
+ */
42
+ symbolIcon;
43
+ /**
44
+ * 符文描述
45
+ */
46
+ symbolDescription;
47
+ /**
48
+ * 因符文增加的數值
49
+ */
50
+ symbolForce;
51
+ /**
52
+ * 符文等級
53
+ */
54
+ symbolLevel;
55
+ /**
56
+ * 符文增加的力量 (STR)
57
+ */
58
+ symbolStr;
59
+ /**
60
+ * 符文增加的敏捷 (DEX)
61
+ */
62
+ symbolDex;
63
+ /**
64
+ * 符文增加的智力 (INT)
65
+ */
66
+ symbolInt;
67
+ /**
68
+ * 符文增加的幸運 (LUK)
69
+ */
70
+ symbolLuk;
71
+ /**
72
+ * 符文增加的體力 (HP)
73
+ */
74
+ symbolHp;
75
+ /**
76
+ * 符文增加的道具掉落率
77
+ */
78
+ symbolDropRate;
79
+ /**
80
+ * 符文增加的楓幣掉落率
81
+ */
82
+ symbolMesoRate;
83
+ /**
84
+ * 符文增加的經驗值獲得量
85
+ */
86
+ symbolExpRate;
87
+ /**
88
+ * 現有成長值
89
+ */
90
+ symbolGrowthCount;
91
+ /**
92
+ * 成長所需的成長值
93
+ */
94
+ symbolRequireGrowthCount;
95
+ constructor(obj) {
96
+ super();
97
+ const { symbol_name, symbol_icon, symbol_description, symbol_force, symbol_level, symbol_str, symbol_dex, symbol_int, symbol_luk, symbol_hp, symbol_drop_rate, symbol_meso_rate, symbol_exp_rate, symbol_growth_count, symbol_require_growth_count, } = obj;
98
+ this.symbolName = symbol_name;
99
+ this.symbolIcon = symbol_icon;
100
+ this.symbolDescription = symbol_description;
101
+ this.symbolForce = symbol_force;
102
+ this.symbolLevel = symbol_level;
103
+ this.symbolStr = symbol_str;
104
+ this.symbolDex = symbol_dex;
105
+ this.symbolInt = symbol_int;
106
+ this.symbolLuk = symbol_luk;
107
+ this.symbolHp = symbol_hp;
108
+ this.symbolDropRate = symbol_drop_rate ?? '0%';
109
+ this.symbolMesoRate = symbol_meso_rate ?? '0%';
110
+ this.symbolExpRate = symbol_exp_rate ?? '0%';
111
+ this.symbolHp = symbol_hp;
112
+ this.symbolHp = symbol_hp;
113
+ this.symbolGrowthCount = symbol_growth_count;
114
+ this.symbolRequireGrowthCount = symbol_require_growth_count;
115
+ }
116
+ }
117
+
118
+ exports.CharacterSymbolEquipmentDto = CharacterSymbolEquipmentDto;
119
+ exports.CharacterSymbolEquipmentInfoDto = CharacterSymbolEquipmentInfoDto;
@@ -0,0 +1,88 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var characterVMatrix = require('../../../common/dto/character/characterVMatrix.js');
6
+
7
+ /**
8
+ * 角色 V 矩陣欄位資訊與已裝備 V 核心資訊
9
+ */
10
+ class CharacterVMatrixDto extends characterVMatrix.CharacterVMatrixDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 角色職業
17
+ */
18
+ characterClass;
19
+ /**
20
+ * V 核心資訊
21
+ */
22
+ characterVCoreEquipment;
23
+ /**
24
+ * 角色剩餘的矩陣強化點數
25
+ */
26
+ characterVMatrixRemainSlotUpgradePoint;
27
+ constructor(obj) {
28
+ super();
29
+ const { date, character_class, character_v_core_equipment, character_v_matrix_remain_slot_upgrade_point, } = obj;
30
+ this.date = date ? new Date(date) : null;
31
+ this.characterClass = character_class;
32
+ this.characterVCoreEquipment = character_v_core_equipment.map((equipment) => new CharacterVMatrixCodeEquipmentDto(equipment));
33
+ this.characterVMatrixRemainSlotUpgradePoint =
34
+ character_v_matrix_remain_slot_upgrade_point;
35
+ }
36
+ }
37
+ /**
38
+ * V 核心資訊
39
+ */
40
+ class CharacterVMatrixCodeEquipmentDto extends characterVMatrix.CharacterVMatrixCodeEquipmentDto {
41
+ /**
42
+ * 欄位索引
43
+ */
44
+ slotId;
45
+ /**
46
+ * 欄位等級
47
+ */
48
+ slotLevel;
49
+ /**
50
+ * 核心名稱
51
+ */
52
+ vCoreName;
53
+ /**
54
+ * 核心類型
55
+ */
56
+ vCoreType;
57
+ /**
58
+ * 核心等級
59
+ */
60
+ vCoreLevel;
61
+ /**
62
+ * 對應核心的技能名稱
63
+ */
64
+ vCoreSkill1;
65
+ /**
66
+ * (若為強化核心) 對應核心的第二個技能名稱
67
+ */
68
+ vCoreSkill2;
69
+ /**
70
+ * (若為強化核心) 對應核心的第三個技能名稱
71
+ */
72
+ vCoreSkill3;
73
+ constructor(obj) {
74
+ super();
75
+ const { slot_id, slot_level, v_core_name, v_core_type, v_core_level, v_core_skill_1, v_core_skill_2, v_core_skill_3, } = obj;
76
+ this.slotId = slot_id;
77
+ this.slotLevel = slot_level;
78
+ this.vCoreName = v_core_name;
79
+ this.vCoreType = v_core_type;
80
+ this.vCoreLevel = v_core_level;
81
+ this.vCoreSkill1 = v_core_skill_1;
82
+ this.vCoreSkill2 = v_core_skill_2;
83
+ this.vCoreSkill3 = v_core_skill_3;
84
+ }
85
+ }
86
+
87
+ exports.CharacterVMatrixCodeEquipmentDto = CharacterVMatrixCodeEquipmentDto;
88
+ exports.CharacterVMatrixDto = CharacterVMatrixDto;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var guild = require('../../../common/dto/guild/guild.js');
6
+
7
+ /**
8
+ * 公會識別碼資訊
9
+ */
10
+ class GuildDto extends guild.GuildDto {
11
+ /**
12
+ * 公會識別碼
13
+ */
14
+ oguildId;
15
+ constructor(obj) {
16
+ super();
17
+ const { oguild_id } = obj;
18
+ this.oguildId = oguild_id;
19
+ }
20
+ }
21
+
22
+ exports.GuildDto = GuildDto;
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var guildBasic = require('../../../common/dto/guild/guildBasic.js');
6
+
7
+ /**
8
+ * 公會基本資訊
9
+ */
10
+ class GuildBasicDto extends guildBasic.GuildBasicDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 世界名稱
17
+ */
18
+ worldName;
19
+ /**
20
+ * 公會名稱
21
+ */
22
+ guildName;
23
+ /**
24
+ * 公會等級
25
+ */
26
+ guildLevel;
27
+ /**
28
+ * 公會名聲值
29
+ */
30
+ guildFame;
31
+ /**
32
+ * 公會點數 (GP)
33
+ */
34
+ guildPoint;
35
+ /**
36
+ * 公會會長角色名稱
37
+ */
38
+ guildMasterName;
39
+ /**
40
+ * 公會成員人數
41
+ */
42
+ guildMemberCount;
43
+ /**
44
+ * 公會成員清單
45
+ */
46
+ guildMember;
47
+ /**
48
+ * 公會技能清單
49
+ */
50
+ guildSkill;
51
+ /**
52
+ * 貴族技能清單
53
+ */
54
+ guildNoblesseSkill;
55
+ constructor(obj) {
56
+ super();
57
+ const { date, world_name, guild_name, guild_level, guild_fame, guild_point, guild_master_name, guild_member_count, guild_member, guild_skill, guild_noblesse_skill, } = obj;
58
+ this.date = date ? new Date(date) : null;
59
+ this.worldName = world_name;
60
+ this.guildName = guild_name;
61
+ this.guildLevel = guild_level;
62
+ this.guildFame = guild_fame;
63
+ this.guildPoint = guild_point;
64
+ this.guildMasterName = guild_master_name;
65
+ this.guildMemberCount = guild_member_count;
66
+ this.guildMember = guild_member;
67
+ this.guildSkill = guild_skill.map((skill) => new GuildSkillDto(skill));
68
+ this.guildNoblesseSkill = guild_noblesse_skill.map((skill) => new GuildSkillDto(skill));
69
+ }
70
+ }
71
+ /**
72
+ * 公會技能
73
+ */
74
+ class GuildSkillDto extends guildBasic.GuildSkillDto {
75
+ /**
76
+ * 技能名稱
77
+ */
78
+ skillName;
79
+ /**
80
+ * 技能描述
81
+ */
82
+ skillDescription;
83
+ /**
84
+ * 技能等級
85
+ */
86
+ skillLevel;
87
+ /**
88
+ * 技能等級的效果
89
+ */
90
+ skillEffect;
91
+ /**
92
+ * 技能圖示
93
+ */
94
+ skillIcon;
95
+ constructor(obj) {
96
+ super();
97
+ const { skill_name, skill_description, skill_level, skill_effect, skill_icon, } = obj;
98
+ this.skillName = skill_name;
99
+ this.skillDescription = skill_description;
100
+ this.skillLevel = skill_level;
101
+ this.skillEffect = skill_effect;
102
+ this.skillIcon = skill_icon;
103
+ }
104
+ }
105
+
106
+ exports.GuildBasicDto = GuildBasicDto;
107
+ exports.GuildSkillDto = GuildSkillDto;
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var union = require('../../../common/dto/union/union.js');
6
+
7
+ /**
8
+ * 戰地資訊
9
+ */
10
+ class UnionDto extends union.UnionDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 聯盟等級
17
+ */
18
+ unionLevel;
19
+ /**
20
+ * 聯盟階級
21
+ */
22
+ unionGrade;
23
+ /**
24
+ * 神器等級
25
+ */
26
+ unionArtifactLevel;
27
+ /**
28
+ * 持有的神器經驗值
29
+ */
30
+ unionArtifactExp;
31
+ /**
32
+ * 持有的神器點數
33
+ */
34
+ unionArtifactPoint;
35
+ constructor(obj) {
36
+ super();
37
+ const { date, union_level, union_grade, union_artifact_level, union_artifact_exp, union_artifact_point, } = obj;
38
+ this.date = date ? new Date(date) : null;
39
+ this.unionLevel = union_level;
40
+ this.unionGrade = union_grade;
41
+ this.unionArtifactLevel = union_artifact_level;
42
+ this.unionArtifactExp = union_artifact_exp;
43
+ this.unionArtifactPoint = union_artifact_point;
44
+ }
45
+ }
46
+
47
+ exports.UnionDto = UnionDto;
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var unionArtifact = require('../../../common/dto/union/unionArtifact.js');
6
+
7
+ /**
8
+ * 戰地神器資訊
9
+ */
10
+ class UnionArtifactDto extends unionArtifact.UnionArtifactDto {
11
+ /**
12
+ * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
13
+ */
14
+ date;
15
+ /**
16
+ * 神器效果資訊
17
+ */
18
+ unionArtifactEffect;
19
+ /**
20
+ * 神器水晶資訊
21
+ */
22
+ unionArtifactCrystal;
23
+ /**
24
+ * 剩餘神器 AP
25
+ */
26
+ unionArtifactRemainAp;
27
+ constructor(obj) {
28
+ super();
29
+ const { date, union_artifact_effect, union_artifact_crystal, union_artifact_remain_ap, } = obj;
30
+ this.date = date ? new Date(date) : null;
31
+ this.unionArtifactEffect = union_artifact_effect.map((effect) => new UnionArtifactEffectDto(effect));
32
+ this.unionArtifactCrystal = union_artifact_crystal.map((crystal) => new UnionArtifactCrystalDto(crystal));
33
+ this.unionArtifactRemainAp = union_artifact_remain_ap;
34
+ }
35
+ }
36
+ /**
37
+ * 神器效果資訊
38
+ */
39
+ class UnionArtifactEffectDto extends unionArtifact.UnionArtifactEffectDto {
40
+ /**
41
+ * 神器效果名稱
42
+ */
43
+ name;
44
+ /**
45
+ * 神器效果等級
46
+ */
47
+ level;
48
+ constructor(obj) {
49
+ super();
50
+ const { name, level } = obj;
51
+ this.name = name;
52
+ this.level = level;
53
+ }
54
+ }
55
+ /**
56
+ * 神器水晶資訊
57
+ */
58
+ class UnionArtifactCrystalDto extends unionArtifact.UnionArtifactCrystalDto {
59
+ /**
60
+ * 神器水晶名稱
61
+ */
62
+ name;
63
+ /**
64
+ * 能力有效性 (0:有效,1:無效)
65
+ */
66
+ validityFlag;
67
+ /**
68
+ * 能力有效期間 (TST)
69
+ */
70
+ dateExpire = null;
71
+ /**
72
+ * Whether the artifact crystal is expired
73
+ */
74
+ isExpired = null;
75
+ /**
76
+ * 神器水晶階級
77
+ */
78
+ level;
79
+ /**
80
+ * 神器水晶第一選項名稱
81
+ */
82
+ crystalOptionName1;
83
+ /**
84
+ * 神器水晶第二選項名稱
85
+ */
86
+ crystalOptionName2;
87
+ /**
88
+ * 神器水晶第三選項名稱
89
+ */
90
+ crystalOptionName3;
91
+ constructor(obj) {
92
+ super();
93
+ const { name, validity_flag, date_expire, level, crystal_option_name_1, crystal_option_name_2, crystal_option_name_3, } = obj;
94
+ this.name = name;
95
+ this.validityFlag = validity_flag;
96
+ this.level = level;
97
+ this.crystalOptionName1 = crystal_option_name_1;
98
+ this.crystalOptionName2 = crystal_option_name_2;
99
+ this.crystalOptionName3 = crystal_option_name_3;
100
+ if (date_expire === 'expired') {
101
+ this.isExpired = true;
102
+ }
103
+ else if (typeof date_expire === 'string') {
104
+ this.dateExpire = date_expire ? new Date(date_expire) : null;
105
+ }
106
+ }
107
+ }
108
+
109
+ exports.UnionArtifactCrystalDto = UnionArtifactCrystalDto;
110
+ exports.UnionArtifactDto = UnionArtifactDto;
111
+ exports.UnionArtifactEffectDto = UnionArtifactEffectDto;