warframe-worldstate-parser 4.6.2 → 5.0.1

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 (311) hide show
  1. package/dist/Alert-BS8PWPP3.d.ts +45 -0
  2. package/dist/Alert-DH1kglDU.js +52 -0
  3. package/dist/Archidemea-C0EMRUKc.js +59 -0
  4. package/dist/Archidemea-DOh4trTM.d.ts +55 -0
  5. package/dist/Calendar-CgEkm6e6.d.ts +78 -0
  6. package/dist/Calendar-CtzZQXj7.js +81 -0
  7. package/dist/CambionCycle-C6NHUjOU.js +30 -0
  8. package/dist/CambionCycle-uEBpbMim.d.ts +23 -0
  9. package/dist/CetusCycle-DIZdevob.js +90 -0
  10. package/dist/CetusCycle-ooMM7hkg.d.ts +49 -0
  11. package/dist/ChallengeInstance-Bi2zg4q-.d.ts +53 -0
  12. package/dist/ChallengeInstance-DHwTTwMH.js +48 -0
  13. package/dist/ConclaveChallenge-Dp5yOxVu.js +80 -0
  14. package/dist/ConclaveChallenge-JbcEcL4s.d.ts +76 -0
  15. package/dist/ConstructionProgress-DfcpaGL5.js +25 -0
  16. package/dist/ConstructionProgress-FAySTEod.d.ts +19 -0
  17. package/dist/DailyDeal-BGqZAp-j.js +66 -0
  18. package/dist/DailyDeal-Na-EaiFS.d.ts +66 -0
  19. package/dist/DarkSector-BQ97_8h6.js +138 -0
  20. package/dist/DarkSector-zkCUywz1.d.ts +142 -0
  21. package/dist/DarkSectorBattle-5PyUPhxY.js +53 -0
  22. package/dist/DarkSectorBattle-DY33Bfuq.d.ts +53 -0
  23. package/dist/Dependency-DkOHLql6.d.ts +38 -0
  24. package/dist/DuviriChoice-DRNDUbyc.js +22 -0
  25. package/dist/DuviriChoice-MIHsOBS7.d.ts +18 -0
  26. package/dist/DuviriCycle-B0zp0KxS.d.ts +25 -0
  27. package/dist/DuviriCycle-CmHJStJo.js +58 -0
  28. package/dist/EarthCycle-B9aIOAEY.js +75 -0
  29. package/dist/EarthCycle-RELuZL01.d.ts +60 -0
  30. package/dist/ExternalMission-DCzJkPC8.d.ts +49 -0
  31. package/dist/Fissure-7yFmOet3.js +85 -0
  32. package/dist/Fissure-Bj61i8dc.d.ts +78 -0
  33. package/dist/FlashSale-BxVI0J6A.js +75 -0
  34. package/dist/FlashSale-PDG4uQq4.d.ts +71 -0
  35. package/dist/GlobalUpgrade-BRQXf3JM.d.ts +55 -0
  36. package/dist/GlobalUpgrade-B_TKK1m_.js +58 -0
  37. package/dist/ImgCdn-BnbJ9K-0.js +7 -0
  38. package/dist/Invasion-BMic1K12.js +110 -0
  39. package/dist/Invasion-BskF60zh.d.ts +113 -0
  40. package/dist/Kinepage-CRRKVulq.d.ts +22 -0
  41. package/dist/Kinepage-iWFwTZtr.js +24 -0
  42. package/dist/Kuva-DqkxvPUg.js +85 -0
  43. package/dist/KuvaLogEntry-d5fskHaK.d.ts +21 -0
  44. package/dist/MidrathCycle-BfQtfG4p.d.ts +25 -0
  45. package/dist/MidrathCycle-DDfT7zVx.js +69 -0
  46. package/dist/Mission-CWE16ouO.d.ts +138 -0
  47. package/dist/Mission-ZuSsAYNm.js +140 -0
  48. package/dist/News-7F8Nbp4A.js +122 -0
  49. package/dist/News-BfAgbYSY.d.ts +101 -0
  50. package/dist/Nightwave-DDX0_zJU.js +60 -0
  51. package/dist/Nightwave-_0RzWikV.d.ts +59 -0
  52. package/dist/NightwaveChallenge-DDdrqvge.d.ts +51 -0
  53. package/dist/NightwaveChallenge-DwilvXfi.js +53 -0
  54. package/dist/PersistentEnemy-DRcO4V2r.d.ts +79 -0
  55. package/dist/PersistentEnemy-axYxYzv_.js +76 -0
  56. package/dist/Reward-5VIpHu9A.d.ts +68 -0
  57. package/dist/Reward-OauJ45jJ.js +73 -0
  58. package/dist/RewardData-qEvfHYxA.js +76 -0
  59. package/dist/RewardTypes-Cfq9FeIl.js +328 -0
  60. package/dist/RewardTypes-DYaUn77A.d.ts +34 -0
  61. package/dist/SentientOutpost-B2KZUJ7H.js +65 -0
  62. package/dist/SentientOutpost-DmlClvel.d.ts +47 -0
  63. package/dist/Simaris-B9Mvso2q.js +35 -0
  64. package/dist/Simaris-Bc-jNhED.d.ts +37 -0
  65. package/dist/Sortie-DPv-7SQ-.d.ts +60 -0
  66. package/dist/Sortie-DcoAnEaJ.js +73 -0
  67. package/dist/SortieVariant-BFkYiBho.d.ts +49 -0
  68. package/dist/SortieVariant-eWuI1uh9.js +51 -0
  69. package/dist/SteelPathOffering-DyAzr3P9.js +85 -0
  70. package/dist/SteelPathOffering-OHNTCFo5.d.ts +38 -0
  71. package/dist/SyndicateJob-BK7OMLmv.js +141 -0
  72. package/dist/SyndicateJob-DOtXWjRF.d.ts +76 -0
  73. package/dist/SyndicateMission-5PZIEM8P.js +66 -0
  74. package/dist/SyndicateMission-DmGG5lGy.d.ts +58 -0
  75. package/dist/Tmp-DkQq1arD.js +21 -0
  76. package/dist/VallisCycle-BX8yyKx3.js +76 -0
  77. package/dist/VallisCycle-BXcmzqqG.d.ts +31 -0
  78. package/dist/VoidTrader-CbLMfEVj.js +77 -0
  79. package/dist/VoidTrader-CihLWgSV.d.ts +74 -0
  80. package/dist/VoidTraderItem-BzeD-S6-.js +38 -0
  81. package/dist/VoidTraderItem-CkYAKAEn.d.ts +43 -0
  82. package/dist/VoidTraderSchedule-C-K8Zdfk.js +14 -0
  83. package/dist/VoidTraderSchedule-DKDtu-9d.d.ts +16 -0
  84. package/dist/WeeklyChallenge-C6sc4j7i.d.ts +20 -0
  85. package/dist/WeeklyChallenge-MzUEZAjv.js +21 -0
  86. package/dist/WorldEvent-BS9QHG_f.d.ts +205 -0
  87. package/dist/WorldEvent-nis9w9cn.js +213 -0
  88. package/dist/WorldState-DNSPrZR_.d.ts +257 -0
  89. package/dist/WorldState-uppX0Xt1.js +330 -0
  90. package/dist/WorldstateObject-BSTYuZwm.js +54 -0
  91. package/dist/WorldstateObject-wfRTeGpm.d.ts +48 -0
  92. package/dist/ZarimanCycle-BJ84QUFg.js +81 -0
  93. package/dist/ZarimanCycle-CjNQXhVO.d.ts +45 -0
  94. package/dist/lib/Tmp.d.ts +24 -0
  95. package/dist/lib/Tmp.js +6 -0
  96. package/dist/lib/WorldState.d.ts +47 -0
  97. package/dist/lib/WorldState.js +49 -0
  98. package/dist/lib/models/Alert.d.ts +8 -0
  99. package/dist/lib/models/Alert.js +9 -0
  100. package/dist/lib/models/Archidemea.d.ts +2 -0
  101. package/dist/lib/models/Archidemea.js +3 -0
  102. package/dist/lib/models/Calendar.d.ts +3 -0
  103. package/dist/lib/models/Calendar.js +4 -0
  104. package/dist/lib/models/CambionCycle.d.ts +4 -0
  105. package/dist/lib/models/CambionCycle.js +4 -0
  106. package/dist/lib/models/CetusCycle.d.ts +3 -0
  107. package/dist/lib/models/CetusCycle.js +4 -0
  108. package/dist/lib/models/ChallengeInstance.d.ts +4 -0
  109. package/dist/lib/models/ChallengeInstance.js +3 -0
  110. package/dist/lib/models/ConclaveChallenge.d.ts +5 -0
  111. package/dist/lib/models/ConclaveChallenge.js +4 -0
  112. package/dist/lib/models/ConstructionProgress.d.ts +3 -0
  113. package/dist/lib/models/ConstructionProgress.js +4 -0
  114. package/dist/lib/models/DailyDeal.d.ts +5 -0
  115. package/dist/lib/models/DailyDeal.js +4 -0
  116. package/dist/lib/models/DarkSector.d.ts +9 -0
  117. package/dist/lib/models/DarkSector.js +10 -0
  118. package/dist/lib/models/DarkSectorBattle.d.ts +3 -0
  119. package/dist/lib/models/DarkSectorBattle.js +3 -0
  120. package/dist/lib/models/DuviriCycle.d.ts +4 -0
  121. package/dist/lib/models/DuviriCycle.js +4 -0
  122. package/dist/lib/models/EarthCycle.d.ts +3 -0
  123. package/dist/lib/models/EarthCycle.js +4 -0
  124. package/dist/lib/models/Fissure.d.ts +5 -0
  125. package/dist/lib/models/Fissure.js +4 -0
  126. package/dist/lib/models/FlashSale.d.ts +5 -0
  127. package/dist/lib/models/FlashSale.js +4 -0
  128. package/dist/lib/models/GlobalUpgrade.d.ts +5 -0
  129. package/dist/lib/models/GlobalUpgrade.js +4 -0
  130. package/dist/lib/models/Invasion.d.ts +7 -0
  131. package/dist/lib/models/Invasion.js +8 -0
  132. package/dist/lib/models/Kinepage.d.ts +2 -0
  133. package/dist/lib/models/Kinepage.js +3 -0
  134. package/dist/lib/models/Kuva.d.ts +22 -0
  135. package/dist/lib/models/Kuva.js +3 -0
  136. package/dist/lib/models/MidrathCycle.d.ts +3 -0
  137. package/dist/lib/models/MidrathCycle.js +4 -0
  138. package/dist/lib/models/Mission.d.ts +6 -0
  139. package/dist/lib/models/Mission.js +7 -0
  140. package/dist/lib/models/News.d.ts +3 -0
  141. package/dist/lib/models/News.js +5 -0
  142. package/dist/lib/models/Nightwave.d.ts +4 -0
  143. package/dist/lib/models/Nightwave.js +5 -0
  144. package/dist/lib/models/NightwaveChallenge.d.ts +3 -0
  145. package/dist/lib/models/NightwaveChallenge.js +4 -0
  146. package/dist/lib/models/PersistentEnemy.d.ts +3 -0
  147. package/dist/lib/models/PersistentEnemy.js +4 -0
  148. package/dist/lib/models/Reward.d.ts +5 -0
  149. package/dist/lib/models/Reward.js +6 -0
  150. package/dist/lib/models/SentientOutpost.d.ts +4 -0
  151. package/dist/lib/models/SentientOutpost.js +3 -0
  152. package/dist/lib/models/Simaris.d.ts +4 -0
  153. package/dist/lib/models/Simaris.js +3 -0
  154. package/dist/lib/models/Sortie.d.ts +9 -0
  155. package/dist/lib/models/Sortie.js +10 -0
  156. package/dist/lib/models/SortieVariant.d.ts +4 -0
  157. package/dist/lib/models/SortieVariant.js +3 -0
  158. package/dist/lib/models/SteelPathOffering.d.ts +2 -0
  159. package/dist/lib/models/SteelPathOffering.js +3 -0
  160. package/dist/lib/models/SyndicateJob.d.ts +5 -0
  161. package/dist/lib/models/SyndicateJob.js +4 -0
  162. package/dist/lib/models/SyndicateMission.d.ts +6 -0
  163. package/dist/lib/models/SyndicateMission.js +5 -0
  164. package/dist/lib/models/VallisCycle.d.ts +3 -0
  165. package/dist/lib/models/VallisCycle.js +4 -0
  166. package/dist/lib/models/VoidTrader.d.ts +7 -0
  167. package/dist/lib/models/VoidTrader.js +6 -0
  168. package/dist/lib/models/VoidTraderItem.d.ts +4 -0
  169. package/dist/lib/models/VoidTraderItem.js +3 -0
  170. package/dist/lib/models/VoidTraderSchedule.d.ts +4 -0
  171. package/dist/lib/models/VoidTraderSchedule.js +3 -0
  172. package/dist/lib/models/WeeklyChallenge.d.ts +6 -0
  173. package/dist/lib/models/WeeklyChallenge.js +5 -0
  174. package/dist/lib/models/WorldEvent.d.ts +8 -0
  175. package/dist/lib/models/WorldEvent.js +9 -0
  176. package/dist/lib/models/WorldstateObject.d.ts +2 -0
  177. package/dist/lib/models/WorldstateObject.js +3 -0
  178. package/dist/lib/models/ZarimanCycle.d.ts +3 -0
  179. package/dist/lib/models/ZarimanCycle.js +4 -0
  180. package/dist/lib/supporting/Dependency.d.ts +3 -0
  181. package/dist/lib/supporting/Dependency.js +1 -0
  182. package/dist/lib/supporting/DuviriChoice.d.ts +3 -0
  183. package/dist/lib/supporting/DuviriChoice.js +3 -0
  184. package/dist/lib/supporting/ExternalMission.d.ts +2 -0
  185. package/dist/lib/supporting/ExternalMission.js +1 -0
  186. package/dist/lib/supporting/ImgCdn.d.ts +6 -0
  187. package/dist/lib/supporting/ImgCdn.js +3 -0
  188. package/dist/lib/supporting/KuvaLogEntry.d.ts +2 -0
  189. package/dist/lib/supporting/KuvaLogEntry.js +1 -0
  190. package/dist/lib/supporting/RewardData.d.ts +11 -0
  191. package/dist/lib/supporting/RewardData.js +3 -0
  192. package/dist/lib/supporting/RewardTypes.d.ts +2 -0
  193. package/dist/lib/supporting/RewardTypes.js +5 -0
  194. package/dist/main.d.ts +47 -0
  195. package/dist/main.js +49 -0
  196. package/dist/resources/.gitkeep +1 -0
  197. package/dist/resources/alt_helmet_thumb.png +0 -0
  198. package/dist/resources/aura_thumb.png +0 -0
  199. package/dist/resources/clantech_thmb.png +0 -0
  200. package/dist/resources/endo_thumb.png +0 -0
  201. package/dist/resources/exilus_thumb.png +0 -0
  202. package/dist/resources/forma_thumb.png +0 -0
  203. package/dist/resources/glaive_thumb.png +0 -0
  204. package/dist/resources/mutalist_thumb.png +0 -0
  205. package/dist/resources/nightmare_thumb.png +0 -0
  206. package/dist/resources/nitain_thumb.png +0 -0
  207. package/dist/resources/potato_thumb.png +0 -0
  208. package/dist/resources/resource_thumb.png +0 -0
  209. package/dist/resources/vauban_thumb.png +0 -0
  210. package/dist/resources/weapon_skin_thumb.png +0 -0
  211. package/package.json +9 -11
  212. package/lib/WorldState.js +0 -404
  213. package/lib/models/Alert.js +0 -90
  214. package/lib/models/Calendar.js +0 -74
  215. package/lib/models/CambionCycle.js +0 -32
  216. package/lib/models/CetusCycle.js +0 -126
  217. package/lib/models/ChallengeInstance.js +0 -57
  218. package/lib/models/ConclaveChallenge.js +0 -154
  219. package/lib/models/ConstructionProgress.js +0 -31
  220. package/lib/models/DailyDeal.js +0 -103
  221. package/lib/models/DarkSector.js +0 -154
  222. package/lib/models/DarkSectorBattle.js +0 -56
  223. package/lib/models/DeepArchidemea.js +0 -33
  224. package/lib/models/DuviriCycle.js +0 -65
  225. package/lib/models/EarthCycle.js +0 -119
  226. package/lib/models/Fissure.js +0 -136
  227. package/lib/models/FlashSale.js +0 -123
  228. package/lib/models/GlobalUpgrade.js +0 -122
  229. package/lib/models/Invasion.js +0 -183
  230. package/lib/models/Kinepage.js +0 -11
  231. package/lib/models/Kuva.js +0 -122
  232. package/lib/models/MidrathCycle.js +0 -94
  233. package/lib/models/Mission.js +0 -179
  234. package/lib/models/News.js +0 -174
  235. package/lib/models/Nightwave.js +0 -91
  236. package/lib/models/NightwaveChallenge.js +0 -63
  237. package/lib/models/PersistentEnemy.js +0 -100
  238. package/lib/models/Reward.js +0 -111
  239. package/lib/models/SentientOutpost.js +0 -68
  240. package/lib/models/Simaris.js +0 -47
  241. package/lib/models/Sortie.js +0 -143
  242. package/lib/models/SortieVariant.js +0 -57
  243. package/lib/models/SteelPathOffering.js +0 -99
  244. package/lib/models/SyndicateJob.js +0 -185
  245. package/lib/models/SyndicateMission.js +0 -111
  246. package/lib/models/VallisCycle.js +0 -125
  247. package/lib/models/VoidTrader.js +0 -134
  248. package/lib/models/VoidTraderItem.js +0 -24
  249. package/lib/models/VoidTraderSchedule.js +0 -8
  250. package/lib/models/WeeklyChallenge.js +0 -27
  251. package/lib/models/WorldEvent.js +0 -326
  252. package/lib/models/WorldstateObject.js +0 -106
  253. package/lib/models/ZarimanCycle.js +0 -124
  254. package/lib/supporting/Dependency.js +0 -6
  255. package/lib/supporting/DuviriChoice.js +0 -16
  256. package/lib/supporting/ExternalMission.js +0 -13
  257. package/lib/supporting/ImgCdn.js +0 -9
  258. package/lib/supporting/MarkdownSettings.js +0 -30
  259. package/lib/supporting/RewardData.js +0 -77
  260. package/lib/supporting/RewardTypes.js +0 -327
  261. package/main.js +0 -4
  262. package/types/lib/WorldState.d.ts +0 -199
  263. package/types/lib/models/Alert.d.ts +0 -53
  264. package/types/lib/models/Calendar.d.ts +0 -16
  265. package/types/lib/models/CambionCycle.d.ts +0 -20
  266. package/types/lib/models/CetusCycle.d.ts +0 -47
  267. package/types/lib/models/ChallengeInstance.d.ts +0 -42
  268. package/types/lib/models/ConclaveChallenge.d.ts +0 -90
  269. package/types/lib/models/ConstructionProgress.d.ts +0 -14
  270. package/types/lib/models/DailyDeal.d.ts +0 -78
  271. package/types/lib/models/DarkSector.d.ts +0 -121
  272. package/types/lib/models/DarkSectorBattle.d.ts +0 -44
  273. package/types/lib/models/DeepArchidemea.d.ts +0 -8
  274. package/types/lib/models/DuviriCycle.d.ts +0 -21
  275. package/types/lib/models/EarthCycle.d.ts +0 -64
  276. package/types/lib/models/Fissure.d.ts +0 -83
  277. package/types/lib/models/FlashSale.d.ts +0 -86
  278. package/types/lib/models/GlobalUpgrade.d.ts +0 -86
  279. package/types/lib/models/Invasion.d.ts +0 -124
  280. package/types/lib/models/Kinepage.d.ts +0 -6
  281. package/types/lib/models/Kuva.d.ts +0 -60
  282. package/types/lib/models/MidrathCycle.d.ts +0 -39
  283. package/types/lib/models/Mission.d.ts +0 -136
  284. package/types/lib/models/News.d.ts +0 -104
  285. package/types/lib/models/Nightwave.d.ts +0 -53
  286. package/types/lib/models/NightwaveChallenge.d.ts +0 -45
  287. package/types/lib/models/PersistentEnemy.d.ts +0 -70
  288. package/types/lib/models/Reward.d.ts +0 -95
  289. package/types/lib/models/SentientOutpost.d.ts +0 -54
  290. package/types/lib/models/Simaris.d.ts +0 -33
  291. package/types/lib/models/Sortie.d.ts +0 -72
  292. package/types/lib/models/SortieVariant.d.ts +0 -43
  293. package/types/lib/models/SteelPathOffering.d.ts +0 -19
  294. package/types/lib/models/SyndicateJob.d.ts +0 -72
  295. package/types/lib/models/SyndicateMission.d.ts +0 -56
  296. package/types/lib/models/VallisCycle.d.ts +0 -53
  297. package/types/lib/models/VoidTrader.d.ts +0 -45
  298. package/types/lib/models/VoidTraderItem.d.ts +0 -25
  299. package/types/lib/models/VoidTraderSchedule.d.ts +0 -7
  300. package/types/lib/models/WeeklyChallenge.d.ts +0 -12
  301. package/types/lib/models/WorldEvent.d.ts +0 -216
  302. package/types/lib/models/WorldstateObject.d.ts +0 -120
  303. package/types/lib/models/ZarimanCycle.d.ts +0 -42
  304. package/types/lib/supporting/Dependency.d.ts +0 -7
  305. package/types/lib/supporting/DuviriChoice.d.ts +0 -9
  306. package/types/lib/supporting/ExternalMission.d.ts +0 -48
  307. package/types/lib/supporting/ImgCdn.d.ts +0 -3
  308. package/types/lib/supporting/MarkdownSettings.d.ts +0 -30
  309. package/types/lib/supporting/RewardData.d.ts +0 -9
  310. package/types/lib/supporting/RewardTypes.d.ts +0 -8
  311. package/types/main.d.ts +0 -3
@@ -0,0 +1,328 @@
1
+ import { cdn, wfCdn } from "./ImgCdn-BnbJ9K-0.js";
2
+ import { auras, nightmare, resources } from "./RewardData-qEvfHYxA.js";
3
+
4
+ //#region lib/supporting/RewardTypes.ts
5
+ /**
6
+ * All possible RewardTypes
7
+ * @type {Array.<RewardType>}
8
+ */
9
+ var RewardTypes_default = [
10
+ {
11
+ name: "vauban",
12
+ description: "Vauban parts",
13
+ test: (s) => /^vauban(?!.*helmet)/i.test(s),
14
+ thumbnail: wfCdn("vauban.png"),
15
+ color: 6052435
16
+ },
17
+ {
18
+ name: "vandal",
19
+ description: "Vandal Weapon Parts",
20
+ test: (s) => /vandal/i.test(s),
21
+ thumbnail: wfCdn("dera-vandal.png"),
22
+ color: 6052435
23
+ },
24
+ {
25
+ name: "wraith",
26
+ description: "Wraith Weapon Parts",
27
+ test: (s) => /wraith/i.test(s),
28
+ thumbnail: wfCdn("furax-wraith.png"),
29
+ color: 6052435
30
+ },
31
+ {
32
+ name: "skin",
33
+ description: "Weapon skins",
34
+ test: (s) => /skin/i.test(s),
35
+ thumbnail: "https://raw.githubusercontent.com/wfcd/warframe-worldstate-parser/master/resources/weapon_skin_thumb.png",
36
+ color: 5196851
37
+ },
38
+ {
39
+ name: "helmet",
40
+ description: "Alternative helmets",
41
+ test: (s) => /helmet/i.test(s),
42
+ thumbnail: "https://raw.githubusercontent.com/wfcd/warframe-worldstate-parser/master/resources/alt_helmet_thumb.png",
43
+ color: 5666423
44
+ },
45
+ {
46
+ name: "nitain",
47
+ description: "Nitain extract",
48
+ test: (s) => /nitain/i.test(s),
49
+ thumbnail: wfCdn("nitain-extract.png"),
50
+ color: 11447716
51
+ },
52
+ {
53
+ name: "mutalist",
54
+ description: "Mutalist Alad V coordinates",
55
+ test: (s) => /mutalist/i.test(s),
56
+ thumbnail: wfCdn("mutalist-alad-v-nav-coordinate.png"),
57
+ color: 158519
58
+ },
59
+ {
60
+ name: "weapon",
61
+ description: "Weapons",
62
+ test: (s) => /dagger|sword|glaive/i.test(s),
63
+ thumbnail: wfCdn("blueprint"),
64
+ color: 10723479
65
+ },
66
+ {
67
+ name: "fieldron",
68
+ description: "Fieldron",
69
+ test: (s) => /fieldron/i.test(s),
70
+ thumbnail: wfCdn("fieldron.png"),
71
+ color: 5068118
72
+ },
73
+ {
74
+ name: "detonite",
75
+ description: "Detonite Injector",
76
+ test: (s) => /detonite/i.test(s),
77
+ thumbnail: wfCdn("detonite-injector.png"),
78
+ color: 5068118
79
+ },
80
+ {
81
+ name: "mutagen",
82
+ description: "Mutagen Mass",
83
+ test: (s) => /mutagen/i.test(s),
84
+ thumbnail: wfCdn("mutagen-mass.png"),
85
+ color: 5068118
86
+ },
87
+ {
88
+ name: "clantech",
89
+ description: "Clantech resources",
90
+ test: (s) => /fieldron|detonite|mutagen/i.test(s),
91
+ thumbnail: "https://github.com/wfcd/warframe-worldstate-parser/raw/master/resources/clantech_thmb.png",
92
+ color: 5068118
93
+ },
94
+ {
95
+ name: "aura",
96
+ description: "Auras",
97
+ test: (s) => auras.includes(s),
98
+ thumbnail: "https://github.com/wfcd/warframe-worldstate-parser/raw/master/resources/aura_thumb.png",
99
+ color: 13170943
100
+ },
101
+ {
102
+ name: "neuralSensors",
103
+ description: "Neural Sensors",
104
+ test: (s) => /neural/i.test(s),
105
+ thumbnail: wfCdn("neural-sensors.png"),
106
+ color: 13170943
107
+ },
108
+ {
109
+ name: "neurodes",
110
+ description: "Neurodes",
111
+ test: (s) => /neurode/i.test(s),
112
+ thumbnail: wfCdn("neurodes.png"),
113
+ color: 13170943
114
+ },
115
+ {
116
+ name: "orokinCell",
117
+ description: "Orokin Cell",
118
+ test: (s) => /orokin\scell/i.test(s),
119
+ thumbnail: wfCdn("orokin-cell.png"),
120
+ color: 13170943
121
+ },
122
+ {
123
+ name: "alloyPlate",
124
+ description: "Alloy Plate",
125
+ test: (s) => /alloy\splate/i.test(s),
126
+ thumbnail: wfCdn("alloy-plate.png"),
127
+ color: 13170943
128
+ },
129
+ {
130
+ name: "circuits",
131
+ description: "Circuits",
132
+ test: (s) => /circuits/i.test(s),
133
+ thumbnail: wfCdn("circuits.png"),
134
+ color: 13170943
135
+ },
136
+ {
137
+ name: "controlModule",
138
+ description: "Control Module",
139
+ test: (s) => /control\smodule/i.test(s),
140
+ thumbnail: wfCdn("control-module.png"),
141
+ color: 13170943
142
+ },
143
+ {
144
+ name: "ferrite",
145
+ description: "Ferrite",
146
+ test: (s) => /ferrite/i.test(s),
147
+ thumbnail: wfCdn("ferrite.png"),
148
+ color: 13170943
149
+ },
150
+ {
151
+ name: "gallium",
152
+ description: "Gallium",
153
+ test: (s) => /gallium/i.test(s),
154
+ thumbnail: wfCdn("gallium.png"),
155
+ color: 10595770
156
+ },
157
+ {
158
+ name: "morphics",
159
+ description: "Morphics",
160
+ test: (s) => /morphics/i.test(s),
161
+ thumbnail: wfCdn("morphics.png"),
162
+ color: 13170943
163
+ },
164
+ {
165
+ name: "nanoSpores",
166
+ description: "Nano Spores",
167
+ test: (s) => /nano\sspores/i.test(s),
168
+ thumbnail: wfCdn("nano-spores.png"),
169
+ color: 5455670
170
+ },
171
+ {
172
+ name: "oxium",
173
+ description: "Oxium",
174
+ test: (s) => /oxium/i.test(s),
175
+ thumbnail: wfCdn("oxium.png"),
176
+ color: 9597243
177
+ },
178
+ {
179
+ name: "rubedo",
180
+ description: "Rubedo",
181
+ test: (s) => /rubedo/i.test(s),
182
+ thumbnail: wfCdn("rubedo.png"),
183
+ color: 13516342
184
+ },
185
+ {
186
+ name: "salvage",
187
+ description: "Salvage",
188
+ test: (s) => /salvage/i.test(s),
189
+ thumbnail: wfCdn("salvage.png"),
190
+ color: 9145997
191
+ },
192
+ {
193
+ name: "plastids",
194
+ description: "Plastids",
195
+ test: (s) => /plastids/i.test(s),
196
+ thumbnail: wfCdn("plastids.png"),
197
+ color: 13545096
198
+ },
199
+ {
200
+ name: "polymerBundle",
201
+ description: "Polymer Bundle",
202
+ test: (s) => /polymer\sbundle/i.test(s),
203
+ thumbnail: wfCdn("polymer-bundle.png"),
204
+ color: 7032228
205
+ },
206
+ {
207
+ name: "argonCrystal",
208
+ description: "Argon Crystal",
209
+ test: (s) => /argon\scrystal/i.test(s),
210
+ thumbnail: wfCdn("argon-crystal.png"),
211
+ color: 13170943
212
+ },
213
+ {
214
+ name: "cryotic",
215
+ description: "Cryotic",
216
+ test: (s) => /cryotic/i.test(s),
217
+ thumbnail: wfCdn("cryotic.png"),
218
+ color: 7905971
219
+ },
220
+ {
221
+ name: "tellurium",
222
+ description: "Tellurium",
223
+ test: (s) => /tellurium/i.test(s),
224
+ thumbnail: wfCdn("tellurium.png"),
225
+ color: 15150616
226
+ },
227
+ {
228
+ name: "resource",
229
+ description: "Resources",
230
+ test: (s) => resources.includes(s),
231
+ thumbnail: "https://i.imgur.com/Bq5TEPo.png",
232
+ color: 16772764
233
+ },
234
+ {
235
+ name: "nightmare",
236
+ description: "Nightmare mods",
237
+ test: (s) => nightmare.includes(s),
238
+ thumbnail: cdn("svg/nightmare.svg"),
239
+ color: 11677228
240
+ },
241
+ {
242
+ name: "endo",
243
+ description: "Endo",
244
+ test: (s) => /^\d+x?\sendo/i.test(s),
245
+ thumbnail: wfCdn("endo.png"),
246
+ color: 12755532
247
+ },
248
+ {
249
+ name: "reactor",
250
+ description: "Orokin Reactors",
251
+ test: (s) => /reactor/i.test(s),
252
+ thumbnail: wfCdn("orokin-reactor.png"),
253
+ color: 14140285
254
+ },
255
+ {
256
+ name: "catalyst",
257
+ description: "Orokin Catalyst",
258
+ test: (s) => /catalyst/i.test(s),
259
+ thumbnail: wfCdn("orokin-catalyst.png"),
260
+ color: 6855389
261
+ },
262
+ {
263
+ name: "potato",
264
+ description: "Orokin Catalysts/Reactors",
265
+ test: (s) => /catalyst|reactor/i.test(s),
266
+ thumbnail: wfCdn("orokin-catalyst.png"),
267
+ color: 6855389
268
+ },
269
+ {
270
+ name: "forma",
271
+ description: "Forma",
272
+ test: (s) => /forma/i.test(s),
273
+ thumbnail: wfCdn("forma.png"),
274
+ color: 11638087
275
+ },
276
+ {
277
+ name: "exilus",
278
+ description: "Exilus",
279
+ test: (s) => /exilus/i.test(s),
280
+ thumbnail: wfCdn("exilus-adapter.png"),
281
+ color: 8925997
282
+ },
283
+ {
284
+ name: "synthula",
285
+ description: "Synthula",
286
+ test: (s) => /synthula/i.test(s),
287
+ thumbnail: wfCdn("synthula.png"),
288
+ color: 10461599
289
+ },
290
+ {
291
+ name: "kavatGene",
292
+ description: "Kavat Genetic Code",
293
+ test: (s) => /Kavat Ge/i.test(s),
294
+ thumbnail: wfCdn("kavat-genetic-code.png"),
295
+ color: 7776429
296
+ },
297
+ {
298
+ name: "kubrowEgg",
299
+ description: "Kubrow Egg",
300
+ test: (s) => /kubrow\segg/i.test(s),
301
+ thumbnail: wfCdn("kubrow-egg"),
302
+ color: 10851199
303
+ },
304
+ {
305
+ name: "traces",
306
+ description: "Void Traces",
307
+ test: (s) => /trace/i.test(s),
308
+ thumbnail: wfCdn("void-traces.png"),
309
+ color: 6923485
310
+ },
311
+ {
312
+ name: "riven",
313
+ description: "Riven Mod",
314
+ test: (s) => /riven/i.test(s),
315
+ thumbnail: wfCdn("rifle-riven-mod.png"),
316
+ color: 10585021
317
+ },
318
+ {
319
+ name: "other",
320
+ description: "Other",
321
+ test: () => true,
322
+ thumbnail: "",
323
+ color: 5198940
324
+ }
325
+ ];
326
+
327
+ //#endregion
328
+ export { RewardTypes_default };
@@ -0,0 +1,34 @@
1
+ //#region lib/supporting/RewardTypes.d.ts
2
+ /**
3
+ * An object describing a type of reward, including name, description,
4
+ * test function to verify type from a string, thumbnail url, and color
5
+ */
6
+ interface RewardType {
7
+ /**
8
+ * Name of the reward type.
9
+ */
10
+ name: string;
11
+ /**
12
+ * Description of the reward type.
13
+ */
14
+ description: string;
15
+ /**
16
+ * Function for testing the reward type against a string.
17
+ */
18
+ test: (s: string) => boolean;
19
+ /**
20
+ * Thumbnail url for the reward type.
21
+ */
22
+ thumbnail: string;
23
+ /**
24
+ * Summary color representing this reward type
25
+ */
26
+ color: number;
27
+ }
28
+ /**
29
+ * All possible RewardTypes
30
+ * @type {Array.<RewardType>}
31
+ */
32
+ declare const _default: RewardType[];
33
+ //#endregion
34
+ export { RewardType, _default };
@@ -0,0 +1,65 @@
1
+ import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
2
+
3
+ //#region lib/models/SentientOutpost.ts
4
+ const duration = 1800;
5
+ const sat = () => {
6
+ const now = Math.floor(Date.now() / 1e3);
7
+ const cycleSeconds = now % duration;
8
+ const active = cycleSeconds > 0 && cycleSeconds < 1800;
9
+ const start = (now - cycleSeconds) * 1e3;
10
+ const end = (now - cycleSeconds + duration) * 1e3;
11
+ return {
12
+ active,
13
+ expiry: new Date(end),
14
+ activation: new Date(start)
15
+ };
16
+ };
17
+ /**
18
+ * Represents a set of sentient outposts that are present
19
+ * Parsed source is combined data from DE's worldstate and semlar.com/anomaly.json
20
+ */
21
+ var SentientOutpost = class {
22
+ node;
23
+ id;
24
+ /**
25
+ * Start time
26
+ */
27
+ activation;
28
+ /**
29
+ * End time
30
+ */
31
+ expiry;
32
+ /**
33
+ * Current Mission
34
+ */
35
+ mission;
36
+ /**
37
+ * Whether or not the object was active during creation
38
+ */
39
+ active;
40
+ /**
41
+ * @param sfn Sentient outpost node number
42
+ * @param deps Dependencies
43
+ */
44
+ constructor(sfn, { locale, sentientData, logger }) {
45
+ this.node = sfn || "000";
46
+ const id = `CrewBattleNode${this.node}`;
47
+ if (this.node === "000") this.mission = void 0;
48
+ else this.mission = {
49
+ node: node(id, locale),
50
+ faction: nodeEnemy(id, locale),
51
+ type: nodeMissionType(id, locale)
52
+ };
53
+ ({activation: this.activation, expiry: this.expiry} = sat());
54
+ this.active = Boolean(this.mission);
55
+ this.id = `${id}:${this.active}`;
56
+ if (!sentientData) logger?.debug("No outpost data, skipping");
57
+ else {
58
+ this.activation = /* @__PURE__ */ new Date(sentientData.start * 1e3);
59
+ this.expiry = /* @__PURE__ */ new Date(sentientData.end * 1e3);
60
+ }
61
+ }
62
+ };
63
+
64
+ //#endregion
65
+ export { SentientOutpost };
@@ -0,0 +1,47 @@
1
+ import { Dependency } from "./Dependency-DkOHLql6.js";
2
+
3
+ //#region lib/models/SentientOutpost.d.ts
4
+
5
+ /**
6
+ * Mission typeDef
7
+ */
8
+ interface Mission {
9
+ node: string;
10
+ faction: string;
11
+ type: string;
12
+ }
13
+ /**
14
+ * Represents a set of sentient outposts that are present
15
+ * Parsed source is combined data from DE's worldstate and semlar.com/anomaly.json
16
+ */
17
+ declare class SentientOutpost {
18
+ private node;
19
+ id: string;
20
+ /**
21
+ * Start time
22
+ */
23
+ activation: Date;
24
+ /**
25
+ * End time
26
+ */
27
+ expiry: Date;
28
+ /**
29
+ * Current Mission
30
+ */
31
+ mission?: Mission;
32
+ /**
33
+ * Whether or not the object was active during creation
34
+ */
35
+ active: boolean;
36
+ /**
37
+ * @param sfn Sentient outpost node number
38
+ * @param deps Dependencies
39
+ */
40
+ constructor(sfn: string | number | undefined, {
41
+ locale,
42
+ sentientData,
43
+ logger
44
+ }: Dependency);
45
+ }
46
+ //#endregion
47
+ export { SentientOutpost };
@@ -0,0 +1,35 @@
1
+ import { languageString } from "warframe-worldstate-data/utilities";
2
+
3
+ //#region lib/models/Simaris.ts
4
+ /**
5
+ * Contains information about sanctuary targets
6
+ */
7
+ var Simaris = class {
8
+ /**
9
+ * The sanctuary target
10
+ */
11
+ target;
12
+ /**
13
+ * Whether or not the target is currently active
14
+ */
15
+ isTargetActive;
16
+ /**
17
+ * @param data The sanctuary data
18
+ * @param deps The dependencies object
19
+ * @param deps.locale Locale to use for translations
20
+ */
21
+ constructor(data, { locale } = { locale: "en" }) {
22
+ if (!data || !Object.keys(data).length) data = { LastCompletedTargetType: "" };
23
+ this.target = languageString(data.LastCompletedTargetType, locale) || "N/A";
24
+ this.isTargetActive = !data.LastCompletedTargetType;
25
+ }
26
+ /**
27
+ * A string representation of the current sanctuary status
28
+ */
29
+ get asString() {
30
+ return `Simaris's ${this.isTargetActive ? "current" : "previous"} objective ${this.isTargetActive ? "is" : "was"} ${this.target}`;
31
+ }
32
+ };
33
+
34
+ //#endregion
35
+ export { Simaris };
@@ -0,0 +1,37 @@
1
+ import { Dependency } from "./Dependency-DkOHLql6.js";
2
+
3
+ //#region lib/models/Simaris.d.ts
4
+
5
+ /**
6
+ * Simaris library info
7
+ */
8
+ type LibraryInfo = {
9
+ LastCompletedTargetType: string;
10
+ };
11
+ /**
12
+ * Contains information about sanctuary targets
13
+ */
14
+ declare class Simaris {
15
+ /**
16
+ * The sanctuary target
17
+ */
18
+ target: string;
19
+ /**
20
+ * Whether or not the target is currently active
21
+ */
22
+ isTargetActive: boolean;
23
+ /**
24
+ * @param data The sanctuary data
25
+ * @param deps The dependencies object
26
+ * @param deps.locale Locale to use for translations
27
+ */
28
+ constructor(data?: LibraryInfo, {
29
+ locale
30
+ }?: Dependency);
31
+ /**
32
+ * A string representation of the current sanctuary status
33
+ */
34
+ get asString(): string;
35
+ }
36
+ //#endregion
37
+ export { LibraryInfo, Simaris };
@@ -0,0 +1,60 @@
1
+ import { Dependency } from "./Dependency-DkOHLql6.js";
2
+ import { Mission, RawMission } from "./Mission-CWE16ouO.js";
3
+ import { BaseContentObject, WorldstateObject } from "./WorldstateObject-wfRTeGpm.js";
4
+ import { RawSortieVariant, SortieVariant } from "./SortieVariant-BFkYiBho.js";
5
+
6
+ //#region lib/models/Sortie.d.ts
7
+ interface RawSortie extends BaseContentObject {
8
+ Reward: string;
9
+ Variants?: RawSortieVariant[];
10
+ Missions?: RawMission[];
11
+ Boss: string;
12
+ }
13
+ /**
14
+ * Represents a daily sortie
15
+ * @augments {WorldstateObject}
16
+ */
17
+ declare class Sortie extends WorldstateObject {
18
+ /**
19
+ * The sortie's reward pool
20
+ */
21
+ rewardPool: string;
22
+ /**
23
+ * The sortie's variants
24
+ */
25
+ variants: SortieVariant[];
26
+ /**
27
+ * Archon hunt missions if sortie is an archon hunt
28
+ */
29
+ missions: Mission[];
30
+ /**
31
+ * The sortie's boss
32
+ */
33
+ boss: string;
34
+ /**
35
+ * The sortie's faction
36
+ */
37
+ faction: string;
38
+ /**
39
+ * The sortie's faction
40
+ */
41
+ factionKey: string;
42
+ /**
43
+ * @param data The data for all daily sorties
44
+ * @param deps The dependencies object
45
+ * @param deps.locale Locale to use for translations
46
+ */
47
+ constructor(data: RawSortie, {
48
+ locale
49
+ }?: Dependency);
50
+ /**
51
+ * ETA string (at time of object creation)
52
+ */
53
+ get eta(): string;
54
+ /**
55
+ * Whether this is expired (at time of object creation)
56
+ */
57
+ get expired(): boolean;
58
+ }
59
+ //#endregion
60
+ export { RawSortie, Sortie };
@@ -0,0 +1,73 @@
1
+ import { Mission } from "./Mission-ZuSsAYNm.js";
2
+ import { WorldstateObject } from "./WorldstateObject-BSTYuZwm.js";
3
+ import { SortieVariant } from "./SortieVariant-eWuI1uh9.js";
4
+ import wsData from "warframe-worldstate-data";
5
+ import { fromNow, languageString, parseDate, sortieBoss, sortieFaction, timeDeltaToString } from "warframe-worldstate-data/utilities";
6
+
7
+ //#region lib/models/Sortie.ts
8
+ const { sortie: sortieData } = wsData;
9
+ /**
10
+ * Represents a daily sortie
11
+ * @augments {WorldstateObject}
12
+ */
13
+ var Sortie = class extends WorldstateObject {
14
+ /**
15
+ * The sortie's reward pool
16
+ */
17
+ rewardPool;
18
+ /**
19
+ * The sortie's variants
20
+ */
21
+ variants;
22
+ /**
23
+ * Archon hunt missions if sortie is an archon hunt
24
+ */
25
+ missions;
26
+ /**
27
+ * The sortie's boss
28
+ */
29
+ boss;
30
+ /**
31
+ * The sortie's faction
32
+ */
33
+ faction;
34
+ /**
35
+ * The sortie's faction
36
+ */
37
+ factionKey;
38
+ /**
39
+ * @param data The data for all daily sorties
40
+ * @param deps The dependencies object
41
+ * @param deps.locale Locale to use for translations
42
+ */
43
+ constructor(data, { locale = "en" } = { locale: "en" }) {
44
+ super(data);
45
+ const opts = {
46
+ sortieData,
47
+ locale
48
+ };
49
+ this.activation = parseDate(data.Activation);
50
+ this.expiry = parseDate(data.Expiry);
51
+ this.rewardPool = languageString(data.Reward, locale);
52
+ this.variants = (data.Variants ?? []).map((v) => new SortieVariant(v, opts));
53
+ this.missions = (data.Missions ?? []).map((v) => new Mission(v, opts));
54
+ this.boss = sortieBoss(data.Boss, locale);
55
+ this.faction = sortieFaction(data.Boss, locale);
56
+ this.factionKey = sortieFaction(data.Boss, "en");
57
+ }
58
+ /**
59
+ * ETA string (at time of object creation)
60
+ */
61
+ get eta() {
62
+ return timeDeltaToString(fromNow(this.expiry));
63
+ }
64
+ /**
65
+ * Whether this is expired (at time of object creation)
66
+ */
67
+ get expired() {
68
+ return fromNow(this.expiry) < 0;
69
+ }
70
+ };
71
+
72
+ //#endregion
73
+ export { Sortie };