@wfcd/profile-parser 2.0.12 → 2.0.13

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 (65) hide show
  1. package/dist/Ability-DcXcbtcE.d.mts +19 -0
  2. package/dist/Ability.d.mts +1 -18
  3. package/dist/Ability.mjs +1 -2
  4. package/dist/ArchonCrystal.mjs +1 -3
  5. package/dist/ChallengeProgress-BrxgSqf4.d.mts +20 -0
  6. package/dist/ChallengeProgress.d.mts +1 -19
  7. package/dist/ChallengeProgress.mjs +1 -2
  8. package/dist/Enemy-Das_tHF5.d.mts +44 -0
  9. package/dist/Enemy.d.mts +1 -43
  10. package/dist/Enemy.mjs +1 -2
  11. package/dist/Intrinsics-BhwKpPoY.d.mts +67 -0
  12. package/dist/Intrinsics.d.mts +1 -66
  13. package/dist/Intrinsics.mjs +1 -2
  14. package/dist/ItemConfig-C81QdCpU.d.mts +51 -0
  15. package/dist/ItemConfig.d.mts +1 -50
  16. package/dist/ItemConfig.mjs +1 -3
  17. package/dist/LoadOutInventory-BrtoOtNr.d.mts +53 -0
  18. package/dist/LoadOutInventory.d.mts +1 -52
  19. package/dist/LoadOutInventory.mjs +1 -3
  20. package/dist/LoadOutItem-Cd_qovNn.d.mts +120 -0
  21. package/dist/LoadOutItem.d.mts +1 -119
  22. package/dist/LoadOutItem.mjs +1 -3
  23. package/dist/LoadOutPreset-CUV29lLL.d.mts +83 -0
  24. package/dist/LoadOutPreset.d.mts +1 -82
  25. package/dist/LoadOutPreset.mjs +1 -3
  26. package/dist/Mission-C7zlZ4eq.d.mts +53 -0
  27. package/dist/Mission.d.mts +1 -52
  28. package/dist/Mission.mjs +1 -3
  29. package/dist/OperatorLoadOuts-DvlpRvD1.d.mts +81 -0
  30. package/dist/OperatorLoadOuts.d.mts +1 -80
  31. package/dist/OperatorLoadOuts.mjs +1 -3
  32. package/dist/Polarity-BWadoIXU.d.mts +26 -0
  33. package/dist/Polarity.d.mts +1 -25
  34. package/dist/Polarity.mjs +1 -3
  35. package/dist/Profile.d.mts +8 -8
  36. package/dist/Profile.mjs +1 -3
  37. package/dist/ProfileParser.d.mts +1 -1
  38. package/dist/ProfileParser.mjs +1 -3
  39. package/dist/Pvp-D0lygyP6.d.mts +36 -0
  40. package/dist/Pvp.d.mts +1 -35
  41. package/dist/Pvp.mjs +1 -2
  42. package/dist/Race-PxkzCRsy.d.mts +32 -0
  43. package/dist/Race.d.mts +1 -31
  44. package/dist/Race.mjs +1 -2
  45. package/dist/Scan-Cj6jCTNg.d.mts +27 -0
  46. package/dist/Scan.d.mts +1 -26
  47. package/dist/Scan.mjs +1 -2
  48. package/dist/Skin-CpQ4dzEs.d.mts +28 -0
  49. package/dist/Skin.d.mts +1 -27
  50. package/dist/Skin.mjs +1 -3
  51. package/dist/Stats.d.mts +7 -7
  52. package/dist/Stats.mjs +1 -3
  53. package/dist/Syndicate-BwHRq-Iw.d.mts +33 -0
  54. package/dist/Syndicate.d.mts +1 -32
  55. package/dist/Syndicate.mjs +1 -3
  56. package/dist/Utils-xGSP1zu-.d.mts +36 -0
  57. package/dist/Utils.d.mts +1 -35
  58. package/dist/Utils.mjs +1 -3
  59. package/dist/Weapon-DUlgoPHD.d.mts +32 -0
  60. package/dist/Weapon.d.mts +1 -31
  61. package/dist/Weapon.mjs +1 -2
  62. package/dist/XpInfo-C1pzVAdK.d.mts +34 -0
  63. package/dist/XpInfo.d.mts +1 -33
  64. package/dist/XpInfo.mjs +1 -3
  65. package/package.json +6 -6
@@ -0,0 +1,120 @@
1
+ import { n as RawDate } from "./Utils-xGSP1zu-.mjs";
2
+ import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-C81QdCpU.mjs";
3
+ import { n as RawPolarity, t as Polarity } from "./Polarity-BWadoIXU.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
120
+ export { RawLoadOutItem as n, LoadOutItem as t };
@@ -1,120 +1,2 @@
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
1
+ import { n as RawLoadOutItem, t as LoadOutItem } from "./LoadOutItem-Cd_qovNn.mjs";
120
2
  export { RawLoadOutItem, LoadOutItem as default };
@@ -3,7 +3,6 @@ import ItemConfig from "./ItemConfig.mjs";
3
3
  import Polarity from "./Polarity.mjs";
4
4
  import { parseDate, toTitleCase } from "warframe-worldstate-data/utilities";
5
5
  import { colors } from "@wfcd/items/utilities";
6
-
7
6
  //#region src/LoadOutItem.ts
8
7
  /**
9
8
  * An an item in LoadOutInventory
@@ -122,6 +121,5 @@ var LoadOutItem = class {
122
121
  if (loadOutItem.InfestationDate) this.infestationDate = parseDate(loadOutItem.InfestationDate);
123
122
  }
124
123
  };
125
-
126
124
  //#endregion
127
- export { LoadOutItem as default };
125
+ export { LoadOutItem as default };
@@ -0,0 +1,83 @@
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
83
+ export { RawLoadOutPreset as n, LoadOutPreset as t };
@@ -1,83 +1,2 @@
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
1
+ import { n as RawLoadOutPreset, t as LoadOutPreset } from "./LoadOutPreset-CUV29lLL.mjs";
83
2
  export { RawLoadOutPreset, LoadOutPreset as default };
@@ -1,6 +1,5 @@
1
1
  import { numberToLetter } from "./Utils.mjs";
2
2
  import { translatePolarity } from "warframe-worldstate-data/utilities";
3
-
4
3
  //#region src/LoadOutPreset.ts
5
4
  var SlotPreset = class {
6
5
  id;
@@ -78,6 +77,5 @@ var LoadOutPreset = class {
78
77
  if (preset.b) this.exaltedB = new SlotPreset(preset.b);
79
78
  }
80
79
  };
81
-
82
80
  //#endregion
83
- export { LoadOutPreset as default };
81
+ export { LoadOutPreset as default };
@@ -0,0 +1,53 @@
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
53
+ export { RawMission as n, Mission as t };
@@ -1,53 +1,2 @@
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
1
+ import { n as RawMission, t as Mission } from "./Mission-C7zlZ4eq.mjs";
53
2
  export { RawMission, Mission as default };
package/dist/Mission.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
2
-
3
2
  //#region src/Mission.ts
4
3
  /**
5
4
  * A mission completed by the player
@@ -50,6 +49,5 @@ var Mission = class {
50
49
  if (mission.Tier) this.tier = mission.Tier;
51
50
  }
52
51
  };
53
-
54
52
  //#endregion
55
- export { Mission as default };
53
+ export { Mission as default };
@@ -0,0 +1,81 @@
1
+ import { n as Skin } from "./Skin-CpQ4dzEs.mjs";
2
+ import { t as ProfileRawColors } from "./Utils-xGSP1zu-.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
81
+ export { RawOperatorLoadOuts as n, OperatorLoadOuts as t };