@wfcd/profile-parser 2.0.9 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/Ability.d.mts +1 -1
  2. package/dist/ChallengeProgress.d.mts +1 -1
  3. package/dist/Enemy.d.mts +1 -1
  4. package/dist/Intrinsics.d.mts +1 -1
  5. package/dist/{ItemConfig-R2z1Z3uo.d.mts → ItemConfig-DxhXby04.d.mts} +2 -2
  6. package/dist/ItemConfig.d.mts +3 -3
  7. package/dist/{LoadOutInventory-BtVQX9Mi.d.mts → LoadOutInventory-B84bUV2-.d.mts} +3 -3
  8. package/dist/LoadOutInventory.d.mts +6 -7
  9. package/dist/{LoadOutItem-weow3bab.d.mts → LoadOutItem-DWQ4aFI_.d.mts} +3 -3
  10. package/dist/LoadOutItem.d.mts +4 -5
  11. package/dist/LoadOutPreset.d.mts +1 -1
  12. package/dist/Mission.d.mts +1 -1
  13. package/dist/{OperatorLoadOuts-DtxjrIci.d.mts → OperatorLoadOuts-51DN5Rwo.d.mts} +2 -2
  14. package/dist/OperatorLoadOuts.d.mts +3 -3
  15. package/dist/Polarity.d.mts +1 -1
  16. package/dist/Profile.d.mts +215 -14
  17. package/dist/Profile.mjs +191 -8
  18. package/dist/ProfileParser.d.mts +9 -21
  19. package/dist/ProfileParser.mjs +2 -10
  20. package/dist/Pvp.d.mts +1 -1
  21. package/dist/Pvp.mjs +1 -1
  22. package/dist/Race.d.mts +1 -1
  23. package/dist/Race.mjs +1 -1
  24. package/dist/Scan.d.mts +1 -1
  25. package/dist/Scan.mjs +1 -1
  26. package/dist/Skin.d.mts +1 -1
  27. package/dist/Stats.d.mts +324 -8
  28. package/dist/Stats.mjs +303 -8
  29. package/dist/Syndicate.d.mts +1 -1
  30. package/dist/Utils.d.mts +1 -1
  31. package/dist/Weapon.d.mts +1 -1
  32. package/dist/Weapon.mjs +1 -1
  33. package/dist/XpInfo.d.mts +1 -1
  34. package/package.json +13 -13
  35. package/dist/Profile-Beptm6wY.d.mts +0 -212
  36. package/dist/Profile-D15zUqzG.mjs +0 -193
  37. package/dist/Stats-Bvzk1GOV.mjs +0 -305
  38. package/dist/Stats-D8GkxqWB.d.mts +0 -325
  39. /package/dist/{Ability-Bkn1Kr0F.d.mts → Ability-CmHyNfw4.d.mts} +0 -0
  40. /package/dist/{ChallengeProgress-ByYNDHWY.d.mts → ChallengeProgress-BO8tPybG.d.mts} +0 -0
  41. /package/dist/{Enemy-VT_y6RNw.d.mts → Enemy-5RVVfZme.d.mts} +0 -0
  42. /package/dist/{Intrinsics-aQNZre3S.d.mts → Intrinsics-DwonOlUE.d.mts} +0 -0
  43. /package/dist/{LoadOutPreset-Dvs-Zisw.d.mts → LoadOutPreset-m_1RVkf9.d.mts} +0 -0
  44. /package/dist/{Mission-Bkx_g_to.d.mts → Mission-CeX2BRp0.d.mts} +0 -0
  45. /package/dist/{Polarity-0fJe_D8l.d.mts → Polarity-KCoYUO6f.d.mts} +0 -0
  46. /package/dist/{Pvp-DwOk9iPM.mjs → Pvp-DCfleh26.mjs} +0 -0
  47. /package/dist/{Pvp-DtncK80C.d.mts → Pvp-R4iYmiAT.d.mts} +0 -0
  48. /package/dist/{Race-b-1i8d0Y.d.mts → Race-DXOXL9VT.d.mts} +0 -0
  49. /package/dist/{Race-CV98F8P6.mjs → Race-dyrF8Zs5.mjs} +0 -0
  50. /package/dist/{Scan-2TQmEr2X.d.mts → Scan-CJnYpzKb.d.mts} +0 -0
  51. /package/dist/{Scan-Du5aj7LZ.mjs → Scan-D4p43-1c.mjs} +0 -0
  52. /package/dist/{Skin-CqeNtCDU.d.mts → Skin-DJMr6L-X.d.mts} +0 -0
  53. /package/dist/{Syndicate-PiVz8ikQ.d.mts → Syndicate-Dq5vLEB-.d.mts} +0 -0
  54. /package/dist/{Utils-M8z7sZIf.d.mts → Utils-VTFhFHIp.d.mts} +0 -0
  55. /package/dist/{Weapon-zRX33-22.mjs → Weapon-CsKff27X.mjs} +0 -0
  56. /package/dist/{Weapon-CUoF9mPh.d.mts → Weapon-DgQ4hNgE.d.mts} +0 -0
  57. /package/dist/{XpInfo-CpwSvxlR.d.mts → XpInfo-qplT5008.d.mts} +0 -0
@@ -1,2 +1,2 @@
1
- import { n as RawAbility, t as Ability } from "./Ability-Bkn1Kr0F.mjs";
1
+ import { n as RawAbility, t as Ability } from "./Ability-CmHyNfw4.mjs";
2
2
  export { RawAbility, Ability as default };
@@ -1,2 +1,2 @@
1
- import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-ByYNDHWY.mjs";
1
+ import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-BO8tPybG.mjs";
2
2
  export { RawChallengeProgress, ChallengeProgress as default };
package/dist/Enemy.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as RawEnemy, t as Enemy } from "./Enemy-VT_y6RNw.mjs";
1
+ import { n as RawEnemy, t as Enemy } from "./Enemy-5RVVfZme.mjs";
2
2
  export { RawEnemy, Enemy as default };
@@ -1,2 +1,2 @@
1
- import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-aQNZre3S.mjs";
1
+ import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-DwonOlUE.mjs";
2
2
  export { RawIntrinsics, Intrinsics as default };
@@ -1,5 +1,5 @@
1
- import { n as Skin } from "./Skin-CqeNtCDU.mjs";
2
- import { t as ProfileRawColors } from "./Utils-M8z7sZIf.mjs";
1
+ import { n as Skin } from "./Skin-DJMr6L-X.mjs";
2
+ import { t as ProfileRawColors } from "./Utils-VTFhFHIp.mjs";
3
3
  import { ColorMap } from "@wfcd/items";
4
4
  import { Locale } from "warframe-worldstate-data";
5
5
 
@@ -1,4 +1,4 @@
1
- import "./Skin-CqeNtCDU.mjs";
2
- import "./Utils-M8z7sZIf.mjs";
3
- import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-R2z1Z3uo.mjs";
1
+ import "./Skin-DJMr6L-X.mjs";
2
+ import "./Utils-VTFhFHIp.mjs";
3
+ import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-DxhXby04.mjs";
4
4
  export { RawItemConfig, ItemConfig as default };
@@ -1,6 +1,6 @@
1
- import { n as Skin, t as RawSkin } from "./Skin-CqeNtCDU.mjs";
2
- import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-weow3bab.mjs";
3
- import { n as XpInfo, t as RawXpItem } from "./XpInfo-CpwSvxlR.mjs";
1
+ import { n as Skin, t as RawSkin } from "./Skin-DJMr6L-X.mjs";
2
+ import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-DWQ4aFI_.mjs";
3
+ import { n as XpInfo, t as RawXpItem } from "./XpInfo-qplT5008.mjs";
4
4
  import { Locale } from "warframe-worldstate-data";
5
5
 
6
6
  //#region src/LoadOutInventory.d.ts
@@ -1,8 +1,7 @@
1
- import "./Skin-CqeNtCDU.mjs";
2
- import "./Utils-M8z7sZIf.mjs";
3
- import "./ItemConfig-R2z1Z3uo.mjs";
4
- import "./Polarity-0fJe_D8l.mjs";
5
- import "./LoadOutItem-weow3bab.mjs";
6
- import "./XpInfo-CpwSvxlR.mjs";
7
- import { n as RawLoadOut, t as LoadOutInventory } from "./LoadOutInventory-BtVQX9Mi.mjs";
1
+ import "./Skin-DJMr6L-X.mjs";
2
+ import "./Utils-VTFhFHIp.mjs";
3
+ import "./ItemConfig-DxhXby04.mjs";
4
+ import "./LoadOutItem-DWQ4aFI_.mjs";
5
+ import "./XpInfo-qplT5008.mjs";
6
+ import { n as RawLoadOut, t as LoadOutInventory } from "./LoadOutInventory-B84bUV2-.mjs";
8
7
  export { RawLoadOut, LoadOutInventory as default };
@@ -1,6 +1,6 @@
1
- import { n as RawDate } from "./Utils-M8z7sZIf.mjs";
2
- import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-R2z1Z3uo.mjs";
3
- import { n as RawPolarity, t as Polarity } from "./Polarity-0fJe_D8l.mjs";
1
+ import { n as RawDate } from "./Utils-VTFhFHIp.mjs";
2
+ import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-DxhXby04.mjs";
3
+ import { n as RawPolarity, t as Polarity } from "./Polarity-KCoYUO6f.mjs";
4
4
  import { ColorMap, Item, RawColors } from "@wfcd/items";
5
5
  import { Locale } from "warframe-worldstate-data";
6
6
 
@@ -1,6 +1,5 @@
1
- import "./Skin-CqeNtCDU.mjs";
2
- import "./Utils-M8z7sZIf.mjs";
3
- import "./ItemConfig-R2z1Z3uo.mjs";
4
- import "./Polarity-0fJe_D8l.mjs";
5
- import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-weow3bab.mjs";
1
+ import "./Skin-DJMr6L-X.mjs";
2
+ import "./Utils-VTFhFHIp.mjs";
3
+ import "./ItemConfig-DxhXby04.mjs";
4
+ import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-DWQ4aFI_.mjs";
6
5
  export { RawLoadOutItem, LoadOutItem as default };
@@ -1,2 +1,2 @@
1
- import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-Dvs-Zisw.mjs";
1
+ import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-m_1RVkf9.mjs";
2
2
  export { RawLoadOutPreset, LoadOutPreset as default };
@@ -1,2 +1,2 @@
1
- import { n as RawMission, t as Mission } from "./Mission-Bkx_g_to.mjs";
1
+ import { n as RawMission, t as Mission } from "./Mission-CeX2BRp0.mjs";
2
2
  export { RawMission, Mission as default };
@@ -1,5 +1,5 @@
1
- import { n as Skin } from "./Skin-CqeNtCDU.mjs";
2
- import { t as ProfileRawColors } from "./Utils-M8z7sZIf.mjs";
1
+ import { n as Skin } from "./Skin-DJMr6L-X.mjs";
2
+ import { t as ProfileRawColors } from "./Utils-VTFhFHIp.mjs";
3
3
  import { ColorMap } from "@wfcd/items";
4
4
  import { Locale } from "warframe-worldstate-data";
5
5
 
@@ -1,4 +1,4 @@
1
- import "./Skin-CqeNtCDU.mjs";
2
- import "./Utils-M8z7sZIf.mjs";
3
- import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-DtxjrIci.mjs";
1
+ import "./Skin-DJMr6L-X.mjs";
2
+ import "./Utils-VTFhFHIp.mjs";
3
+ import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-51DN5Rwo.mjs";
4
4
  export { RawOperatorLoadOuts, OperatorLoadOuts as default };
@@ -1,2 +1,2 @@
1
- import { n as RawPolarity, t as Polarity } from "./Polarity-0fJe_D8l.mjs";
1
+ import { n as RawPolarity, t as Polarity } from "./Polarity-KCoYUO6f.mjs";
2
2
  export { RawPolarity, Polarity as default };
@@ -1,15 +1,216 @@
1
- import "./ChallengeProgress-ByYNDHWY.mjs";
2
- import "./Intrinsics-aQNZre3S.mjs";
3
- import "./Skin-CqeNtCDU.mjs";
4
- import "./Utils-M8z7sZIf.mjs";
5
- import "./ItemConfig-R2z1Z3uo.mjs";
6
- import "./Polarity-0fJe_D8l.mjs";
7
- import "./LoadOutItem-weow3bab.mjs";
8
- import "./XpInfo-CpwSvxlR.mjs";
9
- import "./LoadOutInventory-BtVQX9Mi.mjs";
10
- import "./LoadOutPreset-Dvs-Zisw.mjs";
11
- import "./Mission-Bkx_g_to.mjs";
12
- import "./OperatorLoadOuts-DtxjrIci.mjs";
13
- import "./Syndicate-PiVz8ikQ.mjs";
14
- import { n as RawProfile, t as Profile } from "./Profile-Beptm6wY.mjs";
1
+ import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-BO8tPybG.mjs";
2
+ import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-DwonOlUE.mjs";
3
+ import "./Skin-DJMr6L-X.mjs";
4
+ import { n as RawDate, r as RawId } from "./Utils-VTFhFHIp.mjs";
5
+ import "./ItemConfig-DxhXby04.mjs";
6
+ import "./LoadOutItem-DWQ4aFI_.mjs";
7
+ import "./XpInfo-qplT5008.mjs";
8
+ import { n as RawLoadOut, t as LoadOutInventory } from "./LoadOutInventory-B84bUV2-.mjs";
9
+ import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-m_1RVkf9.mjs";
10
+ import { n as RawMission, t as Mission } from "./Mission-CeX2BRp0.mjs";
11
+ import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-51DN5Rwo.mjs";
12
+ import { n as Syndicate, t as RawAffiliation } from "./Syndicate-Dq5vLEB-.mjs";
13
+ import { Locale } from "warframe-worldstate-data";
14
+
15
+ //#region src/Profile.d.ts
16
+ interface RawProfile {
17
+ AccountId: {
18
+ $oid: string;
19
+ };
20
+ DisplayName: string;
21
+ PlatformNames?: string[];
22
+ PlayerLevel: number;
23
+ LoadOutPreset: RawLoadOutPreset;
24
+ LoadOutInventory: RawLoadOut;
25
+ PlayerSkills: RawIntrinsics;
26
+ ChallengeProgress: RawChallengeProgress[];
27
+ GuildId: RawId;
28
+ GuildName: string;
29
+ GuildTier: number;
30
+ GuildXp: number;
31
+ GuildClass: number;
32
+ GuildEmblem: boolean;
33
+ AllianceId?: RawId;
34
+ DeathMarks: string[];
35
+ Harvestable: boolean;
36
+ DeathSquadable: boolean;
37
+ Created: RawDate;
38
+ MigratedToConsole: boolean;
39
+ Missions: RawMission[];
40
+ Affiliations: RawAffiliation[];
41
+ DailyAffiliation: number;
42
+ DailyAffiliationPvp?: number;
43
+ DailyAffiliationLibrary?: number;
44
+ DailyAffiliationCetus?: number;
45
+ DailyAffiliationQuills?: number;
46
+ DailyAffiliationSolaris?: number;
47
+ DailyAffiliationVentkids?: number;
48
+ DailyAffiliationVox?: number;
49
+ DailyAffiliationEntrati?: number;
50
+ DailyAffiliationNecraloid?: number;
51
+ DailyAffiliationZariman?: number;
52
+ DailyAffiliationKahl?: number;
53
+ DailyAffiliationCavia?: number;
54
+ DailyAffiliationHex?: number;
55
+ DailyFocus?: number;
56
+ Wishlist?: any;
57
+ UnlockedOperator: boolean;
58
+ UnlockedAlignment: boolean;
59
+ OperatorLoadOuts: RawOperatorLoadOuts[];
60
+ Alignment: {
61
+ Wisdom: number;
62
+ Alignment: number;
63
+ };
64
+ }
65
+ /**
66
+ * A player's profile
67
+ * @module
68
+ */
69
+ declare class Profile {
70
+ /**
71
+ * Player's account ID
72
+ */
73
+ accountId: string;
74
+ /**
75
+ * In-game name
76
+ */
77
+ displayName: string;
78
+ /**
79
+ * List of usernames across supported platforms
80
+ */
81
+ platformNames: string[];
82
+ /**
83
+ * Mastery rank
84
+ */
85
+ masteryRank: number;
86
+ /**
87
+ * Load out preset equipped
88
+ */
89
+ preset?: LoadOutPreset;
90
+ /**
91
+ * Current loadout
92
+ */
93
+ loadout: LoadOutInventory;
94
+ /**
95
+ * Railjack and drifter Intrinsics
96
+ */
97
+ intrinsics?: Intrinsics;
98
+ /**
99
+ * Nightwave challenges progress
100
+ */
101
+ challengeProgress: ChallengeProgress[];
102
+ /**
103
+ * Guild ID
104
+ */
105
+ guildId?: string;
106
+ /**
107
+ * Guild name
108
+ */
109
+ guildName?: string;
110
+ /**
111
+ * Guild tier
112
+ */
113
+ guildTier?: number;
114
+ /**
115
+ * Guild XP
116
+ */
117
+ guildXp?: number;
118
+ /**
119
+ * Guild class
120
+ */
121
+ guildClass?: number;
122
+ /**
123
+ * Guild emblem.
124
+ */
125
+ guildEmblem: boolean;
126
+ /**
127
+ * Alliance ID
128
+ */
129
+ allianceId?: string;
130
+ /**
131
+ * Assassins currently asfter the player
132
+ */
133
+ deathMarks: string[];
134
+ /**
135
+ * Whether or not the player is qualified as a target for Zanuka
136
+ * @type {boolean}
137
+ */
138
+ harvestable: boolean;
139
+ /**
140
+ * Whether or not the player is qualified as a target for a syndicate death squad
141
+ */
142
+ deathSquadable: boolean;
143
+ /**
144
+ * Date the account was created
145
+ */
146
+ created: Date;
147
+ /**
148
+ * Whether the user has migrated to console or not
149
+ */
150
+ migratedToConsole: boolean;
151
+ /**
152
+ * List of completed missions and their completions
153
+ */
154
+ missions: Mission[];
155
+ /**
156
+ * Player standing and title across all syndicates
157
+ */
158
+ syndicates?: Syndicate[];
159
+ /**
160
+ * Daily standing per Syndicate
161
+ *
162
+ * Faction syndicates all share daily standing
163
+ */
164
+ dailyStanding: {
165
+ daily: number;
166
+ conclave?: number;
167
+ simaris?: number;
168
+ ostron?: number;
169
+ quills?: number;
170
+ solaris?: number;
171
+ ventKids?: number;
172
+ voxSolaris?: number;
173
+ entrati?: number;
174
+ necraloid?: number;
175
+ holdfasts?: number;
176
+ kahl?: number;
177
+ cavia?: number;
178
+ hex?: number;
179
+ };
180
+ /**
181
+ * Daily focus
182
+ */
183
+ dailyFocus?: number;
184
+ /**
185
+ * Player wishlist for in-game market items
186
+ */
187
+ wishList: any;
188
+ /**
189
+ * Whether the player has unlocked their operator or not
190
+ */
191
+ unlockedOperator: boolean;
192
+ /**
193
+ * Whether the player has unlocked their alignment or not
194
+ */
195
+ unlockedAlignment: boolean;
196
+ /**
197
+ * Operator loadout
198
+ */
199
+ operatorLoadouts?: OperatorLoadOuts[];
200
+ /**
201
+ * Player's alignment
202
+ */
203
+ alignment?: {
204
+ wisdom: number;
205
+ alignment: number;
206
+ };
207
+ /**
208
+ *
209
+ * @param profile The profile data to parse
210
+ * @param locale The locale to return in where possible
211
+ * @param withItem Whether or not to include items
212
+ */
213
+ constructor(profile: RawProfile, locale?: Locale, withItem?: boolean);
214
+ }
215
+ //#endregion
15
216
  export { RawProfile, Profile as default };
package/dist/Profile.mjs CHANGED
@@ -1,16 +1,199 @@
1
- import "./ChallengeProgress-Cpks92At.mjs";
2
- import "./Intrinsics-kYw_LPq1.mjs";
1
+ import { t as ChallengeProgress } from "./ChallengeProgress-Cpks92At.mjs";
2
+ import { t as Intrinsics } from "./Intrinsics-kYw_LPq1.mjs";
3
3
  import "./Utils-Bqm2Gg1K.mjs";
4
4
  import "./Skin-D_brWp2g.mjs";
5
5
  import "./ItemConfig-DTIrA_P_.mjs";
6
6
  import "./Polarity-Q2JfovbR.mjs";
7
7
  import "./LoadOutItem-p-f5RdTB.mjs";
8
8
  import "./XpInfo-IT6LOTzI.mjs";
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";
9
+ import { t as LoadOutInventory } from "./LoadOutInventory-BbaIazHX.mjs";
10
+ import { t as LoadOutPreset } from "./LoadOutPreset-CwbK2VvR.mjs";
11
+ import { t as Mission } from "./Mission-DfGQMV7B.mjs";
12
+ import { t as OperatorLoadOuts } from "./OperatorLoadOuts-LYGpTHuj.mjs";
13
+ import { t as Syndicate } from "./Syndicate-CcRnzmZs.mjs";
14
+ import { parseDate } from "warframe-worldstate-data/utilities";
15
15
 
16
+ //#region src/Profile.ts
17
+ /**
18
+ * A player's profile
19
+ * @module
20
+ */
21
+ var Profile = class {
22
+ /**
23
+ * Player's account ID
24
+ */
25
+ accountId;
26
+ /**
27
+ * In-game name
28
+ */
29
+ displayName;
30
+ /**
31
+ * List of usernames across supported platforms
32
+ */
33
+ platformNames;
34
+ /**
35
+ * Mastery rank
36
+ */
37
+ masteryRank;
38
+ /**
39
+ * Load out preset equipped
40
+ */
41
+ preset;
42
+ /**
43
+ * Current loadout
44
+ */
45
+ loadout;
46
+ /**
47
+ * Railjack and drifter Intrinsics
48
+ */
49
+ intrinsics;
50
+ /**
51
+ * Nightwave challenges progress
52
+ */
53
+ challengeProgress;
54
+ /**
55
+ * Guild ID
56
+ */
57
+ guildId;
58
+ /**
59
+ * Guild name
60
+ */
61
+ guildName;
62
+ /**
63
+ * Guild tier
64
+ */
65
+ guildTier;
66
+ /**
67
+ * Guild XP
68
+ */
69
+ guildXp;
70
+ /**
71
+ * Guild class
72
+ */
73
+ guildClass;
74
+ /**
75
+ * Guild emblem.
76
+ */
77
+ guildEmblem;
78
+ /**
79
+ * Alliance ID
80
+ */
81
+ allianceId;
82
+ /**
83
+ * Assassins currently asfter the player
84
+ */
85
+ deathMarks;
86
+ /**
87
+ * Whether or not the player is qualified as a target for Zanuka
88
+ * @type {boolean}
89
+ */
90
+ harvestable;
91
+ /**
92
+ * Whether or not the player is qualified as a target for a syndicate death squad
93
+ */
94
+ deathSquadable;
95
+ /**
96
+ * Date the account was created
97
+ */
98
+ created;
99
+ /**
100
+ * Whether the user has migrated to console or not
101
+ */
102
+ migratedToConsole;
103
+ /**
104
+ * List of completed missions and their completions
105
+ */
106
+ missions;
107
+ /**
108
+ * Player standing and title across all syndicates
109
+ */
110
+ syndicates;
111
+ /**
112
+ * Daily standing per Syndicate
113
+ *
114
+ * Faction syndicates all share daily standing
115
+ */
116
+ dailyStanding;
117
+ /**
118
+ * Daily focus
119
+ */
120
+ dailyFocus;
121
+ /**
122
+ * Player wishlist for in-game market items
123
+ */
124
+ wishList;
125
+ /**
126
+ * Whether the player has unlocked their operator or not
127
+ */
128
+ unlockedOperator;
129
+ /**
130
+ * Whether the player has unlocked their alignment or not
131
+ */
132
+ unlockedAlignment;
133
+ /**
134
+ * Operator loadout
135
+ */
136
+ operatorLoadouts;
137
+ /**
138
+ * Player's alignment
139
+ */
140
+ alignment;
141
+ /**
142
+ *
143
+ * @param profile The profile data to parse
144
+ * @param locale The locale to return in where possible
145
+ * @param withItem Whether or not to include items
146
+ */
147
+ constructor(profile, locale = "en", withItem = false) {
148
+ this.accountId = profile.AccountId.$oid;
149
+ this.displayName = profile.DisplayName;
150
+ this.platformNames = profile.PlatformNames ?? [];
151
+ this.masteryRank = profile.PlayerLevel;
152
+ if (profile.LoadOutPreset) this.preset = new LoadOutPreset(profile.LoadOutPreset);
153
+ this.loadout = new LoadOutInventory(profile.LoadOutInventory, locale, withItem);
154
+ this.intrinsics = new Intrinsics(profile.PlayerSkills ?? {});
155
+ this.challengeProgress = profile.ChallengeProgress.map((c) => new ChallengeProgress(c));
156
+ if (profile.GuildId?.$oid) this.guildId = profile.GuildId.$oid;
157
+ this.guildName = profile.GuildName;
158
+ this.guildTier = profile.GuildTier;
159
+ this.guildXp = profile.GuildXp;
160
+ this.guildClass = profile.GuildClass;
161
+ this.guildEmblem = profile.GuildEmblem;
162
+ if (profile.AllianceId) this.allianceId = profile.AllianceId.$oid;
163
+ this.deathMarks = profile.DeathMarks;
164
+ this.harvestable = profile.Harvestable;
165
+ this.deathSquadable = profile.DeathSquadable;
166
+ this.created = parseDate(profile.Created);
167
+ this.migratedToConsole = profile.MigratedToConsole;
168
+ this.missions = profile.Missions.map((m) => new Mission(m, locale));
169
+ this.syndicates = profile.Affiliations?.map((a) => new Syndicate(a, locale)) ?? [];
170
+ this.dailyStanding = {
171
+ daily: profile.DailyAffiliation,
172
+ conclave: profile.DailyAffiliationPvp,
173
+ simaris: profile.DailyAffiliationLibrary,
174
+ ostron: profile.DailyAffiliationCetus,
175
+ quills: profile.DailyAffiliationQuills,
176
+ solaris: profile.DailyAffiliationSolaris,
177
+ ventKids: profile.DailyAffiliationVentkids,
178
+ voxSolaris: profile.DailyAffiliationVox,
179
+ entrati: profile.DailyAffiliationEntrati,
180
+ necraloid: profile.DailyAffiliationNecraloid,
181
+ holdfasts: profile.DailyAffiliationZariman,
182
+ kahl: profile.DailyAffiliationKahl,
183
+ cavia: profile.DailyAffiliationCavia,
184
+ hex: profile.DailyAffiliationHex
185
+ };
186
+ this.dailyFocus = profile.DailyFocus;
187
+ this.wishList = profile.Wishlist;
188
+ this.unlockedOperator = profile.UnlockedOperator;
189
+ this.unlockedAlignment = profile.UnlockedAlignment;
190
+ this.operatorLoadouts = profile.OperatorLoadOuts?.map((ol) => new OperatorLoadOuts(ol, locale));
191
+ if (profile.Alignment) this.alignment = {
192
+ wisdom: profile.Alignment?.Wisdom,
193
+ alignment: profile.Alignment?.Alignment
194
+ };
195
+ }
196
+ };
197
+
198
+ //#endregion
16
199
  export { Profile as default };
@@ -1,24 +1,12 @@
1
- import "./Ability-Bkn1Kr0F.mjs";
2
- import "./ChallengeProgress-ByYNDHWY.mjs";
3
- import "./Enemy-VT_y6RNw.mjs";
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 "./Skin-DJMr6L-X.mjs";
2
+ import { n as RawDate } from "./Utils-VTFhFHIp.mjs";
3
+ import "./ItemConfig-DxhXby04.mjs";
4
+ import "./LoadOutItem-DWQ4aFI_.mjs";
5
+ import "./XpInfo-qplT5008.mjs";
6
+ import "./LoadOutInventory-B84bUV2-.mjs";
7
+ import "./OperatorLoadOuts-51DN5Rwo.mjs";
8
+ import Profile, { RawProfile } from "./Profile.mjs";
9
+ import Stats, { RawStats } from "./Stats.mjs";
22
10
  import { Locale } from "warframe-worldstate-data";
23
11
 
24
12
  //#region src/ProfileParser.d.ts
@@ -1,7 +1,3 @@
1
- import "./Ability-DsyqxzjP.mjs";
2
- import "./ChallengeProgress-Cpks92At.mjs";
3
- import "./Enemy-B3JSksZZ.mjs";
4
- import "./Intrinsics-kYw_LPq1.mjs";
5
1
  import "./Utils-Bqm2Gg1K.mjs";
6
2
  import "./Skin-D_brWp2g.mjs";
7
3
  import "./ItemConfig-DTIrA_P_.mjs";
@@ -13,12 +9,8 @@ import "./LoadOutPreset-CwbK2VvR.mjs";
13
9
  import "./Mission-DfGQMV7B.mjs";
14
10
  import "./OperatorLoadOuts-LYGpTHuj.mjs";
15
11
  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";
12
+ import Profile from "./Profile.mjs";
13
+ import Stats from "./Stats.mjs";
22
14
  import { parseDate } from "warframe-worldstate-data/utilities";
23
15
 
24
16
  //#region src/ProfileParser.ts
package/dist/Pvp.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as RawPvp, t as Pvp } from "./Pvp-DtncK80C.mjs";
1
+ import { n as RawPvp, t as Pvp } from "./Pvp-R4iYmiAT.mjs";
2
2
  export { RawPvp, Pvp as default };
package/dist/Pvp.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as Pvp } from "./Pvp-DwOk9iPM.mjs";
1
+ import { t as Pvp } from "./Pvp-DCfleh26.mjs";
2
2
 
3
3
  export { Pvp as default };
package/dist/Race.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as RawRace, t as Race } from "./Race-b-1i8d0Y.mjs";
1
+ import { n as RawRace, t as Race } from "./Race-DXOXL9VT.mjs";
2
2
  export { RawRace, Race as default };
package/dist/Race.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as Race } from "./Race-CV98F8P6.mjs";
1
+ import { t as Race } from "./Race-dyrF8Zs5.mjs";
2
2
 
3
3
  export { Race as default };
package/dist/Scan.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as Scan, t as RawScan } from "./Scan-2TQmEr2X.mjs";
1
+ import { n as Scan, t as RawScan } from "./Scan-CJnYpzKb.mjs";
2
2
  export { RawScan, Scan as default };
package/dist/Scan.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as Scan } from "./Scan-Du5aj7LZ.mjs";
1
+ import { t as Scan } from "./Scan-D4p43-1c.mjs";
2
2
 
3
3
  export { Scan as default };
package/dist/Skin.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as Skin, r as WeaponSkin, t as RawSkin } from "./Skin-CqeNtCDU.mjs";
1
+ import { n as Skin, r as WeaponSkin, t as RawSkin } from "./Skin-DJMr6L-X.mjs";
2
2
  export { RawSkin, WeaponSkin, Skin as default };