warframe-worldstate-parser 5.2.18 → 5.3.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 (128) hide show
  1. package/dist/{Calendar-C-rbmV_t.d.mts → Calendar-C99Wr_NC.d.mts} +1 -1
  2. package/dist/{CambionCycle-BzR_MfPH.d.mts → CambionCycle-CEVo0BPO.d.mts} +8 -2
  3. package/dist/{CetusCycle-DaqfF4J1.d.mts → CetusCycle-sbJ_VYPO.d.mts} +1 -1
  4. package/dist/{ConstructionProgress-BRxmro3-.d.mts → ConstructionProgress-CffeDtau.d.mts} +10 -1
  5. package/dist/{DarkSectorBattle-DHRl5tG1.d.mts → DarkSectorBattle-DwaJyGk3.d.mts} +1 -1
  6. package/dist/{Dependency-Cd-TxBJy.d.mts → Dependency-CtryMjKU.d.mts} +1 -1
  7. package/dist/{EarthCycle-C_oB5gDc.d.mts → EarthCycle-BsMMsVT4.d.mts} +1 -1
  8. package/dist/ExternalMission-Be-eX0Pc.d.mts +95 -0
  9. package/dist/{MidrathCycle-CxveqDtx.d.mts → MidrathCycle-UgLh7wgF.d.mts} +1 -1
  10. package/dist/{News-CJ3lD7_g.d.mts → News-CmoQ_nEf.d.mts} +1 -1
  11. package/dist/{Nightwave-BLHH02ht.d.mts → Nightwave-BBRJbyr8.d.mts} +2 -2
  12. package/dist/{NightwaveChallenge-j_m4hVQU.d.mts → NightwaveChallenge-C6J7ymli.d.mts} +1 -1
  13. package/dist/{PersistentEnemy-BJ4twtUY.d.mts → PersistentEnemy-WkvIZ9Mx.d.mts} +1 -1
  14. package/dist/{SteelPathOffering-DYjZ29sT.d.mts → SteelPathOffering-K2Ji4d5c.d.mts} +21 -0
  15. package/dist/{VallisCycle-as7DM4a-.d.mts → VallisCycle-BTYgGev7.d.mts} +1 -1
  16. package/dist/{ZarimanCycle-DyYiVfyG.d.mts → ZarimanCycle-D4YCSLmR.d.mts} +1 -1
  17. package/dist/decorate-CltSo06_.mjs +14 -0
  18. package/dist/{index-C4EJ_Mpd.d.mts → index-BiofND5v.d.mts} +77 -23
  19. package/dist/lib/WorldState.d.mts +16 -16
  20. package/dist/lib/WorldState.mjs +332 -2
  21. package/dist/lib/models/Alert.d.mts +1 -1
  22. package/dist/lib/models/Alert.mjs +29 -0
  23. package/dist/lib/models/Archimedea.d.mts +2 -2
  24. package/dist/lib/models/Archimedea.mjs +146 -1
  25. package/dist/lib/models/Calendar.d.mts +1 -1
  26. package/dist/lib/models/CambionCycle.d.mts +1 -1
  27. package/dist/lib/models/CambionCycle.mjs +19 -0
  28. package/dist/lib/models/CetusCycle.d.mts +1 -1
  29. package/dist/lib/models/CetusCycle.mjs +26 -0
  30. package/dist/lib/models/ChallengeInstance.d.mts +1 -1
  31. package/dist/lib/models/ChallengeInstance.mjs +38 -0
  32. package/dist/lib/models/ConclaveChallenge.d.mts +1 -1
  33. package/dist/lib/models/ConclaveChallenge.mjs +53 -0
  34. package/dist/lib/models/ConstructionProgress.d.mts +1 -1
  35. package/dist/lib/models/ConstructionProgress.mjs +27 -0
  36. package/dist/lib/models/DailyDeal.d.mts +1 -1
  37. package/dist/lib/models/DailyDeal.mjs +48 -0
  38. package/dist/lib/models/DarkSector.d.mts +1 -1
  39. package/dist/lib/models/DarkSector.mjs +152 -0
  40. package/dist/lib/models/DarkSectorBattle.d.mts +1 -1
  41. package/dist/lib/models/DarkSectorBattle.mjs +48 -0
  42. package/dist/lib/models/DuviriCycle.d.mts +1 -1
  43. package/dist/lib/models/DuviriCycle.mjs +20 -0
  44. package/dist/lib/models/EarthCycle.d.mts +1 -1
  45. package/dist/lib/models/EarthCycle.mjs +21 -0
  46. package/dist/lib/models/Fissure.d.mts +1 -1
  47. package/dist/lib/models/Fissure.mjs +49 -0
  48. package/dist/lib/models/FlashSale.d.mts +1 -1
  49. package/dist/lib/models/FlashSale.mjs +46 -0
  50. package/dist/lib/models/GlobalUpgrade.d.mts +1 -1
  51. package/dist/lib/models/GlobalUpgrade.mjs +23 -0
  52. package/dist/lib/models/Invasion.d.mts +1 -1
  53. package/dist/lib/models/Invasion.mjs +68 -0
  54. package/dist/lib/models/Kinepage.d.mts +1 -1
  55. package/dist/lib/models/Kinepage.mjs +24 -0
  56. package/dist/lib/models/Kuva.d.mts +1 -1
  57. package/dist/lib/models/Kuva.mjs +28 -0
  58. package/dist/lib/models/MidrathCycle.d.mts +1 -1
  59. package/dist/lib/models/MidrathCycle.mjs +13 -0
  60. package/dist/lib/models/Mission.d.mts +1 -1
  61. package/dist/lib/models/Mission.mjs +150 -0
  62. package/dist/lib/models/News.d.mts +1 -1
  63. package/dist/lib/models/News.mjs +63 -1
  64. package/dist/lib/models/Nightwave.d.mts +1 -1
  65. package/dist/lib/models/Nightwave.mjs +50 -0
  66. package/dist/lib/models/NightwaveChallenge.d.mts +1 -1
  67. package/dist/lib/models/NightwaveChallenge.mjs +34 -0
  68. package/dist/lib/models/PersistentEnemy.d.mts +1 -1
  69. package/dist/lib/models/PersistentEnemy.mjs +62 -0
  70. package/dist/lib/models/Reward.d.mts +1 -1
  71. package/dist/lib/models/Reward.mjs +50 -0
  72. package/dist/lib/models/SentientOutpost.d.mts +1 -1
  73. package/dist/lib/models/SentientOutpost.mjs +44 -0
  74. package/dist/lib/models/Simaris.d.mts +1 -1
  75. package/dist/lib/models/Simaris.mjs +13 -0
  76. package/dist/lib/models/Sortie.d.mts +1 -1
  77. package/dist/lib/models/Sortie.mjs +44 -0
  78. package/dist/lib/models/SortieVariant.d.mts +1 -1
  79. package/dist/lib/models/SortieVariant.mjs +33 -0
  80. package/dist/lib/models/SteelPathOffering.d.mts +1 -1
  81. package/dist/lib/models/SteelPathOffering.mjs +83 -0
  82. package/dist/lib/models/SyndicateJob.d.mts +1 -1
  83. package/dist/lib/models/SyndicateJob.mjs +73 -0
  84. package/dist/lib/models/SyndicateMission.d.mts +1 -1
  85. package/dist/lib/models/SyndicateMission.mjs +33 -0
  86. package/dist/lib/models/Tmp.d.mts +2 -2
  87. package/dist/lib/models/Tmp.mjs +92 -1
  88. package/dist/lib/models/VallisCycle.d.mts +1 -1
  89. package/dist/lib/models/VallisCycle.mjs +13 -0
  90. package/dist/lib/models/VoidTrader.d.mts +1 -1
  91. package/dist/lib/models/VoidTrader.mjs +54 -0
  92. package/dist/lib/models/VoidTraderItem.d.mts +1 -1
  93. package/dist/lib/models/VoidTraderItem.mjs +25 -0
  94. package/dist/lib/models/VoidTraderSchedule.d.mts +1 -1
  95. package/dist/lib/models/VoidTraderSchedule.mjs +19 -0
  96. package/dist/lib/models/WeeklyChallenge.d.mts +1 -1
  97. package/dist/lib/models/WeeklyChallenge.mjs +17 -0
  98. package/dist/lib/models/WorldEvent.d.mts +1 -1
  99. package/dist/lib/models/WorldEvent.mjs +263 -0
  100. package/dist/lib/models/WorldStateObject.d.mts +1 -1
  101. package/dist/lib/models/WorldStateObject.mjs +28 -0
  102. package/dist/lib/models/ZarimanCycle.d.mts +1 -1
  103. package/dist/lib/models/ZarimanCycle.mjs +18 -0
  104. package/dist/lib/models/index.d.mts +18 -18
  105. package/dist/lib/models/index.mjs +3 -3
  106. package/dist/lib/supporting/Dependency.d.mts +1 -1
  107. package/dist/lib/supporting/DuviriChoice.d.mts +1 -1
  108. package/dist/lib/supporting/DuviriChoice.mjs +31 -0
  109. package/dist/lib/supporting/ExternalMission.d.mts +2 -2
  110. package/dist/lib/supporting/ExternalMission.mjs +228 -1
  111. package/dist/lib/supporting/FetchProxy.d.mts +1 -1
  112. package/dist/lib/supporting/ImgCdn.d.mts +1 -1
  113. package/dist/lib/supporting/KuvaLogEntry.d.mts +1 -1
  114. package/dist/lib/supporting/RewardData.d.mts +1 -1
  115. package/dist/lib/supporting/RewardTypes.d.mts +1 -1
  116. package/dist/lib/supporting/index.d.mts +9 -9
  117. package/dist/lib/supporting/index.mjs +2 -1
  118. package/dist/main.d.mts +25 -25
  119. package/dist/main.mjs +7 -6
  120. package/package.json +7 -1
  121. package/dist/ExternalMission-CT__oi7Q.d.mts +0 -49
  122. /package/dist/{FetchProxy-DHSI4JPP.d.mts → FetchProxy-Bgoi37sM.d.mts} +0 -0
  123. /package/dist/{ImgCdn-DIhZrwap.d.mts → ImgCdn-By4Qj9kk.d.mts} +0 -0
  124. /package/dist/{Kinepage-CKBuvbv5.d.mts → Kinepage-BDZm950n.d.mts} +0 -0
  125. /package/dist/{KuvaLogEntry-f4ZBn2Xf.d.mts → KuvaLogEntry-B0SaM7MX.d.mts} +0 -0
  126. /package/dist/{RewardData-BdtdUFnh.d.mts → RewardData-B5TstL-h.d.mts} +0 -0
  127. /package/dist/{RewardTypes-BnGaD7VF.d.mts → RewardTypes-DMW4dYrB.d.mts} +0 -0
  128. /package/dist/{WorldStateObject-C2KjQZjd.d.mts → WorldStateObject-BgeCocs9.d.mts} +0 -0
@@ -1,6 +1,59 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { Kinepage } from "./Kinepage.mjs";
2
3
  import { SentientOutpost } from "./SentientOutpost.mjs";
4
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
5
+ import { Type } from "class-transformer";
6
+ import { IsDate, IsInt, IsOptional, Min, ValidateNested } from "class-validator";
3
7
  //#region lib/models/Tmp.ts
8
+ var _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
9
+ var FaceoffBonus = class {
10
+ activation;
11
+ expiry;
12
+ next;
13
+ };
14
+ __decorate([
15
+ ApiProperty({
16
+ description: "Faceoff bonus activation time",
17
+ type: Date
18
+ }),
19
+ IsDate(),
20
+ Type(() => Date),
21
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
22
+ ], FaceoffBonus.prototype, "activation", void 0);
23
+ __decorate([
24
+ ApiProperty({
25
+ description: "Faceoff bonus expiry time",
26
+ type: Date
27
+ }),
28
+ IsDate(),
29
+ Type(() => Date),
30
+ __decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
31
+ ], FaceoffBonus.prototype, "expiry", void 0);
32
+ __decorate([
33
+ ApiProperty({
34
+ description: "Next faceoff bonus time",
35
+ type: Date
36
+ }),
37
+ IsDate(),
38
+ Type(() => Date),
39
+ __decorateMetadata("design:type", typeof (_ref3 = typeof Date !== "undefined" && Date) === "function" ? _ref3 : Object)
40
+ ], FaceoffBonus.prototype, "next", void 0);
41
+ var QuestProgress = class {
42
+ count;
43
+ goal;
44
+ };
45
+ __decorate([
46
+ ApiProperty({ description: "Current progress count" }),
47
+ IsInt(),
48
+ Min(0),
49
+ __decorateMetadata("design:type", Number)
50
+ ], QuestProgress.prototype, "count", void 0);
51
+ __decorate([
52
+ ApiProperty({ description: "Goal target" }),
53
+ IsInt(),
54
+ Min(0),
55
+ __decorateMetadata("design:type", Number)
56
+ ], QuestProgress.prototype, "goal", void 0);
4
57
  var Tmp = class {
5
58
  sentientOutposts;
6
59
  kinepage;
@@ -24,5 +77,43 @@ var Tmp = class {
24
77
  };
25
78
  }
26
79
  };
80
+ __decorate([
81
+ ApiProperty({
82
+ description: "Sentient outpost information",
83
+ type: () => SentientOutpost
84
+ }),
85
+ ValidateNested(),
86
+ Type(() => SentientOutpost),
87
+ __decorateMetadata("design:type", typeof (_ref4 = typeof SentientOutpost !== "undefined" && SentientOutpost) === "function" ? _ref4 : Object)
88
+ ], Tmp.prototype, "sentientOutposts", void 0);
89
+ __decorate([
90
+ ApiProperty({
91
+ description: "Kinepage message",
92
+ type: () => Kinepage
93
+ }),
94
+ ValidateNested(),
95
+ Type(() => Kinepage),
96
+ __decorateMetadata("design:type", typeof (_ref5 = typeof Kinepage !== "undefined" && Kinepage) === "function" ? _ref5 : Object)
97
+ ], Tmp.prototype, "kinepage", void 0);
98
+ __decorate([
99
+ ApiPropertyOptional({
100
+ description: "Faceoff bonus information",
101
+ type: () => FaceoffBonus
102
+ }),
103
+ IsOptional(),
104
+ ValidateNested(),
105
+ Type(() => FaceoffBonus),
106
+ __decorateMetadata("design:type", typeof (_ref6 = typeof FaceoffBonus !== "undefined" && FaceoffBonus) === "function" ? _ref6 : Object)
107
+ ], Tmp.prototype, "faceoffBonus", void 0);
108
+ __decorate([
109
+ ApiPropertyOptional({
110
+ description: "Quest to Conquer Cancer progress",
111
+ type: () => QuestProgress
112
+ }),
113
+ IsOptional(),
114
+ ValidateNested(),
115
+ Type(() => QuestProgress),
116
+ __decorateMetadata("design:type", typeof (_ref7 = typeof QuestProgress !== "undefined" && QuestProgress) === "function" ? _ref7 : Object)
117
+ ], Tmp.prototype, "questToConquerCancer", void 0);
27
118
  //#endregion
28
- export { Tmp };
119
+ export { FaceoffBonus, QuestProgress, Tmp };
@@ -1,2 +1,2 @@
1
- import { t as VallisCycle } from "../../VallisCycle-as7DM4a-.mjs";
1
+ import { t as VallisCycle } from "../../VallisCycle-BTYgGev7.mjs";
2
2
  export { VallisCycle };
@@ -1,4 +1,7 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { WorldStateObject } from "./WorldStateObject.mjs";
3
+ import { ApiProperty } from "@nestjs/swagger";
4
+ import { IsBoolean, IsString } from "class-validator";
2
5
  import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
3
6
  //#region lib/models/VallisCycle.ts
4
7
  const lStart = /* @__PURE__ */ new Date("2026-02-04T19:46:48Z");
@@ -68,5 +71,15 @@ var VallisCycle = class extends WorldStateObject {
68
71
  return `${this.timeLeft.replace(/\s\d*s/gi, "")} to ${this.isWarm ? "Cold" : "Warm"}`;
69
72
  }
70
73
  };
74
+ __decorate([
75
+ ApiProperty({ description: "Whether or not it is currently warm" }),
76
+ IsBoolean(),
77
+ __decorateMetadata("design:type", Boolean)
78
+ ], VallisCycle.prototype, "isWarm", void 0);
79
+ __decorate([
80
+ ApiProperty({ description: "Current cycle state. One of 'warm', 'cold'" }),
81
+ IsString(),
82
+ __decorateMetadata("design:type", String)
83
+ ], VallisCycle.prototype, "state", void 0);
71
84
  //#endregion
72
85
  export { VallisCycle };
@@ -1,2 +1,2 @@
1
- import { c as RawVoidTrader, l as VoidTrader } from "../../index-C4EJ_Mpd.mjs";
1
+ import { c as RawVoidTrader, l as VoidTrader } from "../../index-BiofND5v.mjs";
2
2
  export { RawVoidTrader, VoidTrader };
@@ -1,8 +1,13 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { WorldStateObject } from "./WorldStateObject.mjs";
2
3
  import { VoidTraderItem } from "./VoidTraderItem.mjs";
3
4
  import { VoidTraderSchedule } from "./VoidTraderSchedule.mjs";
5
+ import { ApiProperty } from "@nestjs/swagger";
6
+ import { Type } from "class-transformer";
7
+ import { IsArray, IsBoolean, IsDate, IsString, ValidateNested } from "class-validator";
4
8
  import { fromNow, insist, node, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
5
9
  //#region lib/models/VoidTrader.ts
10
+ var _ref;
6
11
  /**
7
12
  * Represents a void trader
8
13
  * @augments {WorldStateObject}
@@ -72,5 +77,54 @@ var VoidTrader = class extends WorldStateObject {
72
77
  return timeDeltaToString(fromNow(this.expiry));
73
78
  }
74
79
  };
80
+ __decorate([
81
+ ApiProperty({ description: "Void trader's name (e.g., Baro Ki'Teer)" }),
82
+ IsString(),
83
+ __decorateMetadata("design:type", String)
84
+ ], VoidTrader.prototype, "character", void 0);
85
+ __decorate([
86
+ ApiProperty({ description: "Location where the trader appears" }),
87
+ IsString(),
88
+ __decorateMetadata("design:type", String)
89
+ ], VoidTrader.prototype, "location", void 0);
90
+ __decorate([
91
+ ApiProperty({
92
+ description: "Trader's inventory items",
93
+ type: [VoidTraderItem]
94
+ }),
95
+ IsArray(),
96
+ ValidateNested({ each: true }),
97
+ Type(() => VoidTraderItem),
98
+ __decorateMetadata("design:type", Array)
99
+ ], VoidTrader.prototype, "inventory", void 0);
100
+ __decorate([
101
+ ApiProperty({ description: "Pseudo-ID for inventory changes" }),
102
+ IsString(),
103
+ __decorateMetadata("design:type", String)
104
+ ], VoidTrader.prototype, "psId", void 0);
105
+ __decorate([
106
+ ApiProperty({
107
+ description: "Initial start date",
108
+ type: Date
109
+ }),
110
+ IsDate(),
111
+ Type(() => Date),
112
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
113
+ ], VoidTrader.prototype, "initialStart", void 0);
114
+ __decorate([
115
+ ApiProperty({ description: "Whether the trader visit is completed" }),
116
+ IsBoolean(),
117
+ __decorateMetadata("design:type", Boolean)
118
+ ], VoidTrader.prototype, "completed", void 0);
119
+ __decorate([
120
+ ApiProperty({
121
+ description: "Trader schedule",
122
+ type: [VoidTraderSchedule]
123
+ }),
124
+ IsArray(),
125
+ ValidateNested({ each: true }),
126
+ Type(() => VoidTraderSchedule),
127
+ __decorateMetadata("design:type", Array)
128
+ ], VoidTrader.prototype, "schedule", void 0);
75
129
  //#endregion
76
130
  export { VoidTrader };
@@ -1,2 +1,2 @@
1
- import { d as RawVoidTraderItem, f as VoidTraderItem } from "../../index-C4EJ_Mpd.mjs";
1
+ import { d as RawVoidTraderItem, f as VoidTraderItem } from "../../index-BiofND5v.mjs";
2
2
  export { RawVoidTraderItem, VoidTraderItem };
@@ -1,3 +1,6 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiProperty } from "@nestjs/swagger";
3
+ import { IsInt, IsString, Min } from "class-validator";
1
4
  import { languageString } from "warframe-worldstate-data/utilities";
2
5
  //#region lib/models/VoidTraderItem.ts
3
6
  /**
@@ -32,5 +35,27 @@ var VoidTraderItem = class {
32
35
  this.credits = Number.parseInt(String(RegularPrice), 10);
33
36
  }
34
37
  };
38
+ __decorate([
39
+ ApiProperty({ description: "Unique item identifier" }),
40
+ IsString(),
41
+ __decorateMetadata("design:type", String)
42
+ ], VoidTraderItem.prototype, "uniqueName", void 0);
43
+ __decorate([
44
+ ApiProperty({ description: "Localized item name" }),
45
+ IsString(),
46
+ __decorateMetadata("design:type", String)
47
+ ], VoidTraderItem.prototype, "item", void 0);
48
+ __decorate([
49
+ ApiProperty({ description: "Ducat cost" }),
50
+ IsInt(),
51
+ Min(0),
52
+ __decorateMetadata("design:type", Number)
53
+ ], VoidTraderItem.prototype, "ducats", void 0);
54
+ __decorate([
55
+ ApiProperty({ description: "Credit cost" }),
56
+ IsInt(),
57
+ Min(0),
58
+ __decorateMetadata("design:type", Number)
59
+ ], VoidTraderItem.prototype, "credits", void 0);
35
60
  //#endregion
36
61
  export { VoidTraderItem };
@@ -1,2 +1,2 @@
1
- import { u as VoidTraderSchedule } from "../../index-C4EJ_Mpd.mjs";
1
+ import { u as VoidTraderSchedule } from "../../index-BiofND5v.mjs";
2
2
  export { VoidTraderSchedule };
@@ -1,5 +1,10 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiProperty } from "@nestjs/swagger";
3
+ import { Type } from "class-transformer";
4
+ import { IsDate, IsString } from "class-validator";
1
5
  import { languageString, parseDate } from "warframe-worldstate-data/utilities";
2
6
  //#region lib/models/VoidTraderSchedule.ts
7
+ var _ref;
3
8
  var VoidTraderSchedule = class {
4
9
  expiry;
5
10
  item;
@@ -8,5 +13,19 @@ var VoidTraderSchedule = class {
8
13
  this.item = languageString(data.FeaturedItem, locale);
9
14
  }
10
15
  };
16
+ __decorate([
17
+ ApiProperty({
18
+ description: "Schedule expiry date",
19
+ type: Date
20
+ }),
21
+ IsDate(),
22
+ Type(() => Date),
23
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
24
+ ], VoidTraderSchedule.prototype, "expiry", void 0);
25
+ __decorate([
26
+ ApiProperty({ description: "Featured item" }),
27
+ IsString(),
28
+ __decorateMetadata("design:type", String)
29
+ ], VoidTraderSchedule.prototype, "item", void 0);
11
30
  //#endregion
12
31
  export { VoidTraderSchedule };
@@ -1,2 +1,2 @@
1
- import { o as RawWeeklyChallenge, s as WeeklyChallenge } from "../../index-C4EJ_Mpd.mjs";
1
+ import { o as RawWeeklyChallenge, s as WeeklyChallenge } from "../../index-BiofND5v.mjs";
2
2
  export { RawWeeklyChallenge, WeeklyChallenge };
@@ -1,11 +1,18 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { WorldStateObject } from "./WorldStateObject.mjs";
2
3
  import { ChallengeInstance } from "./ChallengeInstance.mjs";
4
+ import { ApiProperty } from "@nestjs/swagger";
5
+ import { Type } from "class-transformer";
6
+ import { IsArray, ValidateNested } from "class-validator";
3
7
  //#region lib/models/WeeklyChallenge.ts
4
8
  /**
5
9
  * Represents a void trader
6
10
  * @augments {WorldStateObject}
7
11
  */
8
12
  var WeeklyChallenge = class extends WorldStateObject {
13
+ /**
14
+ * Array of weekly challenges
15
+ */
9
16
  challenges;
10
17
  /**
11
18
  * @param data The Void trader data
@@ -15,5 +22,15 @@ var WeeklyChallenge = class extends WorldStateObject {
15
22
  this.challenges = data.Challenges.map((challengeData) => new ChallengeInstance(challengeData));
16
23
  }
17
24
  };
25
+ __decorate([
26
+ ApiProperty({
27
+ description: "Array of weekly challenges",
28
+ type: [ChallengeInstance]
29
+ }),
30
+ IsArray(),
31
+ ValidateNested({ each: true }),
32
+ Type(() => ChallengeInstance),
33
+ __decorateMetadata("design:type", Array)
34
+ ], WeeklyChallenge.prototype, "challenges", void 0);
18
35
  //#endregion
19
36
  export { WeeklyChallenge };
@@ -1,2 +1,2 @@
1
- import { a as WorldEvent, i as RawWorldEvent, n as InterimStep, r as ProgressStep, t as InterimRewardMessage } from "../../index-C4EJ_Mpd.mjs";
1
+ import { a as WorldEvent, i as RawWorldEvent, n as InterimStep, r as ProgressStep, t as InterimRewardMessage } from "../../index-BiofND5v.mjs";
2
2
  export { InterimRewardMessage, InterimStep, ProgressStep, RawWorldEvent, WorldEvent };
@@ -1,14 +1,25 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { Reward } from "./Reward.mjs";
2
3
  import { WorldStateObject } from "./WorldStateObject.mjs";
3
4
  import { SyndicateJob } from "./SyndicateJob.mjs";
5
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
6
+ import { Type } from "class-transformer";
7
+ import { IsArray, IsBoolean, IsDate, IsInt, IsNumber, IsObject, IsOptional, IsString, Min, ValidateNested } from "class-validator";
4
8
  import { faction, fromNow, languageString, node, parseDate, syndicate } from "warframe-worldstate-data/utilities";
5
9
  //#region lib/models/WorldEvent.ts
10
+ var _ref, _ref2;
6
11
  /**
7
12
  * Represents an in-game special event
8
13
  * @augments {WorldStateObject}
9
14
  */
10
15
  var WorldEvent = class WorldEvent extends WorldStateObject {
16
+ /**
17
+ * Jobs associated with this event
18
+ */
11
19
  jobs;
20
+ /**
21
+ * Previous jobs associated with this event
22
+ */
12
23
  previousJobs;
13
24
  /**
14
25
  * The event's main score goal
@@ -103,15 +114,33 @@ var WorldEvent = class WorldEvent extends WorldStateObject {
103
114
  * Bonuses given for completion
104
115
  */
105
116
  completionBonuses;
117
+ /**
118
+ * Score variable name
119
+ */
106
120
  scoreVar;
121
+ /**
122
+ * Alternative expiry date
123
+ */
107
124
  altExpiry;
125
+ /**
126
+ * Alternative activation date
127
+ */
108
128
  altActivation;
129
+ /**
130
+ * Next alternative cycle dates
131
+ */
109
132
  nextAlt;
133
+ /**
134
+ * Affiliated syndicate, if any
135
+ */
110
136
  affiliatedWith;
111
137
  /**
112
138
  * The event's tag
113
139
  */
114
140
  tag;
141
+ /**
142
+ * Victim identifier, if any
143
+ */
115
144
  victim;
116
145
  /**
117
146
  * Asynchronously build a new WorldEvent
@@ -207,5 +236,239 @@ var WorldEvent = class WorldEvent extends WorldStateObject {
207
236
  return fromNow(this.expiry) < 0;
208
237
  }
209
238
  };
239
+ __decorate([
240
+ ApiProperty({
241
+ description: "Jobs associated with this event",
242
+ type: [SyndicateJob]
243
+ }),
244
+ IsArray(),
245
+ ValidateNested({ each: true }),
246
+ Type(() => SyndicateJob),
247
+ __decorateMetadata("design:type", Array)
248
+ ], WorldEvent.prototype, "jobs", void 0);
249
+ __decorate([
250
+ ApiProperty({
251
+ description: "Previous jobs associated with this event",
252
+ type: [SyndicateJob]
253
+ }),
254
+ IsArray(),
255
+ ValidateNested({ each: true }),
256
+ Type(() => SyndicateJob),
257
+ __decorateMetadata("design:type", Array)
258
+ ], WorldEvent.prototype, "previousJobs", void 0);
259
+ __decorate([
260
+ ApiProperty({ description: "The event's main score goal" }),
261
+ IsInt(),
262
+ Min(0),
263
+ __decorateMetadata("design:type", Number)
264
+ ], WorldEvent.prototype, "maximumScore", void 0);
265
+ __decorate([
266
+ ApiProperty({ description: "The current score on the event" }),
267
+ IsInt(),
268
+ Min(0),
269
+ __decorateMetadata("design:type", Number)
270
+ ], WorldEvent.prototype, "currentScore", void 0);
271
+ __decorate([
272
+ ApiProperty({ description: "The first intermediate score goal" }),
273
+ IsInt(),
274
+ Min(0),
275
+ __decorateMetadata("design:type", Number)
276
+ ], WorldEvent.prototype, "smallInterval", void 0);
277
+ __decorate([
278
+ ApiProperty({ description: "The second intermediate score goal" }),
279
+ IsInt(),
280
+ Min(0),
281
+ __decorateMetadata("design:type", Number)
282
+ ], WorldEvent.prototype, "largeInterval", void 0);
283
+ __decorate([
284
+ ApiPropertyOptional({ description: "The faction that the players must fight in the event" }),
285
+ IsOptional(),
286
+ IsString(),
287
+ __decorateMetadata("design:type", Object)
288
+ ], WorldEvent.prototype, "faction", void 0);
289
+ __decorate([
290
+ ApiProperty({ description: "The description of the event" }),
291
+ IsString(),
292
+ __decorateMetadata("design:type", String)
293
+ ], WorldEvent.prototype, "description", void 0);
294
+ __decorate([
295
+ ApiPropertyOptional({ description: "Tooltip for the event" }),
296
+ IsOptional(),
297
+ IsString(),
298
+ __decorateMetadata("design:type", Object)
299
+ ], WorldEvent.prototype, "tooltip", void 0);
300
+ __decorate([
301
+ ApiPropertyOptional({ description: "The node where the event takes place" }),
302
+ IsOptional(),
303
+ IsString(),
304
+ __decorateMetadata("design:type", Object)
305
+ ], WorldEvent.prototype, "node", void 0);
306
+ __decorate([
307
+ ApiProperty({
308
+ description: "The other nodes where the event takes place",
309
+ type: [String]
310
+ }),
311
+ IsArray(),
312
+ IsString({ each: true }),
313
+ __decorateMetadata("design:type", Array)
314
+ ], WorldEvent.prototype, "concurrentNodes", void 0);
315
+ __decorate([
316
+ ApiPropertyOptional({ description: "The victim node" }),
317
+ IsOptional(),
318
+ IsString(),
319
+ __decorateMetadata("design:type", Object)
320
+ ], WorldEvent.prototype, "victimNode", void 0);
321
+ __decorate([
322
+ ApiPropertyOptional({ description: "The score description" }),
323
+ IsOptional(),
324
+ IsString(),
325
+ __decorateMetadata("design:type", Object)
326
+ ], WorldEvent.prototype, "scoreLocTag", void 0);
327
+ __decorate([
328
+ ApiProperty({
329
+ description: "The event's rewards",
330
+ type: [Reward]
331
+ }),
332
+ IsArray(),
333
+ ValidateNested({ each: true }),
334
+ Type(() => Reward),
335
+ __decorateMetadata("design:type", Array)
336
+ ], WorldEvent.prototype, "rewards", void 0);
337
+ __decorate([
338
+ ApiPropertyOptional({ description: "Health remaining for the target" }),
339
+ IsOptional(),
340
+ IsNumber(),
341
+ Min(0),
342
+ __decorateMetadata("design:type", Object)
343
+ ], WorldEvent.prototype, "health", void 0);
344
+ __decorate([
345
+ ApiPropertyOptional({ description: "Previous job id" }),
346
+ IsOptional(),
347
+ IsString(),
348
+ __decorateMetadata("design:type", Object)
349
+ ], WorldEvent.prototype, "previousId", void 0);
350
+ __decorate([
351
+ ApiProperty({
352
+ description: "Array of interim steps",
353
+ type: "array",
354
+ items: { type: "object" }
355
+ }),
356
+ IsArray(),
357
+ __decorateMetadata("design:type", Array)
358
+ ], WorldEvent.prototype, "interimSteps", void 0);
359
+ __decorate([
360
+ ApiProperty({
361
+ description: "Progress steps, if any are present",
362
+ type: "array",
363
+ items: { type: "object" }
364
+ }),
365
+ IsArray(),
366
+ __decorateMetadata("design:type", Array)
367
+ ], WorldEvent.prototype, "progressSteps", void 0);
368
+ __decorate([
369
+ ApiPropertyOptional({ description: "Total of all MultiProgress" }),
370
+ IsOptional(),
371
+ IsNumber(),
372
+ __decorateMetadata("design:type", Number)
373
+ ], WorldEvent.prototype, "progressTotal", void 0);
374
+ __decorate([
375
+ ApiProperty({ description: "Whether to show the total score at the end of the mission" }),
376
+ IsBoolean(),
377
+ __decorateMetadata("design:type", Boolean)
378
+ ], WorldEvent.prototype, "showTotalAtEndOfMission", void 0);
379
+ __decorate([
380
+ ApiProperty({ description: "Whether the event is personal" }),
381
+ IsBoolean(),
382
+ __decorateMetadata("design:type", Boolean)
383
+ ], WorldEvent.prototype, "isPersonal", void 0);
384
+ __decorate([
385
+ ApiProperty({ description: "Whether the event is community" }),
386
+ IsBoolean(),
387
+ __decorateMetadata("design:type", Boolean)
388
+ ], WorldEvent.prototype, "isCommunity", void 0);
389
+ __decorate([
390
+ ApiProperty({
391
+ description: "Affectors for this mission",
392
+ type: [String]
393
+ }),
394
+ IsArray(),
395
+ IsString({ each: true }),
396
+ __decorateMetadata("design:type", Array)
397
+ ], WorldEvent.prototype, "regionDrops", void 0);
398
+ __decorate([
399
+ ApiProperty({
400
+ description: "Archwing Drops in effect while this event is active",
401
+ type: [String]
402
+ }),
403
+ IsArray(),
404
+ IsString({ each: true }),
405
+ __decorateMetadata("design:type", Array)
406
+ ], WorldEvent.prototype, "archwingDrops", void 0);
407
+ __decorate([
408
+ ApiProperty({
409
+ description: "Metadata provided by DE",
410
+ type: "object"
411
+ }),
412
+ IsObject(),
413
+ __decorateMetadata("design:type", Object)
414
+ ], WorldEvent.prototype, "metadata", void 0);
415
+ __decorate([
416
+ ApiProperty({
417
+ description: "Bonuses given for completion",
418
+ type: [Number]
419
+ }),
420
+ IsArray(),
421
+ IsNumber({}, { each: true }),
422
+ __decorateMetadata("design:type", Array)
423
+ ], WorldEvent.prototype, "completionBonuses", void 0);
424
+ __decorate([
425
+ ApiProperty({ description: "Score variable name" }),
426
+ IsString(),
427
+ __decorateMetadata("design:type", String)
428
+ ], WorldEvent.prototype, "scoreVar", void 0);
429
+ __decorate([
430
+ ApiProperty({
431
+ description: "Alternative expiry date",
432
+ type: Date
433
+ }),
434
+ IsDate(),
435
+ Type(() => Date),
436
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
437
+ ], WorldEvent.prototype, "altExpiry", void 0);
438
+ __decorate([
439
+ ApiProperty({
440
+ description: "Alternative activation date",
441
+ type: Date
442
+ }),
443
+ IsDate(),
444
+ Type(() => Date),
445
+ __decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
446
+ ], WorldEvent.prototype, "altActivation", void 0);
447
+ __decorate([
448
+ ApiProperty({
449
+ description: "Next alternative cycle dates",
450
+ type: "object"
451
+ }),
452
+ IsObject(),
453
+ ValidateNested(),
454
+ __decorateMetadata("design:type", Object)
455
+ ], WorldEvent.prototype, "nextAlt", void 0);
456
+ __decorate([
457
+ ApiPropertyOptional({ description: "Affiliated syndicate, if any" }),
458
+ IsOptional(),
459
+ IsString(),
460
+ __decorateMetadata("design:type", String)
461
+ ], WorldEvent.prototype, "affiliatedWith", void 0);
462
+ __decorate([
463
+ ApiProperty({ description: "The event's tag" }),
464
+ IsString(),
465
+ __decorateMetadata("design:type", String)
466
+ ], WorldEvent.prototype, "tag", void 0);
467
+ __decorate([
468
+ ApiPropertyOptional({ description: "Victim identifier, if any" }),
469
+ IsOptional(),
470
+ IsString(),
471
+ __decorateMetadata("design:type", String)
472
+ ], WorldEvent.prototype, "victim", void 0);
210
473
  //#endregion
211
474
  export { WorldEvent };
@@ -1,2 +1,2 @@
1
- import { n as Identifier, r as WorldStateObject, t as BaseContentObject } from "../../WorldStateObject-C2KjQZjd.mjs";
1
+ import { n as Identifier, r as WorldStateObject, t as BaseContentObject } from "../../WorldStateObject-BgeCocs9.mjs";
2
2
  export { BaseContentObject, Identifier, WorldStateObject };
@@ -1,5 +1,9 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiPropertyOptional } from "@nestjs/swagger";
3
+ import { IsDate, IsOptional, IsString } from "class-validator";
1
4
  import { fromNow, insist, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
2
5
  //#region lib/models/WorldStateObject.ts
6
+ var _ref, _ref2;
3
7
  /**
4
8
  * Represents a generic object from WorldState
5
9
  */
@@ -48,5 +52,29 @@ var WorldStateObject = class {
48
52
  return timeDeltaToString(fromNow(this.expiry));
49
53
  }
50
54
  };
55
+ __decorate([
56
+ ApiPropertyOptional({ description: "The unique identifier for this world state object" }),
57
+ IsOptional(),
58
+ IsString(),
59
+ __decorateMetadata("design:type", String)
60
+ ], WorldStateObject.prototype, "id", void 0);
61
+ __decorate([
62
+ ApiPropertyOptional({
63
+ description: "The date and time when this object becomes active",
64
+ type: Date
65
+ }),
66
+ IsOptional(),
67
+ IsDate(),
68
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
69
+ ], WorldStateObject.prototype, "activation", void 0);
70
+ __decorate([
71
+ ApiPropertyOptional({
72
+ description: "The date and time when this object expires",
73
+ type: Date
74
+ }),
75
+ IsOptional(),
76
+ IsDate(),
77
+ __decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
78
+ ], WorldStateObject.prototype, "expiry", void 0);
51
79
  //#endregion
52
80
  export { WorldStateObject };
@@ -1,2 +1,2 @@
1
- import { n as ZarimanCycle, t as CurrentZarimanCycle } from "../../ZarimanCycle-DyYiVfyG.mjs";
1
+ import { n as ZarimanCycle, t as CurrentZarimanCycle } from "../../ZarimanCycle-D4YCSLmR.mjs";
2
2
  export { CurrentZarimanCycle, ZarimanCycle };