@wfcd/profile-parser 1.5.0 → 2.0.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.
- package/dist/Ability-D1F1s_19.js +25 -0
- package/dist/Ability-DzKgEG5R.d.ts +19 -0
- package/dist/Ability.d.ts +2 -0
- package/dist/Ability.js +3 -0
- package/dist/ArchonCrystal.d.ts +23 -0
- package/dist/ArchonCrystal.js +29 -0
- package/dist/ChallengeProgress-B8Kv32oi.d.ts +20 -0
- package/dist/ChallengeProgress-DKKtijWw.js +26 -0
- package/dist/ChallengeProgress.d.ts +2 -0
- package/dist/ChallengeProgress.js +3 -0
- package/dist/Enemy-BqxhFdkB.js +44 -0
- package/dist/Enemy-toy1Spyi.d.ts +44 -0
- package/dist/Enemy.d.ts +2 -0
- package/dist/Enemy.js +3 -0
- package/dist/Intrinsics-CqFOpLxp.js +67 -0
- package/dist/Intrinsics-azrsOZJd.d.ts +67 -0
- package/dist/Intrinsics.d.ts +2 -0
- package/dist/Intrinsics.js +3 -0
- package/dist/ItemConfig-7as-gjPG.d.ts +51 -0
- package/dist/ItemConfig-uU36aJFJ.js +50 -0
- package/dist/ItemConfig.d.ts +4 -0
- package/dist/ItemConfig.js +5 -0
- package/dist/LoadOutInventory-BsPRtXfG.d.ts +53 -0
- package/dist/LoadOutInventory-CPVZJ_W5.js +52 -0
- package/dist/LoadOutInventory.d.ts +8 -0
- package/dist/LoadOutInventory.js +9 -0
- package/dist/LoadOutItem-B_6G9dXC.js +127 -0
- package/dist/LoadOutItem-BlRFZMNd.d.ts +120 -0
- package/dist/LoadOutItem.d.ts +6 -0
- package/dist/LoadOutItem.js +7 -0
- package/dist/LoadOutPreset-BshJF0LH.d.ts +83 -0
- package/dist/LoadOutPreset-CMbZo-II.js +83 -0
- package/dist/LoadOutPreset.d.ts +2 -0
- package/dist/LoadOutPreset.js +4 -0
- package/dist/Mission-BZgLMluh.d.ts +53 -0
- package/dist/Mission-D2n1i5R2.js +55 -0
- package/dist/Mission.d.ts +2 -0
- package/dist/Mission.js +3 -0
- package/dist/OperatorLoadOuts-B8bEy2dp.js +76 -0
- package/dist/OperatorLoadOuts-Dk2uMwby.d.ts +75 -0
- package/dist/OperatorLoadOuts.d.ts +4 -0
- package/dist/OperatorLoadOuts.js +5 -0
- package/dist/Polarity--RYq3iwF.js +28 -0
- package/dist/Polarity-DDWqEVm2.d.ts +26 -0
- package/dist/Polarity.d.ts +2 -0
- package/dist/Polarity.js +3 -0
- package/dist/Profile-WWZ2BDf0.js +193 -0
- package/dist/Profile-rva_Xss5.d.ts +212 -0
- package/dist/Profile.d.ts +15 -0
- package/dist/Profile.js +16 -0
- package/dist/ProfileParser.d.ts +71 -0
- package/dist/ProfileParser.js +71 -0
- package/dist/Pvp-Cb1KNKvw.d.ts +36 -0
- package/dist/Pvp-hyzYfVBB.js +36 -0
- package/dist/Pvp.d.ts +2 -0
- package/dist/Pvp.js +3 -0
- package/dist/Race-5Q0StEkE.js +35 -0
- package/dist/Race-DCxzjMpC.d.ts +32 -0
- package/dist/Race.d.ts +2 -0
- package/dist/Race.js +3 -0
- package/dist/Scan-BWfZiLoW.d.ts +27 -0
- package/dist/Scan-Dlrv6viG.js +27 -0
- package/dist/Scan.d.ts +2 -0
- package/dist/Scan.js +3 -0
- package/dist/Skin-BbUkegH1.d.ts +28 -0
- package/dist/Skin-D6v6jC9U.js +36 -0
- package/dist/Skin.d.ts +2 -0
- package/dist/Skin.js +4 -0
- package/dist/Stats-Bm1bpQe5.js +305 -0
- package/dist/Stats-DtkR2w1A.d.ts +325 -0
- package/dist/Stats.d.ts +9 -0
- package/dist/Stats.js +10 -0
- package/dist/Syndicate-CjUKKAsk.js +33 -0
- package/dist/Syndicate-FSUt1PP5.d.ts +33 -0
- package/dist/Syndicate.d.ts +2 -0
- package/dist/Syndicate.js +3 -0
- package/dist/Utils-C3kZCO6a.js +60 -0
- package/dist/Utils-C7BZqK4e.d.ts +37 -0
- package/dist/Utils.d.ts +2 -0
- package/dist/Utils.js +3 -0
- package/dist/Weapon-4KlXEHQF.js +64 -0
- package/dist/Weapon-DAJp-nbn.d.ts +32 -0
- package/dist/Weapon.d.ts +2 -0
- package/dist/Weapon.js +3 -0
- package/dist/XpInfo-CXC3I0NQ.js +35 -0
- package/dist/XpInfo-ChJ_lJaH.d.ts +34 -0
- package/dist/XpInfo.d.ts +2 -0
- package/dist/XpInfo.js +4 -0
- package/package.json +34 -32
- package/src/Ability.js +0 -22
- package/src/ArchonCrystal.js +0 -26
- package/src/ChallengeProgress.js +0 -23
- package/src/Enemy.js +0 -47
- package/src/Intrinsics.js +0 -77
- package/src/ItemConfig.js +0 -52
- package/src/LoadOutInventory.js +0 -53
- package/src/LoadOutItem.js +0 -155
- package/src/LoadOutPreset.js +0 -90
- package/src/Mission.js +0 -58
- package/src/OperatorLoadOuts.js +0 -77
- package/src/Polarity.js +0 -25
- package/src/Profile.js +0 -213
- package/src/ProfileParser.js +0 -50
- package/src/Pvp.js +0 -35
- package/src/Race.js +0 -33
- package/src/Scan.js +0 -22
- package/src/Skin.js +0 -33
- package/src/Stats.js +0 -340
- package/src/Syndicate.js +0 -34
- package/src/Utils.js +0 -66
- package/src/Weapon.js +0 -59
- package/src/XpInfo.js +0 -35
- package/types/Ability.d.ts +0 -20
- package/types/ArchonCrystal.d.ts +0 -22
- package/types/ChallengeProgress.d.ts +0 -21
- package/types/Enemy.d.ts +0 -41
- package/types/Intrinsics.d.ts +0 -66
- package/types/ItemConfig.d.ts +0 -21
- package/types/LoadOutInventory.d.ts +0 -45
- package/types/LoadOutItem.d.ts +0 -92
- package/types/LoadOutPreset.d.ts +0 -45
- package/types/Mission.d.ts +0 -35
- package/types/OperatorLoadOuts.d.ts +0 -35
- package/types/Polarity.d.ts +0 -21
- package/types/Profile.d.ts +0 -154
- package/types/ProfileParser.d.ts +0 -41
- package/types/Pvp.d.ts +0 -31
- package/types/Race.d.ts +0 -28
- package/types/Scan.d.ts +0 -20
- package/types/Skin.d.ts +0 -19
- package/types/Stats.d.ts +0 -255
- package/types/Syndicate.d.ts +0 -26
- package/types/Utils.d.ts +0 -3
- package/types/Weapon.d.ts +0 -51
- package/types/XpInfo.d.ts +0 -28
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { translatePolarity } from "warframe-worldstate-data/utilities";
|
|
2
|
+
|
|
3
|
+
//#region src/Polarity.ts
|
|
4
|
+
/**
|
|
5
|
+
* A polarity in a LoadOutItem
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
var Polarity = class {
|
|
9
|
+
/**
|
|
10
|
+
* Polarity name
|
|
11
|
+
*/
|
|
12
|
+
polarity;
|
|
13
|
+
/**
|
|
14
|
+
* Polarized slot
|
|
15
|
+
*/
|
|
16
|
+
slot;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param {Object} raw The polarity to parse
|
|
20
|
+
*/
|
|
21
|
+
constructor(raw) {
|
|
22
|
+
this.polarity = translatePolarity(raw.Value);
|
|
23
|
+
this.slot = raw.Slot;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Polarity };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/Polarity.d.ts
|
|
2
|
+
interface RawPolarity {
|
|
3
|
+
Value: string;
|
|
4
|
+
Slot: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A polarity in a LoadOutItem
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
declare class Polarity {
|
|
11
|
+
/**
|
|
12
|
+
* Polarity name
|
|
13
|
+
*/
|
|
14
|
+
polarity: string;
|
|
15
|
+
/**
|
|
16
|
+
* Polarized slot
|
|
17
|
+
*/
|
|
18
|
+
slot: number;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param {Object} raw The polarity to parse
|
|
22
|
+
*/
|
|
23
|
+
constructor(raw: RawPolarity);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Polarity, RawPolarity };
|
package/dist/Polarity.js
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { ChallengeProgress } from "./ChallengeProgress-DKKtijWw.js";
|
|
2
|
+
import { Intrinsics } from "./Intrinsics-CqFOpLxp.js";
|
|
3
|
+
import { LoadOutInventory } from "./LoadOutInventory-CPVZJ_W5.js";
|
|
4
|
+
import { LoadOutPreset } from "./LoadOutPreset-CMbZo-II.js";
|
|
5
|
+
import { Mission } from "./Mission-D2n1i5R2.js";
|
|
6
|
+
import { OperatorLoadOuts } from "./OperatorLoadOuts-B8bEy2dp.js";
|
|
7
|
+
import { Syndicate } from "./Syndicate-CjUKKAsk.js";
|
|
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 };
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { ChallengeProgress, RawChallengeProgress } from "./ChallengeProgress-B8Kv32oi.js";
|
|
2
|
+
import { Intrinsics, RawIntrinsics } from "./Intrinsics-azrsOZJd.js";
|
|
3
|
+
import { RawDate, RawId } from "./Utils-C7BZqK4e.js";
|
|
4
|
+
import { LoadOutInventory, RawLoadOut } from "./LoadOutInventory-BsPRtXfG.js";
|
|
5
|
+
import { LoadOutPreset, RawLoadOutPreset } from "./LoadOutPreset-BshJF0LH.js";
|
|
6
|
+
import { Mission, RawMission } from "./Mission-BZgLMluh.js";
|
|
7
|
+
import { OperatorLoadOuts, RawOperatorLoadOuts } from "./OperatorLoadOuts-Dk2uMwby.js";
|
|
8
|
+
import { RawAffiliation, Syndicate } from "./Syndicate-FSUt1PP5.js";
|
|
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 { Profile, RawProfile };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./ChallengeProgress-B8Kv32oi.js";
|
|
2
|
+
import "./Intrinsics-azrsOZJd.js";
|
|
3
|
+
import "./Skin-BbUkegH1.js";
|
|
4
|
+
import "./Utils-C7BZqK4e.js";
|
|
5
|
+
import "./ItemConfig-7as-gjPG.js";
|
|
6
|
+
import "./Polarity-DDWqEVm2.js";
|
|
7
|
+
import "./LoadOutItem-BlRFZMNd.js";
|
|
8
|
+
import "./XpInfo-ChJ_lJaH.js";
|
|
9
|
+
import "./LoadOutInventory-BsPRtXfG.js";
|
|
10
|
+
import "./LoadOutPreset-BshJF0LH.js";
|
|
11
|
+
import "./Mission-BZgLMluh.js";
|
|
12
|
+
import "./OperatorLoadOuts-Dk2uMwby.js";
|
|
13
|
+
import "./Syndicate-FSUt1PP5.js";
|
|
14
|
+
import { Profile, RawProfile } from "./Profile-rva_Xss5.js";
|
|
15
|
+
export { RawProfile, Profile as default };
|
package/dist/Profile.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./ChallengeProgress-DKKtijWw.js";
|
|
2
|
+
import "./Intrinsics-CqFOpLxp.js";
|
|
3
|
+
import "./Utils-C3kZCO6a.js";
|
|
4
|
+
import "./Skin-D6v6jC9U.js";
|
|
5
|
+
import "./ItemConfig-uU36aJFJ.js";
|
|
6
|
+
import "./Polarity--RYq3iwF.js";
|
|
7
|
+
import "./LoadOutItem-B_6G9dXC.js";
|
|
8
|
+
import "./XpInfo-CXC3I0NQ.js";
|
|
9
|
+
import "./LoadOutInventory-CPVZJ_W5.js";
|
|
10
|
+
import "./LoadOutPreset-CMbZo-II.js";
|
|
11
|
+
import "./Mission-D2n1i5R2.js";
|
|
12
|
+
import "./OperatorLoadOuts-B8bEy2dp.js";
|
|
13
|
+
import "./Syndicate-CjUKKAsk.js";
|
|
14
|
+
import { Profile } from "./Profile-WWZ2BDf0.js";
|
|
15
|
+
|
|
16
|
+
export { Profile as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import "./Ability-DzKgEG5R.js";
|
|
2
|
+
import "./ChallengeProgress-B8Kv32oi.js";
|
|
3
|
+
import "./Enemy-toy1Spyi.js";
|
|
4
|
+
import "./Intrinsics-azrsOZJd.js";
|
|
5
|
+
import "./Skin-BbUkegH1.js";
|
|
6
|
+
import { RawDate } from "./Utils-C7BZqK4e.js";
|
|
7
|
+
import "./ItemConfig-7as-gjPG.js";
|
|
8
|
+
import "./Polarity-DDWqEVm2.js";
|
|
9
|
+
import "./LoadOutItem-BlRFZMNd.js";
|
|
10
|
+
import "./XpInfo-ChJ_lJaH.js";
|
|
11
|
+
import "./LoadOutInventory-BsPRtXfG.js";
|
|
12
|
+
import "./LoadOutPreset-BshJF0LH.js";
|
|
13
|
+
import "./Mission-BZgLMluh.js";
|
|
14
|
+
import "./OperatorLoadOuts-Dk2uMwby.js";
|
|
15
|
+
import "./Syndicate-FSUt1PP5.js";
|
|
16
|
+
import { Profile, RawProfile } from "./Profile-rva_Xss5.js";
|
|
17
|
+
import "./Pvp-Cb1KNKvw.js";
|
|
18
|
+
import "./Race-DCxzjMpC.js";
|
|
19
|
+
import "./Scan-BWfZiLoW.js";
|
|
20
|
+
import "./Weapon-DAJp-nbn.js";
|
|
21
|
+
import { RawStats, Stats } from "./Stats-DtkR2w1A.js";
|
|
22
|
+
import { Locale } from "warframe-worldstate-data";
|
|
23
|
+
|
|
24
|
+
//#region src/ProfileParser.d.ts
|
|
25
|
+
interface ProfileData {
|
|
26
|
+
Results: RawProfile[];
|
|
27
|
+
TechProjects?: any;
|
|
28
|
+
XpCompoents?: any;
|
|
29
|
+
XpCacheExpiryDate?: RawDate;
|
|
30
|
+
CeremonyResetDate?: RawDate;
|
|
31
|
+
Stats: RawStats;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Parser entry point
|
|
35
|
+
* @module
|
|
36
|
+
*/
|
|
37
|
+
declare class ProfileParser {
|
|
38
|
+
/**
|
|
39
|
+
* Player's profile
|
|
40
|
+
*/
|
|
41
|
+
profile: Profile;
|
|
42
|
+
/**
|
|
43
|
+
* N/A
|
|
44
|
+
*/
|
|
45
|
+
techProjects: any;
|
|
46
|
+
/**
|
|
47
|
+
* N/A
|
|
48
|
+
*/
|
|
49
|
+
xpComponents: any;
|
|
50
|
+
/**
|
|
51
|
+
* N/A
|
|
52
|
+
*/
|
|
53
|
+
xpCacheExpiryDate: Date;
|
|
54
|
+
/**
|
|
55
|
+
* N/A
|
|
56
|
+
*/
|
|
57
|
+
ceremonyResetDate: Date;
|
|
58
|
+
/**
|
|
59
|
+
* Player stats
|
|
60
|
+
*/
|
|
61
|
+
stats: Stats;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {Object} data The data returned by getProfile endpoint
|
|
65
|
+
* @param {string} locale The locale to return where possible
|
|
66
|
+
* @param {boolean} [withItem=false] Whether or not to include items
|
|
67
|
+
*/
|
|
68
|
+
constructor(data: ProfileData, locale?: Locale, withItem?: boolean);
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ProfileParser as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import "./Ability-D1F1s_19.js";
|
|
2
|
+
import "./ChallengeProgress-DKKtijWw.js";
|
|
3
|
+
import "./Enemy-BqxhFdkB.js";
|
|
4
|
+
import "./Intrinsics-CqFOpLxp.js";
|
|
5
|
+
import "./Utils-C3kZCO6a.js";
|
|
6
|
+
import "./Skin-D6v6jC9U.js";
|
|
7
|
+
import "./ItemConfig-uU36aJFJ.js";
|
|
8
|
+
import "./Polarity--RYq3iwF.js";
|
|
9
|
+
import "./LoadOutItem-B_6G9dXC.js";
|
|
10
|
+
import "./XpInfo-CXC3I0NQ.js";
|
|
11
|
+
import "./LoadOutInventory-CPVZJ_W5.js";
|
|
12
|
+
import "./LoadOutPreset-CMbZo-II.js";
|
|
13
|
+
import "./Mission-D2n1i5R2.js";
|
|
14
|
+
import "./OperatorLoadOuts-B8bEy2dp.js";
|
|
15
|
+
import "./Syndicate-CjUKKAsk.js";
|
|
16
|
+
import { Profile } from "./Profile-WWZ2BDf0.js";
|
|
17
|
+
import "./Pvp-hyzYfVBB.js";
|
|
18
|
+
import "./Race-5Q0StEkE.js";
|
|
19
|
+
import "./Scan-Dlrv6viG.js";
|
|
20
|
+
import "./Weapon-4KlXEHQF.js";
|
|
21
|
+
import { Stats } from "./Stats-Bm1bpQe5.js";
|
|
22
|
+
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
23
|
+
|
|
24
|
+
//#region src/ProfileParser.ts
|
|
25
|
+
/**
|
|
26
|
+
* Parser entry point
|
|
27
|
+
* @module
|
|
28
|
+
*/
|
|
29
|
+
var ProfileParser = class {
|
|
30
|
+
/**
|
|
31
|
+
* Player's profile
|
|
32
|
+
*/
|
|
33
|
+
profile;
|
|
34
|
+
/**
|
|
35
|
+
* N/A
|
|
36
|
+
*/
|
|
37
|
+
techProjects;
|
|
38
|
+
/**
|
|
39
|
+
* N/A
|
|
40
|
+
*/
|
|
41
|
+
xpComponents;
|
|
42
|
+
/**
|
|
43
|
+
* N/A
|
|
44
|
+
*/
|
|
45
|
+
xpCacheExpiryDate;
|
|
46
|
+
/**
|
|
47
|
+
* N/A
|
|
48
|
+
*/
|
|
49
|
+
ceremonyResetDate;
|
|
50
|
+
/**
|
|
51
|
+
* Player stats
|
|
52
|
+
*/
|
|
53
|
+
stats;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @param {Object} data The data returned by getProfile endpoint
|
|
57
|
+
* @param {string} locale The locale to return where possible
|
|
58
|
+
* @param {boolean} [withItem=false] Whether or not to include items
|
|
59
|
+
*/
|
|
60
|
+
constructor(data, locale = "en", withItem = false) {
|
|
61
|
+
this.profile = new Profile(data.Results[0], locale, withItem);
|
|
62
|
+
this.techProjects = data.TechProjects;
|
|
63
|
+
this.xpComponents = data.XpCompoents;
|
|
64
|
+
this.xpCacheExpiryDate = parseDate(data.XpCacheExpiryDate);
|
|
65
|
+
this.ceremonyResetDate = parseDate(data.CeremonyResetDate);
|
|
66
|
+
this.stats = new Stats(data.Stats);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ProfileParser as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { Pvp, RawPvp };
|