warframe-worldstate-parser 5.2.17 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/Calendar-C99Wr_NC.d.mts +78 -0
  2. package/dist/CambionCycle-CEVo0BPO.d.mts +28 -0
  3. package/dist/CetusCycle-sbJ_VYPO.d.mts +49 -0
  4. package/dist/ConstructionProgress-CffeDtau.d.mts +27 -0
  5. package/dist/DarkSectorBattle-DwaJyGk3.d.mts +53 -0
  6. package/dist/Dependency-CtryMjKU.d.mts +41 -0
  7. package/dist/EarthCycle-BsMMsVT4.d.mts +60 -0
  8. package/dist/ExternalMission-DaE_6ccj.d.mts +49 -0
  9. package/dist/FetchProxy-Bgoi37sM.d.mts +10 -0
  10. package/dist/ImgCdn-By4Qj9kk.d.mts +6 -0
  11. package/dist/Kinepage-BDZm950n.d.mts +22 -0
  12. package/dist/KuvaLogEntry-B0SaM7MX.d.mts +21 -0
  13. package/dist/MidrathCycle-UgLh7wgF.d.mts +25 -0
  14. package/dist/News-CmoQ_nEf.d.mts +101 -0
  15. package/dist/Nightwave-BBRJbyr8.d.mts +59 -0
  16. package/dist/NightwaveChallenge-C6J7ymli.d.mts +51 -0
  17. package/dist/PersistentEnemy-WkvIZ9Mx.d.mts +79 -0
  18. package/dist/RewardData-B5TstL-h.d.mts +11 -0
  19. package/dist/RewardTypes-DMW4dYrB.d.mts +34 -0
  20. package/dist/SteelPathOffering-K2Ji4d5c.d.mts +58 -0
  21. package/dist/VallisCycle-BTYgGev7.d.mts +30 -0
  22. package/dist/WorldStateObject-BgeCocs9.d.mts +48 -0
  23. package/dist/ZarimanCycle-D4YCSLmR.d.mts +45 -0
  24. package/dist/decorate-CltSo06_.mjs +14 -0
  25. package/dist/index-BK5W1mAn.d.mts +1722 -0
  26. package/dist/lib/WorldState.d.mts +16 -35
  27. package/dist/lib/WorldState.mjs +326 -3
  28. package/dist/lib/models/Alert.d.mts +1 -45
  29. package/dist/lib/models/Alert.mjs +30 -3
  30. package/dist/lib/models/Archimedea.d.mts +1 -86
  31. package/dist/lib/models/Archimedea.mjs +76 -3
  32. package/dist/lib/models/Calendar.d.mts +1 -77
  33. package/dist/lib/models/Calendar.mjs +1 -3
  34. package/dist/lib/models/CambionCycle.d.mts +1 -21
  35. package/dist/lib/models/CambionCycle.mjs +20 -3
  36. package/dist/lib/models/CetusCycle.d.mts +1 -48
  37. package/dist/lib/models/CetusCycle.mjs +27 -3
  38. package/dist/lib/models/ChallengeInstance.d.mts +1 -53
  39. package/dist/lib/models/ChallengeInstance.mjs +39 -3
  40. package/dist/lib/models/ConclaveChallenge.d.mts +1 -76
  41. package/dist/lib/models/ConclaveChallenge.mjs +54 -3
  42. package/dist/lib/models/ConstructionProgress.d.mts +1 -17
  43. package/dist/lib/models/ConstructionProgress.mjs +28 -3
  44. package/dist/lib/models/DailyDeal.d.mts +1 -66
  45. package/dist/lib/models/DailyDeal.mjs +49 -3
  46. package/dist/lib/models/DarkSector.d.mts +1 -142
  47. package/dist/lib/models/DarkSector.mjs +153 -3
  48. package/dist/lib/models/DarkSectorBattle.d.mts +1 -52
  49. package/dist/lib/models/DarkSectorBattle.mjs +49 -3
  50. package/dist/lib/models/DuviriCycle.d.mts +1 -23
  51. package/dist/lib/models/DuviriCycle.mjs +21 -3
  52. package/dist/lib/models/EarthCycle.d.mts +1 -59
  53. package/dist/lib/models/EarthCycle.mjs +22 -3
  54. package/dist/lib/models/Fissure.d.mts +1 -78
  55. package/dist/lib/models/Fissure.mjs +50 -3
  56. package/dist/lib/models/FlashSale.d.mts +1 -71
  57. package/dist/lib/models/FlashSale.mjs +47 -3
  58. package/dist/lib/models/GlobalUpgrade.d.mts +1 -55
  59. package/dist/lib/models/GlobalUpgrade.mjs +24 -3
  60. package/dist/lib/models/Invasion.d.mts +1 -113
  61. package/dist/lib/models/Invasion.mjs +69 -3
  62. package/dist/lib/models/Kinepage.d.mts +1 -21
  63. package/dist/lib/models/Kinepage.mjs +25 -2
  64. package/dist/lib/models/Kuva.d.mts +1 -20
  65. package/dist/lib/models/Kuva.mjs +26 -3
  66. package/dist/lib/models/MidrathCycle.d.mts +1 -24
  67. package/dist/lib/models/MidrathCycle.mjs +14 -3
  68. package/dist/lib/models/Mission.d.mts +1 -138
  69. package/dist/lib/models/Mission.mjs +151 -3
  70. package/dist/lib/models/News.d.mts +1 -100
  71. package/dist/lib/models/News.mjs +64 -4
  72. package/dist/lib/models/Nightwave.d.mts +1 -58
  73. package/dist/lib/models/Nightwave.mjs +51 -3
  74. package/dist/lib/models/NightwaveChallenge.d.mts +1 -50
  75. package/dist/lib/models/NightwaveChallenge.mjs +35 -3
  76. package/dist/lib/models/PersistentEnemy.d.mts +1 -78
  77. package/dist/lib/models/PersistentEnemy.mjs +63 -3
  78. package/dist/lib/models/Reward.d.mts +1 -67
  79. package/dist/lib/models/Reward.mjs +51 -3
  80. package/dist/lib/models/SentientOutpost.d.mts +1 -46
  81. package/dist/lib/models/SentientOutpost.mjs +45 -3
  82. package/dist/lib/models/Simaris.d.mts +1 -36
  83. package/dist/lib/models/Simaris.mjs +14 -3
  84. package/dist/lib/models/Sortie.d.mts +1 -60
  85. package/dist/lib/models/Sortie.mjs +45 -3
  86. package/dist/lib/models/SortieVariant.d.mts +1 -49
  87. package/dist/lib/models/SortieVariant.mjs +34 -3
  88. package/dist/lib/models/SteelPathOffering.d.mts +1 -36
  89. package/dist/lib/models/SteelPathOffering.mjs +84 -3
  90. package/dist/lib/models/SyndicateJob.d.mts +1 -92
  91. package/dist/lib/models/SyndicateJob.mjs +74 -3
  92. package/dist/lib/models/SyndicateMission.d.mts +1 -58
  93. package/dist/lib/models/SyndicateMission.mjs +34 -3
  94. package/dist/lib/models/Tmp.d.mts +1 -34
  95. package/dist/lib/models/Tmp.mjs +44 -3
  96. package/dist/lib/models/VallisCycle.d.mts +1 -29
  97. package/dist/lib/models/VallisCycle.mjs +14 -3
  98. package/dist/lib/models/VoidTrader.d.mts +1 -76
  99. package/dist/lib/models/VoidTrader.mjs +55 -3
  100. package/dist/lib/models/VoidTraderItem.d.mts +1 -43
  101. package/dist/lib/models/VoidTraderItem.mjs +26 -3
  102. package/dist/lib/models/VoidTraderSchedule.d.mts +1 -16
  103. package/dist/lib/models/VoidTraderSchedule.mjs +20 -3
  104. package/dist/lib/models/WeeklyChallenge.d.mts +1 -19
  105. package/dist/lib/models/WeeklyChallenge.mjs +18 -3
  106. package/dist/lib/models/WorldEvent.d.mts +1 -204
  107. package/dist/lib/models/WorldEvent.mjs +264 -3
  108. package/dist/lib/models/WorldStateObject.d.mts +1 -47
  109. package/dist/lib/models/WorldStateObject.mjs +29 -3
  110. package/dist/lib/models/ZarimanCycle.d.mts +1 -44
  111. package/dist/lib/models/ZarimanCycle.mjs +19 -3
  112. package/dist/lib/models/index.d.mts +17 -42
  113. package/dist/lib/models/index.mjs +1 -2
  114. package/dist/lib/supporting/Dependency.d.mts +1 -40
  115. package/dist/lib/supporting/Dependency.mjs +1 -1
  116. package/dist/lib/supporting/DuviriChoice.d.mts +1 -18
  117. package/dist/lib/supporting/DuviriChoice.mjs +32 -2
  118. package/dist/lib/supporting/ExternalMission.d.mts +1 -48
  119. package/dist/lib/supporting/ExternalMission.mjs +1 -1
  120. package/dist/lib/supporting/FetchProxy.d.mts +1 -9
  121. package/dist/lib/supporting/FetchProxy.mjs +1 -2
  122. package/dist/lib/supporting/ImgCdn.d.mts +1 -5
  123. package/dist/lib/supporting/ImgCdn.mjs +1 -2
  124. package/dist/lib/supporting/KuvaLogEntry.d.mts +1 -20
  125. package/dist/lib/supporting/KuvaLogEntry.mjs +1 -1
  126. package/dist/lib/supporting/RewardData.d.mts +1 -10
  127. package/dist/lib/supporting/RewardData.mjs +1 -2
  128. package/dist/lib/supporting/RewardTypes.d.mts +1 -33
  129. package/dist/lib/supporting/RewardTypes.mjs +1 -3
  130. package/dist/lib/supporting/index.d.mts +8 -8
  131. package/dist/lib/supporting/index.mjs +1 -2
  132. package/dist/main.d.mts +24 -52
  133. package/dist/main.mjs +1 -3
  134. package/package.json +7 -1
@@ -1,79 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
4
- import { ContentTimestamp } from "warframe-worldstate-data/utilities";
5
-
6
- //#region lib/models/Fissure.d.ts
7
- interface RawFissure extends BaseContentObject {
8
- Node: string;
9
- MissionType: string;
10
- Modifier: string;
11
- ActiveMissionTier: string;
12
- Activation: ContentTimestamp;
13
- Expiry: ContentTimestamp;
14
- Hard?: boolean;
15
- }
16
- /**
17
- * Represents a fissure mission
18
- * @augments {WorldStateObject}
19
- */
20
- declare class Fissure extends WorldStateObject {
21
- /**
22
- * The node where the fissure has appeared
23
- */
24
- node: string;
25
- /**
26
- * The fissure mission type
27
- */
28
- missionType: string;
29
- /**
30
- * The fissure mission type key
31
- */
32
- missionTypeKey: string;
33
- /**
34
- * The faction controlling the node where the fissure has appeared
35
- */
36
- enemy: string;
37
- /**
38
- * Faction enum for the faction controlling the node where the fissure has appeared
39
- */
40
- enemyKey: string;
41
- /**
42
- * The node key where the fissure has appeared
43
- */
44
- nodeKey: string;
45
- /**
46
- * The fissure's tier
47
- */
48
- tier: string;
49
- /**
50
- * The fissure's tier as a number
51
- */
52
- tierNum: string | number;
53
- /**
54
- * Whether this fissure corresponds to a RailJack Void Storm
55
- */
56
- isStorm: boolean;
57
- /**
58
- * Whether this fissure is a Steel Path fissure
59
- */
60
- isHard: boolean;
61
- /**
62
- * @param {object} data The fissure data
63
- * @param {Dependency} deps The dependencies object
64
- * @param {string} deps.locale Locale to use for translations
65
- */
66
- constructor(data: RawFissure, {
67
- locale
68
- }?: Dependency);
69
- /**
70
- * Whether this is expired (at time of object creation)
71
- */
72
- get expired(): boolean;
73
- /**
74
- * ETA string (at time of object creation)
75
- */
76
- get eta(): string;
77
- }
78
- //#endregion
1
+ import { I as Fissure, L as RawFissure } from "../../index-BK5W1mAn.mjs";
79
2
  export { Fissure, RawFissure };
@@ -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 { fissureModifier, fissureTier, fromNow, missionType, node, nodeEnemy, nodeMissionType, parseDate, timeDeltaToString } from "warframe-worldstate-data/utilities";
3
-
4
6
  //#region lib/models/Fissure.ts
5
7
  /**
6
8
  * Represents a fissure mission
@@ -80,6 +82,51 @@ var Fissure = class extends WorldStateObject {
80
82
  return timeDeltaToString(fromNow(this.expiry));
81
83
  }
82
84
  };
83
-
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);
84
131
  //#endregion
85
- export { Fissure };
132
+ export { Fissure };
@@ -1,72 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
4
- import { ContentTimestamp } from "warframe-worldstate-data/utilities";
5
-
6
- //#region lib/models/FlashSale.d.ts
7
- interface RawFlashSale extends BaseContentObject {
8
- TypeName: string;
9
- EndDate: ContentTimestamp;
10
- StartDate: ContentTimestamp;
11
- Discount: number;
12
- RegularOverride: number;
13
- PremiumOverride: number;
14
- ShowInMarket: boolean;
15
- Featured: boolean;
16
- Popular: boolean;
17
- }
18
- /**
19
- * Represents a flash sale
20
- */
21
- declare class FlashSale extends WorldStateObject {
22
- /**
23
- * The item being offered in the flash sale
24
- */
25
- item: string;
26
- /**
27
- * The item's discount percentage
28
- */
29
- discount: number;
30
- /**
31
- * The item's discounted credit price
32
- */
33
- regularOverride: number;
34
- /**
35
- * The item's discounted platinum price
36
- */
37
- premiumOverride: number;
38
- /**
39
- * Whether this item is show in the in-game market
40
- */
41
- isShownInMarket: boolean;
42
- /**
43
- * Whether this item is featured in the in-game market
44
- */
45
- isFeatured: boolean;
46
- /**
47
- * Whether this item is marked as popular in the in-game market
48
- */
49
- isPopular: boolean;
50
- /**
51
- * Unique identifier for this sale built from the end time and reward
52
- */
53
- id: string;
54
- /**
55
- * @param {object} data The flash sale data
56
- * @param {Dependency} deps The dependencies object
57
- * @param {string} deps.locale Locale to use for translations
58
- */
59
- constructor(data: RawFlashSale, {
60
- locale
61
- }?: Dependency);
62
- /**
63
- * ETA string (at time of object creation)
64
- */
65
- get eta(): string;
66
- /**
67
- * Whether or not this is expired (at time of object creation)
68
- */
69
- get expired(): boolean;
70
- }
71
- //#endregion
1
+ import { F as RawFlashSale, P as FlashSale } from "../../index-BK5W1mAn.mjs";
72
2
  export { FlashSale, RawFlashSale };
@@ -1,6 +1,8 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
1
2
  import { WorldStateObject } from "./WorldStateObject.mjs";
3
+ import { ApiProperty } from "@nestjs/swagger";
4
+ import { IsBoolean, IsInt, IsNumber, IsString, Min } from "class-validator";
2
5
  import { fromNow, languageString, timeDeltaToString } from "warframe-worldstate-data/utilities";
3
-
4
6
  //#region lib/models/FlashSale.ts
5
7
  /**
6
8
  * Represents a flash sale
@@ -70,6 +72,48 @@ var FlashSale = class extends WorldStateObject {
70
72
  return fromNow(this.expiry) < 0;
71
73
  }
72
74
  };
73
-
75
+ __decorate([
76
+ ApiProperty({ description: "The item being offered in the flash sale" }),
77
+ IsString(),
78
+ __decorateMetadata("design:type", String)
79
+ ], FlashSale.prototype, "item", void 0);
80
+ __decorate([
81
+ ApiProperty({ description: "The item's discount percentage" }),
82
+ IsNumber(),
83
+ Min(0),
84
+ __decorateMetadata("design:type", Number)
85
+ ], FlashSale.prototype, "discount", void 0);
86
+ __decorate([
87
+ ApiProperty({ description: "The item's discounted credit price" }),
88
+ IsInt(),
89
+ Min(0),
90
+ __decorateMetadata("design:type", Number)
91
+ ], FlashSale.prototype, "regularOverride", void 0);
92
+ __decorate([
93
+ ApiProperty({ description: "The item's discounted platinum price" }),
94
+ IsInt(),
95
+ Min(0),
96
+ __decorateMetadata("design:type", Number)
97
+ ], FlashSale.prototype, "premiumOverride", void 0);
98
+ __decorate([
99
+ ApiProperty({ description: "Whether this item is shown in the in-game market" }),
100
+ IsBoolean(),
101
+ __decorateMetadata("design:type", Boolean)
102
+ ], FlashSale.prototype, "isShownInMarket", void 0);
103
+ __decorate([
104
+ ApiProperty({ description: "Whether this item is featured in the in-game market" }),
105
+ IsBoolean(),
106
+ __decorateMetadata("design:type", Boolean)
107
+ ], FlashSale.prototype, "isFeatured", void 0);
108
+ __decorate([
109
+ ApiProperty({ description: "Whether this item is marked as popular in the in-game market" }),
110
+ IsBoolean(),
111
+ __decorateMetadata("design:type", Boolean)
112
+ ], FlashSale.prototype, "isPopular", void 0);
113
+ __decorate([
114
+ ApiProperty({ description: "Unique identifier for this sale built from the end time and reward" }),
115
+ IsString(),
116
+ __decorateMetadata("design:type", String)
117
+ ], FlashSale.prototype, "id", void 0);
74
118
  //#endregion
75
- export { FlashSale };
119
+ export { FlashSale };
@@ -1,56 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
4
- import { ContentTimestamp } from "warframe-worldstate-data/utilities";
5
-
6
- //#region lib/models/GlobalUpgrade.d.ts
7
- interface RawGlobalUpgrade extends BaseContentObject {
8
- Activation: ContentTimestamp;
9
- Expiry: ContentTimestamp;
10
- UpgradeType: string;
11
- OperationType: string;
12
- Value: number;
13
- }
14
- /**
15
- * Represents an upgrade that applies to all players
16
- */
17
- declare class GlobalUpgrade extends WorldStateObject {
18
- /**
19
- * The effect of the upgrade
20
- */
21
- upgrade: string;
22
- /**
23
- * The operation type
24
- */
25
- operation: string;
26
- /**
27
- * Symbol for operation
28
- */
29
- operationSymbol: string;
30
- /**
31
- * The operation value
32
- */
33
- upgradeOperationValue: number;
34
- /**
35
- * @param {object} data The global upgrade data
36
- * @param {object} deps The dependencies object
37
- * @param {string} deps.locale Locale to use for translations
38
- */
39
- constructor(data: RawGlobalUpgrade, {
40
- locale
41
- }?: Dependency);
42
- /**
43
- * Plaintext description of upgrade
44
- */
45
- get desc(): string;
46
- /**
47
- * ETA string (at time of object creation)
48
- */
49
- get eta(): string;
50
- /**
51
- * Whether or not this is expired (at time of object creation)
52
- */
53
- get expired(): boolean;
54
- }
55
- //#endregion
1
+ import { M as GlobalUpgrade, N as RawGlobalUpgrade } from "../../index-BK5W1mAn.mjs";
56
2
  export { GlobalUpgrade, RawGlobalUpgrade };
@@ -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 { IsNumber, IsString } from "class-validator";
2
5
  import { fromNow, operation, operationSymbol, timeDeltaToString, upgrade } from "warframe-worldstate-data/utilities";
3
-
4
6
  //#region lib/models/GlobalUpgrade.ts
5
7
  /**
6
8
  * Represents an upgrade that applies to all players
@@ -53,6 +55,25 @@ var GlobalUpgrade = class extends WorldStateObject {
53
55
  return fromNow(this.expiry) < 0;
54
56
  }
55
57
  };
56
-
58
+ __decorate([
59
+ ApiProperty({ description: "The effect of the upgrade" }),
60
+ IsString(),
61
+ __decorateMetadata("design:type", String)
62
+ ], GlobalUpgrade.prototype, "upgrade", void 0);
63
+ __decorate([
64
+ ApiProperty({ description: "The operation type" }),
65
+ IsString(),
66
+ __decorateMetadata("design:type", String)
67
+ ], GlobalUpgrade.prototype, "operation", void 0);
68
+ __decorate([
69
+ ApiProperty({ description: "Symbol for operation" }),
70
+ IsString(),
71
+ __decorateMetadata("design:type", String)
72
+ ], GlobalUpgrade.prototype, "operationSymbol", void 0);
73
+ __decorate([
74
+ ApiProperty({ description: "The operation value" }),
75
+ IsNumber(),
76
+ __decorateMetadata("design:type", Number)
77
+ ], GlobalUpgrade.prototype, "upgradeOperationValue", void 0);
57
78
  //#endregion
58
- export { GlobalUpgrade };
79
+ export { GlobalUpgrade };
@@ -1,114 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import "../supporting/index.mjs";
3
- import { RawReward, Reward } from "./Reward.mjs";
4
- import { BaseContentObject, WorldStateObject } from "./WorldStateObject.mjs";
5
- import { ContentTimestamp } from "warframe-worldstate-data/utilities";
6
-
7
- //#region lib/models/Invasion.d.ts
8
- interface RawInvasion extends BaseContentObject {
9
- Node: string;
10
- LocTag: string;
11
- DefenderMissionInfo: {
12
- faction: string;
13
- };
14
- AttackerReward: RawReward;
15
- DefenderReward: RawReward;
16
- AttackerMissionInfo: {
17
- faction: string;
18
- };
19
- Activation: ContentTimestamp;
20
- Count: number;
21
- Goal: number;
22
- Completed: boolean;
23
- }
24
- /**
25
- * An invasion participant
26
- */
27
- interface InvasionParticipant {
28
- /**
29
- * Reward for supporting this participant in the invasion
30
- */
31
- reward?: Reward;
32
- /**
33
- * Faction of this participant (localized)
34
- */
35
- faction: string;
36
- /**
37
- * Faction of this participant (always English)
38
- */
39
- factionKey: string;
40
- }
41
- /**
42
- * Represents an invasion
43
- */
44
- declare class Invasion extends WorldStateObject {
45
- /**
46
- * The node where the invasion is taking place
47
- */
48
- node: string;
49
- /**
50
- * The node key where the invasion is taking place
51
- */
52
- nodeKey: string;
53
- /**
54
- * The invasion's description
55
- */
56
- desc: string;
57
- /**
58
- * Invasion attacker
59
- */
60
- attacker: InvasionParticipant;
61
- /**
62
- * Invasion defender
63
- */
64
- defender: InvasionParticipant;
65
- /**
66
- * Whether this invasion is against the infestation
67
- */
68
- vsInfestation: boolean;
69
- /**
70
- * The signed count of completed runs. Supporting the attackers makes the count go up,
71
- * supporting the defenders makes it go down
72
- */
73
- count: number;
74
- /**
75
- * The number of runs that one side needs to win
76
- */
77
- requiredRuns: number;
78
- /**
79
- * The invasion's completion percentage. Defenders win if it gets to 0
80
- * Grineer vs. Corpus invasions start at 50, Infested invasions start at 100
81
- */
82
- completion: number;
83
- /**
84
- * Whether the invasion has finished
85
- */
86
- completed: boolean;
87
- /**
88
- * An array containing the types of all of the invasions's rewards
89
- */
90
- rewardTypes: string[];
91
- /**
92
- * @param {object} data The invasion data
93
- * @param {Dependency} deps The dependencies object
94
- * @param {string} deps.locale Locale to use for translations
95
- */
96
- constructor(data: RawInvasion, {
97
- locale
98
- }?: Dependency);
99
- /**
100
- * Whether or not the attackers are winning.
101
- * This is always false when the infestation is attacking
102
- */
103
- get isAttackerWinning(): boolean;
104
- /**
105
- * ETA string (at time of object creation)
106
- */
107
- get eta(): string;
108
- /**
109
- * Get an estimation of how much time is left before the invasion ends in milliseconds
110
- */
111
- private getRemainingTime;
112
- }
113
- //#endregion
1
+ import { A as InvasionParticipant, j as RawInvasion, k as Invasion } from "../../index-BK5W1mAn.mjs";
114
2
  export { Invasion, InvasionParticipant, RawInvasion };
@@ -1,7 +1,9 @@
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";
4
+ import { ApiProperty } from "@nestjs/swagger";
5
+ import { IsArray, IsBoolean, IsInt, IsNumber, IsString, ValidateNested } from "class-validator";
3
6
  import { faction, languageString, node, timeDeltaToString, toNow } from "warframe-worldstate-data/utilities";
4
-
5
7
  //#region lib/models/Invasion.ts
6
8
  /**
7
9
  * Represents an invasion
@@ -103,6 +105,70 @@ var Invasion = class extends WorldStateObject {
103
105
  return (this.requiredRuns - completedRuns) * (elapsedMillis / completedRuns);
104
106
  }
105
107
  };
106
-
108
+ __decorate([
109
+ ApiProperty({ description: "Localized node name where invasion is occurring" }),
110
+ IsString(),
111
+ __decorateMetadata("design:type", String)
112
+ ], Invasion.prototype, "node", void 0);
113
+ __decorate([
114
+ ApiProperty({ description: "Unlocalized node key" }),
115
+ IsString(),
116
+ __decorateMetadata("design:type", String)
117
+ ], Invasion.prototype, "nodeKey", void 0);
118
+ __decorate([
119
+ ApiProperty({ description: "Invasion description" }),
120
+ IsString(),
121
+ __decorateMetadata("design:type", String)
122
+ ], Invasion.prototype, "desc", void 0);
123
+ __decorate([
124
+ ApiProperty({
125
+ description: "Attacker information",
126
+ type: "object"
127
+ }),
128
+ ValidateNested(),
129
+ __decorateMetadata("design:type", Object)
130
+ ], Invasion.prototype, "attacker", void 0);
131
+ __decorate([
132
+ ApiProperty({
133
+ description: "Defender information",
134
+ type: "object"
135
+ }),
136
+ ValidateNested(),
137
+ __decorateMetadata("design:type", Object)
138
+ ], Invasion.prototype, "defender", void 0);
139
+ __decorate([
140
+ ApiProperty({ description: "Whether this is an infestation invasion" }),
141
+ IsBoolean(),
142
+ __decorateMetadata("design:type", Boolean)
143
+ ], Invasion.prototype, "vsInfestation", void 0);
144
+ __decorate([
145
+ ApiProperty({ description: "Signed count of completed runs" }),
146
+ IsInt(),
147
+ __decorateMetadata("design:type", Number)
148
+ ], Invasion.prototype, "count", void 0);
149
+ __decorate([
150
+ ApiProperty({ description: "Number of runs required to win" }),
151
+ IsInt(),
152
+ __decorateMetadata("design:type", Number)
153
+ ], Invasion.prototype, "requiredRuns", void 0);
154
+ __decorate([
155
+ ApiProperty({ description: "Completion percentage (0-100)" }),
156
+ IsNumber(),
157
+ __decorateMetadata("design:type", Number)
158
+ ], Invasion.prototype, "completion", void 0);
159
+ __decorate([
160
+ ApiProperty({ description: "Whether the invasion is completed" }),
161
+ IsBoolean(),
162
+ __decorateMetadata("design:type", Boolean)
163
+ ], Invasion.prototype, "completed", void 0);
164
+ __decorate([
165
+ ApiProperty({
166
+ description: "Types of rewards offered",
167
+ type: [String]
168
+ }),
169
+ IsArray(),
170
+ IsString({ each: true }),
171
+ __decorateMetadata("design:type", Array)
172
+ ], Invasion.prototype, "rewardTypes", void 0);
107
173
  //#endregion
108
- export { Invasion };
174
+ export { Invasion };
@@ -1,22 +1,2 @@
1
- //#region lib/models/Kinepage.d.ts
2
- declare class Kinepage {
3
- /**
4
- * Timestamp of when the message appeared on
5
- */
6
- timestamp: Date;
7
- /**
8
- * The message itself
9
- */
10
- message: string;
11
- /**
12
- * Message translations
13
- */
14
- translations: {
15
- [k: string]: unknown;
16
- };
17
- constructor(data: {
18
- [k: string]: string | number;
19
- }, locale?: string);
20
- }
21
- //#endregion
1
+ import { t as Kinepage } from "../../Kinepage-BDZm950n.mjs";
22
2
  export { Kinepage };
@@ -1,4 +1,9 @@
1
+ import { n as __decorateMetadata, t as __decorate } from "../../decorate-CltSo06_.mjs";
2
+ import { ApiProperty } from "@nestjs/swagger";
3
+ import { Type } from "class-transformer";
4
+ import { IsDate, IsObject, IsString } from "class-validator";
1
5
  //#region lib/models/Kinepage.ts
6
+ var _ref;
2
7
  var Kinepage = class {
3
8
  /**
4
9
  * Timestamp of when the message appeared on
@@ -19,6 +24,24 @@ var Kinepage = class {
19
24
  this.translations = Object.fromEntries(Object.entries(translations).filter(([key]) => key !== locale));
20
25
  }
21
26
  };
22
-
27
+ __decorate([
28
+ ApiProperty({
29
+ description: "Timestamp of when the message appeared on",
30
+ type: Date
31
+ }),
32
+ IsDate(),
33
+ Type(() => Date),
34
+ __decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
35
+ ], Kinepage.prototype, "timestamp", void 0);
36
+ __decorate([
37
+ ApiProperty({ description: "The message itself" }),
38
+ IsString(),
39
+ __decorateMetadata("design:type", String)
40
+ ], Kinepage.prototype, "message", void 0);
41
+ __decorate([
42
+ ApiProperty({ description: "Message translations" }),
43
+ IsObject(),
44
+ __decorateMetadata("design:type", Object)
45
+ ], Kinepage.prototype, "translations", void 0);
23
46
  //#endregion
24
- export { Kinepage };
47
+ export { Kinepage };
@@ -1,21 +1,2 @@
1
- import { Dependency } from "../supporting/Dependency.mjs";
2
- import { ExternalMission } from "../supporting/ExternalMission.mjs";
3
- import "../supporting/index.mjs";
4
-
5
- //#region lib/models/Kuva.d.ts
6
- /**
7
- * Stores and parses kuva data from https://10o.io/kuvalog.json
8
- * @property {ExternalMission[]} kuva currently active kuva missions
9
- * @property {ExternalMission} arbitration current arbitration
10
- */
11
- declare class Kuva {
12
- kuva?: ExternalMission[];
13
- arbitration?: ExternalMission;
14
- constructor({
15
- kuvaData,
16
- locale,
17
- logger
18
- }: Dependency);
19
- }
20
- //#endregion
1
+ import { O as Kuva } from "../../index-BK5W1mAn.mjs";
21
2
  export { Kuva };