warframe-worldstate-parser 5.2.17 → 5.3.0

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 (134) hide show
  1. package/dist/Calendar-C99Wr_NC.d.mts +78 -0
  2. package/dist/CambionCycle-CEVo0BPO.d.mts +28 -0
  3. package/dist/CetusCycle-sbJ_VYPO.d.mts +49 -0
  4. package/dist/ConstructionProgress-CffeDtau.d.mts +27 -0
  5. package/dist/DarkSectorBattle-DwaJyGk3.d.mts +53 -0
  6. package/dist/Dependency-CtryMjKU.d.mts +41 -0
  7. package/dist/EarthCycle-BsMMsVT4.d.mts +60 -0
  8. package/dist/ExternalMission-DaE_6ccj.d.mts +49 -0
  9. package/dist/FetchProxy-Bgoi37sM.d.mts +10 -0
  10. package/dist/ImgCdn-By4Qj9kk.d.mts +6 -0
  11. package/dist/Kinepage-BDZm950n.d.mts +22 -0
  12. package/dist/KuvaLogEntry-B0SaM7MX.d.mts +21 -0
  13. package/dist/MidrathCycle-UgLh7wgF.d.mts +25 -0
  14. package/dist/News-CmoQ_nEf.d.mts +101 -0
  15. package/dist/Nightwave-BBRJbyr8.d.mts +59 -0
  16. package/dist/NightwaveChallenge-C6J7ymli.d.mts +51 -0
  17. package/dist/PersistentEnemy-WkvIZ9Mx.d.mts +79 -0
  18. package/dist/RewardData-B5TstL-h.d.mts +11 -0
  19. package/dist/RewardTypes-DMW4dYrB.d.mts +34 -0
  20. package/dist/SteelPathOffering-K2Ji4d5c.d.mts +58 -0
  21. package/dist/VallisCycle-BTYgGev7.d.mts +30 -0
  22. package/dist/WorldStateObject-BgeCocs9.d.mts +48 -0
  23. package/dist/ZarimanCycle-D4YCSLmR.d.mts +45 -0
  24. package/dist/decorate-CltSo06_.mjs +14 -0
  25. package/dist/index-BK5W1mAn.d.mts +1722 -0
  26. package/dist/lib/WorldState.d.mts +16 -35
  27. package/dist/lib/WorldState.mjs +326 -3
  28. package/dist/lib/models/Alert.d.mts +1 -45
  29. package/dist/lib/models/Alert.mjs +30 -3
  30. package/dist/lib/models/Archimedea.d.mts +1 -86
  31. package/dist/lib/models/Archimedea.mjs +76 -3
  32. package/dist/lib/models/Calendar.d.mts +1 -77
  33. package/dist/lib/models/Calendar.mjs +1 -3
  34. package/dist/lib/models/CambionCycle.d.mts +1 -21
  35. package/dist/lib/models/CambionCycle.mjs +20 -3
  36. package/dist/lib/models/CetusCycle.d.mts +1 -48
  37. package/dist/lib/models/CetusCycle.mjs +27 -3
  38. package/dist/lib/models/ChallengeInstance.d.mts +1 -53
  39. package/dist/lib/models/ChallengeInstance.mjs +39 -3
  40. package/dist/lib/models/ConclaveChallenge.d.mts +1 -76
  41. package/dist/lib/models/ConclaveChallenge.mjs +54 -3
  42. package/dist/lib/models/ConstructionProgress.d.mts +1 -17
  43. package/dist/lib/models/ConstructionProgress.mjs +28 -3
  44. package/dist/lib/models/DailyDeal.d.mts +1 -66
  45. package/dist/lib/models/DailyDeal.mjs +49 -3
  46. package/dist/lib/models/DarkSector.d.mts +1 -142
  47. package/dist/lib/models/DarkSector.mjs +153 -3
  48. package/dist/lib/models/DarkSectorBattle.d.mts +1 -52
  49. package/dist/lib/models/DarkSectorBattle.mjs +49 -3
  50. package/dist/lib/models/DuviriCycle.d.mts +1 -23
  51. package/dist/lib/models/DuviriCycle.mjs +21 -3
  52. package/dist/lib/models/EarthCycle.d.mts +1 -59
  53. package/dist/lib/models/EarthCycle.mjs +22 -3
  54. package/dist/lib/models/Fissure.d.mts +1 -78
  55. package/dist/lib/models/Fissure.mjs +50 -3
  56. package/dist/lib/models/FlashSale.d.mts +1 -71
  57. package/dist/lib/models/FlashSale.mjs +47 -3
  58. package/dist/lib/models/GlobalUpgrade.d.mts +1 -55
  59. package/dist/lib/models/GlobalUpgrade.mjs +24 -3
  60. package/dist/lib/models/Invasion.d.mts +1 -113
  61. package/dist/lib/models/Invasion.mjs +69 -3
  62. package/dist/lib/models/Kinepage.d.mts +1 -21
  63. package/dist/lib/models/Kinepage.mjs +25 -2
  64. package/dist/lib/models/Kuva.d.mts +1 -20
  65. package/dist/lib/models/Kuva.mjs +26 -3
  66. package/dist/lib/models/MidrathCycle.d.mts +1 -24
  67. package/dist/lib/models/MidrathCycle.mjs +14 -3
  68. package/dist/lib/models/Mission.d.mts +1 -138
  69. package/dist/lib/models/Mission.mjs +151 -3
  70. package/dist/lib/models/News.d.mts +1 -100
  71. package/dist/lib/models/News.mjs +64 -4
  72. package/dist/lib/models/Nightwave.d.mts +1 -58
  73. package/dist/lib/models/Nightwave.mjs +51 -3
  74. package/dist/lib/models/NightwaveChallenge.d.mts +1 -50
  75. package/dist/lib/models/NightwaveChallenge.mjs +35 -3
  76. package/dist/lib/models/PersistentEnemy.d.mts +1 -78
  77. package/dist/lib/models/PersistentEnemy.mjs +63 -3
  78. package/dist/lib/models/Reward.d.mts +1 -67
  79. package/dist/lib/models/Reward.mjs +51 -3
  80. package/dist/lib/models/SentientOutpost.d.mts +1 -46
  81. package/dist/lib/models/SentientOutpost.mjs +45 -3
  82. package/dist/lib/models/Simaris.d.mts +1 -36
  83. package/dist/lib/models/Simaris.mjs +14 -3
  84. package/dist/lib/models/Sortie.d.mts +1 -60
  85. package/dist/lib/models/Sortie.mjs +45 -3
  86. package/dist/lib/models/SortieVariant.d.mts +1 -49
  87. package/dist/lib/models/SortieVariant.mjs +34 -3
  88. package/dist/lib/models/SteelPathOffering.d.mts +1 -36
  89. package/dist/lib/models/SteelPathOffering.mjs +84 -3
  90. package/dist/lib/models/SyndicateJob.d.mts +1 -92
  91. package/dist/lib/models/SyndicateJob.mjs +74 -3
  92. package/dist/lib/models/SyndicateMission.d.mts +1 -58
  93. package/dist/lib/models/SyndicateMission.mjs +34 -3
  94. package/dist/lib/models/Tmp.d.mts +1 -34
  95. package/dist/lib/models/Tmp.mjs +44 -3
  96. package/dist/lib/models/VallisCycle.d.mts +1 -29
  97. package/dist/lib/models/VallisCycle.mjs +14 -3
  98. package/dist/lib/models/VoidTrader.d.mts +1 -76
  99. package/dist/lib/models/VoidTrader.mjs +55 -3
  100. package/dist/lib/models/VoidTraderItem.d.mts +1 -43
  101. package/dist/lib/models/VoidTraderItem.mjs +26 -3
  102. package/dist/lib/models/VoidTraderSchedule.d.mts +1 -16
  103. package/dist/lib/models/VoidTraderSchedule.mjs +20 -3
  104. package/dist/lib/models/WeeklyChallenge.d.mts +1 -19
  105. package/dist/lib/models/WeeklyChallenge.mjs +18 -3
  106. package/dist/lib/models/WorldEvent.d.mts +1 -204
  107. package/dist/lib/models/WorldEvent.mjs +264 -3
  108. package/dist/lib/models/WorldStateObject.d.mts +1 -47
  109. package/dist/lib/models/WorldStateObject.mjs +29 -3
  110. package/dist/lib/models/ZarimanCycle.d.mts +1 -44
  111. package/dist/lib/models/ZarimanCycle.mjs +19 -3
  112. package/dist/lib/models/index.d.mts +17 -42
  113. package/dist/lib/models/index.mjs +1 -2
  114. package/dist/lib/supporting/Dependency.d.mts +1 -40
  115. package/dist/lib/supporting/Dependency.mjs +1 -1
  116. package/dist/lib/supporting/DuviriChoice.d.mts +1 -18
  117. package/dist/lib/supporting/DuviriChoice.mjs +32 -2
  118. package/dist/lib/supporting/ExternalMission.d.mts +1 -48
  119. package/dist/lib/supporting/ExternalMission.mjs +1 -1
  120. package/dist/lib/supporting/FetchProxy.d.mts +1 -9
  121. package/dist/lib/supporting/FetchProxy.mjs +1 -2
  122. package/dist/lib/supporting/ImgCdn.d.mts +1 -5
  123. package/dist/lib/supporting/ImgCdn.mjs +1 -2
  124. package/dist/lib/supporting/KuvaLogEntry.d.mts +1 -20
  125. package/dist/lib/supporting/KuvaLogEntry.mjs +1 -1
  126. package/dist/lib/supporting/RewardData.d.mts +1 -10
  127. package/dist/lib/supporting/RewardData.mjs +1 -2
  128. package/dist/lib/supporting/RewardTypes.d.mts +1 -33
  129. package/dist/lib/supporting/RewardTypes.mjs +1 -3
  130. package/dist/lib/supporting/index.d.mts +8 -8
  131. package/dist/lib/supporting/index.mjs +1 -2
  132. package/dist/main.d.mts +24 -52
  133. package/dist/main.mjs +1 -3
  134. package/package.json +7 -1
@@ -1,8 +1,12 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { WorldStateObject } from "./WorldStateObject.mjs";
2
3
  import { NightwaveChallenge } from "./NightwaveChallenge.mjs";
4
+ import { ApiProperty } from "@nestjs/swagger";
5
+ import { Type } from "class-transformer";
6
+ import { IsArray, IsInt, IsObject, IsString, Min, ValidateNested } from "class-validator";
3
7
  import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
4
-
5
8
  //#region lib/models/Nightwave.ts
9
+ var _ref;
6
10
  /**
7
11
  * Represents a nightwave state
8
12
  * @augments {WorldStateObject}
@@ -55,6 +59,50 @@ var Nightwave = class extends WorldStateObject {
55
59
  return timeDeltaToString(fromNow(this.expiry));
56
60
  }
57
61
  };
58
-
62
+ __decorate([
63
+ ApiProperty({ description: "The current season (0-indexed)" }),
64
+ IsInt(),
65
+ Min(0),
66
+ __decorateMetadata("design:type", Number)
67
+ ], Nightwave.prototype, "season", void 0);
68
+ __decorate([
69
+ ApiProperty({ description: "Descriptor for affiliation" }),
70
+ IsString(),
71
+ __decorateMetadata("design:type", String)
72
+ ], Nightwave.prototype, "tag", void 0);
73
+ __decorate([
74
+ ApiProperty({ description: "The current season's current phase (0-indexed)" }),
75
+ IsInt(),
76
+ Min(0),
77
+ __decorateMetadata("design:type", Number)
78
+ ], Nightwave.prototype, "phase", void 0);
79
+ __decorate([
80
+ ApiProperty({
81
+ description: "Miscellaneous parameters provided",
82
+ type: "object"
83
+ }),
84
+ IsObject(),
85
+ __decorateMetadata("design:type", typeof (_ref = typeof Record !== "undefined" && Record) === "function" ? _ref : Object)
86
+ ], Nightwave.prototype, "params", void 0);
87
+ __decorate([
88
+ ApiProperty({
89
+ description: "Array of possible challenges",
90
+ type: [NightwaveChallenge]
91
+ }),
92
+ IsArray(),
93
+ ValidateNested({ each: true }),
94
+ Type(() => NightwaveChallenge),
95
+ __decorateMetadata("design:type", Array)
96
+ ], Nightwave.prototype, "possibleChallenges", void 0);
97
+ __decorate([
98
+ ApiProperty({
99
+ description: "Array of active challenges",
100
+ type: [NightwaveChallenge]
101
+ }),
102
+ IsArray(),
103
+ ValidateNested({ each: true }),
104
+ Type(() => NightwaveChallenge),
105
+ __decorateMetadata("design:type", Array)
106
+ ], Nightwave.prototype, "activeChallenges", void 0);
59
107
  //#endregion
60
- export { Nightwave };
108
+ export { Nightwave };
@@ -1,51 +1,2 @@
1
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
2
- import { Locale } from "warframe-worldstate-data";
3
-
4
- //#region lib/models/NightwaveChallenge.d.ts
5
- interface RawNightwaveChallenge extends BaseContentObject {
6
- Daily?: boolean;
7
- Challenge: string;
8
- Permanent?: number | string | boolean;
9
- }
10
- /**
11
- * Represents an alert
12
- * @augments {WorldStateObject}
13
- */
14
- declare class NightwaveChallenge extends WorldStateObject {
15
- /**
16
- * Whether or not this is a daily challenge
17
- */
18
- isDaily: boolean;
19
- /**
20
- * Whether or not the challenge is an elite challenge
21
- */
22
- isElite: boolean;
23
- /**
24
- * The descriptor for this challenge
25
- */
26
- desc: string;
27
- /**
28
- * The title for this challenge
29
- */
30
- title: string;
31
- /**
32
- * Reputation reward for ranking up in the Nightwave
33
- */
34
- reputation: number;
35
- /**
36
- * Whether this challenge is permanent
37
- */
38
- isPermanent: boolean;
39
- /**
40
- * @param data The alert data
41
- * @param deps The dependencies object
42
- * @param deps.locale Locale to use for translations
43
- */
44
- constructor(data: RawNightwaveChallenge, {
45
- locale
46
- }?: {
47
- locale: Locale;
48
- });
49
- }
50
- //#endregion
1
+ import { n as RawNightwaveChallenge, t as NightwaveChallenge } from "../../NightwaveChallenge-C6J7ymli.mjs";
51
2
  export { NightwaveChallenge, RawNightwaveChallenge };
@@ -1,6 +1,8 @@
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, IsInt, IsString, Min } from "class-validator";
2
5
  import { languageDesc, languageString } from "warframe-worldstate-data/utilities";
3
-
4
6
  //#region lib/models/NightwaveChallenge.ts
5
7
  const repBase = 1e3;
6
8
  /**
@@ -48,6 +50,36 @@ var NightwaveChallenge = class extends WorldStateObject {
48
50
  this.isPermanent = Boolean(data?.Permanent);
49
51
  }
50
52
  };
51
-
53
+ __decorate([
54
+ ApiProperty({ description: "Whether or not this is a daily challenge" }),
55
+ IsBoolean(),
56
+ __decorateMetadata("design:type", Boolean)
57
+ ], NightwaveChallenge.prototype, "isDaily", void 0);
58
+ __decorate([
59
+ ApiProperty({ description: "Whether or not the challenge is an elite challenge" }),
60
+ IsBoolean(),
61
+ __decorateMetadata("design:type", Boolean)
62
+ ], NightwaveChallenge.prototype, "isElite", void 0);
63
+ __decorate([
64
+ ApiProperty({ description: "The description for this challenge" }),
65
+ IsString(),
66
+ __decorateMetadata("design:type", String)
67
+ ], NightwaveChallenge.prototype, "desc", void 0);
68
+ __decorate([
69
+ ApiProperty({ description: "The title for this challenge" }),
70
+ IsString(),
71
+ __decorateMetadata("design:type", String)
72
+ ], NightwaveChallenge.prototype, "title", void 0);
73
+ __decorate([
74
+ ApiProperty({ description: "Reputation reward for ranking up in the Nightwave" }),
75
+ IsInt(),
76
+ Min(0),
77
+ __decorateMetadata("design:type", Number)
78
+ ], NightwaveChallenge.prototype, "reputation", void 0);
79
+ __decorate([
80
+ ApiProperty({ description: "Whether this challenge is permanent" }),
81
+ IsBoolean(),
82
+ __decorateMetadata("design:type", Boolean)
83
+ ], NightwaveChallenge.prototype, "isPermanent", void 0);
52
84
  //#endregion
53
- export { NightwaveChallenge };
85
+ export { NightwaveChallenge };
@@ -1,79 +1,2 @@
1
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
2
- import { Locale } from "warframe-worldstate-data";
3
- import { ContentTimestamp } from "warframe-worldstate-data/utilities";
4
-
5
- //#region lib/models/PersistentEnemy.d.ts
6
- interface RawPersistentEnemy extends BaseContentObject {
7
- AgentType: string;
8
- LocTag: string;
9
- Rank: number;
10
- HealthPercent: string;
11
- FleeDamage: number;
12
- Region: number;
13
- LastDiscoveredTime: ContentTimestamp;
14
- LastDiscoveredLocation: string;
15
- Discovered: boolean;
16
- UseTicketing: boolean;
17
- }
18
- /**
19
- * Represents a persistent enemy
20
- * @augments {WorldStateObject}
21
- */
22
- declare class PersistentEnemy extends WorldStateObject {
23
- /**
24
- * The enemy's type
25
- */
26
- agentType: string;
27
- /**
28
- * The location tag
29
- */
30
- locationTag: string;
31
- /**
32
- * The enemy's rank
33
- */
34
- rank: number;
35
- /**
36
- * The enemy's remaining health percentage
37
- */
38
- healthPercent: number;
39
- /**
40
- * The percentual damage that the enemy takes when it's defeated
41
- */
42
- fleeDamage: number;
43
- /**
44
- * The region where the enemy is located
45
- */
46
- region: string | number;
47
- /**
48
- * The last time the enemy was discovered
49
- */
50
- lastDiscoveredTime: Date;
51
- /**
52
- * The node at which the enemy was last discovered
53
- */
54
- lastDiscoveredAt: string;
55
- /**
56
- * Whether or not the enemy is currently available
57
- */
58
- isDiscovered: boolean;
59
- /**
60
- * Whether or not the enemy is using ticketing
61
- */
62
- isUsingTicketing: boolean;
63
- /**
64
- * Fake ID incorporating discovery
65
- */
66
- pid: string;
67
- /**
68
- * @param data The persistent enemy data
69
- * @param deps The dependencies object
70
- * @param deps.locale Locale to use for translations
71
- */
72
- constructor(data: RawPersistentEnemy, {
73
- locale
74
- }?: {
75
- locale: Locale;
76
- });
77
- }
78
- //#endregion
1
+ import { n as RawPersistentEnemy, t as PersistentEnemy } from "../../PersistentEnemy-WkvIZ9Mx.mjs";
79
2
  export { PersistentEnemy, RawPersistentEnemy };
@@ -1,7 +1,11 @@
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 { Type } from "class-transformer";
5
+ import { IsBoolean, IsDate, IsInt, IsNumber, IsString, Min } from "class-validator";
2
6
  import { languageString, node, parseDate, region } from "warframe-worldstate-data/utilities";
3
-
4
7
  //#region lib/models/PersistentEnemy.ts
8
+ var _ref;
5
9
  /**
6
10
  * Represents a persistent enemy
7
11
  * @augments {WorldStateObject}
@@ -71,6 +75,62 @@ var PersistentEnemy = class extends WorldStateObject {
71
75
  this.pid = `${this.id}${this.isDiscovered}`;
72
76
  }
73
77
  };
74
-
78
+ __decorate([
79
+ ApiProperty({ description: "The enemy's type" }),
80
+ IsString(),
81
+ __decorateMetadata("design:type", String)
82
+ ], PersistentEnemy.prototype, "agentType", void 0);
83
+ __decorate([
84
+ ApiProperty({ description: "The location tag" }),
85
+ IsString(),
86
+ __decorateMetadata("design:type", String)
87
+ ], PersistentEnemy.prototype, "locationTag", void 0);
88
+ __decorate([
89
+ ApiProperty({ description: "The enemy's rank" }),
90
+ IsInt(),
91
+ Min(0),
92
+ __decorateMetadata("design:type", Number)
93
+ ], PersistentEnemy.prototype, "rank", void 0);
94
+ __decorate([
95
+ ApiProperty({ description: "The enemy's remaining health percentage" }),
96
+ IsNumber(),
97
+ Min(0),
98
+ __decorateMetadata("design:type", Number)
99
+ ], PersistentEnemy.prototype, "healthPercent", void 0);
100
+ __decorate([
101
+ ApiProperty({ description: "The percentual damage that the enemy takes when it's defeated" }),
102
+ IsNumber(),
103
+ __decorateMetadata("design:type", Number)
104
+ ], PersistentEnemy.prototype, "fleeDamage", void 0);
105
+ __decorate([ApiProperty({ description: "The region where the enemy is located" }), __decorateMetadata("design:type", Object)], PersistentEnemy.prototype, "region", void 0);
106
+ __decorate([
107
+ ApiProperty({
108
+ description: "The last time the enemy was discovered",
109
+ type: Date
110
+ }),
111
+ IsDate(),
112
+ Type(() => Date),
113
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
114
+ ], PersistentEnemy.prototype, "lastDiscoveredTime", void 0);
115
+ __decorate([
116
+ ApiProperty({ description: "The node at which the enemy was last discovered" }),
117
+ IsString(),
118
+ __decorateMetadata("design:type", String)
119
+ ], PersistentEnemy.prototype, "lastDiscoveredAt", void 0);
120
+ __decorate([
121
+ ApiProperty({ description: "Whether or not the enemy is currently available" }),
122
+ IsBoolean(),
123
+ __decorateMetadata("design:type", Boolean)
124
+ ], PersistentEnemy.prototype, "isDiscovered", void 0);
125
+ __decorate([
126
+ ApiProperty({ description: "Whether or not the enemy is using ticketing" }),
127
+ IsBoolean(),
128
+ __decorateMetadata("design:type", Boolean)
129
+ ], PersistentEnemy.prototype, "isUsingTicketing", void 0);
130
+ __decorate([
131
+ ApiProperty({ description: "Fake ID incorporating discovery" }),
132
+ IsString(),
133
+ __decorateMetadata("design:type", String)
134
+ ], PersistentEnemy.prototype, "pid", void 0);
75
135
  //#endregion
76
- export { PersistentEnemy };
136
+ export { PersistentEnemy };
@@ -1,68 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import { RewardType } from "../supporting/RewardTypes.mjs";
3
- import "../supporting/index.mjs";
4
-
5
- //#region lib/models/Reward.d.ts
6
- /**
7
- * Returns the type of a given item
8
- */
9
- declare function getItemType(item: string, types?: RewardType[]): string;
10
- /**
11
- * Returns the full type of a given item
12
- */
13
- declare function getItemTypeFull(item: string, types?: RewardType[]): RewardType;
14
- interface RawReward {
15
- items: string[];
16
- countedItems?: {
17
- ItemType: string;
18
- ItemCount: number;
19
- }[];
20
- credits?: number;
21
- }
22
- /**
23
- * Represents a mission reward
24
- */
25
- declare class Reward {
26
- /**
27
- * The items being rewarded
28
- */
29
- items: string[];
30
- /**
31
- * The counted items being rewarded
32
- */
33
- countedItems: {
34
- type: string;
35
- key: string;
36
- count: number;
37
- }[];
38
- /**
39
- * The credits being rewarded
40
- */
41
- credits: number;
42
- /**
43
- * Thumbnail url
44
- */
45
- thumbnail: string;
46
- /**
47
- * Reward color
48
- */
49
- color: number;
50
- /**
51
- * @param data The mission data
52
- * @param deps The dependencies object
53
- * @param deps.locale Locale to use for translations
54
- */
55
- constructor(data: RawReward, {
56
- locale
57
- }?: Dependency);
58
- /**
59
- * The types of all items that are being rewarded
60
- */
61
- getTypes(): string[];
62
- /**
63
- * The types of all the items that are being rewarded
64
- */
65
- private getTypesFull;
66
- }
67
- //#endregion
1
+ import { ct as getItemType, lt as getItemTypeFull, ot as RawReward, st as Reward } from "../../index-BK5W1mAn.mjs";
68
2
  export { RawReward, Reward, getItemType, getItemTypeFull };
@@ -1,6 +1,8 @@
1
1
  import RewardTypes_default from "../supporting/RewardTypes.mjs";
2
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
3
+ import { ApiProperty } from "@nestjs/swagger";
4
+ import { IsArray, IsInt, IsNumber, IsString, Min } from "class-validator";
2
5
  import { insist, languageString } from "warframe-worldstate-data/utilities";
3
-
4
6
  //#region lib/models/Reward.ts
5
7
  /**
6
8
  * Returns the type of a given item
@@ -68,6 +70,52 @@ var Reward = class {
68
70
  return this.items.concat(this.countedItems.map((i) => i.key)).map((t) => getItemTypeFull(t));
69
71
  }
70
72
  };
71
-
73
+ __decorate([
74
+ ApiProperty({
75
+ description: "Localized item names being rewarded",
76
+ type: [String]
77
+ }),
78
+ IsArray(),
79
+ IsString({ each: true }),
80
+ __decorateMetadata("design:type", Array)
81
+ ], Reward.prototype, "items", void 0);
82
+ __decorate([
83
+ ApiProperty({
84
+ description: "Counted items being rewarded with quantities",
85
+ type: "array",
86
+ items: { properties: {
87
+ type: {
88
+ type: "string",
89
+ description: "Localized item type"
90
+ },
91
+ key: {
92
+ type: "string",
93
+ description: "Unlocalized item key"
94
+ },
95
+ count: {
96
+ type: "number",
97
+ description: "Item count"
98
+ }
99
+ } }
100
+ }),
101
+ IsArray(),
102
+ __decorateMetadata("design:type", Array)
103
+ ], Reward.prototype, "countedItems", void 0);
104
+ __decorate([
105
+ ApiProperty({ description: "Credits rewarded" }),
106
+ IsInt(),
107
+ Min(0),
108
+ __decorateMetadata("design:type", Number)
109
+ ], Reward.prototype, "credits", void 0);
110
+ __decorate([
111
+ ApiProperty({ description: "Thumbnail URL for the primary reward" }),
112
+ IsString(),
113
+ __decorateMetadata("design:type", String)
114
+ ], Reward.prototype, "thumbnail", void 0);
115
+ __decorate([
116
+ ApiProperty({ description: "Color code for the reward type" }),
117
+ IsNumber(),
118
+ __decorateMetadata("design:type", Number)
119
+ ], Reward.prototype, "color", void 0);
72
120
  //#endregion
73
- export { Reward, getItemType, getItemTypeFull };
121
+ export { Reward, getItemType, getItemTypeFull };
@@ -1,47 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
-
4
- //#region lib/models/SentientOutpost.d.ts
5
- /**
6
- * Mission typeDef
7
- */
8
- interface OutpostMission {
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 readonly 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?: OutpostMission;
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
1
+ import { D as SentientOutpost, E as OutpostMission } from "../../index-BK5W1mAn.mjs";
47
2
  export { OutpostMission, SentientOutpost };
@@ -1,6 +1,10 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
3
+ import { Type } from "class-transformer";
4
+ import { IsBoolean, IsDate, IsOptional, IsString } from "class-validator";
1
5
  import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
2
-
3
6
  //#region lib/models/SentientOutpost.ts
7
+ var _ref, _ref2;
4
8
  const duration = 1800;
5
9
  const sat = () => {
6
10
  const now = Math.floor(Date.now() / 1e3);
@@ -20,6 +24,9 @@ const sat = () => {
20
24
  */
21
25
  var SentientOutpost = class {
22
26
  node;
27
+ /**
28
+ * Unique identifier
29
+ */
23
30
  id;
24
31
  /**
25
32
  * Start time
@@ -60,6 +67,41 @@ var SentientOutpost = class {
60
67
  }
61
68
  }
62
69
  };
63
-
70
+ __decorate([
71
+ ApiProperty({ description: "Unique identifier" }),
72
+ IsString(),
73
+ __decorateMetadata("design:type", String)
74
+ ], SentientOutpost.prototype, "id", void 0);
75
+ __decorate([
76
+ ApiProperty({
77
+ description: "Start time",
78
+ type: Date
79
+ }),
80
+ IsDate(),
81
+ Type(() => Date),
82
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
83
+ ], SentientOutpost.prototype, "activation", void 0);
84
+ __decorate([
85
+ ApiProperty({
86
+ description: "End time",
87
+ type: Date
88
+ }),
89
+ IsDate(),
90
+ Type(() => Date),
91
+ __decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
92
+ ], SentientOutpost.prototype, "expiry", void 0);
93
+ __decorate([
94
+ ApiPropertyOptional({
95
+ description: "Current Mission",
96
+ type: "object"
97
+ }),
98
+ IsOptional(),
99
+ __decorateMetadata("design:type", Object)
100
+ ], SentientOutpost.prototype, "mission", void 0);
101
+ __decorate([
102
+ ApiProperty({ description: "Whether or not the object was active during creation" }),
103
+ IsBoolean(),
104
+ __decorateMetadata("design:type", Boolean)
105
+ ], SentientOutpost.prototype, "active", void 0);
64
106
  //#endregion
65
- export { SentientOutpost };
107
+ export { SentientOutpost };
@@ -1,37 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
-
4
- //#region lib/models/Simaris.d.ts
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
1
+ import { T as Simaris, w as LibraryInfo } from "../../index-BK5W1mAn.mjs";
37
2
  export { LibraryInfo, Simaris };
@@ -1,5 +1,7 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiProperty } from "@nestjs/swagger";
3
+ import { IsBoolean, IsString } from "class-validator";
1
4
  import { languageString } from "warframe-worldstate-data/utilities";
2
-
3
5
  //#region lib/models/Simaris.ts
4
6
  /**
5
7
  * Contains information about sanctuary targets
@@ -30,6 +32,15 @@ var Simaris = class {
30
32
  return `Simaris's ${this.isTargetActive ? "current" : "previous"} objective ${this.isTargetActive ? "is" : "was"} ${this.target}`;
31
33
  }
32
34
  };
33
-
35
+ __decorate([
36
+ ApiProperty({ description: "The sanctuary target" }),
37
+ IsString(),
38
+ __decorateMetadata("design:type", String)
39
+ ], Simaris.prototype, "target", void 0);
40
+ __decorate([
41
+ ApiProperty({ description: "Whether or not the target is currently active" }),
42
+ IsBoolean(),
43
+ __decorateMetadata("design:type", Boolean)
44
+ ], Simaris.prototype, "isTargetActive", void 0);
34
45
  //#endregion
35
- export { Simaris };
46
+ export { Simaris };