@wfcd/profile-parser 2.0.10 → 2.0.12
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/Ability.d.mts +18 -1
- package/dist/Ability.mjs +23 -1
- package/dist/ChallengeProgress.d.mts +19 -1
- package/dist/ChallengeProgress.mjs +24 -1
- package/dist/Enemy.d.mts +43 -1
- package/dist/Enemy.mjs +42 -1
- package/dist/Intrinsics.d.mts +66 -1
- package/dist/Intrinsics.mjs +65 -1
- package/dist/ItemConfig.d.mts +50 -3
- package/dist/ItemConfig.mjs +48 -3
- package/dist/LoadOutInventory.d.mts +52 -7
- package/dist/LoadOutInventory.mjs +50 -7
- package/dist/LoadOutItem.d.mts +119 -5
- package/dist/LoadOutItem.mjs +125 -5
- package/dist/LoadOutPreset.d.mts +82 -1
- package/dist/LoadOutPreset.mjs +81 -2
- package/dist/Mission.d.mts +52 -1
- package/dist/Mission.mjs +53 -1
- package/dist/OperatorLoadOuts.d.mts +80 -3
- package/dist/OperatorLoadOuts.mjs +74 -3
- package/dist/Polarity.d.mts +25 -1
- package/dist/Polarity.mjs +26 -1
- package/dist/Profile.d.mts +211 -14
- package/dist/Profile.mjs +191 -14
- package/dist/ProfileParser.d.mts +7 -25
- package/dist/ProfileParser.mjs +4 -23
- package/dist/Pvp.d.mts +35 -1
- package/dist/Pvp.mjs +34 -1
- package/dist/Race.d.mts +31 -1
- package/dist/Race.mjs +33 -1
- package/dist/Scan.d.mts +26 -1
- package/dist/Scan.mjs +25 -1
- package/dist/Skin.d.mts +27 -1
- package/dist/Skin.mjs +34 -2
- package/dist/Stats.d.mts +324 -8
- package/dist/Stats.mjs +303 -8
- package/dist/Syndicate.d.mts +32 -1
- package/dist/Syndicate.mjs +31 -1
- package/dist/Utils.d.mts +35 -1
- package/dist/Utils.mjs +58 -1
- package/dist/Weapon.d.mts +31 -1
- package/dist/Weapon.mjs +62 -1
- package/dist/XpInfo.d.mts +33 -1
- package/dist/XpInfo.mjs +33 -2
- package/package.json +10 -11
- package/dist/Ability-Bkn1Kr0F.d.mts +0 -19
- package/dist/Ability-DsyqxzjP.mjs +0 -25
- package/dist/ChallengeProgress-ByYNDHWY.d.mts +0 -20
- package/dist/ChallengeProgress-Cpks92At.mjs +0 -26
- package/dist/Enemy-B3JSksZZ.mjs +0 -44
- package/dist/Enemy-VT_y6RNw.d.mts +0 -44
- package/dist/Intrinsics-aQNZre3S.d.mts +0 -67
- package/dist/Intrinsics-kYw_LPq1.mjs +0 -67
- package/dist/ItemConfig-DTIrA_P_.mjs +0 -50
- package/dist/ItemConfig-R2z1Z3uo.d.mts +0 -51
- package/dist/LoadOutInventory-BbaIazHX.mjs +0 -52
- package/dist/LoadOutInventory-BtVQX9Mi.d.mts +0 -53
- package/dist/LoadOutItem-p-f5RdTB.mjs +0 -127
- package/dist/LoadOutItem-weow3bab.d.mts +0 -120
- package/dist/LoadOutPreset-CwbK2VvR.mjs +0 -83
- package/dist/LoadOutPreset-Dvs-Zisw.d.mts +0 -83
- package/dist/Mission-Bkx_g_to.d.mts +0 -53
- package/dist/Mission-DfGQMV7B.mjs +0 -55
- package/dist/OperatorLoadOuts-DtxjrIci.d.mts +0 -75
- package/dist/OperatorLoadOuts-LYGpTHuj.mjs +0 -76
- package/dist/Polarity-0fJe_D8l.d.mts +0 -26
- package/dist/Polarity-Q2JfovbR.mjs +0 -28
- package/dist/Profile-Beptm6wY.d.mts +0 -212
- package/dist/Profile-D15zUqzG.mjs +0 -193
- package/dist/Pvp-DtncK80C.d.mts +0 -36
- package/dist/Pvp-DwOk9iPM.mjs +0 -36
- package/dist/Race-CV98F8P6.mjs +0 -35
- package/dist/Race-b-1i8d0Y.d.mts +0 -32
- package/dist/Scan-2TQmEr2X.d.mts +0 -27
- package/dist/Scan-Du5aj7LZ.mjs +0 -27
- package/dist/Skin-CqeNtCDU.d.mts +0 -28
- package/dist/Skin-D_brWp2g.mjs +0 -36
- package/dist/Stats-Bvzk1GOV.mjs +0 -305
- package/dist/Stats-D8GkxqWB.d.mts +0 -325
- package/dist/Syndicate-CcRnzmZs.mjs +0 -33
- package/dist/Syndicate-PiVz8ikQ.d.mts +0 -33
- package/dist/Utils-Bqm2Gg1K.mjs +0 -59
- package/dist/Utils-M8z7sZIf.d.mts +0 -37
- package/dist/Weapon-CUoF9mPh.d.mts +0 -32
- package/dist/Weapon-zRX33-22.mjs +0 -64
- package/dist/XpInfo-CpwSvxlR.d.mts +0 -34
- package/dist/XpInfo-IT6LOTzI.mjs +0 -35
package/dist/Profile.d.mts
CHANGED
|
@@ -1,15 +1,212 @@
|
|
|
1
|
-
import "./ChallengeProgress
|
|
2
|
-
import "./Intrinsics
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import ChallengeProgress, { RawChallengeProgress } from "./ChallengeProgress.mjs";
|
|
2
|
+
import Intrinsics, { RawIntrinsics } from "./Intrinsics.mjs";
|
|
3
|
+
import { RawDate, RawId } from "./Utils.mjs";
|
|
4
|
+
import LoadOutInventory, { RawLoadOut } from "./LoadOutInventory.mjs";
|
|
5
|
+
import LoadOutPreset, { RawLoadOutPreset } from "./LoadOutPreset.mjs";
|
|
6
|
+
import Mission, { RawMission } from "./Mission.mjs";
|
|
7
|
+
import OperatorLoadOuts, { RawOperatorLoadOuts } from "./OperatorLoadOuts.mjs";
|
|
8
|
+
import Syndicate, { RawAffiliation } from "./Syndicate.mjs";
|
|
9
|
+
import { Locale } from "warframe-worldstate-data";
|
|
10
|
+
|
|
11
|
+
//#region src/Profile.d.ts
|
|
12
|
+
interface RawProfile {
|
|
13
|
+
AccountId: {
|
|
14
|
+
$oid: string;
|
|
15
|
+
};
|
|
16
|
+
DisplayName: string;
|
|
17
|
+
PlatformNames?: string[];
|
|
18
|
+
PlayerLevel: number;
|
|
19
|
+
LoadOutPreset: RawLoadOutPreset;
|
|
20
|
+
LoadOutInventory: RawLoadOut;
|
|
21
|
+
PlayerSkills: RawIntrinsics;
|
|
22
|
+
ChallengeProgress: RawChallengeProgress[];
|
|
23
|
+
GuildId: RawId;
|
|
24
|
+
GuildName: string;
|
|
25
|
+
GuildTier: number;
|
|
26
|
+
GuildXp: number;
|
|
27
|
+
GuildClass: number;
|
|
28
|
+
GuildEmblem: boolean;
|
|
29
|
+
AllianceId?: RawId;
|
|
30
|
+
DeathMarks: string[];
|
|
31
|
+
Harvestable: boolean;
|
|
32
|
+
DeathSquadable: boolean;
|
|
33
|
+
Created: RawDate;
|
|
34
|
+
MigratedToConsole: boolean;
|
|
35
|
+
Missions: RawMission[];
|
|
36
|
+
Affiliations: RawAffiliation[];
|
|
37
|
+
DailyAffiliation: number;
|
|
38
|
+
DailyAffiliationPvp?: number;
|
|
39
|
+
DailyAffiliationLibrary?: number;
|
|
40
|
+
DailyAffiliationCetus?: number;
|
|
41
|
+
DailyAffiliationQuills?: number;
|
|
42
|
+
DailyAffiliationSolaris?: number;
|
|
43
|
+
DailyAffiliationVentkids?: number;
|
|
44
|
+
DailyAffiliationVox?: number;
|
|
45
|
+
DailyAffiliationEntrati?: number;
|
|
46
|
+
DailyAffiliationNecraloid?: number;
|
|
47
|
+
DailyAffiliationZariman?: number;
|
|
48
|
+
DailyAffiliationKahl?: number;
|
|
49
|
+
DailyAffiliationCavia?: number;
|
|
50
|
+
DailyAffiliationHex?: number;
|
|
51
|
+
DailyFocus?: number;
|
|
52
|
+
Wishlist?: string[];
|
|
53
|
+
UnlockedOperator: boolean;
|
|
54
|
+
UnlockedAlignment: boolean;
|
|
55
|
+
OperatorLoadOuts: RawOperatorLoadOuts[];
|
|
56
|
+
Alignment: {
|
|
57
|
+
Wisdom: number;
|
|
58
|
+
Alignment: number;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A player's profile
|
|
63
|
+
* @module
|
|
64
|
+
*/
|
|
65
|
+
declare class Profile {
|
|
66
|
+
/**
|
|
67
|
+
* Player's account ID
|
|
68
|
+
*/
|
|
69
|
+
accountId: string;
|
|
70
|
+
/**
|
|
71
|
+
* In-game name
|
|
72
|
+
*/
|
|
73
|
+
displayName: string;
|
|
74
|
+
/**
|
|
75
|
+
* List of usernames across supported platforms
|
|
76
|
+
*/
|
|
77
|
+
platformNames: string[];
|
|
78
|
+
/**
|
|
79
|
+
* Mastery rank
|
|
80
|
+
*/
|
|
81
|
+
masteryRank: number;
|
|
82
|
+
/**
|
|
83
|
+
* Load out preset equipped
|
|
84
|
+
*/
|
|
85
|
+
preset?: LoadOutPreset;
|
|
86
|
+
/**
|
|
87
|
+
* Current loadout
|
|
88
|
+
*/
|
|
89
|
+
loadout: LoadOutInventory;
|
|
90
|
+
/**
|
|
91
|
+
* Railjack and drifter Intrinsics
|
|
92
|
+
*/
|
|
93
|
+
intrinsics?: Intrinsics;
|
|
94
|
+
/**
|
|
95
|
+
* Nightwave challenges progress
|
|
96
|
+
*/
|
|
97
|
+
challengeProgress: ChallengeProgress[];
|
|
98
|
+
/**
|
|
99
|
+
* Guild ID
|
|
100
|
+
*/
|
|
101
|
+
guildId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Guild name
|
|
104
|
+
*/
|
|
105
|
+
guildName?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Guild tier
|
|
108
|
+
*/
|
|
109
|
+
guildTier?: number;
|
|
110
|
+
/**
|
|
111
|
+
* Guild XP
|
|
112
|
+
*/
|
|
113
|
+
guildXp?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Guild class
|
|
116
|
+
*/
|
|
117
|
+
guildClass?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Guild emblem.
|
|
120
|
+
*/
|
|
121
|
+
guildEmblem: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Alliance ID
|
|
124
|
+
*/
|
|
125
|
+
allianceId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Assassins currently asfter the player
|
|
128
|
+
*/
|
|
129
|
+
deathMarks: string[];
|
|
130
|
+
/**
|
|
131
|
+
* Whether or not the player is qualified as a target for Zanuka
|
|
132
|
+
* @type {boolean}
|
|
133
|
+
*/
|
|
134
|
+
harvestable: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Whether or not the player is qualified as a target for a syndicate death squad
|
|
137
|
+
*/
|
|
138
|
+
deathSquadable: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Date the account was created
|
|
141
|
+
*/
|
|
142
|
+
created: Date;
|
|
143
|
+
/**
|
|
144
|
+
* Whether the user has migrated to console or not
|
|
145
|
+
*/
|
|
146
|
+
migratedToConsole: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* List of completed missions and their completions
|
|
149
|
+
*/
|
|
150
|
+
missions: Mission[];
|
|
151
|
+
/**
|
|
152
|
+
* Player standing and title across all syndicates
|
|
153
|
+
*/
|
|
154
|
+
syndicates?: Syndicate[];
|
|
155
|
+
/**
|
|
156
|
+
* Daily standing per Syndicate
|
|
157
|
+
*
|
|
158
|
+
* Faction syndicates all share daily standing
|
|
159
|
+
*/
|
|
160
|
+
dailyStanding: {
|
|
161
|
+
daily: number;
|
|
162
|
+
conclave?: number;
|
|
163
|
+
simaris?: number;
|
|
164
|
+
ostron?: number;
|
|
165
|
+
quills?: number;
|
|
166
|
+
solaris?: number;
|
|
167
|
+
ventKids?: number;
|
|
168
|
+
voxSolaris?: number;
|
|
169
|
+
entrati?: number;
|
|
170
|
+
necraloid?: number;
|
|
171
|
+
holdfasts?: number;
|
|
172
|
+
kahl?: number;
|
|
173
|
+
cavia?: number;
|
|
174
|
+
hex?: number;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Daily focus
|
|
178
|
+
*/
|
|
179
|
+
dailyFocus?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Player wishlist for in-game market items
|
|
182
|
+
*/
|
|
183
|
+
wishList?: string[];
|
|
184
|
+
/**
|
|
185
|
+
* Whether the player has unlocked their operator or not
|
|
186
|
+
*/
|
|
187
|
+
unlockedOperator: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Whether the player has unlocked their alignment or not
|
|
190
|
+
*/
|
|
191
|
+
unlockedAlignment: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Operator loadout
|
|
194
|
+
*/
|
|
195
|
+
operatorLoadouts?: OperatorLoadOuts[];
|
|
196
|
+
/**
|
|
197
|
+
* Player's alignment
|
|
198
|
+
*/
|
|
199
|
+
alignment?: {
|
|
200
|
+
wisdom: number;
|
|
201
|
+
alignment: number;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @param profile The profile data to parse
|
|
206
|
+
* @param locale The locale to return in where possible
|
|
207
|
+
* @param withItem Whether or not to include items
|
|
208
|
+
*/
|
|
209
|
+
constructor(profile: RawProfile, locale?: Locale, withItem?: boolean);
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
15
212
|
export { RawProfile, Profile as default };
|
package/dist/Profile.mjs
CHANGED
|
@@ -1,16 +1,193 @@
|
|
|
1
|
-
import "./ChallengeProgress
|
|
2
|
-
import "./Intrinsics
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "
|
|
9
|
-
import "./LoadOutInventory-BbaIazHX.mjs";
|
|
10
|
-
import "./LoadOutPreset-CwbK2VvR.mjs";
|
|
11
|
-
import "./Mission-DfGQMV7B.mjs";
|
|
12
|
-
import "./OperatorLoadOuts-LYGpTHuj.mjs";
|
|
13
|
-
import "./Syndicate-CcRnzmZs.mjs";
|
|
14
|
-
import { t as Profile } from "./Profile-D15zUqzG.mjs";
|
|
1
|
+
import ChallengeProgress from "./ChallengeProgress.mjs";
|
|
2
|
+
import Intrinsics from "./Intrinsics.mjs";
|
|
3
|
+
import LoadOutInventory from "./LoadOutInventory.mjs";
|
|
4
|
+
import LoadOutPreset from "./LoadOutPreset.mjs";
|
|
5
|
+
import Mission from "./Mission.mjs";
|
|
6
|
+
import OperatorLoadOuts from "./OperatorLoadOuts.mjs";
|
|
7
|
+
import Syndicate from "./Syndicate.mjs";
|
|
8
|
+
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
15
9
|
|
|
10
|
+
//#region src/Profile.ts
|
|
11
|
+
/**
|
|
12
|
+
* A player's profile
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
var Profile = class {
|
|
16
|
+
/**
|
|
17
|
+
* Player's account ID
|
|
18
|
+
*/
|
|
19
|
+
accountId;
|
|
20
|
+
/**
|
|
21
|
+
* In-game name
|
|
22
|
+
*/
|
|
23
|
+
displayName;
|
|
24
|
+
/**
|
|
25
|
+
* List of usernames across supported platforms
|
|
26
|
+
*/
|
|
27
|
+
platformNames;
|
|
28
|
+
/**
|
|
29
|
+
* Mastery rank
|
|
30
|
+
*/
|
|
31
|
+
masteryRank;
|
|
32
|
+
/**
|
|
33
|
+
* Load out preset equipped
|
|
34
|
+
*/
|
|
35
|
+
preset;
|
|
36
|
+
/**
|
|
37
|
+
* Current loadout
|
|
38
|
+
*/
|
|
39
|
+
loadout;
|
|
40
|
+
/**
|
|
41
|
+
* Railjack and drifter Intrinsics
|
|
42
|
+
*/
|
|
43
|
+
intrinsics;
|
|
44
|
+
/**
|
|
45
|
+
* Nightwave challenges progress
|
|
46
|
+
*/
|
|
47
|
+
challengeProgress;
|
|
48
|
+
/**
|
|
49
|
+
* Guild ID
|
|
50
|
+
*/
|
|
51
|
+
guildId;
|
|
52
|
+
/**
|
|
53
|
+
* Guild name
|
|
54
|
+
*/
|
|
55
|
+
guildName;
|
|
56
|
+
/**
|
|
57
|
+
* Guild tier
|
|
58
|
+
*/
|
|
59
|
+
guildTier;
|
|
60
|
+
/**
|
|
61
|
+
* Guild XP
|
|
62
|
+
*/
|
|
63
|
+
guildXp;
|
|
64
|
+
/**
|
|
65
|
+
* Guild class
|
|
66
|
+
*/
|
|
67
|
+
guildClass;
|
|
68
|
+
/**
|
|
69
|
+
* Guild emblem.
|
|
70
|
+
*/
|
|
71
|
+
guildEmblem;
|
|
72
|
+
/**
|
|
73
|
+
* Alliance ID
|
|
74
|
+
*/
|
|
75
|
+
allianceId;
|
|
76
|
+
/**
|
|
77
|
+
* Assassins currently asfter the player
|
|
78
|
+
*/
|
|
79
|
+
deathMarks;
|
|
80
|
+
/**
|
|
81
|
+
* Whether or not the player is qualified as a target for Zanuka
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
*/
|
|
84
|
+
harvestable;
|
|
85
|
+
/**
|
|
86
|
+
* Whether or not the player is qualified as a target for a syndicate death squad
|
|
87
|
+
*/
|
|
88
|
+
deathSquadable;
|
|
89
|
+
/**
|
|
90
|
+
* Date the account was created
|
|
91
|
+
*/
|
|
92
|
+
created;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the user has migrated to console or not
|
|
95
|
+
*/
|
|
96
|
+
migratedToConsole;
|
|
97
|
+
/**
|
|
98
|
+
* List of completed missions and their completions
|
|
99
|
+
*/
|
|
100
|
+
missions;
|
|
101
|
+
/**
|
|
102
|
+
* Player standing and title across all syndicates
|
|
103
|
+
*/
|
|
104
|
+
syndicates;
|
|
105
|
+
/**
|
|
106
|
+
* Daily standing per Syndicate
|
|
107
|
+
*
|
|
108
|
+
* Faction syndicates all share daily standing
|
|
109
|
+
*/
|
|
110
|
+
dailyStanding;
|
|
111
|
+
/**
|
|
112
|
+
* Daily focus
|
|
113
|
+
*/
|
|
114
|
+
dailyFocus;
|
|
115
|
+
/**
|
|
116
|
+
* Player wishlist for in-game market items
|
|
117
|
+
*/
|
|
118
|
+
wishList;
|
|
119
|
+
/**
|
|
120
|
+
* Whether the player has unlocked their operator or not
|
|
121
|
+
*/
|
|
122
|
+
unlockedOperator;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the player has unlocked their alignment or not
|
|
125
|
+
*/
|
|
126
|
+
unlockedAlignment;
|
|
127
|
+
/**
|
|
128
|
+
* Operator loadout
|
|
129
|
+
*/
|
|
130
|
+
operatorLoadouts;
|
|
131
|
+
/**
|
|
132
|
+
* Player's alignment
|
|
133
|
+
*/
|
|
134
|
+
alignment;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @param profile The profile data to parse
|
|
138
|
+
* @param locale The locale to return in where possible
|
|
139
|
+
* @param withItem Whether or not to include items
|
|
140
|
+
*/
|
|
141
|
+
constructor(profile, locale = "en", withItem = false) {
|
|
142
|
+
this.accountId = profile.AccountId.$oid;
|
|
143
|
+
this.displayName = profile.DisplayName;
|
|
144
|
+
this.platformNames = profile.PlatformNames ?? [];
|
|
145
|
+
this.masteryRank = profile.PlayerLevel;
|
|
146
|
+
if (profile.LoadOutPreset) this.preset = new LoadOutPreset(profile.LoadOutPreset);
|
|
147
|
+
this.loadout = new LoadOutInventory(profile.LoadOutInventory, locale, withItem);
|
|
148
|
+
this.intrinsics = new Intrinsics(profile.PlayerSkills ?? {});
|
|
149
|
+
this.challengeProgress = profile.ChallengeProgress.map((c) => new ChallengeProgress(c));
|
|
150
|
+
if (profile.GuildId?.$oid) this.guildId = profile.GuildId.$oid;
|
|
151
|
+
this.guildName = profile.GuildName;
|
|
152
|
+
this.guildTier = profile.GuildTier;
|
|
153
|
+
this.guildXp = profile.GuildXp;
|
|
154
|
+
this.guildClass = profile.GuildClass;
|
|
155
|
+
this.guildEmblem = profile.GuildEmblem;
|
|
156
|
+
if (profile.AllianceId) this.allianceId = profile.AllianceId.$oid;
|
|
157
|
+
this.deathMarks = profile.DeathMarks;
|
|
158
|
+
this.harvestable = profile.Harvestable;
|
|
159
|
+
this.deathSquadable = profile.DeathSquadable;
|
|
160
|
+
this.created = parseDate(profile.Created);
|
|
161
|
+
this.migratedToConsole = profile.MigratedToConsole;
|
|
162
|
+
this.missions = profile.Missions.map((m) => new Mission(m, locale));
|
|
163
|
+
this.syndicates = profile.Affiliations?.map((a) => new Syndicate(a, locale)) ?? [];
|
|
164
|
+
this.dailyStanding = {
|
|
165
|
+
daily: profile.DailyAffiliation,
|
|
166
|
+
conclave: profile.DailyAffiliationPvp,
|
|
167
|
+
simaris: profile.DailyAffiliationLibrary,
|
|
168
|
+
ostron: profile.DailyAffiliationCetus,
|
|
169
|
+
quills: profile.DailyAffiliationQuills,
|
|
170
|
+
solaris: profile.DailyAffiliationSolaris,
|
|
171
|
+
ventKids: profile.DailyAffiliationVentkids,
|
|
172
|
+
voxSolaris: profile.DailyAffiliationVox,
|
|
173
|
+
entrati: profile.DailyAffiliationEntrati,
|
|
174
|
+
necraloid: profile.DailyAffiliationNecraloid,
|
|
175
|
+
holdfasts: profile.DailyAffiliationZariman,
|
|
176
|
+
kahl: profile.DailyAffiliationKahl,
|
|
177
|
+
cavia: profile.DailyAffiliationCavia,
|
|
178
|
+
hex: profile.DailyAffiliationHex
|
|
179
|
+
};
|
|
180
|
+
this.dailyFocus = profile.DailyFocus;
|
|
181
|
+
this.wishList = profile.Wishlist;
|
|
182
|
+
this.unlockedOperator = profile.UnlockedOperator;
|
|
183
|
+
this.unlockedAlignment = profile.UnlockedAlignment;
|
|
184
|
+
this.operatorLoadouts = profile.OperatorLoadOuts?.map((ol) => new OperatorLoadOuts(ol, locale));
|
|
185
|
+
if (profile.Alignment) this.alignment = {
|
|
186
|
+
wisdom: profile.Alignment?.Wisdom,
|
|
187
|
+
alignment: profile.Alignment?.Alignment
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
//#endregion
|
|
16
193
|
export { Profile as default };
|
package/dist/ProfileParser.d.mts
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./Intrinsics-aQNZre3S.mjs";
|
|
5
|
-
import "./Skin-CqeNtCDU.mjs";
|
|
6
|
-
import { n as RawDate } from "./Utils-M8z7sZIf.mjs";
|
|
7
|
-
import "./ItemConfig-R2z1Z3uo.mjs";
|
|
8
|
-
import "./Polarity-0fJe_D8l.mjs";
|
|
9
|
-
import "./LoadOutItem-weow3bab.mjs";
|
|
10
|
-
import "./XpInfo-CpwSvxlR.mjs";
|
|
11
|
-
import "./LoadOutInventory-BtVQX9Mi.mjs";
|
|
12
|
-
import "./LoadOutPreset-Dvs-Zisw.mjs";
|
|
13
|
-
import "./Mission-Bkx_g_to.mjs";
|
|
14
|
-
import "./OperatorLoadOuts-DtxjrIci.mjs";
|
|
15
|
-
import "./Syndicate-PiVz8ikQ.mjs";
|
|
16
|
-
import { n as RawProfile, t as Profile } from "./Profile-Beptm6wY.mjs";
|
|
17
|
-
import "./Pvp-DtncK80C.mjs";
|
|
18
|
-
import "./Race-b-1i8d0Y.mjs";
|
|
19
|
-
import "./Scan-2TQmEr2X.mjs";
|
|
20
|
-
import "./Weapon-CUoF9mPh.mjs";
|
|
21
|
-
import { n as Stats, t as RawStats } from "./Stats-D8GkxqWB.mjs";
|
|
1
|
+
import { RawDate } from "./Utils.mjs";
|
|
2
|
+
import Profile, { RawProfile } from "./Profile.mjs";
|
|
3
|
+
import Stats, { RawStats } from "./Stats.mjs";
|
|
22
4
|
import { Locale } from "warframe-worldstate-data";
|
|
23
5
|
|
|
24
6
|
//#region src/ProfileParser.d.ts
|
|
25
7
|
interface ProfileData {
|
|
26
8
|
Results: RawProfile[];
|
|
27
|
-
TechProjects?:
|
|
28
|
-
|
|
9
|
+
TechProjects?: Array<object>;
|
|
10
|
+
XpComponents?: Array<object>;
|
|
29
11
|
XpCacheExpiryDate?: RawDate;
|
|
30
12
|
CeremonyResetDate?: RawDate;
|
|
31
13
|
Stats: RawStats;
|
|
@@ -42,11 +24,11 @@ declare class ProfileParser {
|
|
|
42
24
|
/**
|
|
43
25
|
* N/A
|
|
44
26
|
*/
|
|
45
|
-
techProjects:
|
|
27
|
+
techProjects: Array<object>;
|
|
46
28
|
/**
|
|
47
29
|
* N/A
|
|
48
30
|
*/
|
|
49
|
-
xpComponents:
|
|
31
|
+
xpComponents: Array<object>;
|
|
50
32
|
/**
|
|
51
33
|
* N/A
|
|
52
34
|
*/
|
package/dist/ProfileParser.mjs
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./Enemy-B3JSksZZ.mjs";
|
|
4
|
-
import "./Intrinsics-kYw_LPq1.mjs";
|
|
5
|
-
import "./Utils-Bqm2Gg1K.mjs";
|
|
6
|
-
import "./Skin-D_brWp2g.mjs";
|
|
7
|
-
import "./ItemConfig-DTIrA_P_.mjs";
|
|
8
|
-
import "./Polarity-Q2JfovbR.mjs";
|
|
9
|
-
import "./LoadOutItem-p-f5RdTB.mjs";
|
|
10
|
-
import "./XpInfo-IT6LOTzI.mjs";
|
|
11
|
-
import "./LoadOutInventory-BbaIazHX.mjs";
|
|
12
|
-
import "./LoadOutPreset-CwbK2VvR.mjs";
|
|
13
|
-
import "./Mission-DfGQMV7B.mjs";
|
|
14
|
-
import "./OperatorLoadOuts-LYGpTHuj.mjs";
|
|
15
|
-
import "./Syndicate-CcRnzmZs.mjs";
|
|
16
|
-
import { t as Profile } from "./Profile-D15zUqzG.mjs";
|
|
17
|
-
import "./Pvp-DwOk9iPM.mjs";
|
|
18
|
-
import "./Race-CV98F8P6.mjs";
|
|
19
|
-
import "./Scan-Du5aj7LZ.mjs";
|
|
20
|
-
import "./Weapon-zRX33-22.mjs";
|
|
21
|
-
import { t as Stats } from "./Stats-Bvzk1GOV.mjs";
|
|
1
|
+
import Profile from "./Profile.mjs";
|
|
2
|
+
import Stats from "./Stats.mjs";
|
|
22
3
|
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
23
4
|
|
|
24
5
|
//#region src/ProfileParser.ts
|
|
@@ -59,8 +40,8 @@ var ProfileParser = class {
|
|
|
59
40
|
*/
|
|
60
41
|
constructor(data, locale = "en", withItem = false) {
|
|
61
42
|
this.profile = new Profile(data.Results[0], locale, withItem);
|
|
62
|
-
this.techProjects = data.TechProjects;
|
|
63
|
-
this.xpComponents = data.
|
|
43
|
+
this.techProjects = data.TechProjects ?? [];
|
|
44
|
+
this.xpComponents = data.XpComponents ?? [];
|
|
64
45
|
this.xpCacheExpiryDate = parseDate(data.XpCacheExpiryDate);
|
|
65
46
|
this.ceremonyResetDate = parseDate(data.CeremonyResetDate);
|
|
66
47
|
this.stats = new Stats(data.Stats);
|
package/dist/Pvp.d.mts
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Pvp.d.ts
|
|
2
|
+
interface RawPvp {
|
|
3
|
+
type: string;
|
|
4
|
+
suitDeaths?: number;
|
|
5
|
+
suitKills?: number;
|
|
6
|
+
weaponKills?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Player's conclave stats
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
declare class Pvp {
|
|
13
|
+
/**
|
|
14
|
+
* PVP match unique name
|
|
15
|
+
*/
|
|
16
|
+
uniqueName: string;
|
|
17
|
+
/**
|
|
18
|
+
* Deaths for this match
|
|
19
|
+
*/
|
|
20
|
+
warframeDeaths?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Warframe kills
|
|
23
|
+
*/
|
|
24
|
+
warframeKills?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Weapon killes
|
|
27
|
+
*/
|
|
28
|
+
weaponKills?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} pvp PVP data to parse
|
|
32
|
+
*/
|
|
33
|
+
constructor(pvp: RawPvp);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
2
36
|
export { RawPvp, Pvp as default };
|
package/dist/Pvp.mjs
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Pvp.ts
|
|
2
|
+
/**
|
|
3
|
+
* Player's conclave stats
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
var Pvp = class {
|
|
7
|
+
/**
|
|
8
|
+
* PVP match unique name
|
|
9
|
+
*/
|
|
10
|
+
uniqueName;
|
|
11
|
+
/**
|
|
12
|
+
* Deaths for this match
|
|
13
|
+
*/
|
|
14
|
+
warframeDeaths;
|
|
15
|
+
/**
|
|
16
|
+
* Warframe kills
|
|
17
|
+
*/
|
|
18
|
+
warframeKills;
|
|
19
|
+
/**
|
|
20
|
+
* Weapon killes
|
|
21
|
+
*/
|
|
22
|
+
weaponKills;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} pvp PVP data to parse
|
|
26
|
+
*/
|
|
27
|
+
constructor(pvp) {
|
|
28
|
+
this.uniqueName = pvp.type;
|
|
29
|
+
this.warframeDeaths = pvp.suitDeaths;
|
|
30
|
+
this.warframeKills = pvp.suitKills;
|
|
31
|
+
this.weaponKills = pvp.weaponKills;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
2
34
|
|
|
35
|
+
//#endregion
|
|
3
36
|
export { Pvp as default };
|
package/dist/Race.d.mts
CHANGED
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Race.d.ts
|
|
2
|
+
type RawRace = Record<string, {
|
|
3
|
+
highScore: number;
|
|
4
|
+
}>;
|
|
5
|
+
/**
|
|
6
|
+
* Represents a k-drive race
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
declare class Race {
|
|
10
|
+
/**
|
|
11
|
+
* Race name
|
|
12
|
+
*/
|
|
13
|
+
uniqueName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Race High score
|
|
16
|
+
*/
|
|
17
|
+
highScore: number;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param type Race name
|
|
21
|
+
* @param highScore high score
|
|
22
|
+
*/
|
|
23
|
+
constructor(type: string, highScore: number);
|
|
24
|
+
/**
|
|
25
|
+
* Created an array of Race objects from DE's Races array
|
|
26
|
+
* @param races Array of races
|
|
27
|
+
* @returns {Race[]} An array of races formatted in a more consumable way.
|
|
28
|
+
*/
|
|
29
|
+
static fromRaceObject(races: RawRace): Race[];
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
2
32
|
export { RawRace, Race as default };
|
package/dist/Race.mjs
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Race.ts
|
|
2
|
+
/**
|
|
3
|
+
* Represents a k-drive race
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
var Race = class Race {
|
|
7
|
+
/**
|
|
8
|
+
* Race name
|
|
9
|
+
*/
|
|
10
|
+
uniqueName;
|
|
11
|
+
/**
|
|
12
|
+
* Race High score
|
|
13
|
+
*/
|
|
14
|
+
highScore;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param type Race name
|
|
18
|
+
* @param highScore high score
|
|
19
|
+
*/
|
|
20
|
+
constructor(type, highScore) {
|
|
21
|
+
this.uniqueName = type;
|
|
22
|
+
this.highScore = highScore;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Created an array of Race objects from DE's Races array
|
|
26
|
+
* @param races Array of races
|
|
27
|
+
* @returns {Race[]} An array of races formatted in a more consumable way.
|
|
28
|
+
*/
|
|
29
|
+
static fromRaceObject(races) {
|
|
30
|
+
return Object.entries(races ?? {}).map(([type, { highScore }]) => new Race(type, highScore));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
2
33
|
|
|
34
|
+
//#endregion
|
|
3
35
|
export { Race as default };
|
package/dist/Scan.d.mts
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/Scan.d.ts
|
|
2
|
+
interface RawScan {
|
|
3
|
+
type: string;
|
|
4
|
+
scans: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Represents an enemy scanned to the codex
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
declare class Scan {
|
|
11
|
+
/**
|
|
12
|
+
* Enemy unique name
|
|
13
|
+
* @type {String}
|
|
14
|
+
*/
|
|
15
|
+
uniqueName: string;
|
|
16
|
+
/**
|
|
17
|
+
* Number of scans done
|
|
18
|
+
* @type {number}
|
|
19
|
+
*/
|
|
20
|
+
scans: number;
|
|
21
|
+
/**
|
|
22
|
+
* @param {Object} scan The scanned Warframe object
|
|
23
|
+
*/
|
|
24
|
+
constructor(scan: RawScan);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
2
27
|
export { RawScan, Scan as default };
|