@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
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-ByYNDHWY.mjs";
|
|
2
|
-
import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-aQNZre3S.mjs";
|
|
3
|
-
import { n as RawDate, r as RawId } from "./Utils-M8z7sZIf.mjs";
|
|
4
|
-
import { n as RawLoadOut, t as LoadOutInventory } from "./LoadOutInventory-BtVQX9Mi.mjs";
|
|
5
|
-
import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-Dvs-Zisw.mjs";
|
|
6
|
-
import { n as RawMission, t as Mission } from "./Mission-Bkx_g_to.mjs";
|
|
7
|
-
import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-DtxjrIci.mjs";
|
|
8
|
-
import { n as Syndicate, t as RawAffiliation } from "./Syndicate-PiVz8ikQ.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?: any;
|
|
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: any;
|
|
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
|
|
212
|
-
export { RawProfile as n, Profile as t };
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { t as ChallengeProgress } from "./ChallengeProgress-Cpks92At.mjs";
|
|
2
|
-
import { t as Intrinsics } from "./Intrinsics-kYw_LPq1.mjs";
|
|
3
|
-
import { t as LoadOutInventory } from "./LoadOutInventory-BbaIazHX.mjs";
|
|
4
|
-
import { t as LoadOutPreset } from "./LoadOutPreset-CwbK2VvR.mjs";
|
|
5
|
-
import { t as Mission } from "./Mission-DfGQMV7B.mjs";
|
|
6
|
-
import { t as OperatorLoadOuts } from "./OperatorLoadOuts-LYGpTHuj.mjs";
|
|
7
|
-
import { t as Syndicate } from "./Syndicate-CcRnzmZs.mjs";
|
|
8
|
-
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
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
|
|
193
|
-
export { Profile as t };
|
package/dist/Pvp-DtncK80C.d.mts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
|
36
|
-
export { RawPvp as n, Pvp as t };
|
package/dist/Pvp-DwOk9iPM.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
};
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { Pvp as t };
|
package/dist/Race-CV98F8P6.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { Race as t };
|
package/dist/Race-b-1i8d0Y.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
32
|
-
export { RawRace as n, Race as t };
|
package/dist/Scan-2TQmEr2X.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
27
|
-
export { Scan as n, RawScan as t };
|
package/dist/Scan-Du5aj7LZ.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region src/Scan.ts
|
|
2
|
-
/**
|
|
3
|
-
* Represents an enemy scanned to the codex
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
var Scan = class {
|
|
7
|
-
/**
|
|
8
|
-
* Enemy unique name
|
|
9
|
-
* @type {String}
|
|
10
|
-
*/
|
|
11
|
-
uniqueName;
|
|
12
|
-
/**
|
|
13
|
-
* Number of scans done
|
|
14
|
-
* @type {number}
|
|
15
|
-
*/
|
|
16
|
-
scans;
|
|
17
|
-
/**
|
|
18
|
-
* @param {Object} scan The scanned Warframe object
|
|
19
|
-
*/
|
|
20
|
-
constructor(scan) {
|
|
21
|
-
this.uniqueName = scan.type;
|
|
22
|
-
this.scans = scan.scans;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { Scan as t };
|
package/dist/Skin-CqeNtCDU.d.mts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Item } from "@wfcd/items";
|
|
2
|
-
|
|
3
|
-
//#region src/Skin.d.ts
|
|
4
|
-
interface RawSkin {
|
|
5
|
-
ItemType: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A skin class
|
|
9
|
-
* @module
|
|
10
|
-
*/
|
|
11
|
-
declare class Skin {
|
|
12
|
-
uniqueName: string;
|
|
13
|
-
item?: Item;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @param skin The skin data to parse
|
|
17
|
-
* @param locale The locale to return skin item in
|
|
18
|
-
*/
|
|
19
|
-
constructor(skin: RawSkin, locale?: string);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Move to Skin, this is just here to not break anything for early users
|
|
23
|
-
* @param {Object} skin Skin object
|
|
24
|
-
* @returns {Skin} Skin object with possible item
|
|
25
|
-
*/
|
|
26
|
-
declare const WeaponSkin: (skin: RawSkin) => Skin;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { Skin as n, WeaponSkin as r, RawSkin as t };
|
package/dist/Skin-D_brWp2g.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { t as find } from "./Utils-Bqm2Gg1K.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/Skin.ts
|
|
4
|
-
/**
|
|
5
|
-
* A skin class
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
var Skin = class {
|
|
9
|
-
uniqueName;
|
|
10
|
-
item;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param skin The skin data to parse
|
|
14
|
-
* @param locale The locale to return skin item in
|
|
15
|
-
*/
|
|
16
|
-
constructor(skin, locale = "en") {
|
|
17
|
-
/**
|
|
18
|
-
* Unique name
|
|
19
|
-
*/
|
|
20
|
-
this.uniqueName = skin.ItemType;
|
|
21
|
-
const item = find(skin.ItemType, locale);
|
|
22
|
-
/**
|
|
23
|
-
* The Warframe item that matches the unique name
|
|
24
|
-
*/
|
|
25
|
-
if (item) this.item = item;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Move to Skin, this is just here to not break anything for early users
|
|
30
|
-
* @param {Object} skin Skin object
|
|
31
|
-
* @returns {Skin} Skin object with possible item
|
|
32
|
-
*/
|
|
33
|
-
const WeaponSkin = (skin) => new Skin(skin);
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { WeaponSkin as n, Skin as t };
|