@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.
- package/dist/Ability.d.mts +1 -1
- package/dist/ChallengeProgress.d.mts +1 -1
- package/dist/Enemy.d.mts +1 -1
- package/dist/Intrinsics.d.mts +1 -1
- package/dist/{ItemConfig-R2z1Z3uo.d.mts → ItemConfig-DxhXby04.d.mts} +2 -2
- package/dist/ItemConfig.d.mts +3 -3
- package/dist/{LoadOutInventory-BtVQX9Mi.d.mts → LoadOutInventory-B84bUV2-.d.mts} +3 -3
- package/dist/LoadOutInventory.d.mts +6 -7
- package/dist/{LoadOutItem-weow3bab.d.mts → LoadOutItem-DWQ4aFI_.d.mts} +3 -3
- package/dist/LoadOutItem.d.mts +4 -5
- package/dist/LoadOutPreset.d.mts +1 -1
- package/dist/Mission.d.mts +1 -1
- package/dist/{OperatorLoadOuts-DtxjrIci.d.mts → OperatorLoadOuts-51DN5Rwo.d.mts} +2 -2
- package/dist/OperatorLoadOuts.d.mts +3 -3
- package/dist/Polarity.d.mts +1 -1
- package/dist/Profile.d.mts +215 -14
- package/dist/Profile.mjs +191 -8
- package/dist/ProfileParser.d.mts +9 -21
- package/dist/ProfileParser.mjs +2 -10
- package/dist/Pvp.d.mts +1 -1
- package/dist/Pvp.mjs +1 -1
- package/dist/Race.d.mts +1 -1
- package/dist/Race.mjs +1 -1
- package/dist/Scan.d.mts +1 -1
- package/dist/Scan.mjs +1 -1
- package/dist/Skin.d.mts +1 -1
- package/dist/Stats.d.mts +324 -8
- package/dist/Stats.mjs +303 -8
- package/dist/Syndicate.d.mts +1 -1
- package/dist/Utils.d.mts +1 -1
- package/dist/Weapon.d.mts +1 -1
- package/dist/Weapon.mjs +1 -1
- package/dist/XpInfo.d.mts +1 -1
- package/package.json +13 -13
- package/dist/Profile-Beptm6wY.d.mts +0 -212
- package/dist/Profile-D15zUqzG.mjs +0 -193
- package/dist/Stats-Bvzk1GOV.mjs +0 -305
- package/dist/Stats-D8GkxqWB.d.mts +0 -325
- /package/dist/{Ability-Bkn1Kr0F.d.mts → Ability-CmHyNfw4.d.mts} +0 -0
- /package/dist/{ChallengeProgress-ByYNDHWY.d.mts → ChallengeProgress-BO8tPybG.d.mts} +0 -0
- /package/dist/{Enemy-VT_y6RNw.d.mts → Enemy-5RVVfZme.d.mts} +0 -0
- /package/dist/{Intrinsics-aQNZre3S.d.mts → Intrinsics-DwonOlUE.d.mts} +0 -0
- /package/dist/{LoadOutPreset-Dvs-Zisw.d.mts → LoadOutPreset-m_1RVkf9.d.mts} +0 -0
- /package/dist/{Mission-Bkx_g_to.d.mts → Mission-CeX2BRp0.d.mts} +0 -0
- /package/dist/{Polarity-0fJe_D8l.d.mts → Polarity-KCoYUO6f.d.mts} +0 -0
- /package/dist/{Pvp-DwOk9iPM.mjs → Pvp-DCfleh26.mjs} +0 -0
- /package/dist/{Pvp-DtncK80C.d.mts → Pvp-R4iYmiAT.d.mts} +0 -0
- /package/dist/{Race-b-1i8d0Y.d.mts → Race-DXOXL9VT.d.mts} +0 -0
- /package/dist/{Race-CV98F8P6.mjs → Race-dyrF8Zs5.mjs} +0 -0
- /package/dist/{Scan-2TQmEr2X.d.mts → Scan-CJnYpzKb.d.mts} +0 -0
- /package/dist/{Scan-Du5aj7LZ.mjs → Scan-D4p43-1c.mjs} +0 -0
- /package/dist/{Skin-CqeNtCDU.d.mts → Skin-DJMr6L-X.d.mts} +0 -0
- /package/dist/{Syndicate-PiVz8ikQ.d.mts → Syndicate-Dq5vLEB-.d.mts} +0 -0
- /package/dist/{Utils-M8z7sZIf.d.mts → Utils-VTFhFHIp.d.mts} +0 -0
- /package/dist/{Weapon-zRX33-22.mjs → Weapon-CsKff27X.mjs} +0 -0
- /package/dist/{Weapon-CUoF9mPh.d.mts → Weapon-DgQ4hNgE.d.mts} +0 -0
- /package/dist/{XpInfo-CpwSvxlR.d.mts → XpInfo-qplT5008.d.mts} +0 -0
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wfcd/profile-parser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Parser for Digital Extreme's profile data",
|
|
5
5
|
"repository": "https://github.com/WFCD/profile-parser",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./Parser": {
|
|
9
|
-
"types": "./dist/ProfileParser.d.
|
|
10
|
-
"default": "./dist/ProfileParser.
|
|
9
|
+
"types": "./dist/ProfileParser.d.mts",
|
|
10
|
+
"default": "./dist/ProfileParser.mjs"
|
|
11
11
|
},
|
|
12
12
|
"./Profile": {
|
|
13
|
-
"types": "./dist/Profile.d.
|
|
14
|
-
"default": "./dist/Profile.
|
|
13
|
+
"types": "./dist/Profile.d.mts",
|
|
14
|
+
"default": "./dist/Profile.mjs"
|
|
15
15
|
},
|
|
16
16
|
"./XpInfo": {
|
|
17
|
-
"types": "./dist/XpInfo.d.
|
|
18
|
-
"default": "./dist/XpInfo.
|
|
17
|
+
"types": "./dist/XpInfo.d.mts",
|
|
18
|
+
"default": "./dist/XpInfo.mjs"
|
|
19
19
|
},
|
|
20
20
|
"./Stats": {
|
|
21
|
-
"types": "./dist/Stats.d.
|
|
22
|
-
"default": "./dist/Stats.
|
|
21
|
+
"types": "./dist/Stats.d.mts",
|
|
22
|
+
"default": "./dist/Stats.mjs"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"public": true,
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"types"
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@biomejs/biome": "2.3.
|
|
33
|
+
"@biomejs/biome": "2.3.10",
|
|
34
34
|
"@types/chai": "^5.2.3",
|
|
35
35
|
"@types/mocha": "^10.0.10",
|
|
36
36
|
"@wfcd/eslint-config": "^1.6.4",
|
|
37
37
|
"c8": "^10.1.3",
|
|
38
|
-
"chai": "^6.2.
|
|
38
|
+
"chai": "^6.2.2",
|
|
39
39
|
"chai-json-equal": "^0.0.1",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
41
|
"install-peerdeps": "^3.0.7",
|
|
42
42
|
"lint-staged": "^16.2.7",
|
|
43
43
|
"mocha": "^11.7.5",
|
|
44
|
-
"tsdown": "^0.
|
|
45
|
-
"tsx": "^4.
|
|
44
|
+
"tsdown": "^0.18.2",
|
|
45
|
+
"tsx": "^4.21.0",
|
|
46
46
|
"typescript": "^5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
@@ -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 };
|