@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.
Files changed (87) hide show
  1. package/dist/Ability.d.mts +18 -1
  2. package/dist/Ability.mjs +23 -1
  3. package/dist/ChallengeProgress.d.mts +19 -1
  4. package/dist/ChallengeProgress.mjs +24 -1
  5. package/dist/Enemy.d.mts +43 -1
  6. package/dist/Enemy.mjs +42 -1
  7. package/dist/Intrinsics.d.mts +66 -1
  8. package/dist/Intrinsics.mjs +65 -1
  9. package/dist/ItemConfig.d.mts +50 -3
  10. package/dist/ItemConfig.mjs +48 -3
  11. package/dist/LoadOutInventory.d.mts +52 -7
  12. package/dist/LoadOutInventory.mjs +50 -7
  13. package/dist/LoadOutItem.d.mts +119 -5
  14. package/dist/LoadOutItem.mjs +125 -5
  15. package/dist/LoadOutPreset.d.mts +82 -1
  16. package/dist/LoadOutPreset.mjs +81 -2
  17. package/dist/Mission.d.mts +52 -1
  18. package/dist/Mission.mjs +53 -1
  19. package/dist/OperatorLoadOuts.d.mts +80 -3
  20. package/dist/OperatorLoadOuts.mjs +74 -3
  21. package/dist/Polarity.d.mts +25 -1
  22. package/dist/Polarity.mjs +26 -1
  23. package/dist/Profile.d.mts +211 -14
  24. package/dist/Profile.mjs +191 -14
  25. package/dist/ProfileParser.d.mts +7 -25
  26. package/dist/ProfileParser.mjs +4 -23
  27. package/dist/Pvp.d.mts +35 -1
  28. package/dist/Pvp.mjs +34 -1
  29. package/dist/Race.d.mts +31 -1
  30. package/dist/Race.mjs +33 -1
  31. package/dist/Scan.d.mts +26 -1
  32. package/dist/Scan.mjs +25 -1
  33. package/dist/Skin.d.mts +27 -1
  34. package/dist/Skin.mjs +34 -2
  35. package/dist/Stats.d.mts +324 -8
  36. package/dist/Stats.mjs +303 -8
  37. package/dist/Syndicate.d.mts +32 -1
  38. package/dist/Syndicate.mjs +31 -1
  39. package/dist/Utils.d.mts +35 -1
  40. package/dist/Utils.mjs +58 -1
  41. package/dist/Weapon.d.mts +31 -1
  42. package/dist/Weapon.mjs +62 -1
  43. package/dist/XpInfo.d.mts +33 -1
  44. package/dist/XpInfo.mjs +33 -2
  45. package/package.json +10 -11
  46. package/dist/Ability-Bkn1Kr0F.d.mts +0 -19
  47. package/dist/Ability-DsyqxzjP.mjs +0 -25
  48. package/dist/ChallengeProgress-ByYNDHWY.d.mts +0 -20
  49. package/dist/ChallengeProgress-Cpks92At.mjs +0 -26
  50. package/dist/Enemy-B3JSksZZ.mjs +0 -44
  51. package/dist/Enemy-VT_y6RNw.d.mts +0 -44
  52. package/dist/Intrinsics-aQNZre3S.d.mts +0 -67
  53. package/dist/Intrinsics-kYw_LPq1.mjs +0 -67
  54. package/dist/ItemConfig-DTIrA_P_.mjs +0 -50
  55. package/dist/ItemConfig-R2z1Z3uo.d.mts +0 -51
  56. package/dist/LoadOutInventory-BbaIazHX.mjs +0 -52
  57. package/dist/LoadOutInventory-BtVQX9Mi.d.mts +0 -53
  58. package/dist/LoadOutItem-p-f5RdTB.mjs +0 -127
  59. package/dist/LoadOutItem-weow3bab.d.mts +0 -120
  60. package/dist/LoadOutPreset-CwbK2VvR.mjs +0 -83
  61. package/dist/LoadOutPreset-Dvs-Zisw.d.mts +0 -83
  62. package/dist/Mission-Bkx_g_to.d.mts +0 -53
  63. package/dist/Mission-DfGQMV7B.mjs +0 -55
  64. package/dist/OperatorLoadOuts-DtxjrIci.d.mts +0 -75
  65. package/dist/OperatorLoadOuts-LYGpTHuj.mjs +0 -76
  66. package/dist/Polarity-0fJe_D8l.d.mts +0 -26
  67. package/dist/Polarity-Q2JfovbR.mjs +0 -28
  68. package/dist/Profile-Beptm6wY.d.mts +0 -212
  69. package/dist/Profile-D15zUqzG.mjs +0 -193
  70. package/dist/Pvp-DtncK80C.d.mts +0 -36
  71. package/dist/Pvp-DwOk9iPM.mjs +0 -36
  72. package/dist/Race-CV98F8P6.mjs +0 -35
  73. package/dist/Race-b-1i8d0Y.d.mts +0 -32
  74. package/dist/Scan-2TQmEr2X.d.mts +0 -27
  75. package/dist/Scan-Du5aj7LZ.mjs +0 -27
  76. package/dist/Skin-CqeNtCDU.d.mts +0 -28
  77. package/dist/Skin-D_brWp2g.mjs +0 -36
  78. package/dist/Stats-Bvzk1GOV.mjs +0 -305
  79. package/dist/Stats-D8GkxqWB.d.mts +0 -325
  80. package/dist/Syndicate-CcRnzmZs.mjs +0 -33
  81. package/dist/Syndicate-PiVz8ikQ.d.mts +0 -33
  82. package/dist/Utils-Bqm2Gg1K.mjs +0 -59
  83. package/dist/Utils-M8z7sZIf.d.mts +0 -37
  84. package/dist/Weapon-CUoF9mPh.d.mts +0 -32
  85. package/dist/Weapon-zRX33-22.mjs +0 -64
  86. package/dist/XpInfo-CpwSvxlR.d.mts +0 -34
  87. package/dist/XpInfo-IT6LOTzI.mjs +0 -35
@@ -1,2 +1,19 @@
1
- import { n as RawAbility, t as Ability } from "./Ability-Bkn1Kr0F.mjs";
1
+ //#region src/Ability.d.ts
2
+ interface RawAbility {
3
+ type: string;
4
+ used: number;
5
+ }
6
+ /**
7
+ * Represents a players used ability
8
+ * @module
9
+ */
10
+ declare class Ability {
11
+ uniqueName: string;
12
+ used: number;
13
+ /**
14
+ * @param ability The ability
15
+ */
16
+ constructor(ability: RawAbility);
17
+ }
18
+ //#endregion
2
19
  export { RawAbility, Ability as default };
package/dist/Ability.mjs CHANGED
@@ -1,3 +1,25 @@
1
- import { t as Ability } from "./Ability-DsyqxzjP.mjs";
1
+ //#region src/Ability.ts
2
+ /**
3
+ * Represents a players used ability
4
+ * @module
5
+ */
6
+ var Ability = class {
7
+ uniqueName;
8
+ used;
9
+ /**
10
+ * @param ability The ability
11
+ */
12
+ constructor(ability) {
13
+ /**
14
+ * The ability unique name
15
+ */
16
+ this.uniqueName = ability.type;
17
+ /**
18
+ * How many time the ability was used in the player's lifetime
19
+ */
20
+ this.used = ability.used;
21
+ }
22
+ };
2
23
 
24
+ //#endregion
3
25
  export { Ability as default };
@@ -1,2 +1,20 @@
1
- import { n as RawChallengeProgress, t as ChallengeProgress } from "./ChallengeProgress-ByYNDHWY.mjs";
1
+ //#region src/ChallengeProgress.d.ts
2
+ interface RawChallengeProgress {
3
+ Name: string;
4
+ Progress: number;
5
+ }
6
+ /**
7
+ * Player completed or in progress challenges
8
+ * @module
9
+ */
10
+ declare class ChallengeProgress {
11
+ name: string;
12
+ progress: number;
13
+ /**
14
+ *
15
+ * @param challenge The challenge object to parse
16
+ */
17
+ constructor(challenge: RawChallengeProgress);
18
+ }
19
+ //#endregion
2
20
  export { RawChallengeProgress, ChallengeProgress as default };
@@ -1,3 +1,26 @@
1
- import { t as ChallengeProgress } from "./ChallengeProgress-Cpks92At.mjs";
1
+ //#region src/ChallengeProgress.ts
2
+ /**
3
+ * Player completed or in progress challenges
4
+ * @module
5
+ */
6
+ var ChallengeProgress = class {
7
+ name;
8
+ progress;
9
+ /**
10
+ *
11
+ * @param challenge The challenge object to parse
12
+ */
13
+ constructor(challenge) {
14
+ /**
15
+ * Name of the challenge
16
+ */
17
+ this.name = challenge.Name;
18
+ /**
19
+ * Progress towards completing this challenge
20
+ */
21
+ this.progress = challenge.Progress;
22
+ }
23
+ };
2
24
 
25
+ //#endregion
3
26
  export { ChallengeProgress as default };
package/dist/Enemy.d.mts CHANGED
@@ -1,2 +1,44 @@
1
- import { n as RawEnemy, t as Enemy } from "./Enemy-VT_y6RNw.mjs";
1
+ //#region src/Enemy.d.ts
2
+ interface RawEnemy {
3
+ type: string;
4
+ kills: number;
5
+ headshots: number;
6
+ executions: number;
7
+ assists: number;
8
+ deaths: number;
9
+ }
10
+ /**
11
+ * An enemy killed/executed by player
12
+ */
13
+ declare class Enemy {
14
+ /**
15
+ * Enemy's unique name
16
+ */
17
+ uniqueName: string;
18
+ /**
19
+ * How many times the player has killed this enemy type
20
+ */
21
+ kills: number;
22
+ /**
23
+ * The amount of kills that were headshots
24
+ */
25
+ headshots: number;
26
+ /**
27
+ * The amount of kills that were finishers
28
+ */
29
+ executions: number;
30
+ /**
31
+ * The amount of kills that were assits
32
+ */
33
+ assists: number;
34
+ /**
35
+ * How many times this enemy type has killed the player
36
+ */
37
+ deaths: number;
38
+ /**
39
+ * @param enemy The enemy
40
+ */
41
+ constructor(enemy: RawEnemy);
42
+ }
43
+ //#endregion
2
44
  export { RawEnemy, Enemy as default };
package/dist/Enemy.mjs CHANGED
@@ -1,3 +1,44 @@
1
- import { t as Enemy } from "./Enemy-B3JSksZZ.mjs";
1
+ //#region src/Enemy.ts
2
+ /**
3
+ * An enemy killed/executed by player
4
+ */
5
+ var Enemy = class {
6
+ /**
7
+ * Enemy's unique name
8
+ */
9
+ uniqueName;
10
+ /**
11
+ * How many times the player has killed this enemy type
12
+ */
13
+ kills;
14
+ /**
15
+ * The amount of kills that were headshots
16
+ */
17
+ headshots;
18
+ /**
19
+ * The amount of kills that were finishers
20
+ */
21
+ executions;
22
+ /**
23
+ * The amount of kills that were assits
24
+ */
25
+ assists;
26
+ /**
27
+ * How many times this enemy type has killed the player
28
+ */
29
+ deaths;
30
+ /**
31
+ * @param enemy The enemy
32
+ */
33
+ constructor(enemy) {
34
+ this.uniqueName = enemy.type;
35
+ this.kills = enemy.kills;
36
+ this.headshots = enemy.headshots;
37
+ this.executions = enemy.executions;
38
+ this.assists = enemy.assists;
39
+ this.deaths = enemy.deaths;
40
+ }
41
+ };
2
42
 
43
+ //#endregion
3
44
  export { Enemy as default };
@@ -1,2 +1,67 @@
1
- import { n as RawIntrinsics, t as Intrinsics } from "./Intrinsics-aQNZre3S.mjs";
1
+ //#region src/Intrinsics.d.ts
2
+ interface RawIntrinsics {
3
+ LPS_ENGINEERING?: number;
4
+ LPS_GUNNERY?: number;
5
+ LPS_PILOTING?: number;
6
+ LPS_TACTICAL?: number;
7
+ LPS_COMMAND?: number;
8
+ LPP_DRIFTER?: number;
9
+ LPS_DRIFT_RIDING?: number;
10
+ LPS_DRIFT_COMBAT?: number;
11
+ LPS_DRIFT_OPPORTUNITY?: number;
12
+ LPS_DRIFT_ENDURANCE?: number;
13
+ LPP_SPACE?: number;
14
+ }
15
+ /**
16
+ * Player's intrinsics ranks
17
+ * @module
18
+ */
19
+ declare class Intrinsics {
20
+ /**
21
+ * Intrinsic points for railjack
22
+ */
23
+ railjack: number;
24
+ /**
25
+ * Railjack engineering rank
26
+ */
27
+ engineering: number;
28
+ /**
29
+ * Railjack gunnery rank
30
+ */
31
+ gunnery: number;
32
+ /**
33
+ * Railjack piloting rank
34
+ */
35
+ piloting: number;
36
+ /**
37
+ * Railjack tactical rank
38
+ */
39
+ tactical: number;
40
+ /**
41
+ * Railjack command rank
42
+ */
43
+ command: number;
44
+ /**
45
+ * Intrinsic points for railjack
46
+ */
47
+ drifter: number;
48
+ /**
49
+ * Drifter riding rank
50
+ */
51
+ riding: number;
52
+ /**
53
+ * Drifter combat rank
54
+ */
55
+ combat: number;
56
+ /**
57
+ * Drifter opportunity rank
58
+ */
59
+ opportunity: number;
60
+ /**
61
+ * Drifter endurance rank
62
+ */
63
+ endurance: number;
64
+ constructor(skills: RawIntrinsics);
65
+ }
66
+ //#endregion
2
67
  export { RawIntrinsics, Intrinsics as default };
@@ -1,3 +1,67 @@
1
- import { t as Intrinsics } from "./Intrinsics-kYw_LPq1.mjs";
1
+ //#region src/Intrinsics.ts
2
+ /**
3
+ * Player's intrinsics ranks
4
+ * @module
5
+ */
6
+ var Intrinsics = class {
7
+ /**
8
+ * Intrinsic points for railjack
9
+ */
10
+ railjack;
11
+ /**
12
+ * Railjack engineering rank
13
+ */
14
+ engineering;
15
+ /**
16
+ * Railjack gunnery rank
17
+ */
18
+ gunnery;
19
+ /**
20
+ * Railjack piloting rank
21
+ */
22
+ piloting;
23
+ /**
24
+ * Railjack tactical rank
25
+ */
26
+ tactical;
27
+ /**
28
+ * Railjack command rank
29
+ */
30
+ command;
31
+ /**
32
+ * Intrinsic points for railjack
33
+ */
34
+ drifter;
35
+ /**
36
+ * Drifter riding rank
37
+ */
38
+ riding;
39
+ /**
40
+ * Drifter combat rank
41
+ */
42
+ combat;
43
+ /**
44
+ * Drifter opportunity rank
45
+ */
46
+ opportunity;
47
+ /**
48
+ * Drifter endurance rank
49
+ */
50
+ endurance;
51
+ constructor(skills) {
52
+ this.railjack = Math.floor((skills.LPP_SPACE ?? 0) / 1e3);
53
+ this.engineering = skills.LPS_ENGINEERING ?? 0;
54
+ this.gunnery = skills.LPS_GUNNERY ?? 0;
55
+ this.piloting = skills.LPS_PILOTING ?? 0;
56
+ this.tactical = skills.LPS_TACTICAL ?? 0;
57
+ this.command = skills.LPS_COMMAND ?? 0;
58
+ this.drifter = Math.floor((skills.LPP_DRIFTER ?? 0) / 1e3);
59
+ this.riding = skills.LPS_DRIFT_RIDING ?? 0;
60
+ this.combat = skills.LPS_DRIFT_COMBAT ?? 0;
61
+ this.opportunity = skills.LPS_DRIFT_OPPORTUNITY ?? 0;
62
+ this.endurance = skills.LPS_DRIFT_ENDURANCE ?? 0;
63
+ }
64
+ };
2
65
 
66
+ //#endregion
3
67
  export { Intrinsics as default };
@@ -1,4 +1,51 @@
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 from "./Skin.mjs";
2
+ import { ProfileRawColors } from "./Utils.mjs";
3
+ import { ColorMap } from "@wfcd/items";
4
+ import { Locale } from "warframe-worldstate-data";
5
+
6
+ //#region src/ItemConfig.d.ts
7
+ interface RawItemConfig {
8
+ Skins?: string[];
9
+ PvpUpgrades?: string[];
10
+ pricol?: ProfileRawColors;
11
+ sigcol?: ProfileRawColors;
12
+ attcol?: ProfileRawColors;
13
+ syancol?: ProfileRawColors;
14
+ }
15
+ /**
16
+ * Item customizations such as colors and applied skins
17
+ * @module
18
+ */
19
+ declare class ItemConfig {
20
+ /**
21
+ * Array of unique names for the skins applied to item
22
+ */
23
+ skins?: Skin[];
24
+ /**
25
+ * Array of PVP unique name upgrades applied
26
+ */
27
+ conclaveUpgrades?: string[];
28
+ /**
29
+ * Primary colors applied to item if they exist
30
+ */
31
+ primaryColor?: ColorMap;
32
+ /**
33
+ * Sigil colors applied to item if they exist
34
+ */
35
+ sigilColor?: ColorMap;
36
+ /**
37
+ * Attachment colors applied to item if they exist
38
+ */
39
+ attachmentsColor?: ColorMap;
40
+ /**
41
+ * Syandana colors applied to item if they exist
42
+ */
43
+ syandanaColor?: ColorMap;
44
+ /**
45
+ *
46
+ * @param config The configuration
47
+ */
48
+ constructor(config: RawItemConfig, locale?: Locale);
49
+ }
50
+ //#endregion
4
51
  export { RawItemConfig, ItemConfig as default };
@@ -1,5 +1,50 @@
1
- import "./Utils-Bqm2Gg1K.mjs";
2
- import "./Skin-D_brWp2g.mjs";
3
- import { t as ItemConfig } from "./ItemConfig-DTIrA_P_.mjs";
1
+ import { mapToHex } from "./Utils.mjs";
2
+ import Skin from "./Skin.mjs";
3
+ import { colors } from "@wfcd/items/utilities";
4
4
 
5
+ //#region src/ItemConfig.ts
6
+ /**
7
+ * Item customizations such as colors and applied skins
8
+ * @module
9
+ */
10
+ var ItemConfig = class {
11
+ /**
12
+ * Array of unique names for the skins applied to item
13
+ */
14
+ skins;
15
+ /**
16
+ * Array of PVP unique name upgrades applied
17
+ */
18
+ conclaveUpgrades;
19
+ /**
20
+ * Primary colors applied to item if they exist
21
+ */
22
+ primaryColor;
23
+ /**
24
+ * Sigil colors applied to item if they exist
25
+ */
26
+ sigilColor;
27
+ /**
28
+ * Attachment colors applied to item if they exist
29
+ */
30
+ attachmentsColor;
31
+ /**
32
+ * Syandana colors applied to item if they exist
33
+ */
34
+ syandanaColor;
35
+ /**
36
+ *
37
+ * @param config The configuration
38
+ */
39
+ constructor(config, locale = "en") {
40
+ this.skins = config.Skins?.filter(Boolean).map((s) => new Skin({ ItemType: s }, locale));
41
+ if (config.PvpUpgrades) this.conclaveUpgrades = config.PvpUpgrades;
42
+ if (config.pricol) this.primaryColor = colors.mapColors(mapToHex(config.pricol));
43
+ if (config.sigcol) this.sigilColor = colors.mapColors(mapToHex(config.sigcol));
44
+ if (config.attcol) this.attachmentsColor = colors.mapColors(mapToHex(config.attcol));
45
+ if (config.syancol) this.syandanaColor = colors.mapColors(mapToHex(config.syancol));
46
+ }
47
+ };
48
+
49
+ //#endregion
5
50
  export { ItemConfig as default };
@@ -1,8 +1,53 @@
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, { RawSkin } from "./Skin.mjs";
2
+ import LoadOutItem, { RawLoadOutItem } from "./LoadOutItem.mjs";
3
+ import XpInfo, { RawXpItem } from "./XpInfo.mjs";
4
+ import { Locale } from "warframe-worldstate-data";
5
+
6
+ //#region src/LoadOutInventory.d.ts
7
+ interface RawLoadOut {
8
+ WeaponSkins: RawSkin[];
9
+ Suits: RawLoadOutItem[];
10
+ Pistols?: RawLoadOutItem[];
11
+ LongGuns?: RawLoadOutItem[];
12
+ Melee?: RawLoadOutItem[];
13
+ XPInfo: RawXpItem[];
14
+ }
15
+ /**
16
+ * Player loudout
17
+ * @module
18
+ */
19
+ declare class LoadOutInventory {
20
+ /**
21
+ * Skins applied to weapons
22
+ */
23
+ weaponSkins: Skin[];
24
+ /**
25
+ * An array of the player's currently equiped Warframe (or powersuits)
26
+ */
27
+ suits: LoadOutItem[];
28
+ /**
29
+ * An array of the player's currently equiped secondary weapon
30
+ */
31
+ secondary?: LoadOutItem[];
32
+ /**
33
+ * An array of the player's currently equiped primary weapon
34
+ */
35
+ primary?: LoadOutItem[];
36
+ /**
37
+ * An array of the player's currently equiped melee weapon
38
+ */
39
+ melee?: LoadOutItem[];
40
+ /**
41
+ * Items that have counted towards the players mastery rank
42
+ */
43
+ xpInfo: XpInfo[];
44
+ /**
45
+ *
46
+ * @param item The loadout data
47
+ * @param locale The locale to return loudout items in. Default is en
48
+ * @param withItem Whether or not to include items
49
+ */
50
+ constructor(item: RawLoadOut, locale?: Locale, withItem?: boolean);
51
+ }
52
+ //#endregion
8
53
  export { RawLoadOut, LoadOutInventory as default };
@@ -1,9 +1,52 @@
1
- import "./Utils-Bqm2Gg1K.mjs";
2
- import "./Skin-D_brWp2g.mjs";
3
- import "./ItemConfig-DTIrA_P_.mjs";
4
- import "./Polarity-Q2JfovbR.mjs";
5
- import "./LoadOutItem-p-f5RdTB.mjs";
6
- import "./XpInfo-IT6LOTzI.mjs";
7
- import { t as LoadOutInventory } from "./LoadOutInventory-BbaIazHX.mjs";
1
+ import Skin from "./Skin.mjs";
2
+ import LoadOutItem from "./LoadOutItem.mjs";
3
+ import XpInfo from "./XpInfo.mjs";
8
4
 
5
+ //#region src/LoadOutInventory.ts
6
+ /**
7
+ * Player loudout
8
+ * @module
9
+ */
10
+ var LoadOutInventory = class {
11
+ /**
12
+ * Skins applied to weapons
13
+ */
14
+ weaponSkins;
15
+ /**
16
+ * An array of the player's currently equiped Warframe (or powersuits)
17
+ */
18
+ suits;
19
+ /**
20
+ * An array of the player's currently equiped secondary weapon
21
+ */
22
+ secondary;
23
+ /**
24
+ * An array of the player's currently equiped primary weapon
25
+ */
26
+ primary;
27
+ /**
28
+ * An array of the player's currently equiped melee weapon
29
+ */
30
+ melee;
31
+ /**
32
+ * Items that have counted towards the players mastery rank
33
+ */
34
+ xpInfo;
35
+ /**
36
+ *
37
+ * @param item The loadout data
38
+ * @param locale The locale to return loudout items in. Default is en
39
+ * @param withItem Whether or not to include items
40
+ */
41
+ constructor(item, locale = "en", withItem = false) {
42
+ this.weaponSkins = item.WeaponSkins.map((s) => new Skin(s, locale));
43
+ this.suits = item.Suits.map((s) => new LoadOutItem(s, locale));
44
+ this.secondary = item.Pistols?.map((p) => new LoadOutItem(p, locale));
45
+ this.primary = item.LongGuns?.map((lg) => new LoadOutItem(lg, locale));
46
+ this.melee = item.Melee?.map((m) => new LoadOutItem(m, locale));
47
+ this.xpInfo = item.XPInfo.map((xp) => new XpInfo(xp, locale, withItem));
48
+ }
49
+ };
50
+
51
+ //#endregion
9
52
  export { LoadOutInventory as default };
@@ -1,6 +1,120 @@
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 { RawDate } from "./Utils.mjs";
2
+ import ItemConfig, { RawItemConfig } from "./ItemConfig.mjs";
3
+ import Polarity, { RawPolarity } from "./Polarity.mjs";
4
+ import { ColorMap, Item, RawColors } from "@wfcd/items";
5
+ import { Locale } from "warframe-worldstate-data";
6
+
7
+ //#region src/LoadOutItem.d.ts
8
+ interface RawLoadOutItem {
9
+ ItemId: {
10
+ $oid: string;
11
+ };
12
+ ItemType: string;
13
+ ItemName?: string;
14
+ Configs: RawItemConfig[];
15
+ UpgradeType?: string;
16
+ UpgradeFingerprint?: unknown;
17
+ Features: number;
18
+ UpgradeVer: number;
19
+ XP?: number;
20
+ Polarized?: number;
21
+ Polarity?: RawPolarity[];
22
+ FocusLens?: string;
23
+ CustomizationSlotPurchases?: number;
24
+ pricol?: RawColors;
25
+ sigcol?: RawColors;
26
+ ugly?: boolean;
27
+ attcol?: RawColors;
28
+ syancol?: RawColors;
29
+ InfestationDate?: RawDate;
30
+ }
31
+ /**
32
+ * An an item in LoadOutInventory
33
+ * @module
34
+ */
35
+ declare class LoadOutItem {
36
+ /**
37
+ * Item ID
38
+ */
39
+ itemId: string;
40
+ /**
41
+ * Item unique name
42
+ */
43
+ uniqueName: string;
44
+ /**
45
+ * Item in-game name
46
+ */
47
+ name?: string;
48
+ /**
49
+ * Complete item from @wfcd/items
50
+ */
51
+ item?: Item;
52
+ /**
53
+ * The name of the Lich, Sister, or Technocyte
54
+ */
55
+ nemesis?: string;
56
+ /**
57
+ * Configuration for this weapon. Such as colors and skins applied by the player
58
+ */
59
+ configs: ItemConfig[];
60
+ /**
61
+ * The upgrade that was applied to this weapon
62
+ */
63
+ upgradeType?: string;
64
+ /**
65
+ * Information on the upgradeType that was applied
66
+ * TODO need model for for fingerprint
67
+ */
68
+ upgradeFingerprint: unknown;
69
+ features: number;
70
+ upgradeVer: number;
71
+ /**
72
+ * XP earned with this weapon
73
+ */
74
+ xp?: number;
75
+ /**
76
+ * How many mod slots are currently polarized.
77
+ */
78
+ polarized?: number;
79
+ /**
80
+ * Which polarity types exist on the weapon
81
+ */
82
+ polarity?: Polarity[];
83
+ /**
84
+ * Focus lens applied
85
+ */
86
+ focuseLens?: string;
87
+ customizationSlotPurchases: number;
88
+ /**
89
+ * Primary colors applied to item if they exist
90
+ */
91
+ primaryColor?: ColorMap;
92
+ /**
93
+ * Sigil colors applied to item if they exist
94
+ */
95
+ sigilColor?: ColorMap;
96
+ /**
97
+ * Whether prime details are enabled or not
98
+ */
99
+ enablePrime: boolean;
100
+ /**
101
+ * Attachment colors applied to item if they exist
102
+ */
103
+ attachmentsColor?: ColorMap;
104
+ /**
105
+ * Syandana colors applied to item if they exist
106
+ */
107
+ syandanaColor?: ColorMap;
108
+ /**
109
+ * If set will show when the player's warframe was infested.
110
+ */
111
+ infestationDate?: Date;
112
+ /**
113
+ *
114
+ * @param {Object} loadOutItem The loadout item from LoadoutInventory
115
+ * @param {string} [locale='en'] The locale to return item in
116
+ */
117
+ constructor(loadOutItem: RawLoadOutItem, locale?: Locale);
118
+ }
119
+ //#endregion
6
120
  export { RawLoadOutItem, LoadOutItem as default };