warframe-worldstate-parser 5.2.18 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Calendar-C-rbmV_t.d.mts → Calendar-C99Wr_NC.d.mts} +1 -1
- package/dist/{CambionCycle-BzR_MfPH.d.mts → CambionCycle-CEVo0BPO.d.mts} +8 -2
- package/dist/{CetusCycle-DaqfF4J1.d.mts → CetusCycle-sbJ_VYPO.d.mts} +1 -1
- package/dist/{ConstructionProgress-BRxmro3-.d.mts → ConstructionProgress-CffeDtau.d.mts} +10 -1
- package/dist/{DarkSectorBattle-DHRl5tG1.d.mts → DarkSectorBattle-DwaJyGk3.d.mts} +1 -1
- package/dist/{Dependency-Cd-TxBJy.d.mts → Dependency-CtryMjKU.d.mts} +1 -1
- package/dist/{EarthCycle-C_oB5gDc.d.mts → EarthCycle-BsMMsVT4.d.mts} +1 -1
- package/dist/ExternalMission-Be-eX0Pc.d.mts +95 -0
- package/dist/{MidrathCycle-CxveqDtx.d.mts → MidrathCycle-UgLh7wgF.d.mts} +1 -1
- package/dist/{News-CJ3lD7_g.d.mts → News-CmoQ_nEf.d.mts} +1 -1
- package/dist/{Nightwave-BLHH02ht.d.mts → Nightwave-BBRJbyr8.d.mts} +2 -2
- package/dist/{NightwaveChallenge-j_m4hVQU.d.mts → NightwaveChallenge-C6J7ymli.d.mts} +1 -1
- package/dist/{PersistentEnemy-BJ4twtUY.d.mts → PersistentEnemy-WkvIZ9Mx.d.mts} +1 -1
- package/dist/{SteelPathOffering-DYjZ29sT.d.mts → SteelPathOffering-K2Ji4d5c.d.mts} +21 -0
- package/dist/{VallisCycle-as7DM4a-.d.mts → VallisCycle-BTYgGev7.d.mts} +1 -1
- package/dist/{ZarimanCycle-DyYiVfyG.d.mts → ZarimanCycle-D4YCSLmR.d.mts} +1 -1
- package/dist/decorate-CltSo06_.mjs +14 -0
- package/dist/{index-C4EJ_Mpd.d.mts → index-BiofND5v.d.mts} +77 -23
- package/dist/lib/WorldState.d.mts +16 -16
- package/dist/lib/WorldState.mjs +332 -2
- package/dist/lib/models/Alert.d.mts +1 -1
- package/dist/lib/models/Alert.mjs +29 -0
- package/dist/lib/models/Archimedea.d.mts +2 -2
- package/dist/lib/models/Archimedea.mjs +146 -1
- package/dist/lib/models/Calendar.d.mts +1 -1
- package/dist/lib/models/CambionCycle.d.mts +1 -1
- package/dist/lib/models/CambionCycle.mjs +19 -0
- package/dist/lib/models/CetusCycle.d.mts +1 -1
- package/dist/lib/models/CetusCycle.mjs +26 -0
- package/dist/lib/models/ChallengeInstance.d.mts +1 -1
- package/dist/lib/models/ChallengeInstance.mjs +38 -0
- package/dist/lib/models/ConclaveChallenge.d.mts +1 -1
- package/dist/lib/models/ConclaveChallenge.mjs +53 -0
- package/dist/lib/models/ConstructionProgress.d.mts +1 -1
- package/dist/lib/models/ConstructionProgress.mjs +27 -0
- package/dist/lib/models/DailyDeal.d.mts +1 -1
- package/dist/lib/models/DailyDeal.mjs +48 -0
- package/dist/lib/models/DarkSector.d.mts +1 -1
- package/dist/lib/models/DarkSector.mjs +152 -0
- package/dist/lib/models/DarkSectorBattle.d.mts +1 -1
- package/dist/lib/models/DarkSectorBattle.mjs +48 -0
- package/dist/lib/models/DuviriCycle.d.mts +1 -1
- package/dist/lib/models/DuviriCycle.mjs +20 -0
- package/dist/lib/models/EarthCycle.d.mts +1 -1
- package/dist/lib/models/EarthCycle.mjs +21 -0
- package/dist/lib/models/Fissure.d.mts +1 -1
- package/dist/lib/models/Fissure.mjs +49 -0
- package/dist/lib/models/FlashSale.d.mts +1 -1
- package/dist/lib/models/FlashSale.mjs +46 -0
- package/dist/lib/models/GlobalUpgrade.d.mts +1 -1
- package/dist/lib/models/GlobalUpgrade.mjs +23 -0
- package/dist/lib/models/Invasion.d.mts +1 -1
- package/dist/lib/models/Invasion.mjs +68 -0
- package/dist/lib/models/Kinepage.d.mts +1 -1
- package/dist/lib/models/Kinepage.mjs +24 -0
- package/dist/lib/models/Kuva.d.mts +1 -1
- package/dist/lib/models/Kuva.mjs +28 -0
- package/dist/lib/models/MidrathCycle.d.mts +1 -1
- package/dist/lib/models/MidrathCycle.mjs +13 -0
- package/dist/lib/models/Mission.d.mts +1 -1
- package/dist/lib/models/Mission.mjs +150 -0
- package/dist/lib/models/News.d.mts +1 -1
- package/dist/lib/models/News.mjs +63 -1
- package/dist/lib/models/Nightwave.d.mts +1 -1
- package/dist/lib/models/Nightwave.mjs +50 -0
- package/dist/lib/models/NightwaveChallenge.d.mts +1 -1
- package/dist/lib/models/NightwaveChallenge.mjs +34 -0
- package/dist/lib/models/PersistentEnemy.d.mts +1 -1
- package/dist/lib/models/PersistentEnemy.mjs +62 -0
- package/dist/lib/models/Reward.d.mts +1 -1
- package/dist/lib/models/Reward.mjs +50 -0
- package/dist/lib/models/SentientOutpost.d.mts +1 -1
- package/dist/lib/models/SentientOutpost.mjs +44 -0
- package/dist/lib/models/Simaris.d.mts +1 -1
- package/dist/lib/models/Simaris.mjs +13 -0
- package/dist/lib/models/Sortie.d.mts +1 -1
- package/dist/lib/models/Sortie.mjs +44 -0
- package/dist/lib/models/SortieVariant.d.mts +1 -1
- package/dist/lib/models/SortieVariant.mjs +33 -0
- package/dist/lib/models/SteelPathOffering.d.mts +1 -1
- package/dist/lib/models/SteelPathOffering.mjs +83 -0
- package/dist/lib/models/SyndicateJob.d.mts +1 -1
- package/dist/lib/models/SyndicateJob.mjs +73 -0
- package/dist/lib/models/SyndicateMission.d.mts +1 -1
- package/dist/lib/models/SyndicateMission.mjs +33 -0
- package/dist/lib/models/Tmp.d.mts +2 -2
- package/dist/lib/models/Tmp.mjs +92 -1
- package/dist/lib/models/VallisCycle.d.mts +1 -1
- package/dist/lib/models/VallisCycle.mjs +13 -0
- package/dist/lib/models/VoidTrader.d.mts +1 -1
- package/dist/lib/models/VoidTrader.mjs +54 -0
- package/dist/lib/models/VoidTraderItem.d.mts +1 -1
- package/dist/lib/models/VoidTraderItem.mjs +25 -0
- package/dist/lib/models/VoidTraderSchedule.d.mts +1 -1
- package/dist/lib/models/VoidTraderSchedule.mjs +19 -0
- package/dist/lib/models/WeeklyChallenge.d.mts +1 -1
- package/dist/lib/models/WeeklyChallenge.mjs +17 -0
- package/dist/lib/models/WorldEvent.d.mts +1 -1
- package/dist/lib/models/WorldEvent.mjs +263 -0
- package/dist/lib/models/WorldStateObject.d.mts +1 -1
- package/dist/lib/models/WorldStateObject.mjs +28 -0
- package/dist/lib/models/ZarimanCycle.d.mts +1 -1
- package/dist/lib/models/ZarimanCycle.mjs +18 -0
- package/dist/lib/models/index.d.mts +18 -18
- package/dist/lib/models/index.mjs +3 -3
- package/dist/lib/supporting/Dependency.d.mts +1 -1
- package/dist/lib/supporting/DuviriChoice.d.mts +1 -1
- package/dist/lib/supporting/DuviriChoice.mjs +31 -0
- package/dist/lib/supporting/ExternalMission.d.mts +2 -2
- package/dist/lib/supporting/ExternalMission.mjs +228 -1
- package/dist/lib/supporting/FetchProxy.d.mts +1 -1
- package/dist/lib/supporting/ImgCdn.d.mts +1 -1
- package/dist/lib/supporting/KuvaLogEntry.d.mts +1 -1
- package/dist/lib/supporting/RewardData.d.mts +1 -1
- package/dist/lib/supporting/RewardTypes.d.mts +1 -1
- package/dist/lib/supporting/index.d.mts +9 -9
- package/dist/lib/supporting/index.mjs +2 -1
- package/dist/main.d.mts +25 -25
- package/dist/main.mjs +7 -6
- package/package.json +7 -1
- package/dist/ExternalMission-CT__oi7Q.d.mts +0 -49
- /package/dist/{FetchProxy-DHSI4JPP.d.mts → FetchProxy-Bgoi37sM.d.mts} +0 -0
- /package/dist/{ImgCdn-DIhZrwap.d.mts → ImgCdn-By4Qj9kk.d.mts} +0 -0
- /package/dist/{Kinepage-CKBuvbv5.d.mts → Kinepage-BDZm950n.d.mts} +0 -0
- /package/dist/{KuvaLogEntry-f4ZBn2Xf.d.mts → KuvaLogEntry-B0SaM7MX.d.mts} +0 -0
- /package/dist/{RewardData-BdtdUFnh.d.mts → RewardData-B5TstL-h.d.mts} +0 -0
- /package/dist/{RewardTypes-BnGaD7VF.d.mts → RewardTypes-DMW4dYrB.d.mts} +0 -0
- /package/dist/{WorldStateObject-C2KjQZjd.d.mts → WorldStateObject-BgeCocs9.d.mts} +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
3
|
+
import { IsInt, IsOptional, IsString, Min } from "class-validator";
|
|
1
4
|
import { languageString } from "warframe-worldstate-data/utilities";
|
|
2
5
|
//#region lib/models/ChallengeInstance.ts
|
|
3
6
|
/**
|
|
@@ -42,5 +45,40 @@ var ChallengeInstance = class {
|
|
|
42
45
|
this.target = data.VictimType?.[0] ? languageString(data.VictimType[0], locale) : data.Script?._faction;
|
|
43
46
|
}
|
|
44
47
|
};
|
|
48
|
+
__decorate([
|
|
49
|
+
ApiProperty({ description: "Type of challenge" }),
|
|
50
|
+
IsString(),
|
|
51
|
+
__decorateMetadata("design:type", String)
|
|
52
|
+
], ChallengeInstance.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ApiProperty({ description: "Minimum enemy level to fulfill challenge" }),
|
|
55
|
+
IsInt(),
|
|
56
|
+
Min(0),
|
|
57
|
+
__decorateMetadata("design:type", Number)
|
|
58
|
+
], ChallengeInstance.prototype, "minEnemyLevel", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
ApiProperty({ description: "Required number of units to complete challenge" }),
|
|
61
|
+
IsInt(),
|
|
62
|
+
Min(0),
|
|
63
|
+
__decorateMetadata("design:type", Number)
|
|
64
|
+
], ChallengeInstance.prototype, "requiredAmount", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
ApiProperty({ description: "Waypoint for amount of units between progression updates" }),
|
|
67
|
+
IsInt(),
|
|
68
|
+
Min(0),
|
|
69
|
+
__decorateMetadata("design:type", Number)
|
|
70
|
+
], ChallengeInstance.prototype, "progressAmount", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
ApiPropertyOptional({ description: "Required damage type" }),
|
|
73
|
+
IsOptional(),
|
|
74
|
+
IsString(),
|
|
75
|
+
__decorateMetadata("design:type", String)
|
|
76
|
+
], ChallengeInstance.prototype, "damageType", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
ApiPropertyOptional({ description: "Target to fulfill challenge" }),
|
|
79
|
+
IsOptional(),
|
|
80
|
+
IsString(),
|
|
81
|
+
__decorateMetadata("design:type", String)
|
|
82
|
+
], ChallengeInstance.prototype, "target", void 0);
|
|
45
83
|
//#endregion
|
|
46
84
|
export { ChallengeInstance };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as ConclaveChallenge, q as RawChallenge } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { ConclaveChallenge, RawChallenge };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
4
|
+
import { IsBoolean, IsInt, IsOptional, IsString, Min } from "class-validator";
|
|
2
5
|
import { conclaveCategory, conclaveChallenge, conclaveMode, fromNow, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
3
6
|
//#region lib/models/ConclaveChallenge.ts
|
|
4
7
|
/**
|
|
@@ -73,5 +76,55 @@ var ConclaveChallenge = class extends WorldStateObject {
|
|
|
73
76
|
return timeDeltaToString(fromNow(this.expiry));
|
|
74
77
|
}
|
|
75
78
|
};
|
|
79
|
+
__decorate([
|
|
80
|
+
ApiProperty({ description: "The number of times that the challenge's objective needs to be completed" }),
|
|
81
|
+
IsInt(),
|
|
82
|
+
Min(0),
|
|
83
|
+
__decorateMetadata("design:type", Number)
|
|
84
|
+
], ConclaveChallenge.prototype, "amount", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
ApiProperty({ description: "The PVP mode that the challenge must be completed in" }),
|
|
87
|
+
IsString(),
|
|
88
|
+
__decorateMetadata("design:type", String)
|
|
89
|
+
], ConclaveChallenge.prototype, "mode", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
ApiProperty({ description: "The challenge's category (daily, weekly...)" }),
|
|
92
|
+
IsString(),
|
|
93
|
+
__decorateMetadata("design:type", String)
|
|
94
|
+
], ConclaveChallenge.prototype, "category", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
ApiProperty({ description: "The challenge category unlocalized" }),
|
|
97
|
+
IsString(),
|
|
98
|
+
__decorateMetadata("design:type", String)
|
|
99
|
+
], ConclaveChallenge.prototype, "categoryKey", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
ApiPropertyOptional({ description: "The challenge's description text" }),
|
|
102
|
+
IsOptional(),
|
|
103
|
+
IsString(),
|
|
104
|
+
__decorateMetadata("design:type", String)
|
|
105
|
+
], ConclaveChallenge.prototype, "description", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
ApiPropertyOptional({ description: "Title of the challenge" }),
|
|
108
|
+
IsOptional(),
|
|
109
|
+
IsString(),
|
|
110
|
+
__decorateMetadata("design:type", String)
|
|
111
|
+
], ConclaveChallenge.prototype, "title", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
ApiPropertyOptional({ description: "Standing granted by completing challenge" }),
|
|
114
|
+
IsOptional(),
|
|
115
|
+
IsInt(),
|
|
116
|
+
Min(0),
|
|
117
|
+
__decorateMetadata("design:type", Number)
|
|
118
|
+
], ConclaveChallenge.prototype, "standing", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
ApiProperty({ description: "Whether or not this is a daily conclave challenge" }),
|
|
121
|
+
IsBoolean(),
|
|
122
|
+
__decorateMetadata("design:type", Boolean)
|
|
123
|
+
], ConclaveChallenge.prototype, "daily", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
ApiProperty({ description: "Whether or not this is the root challenge" }),
|
|
126
|
+
IsBoolean(),
|
|
127
|
+
__decorateMetadata("design:type", Boolean)
|
|
128
|
+
], ConclaveChallenge.prototype, "rootChallenge", void 0);
|
|
76
129
|
//#endregion
|
|
77
130
|
export { ConclaveChallenge };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ConstructionProgress } from "../../ConstructionProgress-
|
|
1
|
+
import { t as ConstructionProgress } from "../../ConstructionProgress-CffeDtau.mjs";
|
|
2
2
|
export { ConstructionProgress };
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
2
3
|
import { createHash } from "node:crypto";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
import { IsString } from "class-validator";
|
|
3
6
|
//#region lib/models/ConstructionProgress.ts
|
|
4
7
|
/**
|
|
5
8
|
* Represents enemy construction progress
|
|
6
9
|
* @augments {WorldStateObject}
|
|
7
10
|
*/
|
|
8
11
|
var ConstructionProgress = class extends WorldStateObject {
|
|
12
|
+
/**
|
|
13
|
+
* Fomorian construction progress percentage
|
|
14
|
+
*/
|
|
9
15
|
fomorianProgress;
|
|
16
|
+
/**
|
|
17
|
+
* Razorback construction progress percentage
|
|
18
|
+
*/
|
|
10
19
|
razorbackProgress;
|
|
20
|
+
/**
|
|
21
|
+
* Unknown construction progress percentage
|
|
22
|
+
*/
|
|
11
23
|
unknownProgress;
|
|
12
24
|
/**
|
|
13
25
|
* @param data The construction data
|
|
@@ -19,5 +31,20 @@ var ConstructionProgress = class extends WorldStateObject {
|
|
|
19
31
|
this.unknownProgress = (data[2] ?? 0).toFixed(2);
|
|
20
32
|
}
|
|
21
33
|
};
|
|
34
|
+
__decorate([
|
|
35
|
+
ApiProperty({ description: "Fomorian construction progress percentage" }),
|
|
36
|
+
IsString(),
|
|
37
|
+
__decorateMetadata("design:type", String)
|
|
38
|
+
], ConstructionProgress.prototype, "fomorianProgress", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ApiProperty({ description: "Razorback construction progress percentage" }),
|
|
41
|
+
IsString(),
|
|
42
|
+
__decorateMetadata("design:type", String)
|
|
43
|
+
], ConstructionProgress.prototype, "razorbackProgress", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
ApiProperty({ description: "Unknown construction progress percentage" }),
|
|
46
|
+
IsString(),
|
|
47
|
+
__decorateMetadata("design:type", String)
|
|
48
|
+
], ConstructionProgress.prototype, "unknownProgress", void 0);
|
|
22
49
|
//#endregion
|
|
23
50
|
export { ConstructionProgress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as RawDailyDeal, W as DailyDeal } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { DailyDeal, RawDailyDeal };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
4
|
+
import { IsInt, IsNumber, IsString, Min } from "class-validator";
|
|
2
5
|
import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
3
6
|
//#region lib/models/DailyDeal.ts
|
|
4
7
|
/**
|
|
@@ -60,5 +63,50 @@ var DailyDeal = class extends WorldStateObject {
|
|
|
60
63
|
return timeDeltaToString(fromNow(this.expiry));
|
|
61
64
|
}
|
|
62
65
|
};
|
|
66
|
+
__decorate([
|
|
67
|
+
ApiProperty({ description: "Localized item name on sale" }),
|
|
68
|
+
IsString(),
|
|
69
|
+
__decorateMetadata("design:type", String)
|
|
70
|
+
], DailyDeal.prototype, "item", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
ApiProperty({ description: "Unique item identifier" }),
|
|
73
|
+
IsString(),
|
|
74
|
+
__decorateMetadata("design:type", String)
|
|
75
|
+
], DailyDeal.prototype, "uniqueName", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
ApiProperty({ description: "Original price in platinum" }),
|
|
78
|
+
IsInt(),
|
|
79
|
+
Min(0),
|
|
80
|
+
__decorateMetadata("design:type", Number)
|
|
81
|
+
], DailyDeal.prototype, "originalPrice", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
ApiProperty({ description: "Sale price in platinum" }),
|
|
84
|
+
IsInt(),
|
|
85
|
+
Min(0),
|
|
86
|
+
__decorateMetadata("design:type", Number)
|
|
87
|
+
], DailyDeal.prototype, "salePrice", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
ApiProperty({ description: "Total items available" }),
|
|
90
|
+
IsInt(),
|
|
91
|
+
Min(0),
|
|
92
|
+
__decorateMetadata("design:type", Number)
|
|
93
|
+
], DailyDeal.prototype, "total", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
ApiProperty({ description: "Number of items sold" }),
|
|
96
|
+
IsInt(),
|
|
97
|
+
Min(0),
|
|
98
|
+
__decorateMetadata("design:type", Number)
|
|
99
|
+
], DailyDeal.prototype, "sold", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
ApiProperty({ description: "Unique deal identifier" }),
|
|
102
|
+
IsString(),
|
|
103
|
+
__decorateMetadata("design:type", String)
|
|
104
|
+
], DailyDeal.prototype, "id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
ApiProperty({ description: "Discount percentage" }),
|
|
107
|
+
IsNumber(),
|
|
108
|
+
Min(0),
|
|
109
|
+
__decorateMetadata("design:type", Number)
|
|
110
|
+
], DailyDeal.prototype, "discount", void 0);
|
|
63
111
|
//#endregion
|
|
64
112
|
export { DailyDeal };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as DefenderInfo, U as RawDarkSector, V as DarkSector } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { DarkSector, DefenderInfo, RawDarkSector };
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { Mission } from "./Mission.mjs";
|
|
2
3
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
4
|
import { DarkSectorBattle } from "./DarkSectorBattle.mjs";
|
|
5
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
6
|
+
import { Type } from "class-transformer";
|
|
7
|
+
import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, Min, ValidateNested } from "class-validator";
|
|
4
8
|
import { languageString, parseDate } from "warframe-worldstate-data/utilities";
|
|
5
9
|
//#region lib/models/DarkSector.ts
|
|
10
|
+
var _ref;
|
|
6
11
|
/**
|
|
7
12
|
* Represents a dark sector
|
|
8
13
|
* @augments {WorldStateObject}
|
|
@@ -60,13 +65,25 @@ var DarkSector = class extends WorldStateObject {
|
|
|
60
65
|
* The clan of the player who deployed the solar rail
|
|
61
66
|
*/
|
|
62
67
|
deployerClan;
|
|
68
|
+
/**
|
|
69
|
+
* Defender rail heal reserve
|
|
70
|
+
*/
|
|
63
71
|
defenderRailHealReserve;
|
|
72
|
+
/**
|
|
73
|
+
* Heal rate
|
|
74
|
+
*/
|
|
64
75
|
healRate;
|
|
76
|
+
/**
|
|
77
|
+
* Damage per mission
|
|
78
|
+
*/
|
|
65
79
|
damagePerMission;
|
|
66
80
|
/**
|
|
67
81
|
* The dark sector's mission
|
|
68
82
|
*/
|
|
69
83
|
mission;
|
|
84
|
+
/**
|
|
85
|
+
* Battle pay reserve
|
|
86
|
+
*/
|
|
70
87
|
battlePayReserve;
|
|
71
88
|
/**
|
|
72
89
|
* The battle pay per mission offered to players
|
|
@@ -132,5 +149,140 @@ var DarkSector = class extends WorldStateObject {
|
|
|
132
149
|
this.history = data.History ? data.History.map((b) => new DarkSectorBattle(b)) : [];
|
|
133
150
|
}
|
|
134
151
|
};
|
|
152
|
+
__decorate([
|
|
153
|
+
ApiProperty({ description: "The dark sector credit tax rate" }),
|
|
154
|
+
IsNumber(),
|
|
155
|
+
Min(0),
|
|
156
|
+
__decorateMetadata("design:type", Number)
|
|
157
|
+
], DarkSector.prototype, "creditTaxRate", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
ApiProperty({ description: "The dark sector credit tax rate for clan/alliance members" }),
|
|
160
|
+
IsNumber(),
|
|
161
|
+
Min(0),
|
|
162
|
+
__decorateMetadata("design:type", Number)
|
|
163
|
+
], DarkSector.prototype, "memberCreditsTaxRate", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
ApiProperty({ description: "The dark sector resource tax rate" }),
|
|
166
|
+
IsNumber(),
|
|
167
|
+
Min(0),
|
|
168
|
+
__decorateMetadata("design:type", Number)
|
|
169
|
+
], DarkSector.prototype, "itemsTaxRate", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
ApiProperty({ description: "The dark sector resource tax rate for clan/alliance members" }),
|
|
172
|
+
IsNumber(),
|
|
173
|
+
Min(0),
|
|
174
|
+
__decorateMetadata("design:type", Number)
|
|
175
|
+
], DarkSector.prototype, "memberItemsTaxRate", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
ApiProperty({ description: "Whether the dark sector holder is an alliance or not" }),
|
|
178
|
+
IsBoolean(),
|
|
179
|
+
__decorateMetadata("design:type", Boolean)
|
|
180
|
+
], DarkSector.prototype, "isAlliance", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
ApiProperty({ description: "The current holder of the dark sector" }),
|
|
183
|
+
IsString(),
|
|
184
|
+
__decorateMetadata("design:type", String)
|
|
185
|
+
], DarkSector.prototype, "defenderName", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
ApiProperty({ description: "The remaining health of the current solar rail" }),
|
|
188
|
+
IsNumber(),
|
|
189
|
+
Min(0),
|
|
190
|
+
__decorateMetadata("design:type", Number)
|
|
191
|
+
], DarkSector.prototype, "defenderPoolRemaining", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
ApiProperty({ description: "The maximum health of the solar rail" }),
|
|
194
|
+
IsNumber(),
|
|
195
|
+
Min(0),
|
|
196
|
+
__decorateMetadata("design:type", Number)
|
|
197
|
+
], DarkSector.prototype, "defenderMaxPool", void 0);
|
|
198
|
+
__decorate([ApiProperty({ description: "The date and time at which the rail was deployed" }), __decorateMetadata("design:type", Object)], DarkSector.prototype, "defenderDeployemntActivation", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
ApiProperty({ description: "The solar rail type" }),
|
|
201
|
+
IsString(),
|
|
202
|
+
__decorateMetadata("design:type", String)
|
|
203
|
+
], DarkSector.prototype, "railType", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
ApiProperty({ description: "The MOTD set by the dark sector holder" }),
|
|
206
|
+
IsString(),
|
|
207
|
+
__decorateMetadata("design:type", String)
|
|
208
|
+
], DarkSector.prototype, "defenderMOTD", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
ApiProperty({ description: "The player who deployed the solar rail" }),
|
|
211
|
+
IsString(),
|
|
212
|
+
__decorateMetadata("design:type", String)
|
|
213
|
+
], DarkSector.prototype, "deployerName", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
ApiProperty({ description: "The clan of the player who deployed the solar rail" }),
|
|
216
|
+
IsString(),
|
|
217
|
+
__decorateMetadata("design:type", String)
|
|
218
|
+
], DarkSector.prototype, "deployerClan", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
ApiProperty({ description: "Defender rail heal reserve" }),
|
|
221
|
+
IsNumber(),
|
|
222
|
+
Min(0),
|
|
223
|
+
__decorateMetadata("design:type", Number)
|
|
224
|
+
], DarkSector.prototype, "defenderRailHealReserve", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
ApiProperty({ description: "Heal rate" }),
|
|
227
|
+
IsNumber(),
|
|
228
|
+
__decorateMetadata("design:type", Number)
|
|
229
|
+
], DarkSector.prototype, "healRate", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
ApiProperty({ description: "Damage per mission" }),
|
|
232
|
+
IsNumber(),
|
|
233
|
+
__decorateMetadata("design:type", Number)
|
|
234
|
+
], DarkSector.prototype, "damagePerMission", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
ApiPropertyOptional({
|
|
237
|
+
description: "The dark sector's mission",
|
|
238
|
+
type: () => Mission
|
|
239
|
+
}),
|
|
240
|
+
IsOptional(),
|
|
241
|
+
ValidateNested(),
|
|
242
|
+
Type(() => Mission),
|
|
243
|
+
__decorateMetadata("design:type", typeof (_ref = typeof Mission !== "undefined" && Mission) === "function" ? _ref : Object)
|
|
244
|
+
], DarkSector.prototype, "mission", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
ApiProperty({ description: "Battle pay reserve" }),
|
|
247
|
+
IsNumber(),
|
|
248
|
+
Min(0),
|
|
249
|
+
__decorateMetadata("design:type", Number)
|
|
250
|
+
], DarkSector.prototype, "battlePayReserve", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
ApiProperty({ description: "The battle pay per mission offered to players" }),
|
|
253
|
+
IsNumber(),
|
|
254
|
+
Min(0),
|
|
255
|
+
__decorateMetadata("design:type", Number)
|
|
256
|
+
], DarkSector.prototype, "perMissionBattlePay", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
ApiProperty({ description: "The player who set the battle pay" }),
|
|
259
|
+
IsString(),
|
|
260
|
+
__decorateMetadata("design:type", String)
|
|
261
|
+
], DarkSector.prototype, "battlePaySetBy", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
ApiProperty({ description: "The clan of the player who set the battle pay" }),
|
|
264
|
+
IsString(),
|
|
265
|
+
__decorateMetadata("design:type", String)
|
|
266
|
+
], DarkSector.prototype, "battlePaySetByClan", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
ApiProperty({ description: "The player who changed the tax" }),
|
|
269
|
+
IsString(),
|
|
270
|
+
__decorateMetadata("design:type", String)
|
|
271
|
+
], DarkSector.prototype, "taxChangedBy", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
ApiProperty({ description: "The clan of the player who set the tax" }),
|
|
274
|
+
IsString(),
|
|
275
|
+
__decorateMetadata("design:type", String)
|
|
276
|
+
], DarkSector.prototype, "taxChangedByClan", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
ApiProperty({
|
|
279
|
+
description: "The history of the dark sector",
|
|
280
|
+
type: [DarkSectorBattle]
|
|
281
|
+
}),
|
|
282
|
+
IsArray(),
|
|
283
|
+
ValidateNested({ each: true }),
|
|
284
|
+
Type(() => DarkSectorBattle),
|
|
285
|
+
__decorateMetadata("design:type", Array)
|
|
286
|
+
], DarkSector.prototype, "history", void 0);
|
|
135
287
|
//#endregion
|
|
136
288
|
export { DarkSector };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RawDarkSectorBattle, t as DarkSectorBattle } from "../../DarkSectorBattle-
|
|
1
|
+
import { n as RawDarkSectorBattle, t as DarkSectorBattle } from "../../DarkSectorBattle-DwaJyGk3.mjs";
|
|
2
2
|
export { DarkSectorBattle, RawDarkSectorBattle };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
2
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
3
|
+
import { Type } from "class-transformer";
|
|
4
|
+
import { IsBoolean, IsDate, IsString } from "class-validator";
|
|
1
5
|
import { parseDate } from "warframe-worldstate-data/utilities";
|
|
2
6
|
//#region lib/models/DarkSectorBattle.ts
|
|
7
|
+
var _ref, _ref2;
|
|
3
8
|
/**
|
|
4
9
|
* Represents a battle over a dark sector
|
|
5
10
|
*/
|
|
@@ -45,5 +50,48 @@ var DarkSectorBattle = class {
|
|
|
45
50
|
this.end = parseDate(data.End);
|
|
46
51
|
}
|
|
47
52
|
};
|
|
53
|
+
__decorate([
|
|
54
|
+
ApiProperty({ description: "The defenders of the dark sector" }),
|
|
55
|
+
IsString(),
|
|
56
|
+
__decorateMetadata("design:type", String)
|
|
57
|
+
], DarkSectorBattle.prototype, "defender", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ApiProperty({ description: "Whether the defenders are an alliance or not" }),
|
|
60
|
+
IsBoolean(),
|
|
61
|
+
__decorateMetadata("design:type", Boolean)
|
|
62
|
+
], DarkSectorBattle.prototype, "defenderIsAlliance", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
ApiProperty({ description: "The attackers of the dark sector" }),
|
|
65
|
+
IsString(),
|
|
66
|
+
__decorateMetadata("design:type", String)
|
|
67
|
+
], DarkSectorBattle.prototype, "attacker", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
ApiProperty({ description: "Whether the attackers are an alliance or not" }),
|
|
70
|
+
IsBoolean(),
|
|
71
|
+
__decorateMetadata("design:type", Boolean)
|
|
72
|
+
], DarkSectorBattle.prototype, "attackerIsAlliance", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
ApiProperty({ description: "The winner of the battle" }),
|
|
75
|
+
IsString(),
|
|
76
|
+
__decorateMetadata("design:type", String)
|
|
77
|
+
], DarkSectorBattle.prototype, "winner", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
ApiProperty({
|
|
80
|
+
description: "The date and time at which the battle started",
|
|
81
|
+
type: Date
|
|
82
|
+
}),
|
|
83
|
+
IsDate(),
|
|
84
|
+
Type(() => Date),
|
|
85
|
+
__decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
|
|
86
|
+
], DarkSectorBattle.prototype, "start", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
ApiProperty({
|
|
89
|
+
description: "The date and time at which the battle ended",
|
|
90
|
+
type: Date
|
|
91
|
+
}),
|
|
92
|
+
IsDate(),
|
|
93
|
+
Type(() => Date),
|
|
94
|
+
__decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
|
|
95
|
+
], DarkSectorBattle.prototype, "end", void 0);
|
|
48
96
|
//#endregion
|
|
49
97
|
export { DarkSectorBattle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as DuviriCycle } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { DuviriCycle };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
|
+
import { DuviriChoice } from "../supporting/DuviriChoice.mjs";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
import { Type } from "class-transformer";
|
|
6
|
+
import { IsArray, IsString, ValidateNested } from "class-validator";
|
|
2
7
|
//#region lib/models/DuviriCycle.ts
|
|
3
8
|
const cycleTime = 36e3;
|
|
4
9
|
const stateTime = 7200;
|
|
@@ -51,5 +56,20 @@ var DuviriCycle = class extends WorldStateObject {
|
|
|
51
56
|
this.id = `duviriCycle${this.state}${this.expiry.getTime()}`;
|
|
52
57
|
}
|
|
53
58
|
};
|
|
59
|
+
__decorate([
|
|
60
|
+
ApiProperty({ description: "Current emotional state. One of 'sorrow', 'fear', 'joy', 'anger', 'envy'" }),
|
|
61
|
+
IsString(),
|
|
62
|
+
__decorateMetadata("design:type", String)
|
|
63
|
+
], DuviriCycle.prototype, "state", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
ApiProperty({
|
|
66
|
+
description: "Choice options for this Cycle",
|
|
67
|
+
type: [DuviriChoice]
|
|
68
|
+
}),
|
|
69
|
+
IsArray(),
|
|
70
|
+
ValidateNested({ each: true }),
|
|
71
|
+
Type(() => DuviriChoice),
|
|
72
|
+
__decorateMetadata("design:type", Array)
|
|
73
|
+
], DuviriCycle.prototype, "choices", void 0);
|
|
54
74
|
//#endregion
|
|
55
75
|
export { DuviriCycle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as EarthCycleType, t as EarthCycle } from "../../EarthCycle-
|
|
1
|
+
import { n as EarthCycleType, t as EarthCycle } from "../../EarthCycle-BsMMsVT4.mjs";
|
|
2
2
|
export { EarthCycle, EarthCycleType };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
4
|
+
import { IsBoolean, IsString } from "class-validator";
|
|
2
5
|
import { fromNow } from "warframe-worldstate-data/utilities";
|
|
3
6
|
//#region lib/models/EarthCycle.ts
|
|
4
7
|
/**
|
|
@@ -69,5 +72,23 @@ var EarthCycle = class extends WorldStateObject {
|
|
|
69
72
|
return fromNow(this.expiry) < 0;
|
|
70
73
|
}
|
|
71
74
|
};
|
|
75
|
+
__decorate([
|
|
76
|
+
ApiProperty({ description: "Whether it is currently day time on Earth" }),
|
|
77
|
+
IsBoolean(),
|
|
78
|
+
__decorateMetadata("design:type", Boolean)
|
|
79
|
+
], EarthCycle.prototype, "isDay", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
ApiProperty({
|
|
82
|
+
description: "Current cycle state",
|
|
83
|
+
enum: ["day", "night"]
|
|
84
|
+
}),
|
|
85
|
+
IsString(),
|
|
86
|
+
__decorateMetadata("design:type", String)
|
|
87
|
+
], EarthCycle.prototype, "state", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
ApiProperty({ description: "Time remaining until next cycle" }),
|
|
90
|
+
IsString(),
|
|
91
|
+
__decorateMetadata("design:type", String)
|
|
92
|
+
], EarthCycle.prototype, "timeLeft", void 0);
|
|
72
93
|
//#endregion
|
|
73
94
|
export { EarthCycle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as Fissure, z as RawFissure } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { Fissure, RawFissure };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
|
|
1
2
|
import { WorldStateObject } from "./WorldStateObject.mjs";
|
|
3
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
4
|
+
import { IsBoolean, IsString } from "class-validator";
|
|
2
5
|
import { fissureModifier, fissureTier, fromNow, missionType, node, nodeEnemy, nodeMissionType, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
|
|
3
6
|
//#region lib/models/Fissure.ts
|
|
4
7
|
/**
|
|
@@ -79,5 +82,51 @@ var Fissure = class extends WorldStateObject {
|
|
|
79
82
|
return timeDeltaToString(fromNow(this.expiry));
|
|
80
83
|
}
|
|
81
84
|
};
|
|
85
|
+
__decorate([
|
|
86
|
+
ApiProperty({ description: "Localized node name" }),
|
|
87
|
+
IsString(),
|
|
88
|
+
__decorateMetadata("design:type", String)
|
|
89
|
+
], Fissure.prototype, "node", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
ApiProperty({ description: "Localized mission type" }),
|
|
92
|
+
IsString(),
|
|
93
|
+
__decorateMetadata("design:type", String)
|
|
94
|
+
], Fissure.prototype, "missionType", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
ApiProperty({ description: "Unlocalized mission type key" }),
|
|
97
|
+
IsString(),
|
|
98
|
+
__decorateMetadata("design:type", String)
|
|
99
|
+
], Fissure.prototype, "missionTypeKey", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
ApiProperty({ description: "Localized enemy faction" }),
|
|
102
|
+
IsString(),
|
|
103
|
+
__decorateMetadata("design:type", String)
|
|
104
|
+
], Fissure.prototype, "enemy", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
ApiProperty({ description: "Unlocalized enemy faction key" }),
|
|
107
|
+
IsString(),
|
|
108
|
+
__decorateMetadata("design:type", String)
|
|
109
|
+
], Fissure.prototype, "enemyKey", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
ApiProperty({ description: "Unlocalized node key" }),
|
|
112
|
+
IsString(),
|
|
113
|
+
__decorateMetadata("design:type", String)
|
|
114
|
+
], Fissure.prototype, "nodeKey", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
ApiProperty({ description: "Fissure tier name (e.g., Lith, Meso, Neo, Axi, Requiem)" }),
|
|
117
|
+
IsString(),
|
|
118
|
+
__decorateMetadata("design:type", String)
|
|
119
|
+
], Fissure.prototype, "tier", void 0);
|
|
120
|
+
__decorate([ApiProperty({ description: "Fissure tier as number" }), __decorateMetadata("design:type", Object)], Fissure.prototype, "tierNum", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
ApiProperty({ description: "Whether this is a Railjack Void Storm" }),
|
|
123
|
+
IsBoolean(),
|
|
124
|
+
__decorateMetadata("design:type", Boolean)
|
|
125
|
+
], Fissure.prototype, "isStorm", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
ApiProperty({ description: "Whether this is a Steel Path fissure" }),
|
|
128
|
+
IsBoolean(),
|
|
129
|
+
__decorateMetadata("design:type", Boolean)
|
|
130
|
+
], Fissure.prototype, "isHard", void 0);
|
|
82
131
|
//#endregion
|
|
83
132
|
export { Fissure };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as FlashSale, L as RawFlashSale } from "../../index-BiofND5v.mjs";
|
|
2
2
|
export { FlashSale, RawFlashSale };
|