@wfcd/profile-parser 2.0.11 → 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 (83) 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 -6
  12. package/dist/LoadOutInventory.mjs +50 -7
  13. package/dist/LoadOutItem.d.mts +119 -4
  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 +10 -14
  24. package/dist/Profile.mjs +7 -13
  25. package/dist/ProfileParser.d.mts +5 -11
  26. package/dist/ProfileParser.mjs +2 -13
  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 +7 -7
  36. package/dist/Stats.mjs +7 -7
  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 +8 -9
  46. package/dist/Ability-CmHyNfw4.d.mts +0 -19
  47. package/dist/Ability-DsyqxzjP.mjs +0 -25
  48. package/dist/ChallengeProgress-BO8tPybG.d.mts +0 -20
  49. package/dist/ChallengeProgress-Cpks92At.mjs +0 -26
  50. package/dist/Enemy-5RVVfZme.d.mts +0 -44
  51. package/dist/Enemy-B3JSksZZ.mjs +0 -44
  52. package/dist/Intrinsics-DwonOlUE.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-DxhXby04.d.mts +0 -51
  56. package/dist/LoadOutInventory-B84bUV2-.d.mts +0 -53
  57. package/dist/LoadOutInventory-BbaIazHX.mjs +0 -52
  58. package/dist/LoadOutItem-DWQ4aFI_.d.mts +0 -120
  59. package/dist/LoadOutItem-p-f5RdTB.mjs +0 -127
  60. package/dist/LoadOutPreset-CwbK2VvR.mjs +0 -83
  61. package/dist/LoadOutPreset-m_1RVkf9.d.mts +0 -83
  62. package/dist/Mission-CeX2BRp0.d.mts +0 -53
  63. package/dist/Mission-DfGQMV7B.mjs +0 -55
  64. package/dist/OperatorLoadOuts-51DN5Rwo.d.mts +0 -75
  65. package/dist/OperatorLoadOuts-LYGpTHuj.mjs +0 -76
  66. package/dist/Polarity-KCoYUO6f.d.mts +0 -26
  67. package/dist/Polarity-Q2JfovbR.mjs +0 -28
  68. package/dist/Pvp-DCfleh26.mjs +0 -36
  69. package/dist/Pvp-R4iYmiAT.d.mts +0 -36
  70. package/dist/Race-DXOXL9VT.d.mts +0 -32
  71. package/dist/Race-dyrF8Zs5.mjs +0 -35
  72. package/dist/Scan-CJnYpzKb.d.mts +0 -27
  73. package/dist/Scan-D4p43-1c.mjs +0 -27
  74. package/dist/Skin-DJMr6L-X.d.mts +0 -28
  75. package/dist/Skin-D_brWp2g.mjs +0 -36
  76. package/dist/Syndicate-CcRnzmZs.mjs +0 -33
  77. package/dist/Syndicate-Dq5vLEB-.d.mts +0 -33
  78. package/dist/Utils-Bqm2Gg1K.mjs +0 -59
  79. package/dist/Utils-VTFhFHIp.d.mts +0 -37
  80. package/dist/Weapon-CsKff27X.mjs +0 -64
  81. package/dist/Weapon-DgQ4hNgE.d.mts +0 -32
  82. package/dist/XpInfo-IT6LOTzI.mjs +0 -35
  83. package/dist/XpInfo-qplT5008.d.mts +0 -34
@@ -1,7 +1,127 @@
1
- import "./Utils-Bqm2Gg1K.mjs";
2
- import "./Skin-D_brWp2g.mjs";
3
- import "./ItemConfig-DTIrA_P_.mjs";
4
- import "./Polarity-Q2JfovbR.mjs";
5
- import { t as LoadOutItem } from "./LoadOutItem-p-f5RdTB.mjs";
1
+ import { find } from "./Utils.mjs";
2
+ import ItemConfig from "./ItemConfig.mjs";
3
+ import Polarity from "./Polarity.mjs";
4
+ import { parseDate, toTitleCase } from "warframe-worldstate-data/utilities";
5
+ import { colors } from "@wfcd/items/utilities";
6
6
 
7
+ //#region src/LoadOutItem.ts
8
+ /**
9
+ * An an item in LoadOutInventory
10
+ * @module
11
+ */
12
+ var LoadOutItem = class {
13
+ /**
14
+ * Item ID
15
+ */
16
+ itemId;
17
+ /**
18
+ * Item unique name
19
+ */
20
+ uniqueName;
21
+ /**
22
+ * Item in-game name
23
+ */
24
+ name;
25
+ /**
26
+ * Complete item from @wfcd/items
27
+ */
28
+ item;
29
+ /**
30
+ * The name of the Lich, Sister, or Technocyte
31
+ */
32
+ nemesis;
33
+ /**
34
+ * Configuration for this weapon. Such as colors and skins applied by the player
35
+ */
36
+ configs;
37
+ /**
38
+ * The upgrade that was applied to this weapon
39
+ */
40
+ upgradeType;
41
+ /**
42
+ * Information on the upgradeType that was applied
43
+ * TODO need model for for fingerprint
44
+ */
45
+ upgradeFingerprint;
46
+ features;
47
+ upgradeVer;
48
+ /**
49
+ * XP earned with this weapon
50
+ */
51
+ xp;
52
+ /**
53
+ * How many mod slots are currently polarized.
54
+ */
55
+ polarized;
56
+ /**
57
+ * Which polarity types exist on the weapon
58
+ */
59
+ polarity;
60
+ /**
61
+ * Focus lens applied
62
+ */
63
+ focuseLens;
64
+ customizationSlotPurchases;
65
+ /**
66
+ * Primary colors applied to item if they exist
67
+ */
68
+ primaryColor;
69
+ /**
70
+ * Sigil colors applied to item if they exist
71
+ */
72
+ sigilColor;
73
+ /**
74
+ * Whether prime details are enabled or not
75
+ */
76
+ enablePrime;
77
+ /**
78
+ * Attachment colors applied to item if they exist
79
+ */
80
+ attachmentsColor;
81
+ /**
82
+ * Syandana colors applied to item if they exist
83
+ */
84
+ syandanaColor;
85
+ /**
86
+ * If set will show when the player's warframe was infested.
87
+ */
88
+ infestationDate;
89
+ /**
90
+ *
91
+ * @param {Object} loadOutItem The loadout item from LoadoutInventory
92
+ * @param {string} [locale='en'] The locale to return item in
93
+ */
94
+ constructor(loadOutItem, locale = "en") {
95
+ this.itemId = loadOutItem.ItemId.$oid;
96
+ this.uniqueName = loadOutItem.ItemType;
97
+ const item = find(loadOutItem.ItemType, locale);
98
+ if (item) {
99
+ this.name = item.name;
100
+ this.item = item;
101
+ }
102
+ if (loadOutItem.ItemName) {
103
+ const [, nemesis] = loadOutItem.ItemName.split("|");
104
+ if (nemesis !== void 0) this.nemesis = toTitleCase(nemesis);
105
+ else this.name = loadOutItem.ItemName;
106
+ }
107
+ this.configs = loadOutItem.Configs.map((c) => new ItemConfig(c));
108
+ if (loadOutItem.UpgradeType) this.upgradeType = loadOutItem.UpgradeType;
109
+ this.upgradeFingerprint = loadOutItem.UpgradeFingerprint;
110
+ this.features = loadOutItem.Features;
111
+ this.upgradeVer = loadOutItem.UpgradeVer;
112
+ this.xp = loadOutItem.XP;
113
+ this.polarized = loadOutItem.Polarized;
114
+ this.polarity = loadOutItem.Polarity?.map((p) => new Polarity(p));
115
+ this.focuseLens = loadOutItem.FocusLens;
116
+ this.customizationSlotPurchases = loadOutItem.CustomizationSlotPurchases ?? 0;
117
+ if (loadOutItem.pricol) this.primaryColor = colors.mapColors(loadOutItem.pricol);
118
+ if (loadOutItem.sigcol) this.sigilColor = colors.mapColors(loadOutItem.sigcol);
119
+ this.enablePrime = loadOutItem.ugly ?? false;
120
+ if (loadOutItem.attcol) this.attachmentsColor = colors.mapColors(loadOutItem.attcol);
121
+ if (loadOutItem.syancol) this.syandanaColor = colors.mapColors(loadOutItem.syancol);
122
+ if (loadOutItem.InfestationDate) this.infestationDate = parseDate(loadOutItem.InfestationDate);
123
+ }
124
+ };
125
+
126
+ //#endregion
7
127
  export { LoadOutItem as default };
@@ -1,2 +1,83 @@
1
- import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-m_1RVkf9.mjs";
1
+ //#region src/LoadOutPreset.d.ts
2
+ interface RawSlotPreset {
3
+ ItemId?: {
4
+ $oid: string;
5
+ };
6
+ mod?: number;
7
+ cus?: number;
8
+ hide?: boolean;
9
+ }
10
+ interface RawLoadOutPreset {
11
+ FocusSchool: string;
12
+ PresetIcon: string;
13
+ Favorite: boolean;
14
+ n: string;
15
+ s: RawSlotPreset;
16
+ l?: RawSlotPreset;
17
+ p?: RawSlotPreset;
18
+ h?: RawSlotPreset;
19
+ m?: RawSlotPreset;
20
+ a?: RawSlotPreset;
21
+ b?: RawSlotPreset;
22
+ }
23
+ declare class SlotPreset {
24
+ id?: string;
25
+ modPreset?: string;
26
+ appearancePreset?: string;
27
+ isHidden: boolean;
28
+ constructor(slot: RawSlotPreset);
29
+ }
30
+ declare class LoadOutPreset {
31
+ /**
32
+ * Focus School
33
+ */
34
+ focusSchool: string;
35
+ /**
36
+ * Preset icon
37
+ *
38
+ * Note:
39
+ * Icon in-game seems to be an image of whatever Warframe is equipped on it
40
+ */
41
+ icon: string;
42
+ /**
43
+ * Whether this preset is a favorite
44
+ */
45
+ isFavorite: boolean;
46
+ /**
47
+ * Preset name
48
+ */
49
+ name: string;
50
+ /**
51
+ * Warframe equipped in preset
52
+ */
53
+ warframe: SlotPreset;
54
+ /**
55
+ * Primary equipped in preset
56
+ */
57
+ primary?: SlotPreset;
58
+ /**
59
+ * Secondary equipped in preset
60
+ */
61
+ secondary?: SlotPreset;
62
+ /**
63
+ * Heavy equipped in preset
64
+ */
65
+ heavy?: SlotPreset;
66
+ /**
67
+ * Melee equiped in preset
68
+ */
69
+ melee?: SlotPreset;
70
+ /**
71
+ * Exalted ability
72
+ */
73
+ exalted?: SlotPreset;
74
+ /**
75
+ * Secondary exalted ability
76
+ *
77
+ * i.e Sevagoth has his shadow and his shadow's claws both of which can be modded separately
78
+ */
79
+ exaltedB?: SlotPreset;
80
+ constructor(preset: RawLoadOutPreset);
81
+ }
82
+ //#endregion
2
83
  export { RawLoadOutPreset, LoadOutPreset as default };
@@ -1,4 +1,83 @@
1
- import "./Utils-Bqm2Gg1K.mjs";
2
- import { t as LoadOutPreset } from "./LoadOutPreset-CwbK2VvR.mjs";
1
+ import { numberToLetter } from "./Utils.mjs";
2
+ import { translatePolarity } from "warframe-worldstate-data/utilities";
3
3
 
4
+ //#region src/LoadOutPreset.ts
5
+ var SlotPreset = class {
6
+ id;
7
+ modPreset;
8
+ appearancePreset;
9
+ isHidden;
10
+ constructor(slot) {
11
+ if (slot?.ItemId?.$oid) this.id = slot.ItemId.$oid;
12
+ if (slot?.mod !== void 0) this.modPreset = numberToLetter(slot.mod);
13
+ if (slot?.cus !== void 0) this.appearancePreset = numberToLetter(slot.cus);
14
+ this.isHidden = slot?.hide ?? false;
15
+ }
16
+ };
17
+ var LoadOutPreset = class {
18
+ /**
19
+ * Focus School
20
+ */
21
+ focusSchool;
22
+ /**
23
+ * Preset icon
24
+ *
25
+ * Note:
26
+ * Icon in-game seems to be an image of whatever Warframe is equipped on it
27
+ */
28
+ icon;
29
+ /**
30
+ * Whether this preset is a favorite
31
+ */
32
+ isFavorite;
33
+ /**
34
+ * Preset name
35
+ */
36
+ name;
37
+ /**
38
+ * Warframe equipped in preset
39
+ */
40
+ warframe;
41
+ /**
42
+ * Primary equipped in preset
43
+ */
44
+ primary;
45
+ /**
46
+ * Secondary equipped in preset
47
+ */
48
+ secondary;
49
+ /**
50
+ * Heavy equipped in preset
51
+ */
52
+ heavy;
53
+ /**
54
+ * Melee equiped in preset
55
+ */
56
+ melee;
57
+ /**
58
+ * Exalted ability
59
+ */
60
+ exalted;
61
+ /**
62
+ * Secondary exalted ability
63
+ *
64
+ * i.e Sevagoth has his shadow and his shadow's claws both of which can be modded separately
65
+ */
66
+ exaltedB;
67
+ constructor(preset) {
68
+ this.focusSchool = translatePolarity(preset.FocusSchool);
69
+ this.icon = preset.PresetIcon;
70
+ this.isFavorite = preset.Favorite;
71
+ this.name = preset.n;
72
+ this.warframe = new SlotPreset(preset.s);
73
+ if (preset.l) this.primary = new SlotPreset(preset.l);
74
+ if (preset.p) this.secondary = new SlotPreset(preset.p);
75
+ if (preset.h) this.heavy = new SlotPreset(preset.h);
76
+ if (preset.m) this.melee = new SlotPreset(preset.m);
77
+ if (preset.a) this.exalted = new SlotPreset(preset.a);
78
+ if (preset.b) this.exaltedB = new SlotPreset(preset.b);
79
+ }
80
+ };
81
+
82
+ //#endregion
4
83
  export { LoadOutPreset as default };
@@ -1,2 +1,53 @@
1
- import { n as RawMission, t as Mission } from "./Mission-CeX2BRp0.mjs";
1
+ import { Locale } from "warframe-worldstate-data";
2
+
3
+ //#region src/Mission.d.ts
4
+ interface RawMission {
5
+ Tag?: string | undefined;
6
+ type?: string;
7
+ Mission?: string;
8
+ highScore?: number;
9
+ Completes?: number;
10
+ Tier?: number;
11
+ }
12
+ /**
13
+ * A mission completed by the player
14
+ * @module
15
+ */
16
+ declare class Mission {
17
+ /**
18
+ * Node name
19
+ */
20
+ node: string;
21
+ /**
22
+ * Node unique name
23
+ */
24
+ nodeKey: string;
25
+ /**
26
+ * Node mission type
27
+ */
28
+ missionType: string;
29
+ /**
30
+ * Node faction
31
+ */
32
+ faction: string;
33
+ /**
34
+ * Highest score earned in this mission
35
+ */
36
+ highScore?: number;
37
+ /**
38
+ * How many times the mission was completed
39
+ */
40
+ completes?: number;
41
+ /**
42
+ * Denotes a steel path node
43
+ */
44
+ tier?: number;
45
+ /**
46
+ *
47
+ * @param mission The mission data
48
+ * @param locale The locale to return in
49
+ */
50
+ constructor(mission: RawMission, locale?: Locale);
51
+ }
52
+ //#endregion
2
53
  export { RawMission, Mission as default };
package/dist/Mission.mjs CHANGED
@@ -1,3 +1,55 @@
1
- import { t as Mission } from "./Mission-DfGQMV7B.mjs";
1
+ import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
2
2
 
3
+ //#region src/Mission.ts
4
+ /**
5
+ * A mission completed by the player
6
+ * @module
7
+ */
8
+ var Mission = class {
9
+ /**
10
+ * Node name
11
+ */
12
+ node;
13
+ /**
14
+ * Node unique name
15
+ */
16
+ nodeKey;
17
+ /**
18
+ * Node mission type
19
+ */
20
+ missionType;
21
+ /**
22
+ * Node faction
23
+ */
24
+ faction;
25
+ /**
26
+ * Highest score earned in this mission
27
+ */
28
+ highScore;
29
+ /**
30
+ * How many times the mission was completed
31
+ */
32
+ completes;
33
+ /**
34
+ * Denotes a steel path node
35
+ */
36
+ tier;
37
+ /**
38
+ *
39
+ * @param mission The mission data
40
+ * @param locale The locale to return in
41
+ */
42
+ constructor(mission, locale = "en") {
43
+ const uniqueName = mission.type || mission.Tag;
44
+ this.node = node(uniqueName, locale);
45
+ this.nodeKey = uniqueName;
46
+ this.missionType = nodeMissionType(uniqueName, locale);
47
+ this.faction = nodeEnemy(uniqueName, locale);
48
+ if (mission.highScore) this.highScore = mission.highScore;
49
+ if (mission.Completes) this.completes = mission.Completes;
50
+ if (mission.Tier) this.tier = mission.Tier;
51
+ }
52
+ };
53
+
54
+ //#endregion
3
55
  export { Mission as default };
@@ -1,4 +1,81 @@
1
- import "./Skin-DJMr6L-X.mjs";
2
- import "./Utils-VTFhFHIp.mjs";
3
- import { n as RawOperatorLoadOuts, t as OperatorLoadOuts } from "./OperatorLoadOuts-51DN5Rwo.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/OperatorLoadOuts.d.ts
7
+ interface RawOperatorLoadOuts {
8
+ Skins: string[];
9
+ OperatorAmp?: {
10
+ $oid: string;
11
+ };
12
+ Upgrades: string[];
13
+ AbilityOverride: {
14
+ Ability: string;
15
+ Index: number;
16
+ };
17
+ pricol?: ProfileRawColors;
18
+ sigcol?: ProfileRawColors;
19
+ attcol?: ProfileRawColors;
20
+ syancol?: ProfileRawColors;
21
+ eyecol?: ProfileRawColors;
22
+ facial?: ProfileRawColors;
23
+ cloth?: ProfileRawColors;
24
+ }
25
+ /**
26
+ * Player's operator loadout
27
+ * @module
28
+ */
29
+ declare class OperatorLoadOuts {
30
+ /**
31
+ * Skins that have been applied to the player's operator.
32
+ */
33
+ skins: Skin[];
34
+ /**
35
+ * Operator amp ID
36
+ */
37
+ operatorAmp?: string;
38
+ /**
39
+ * Applied upgrade IDs
40
+ */
41
+ upgrades: string[];
42
+ abilityOverride: {
43
+ Ability: string;
44
+ Index: number;
45
+ };
46
+ /**
47
+ * Operator primary colors
48
+ */
49
+ primaryColor?: ColorMap;
50
+ /**
51
+ * Operator sigil colors
52
+ */
53
+ sigilColor?: ColorMap;
54
+ /**
55
+ * Operator attachment colors
56
+ */
57
+ attachmentsColor?: ColorMap;
58
+ /**
59
+ * Operator syandana colors
60
+ */
61
+ syandanaColor?: ColorMap;
62
+ /**
63
+ * Operator eye colors
64
+ */
65
+ eyeColor?: ColorMap;
66
+ /**
67
+ * Operator facial colors
68
+ */
69
+ facial?: ColorMap;
70
+ /**
71
+ * Operator cloth colors
72
+ */
73
+ cloth?: ColorMap;
74
+ /**
75
+ *
76
+ * @param {Object} loadout The operator loadout
77
+ */
78
+ constructor(loadout: RawOperatorLoadOuts, locale?: Locale);
79
+ }
80
+ //#endregion
4
81
  export { RawOperatorLoadOuts, OperatorLoadOuts as default };
@@ -1,5 +1,76 @@
1
- import "./Utils-Bqm2Gg1K.mjs";
2
- import "./Skin-D_brWp2g.mjs";
3
- import { t as OperatorLoadOuts } from "./OperatorLoadOuts-LYGpTHuj.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/OperatorLoadOuts.ts
6
+ /**
7
+ * Player's operator loadout
8
+ * @module
9
+ */
10
+ var OperatorLoadOuts = class {
11
+ /**
12
+ * Skins that have been applied to the player's operator.
13
+ */
14
+ skins;
15
+ /**
16
+ * Operator amp ID
17
+ */
18
+ operatorAmp;
19
+ /**
20
+ * Applied upgrade IDs
21
+ */
22
+ upgrades;
23
+ abilityOverride;
24
+ /**
25
+ * Operator primary colors
26
+ */
27
+ primaryColor;
28
+ /**
29
+ * Operator sigil colors
30
+ */
31
+ sigilColor;
32
+ /**
33
+ * Operator attachment colors
34
+ */
35
+ attachmentsColor;
36
+ /**
37
+ * Operator syandana colors
38
+ */
39
+ syandanaColor;
40
+ /**
41
+ * Operator eye colors
42
+ */
43
+ eyeColor;
44
+ /**
45
+ * Operator facial colors
46
+ */
47
+ facial;
48
+ /**
49
+ * Operator cloth colors
50
+ */
51
+ cloth;
52
+ /**
53
+ *
54
+ * @param {Object} loadout The operator loadout
55
+ */
56
+ constructor(loadout, locale = "en") {
57
+ this.skins = loadout.Skins.filter(Boolean).map((s) => new Skin({ ItemType: s }, locale));
58
+ this.operatorAmp = loadout.OperatorAmp?.$oid;
59
+ /**
60
+ * Applied upgrade IDs
61
+ * @type {Array<String>}
62
+ */
63
+ this.upgrades = loadout.Upgrades;
64
+ this.abilityOverride = loadout.AbilityOverride;
65
+ if (loadout.pricol) this.primaryColor = colors.mapColors(mapToHex(loadout.pricol));
66
+ if (loadout.sigcol) this.sigilColor = colors.mapColors(mapToHex(loadout.sigcol));
67
+ if (loadout.attcol) this.attachmentsColor = colors.mapColors(mapToHex(loadout.attcol));
68
+ if (loadout.syancol) this.syandanaColor = colors.mapColors(mapToHex(loadout.syancol));
69
+ if (loadout.eyecol) this.eyeColor = colors.mapColors(mapToHex(loadout.eyecol));
70
+ if (loadout.facial) this.facial = colors.mapColors(mapToHex(loadout.facial));
71
+ if (loadout.cloth) this.cloth = colors.mapColors(mapToHex(loadout.cloth));
72
+ }
73
+ };
74
+
75
+ //#endregion
5
76
  export { OperatorLoadOuts as default };
@@ -1,2 +1,26 @@
1
- import { n as RawPolarity, t as Polarity } from "./Polarity-KCoYUO6f.mjs";
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
2
26
  export { RawPolarity, Polarity as default };
package/dist/Polarity.mjs CHANGED
@@ -1,3 +1,28 @@
1
- import { t as Polarity } from "./Polarity-Q2JfovbR.mjs";
1
+ import { translatePolarity } from "warframe-worldstate-data/utilities";
2
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
3
28
  export { Polarity as default };
@@ -1,15 +1,11 @@
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";
1
+ import ChallengeProgress, { RawChallengeProgress } from "./ChallengeProgress.mjs";
2
+ import Intrinsics, { RawIntrinsics } from "./Intrinsics.mjs";
3
+ import { RawDate, RawId } from "./Utils.mjs";
4
+ import LoadOutInventory, { RawLoadOut } from "./LoadOutInventory.mjs";
5
+ import LoadOutPreset, { RawLoadOutPreset } from "./LoadOutPreset.mjs";
6
+ import Mission, { RawMission } from "./Mission.mjs";
7
+ import OperatorLoadOuts, { RawOperatorLoadOuts } from "./OperatorLoadOuts.mjs";
8
+ import Syndicate, { RawAffiliation } from "./Syndicate.mjs";
13
9
  import { Locale } from "warframe-worldstate-data";
14
10
 
15
11
  //#region src/Profile.d.ts
@@ -53,7 +49,7 @@ interface RawProfile {
53
49
  DailyAffiliationCavia?: number;
54
50
  DailyAffiliationHex?: number;
55
51
  DailyFocus?: number;
56
- Wishlist?: any;
52
+ Wishlist?: string[];
57
53
  UnlockedOperator: boolean;
58
54
  UnlockedAlignment: boolean;
59
55
  OperatorLoadOuts: RawOperatorLoadOuts[];
@@ -184,7 +180,7 @@ declare class Profile {
184
180
  /**
185
181
  * Player wishlist for in-game market items
186
182
  */
187
- wishList: any;
183
+ wishList?: string[];
188
184
  /**
189
185
  * Whether the player has unlocked their operator or not
190
186
  */
package/dist/Profile.mjs CHANGED
@@ -1,16 +1,10 @@
1
- import { t as ChallengeProgress } from "./ChallengeProgress-Cpks92At.mjs";
2
- import { t as Intrinsics } from "./Intrinsics-kYw_LPq1.mjs";
3
- import "./Utils-Bqm2Gg1K.mjs";
4
- import "./Skin-D_brWp2g.mjs";
5
- import "./ItemConfig-DTIrA_P_.mjs";
6
- import "./Polarity-Q2JfovbR.mjs";
7
- import "./LoadOutItem-p-f5RdTB.mjs";
8
- import "./XpInfo-IT6LOTzI.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";
1
+ import ChallengeProgress from "./ChallengeProgress.mjs";
2
+ import Intrinsics from "./Intrinsics.mjs";
3
+ import LoadOutInventory from "./LoadOutInventory.mjs";
4
+ import LoadOutPreset from "./LoadOutPreset.mjs";
5
+ import Mission from "./Mission.mjs";
6
+ import OperatorLoadOuts from "./OperatorLoadOuts.mjs";
7
+ import Syndicate from "./Syndicate.mjs";
14
8
  import { parseDate } from "warframe-worldstate-data/utilities";
15
9
 
16
10
  //#region src/Profile.ts