maplestory-openapi 3.3.0 → 3.4.1

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