warframe-worldstate-parser 5.3.10 → 5.3.11
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/{decorate-DEb1C2pD.mjs → decorate-CGYeQhjt.mjs} +2 -2
- package/dist/lib/WorldState.mjs +19 -20
- package/dist/lib/models/Alert.mjs +2 -3
- package/dist/lib/models/Archimedea.mjs +2 -3
- package/dist/lib/models/CambionCycle.mjs +1 -1
- package/dist/lib/models/CetusCycle.mjs +2 -2
- package/dist/lib/models/ChallengeInstance.mjs +1 -1
- package/dist/lib/models/ConclaveChallenge.mjs +1 -1
- package/dist/lib/models/ConstructionProgress.mjs +1 -1
- package/dist/lib/models/DailyDeal.mjs +1 -1
- package/dist/lib/models/DarkSector.mjs +2 -3
- package/dist/lib/models/DarkSectorBattle.mjs +3 -4
- package/dist/lib/models/DuviriCycle.mjs +1 -1
- package/dist/lib/models/EarthCycle.mjs +2 -2
- package/dist/lib/models/Fissure.mjs +1 -1
- package/dist/lib/models/FlashSale.mjs +1 -1
- package/dist/lib/models/GlobalUpgrade.mjs +1 -1
- package/dist/lib/models/Invasion.mjs +1 -1
- package/dist/lib/models/Kinepage.mjs +2 -3
- package/dist/lib/models/Kuva.mjs +3 -4
- package/dist/lib/models/MidrathCycle.mjs +1 -1
- package/dist/lib/models/Mission.mjs +2 -3
- package/dist/lib/models/News.mjs +3 -4
- package/dist/lib/models/Nightwave.mjs +2 -3
- package/dist/lib/models/NightwaveChallenge.mjs +1 -1
- package/dist/lib/models/PersistentEnemy.mjs +2 -3
- package/dist/lib/models/Reward.mjs +1 -1
- package/dist/lib/models/SentientOutpost.mjs +3 -4
- package/dist/lib/models/Simaris.mjs +1 -1
- package/dist/lib/models/Sortie.mjs +1 -1
- package/dist/lib/models/SortieVariant.mjs +1 -1
- package/dist/lib/models/SteelPathOffering.mjs +3 -4
- package/dist/lib/models/SyndicateJob.mjs +2 -2
- package/dist/lib/models/SyndicateMission.mjs +1 -1
- package/dist/lib/models/Tmp.mjs +8 -9
- package/dist/lib/models/VallisCycle.mjs +1 -1
- package/dist/lib/models/VoidTrader.mjs +2 -3
- package/dist/lib/models/VoidTraderItem.mjs +1 -1
- package/dist/lib/models/VoidTraderSchedule.mjs +2 -3
- package/dist/lib/models/WeeklyChallenge.mjs +1 -1
- package/dist/lib/models/WorldEvent.mjs +3 -4
- package/dist/lib/models/WorldStateObject.mjs +3 -4
- package/dist/lib/models/ZarimanCycle.mjs +2 -2
- package/dist/lib/supporting/DuviriChoice.mjs +1 -1
- package/dist/lib/supporting/ExternalMission.mjs +5 -6
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateMetadata.js
|
|
2
2
|
function __decorateMetadata(k, v) {
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region \0@oxc-project+runtime@0.
|
|
6
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
|
|
7
7
|
function __decorate(decorators, target, key, desc) {
|
|
8
8
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
package/dist/lib/WorldState.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Alert } from "./models/Alert.mjs";
|
|
3
3
|
import { Archimedea } from "./models/Archimedea.mjs";
|
|
4
4
|
import { Calendar } from "./models/Calendar.mjs";
|
|
@@ -38,7 +38,6 @@ import { IsArray, IsDate, IsOptional, IsString, ValidateNested } from "class-val
|
|
|
38
38
|
import wsData from "warframe-worldstate-data";
|
|
39
39
|
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
40
40
|
//#region lib/WorldState.ts
|
|
41
|
-
var _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18;
|
|
42
41
|
const { sortie } = wsData;
|
|
43
42
|
const safeArray = (arr) => arr ?? [];
|
|
44
43
|
const safeObj = (obj) => obj ?? {};
|
|
@@ -340,7 +339,7 @@ var WorldState = class WorldState {
|
|
|
340
339
|
__decorate([
|
|
341
340
|
IsDate(),
|
|
342
341
|
Type(() => Date),
|
|
343
|
-
__decorateMetadata("design:type", typeof
|
|
342
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
344
343
|
], WorldState.prototype, "timestamp", void 0);
|
|
345
344
|
__decorate([IsString(), __decorateMetadata("design:type", String)], WorldState.prototype, "buildLabel", void 0);
|
|
346
345
|
__decorate([
|
|
@@ -364,7 +363,7 @@ __decorate([
|
|
|
364
363
|
__decorate([
|
|
365
364
|
ValidateNested(),
|
|
366
365
|
Type(() => Sortie),
|
|
367
|
-
__decorateMetadata("design:type", typeof
|
|
366
|
+
__decorateMetadata("design:type", typeof Sortie === "undefined" ? Object : Sortie)
|
|
368
367
|
], WorldState.prototype, "sortie", void 0);
|
|
369
368
|
__decorate([
|
|
370
369
|
IsArray(),
|
|
@@ -411,7 +410,7 @@ __decorate([
|
|
|
411
410
|
__decorate([
|
|
412
411
|
ValidateNested(),
|
|
413
412
|
Type(() => VoidTrader),
|
|
414
|
-
__decorateMetadata("design:type", typeof
|
|
413
|
+
__decorateMetadata("design:type", typeof VoidTrader === "undefined" ? Object : VoidTrader)
|
|
415
414
|
], WorldState.prototype, "voidTrader", void 0);
|
|
416
415
|
__decorate([
|
|
417
416
|
IsArray(),
|
|
@@ -422,7 +421,7 @@ __decorate([
|
|
|
422
421
|
__decorate([
|
|
423
422
|
ValidateNested(),
|
|
424
423
|
Type(() => Simaris),
|
|
425
|
-
__decorateMetadata("design:type", typeof
|
|
424
|
+
__decorateMetadata("design:type", typeof Simaris === "undefined" ? Object : Simaris)
|
|
426
425
|
], WorldState.prototype, "simaris", void 0);
|
|
427
426
|
__decorate([
|
|
428
427
|
IsArray(),
|
|
@@ -439,44 +438,44 @@ __decorate([
|
|
|
439
438
|
__decorate([
|
|
440
439
|
ValidateNested(),
|
|
441
440
|
Type(() => EarthCycle),
|
|
442
|
-
__decorateMetadata("design:type", typeof
|
|
441
|
+
__decorateMetadata("design:type", typeof EarthCycle === "undefined" ? Object : EarthCycle)
|
|
443
442
|
], WorldState.prototype, "earthCycle", void 0);
|
|
444
443
|
__decorate([
|
|
445
444
|
ValidateNested(),
|
|
446
445
|
Type(() => CetusCycle),
|
|
447
|
-
__decorateMetadata("design:type", typeof
|
|
446
|
+
__decorateMetadata("design:type", typeof CetusCycle === "undefined" ? Object : CetusCycle)
|
|
448
447
|
], WorldState.prototype, "cetusCycle", void 0);
|
|
449
448
|
__decorate([
|
|
450
449
|
ValidateNested(),
|
|
451
450
|
Type(() => CambionCycle),
|
|
452
|
-
__decorateMetadata("design:type", typeof
|
|
451
|
+
__decorateMetadata("design:type", typeof CambionCycle === "undefined" ? Object : CambionCycle)
|
|
453
452
|
], WorldState.prototype, "cambionCycle", void 0);
|
|
454
453
|
__decorate([
|
|
455
454
|
ValidateNested(),
|
|
456
455
|
Type(() => ZarimanCycle),
|
|
457
|
-
__decorateMetadata("design:type", typeof
|
|
456
|
+
__decorateMetadata("design:type", typeof ZarimanCycle === "undefined" ? Object : ZarimanCycle)
|
|
458
457
|
], WorldState.prototype, "zarimanCycle", void 0);
|
|
459
458
|
__decorate([
|
|
460
459
|
IsOptional(),
|
|
461
460
|
ValidateNested(),
|
|
462
461
|
Type(() => WeeklyChallenge),
|
|
463
|
-
__decorateMetadata("design:type", typeof
|
|
462
|
+
__decorateMetadata("design:type", typeof WeeklyChallenge === "undefined" ? Object : WeeklyChallenge)
|
|
464
463
|
], WorldState.prototype, "weeklyChallenges", void 0);
|
|
465
464
|
__decorate([
|
|
466
465
|
ValidateNested(),
|
|
467
466
|
Type(() => ConstructionProgress),
|
|
468
|
-
__decorateMetadata("design:type", typeof
|
|
467
|
+
__decorateMetadata("design:type", typeof ConstructionProgress === "undefined" ? Object : ConstructionProgress)
|
|
469
468
|
], WorldState.prototype, "constructionProgress", void 0);
|
|
470
469
|
__decorate([
|
|
471
470
|
ValidateNested(),
|
|
472
471
|
Type(() => VallisCycle),
|
|
473
|
-
__decorateMetadata("design:type", typeof
|
|
472
|
+
__decorateMetadata("design:type", typeof VallisCycle === "undefined" ? Object : VallisCycle)
|
|
474
473
|
], WorldState.prototype, "vallisCycle", void 0);
|
|
475
474
|
__decorate([
|
|
476
475
|
IsOptional(),
|
|
477
476
|
ValidateNested(),
|
|
478
477
|
Type(() => Nightwave),
|
|
479
|
-
__decorateMetadata("design:type", typeof
|
|
478
|
+
__decorateMetadata("design:type", typeof Nightwave === "undefined" ? Object : Nightwave)
|
|
480
479
|
], WorldState.prototype, "nightwave", void 0);
|
|
481
480
|
__decorate([
|
|
482
481
|
IsOptional(),
|
|
@@ -489,27 +488,27 @@ __decorate([
|
|
|
489
488
|
IsOptional(),
|
|
490
489
|
ValidateNested(),
|
|
491
490
|
Type(() => ExternalMission),
|
|
492
|
-
__decorateMetadata("design:type", typeof
|
|
491
|
+
__decorateMetadata("design:type", typeof ExternalMission === "undefined" ? Object : ExternalMission)
|
|
493
492
|
], WorldState.prototype, "arbitration", void 0);
|
|
494
493
|
__decorate([
|
|
495
494
|
ValidateNested(),
|
|
496
495
|
Type(() => SteelPathOfferings),
|
|
497
|
-
__decorateMetadata("design:type", typeof
|
|
496
|
+
__decorateMetadata("design:type", typeof SteelPathOfferings === "undefined" ? Object : SteelPathOfferings)
|
|
498
497
|
], WorldState.prototype, "steelPath", void 0);
|
|
499
498
|
__decorate([
|
|
500
499
|
ValidateNested(),
|
|
501
500
|
Type(() => VoidTrader),
|
|
502
|
-
__decorateMetadata("design:type", typeof
|
|
501
|
+
__decorateMetadata("design:type", typeof VoidTrader === "undefined" ? Object : VoidTrader)
|
|
503
502
|
], WorldState.prototype, "vaultTrader", void 0);
|
|
504
503
|
__decorate([
|
|
505
504
|
ValidateNested(),
|
|
506
505
|
Type(() => Sortie),
|
|
507
|
-
__decorateMetadata("design:type", typeof
|
|
506
|
+
__decorateMetadata("design:type", typeof Sortie === "undefined" ? Object : Sortie)
|
|
508
507
|
], WorldState.prototype, "archonHunt", void 0);
|
|
509
508
|
__decorate([
|
|
510
509
|
ValidateNested(),
|
|
511
510
|
Type(() => DuviriCycle),
|
|
512
|
-
__decorateMetadata("design:type", typeof
|
|
511
|
+
__decorateMetadata("design:type", typeof DuviriCycle === "undefined" ? Object : DuviriCycle)
|
|
513
512
|
], WorldState.prototype, "duviriCycle", void 0);
|
|
514
513
|
__decorate([
|
|
515
514
|
IsArray(),
|
|
@@ -520,7 +519,7 @@ __decorate([
|
|
|
520
519
|
__decorate([
|
|
521
520
|
ValidateNested(),
|
|
522
521
|
Type(() => Calendar),
|
|
523
|
-
__decorateMetadata("design:type", typeof
|
|
522
|
+
__decorateMetadata("design:type", typeof Calendar === "undefined" ? Object : Calendar)
|
|
524
523
|
], WorldState.prototype, "calendar", void 0);
|
|
525
524
|
var WorldState_default = async (json, deps) => WorldState.build(json, deps);
|
|
526
525
|
//#endregion
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Mission } from "./Mission.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
5
5
|
import { IsArray, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
6
6
|
import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
7
7
|
//#region lib/models/Alert.ts
|
|
8
|
-
var _ref;
|
|
9
8
|
/**
|
|
10
9
|
* Represents an alert
|
|
11
10
|
* @augments {WorldStateObject}
|
|
@@ -52,7 +51,7 @@ var Alert = class extends WorldStateObject {
|
|
|
52
51
|
__decorate([
|
|
53
52
|
ValidateNested(),
|
|
54
53
|
Type(() => Mission),
|
|
55
|
-
__decorateMetadata("design:type", typeof
|
|
54
|
+
__decorateMetadata("design:type", typeof Mission === "undefined" ? Object : Mission)
|
|
56
55
|
], Alert.prototype, "mission", void 0);
|
|
57
56
|
__decorate([
|
|
58
57
|
IsArray(),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
5
5
|
import { IsArray, IsBoolean, IsString, ValidateNested } from "class-validator";
|
|
6
6
|
import { faction, languageDesc, languageString, missionType } from "warframe-worldstate-data/utilities";
|
|
7
7
|
//#region lib/models/Archimedea.ts
|
|
8
|
-
var _ref;
|
|
9
8
|
var ArchimedeaMissionDifficultyRisk = class {
|
|
10
9
|
key;
|
|
11
10
|
name;
|
|
@@ -81,7 +80,7 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], ArchimedeaMi
|
|
|
81
80
|
__decorate([
|
|
82
81
|
ValidateNested(),
|
|
83
82
|
Type(() => ArchimedeaMissionDifficulty),
|
|
84
|
-
__decorateMetadata("design:type", typeof
|
|
83
|
+
__decorateMetadata("design:type", typeof ArchimedeaMissionDifficulty === "undefined" ? Object : ArchimedeaMissionDifficulty)
|
|
85
84
|
], ArchimedeaMission.prototype, "deviation", void 0);
|
|
86
85
|
__decorate([
|
|
87
86
|
IsArray(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsString } from "class-validator";
|
|
4
4
|
import { fromNow } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsString } from "class-validator";
|
|
4
4
|
import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -73,7 +73,7 @@ var CetusCycle = class extends WorldStateObject {
|
|
|
73
73
|
const dayTime = secondsToNightEnd > nightTime;
|
|
74
74
|
millisLeft = (dayTime ? secondsToNightEnd - nightTime : secondsToNightEnd) * 1e3;
|
|
75
75
|
const minutesCoef = 1e3 * 60;
|
|
76
|
-
const expiry = new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
76
|
+
const expiry = /* @__PURE__ */ new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
77
77
|
const state = dayTime ? "day" : "night";
|
|
78
78
|
return {
|
|
79
79
|
dayTime,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsInt, IsOptional, IsString, Min } from "class-validator";
|
|
3
3
|
import { languageString } from "warframe-worldstate-data/utilities";
|
|
4
4
|
//#region lib/models/ChallengeInstance.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsInt, IsOptional, IsString, Min } from "class-validator";
|
|
4
4
|
import { conclaveCategory, conclaveChallenge, conclaveMode, fromNow, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { IsString } from "class-validator";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsInt, IsNumber, IsString, Min } from "class-validator";
|
|
4
4
|
import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Mission } from "./Mission.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { DarkSectorBattle } from "./DarkSectorBattle.mjs";
|
|
@@ -6,7 +6,6 @@ import { Type } from "class-transformer";
|
|
|
6
6
|
import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, Min, ValidateNested } from "class-validator";
|
|
7
7
|
import { languageString, parseDate } from "warframe-worldstate-data/utilities";
|
|
8
8
|
//#region lib/models/DarkSector.ts
|
|
9
|
-
var _ref;
|
|
10
9
|
/**
|
|
11
10
|
* Represents a dark sector
|
|
12
11
|
* @augments {WorldStateObject}
|
|
@@ -195,7 +194,7 @@ __decorate([
|
|
|
195
194
|
IsOptional(),
|
|
196
195
|
ValidateNested(),
|
|
197
196
|
Type(() => Mission),
|
|
198
|
-
__decorateMetadata("design:type", typeof
|
|
197
|
+
__decorateMetadata("design:type", typeof Mission === "undefined" ? Object : Mission)
|
|
199
198
|
], DarkSector.prototype, "mission", void 0);
|
|
200
199
|
__decorate([
|
|
201
200
|
IsNumber(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsBoolean, IsDate, IsString } from "class-validator";
|
|
4
4
|
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
5
5
|
//#region lib/models/DarkSectorBattle.ts
|
|
6
|
-
var _ref, _ref2;
|
|
7
6
|
/**
|
|
8
7
|
* Represents a battle over a dark sector
|
|
9
8
|
*/
|
|
@@ -59,12 +58,12 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], DarkSectorBa
|
|
|
59
58
|
__decorate([
|
|
60
59
|
IsDate(),
|
|
61
60
|
Type(() => Date),
|
|
62
|
-
__decorateMetadata("design:type", typeof
|
|
61
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
63
62
|
], DarkSectorBattle.prototype, "start", void 0);
|
|
64
63
|
__decorate([
|
|
65
64
|
IsDate(),
|
|
66
65
|
Type(() => Date),
|
|
67
|
-
__decorateMetadata("design:type", typeof
|
|
66
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
68
67
|
], DarkSectorBattle.prototype, "end", void 0);
|
|
69
68
|
//#endregion
|
|
70
69
|
export { DarkSectorBattle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { DuviriChoice } from "../supporting/DuviriChoice.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsString } from "class-validator";
|
|
4
4
|
import { fromNow } from "warframe-worldstate-data/utilities";
|
|
@@ -15,7 +15,7 @@ function getCurrentEarthCycle() {
|
|
|
15
15
|
const millisLeft = secondsLeft * 1e3;
|
|
16
16
|
const expiry = new Date(now + secondsLeft * 1e3);
|
|
17
17
|
const minutesCoef = 1e3 * 60;
|
|
18
|
-
const rounded = new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
18
|
+
const rounded = /* @__PURE__ */ new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
19
19
|
const timePieces = [];
|
|
20
20
|
if (secondsLeft > 3600) {
|
|
21
21
|
timePieces.push(`${Math.floor(secondsLeft / 3600)}h`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsString } from "class-validator";
|
|
4
4
|
import { fissureModifier, fissureTier, fromNow, missionType, node, nodeEnemy, nodeMissionType, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsInt, IsNumber, IsString, Min } from "class-validator";
|
|
4
4
|
import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsNumber, IsString } from "class-validator";
|
|
4
4
|
import { fromNow, operation, operationSymbol, timeDeltaToString, upgrade } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Reward } from "./Reward.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { IsArray, IsBoolean, IsInt, IsNumber, IsString, ValidateNested } from "class-validator";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsDate, IsObject, IsString } from "class-validator";
|
|
4
4
|
//#region lib/models/Kinepage.ts
|
|
5
|
-
var _ref;
|
|
6
5
|
var Kinepage = class {
|
|
7
6
|
/**
|
|
8
7
|
* Timestamp of when the message appeared on
|
|
@@ -26,7 +25,7 @@ var Kinepage = class {
|
|
|
26
25
|
__decorate([
|
|
27
26
|
IsDate(),
|
|
28
27
|
Type(() => Date),
|
|
29
|
-
__decorateMetadata("design:type", typeof
|
|
28
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
30
29
|
], Kinepage.prototype, "timestamp", void 0);
|
|
31
30
|
__decorate([IsString(), __decorateMetadata("design:type", String)], Kinepage.prototype, "message", void 0);
|
|
32
31
|
__decorate([IsObject(), __decorateMetadata("design:type", Object)], Kinepage.prototype, "translations", void 0);
|
package/dist/lib/models/Kuva.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { ExternalMission } from "../supporting/ExternalMission.mjs";
|
|
3
3
|
import "../supporting/index.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
@@ -6,7 +6,6 @@ import { Type } from "class-transformer";
|
|
|
6
6
|
import { IsArray, IsOptional, ValidateNested } from "class-validator";
|
|
7
7
|
import { node, nodeMissionType } from "warframe-worldstate-data/utilities";
|
|
8
8
|
//#region lib/models/Kuva.ts
|
|
9
|
-
var _ref;
|
|
10
9
|
const HOURS_2 = 72e5;
|
|
11
10
|
/**
|
|
12
11
|
* Truncate time for a semlar-provided mission
|
|
@@ -61,7 +60,7 @@ const parse = (data, locale) => {
|
|
|
61
60
|
truncateTime(p);
|
|
62
61
|
p.id = hash(JSON.stringify(p));
|
|
63
62
|
p.expired = Date.now() - p.expiry.getTime() < 0;
|
|
64
|
-
if (p.activation < now && now < p.expiry && new Date(p.activation.getTime() + HOURS_2) > now && new Date(p.expiry.getTime() - HOURS_2) < now) {
|
|
63
|
+
if (p.activation < now && now < p.expiry && new Date(p.activation.getTime() + HOURS_2) > now && /* @__PURE__ */ new Date(p.expiry.getTime() - HOURS_2) < now) {
|
|
65
64
|
if (mission.missiontype === "EliteAlertMission") parsed.arbitration = p;
|
|
66
65
|
if (mission.missiontype?.startsWith("KuvaMission")) parsed.kuva.push(p);
|
|
67
66
|
}
|
|
@@ -98,7 +97,7 @@ __decorate([
|
|
|
98
97
|
IsOptional(),
|
|
99
98
|
ValidateNested(),
|
|
100
99
|
Type(() => ExternalMission),
|
|
101
|
-
__decorateMetadata("design:type", typeof
|
|
100
|
+
__decorateMetadata("design:type", typeof ExternalMission === "undefined" ? Object : ExternalMission)
|
|
102
101
|
], Kuva.prototype, "arbitration", void 0);
|
|
103
102
|
//#endregion
|
|
104
103
|
export { Kuva };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { IsBoolean, IsString } from "class-validator";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Reward } from "./Reward.mjs";
|
|
3
3
|
import { Type } from "class-transformer";
|
|
4
4
|
import { IsArray, IsBoolean, IsInt, IsOptional, IsString, Min, ValidateNested } from "class-validator";
|
|
5
5
|
import { faction, insist, languageString, missionType, node } from "warframe-worldstate-data/utilities";
|
|
6
6
|
//#region lib/models/Mission.ts
|
|
7
|
-
var _ref;
|
|
8
7
|
/**
|
|
9
8
|
* Represents an in-game mission
|
|
10
9
|
*/
|
|
@@ -149,7 +148,7 @@ __decorate([
|
|
|
149
148
|
IsOptional(),
|
|
150
149
|
ValidateNested(),
|
|
151
150
|
Type(() => Reward),
|
|
152
|
-
__decorateMetadata("design:type", typeof
|
|
151
|
+
__decorateMetadata("design:type", typeof Reward === "undefined" ? Object : Reward)
|
|
153
152
|
], Mission.prototype, "reward", void 0);
|
|
154
153
|
__decorate([
|
|
155
154
|
IsInt(),
|
package/dist/lib/models/News.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { cdn, deProxy } from "../supporting/ImgCdn.mjs";
|
|
2
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
2
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
5
5
|
import { IsBoolean, IsDate, IsObject, IsString } from "class-validator";
|
|
6
6
|
import { fromNow, languageString, parseDate, timeDeltaToString, toNow } from "warframe-worldstate-data/utilities";
|
|
7
7
|
//#region lib/models/News.ts
|
|
8
|
-
var _ref, _ref2;
|
|
9
8
|
const updateReg = /(update|hotfix|patch-notes)/i;
|
|
10
9
|
const primeAccessReg = /(access)/i;
|
|
11
10
|
const streamReg = /(devstream|prime-time|warframeinternational|stream)/i;
|
|
@@ -123,9 +122,9 @@ __decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], News.proto
|
|
|
123
122
|
__decorate([
|
|
124
123
|
IsDate(),
|
|
125
124
|
Type(() => Date),
|
|
126
|
-
__decorateMetadata("design:type", typeof
|
|
125
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
127
126
|
], News.prototype, "date", void 0);
|
|
128
|
-
__decorate([IsObject(), __decorateMetadata("design:type", typeof
|
|
127
|
+
__decorate([IsObject(), __decorateMetadata("design:type", typeof Record === "undefined" ? Object : Record)], News.prototype, "translations", void 0);
|
|
129
128
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], News.prototype, "update", void 0);
|
|
130
129
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], News.prototype, "primeAccess", void 0);
|
|
131
130
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], News.prototype, "stream", void 0);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { NightwaveChallenge } from "./NightwaveChallenge.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
5
5
|
import { IsArray, IsInt, IsObject, IsString, Min, ValidateNested } from "class-validator";
|
|
6
6
|
import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
7
7
|
//#region lib/models/Nightwave.ts
|
|
8
|
-
var _ref;
|
|
9
8
|
/**
|
|
10
9
|
* Represents a nightwave state
|
|
11
10
|
* @augments {WorldStateObject}
|
|
@@ -69,7 +68,7 @@ __decorate([
|
|
|
69
68
|
Min(0),
|
|
70
69
|
__decorateMetadata("design:type", Number)
|
|
71
70
|
], Nightwave.prototype, "phase", void 0);
|
|
72
|
-
__decorate([IsObject(), __decorateMetadata("design:type", typeof
|
|
71
|
+
__decorate([IsObject(), __decorateMetadata("design:type", typeof Record === "undefined" ? Object : Record)], Nightwave.prototype, "params", void 0);
|
|
73
72
|
__decorate([
|
|
74
73
|
IsArray(),
|
|
75
74
|
ValidateNested({ each: true }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsInt, IsString, Min } from "class-validator";
|
|
4
4
|
import { languageDesc, languageString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { Type } from "class-transformer";
|
|
4
4
|
import { IsBoolean, IsDate, IsInt, IsNumber, IsString, Min } from "class-validator";
|
|
5
5
|
import { languageString, node, parseDate, region } from "warframe-worldstate-data/utilities";
|
|
6
6
|
//#region lib/models/PersistentEnemy.ts
|
|
7
|
-
var _ref;
|
|
8
7
|
/**
|
|
9
8
|
* Represents a persistent enemy
|
|
10
9
|
* @augments {WorldStateObject}
|
|
@@ -90,7 +89,7 @@ __decorate([IsNumber(), __decorateMetadata("design:type", Number)], PersistentEn
|
|
|
90
89
|
__decorate([
|
|
91
90
|
IsDate(),
|
|
92
91
|
Type(() => Date),
|
|
93
|
-
__decorateMetadata("design:type", typeof
|
|
92
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
94
93
|
], PersistentEnemy.prototype, "lastDiscoveredTime", void 0);
|
|
95
94
|
__decorate([IsString(), __decorateMetadata("design:type", String)], PersistentEnemy.prototype, "lastDiscoveredAt", void 0);
|
|
96
95
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], PersistentEnemy.prototype, "isDiscovered", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import RewardTypes_default from "../supporting/RewardTypes.mjs";
|
|
2
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
2
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
3
3
|
import { IsArray, IsInt, IsNumber, IsString, Min } from "class-validator";
|
|
4
4
|
import { insist, languageString } from "warframe-worldstate-data/utilities";
|
|
5
5
|
//#region lib/models/Reward.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsBoolean, IsDate, IsOptional, IsString } from "class-validator";
|
|
4
4
|
import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
|
|
5
5
|
//#region lib/models/SentientOutpost.ts
|
|
6
|
-
var _ref, _ref2;
|
|
7
6
|
const duration = 1800;
|
|
8
7
|
const sat = () => {
|
|
9
8
|
const now = Math.floor(Date.now() / 1e3);
|
|
@@ -70,12 +69,12 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], SentientOutp
|
|
|
70
69
|
__decorate([
|
|
71
70
|
IsDate(),
|
|
72
71
|
Type(() => Date),
|
|
73
|
-
__decorateMetadata("design:type", typeof
|
|
72
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
74
73
|
], SentientOutpost.prototype, "activation", void 0);
|
|
75
74
|
__decorate([
|
|
76
75
|
IsDate(),
|
|
77
76
|
Type(() => Date),
|
|
78
|
-
__decorateMetadata("design:type", typeof
|
|
77
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
79
78
|
], SentientOutpost.prototype, "expiry", void 0);
|
|
80
79
|
__decorate([IsOptional(), __decorateMetadata("design:type", Object)], SentientOutpost.prototype, "mission", void 0);
|
|
81
80
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], SentientOutpost.prototype, "active", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsBoolean, IsString } from "class-validator";
|
|
3
3
|
import { languageString } from "warframe-worldstate-data/utilities";
|
|
4
4
|
//#region lib/models/Simaris.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Mission } from "./Mission.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { SortieVariant } from "./SortieVariant.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsString } from "class-validator";
|
|
3
3
|
import { insist, missionType, node, sortieModDesc, sortieModifier } from "warframe-worldstate-data/utilities";
|
|
4
4
|
//#region lib/models/SortieVariant.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsArray, IsDate, IsObject, IsString } from "class-validator";
|
|
4
4
|
import { steelPath, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
5
5
|
//#region lib/models/SteelPathOffering.ts
|
|
6
|
-
var _ref, _ref2;
|
|
7
6
|
const monday = 1;
|
|
8
7
|
/**
|
|
9
8
|
* Gets the first day of the week
|
|
@@ -106,12 +105,12 @@ __decorate([IsObject(), __decorateMetadata("design:type", Object)], SteelPathOff
|
|
|
106
105
|
__decorate([
|
|
107
106
|
IsDate(),
|
|
108
107
|
Type(() => Date),
|
|
109
|
-
__decorateMetadata("design:type", typeof
|
|
108
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
110
109
|
], SteelPathOfferings.prototype, "activation", void 0);
|
|
111
110
|
__decorate([
|
|
112
111
|
IsDate(),
|
|
113
112
|
Type(() => Date),
|
|
114
|
-
__decorateMetadata("design:type", typeof
|
|
113
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
115
114
|
], SteelPathOfferings.prototype, "expiry", void 0);
|
|
116
115
|
__decorate([IsString(), __decorateMetadata("design:type", String)], SteelPathOfferings.prototype, "remaining", void 0);
|
|
117
116
|
__decorate([IsArray(), __decorateMetadata("design:type", Array)], SteelPathOfferings.prototype, "rotation", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { fetchProxy } from "../supporting/FetchProxy.mjs";
|
|
4
4
|
import "../supporting/index.mjs";
|
|
@@ -158,7 +158,7 @@ var SyndicateJob = class SyndicateJob extends WorldStateObject {
|
|
|
158
158
|
const jobType = data.jobType ?? "";
|
|
159
159
|
if (jobType.toLowerCase().includes("narmer")) if (jobType.toLowerCase().includes("eidolon")) {
|
|
160
160
|
this.timeBound = "day";
|
|
161
|
-
this.expiry = new Date(this.expiry.getTime() - FIFTY_MINUTES);
|
|
161
|
+
this.expiry = /* @__PURE__ */ new Date(this.expiry.getTime() - FIFTY_MINUTES);
|
|
162
162
|
} else this.timeBound = "night";
|
|
163
163
|
}
|
|
164
164
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { SyndicateJob } from "./SyndicateJob.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
package/dist/lib/models/Tmp.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Kinepage } from "./Kinepage.mjs";
|
|
3
3
|
import { SentientOutpost } from "./SentientOutpost.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
5
5
|
import { IsDate, IsInt, IsOptional, Min, ValidateNested } from "class-validator";
|
|
6
6
|
//#region lib/models/Tmp.ts
|
|
7
|
-
var _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
8
7
|
var FaceoffBonus = class {
|
|
9
8
|
activation;
|
|
10
9
|
expiry;
|
|
@@ -13,17 +12,17 @@ var FaceoffBonus = class {
|
|
|
13
12
|
__decorate([
|
|
14
13
|
IsDate(),
|
|
15
14
|
Type(() => Date),
|
|
16
|
-
__decorateMetadata("design:type", typeof
|
|
15
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
17
16
|
], FaceoffBonus.prototype, "activation", void 0);
|
|
18
17
|
__decorate([
|
|
19
18
|
IsDate(),
|
|
20
19
|
Type(() => Date),
|
|
21
|
-
__decorateMetadata("design:type", typeof
|
|
20
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
22
21
|
], FaceoffBonus.prototype, "expiry", void 0);
|
|
23
22
|
__decorate([
|
|
24
23
|
IsDate(),
|
|
25
24
|
Type(() => Date),
|
|
26
|
-
__decorateMetadata("design:type", typeof
|
|
25
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
27
26
|
], FaceoffBonus.prototype, "next", void 0);
|
|
28
27
|
var QuestProgress = class {
|
|
29
28
|
count;
|
|
@@ -65,24 +64,24 @@ var Tmp = class {
|
|
|
65
64
|
__decorate([
|
|
66
65
|
ValidateNested(),
|
|
67
66
|
Type(() => SentientOutpost),
|
|
68
|
-
__decorateMetadata("design:type", typeof
|
|
67
|
+
__decorateMetadata("design:type", typeof SentientOutpost === "undefined" ? Object : SentientOutpost)
|
|
69
68
|
], Tmp.prototype, "sentientOutposts", void 0);
|
|
70
69
|
__decorate([
|
|
71
70
|
ValidateNested(),
|
|
72
71
|
Type(() => Kinepage),
|
|
73
|
-
__decorateMetadata("design:type", typeof
|
|
72
|
+
__decorateMetadata("design:type", typeof Kinepage === "undefined" ? Object : Kinepage)
|
|
74
73
|
], Tmp.prototype, "kinepage", void 0);
|
|
75
74
|
__decorate([
|
|
76
75
|
IsOptional(),
|
|
77
76
|
ValidateNested(),
|
|
78
77
|
Type(() => FaceoffBonus),
|
|
79
|
-
__decorateMetadata("design:type", typeof
|
|
78
|
+
__decorateMetadata("design:type", typeof FaceoffBonus === "undefined" ? Object : FaceoffBonus)
|
|
80
79
|
], Tmp.prototype, "faceoffBonus", void 0);
|
|
81
80
|
__decorate([
|
|
82
81
|
IsOptional(),
|
|
83
82
|
ValidateNested(),
|
|
84
83
|
Type(() => QuestProgress),
|
|
85
|
-
__decorateMetadata("design:type", typeof
|
|
84
|
+
__decorateMetadata("design:type", typeof QuestProgress === "undefined" ? Object : QuestProgress)
|
|
86
85
|
], Tmp.prototype, "questToConquerCancer", void 0);
|
|
87
86
|
//#endregion
|
|
88
87
|
export { FaceoffBonus, QuestProgress, Tmp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsString } from "class-validator";
|
|
4
4
|
import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { VoidTraderItem } from "./VoidTraderItem.mjs";
|
|
4
4
|
import { VoidTraderSchedule } from "./VoidTraderSchedule.mjs";
|
|
@@ -6,7 +6,6 @@ import { Type } from "class-transformer";
|
|
|
6
6
|
import { IsArray, IsBoolean, IsDate, IsString, ValidateNested } from "class-validator";
|
|
7
7
|
import { fromNow, insist, node, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
8
8
|
//#region lib/models/VoidTrader.ts
|
|
9
|
-
var _ref;
|
|
10
9
|
/**
|
|
11
10
|
* Represents a void trader
|
|
12
11
|
* @augments {WorldStateObject}
|
|
@@ -88,7 +87,7 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], VoidTrader.p
|
|
|
88
87
|
__decorate([
|
|
89
88
|
IsDate(),
|
|
90
89
|
Type(() => Date),
|
|
91
|
-
__decorateMetadata("design:type", typeof
|
|
90
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
92
91
|
], VoidTrader.prototype, "initialStart", void 0);
|
|
93
92
|
__decorate([IsBoolean(), __decorateMetadata("design:type", Boolean)], VoidTrader.prototype, "completed", void 0);
|
|
94
93
|
__decorate([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsInt, IsString, Min } from "class-validator";
|
|
3
3
|
import { languageString } from "warframe-worldstate-data/utilities";
|
|
4
4
|
//#region lib/models/VoidTraderItem.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsDate, IsString } from "class-validator";
|
|
4
4
|
import { languageString, parseDate } from "warframe-worldstate-data/utilities";
|
|
5
5
|
//#region lib/models/VoidTraderSchedule.ts
|
|
6
|
-
var _ref;
|
|
7
6
|
var VoidTraderSchedule = class {
|
|
8
7
|
expiry;
|
|
9
8
|
item;
|
|
@@ -15,7 +14,7 @@ var VoidTraderSchedule = class {
|
|
|
15
14
|
__decorate([
|
|
16
15
|
IsDate(),
|
|
17
16
|
Type(() => Date),
|
|
18
|
-
__decorateMetadata("design:type", typeof
|
|
17
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
19
18
|
], VoidTraderSchedule.prototype, "expiry", void 0);
|
|
20
19
|
__decorate([IsString(), __decorateMetadata("design:type", String)], VoidTraderSchedule.prototype, "item", void 0);
|
|
21
20
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { ChallengeInstance } from "./ChallengeInstance.mjs";
|
|
4
4
|
import { Type } from "class-transformer";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Reward } from "./Reward.mjs";
|
|
3
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
4
4
|
import { SyndicateJob } from "./SyndicateJob.mjs";
|
|
@@ -6,7 +6,6 @@ import { Type } from "class-transformer";
|
|
|
6
6
|
import { IsArray, IsBoolean, IsDate, IsInt, IsNumber, IsObject, IsOptional, IsString, Min, ValidateNested } from "class-validator";
|
|
7
7
|
import { faction, fromNow, languageString, node, parseDate, syndicate } from "warframe-worldstate-data/utilities";
|
|
8
8
|
//#region lib/models/WorldEvent.ts
|
|
9
|
-
var _ref, _ref2;
|
|
10
9
|
/**
|
|
11
10
|
* Represents an in-game special event
|
|
12
11
|
* @augments {WorldStateObject}
|
|
@@ -345,12 +344,12 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], WorldEvent.p
|
|
|
345
344
|
__decorate([
|
|
346
345
|
IsDate(),
|
|
347
346
|
Type(() => Date),
|
|
348
|
-
__decorateMetadata("design:type", typeof
|
|
347
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
349
348
|
], WorldEvent.prototype, "altExpiry", void 0);
|
|
350
349
|
__decorate([
|
|
351
350
|
IsDate(),
|
|
352
351
|
Type(() => Date),
|
|
353
|
-
__decorateMetadata("design:type", typeof
|
|
352
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
354
353
|
], WorldEvent.prototype, "altActivation", void 0);
|
|
355
354
|
__decorate([
|
|
356
355
|
IsObject(),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsDate, IsOptional, IsString } from "class-validator";
|
|
3
3
|
import { fromNow, insist, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
4
4
|
//#region lib/models/WorldStateObject.ts
|
|
5
|
-
var _ref, _ref2;
|
|
6
5
|
/**
|
|
7
6
|
* Represents a generic object from WorldState
|
|
8
7
|
*/
|
|
@@ -59,12 +58,12 @@ __decorate([
|
|
|
59
58
|
__decorate([
|
|
60
59
|
IsOptional(),
|
|
61
60
|
IsDate(),
|
|
62
|
-
__decorateMetadata("design:type", typeof
|
|
61
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
63
62
|
], WorldStateObject.prototype, "activation", void 0);
|
|
64
63
|
__decorate([
|
|
65
64
|
IsOptional(),
|
|
66
65
|
IsDate(),
|
|
67
|
-
__decorateMetadata("design:type", typeof
|
|
66
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
68
67
|
], WorldStateObject.prototype, "expiry", void 0);
|
|
69
68
|
//#endregion
|
|
70
69
|
export { WorldStateObject };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
3
|
import { IsBoolean, IsString } from "class-validator";
|
|
4
4
|
import { fromNow, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
@@ -57,7 +57,7 @@ var ZarimanCycle = class extends WorldStateObject {
|
|
|
57
57
|
const millisLeft = fromNow(new Date(bountiesClone));
|
|
58
58
|
const isCorpus = fullCycle - ((bountiesClone - corpusTimeMillis) % fullCycle + fullCycle) % fullCycle > stateMaximum;
|
|
59
59
|
const minutesCoef = 1e3 * 60;
|
|
60
|
-
const expiry = new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
60
|
+
const expiry = /* @__PURE__ */ new Date(Math.round((now + millisLeft) / minutesCoef) * minutesCoef);
|
|
61
61
|
const state = isCorpus ? "corpus" : "grineer";
|
|
62
62
|
return {
|
|
63
63
|
isCorpus,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { IsArray, IsString } from "class-validator";
|
|
3
3
|
//#region lib/supporting/DuviriChoice.ts
|
|
4
4
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as __decorateMetadata, t as __decorate } from "../../decorate-
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CGYeQhjt.mjs";
|
|
2
2
|
import { Type } from "class-transformer";
|
|
3
3
|
import { IsBoolean, IsDate, IsOptional, IsString } from "class-validator";
|
|
4
4
|
//#region lib/supporting/ExternalMission.ts
|
|
5
|
-
var _ref, _ref2, _ref3, _ref4;
|
|
6
5
|
/**
|
|
7
6
|
* External mission data retrieved from https://10o.io/kuvalog.json
|
|
8
7
|
*/
|
|
@@ -53,12 +52,12 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMiss
|
|
|
53
52
|
__decorate([
|
|
54
53
|
IsDate(),
|
|
55
54
|
Type(() => Date),
|
|
56
|
-
__decorateMetadata("design:type", typeof
|
|
55
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
57
56
|
], ExternalMission.prototype, "activation", void 0);
|
|
58
57
|
__decorate([
|
|
59
58
|
IsDate(),
|
|
60
59
|
Type(() => Date),
|
|
61
|
-
__decorateMetadata("design:type", typeof
|
|
60
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
62
61
|
], ExternalMission.prototype, "expiry", void 0);
|
|
63
62
|
__decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMission.prototype, "node", void 0);
|
|
64
63
|
__decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMission.prototype, "nodeKey", void 0);
|
|
@@ -122,12 +121,12 @@ __decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMiss
|
|
|
122
121
|
__decorate([
|
|
123
122
|
IsDate(),
|
|
124
123
|
Type(() => Date),
|
|
125
|
-
__decorateMetadata("design:type", typeof
|
|
124
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
126
125
|
], ExternalMissionClass.prototype, "activation", void 0);
|
|
127
126
|
__decorate([
|
|
128
127
|
IsDate(),
|
|
129
128
|
Type(() => Date),
|
|
130
|
-
__decorateMetadata("design:type", typeof
|
|
129
|
+
__decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
131
130
|
], ExternalMissionClass.prototype, "expiry", void 0);
|
|
132
131
|
__decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMissionClass.prototype, "node", void 0);
|
|
133
132
|
__decorate([IsString(), __decorateMetadata("design:type", String)], ExternalMissionClass.prototype, "nodeKey", void 0);
|