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.
- package/dist/Calendar-C99Wr_NC.d.mts +78 -0
- package/dist/CambionCycle-CEVo0BPO.d.mts +28 -0
- package/dist/CetusCycle-sbJ_VYPO.d.mts +49 -0
- package/dist/ConstructionProgress-CffeDtau.d.mts +27 -0
- package/dist/DarkSectorBattle-DwaJyGk3.d.mts +53 -0
- package/dist/Dependency-CtryMjKU.d.mts +41 -0
- package/dist/EarthCycle-BsMMsVT4.d.mts +60 -0
- package/dist/ExternalMission-DaE_6ccj.d.mts +49 -0
- package/dist/FetchProxy-Bgoi37sM.d.mts +10 -0
- package/dist/ImgCdn-By4Qj9kk.d.mts +6 -0
- package/dist/Kinepage-BDZm950n.d.mts +22 -0
- package/dist/KuvaLogEntry-B0SaM7MX.d.mts +21 -0
- package/dist/MidrathCycle-UgLh7wgF.d.mts +25 -0
- package/dist/News-CmoQ_nEf.d.mts +101 -0
- package/dist/Nightwave-BBRJbyr8.d.mts +59 -0
- package/dist/NightwaveChallenge-C6J7ymli.d.mts +51 -0
- package/dist/PersistentEnemy-WkvIZ9Mx.d.mts +79 -0
- package/dist/RewardData-B5TstL-h.d.mts +11 -0
- package/dist/RewardTypes-DMW4dYrB.d.mts +34 -0
- package/dist/SteelPathOffering-K2Ji4d5c.d.mts +58 -0
- package/dist/VallisCycle-BTYgGev7.d.mts +30 -0
- package/dist/WorldStateObject-BgeCocs9.d.mts +48 -0
- package/dist/ZarimanCycle-D4YCSLmR.d.mts +45 -0
- package/dist/decorate-CltSo06_.mjs +14 -0
- package/dist/index-BK5W1mAn.d.mts +1722 -0
- package/dist/lib/WorldState.d.mts +16 -35
- package/dist/lib/WorldState.mjs +326 -3
- package/dist/lib/models/Alert.d.mts +1 -45
- package/dist/lib/models/Alert.mjs +30 -3
- package/dist/lib/models/Archimedea.d.mts +1 -86
- package/dist/lib/models/Archimedea.mjs +76 -3
- package/dist/lib/models/Calendar.d.mts +1 -77
- package/dist/lib/models/Calendar.mjs +1 -3
- package/dist/lib/models/CambionCycle.d.mts +1 -21
- package/dist/lib/models/CambionCycle.mjs +20 -3
- package/dist/lib/models/CetusCycle.d.mts +1 -48
- package/dist/lib/models/CetusCycle.mjs +27 -3
- package/dist/lib/models/ChallengeInstance.d.mts +1 -53
- package/dist/lib/models/ChallengeInstance.mjs +39 -3
- package/dist/lib/models/ConclaveChallenge.d.mts +1 -76
- package/dist/lib/models/ConclaveChallenge.mjs +54 -3
- package/dist/lib/models/ConstructionProgress.d.mts +1 -17
- package/dist/lib/models/ConstructionProgress.mjs +28 -3
- package/dist/lib/models/DailyDeal.d.mts +1 -66
- package/dist/lib/models/DailyDeal.mjs +49 -3
- package/dist/lib/models/DarkSector.d.mts +1 -142
- package/dist/lib/models/DarkSector.mjs +153 -3
- package/dist/lib/models/DarkSectorBattle.d.mts +1 -52
- package/dist/lib/models/DarkSectorBattle.mjs +49 -3
- package/dist/lib/models/DuviriCycle.d.mts +1 -23
- package/dist/lib/models/DuviriCycle.mjs +21 -3
- package/dist/lib/models/EarthCycle.d.mts +1 -59
- package/dist/lib/models/EarthCycle.mjs +22 -3
- package/dist/lib/models/Fissure.d.mts +1 -78
- package/dist/lib/models/Fissure.mjs +50 -3
- package/dist/lib/models/FlashSale.d.mts +1 -71
- package/dist/lib/models/FlashSale.mjs +47 -3
- package/dist/lib/models/GlobalUpgrade.d.mts +1 -55
- package/dist/lib/models/GlobalUpgrade.mjs +24 -3
- package/dist/lib/models/Invasion.d.mts +1 -113
- package/dist/lib/models/Invasion.mjs +69 -3
- package/dist/lib/models/Kinepage.d.mts +1 -21
- package/dist/lib/models/Kinepage.mjs +25 -2
- package/dist/lib/models/Kuva.d.mts +1 -20
- package/dist/lib/models/Kuva.mjs +26 -3
- package/dist/lib/models/MidrathCycle.d.mts +1 -24
- package/dist/lib/models/MidrathCycle.mjs +14 -3
- package/dist/lib/models/Mission.d.mts +1 -138
- package/dist/lib/models/Mission.mjs +151 -3
- package/dist/lib/models/News.d.mts +1 -100
- package/dist/lib/models/News.mjs +64 -4
- package/dist/lib/models/Nightwave.d.mts +1 -58
- package/dist/lib/models/Nightwave.mjs +51 -3
- package/dist/lib/models/NightwaveChallenge.d.mts +1 -50
- package/dist/lib/models/NightwaveChallenge.mjs +35 -3
- package/dist/lib/models/PersistentEnemy.d.mts +1 -78
- package/dist/lib/models/PersistentEnemy.mjs +63 -3
- package/dist/lib/models/Reward.d.mts +1 -67
- package/dist/lib/models/Reward.mjs +51 -3
- package/dist/lib/models/SentientOutpost.d.mts +1 -46
- package/dist/lib/models/SentientOutpost.mjs +45 -3
- package/dist/lib/models/Simaris.d.mts +1 -36
- package/dist/lib/models/Simaris.mjs +14 -3
- package/dist/lib/models/Sortie.d.mts +1 -60
- package/dist/lib/models/Sortie.mjs +45 -3
- package/dist/lib/models/SortieVariant.d.mts +1 -49
- package/dist/lib/models/SortieVariant.mjs +34 -3
- package/dist/lib/models/SteelPathOffering.d.mts +1 -36
- package/dist/lib/models/SteelPathOffering.mjs +84 -3
- package/dist/lib/models/SyndicateJob.d.mts +1 -92
- package/dist/lib/models/SyndicateJob.mjs +74 -3
- package/dist/lib/models/SyndicateMission.d.mts +1 -58
- package/dist/lib/models/SyndicateMission.mjs +34 -3
- package/dist/lib/models/Tmp.d.mts +1 -34
- package/dist/lib/models/Tmp.mjs +44 -3
- package/dist/lib/models/VallisCycle.d.mts +1 -29
- package/dist/lib/models/VallisCycle.mjs +14 -3
- package/dist/lib/models/VoidTrader.d.mts +1 -76
- package/dist/lib/models/VoidTrader.mjs +55 -3
- package/dist/lib/models/VoidTraderItem.d.mts +1 -43
- package/dist/lib/models/VoidTraderItem.mjs +26 -3
- package/dist/lib/models/VoidTraderSchedule.d.mts +1 -16
- package/dist/lib/models/VoidTraderSchedule.mjs +20 -3
- package/dist/lib/models/WeeklyChallenge.d.mts +1 -19
- package/dist/lib/models/WeeklyChallenge.mjs +18 -3
- package/dist/lib/models/WorldEvent.d.mts +1 -204
- package/dist/lib/models/WorldEvent.mjs +264 -3
- package/dist/lib/models/WorldStateObject.d.mts +1 -47
- package/dist/lib/models/WorldStateObject.mjs +29 -3
- package/dist/lib/models/ZarimanCycle.d.mts +1 -44
- package/dist/lib/models/ZarimanCycle.mjs +19 -3
- package/dist/lib/models/index.d.mts +17 -42
- package/dist/lib/models/index.mjs +1 -2
- package/dist/lib/supporting/Dependency.d.mts +1 -40
- package/dist/lib/supporting/Dependency.mjs +1 -1
- package/dist/lib/supporting/DuviriChoice.d.mts +1 -18
- package/dist/lib/supporting/DuviriChoice.mjs +32 -2
- package/dist/lib/supporting/ExternalMission.d.mts +1 -48
- package/dist/lib/supporting/ExternalMission.mjs +1 -1
- package/dist/lib/supporting/FetchProxy.d.mts +1 -9
- package/dist/lib/supporting/FetchProxy.mjs +1 -2
- package/dist/lib/supporting/ImgCdn.d.mts +1 -5
- package/dist/lib/supporting/ImgCdn.mjs +1 -2
- package/dist/lib/supporting/KuvaLogEntry.d.mts +1 -20
- package/dist/lib/supporting/KuvaLogEntry.mjs +1 -1
- package/dist/lib/supporting/RewardData.d.mts +1 -10
- package/dist/lib/supporting/RewardData.mjs +1 -2
- package/dist/lib/supporting/RewardTypes.d.mts +1 -33
- package/dist/lib/supporting/RewardTypes.mjs +1 -3
- package/dist/lib/supporting/index.d.mts +8 -8
- package/dist/lib/supporting/index.mjs +1 -2
- package/dist/main.d.mts +24 -52
- package/dist/main.mjs +1 -3
- package/package.json +7 -1
|
@@ -1,205 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../supporting/index.mjs";
|
|
3
|
-
import { RawReward, Reward } from "./Reward.mjs";
|
|
4
|
-
import { BaseContentObject, Identifier, WorldStateObject } from "./WorldStateObject.mjs";
|
|
5
|
-
import { RawSyndicateJob, SyndicateJob } from "./SyndicateJob.mjs";
|
|
6
|
-
import { ContentTimestamp } from "warframe-worldstate-data/utilities";
|
|
7
|
-
|
|
8
|
-
//#region lib/models/WorldEvent.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Interim step for an event reward system.
|
|
11
|
-
*/
|
|
12
|
-
interface InterimStep {
|
|
13
|
-
goal: number;
|
|
14
|
-
reward: Reward | undefined;
|
|
15
|
-
winnerCount: number;
|
|
16
|
-
message: object;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Progress for one of multiple stages
|
|
20
|
-
*/
|
|
21
|
-
interface ProgressStep {
|
|
22
|
-
type: string;
|
|
23
|
-
progressAmt: number;
|
|
24
|
-
}
|
|
25
|
-
interface InterimRewardMessage {
|
|
26
|
-
sender: string;
|
|
27
|
-
subject: string;
|
|
28
|
-
message: string;
|
|
29
|
-
senderIcon: string;
|
|
30
|
-
attachments: string;
|
|
31
|
-
}
|
|
32
|
-
interface RawWorldEvent extends BaseContentObject {
|
|
33
|
-
Goal: number;
|
|
34
|
-
Count?: number;
|
|
35
|
-
GoalInterim?: string;
|
|
36
|
-
GoalInterim2?: string;
|
|
37
|
-
Faction?: string;
|
|
38
|
-
Desc: string;
|
|
39
|
-
ToolTip?: string;
|
|
40
|
-
Node?: string;
|
|
41
|
-
ConcurrentNodes?: string[] | undefined;
|
|
42
|
-
VictimNode?: string;
|
|
43
|
-
Fomorian?: string;
|
|
44
|
-
ScoreLocTag?: string;
|
|
45
|
-
HealthPct?: number;
|
|
46
|
-
JobPreviousVersion?: Identifier;
|
|
47
|
-
Reward?: RawReward;
|
|
48
|
-
InterimRewards?: RawReward[];
|
|
49
|
-
InterimRewardMessages?: InterimRewardMessage[];
|
|
50
|
-
InterimGoals: number[];
|
|
51
|
-
_interimWinnerCounts?: number[];
|
|
52
|
-
IsMultiProgress?: boolean;
|
|
53
|
-
Types?: string[];
|
|
54
|
-
MultiProgress?: string[];
|
|
55
|
-
ShowTotalAtEOM?: boolean;
|
|
56
|
-
Personal: boolean;
|
|
57
|
-
Community?: boolean;
|
|
58
|
-
RegionDrops?: string[];
|
|
59
|
-
ArchwingDrops?: string[];
|
|
60
|
-
Metadata?: string;
|
|
61
|
-
CompletionBonus?: number[];
|
|
62
|
-
ScoreVar: string;
|
|
63
|
-
AltExpiry?: ContentTimestamp;
|
|
64
|
-
AltActivation?: ContentTimestamp;
|
|
65
|
-
NextAltExpiry?: ContentTimestamp;
|
|
66
|
-
NextAltActivation?: ContentTimestamp;
|
|
67
|
-
JobAffiliationTag?: string;
|
|
68
|
-
Tag: string;
|
|
69
|
-
Jobs?: RawSyndicateJob[];
|
|
70
|
-
PreviousJobs?: RawSyndicateJob[];
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Represents an in-game special event
|
|
74
|
-
* @augments {WorldStateObject}
|
|
75
|
-
*/
|
|
76
|
-
declare class WorldEvent extends WorldStateObject {
|
|
77
|
-
jobs: SyndicateJob[];
|
|
78
|
-
previousJobs: SyndicateJob[];
|
|
79
|
-
/**
|
|
80
|
-
* The event's main score goal
|
|
81
|
-
*/
|
|
82
|
-
maximumScore: number;
|
|
83
|
-
/**
|
|
84
|
-
* The current score on the event
|
|
85
|
-
*/
|
|
86
|
-
currentScore: number;
|
|
87
|
-
/**
|
|
88
|
-
* The first intermediate score goal
|
|
89
|
-
*/
|
|
90
|
-
smallInterval: number;
|
|
91
|
-
/**
|
|
92
|
-
* The second intermediate score goal
|
|
93
|
-
*/
|
|
94
|
-
largeInterval: number;
|
|
95
|
-
/**
|
|
96
|
-
* The faction that the players must fight in the event
|
|
97
|
-
*/
|
|
98
|
-
faction: string | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* The description of the event
|
|
101
|
-
*/
|
|
102
|
-
description: string;
|
|
103
|
-
/**
|
|
104
|
-
* Tooltip for the event
|
|
105
|
-
*/
|
|
106
|
-
tooltip: string | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* The node where the event takes place
|
|
109
|
-
*/
|
|
110
|
-
node: string | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* The other nodes where the event takes place
|
|
113
|
-
*/
|
|
114
|
-
concurrentNodes: string[];
|
|
115
|
-
/**
|
|
116
|
-
* The victim node
|
|
117
|
-
*/
|
|
118
|
-
victimNode: string | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* The score description
|
|
121
|
-
*/
|
|
122
|
-
scoreLocTag: string | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* The event's rewards
|
|
125
|
-
*/
|
|
126
|
-
rewards: Reward[];
|
|
127
|
-
/**
|
|
128
|
-
* Health remaining for the target
|
|
129
|
-
*/
|
|
130
|
-
health: number | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Previous job id
|
|
133
|
-
*/
|
|
134
|
-
previousId: string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Array of steps
|
|
137
|
-
*/
|
|
138
|
-
interimSteps: InterimStep[];
|
|
139
|
-
/**
|
|
140
|
-
* Progress Steps, if any are present
|
|
141
|
-
*/
|
|
142
|
-
progressSteps: ProgressStep[];
|
|
143
|
-
/**
|
|
144
|
-
* Total of all MultiProgress
|
|
145
|
-
*/
|
|
146
|
-
progressTotal?: number;
|
|
147
|
-
/**
|
|
148
|
-
* Whether to show the total score at the end of the mission
|
|
149
|
-
*/
|
|
150
|
-
showTotalAtEndOfMission: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Whether the event is personal
|
|
153
|
-
*/
|
|
154
|
-
isPersonal: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Whether the event is community
|
|
157
|
-
*/
|
|
158
|
-
isCommunity: boolean;
|
|
159
|
-
regionDrops: string[];
|
|
160
|
-
/**
|
|
161
|
-
* Archwing Drops in effect while this event is active
|
|
162
|
-
*/
|
|
163
|
-
archwingDrops: string[];
|
|
164
|
-
/**
|
|
165
|
-
* Metadata provided by DE
|
|
166
|
-
*/
|
|
167
|
-
metadata: object;
|
|
168
|
-
/**
|
|
169
|
-
* Bonuses given for completion
|
|
170
|
-
*/
|
|
171
|
-
completionBonuses: number[];
|
|
172
|
-
scoreVar: string;
|
|
173
|
-
altExpiry: Date;
|
|
174
|
-
altActivation: Date;
|
|
175
|
-
nextAlt: {
|
|
176
|
-
expiry: Date;
|
|
177
|
-
activation: Date;
|
|
178
|
-
};
|
|
179
|
-
affiliatedWith?: string;
|
|
180
|
-
/**
|
|
181
|
-
* The event's tag
|
|
182
|
-
*/
|
|
183
|
-
tag: string;
|
|
184
|
-
victim?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Asynchronously build a new WorldEvent
|
|
187
|
-
* @param data The event data
|
|
188
|
-
* @param deps The dependencies object
|
|
189
|
-
* @returns The created WorldEvent object
|
|
190
|
-
*/
|
|
191
|
-
static build(data: RawWorldEvent, deps: Dependency): Promise<WorldEvent>;
|
|
192
|
-
/**
|
|
193
|
-
* @param data The event data
|
|
194
|
-
* @param deps The dependencies object
|
|
195
|
-
*/
|
|
196
|
-
constructor(data: RawWorldEvent, {
|
|
197
|
-
locale
|
|
198
|
-
}?: Dependency);
|
|
199
|
-
/**
|
|
200
|
-
* Whether the event has expired
|
|
201
|
-
*/
|
|
202
|
-
get expired(): boolean;
|
|
203
|
-
}
|
|
204
|
-
//#endregion
|
|
1
|
+
import { a as WorldEvent, i as RawWorldEvent, n as InterimStep, r as ProgressStep, t as InterimRewardMessage } from "../../index-BK5W1mAn.mjs";
|
|
205
2
|
export { InterimRewardMessage, InterimStep, ProgressStep, RawWorldEvent, WorldEvent };
|
|
@@ -1,15 +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
|
-
|
|
6
9
|
//#region lib/models/WorldEvent.ts
|
|
10
|
+
var _ref, _ref2;
|
|
7
11
|
/**
|
|
8
12
|
* Represents an in-game special event
|
|
9
13
|
* @augments {WorldStateObject}
|
|
10
14
|
*/
|
|
11
15
|
var WorldEvent = class WorldEvent extends WorldStateObject {
|
|
16
|
+
/**
|
|
17
|
+
* Jobs associated with this event
|
|
18
|
+
*/
|
|
12
19
|
jobs;
|
|
20
|
+
/**
|
|
21
|
+
* Previous jobs associated with this event
|
|
22
|
+
*/
|
|
13
23
|
previousJobs;
|
|
14
24
|
/**
|
|
15
25
|
* The event's main score goal
|
|
@@ -104,15 +114,33 @@ var WorldEvent = class WorldEvent extends WorldStateObject {
|
|
|
104
114
|
* Bonuses given for completion
|
|
105
115
|
*/
|
|
106
116
|
completionBonuses;
|
|
117
|
+
/**
|
|
118
|
+
* Score variable name
|
|
119
|
+
*/
|
|
107
120
|
scoreVar;
|
|
121
|
+
/**
|
|
122
|
+
* Alternative expiry date
|
|
123
|
+
*/
|
|
108
124
|
altExpiry;
|
|
125
|
+
/**
|
|
126
|
+
* Alternative activation date
|
|
127
|
+
*/
|
|
109
128
|
altActivation;
|
|
129
|
+
/**
|
|
130
|
+
* Next alternative cycle dates
|
|
131
|
+
*/
|
|
110
132
|
nextAlt;
|
|
133
|
+
/**
|
|
134
|
+
* Affiliated syndicate, if any
|
|
135
|
+
*/
|
|
111
136
|
affiliatedWith;
|
|
112
137
|
/**
|
|
113
138
|
* The event's tag
|
|
114
139
|
*/
|
|
115
140
|
tag;
|
|
141
|
+
/**
|
|
142
|
+
* Victim identifier, if any
|
|
143
|
+
*/
|
|
116
144
|
victim;
|
|
117
145
|
/**
|
|
118
146
|
* Asynchronously build a new WorldEvent
|
|
@@ -208,6 +236,239 @@ var WorldEvent = class WorldEvent extends WorldStateObject {
|
|
|
208
236
|
return fromNow(this.expiry) < 0;
|
|
209
237
|
}
|
|
210
238
|
};
|
|
211
|
-
|
|
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);
|
|
212
473
|
//#endregion
|
|
213
|
-
export { WorldEvent };
|
|
474
|
+
export { WorldEvent };
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region lib/models/WorldStateObject.d.ts
|
|
4
|
-
interface Identifier {
|
|
5
|
-
$id?: string;
|
|
6
|
-
$oid?: string;
|
|
7
|
-
}
|
|
8
|
-
interface BaseContentObject {
|
|
9
|
-
_id?: Identifier;
|
|
10
|
-
Activation?: ContentTimestamp;
|
|
11
|
-
Expiry?: ContentTimestamp;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Represents a generic object from WorldState
|
|
15
|
-
*/
|
|
16
|
-
declare class WorldStateObject {
|
|
17
|
-
/**
|
|
18
|
-
* The object's id field
|
|
19
|
-
*/
|
|
20
|
-
id?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The date and time at which the WorldStateObject started
|
|
23
|
-
*/
|
|
24
|
-
activation?: Date;
|
|
25
|
-
/**
|
|
26
|
-
* The date and time at which the WorldStateObject ends
|
|
27
|
-
*/
|
|
28
|
-
expiry?: Date;
|
|
29
|
-
/**
|
|
30
|
-
* @param data The object data
|
|
31
|
-
*/
|
|
32
|
-
constructor(data: BaseContentObject);
|
|
33
|
-
/**
|
|
34
|
-
* Whether the void trader is active (at time of object creation)
|
|
35
|
-
*/
|
|
36
|
-
get active(): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* A string indicating how long it will take for the trader to arrive
|
|
39
|
-
* (at time of object creation)
|
|
40
|
-
*/
|
|
41
|
-
get startString(): string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Time delta string from now to the end
|
|
44
|
-
*/
|
|
45
|
-
get endString(): string | undefined;
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
1
|
+
import { n as Identifier, r as WorldStateObject, t as BaseContentObject } from "../../WorldStateObject-BgeCocs9.mjs";
|
|
48
2
|
export { BaseContentObject, Identifier, WorldStateObject };
|
|
@@ -1,6 +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
|
-
|
|
3
5
|
//#region lib/models/WorldStateObject.ts
|
|
6
|
+
var _ref, _ref2;
|
|
4
7
|
/**
|
|
5
8
|
* Represents a generic object from WorldState
|
|
6
9
|
*/
|
|
@@ -49,6 +52,29 @@ var WorldStateObject = class {
|
|
|
49
52
|
return timeDeltaToString(fromNow(this.expiry));
|
|
50
53
|
}
|
|
51
54
|
};
|
|
52
|
-
|
|
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);
|
|
53
79
|
//#endregion
|
|
54
|
-
export { WorldStateObject };
|
|
80
|
+
export { WorldStateObject };
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region lib/models/ZarimanCycle.d.ts
|
|
4
|
-
interface CurrentZarimanCycle {
|
|
5
|
-
isCorpus: boolean;
|
|
6
|
-
timeLeft: string;
|
|
7
|
-
expiry: Date;
|
|
8
|
-
expiresIn: number;
|
|
9
|
-
state: string;
|
|
10
|
-
start: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents the current Zariman Corpus/Grineer Cycle
|
|
14
|
-
* @augments {WorldStateObject}
|
|
15
|
-
*/
|
|
16
|
-
declare class ZarimanCycle extends WorldStateObject {
|
|
17
|
-
#private;
|
|
18
|
-
/**
|
|
19
|
-
* Whether or not this it's corpus or grineer
|
|
20
|
-
*/
|
|
21
|
-
isCorpus: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Current cycle state. One of `corpus`, `grineer`
|
|
24
|
-
*/
|
|
25
|
-
state: string;
|
|
26
|
-
/**
|
|
27
|
-
* Time remaining string
|
|
28
|
-
*/
|
|
29
|
-
timeLeft: string;
|
|
30
|
-
/**
|
|
31
|
-
* @param {Date} bountiesEndDate The current Zariman cycle expiry
|
|
32
|
-
*/
|
|
33
|
-
constructor(bountiesEndDate: Date);
|
|
34
|
-
/**
|
|
35
|
-
* Whether this is expired
|
|
36
|
-
*/
|
|
37
|
-
get expired(): boolean;
|
|
38
|
-
getCurrentZarimanCycle(): CurrentZarimanCycle;
|
|
39
|
-
/**
|
|
40
|
-
* The event's string representation
|
|
41
|
-
*/
|
|
42
|
-
get shortString(): string;
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
1
|
+
import { n as ZarimanCycle, t as CurrentZarimanCycle } from "../../ZarimanCycle-D4YCSLmR.mjs";
|
|
45
2
|
export { CurrentZarimanCycle, ZarimanCycle };
|
|
@@ -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, IsString } from "class-validator";
|
|
2
5
|
import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
3
|
-
|
|
4
6
|
//#region lib/models/ZarimanCycle.ts
|
|
5
7
|
const corpusTimeMillis = 16551828e5;
|
|
6
8
|
const fullCycle = 18e6;
|
|
@@ -74,6 +76,20 @@ var ZarimanCycle = class extends WorldStateObject {
|
|
|
74
76
|
return `${this.timeLeft.replace(/\s\d*s/gi, "")} to ${this.isCorpus ? "grineer" : "corpus"}`;
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
|
-
|
|
79
|
+
__decorate([
|
|
80
|
+
ApiProperty({ description: "Whether or not it is currently Corpus (false = Grineer)" }),
|
|
81
|
+
IsBoolean(),
|
|
82
|
+
__decorateMetadata("design:type", Boolean)
|
|
83
|
+
], ZarimanCycle.prototype, "isCorpus", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
ApiProperty({ description: "Current cycle state. One of 'corpus', 'grineer'" }),
|
|
86
|
+
IsString(),
|
|
87
|
+
__decorateMetadata("design:type", String)
|
|
88
|
+
], ZarimanCycle.prototype, "state", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
ApiProperty({ description: "Time remaining in the current cycle" }),
|
|
91
|
+
IsString(),
|
|
92
|
+
__decorateMetadata("design:type", String)
|
|
93
|
+
], ZarimanCycle.prototype, "timeLeft", void 0);
|
|
78
94
|
//#endregion
|
|
79
|
-
export { ZarimanCycle };
|
|
95
|
+
export { ZarimanCycle };
|