@ruvice/my-maple-models 0.1.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/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/api/apiTypes.d.ts +58 -0
- package/dist/models/api/apiTypes.js +2 -0
- package/dist/models/api/equipmentTypes.d.ts +163 -0
- package/dist/models/api/equipmentTypes.js +1 -0
- package/dist/models/maple/Equipment/equipmentTypes.d.ts +75 -0
- package/dist/models/maple/Equipment/equipmentTypes.js +26 -0
- package/dist/models/maple/Equipment/options.d.ts +99 -0
- package/dist/models/maple/Equipment/options.js +1 -0
- package/dist/models/maple/Generic/enums.d.ts +57 -0
- package/dist/models/maple/Generic/enums.js +59 -0
- package/dist/models/maple/mapleModels.d.ts +73 -0
- package/dist/models/maple/mapleModels.js +2 -0
- package/package.json +23 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EquipmentResponse, EquipmentTitleModelResponse, MapleSymbolResponse } from './equipmentTypes';
|
|
2
|
+
export type Ocid = string;
|
|
3
|
+
export interface CharacterMap {
|
|
4
|
+
[ocid: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export interface OpenAPIOcidQueryResponse {
|
|
7
|
+
ocid: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OpenAPICharacterBasicResponse {
|
|
10
|
+
date: string;
|
|
11
|
+
character_name: string;
|
|
12
|
+
world_name: string;
|
|
13
|
+
character_gender: string;
|
|
14
|
+
character_class: string;
|
|
15
|
+
character_class_level: string;
|
|
16
|
+
character_level: number;
|
|
17
|
+
character_exp: number;
|
|
18
|
+
character_exp_rate: string;
|
|
19
|
+
character_guild_name: string;
|
|
20
|
+
character_image: string;
|
|
21
|
+
character_date_create: string;
|
|
22
|
+
access_flag: string;
|
|
23
|
+
liberation_quest_clear_flag: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ExpData {
|
|
26
|
+
date: string;
|
|
27
|
+
exp: number;
|
|
28
|
+
exp_rate: string;
|
|
29
|
+
}
|
|
30
|
+
export interface OpenAPIItemEquipmentResponse {
|
|
31
|
+
date: string;
|
|
32
|
+
character_gender: string;
|
|
33
|
+
character_class: string;
|
|
34
|
+
preset_no: number;
|
|
35
|
+
item_equipment: EquipmentResponse[];
|
|
36
|
+
item_equipment_preset_1: EquipmentResponse[];
|
|
37
|
+
item_equipment_preset_2: EquipmentResponse[];
|
|
38
|
+
item_equipment_preset_3: EquipmentResponse[];
|
|
39
|
+
title: EquipmentTitleModelResponse;
|
|
40
|
+
dragon_equipment: EquipmentResponse[];
|
|
41
|
+
mechanic_equipment: EquipmentResponse[];
|
|
42
|
+
}
|
|
43
|
+
export interface OpenAPISymbolEquipmentResponse {
|
|
44
|
+
date: string;
|
|
45
|
+
character_class: string;
|
|
46
|
+
symbol: MapleSymbolResponse[];
|
|
47
|
+
}
|
|
48
|
+
export interface OpenAPIStatResponse {
|
|
49
|
+
date: string;
|
|
50
|
+
character_class: string;
|
|
51
|
+
final_stat: StatResponse[];
|
|
52
|
+
remain_ap: number;
|
|
53
|
+
}
|
|
54
|
+
export interface StatResponse {
|
|
55
|
+
stat_name: string;
|
|
56
|
+
stat_value: string;
|
|
57
|
+
}
|
|
58
|
+
export type TwitchBroadcasterConfiguration = Record<string, Ocid>;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export interface EquipmentResponse {
|
|
2
|
+
item_equipment_part: string;
|
|
3
|
+
item_equipment_slot: string;
|
|
4
|
+
item_name: string;
|
|
5
|
+
item_icon: string;
|
|
6
|
+
item_description: string;
|
|
7
|
+
item_shape_name: string;
|
|
8
|
+
item_shape_icon: string;
|
|
9
|
+
item_gender: string;
|
|
10
|
+
item_total_option: ItemTotalOptionResponse;
|
|
11
|
+
item_base_option: ItemBaseOptionResponse;
|
|
12
|
+
potential_option_grade: string;
|
|
13
|
+
additional_potential_option_grade: string;
|
|
14
|
+
potential_option_flag: string;
|
|
15
|
+
potential_option_1: string;
|
|
16
|
+
potential_option_2: string;
|
|
17
|
+
potential_option_3: string;
|
|
18
|
+
additional_potential_option_flag: string;
|
|
19
|
+
additional_potential_option_1: string;
|
|
20
|
+
additional_potential_option_2: string;
|
|
21
|
+
additional_potential_option_3: string;
|
|
22
|
+
equipment_level_increase: number;
|
|
23
|
+
item_exceptional_option: ItemExceptionalOptionResponse;
|
|
24
|
+
item_add_option: ItemAddOptionResponse;
|
|
25
|
+
growth_exp: number;
|
|
26
|
+
growth_level: number;
|
|
27
|
+
scroll_upgrade: string;
|
|
28
|
+
cuttable_count: string;
|
|
29
|
+
golden_hammer_flag: string;
|
|
30
|
+
scroll_resilience_count: string;
|
|
31
|
+
scroll_upgradeable_count: string;
|
|
32
|
+
soul_name: string;
|
|
33
|
+
soul_option: string;
|
|
34
|
+
item_etc_option: ItemEtcOptionResponse;
|
|
35
|
+
starforce: string;
|
|
36
|
+
starforce_scroll_flag: string;
|
|
37
|
+
item_starforce_option: ItemStarForceOptionResponse;
|
|
38
|
+
special_ring_level: number;
|
|
39
|
+
date_expire: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ItemTotalOptionResponse {
|
|
42
|
+
[key: string]: string | number;
|
|
43
|
+
str: string;
|
|
44
|
+
dex: string;
|
|
45
|
+
int: string;
|
|
46
|
+
luk: string;
|
|
47
|
+
max_hp: string;
|
|
48
|
+
max_mp: string;
|
|
49
|
+
attack_power: string;
|
|
50
|
+
magic_power: string;
|
|
51
|
+
armor: string;
|
|
52
|
+
speed: string;
|
|
53
|
+
jump: string;
|
|
54
|
+
boss_damage: string;
|
|
55
|
+
ignore_monster_armor: string;
|
|
56
|
+
all_stat: string;
|
|
57
|
+
damage: string;
|
|
58
|
+
equipment_level_decrease: number;
|
|
59
|
+
max_hp_rate: string;
|
|
60
|
+
max_mp_rate: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ItemBaseOptionResponse {
|
|
63
|
+
[key: string]: string | number;
|
|
64
|
+
str: string;
|
|
65
|
+
dex: string;
|
|
66
|
+
int: string;
|
|
67
|
+
luk: string;
|
|
68
|
+
max_hp: string;
|
|
69
|
+
max_mp: string;
|
|
70
|
+
attack_power: string;
|
|
71
|
+
magic_power: string;
|
|
72
|
+
armor: string;
|
|
73
|
+
speed: string;
|
|
74
|
+
jump: string;
|
|
75
|
+
boss_damage: string;
|
|
76
|
+
ignore_monster_armor: string;
|
|
77
|
+
all_stat: string;
|
|
78
|
+
max_hp_rate: string;
|
|
79
|
+
max_mp_rate: string;
|
|
80
|
+
base_equipment_level: number;
|
|
81
|
+
}
|
|
82
|
+
export interface ItemExceptionalOptionResponse {
|
|
83
|
+
[key: string]: string | number;
|
|
84
|
+
str: string;
|
|
85
|
+
dex: string;
|
|
86
|
+
int: string;
|
|
87
|
+
luk: string;
|
|
88
|
+
max_hp: string;
|
|
89
|
+
max_mp: string;
|
|
90
|
+
attack_power: string;
|
|
91
|
+
magic_power: string;
|
|
92
|
+
exceptional_upgrade: number;
|
|
93
|
+
}
|
|
94
|
+
export interface ItemAddOptionResponse {
|
|
95
|
+
[key: string]: string | number;
|
|
96
|
+
str: string;
|
|
97
|
+
dex: string;
|
|
98
|
+
int: string;
|
|
99
|
+
luk: string;
|
|
100
|
+
max_hp: string;
|
|
101
|
+
max_mp: string;
|
|
102
|
+
attack_power: string;
|
|
103
|
+
magic_power: string;
|
|
104
|
+
armor: string;
|
|
105
|
+
speed: string;
|
|
106
|
+
jump: string;
|
|
107
|
+
boss_damage: string;
|
|
108
|
+
damage: string;
|
|
109
|
+
all_stat: string;
|
|
110
|
+
equipment_level_decrease: number;
|
|
111
|
+
}
|
|
112
|
+
export interface ItemEtcOptionResponse {
|
|
113
|
+
[key: string]: string | number;
|
|
114
|
+
str: string;
|
|
115
|
+
dex: string;
|
|
116
|
+
int: string;
|
|
117
|
+
luk: string;
|
|
118
|
+
max_hp: string;
|
|
119
|
+
max_mp: string;
|
|
120
|
+
attack_power: string;
|
|
121
|
+
magic_power: string;
|
|
122
|
+
armor: string;
|
|
123
|
+
speed: string;
|
|
124
|
+
jump: string;
|
|
125
|
+
}
|
|
126
|
+
export interface ItemStarForceOptionResponse {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
str: string;
|
|
129
|
+
dex: string;
|
|
130
|
+
int: string;
|
|
131
|
+
luk: string;
|
|
132
|
+
max_hp: string;
|
|
133
|
+
max_mp: string;
|
|
134
|
+
attack_power: string;
|
|
135
|
+
magic_power: string;
|
|
136
|
+
armor: string;
|
|
137
|
+
speed: string;
|
|
138
|
+
jump: string;
|
|
139
|
+
}
|
|
140
|
+
export interface EquipmentTitleModelResponse {
|
|
141
|
+
title_name: string;
|
|
142
|
+
title_icon: string;
|
|
143
|
+
title_description: string;
|
|
144
|
+
date_expire: string;
|
|
145
|
+
date_option_expire: string;
|
|
146
|
+
}
|
|
147
|
+
export interface MapleSymbolResponse {
|
|
148
|
+
symbol_name: string;
|
|
149
|
+
symbol_icon: string;
|
|
150
|
+
symbol_description: string;
|
|
151
|
+
symbol_force: string;
|
|
152
|
+
symbol_level: number;
|
|
153
|
+
symbol_str: string;
|
|
154
|
+
symbol_dex: string;
|
|
155
|
+
symbol_int: string;
|
|
156
|
+
symbol_luk: string;
|
|
157
|
+
symbol_hp: string;
|
|
158
|
+
symbol_drop_rate: string;
|
|
159
|
+
symbol_meso_rate: string;
|
|
160
|
+
symbol_exp_rate: string;
|
|
161
|
+
symbol_growth_count: number;
|
|
162
|
+
symbol_require_growth_count: number;
|
|
163
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Potential } from "../Generic/enums";
|
|
2
|
+
import { ItemAddOption, ItemBaseOption, ItemEtcOption, ItemExceptionalOption, ItemStarForceOption, ItemTotalOption } from "./options";
|
|
3
|
+
export interface Equipment {
|
|
4
|
+
item_equipment_part: string;
|
|
5
|
+
item_equipment_slot: ItemEquipmentSlot;
|
|
6
|
+
item_name: string;
|
|
7
|
+
item_icon: string;
|
|
8
|
+
item_description: string;
|
|
9
|
+
item_shape_name: string;
|
|
10
|
+
item_shape_icon: string;
|
|
11
|
+
item_gender: string;
|
|
12
|
+
item_total_option: ItemTotalOption;
|
|
13
|
+
item_base_option: ItemBaseOption;
|
|
14
|
+
potential_option_grade: Potential;
|
|
15
|
+
additional_potential_option_grade: Potential;
|
|
16
|
+
potential_option_flag: boolean;
|
|
17
|
+
potential_option_1: string;
|
|
18
|
+
potential_option_2: string;
|
|
19
|
+
potential_option_3: string;
|
|
20
|
+
additional_potential_option_flag: boolean;
|
|
21
|
+
additional_potential_option_1: string;
|
|
22
|
+
additional_potential_option_2: string;
|
|
23
|
+
additional_potential_option_3: string;
|
|
24
|
+
equipment_level_increase: number;
|
|
25
|
+
item_exceptional_option: ItemExceptionalOption;
|
|
26
|
+
item_add_option: ItemAddOption;
|
|
27
|
+
growth_exp: number;
|
|
28
|
+
growth_level: number;
|
|
29
|
+
scroll_upgrade: number;
|
|
30
|
+
cuttable_count: number;
|
|
31
|
+
golden_hammer_flag: string;
|
|
32
|
+
scroll_resilience_count: number;
|
|
33
|
+
scroll_upgradeable_count: number;
|
|
34
|
+
soul_name: string;
|
|
35
|
+
soul_option: string;
|
|
36
|
+
item_etc_option: ItemEtcOption;
|
|
37
|
+
starforce: number;
|
|
38
|
+
starforce_scroll_flag: string;
|
|
39
|
+
item_starforce_option: ItemStarForceOption;
|
|
40
|
+
special_ring_level: number;
|
|
41
|
+
date_expire: string;
|
|
42
|
+
maxStarforce: number;
|
|
43
|
+
}
|
|
44
|
+
export declare enum ItemEquipmentSlot {
|
|
45
|
+
Ring1 = "Ring1",
|
|
46
|
+
Ring2 = "Ring2",
|
|
47
|
+
Ring3 = "Ring3",
|
|
48
|
+
Ring4 = "Ring4",
|
|
49
|
+
Pendant = "Pendant",
|
|
50
|
+
Pendant2 = "Pendant2",
|
|
51
|
+
Weapon = "Weapon",
|
|
52
|
+
Belt = "Belt",
|
|
53
|
+
Hat = "Hat",
|
|
54
|
+
FaceAccessory = "FaceAccessory",
|
|
55
|
+
EyeAccessory = "EyeAccessory",
|
|
56
|
+
Top = "Top",
|
|
57
|
+
Bottom = "Bottom",
|
|
58
|
+
Shoes = "Shoes",
|
|
59
|
+
Earring = "Earring",
|
|
60
|
+
ShoulderDecoration = "ShoulderDecoration",
|
|
61
|
+
Glove = "Glove",
|
|
62
|
+
Emblem = "Emblem",
|
|
63
|
+
Badge = "Badge",
|
|
64
|
+
Medal = "Medal",
|
|
65
|
+
SecondaryWeapons = "SecondaryWeapons",
|
|
66
|
+
Cape = "Cape",
|
|
67
|
+
MechanicalHeart = "MechanicalHeart"
|
|
68
|
+
}
|
|
69
|
+
export type EquipmentTitleModel = {
|
|
70
|
+
title_name: string;
|
|
71
|
+
title_icon: string;
|
|
72
|
+
title_description: string;
|
|
73
|
+
date_expire: string;
|
|
74
|
+
date_option_expire: string;
|
|
75
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var ItemEquipmentSlot;
|
|
2
|
+
(function (ItemEquipmentSlot) {
|
|
3
|
+
ItemEquipmentSlot["Ring1"] = "Ring1";
|
|
4
|
+
ItemEquipmentSlot["Ring2"] = "Ring2";
|
|
5
|
+
ItemEquipmentSlot["Ring3"] = "Ring3";
|
|
6
|
+
ItemEquipmentSlot["Ring4"] = "Ring4";
|
|
7
|
+
ItemEquipmentSlot["Pendant"] = "Pendant";
|
|
8
|
+
ItemEquipmentSlot["Pendant2"] = "Pendant2";
|
|
9
|
+
ItemEquipmentSlot["Weapon"] = "Weapon";
|
|
10
|
+
ItemEquipmentSlot["Belt"] = "Belt";
|
|
11
|
+
ItemEquipmentSlot["Hat"] = "Hat";
|
|
12
|
+
ItemEquipmentSlot["FaceAccessory"] = "FaceAccessory";
|
|
13
|
+
ItemEquipmentSlot["EyeAccessory"] = "EyeAccessory";
|
|
14
|
+
ItemEquipmentSlot["Top"] = "Top";
|
|
15
|
+
ItemEquipmentSlot["Bottom"] = "Bottom";
|
|
16
|
+
ItemEquipmentSlot["Shoes"] = "Shoes";
|
|
17
|
+
ItemEquipmentSlot["Earring"] = "Earring";
|
|
18
|
+
ItemEquipmentSlot["ShoulderDecoration"] = "ShoulderDecoration";
|
|
19
|
+
ItemEquipmentSlot["Glove"] = "Glove";
|
|
20
|
+
ItemEquipmentSlot["Emblem"] = "Emblem";
|
|
21
|
+
ItemEquipmentSlot["Badge"] = "Badge";
|
|
22
|
+
ItemEquipmentSlot["Medal"] = "Medal";
|
|
23
|
+
ItemEquipmentSlot["SecondaryWeapons"] = "SecondaryWeapons";
|
|
24
|
+
ItemEquipmentSlot["Cape"] = "Cape";
|
|
25
|
+
ItemEquipmentSlot["MechanicalHeart"] = "MechanicalHeart";
|
|
26
|
+
})(ItemEquipmentSlot || (ItemEquipmentSlot = {}));
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export interface ItemTotalOption {
|
|
2
|
+
[key: string]: number;
|
|
3
|
+
str: number;
|
|
4
|
+
dex: number;
|
|
5
|
+
int: number;
|
|
6
|
+
luk: number;
|
|
7
|
+
max_hp: number;
|
|
8
|
+
max_mp: number;
|
|
9
|
+
attack_power: number;
|
|
10
|
+
magic_power: number;
|
|
11
|
+
armor: number;
|
|
12
|
+
speed: number;
|
|
13
|
+
jump: number;
|
|
14
|
+
boss_damage: number;
|
|
15
|
+
ignore_monster_armor: number;
|
|
16
|
+
all_stat: number;
|
|
17
|
+
damage: number;
|
|
18
|
+
equipment_level_decrease: number;
|
|
19
|
+
max_hp_rate: number;
|
|
20
|
+
max_mp_rate: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ItemBaseOption {
|
|
23
|
+
[key: string]: number | number;
|
|
24
|
+
str: number;
|
|
25
|
+
dex: number;
|
|
26
|
+
int: number;
|
|
27
|
+
luk: number;
|
|
28
|
+
max_hp: number;
|
|
29
|
+
max_mp: number;
|
|
30
|
+
attack_power: number;
|
|
31
|
+
magic_power: number;
|
|
32
|
+
armor: number;
|
|
33
|
+
speed: number;
|
|
34
|
+
jump: number;
|
|
35
|
+
boss_damage: number;
|
|
36
|
+
ignore_monster_armor: number;
|
|
37
|
+
all_stat: number;
|
|
38
|
+
max_hp_rate: number;
|
|
39
|
+
max_mp_rate: number;
|
|
40
|
+
base_equipment_level: number;
|
|
41
|
+
}
|
|
42
|
+
export interface ItemExceptionalOption {
|
|
43
|
+
[key: string]: number;
|
|
44
|
+
str: number;
|
|
45
|
+
dex: number;
|
|
46
|
+
int: number;
|
|
47
|
+
luk: number;
|
|
48
|
+
max_hp: number;
|
|
49
|
+
max_mp: number;
|
|
50
|
+
attack_power: number;
|
|
51
|
+
magic_power: number;
|
|
52
|
+
exceptional_upgrade: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ItemAddOption {
|
|
55
|
+
[key: string]: number;
|
|
56
|
+
str: number;
|
|
57
|
+
dex: number;
|
|
58
|
+
int: number;
|
|
59
|
+
luk: number;
|
|
60
|
+
max_hp: number;
|
|
61
|
+
max_mp: number;
|
|
62
|
+
attack_power: number;
|
|
63
|
+
magic_power: number;
|
|
64
|
+
armor: number;
|
|
65
|
+
speed: number;
|
|
66
|
+
jump: number;
|
|
67
|
+
boss_damage: number;
|
|
68
|
+
damage: number;
|
|
69
|
+
all_stat: number;
|
|
70
|
+
equipment_level_decrease: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ItemEtcOption {
|
|
73
|
+
[key: string]: number;
|
|
74
|
+
str: number;
|
|
75
|
+
dex: number;
|
|
76
|
+
int: number;
|
|
77
|
+
luk: number;
|
|
78
|
+
max_hp: number;
|
|
79
|
+
max_mp: number;
|
|
80
|
+
attack_power: number;
|
|
81
|
+
magic_power: number;
|
|
82
|
+
armor: number;
|
|
83
|
+
speed: number;
|
|
84
|
+
jump: number;
|
|
85
|
+
}
|
|
86
|
+
export interface ItemStarForceOption {
|
|
87
|
+
[key: string]: number;
|
|
88
|
+
str: number;
|
|
89
|
+
dex: number;
|
|
90
|
+
int: number;
|
|
91
|
+
luk: number;
|
|
92
|
+
max_hp: number;
|
|
93
|
+
max_mp: number;
|
|
94
|
+
attack_power: number;
|
|
95
|
+
magic_power: number;
|
|
96
|
+
armor: number;
|
|
97
|
+
speed: number;
|
|
98
|
+
jump: number;
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare enum Potential {
|
|
2
|
+
None = "None",
|
|
3
|
+
Rare = "Rare",
|
|
4
|
+
Epic = "Epic",
|
|
5
|
+
Unique = "Unique",
|
|
6
|
+
Legendary = "Legendary"
|
|
7
|
+
}
|
|
8
|
+
export declare enum CharacterClass {
|
|
9
|
+
Hero = "Hero",
|
|
10
|
+
Paladin = "Paladin",
|
|
11
|
+
DarkKnight = "DarkKnight",
|
|
12
|
+
SoulMaster = "SoulMaster",
|
|
13
|
+
Mihile = "Mihile",
|
|
14
|
+
Blaster = "Blaster",
|
|
15
|
+
DemonSlayer = "DemonSlayer",
|
|
16
|
+
DemonAvenger = "DemonAvenger",
|
|
17
|
+
Aran = "Aran",
|
|
18
|
+
Kaiser = "Kaiser",
|
|
19
|
+
Adele = "Adele",
|
|
20
|
+
Zero = "Zero",
|
|
21
|
+
ArchMageFP = "ArchMageFP",
|
|
22
|
+
ArchMageIL = "ArchMageIL",
|
|
23
|
+
Bishop = "Bishop",
|
|
24
|
+
FlameWizard = "FlameWizard",
|
|
25
|
+
BattleMage = "BattleMage",
|
|
26
|
+
Evan = "Evan",
|
|
27
|
+
Luminous = "Luminous",
|
|
28
|
+
Illium = "Illium",
|
|
29
|
+
Lara = "Lara",
|
|
30
|
+
Kinesis = "Kinesis",
|
|
31
|
+
Bowmaster = "Bowmaster",
|
|
32
|
+
CrossbowMaster = "CrossbowMaster",
|
|
33
|
+
Pathfinder = "Pathfinder",
|
|
34
|
+
WindBreaker = "WindBreaker",
|
|
35
|
+
WildHunter = "WildHunter",
|
|
36
|
+
Mercedes = "Mercedes",
|
|
37
|
+
Kaine = "Kaine",
|
|
38
|
+
NightLord = "NightLord",
|
|
39
|
+
Shadower = "Shadower",
|
|
40
|
+
BladeMaster = "BladeMaster",
|
|
41
|
+
NightWalker = "NightWalker",
|
|
42
|
+
Xenon = "Xenon",
|
|
43
|
+
Phantom = "Phantom",
|
|
44
|
+
Cadena = "Cadena",
|
|
45
|
+
Khali = "Khali",
|
|
46
|
+
HoYoung = "HoYoung",
|
|
47
|
+
Viper = "Viper",
|
|
48
|
+
Captain = "Captain",
|
|
49
|
+
CannonMaster = "CannonMaster",
|
|
50
|
+
Striker = "Striker",
|
|
51
|
+
Mechanic = "Mechanic",
|
|
52
|
+
Eunwol = "Eunwol",
|
|
53
|
+
AngelicBuster = "AngelicBuster",
|
|
54
|
+
Ark = "Ark",
|
|
55
|
+
Hayato = "Hayato",
|
|
56
|
+
Kanna = "Kanna"
|
|
57
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export var Potential;
|
|
2
|
+
(function (Potential) {
|
|
3
|
+
Potential["None"] = "None";
|
|
4
|
+
Potential["Rare"] = "Rare";
|
|
5
|
+
Potential["Epic"] = "Epic";
|
|
6
|
+
Potential["Unique"] = "Unique";
|
|
7
|
+
Potential["Legendary"] = "Legendary";
|
|
8
|
+
})(Potential || (Potential = {}));
|
|
9
|
+
export var CharacterClass;
|
|
10
|
+
(function (CharacterClass) {
|
|
11
|
+
CharacterClass["Hero"] = "Hero";
|
|
12
|
+
CharacterClass["Paladin"] = "Paladin";
|
|
13
|
+
CharacterClass["DarkKnight"] = "DarkKnight";
|
|
14
|
+
CharacterClass["SoulMaster"] = "SoulMaster";
|
|
15
|
+
CharacterClass["Mihile"] = "Mihile";
|
|
16
|
+
CharacterClass["Blaster"] = "Blaster";
|
|
17
|
+
CharacterClass["DemonSlayer"] = "DemonSlayer";
|
|
18
|
+
CharacterClass["DemonAvenger"] = "DemonAvenger";
|
|
19
|
+
CharacterClass["Aran"] = "Aran";
|
|
20
|
+
CharacterClass["Kaiser"] = "Kaiser";
|
|
21
|
+
CharacterClass["Adele"] = "Adele";
|
|
22
|
+
CharacterClass["Zero"] = "Zero";
|
|
23
|
+
CharacterClass["ArchMageFP"] = "ArchMageFP";
|
|
24
|
+
CharacterClass["ArchMageIL"] = "ArchMageIL";
|
|
25
|
+
CharacterClass["Bishop"] = "Bishop";
|
|
26
|
+
CharacterClass["FlameWizard"] = "FlameWizard";
|
|
27
|
+
CharacterClass["BattleMage"] = "BattleMage";
|
|
28
|
+
CharacterClass["Evan"] = "Evan";
|
|
29
|
+
CharacterClass["Luminous"] = "Luminous";
|
|
30
|
+
CharacterClass["Illium"] = "Illium";
|
|
31
|
+
CharacterClass["Lara"] = "Lara";
|
|
32
|
+
CharacterClass["Kinesis"] = "Kinesis";
|
|
33
|
+
CharacterClass["Bowmaster"] = "Bowmaster";
|
|
34
|
+
CharacterClass["CrossbowMaster"] = "CrossbowMaster";
|
|
35
|
+
CharacterClass["Pathfinder"] = "Pathfinder";
|
|
36
|
+
CharacterClass["WindBreaker"] = "WindBreaker";
|
|
37
|
+
CharacterClass["WildHunter"] = "WildHunter";
|
|
38
|
+
CharacterClass["Mercedes"] = "Mercedes";
|
|
39
|
+
CharacterClass["Kaine"] = "Kaine";
|
|
40
|
+
CharacterClass["NightLord"] = "NightLord";
|
|
41
|
+
CharacterClass["Shadower"] = "Shadower";
|
|
42
|
+
CharacterClass["BladeMaster"] = "BladeMaster";
|
|
43
|
+
CharacterClass["NightWalker"] = "NightWalker";
|
|
44
|
+
CharacterClass["Xenon"] = "Xenon";
|
|
45
|
+
CharacterClass["Phantom"] = "Phantom";
|
|
46
|
+
CharacterClass["Cadena"] = "Cadena";
|
|
47
|
+
CharacterClass["Khali"] = "Khali";
|
|
48
|
+
CharacterClass["HoYoung"] = "HoYoung";
|
|
49
|
+
CharacterClass["Viper"] = "Viper";
|
|
50
|
+
CharacterClass["Captain"] = "Captain";
|
|
51
|
+
CharacterClass["CannonMaster"] = "CannonMaster";
|
|
52
|
+
CharacterClass["Striker"] = "Striker";
|
|
53
|
+
CharacterClass["Mechanic"] = "Mechanic";
|
|
54
|
+
CharacterClass["Eunwol"] = "Eunwol";
|
|
55
|
+
CharacterClass["AngelicBuster"] = "AngelicBuster";
|
|
56
|
+
CharacterClass["Ark"] = "Ark";
|
|
57
|
+
CharacterClass["Hayato"] = "Hayato";
|
|
58
|
+
CharacterClass["Kanna"] = "Kanna";
|
|
59
|
+
})(CharacterClass || (CharacterClass = {}));
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EquipmentTitleModel } from "./Equipment/equipmentTypes";
|
|
2
|
+
import { ExpData, Ocid } from "../api/apiTypes";
|
|
3
|
+
import { Equipment } from "./Equipment/equipmentTypes";
|
|
4
|
+
import { CharacterClass } from "./Generic/enums";
|
|
5
|
+
export interface Character {
|
|
6
|
+
name: string;
|
|
7
|
+
ocid: Ocid;
|
|
8
|
+
basic?: BasicCharacterInfo;
|
|
9
|
+
error?: string;
|
|
10
|
+
equips?: ItemEquipInfo;
|
|
11
|
+
symbol?: SymbolInfo;
|
|
12
|
+
expProgression?: ExpData[];
|
|
13
|
+
stat?: StatInfo;
|
|
14
|
+
}
|
|
15
|
+
export interface BasicCharacterInfo {
|
|
16
|
+
character_name: string;
|
|
17
|
+
world_name: string;
|
|
18
|
+
character_gender: string;
|
|
19
|
+
character_class_level: number;
|
|
20
|
+
character_level: number;
|
|
21
|
+
character_exp: number;
|
|
22
|
+
character_exp_rate: number;
|
|
23
|
+
character_guild_name: string;
|
|
24
|
+
character_image: string;
|
|
25
|
+
character_date_create: string;
|
|
26
|
+
access_flag: boolean;
|
|
27
|
+
liberation_quest_clear_flag: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ItemEquipInfo {
|
|
30
|
+
date: string;
|
|
31
|
+
character_gender: string;
|
|
32
|
+
character_class: CharacterClass;
|
|
33
|
+
preset_no: number;
|
|
34
|
+
item_equipment: Equipment[];
|
|
35
|
+
item_equipment_preset_1: Equipment[];
|
|
36
|
+
item_equipment_preset_2: Equipment[];
|
|
37
|
+
item_equipment_preset_3: Equipment[];
|
|
38
|
+
title: EquipmentTitleModel;
|
|
39
|
+
dragon_equipment: Equipment[];
|
|
40
|
+
mechanic_equipment: Equipment[];
|
|
41
|
+
}
|
|
42
|
+
export interface SymbolInfo {
|
|
43
|
+
date: string;
|
|
44
|
+
character_class: CharacterClass;
|
|
45
|
+
symbol: MapleSymbol[];
|
|
46
|
+
}
|
|
47
|
+
export interface MapleSymbol {
|
|
48
|
+
symbol_name: string;
|
|
49
|
+
symbol_icon: string;
|
|
50
|
+
symbol_description: string;
|
|
51
|
+
symbol_force: number;
|
|
52
|
+
symbol_level: number;
|
|
53
|
+
symbol_str: number;
|
|
54
|
+
symbol_dex: number;
|
|
55
|
+
symbol_int: number;
|
|
56
|
+
symbol_luk: number;
|
|
57
|
+
symbol_hp: number;
|
|
58
|
+
symbol_drop_rate: string;
|
|
59
|
+
symbol_meso_rate: string;
|
|
60
|
+
symbol_exp_rate: string;
|
|
61
|
+
symbol_growth_count: number;
|
|
62
|
+
symbol_require_growth_count: number;
|
|
63
|
+
}
|
|
64
|
+
export interface StatInfo {
|
|
65
|
+
date: string;
|
|
66
|
+
character_class: CharacterClass;
|
|
67
|
+
final_stat: Stat[];
|
|
68
|
+
remain_ap: number;
|
|
69
|
+
}
|
|
70
|
+
export interface Stat {
|
|
71
|
+
stat_name: string;
|
|
72
|
+
stat_value: number;
|
|
73
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ruvice/my-maple-models",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared models and utils for MapleStory Nexon Open API",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"clean": "rm -rf dist"
|
|
10
|
+
},
|
|
11
|
+
"keywords": ["maplestory", "models", "types", "Nexon Open API"],
|
|
12
|
+
"author": "Andrew Wee",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"typescript": "^5.0.0"
|
|
22
|
+
}
|
|
23
|
+
}
|