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
@@ -0,0 +1,1722 @@
1
+ import { t as Dependency } from "./Dependency-CtryMjKU.mjs";
2
+ import { t as ExternalMission } from "./ExternalMission-DaE_6ccj.mjs";
3
+ import { t as RewardType } from "./RewardTypes-DMW4dYrB.mjs";
4
+ import { n as Identifier, r as WorldStateObject, t as BaseContentObject } from "./WorldStateObject-BgeCocs9.mjs";
5
+ import { n as RawDarkSectorBattle, t as DarkSectorBattle } from "./DarkSectorBattle-DwaJyGk3.mjs";
6
+ import { t as Kinepage } from "./Kinepage-BDZm950n.mjs";
7
+ import { Locale } from "warframe-worldstate-data";
8
+ import { ContentTimestamp } from "warframe-worldstate-data/utilities";
9
+
10
+ //#region lib/supporting/DuviriChoice.d.ts
11
+ interface RawChoice extends BaseContentObject {
12
+ Category: 'EXC_NORMAL' | 'EXC_HARD';
13
+ Choices: string[];
14
+ }
15
+ /**
16
+ * Single category of duviri choices
17
+ */
18
+ declare class DuviriChoice {
19
+ /**
20
+ * Category of the choice. One of 'normal', 'hard'
21
+ */
22
+ category: string;
23
+ /**
24
+ * Raw category key from the API
25
+ */
26
+ categoryKey: string;
27
+ /**
28
+ * Array of available choices
29
+ */
30
+ choices: string[];
31
+ constructor(data: RawChoice);
32
+ }
33
+ //#endregion
34
+ //#region lib/models/Reward.d.ts
35
+ /**
36
+ * Returns the type of a given item
37
+ */
38
+ declare function getItemType(item: string, types?: RewardType[]): string;
39
+ /**
40
+ * Returns the full type of a given item
41
+ */
42
+ declare function getItemTypeFull(item: string, types?: RewardType[]): RewardType;
43
+ interface RawReward {
44
+ items: string[];
45
+ countedItems?: {
46
+ ItemType: string;
47
+ ItemCount: number;
48
+ }[];
49
+ credits?: number;
50
+ }
51
+ /**
52
+ * Represents a mission reward
53
+ */
54
+ declare class Reward {
55
+ /**
56
+ * The items being rewarded
57
+ */
58
+ items: string[];
59
+ /**
60
+ * The counted items being rewarded
61
+ */
62
+ countedItems: {
63
+ type: string;
64
+ key: string;
65
+ count: number;
66
+ }[];
67
+ /**
68
+ * The credits being rewarded
69
+ */
70
+ credits: number;
71
+ /**
72
+ * Thumbnail url
73
+ */
74
+ thumbnail: string;
75
+ /**
76
+ * Reward color
77
+ */
78
+ color: number;
79
+ /**
80
+ * @param data The mission data
81
+ * @param deps The dependencies object
82
+ * @param deps.locale Locale to use for translations
83
+ */
84
+ constructor(data: RawReward, {
85
+ locale
86
+ }?: Dependency);
87
+ /**
88
+ * The types of all items that are being rewarded
89
+ */
90
+ getTypes(): string[];
91
+ /**
92
+ * The types of all the items that are being rewarded
93
+ */
94
+ private getTypesFull;
95
+ }
96
+ //#endregion
97
+ //#region lib/models/Mission.d.ts
98
+ interface RawMission {
99
+ descText: string;
100
+ location: string;
101
+ node?: string;
102
+ missionType: string;
103
+ faction: string;
104
+ missionReward: RawReward;
105
+ minEnemyLevel: number;
106
+ maxEnemyLevel: number;
107
+ maxWaveNum?: number;
108
+ nightmare?: boolean;
109
+ archwingRequired?: boolean;
110
+ isSharkwingMission?: boolean;
111
+ levelOverride: string;
112
+ enemySpec: string;
113
+ advancedSpawners?: string[];
114
+ requiredItems?: string[];
115
+ consumeRequiredItems?: boolean;
116
+ vipAgent?: string;
117
+ leadersAlwaysAllowed?: boolean;
118
+ goalTag?: string;
119
+ levelAuras?: string[];
120
+ exclusiveWeapon: string;
121
+ }
122
+ /**
123
+ * Represents an in-game mission
124
+ */
125
+ declare class Mission {
126
+ /**
127
+ * The mission's description
128
+ */
129
+ description: string;
130
+ /**
131
+ * The node where the mission takes place
132
+ */
133
+ node: string;
134
+ /**
135
+ * Unlocalized node
136
+ */
137
+ nodeKey: string;
138
+ /**
139
+ * The mission's type
140
+ */
141
+ type: string;
142
+ /**
143
+ * The mission's type
144
+ */
145
+ typeKey: string;
146
+ /**
147
+ * The factions that the players must fight in the mission
148
+ */
149
+ faction: string;
150
+ /**
151
+ * The factions that the players must fight in the mission
152
+ */
153
+ factionKey: string;
154
+ /**
155
+ * The mission's reward
156
+ */
157
+ reward?: Reward;
158
+ /**
159
+ * The minimum level of the enemies in the mission
160
+ */
161
+ minEnemyLevel: number;
162
+ /**
163
+ * The maximum level of the enemies in the mission
164
+ */
165
+ maxEnemyLevel: number;
166
+ /**
167
+ * The number of waves that the players need to complete (undefined if not applicable)
168
+ */
169
+ maxWaveNum?: number;
170
+ /**
171
+ * The Mission's nightmare boolean
172
+ */
173
+ nightmare: boolean;
174
+ /**
175
+ * The Mission's archwing requirement
176
+ */
177
+ archwingRequired: boolean;
178
+ /**
179
+ * The Mission's sharkwing requirement
180
+ */
181
+ isSharkwing: boolean;
182
+ /**
183
+ * Override for the map on this mission
184
+ */
185
+ levelOverride: string;
186
+ /**
187
+ * Enemy specification for the mission
188
+ */
189
+ enemySpec: string;
190
+ /**
191
+ * Array of strings denoting extra spawners for a mission
192
+ */
193
+ advancedSpawners: string[];
194
+ /**
195
+ * Items required to enter the mission
196
+ */
197
+ requiredItems: string[];
198
+ /**
199
+ * Whether or not the required items are consumed
200
+ */
201
+ consumeRequiredItems?: boolean;
202
+ /**
203
+ * Target for the mission
204
+ */
205
+ target?: string;
206
+ /**
207
+ * Whether or not leaders are always allowed
208
+ */
209
+ leadersAlwaysAllowed?: boolean;
210
+ /**
211
+ * A tag for the event that this corresponds to
212
+ */
213
+ goalTag?: string;
214
+ /**
215
+ * Affectors for this mission
216
+ */
217
+ levelAuras: string[];
218
+ /**
219
+ * Only weapon allowed for the mission
220
+ */
221
+ exclusiveWeapon: string;
222
+ /**
223
+ * @param data The mission data
224
+ * @param locale Locale to use for translations
225
+ */
226
+ constructor(data: RawMission, {
227
+ locale
228
+ }?: Dependency);
229
+ }
230
+ //#endregion
231
+ //#region lib/models/Alert.d.ts
232
+ interface RawAlert extends BaseContentObject {
233
+ MissionInfo: RawMission;
234
+ Tag?: string;
235
+ }
236
+ /**
237
+ * Represents an alert
238
+ * @augments {WorldStateObject}
239
+ */
240
+ declare class Alert extends WorldStateObject {
241
+ /**
242
+ * The mission that the players have to complete
243
+ */
244
+ mission: Mission;
245
+ /**
246
+ * An array containing the types of all of the alert's rewards
247
+ */
248
+ rewardTypes: string[];
249
+ /**
250
+ * A tag that DE occasionally provides, such as `LotusGift`
251
+ */
252
+ tag?: string;
253
+ constructor(data: RawAlert, {
254
+ locale
255
+ }?: Dependency);
256
+ /**
257
+ * Alert's description
258
+ */
259
+ get description(): string;
260
+ /**
261
+ * Alert rewards
262
+ */
263
+ get reward(): Reward | undefined;
264
+ /**
265
+ * How much time is left before the alert expires
266
+ */
267
+ get eta(): string;
268
+ }
269
+ //#endregion
270
+ //#region lib/models/Archimedea.d.ts
271
+ /**
272
+ * @deprecated use Archimedea to reference temporal and deep
273
+ */
274
+ type DeepArchimedea = Archimedea;
275
+ interface RawArchimedea extends BaseContentObject {
276
+ Type: string;
277
+ Missions: RawArchimedeaMission[];
278
+ Variables: string[];
279
+ }
280
+ type Difficulty = {
281
+ type: string;
282
+ deviation: string;
283
+ risks: string[];
284
+ };
285
+ interface RawArchimedeaMission {
286
+ faction: string;
287
+ missionType: string;
288
+ difficulties: Difficulty[];
289
+ }
290
+ interface ArchimedeaMissionDifficultyRisk {
291
+ key: string;
292
+ name: string;
293
+ description: string;
294
+ isHard: boolean;
295
+ }
296
+ interface ArchimedeaMissionDifficulty {
297
+ key: string;
298
+ name: string;
299
+ description: string;
300
+ }
301
+ /**
302
+ * An Archimedea mission with risk and deviations
303
+ */
304
+ declare class ArchimedeaMission {
305
+ faction: string;
306
+ factionKey: string;
307
+ missionType: string;
308
+ missionTypeKey: string;
309
+ deviation: ArchimedeaMissionDifficulty;
310
+ risks: ArchimedeaMissionDifficultyRisk[];
311
+ /**
312
+ * @param mission Challenge mission type
313
+ * @param locale Locale for translation
314
+ */
315
+ constructor(mission: RawArchimedeaMission, locale: Locale);
316
+ }
317
+ declare class Archimedea extends WorldStateObject {
318
+ /**
319
+ * MD5 generated ID
320
+ */
321
+ id: string;
322
+ /**
323
+ * Archimedea type
324
+ */
325
+ type: string;
326
+ /**
327
+ * Archimedea type untranslated
328
+ */
329
+ typeKey: string;
330
+ /**
331
+ * Missions along with deviations and risks
332
+ */
333
+ missions: ArchimedeaMission[];
334
+ /**
335
+ * Modifiers applied to the player
336
+ */
337
+ personalModifiers: {
338
+ key: string;
339
+ name: string;
340
+ description: string;
341
+ }[];
342
+ /**
343
+ * @param data Data to parse
344
+ * @param locale Locale to translate to
345
+ */
346
+ constructor(data: RawArchimedea, {
347
+ locale
348
+ }?: Dependency);
349
+ }
350
+ //#endregion
351
+ //#region lib/models/ChallengeInstance.d.ts
352
+ interface RawChallengeInstance {
353
+ Type: string;
354
+ MinimumEnemyLevel: string;
355
+ RequiredCount: string;
356
+ ProgressIndicatorFreq: string;
357
+ DamageType?: string;
358
+ VictimType?: string[];
359
+ Script?: {
360
+ _faction: string;
361
+ };
362
+ }
363
+ /**
364
+ * Describes a world challenge instance
365
+ */
366
+ declare class ChallengeInstance {
367
+ /**
368
+ * Type of challenge
369
+ */
370
+ type: string;
371
+ /**
372
+ * Minimum enemy level to fulfill challenge
373
+ */
374
+ minEnemyLevel: number;
375
+ /**
376
+ * Required number of units to complete challenge
377
+ */
378
+ requiredAmount: number;
379
+ /**
380
+ * Waypoint for amount of units between progression updates
381
+ */
382
+ progressAmount: number;
383
+ /**
384
+ * Required damage type
385
+ */
386
+ damageType?: string;
387
+ /**
388
+ * Target to fulfill challenge
389
+ */
390
+ target?: string;
391
+ /**
392
+ * @param data The challenge instance data
393
+ * @param deps The dependencies object
394
+ * @param deps.locale Locale to use for translations
395
+ */
396
+ constructor(data: RawChallengeInstance, {
397
+ locale
398
+ }?: Dependency);
399
+ }
400
+ //#endregion
401
+ //#region lib/models/ConclaveChallenge.d.ts
402
+ interface RawChallenge extends BaseContentObject {
403
+ endDate: ContentTimestamp;
404
+ startDate: ContentTimestamp;
405
+ params: {
406
+ n: string;
407
+ v: number;
408
+ }[];
409
+ PVPMode: string;
410
+ Category: string;
411
+ challengeTypeRefID: string;
412
+ }
413
+ /**
414
+ * Represents a Conclave challenge
415
+ * @augments {WorldStateObject}
416
+ */
417
+ declare class ConclaveChallenge extends WorldStateObject {
418
+ /**
419
+ * The number of times that the challenge's objective needs to be completed
420
+ */
421
+ amount: number;
422
+ /**
423
+ * The PVP mode that the challenge must be completed in
424
+ */
425
+ mode: string;
426
+ /**
427
+ * The challenge's category (daily, weekly...)
428
+ */
429
+ category: string;
430
+ /**
431
+ * The challenge category unlocalized
432
+ */
433
+ categoryKey: string;
434
+ /**
435
+ * The challenge's description text
436
+ */
437
+ description?: string;
438
+ /**
439
+ * Title of the challenge
440
+ */
441
+ title?: string;
442
+ /**
443
+ * Standing granted by completing challenge.
444
+ */
445
+ standing?: number;
446
+ /**
447
+ * Whether or not this is a daily conclave challenge.
448
+ */
449
+ daily: boolean;
450
+ /**
451
+ * Whether or not this is the root challenge
452
+ */
453
+ rootChallenge: boolean;
454
+ /**
455
+ * @param {object} data The challenge data
456
+ * @param {object} deps The dependencies object
457
+ * @param {string} deps.locale Locale to use for translations
458
+ */
459
+ constructor(data: RawChallenge, {
460
+ locale
461
+ }?: Dependency);
462
+ /**
463
+ * Whether or not this is expired (at time of object creation)
464
+ */
465
+ get expired(): boolean;
466
+ /**
467
+ * ETA string (at time of object creation)
468
+ */
469
+ get eta(): string;
470
+ }
471
+ //#endregion
472
+ //#region lib/models/DailyDeal.d.ts
473
+ interface RawDailyDeal {
474
+ StoreItem: string;
475
+ Expiry: ContentTimestamp;
476
+ Activation: ContentTimestamp;
477
+ OriginalPrice: number;
478
+ SalePrice: number;
479
+ AmountTotal: number;
480
+ AmountSold: number;
481
+ Discount: number;
482
+ }
483
+ /**
484
+ * Represents a daily deal
485
+ */
486
+ declare class DailyDeal extends WorldStateObject {
487
+ /**
488
+ * The item that is being offered in the sale
489
+ */
490
+ item: string;
491
+ /**
492
+ * The uniqueName for the item on sale
493
+ */
494
+ uniqueName: string;
495
+ /**
496
+ * The item's original price
497
+ */
498
+ originalPrice: number;
499
+ /**
500
+ * The item's discounted price
501
+ */
502
+ salePrice: number;
503
+ /**
504
+ * The number of available items on sale
505
+ */
506
+ total: number;
507
+ /**
508
+ * The number of items that have already been sold
509
+ */
510
+ sold: number;
511
+ /**
512
+ * Unique identifier for this deal built from the end time and item
513
+ */
514
+ id: string;
515
+ /**
516
+ * Percent discount
517
+ */
518
+ discount: number;
519
+ /**
520
+ * @param data The deal data
521
+ * @param deps The dependencies object
522
+ * @param deps.locale Locale to use for translations
523
+ */
524
+ constructor(data: RawDailyDeal, {
525
+ locale
526
+ }?: Dependency);
527
+ /**
528
+ * Get a string indicating how much time is left before the deal expires
529
+ */
530
+ get eta(): string;
531
+ }
532
+ //#endregion
533
+ //#region lib/models/DarkSector.d.ts
534
+ interface DefenderInfo {
535
+ CreditsTaxRate: number;
536
+ MemberCreditsTax: number;
537
+ ItemsTaxRate: number;
538
+ MemberItemsTaxRate: number;
539
+ IsAlliance: boolean;
540
+ Name: string;
541
+ StrengthRemaining: string;
542
+ MaxStrength: string;
543
+ DeploymentActivationTime: ContentTimestamp;
544
+ RailType: string;
545
+ MOTD: string;
546
+ DeployerName: string;
547
+ DeployerClan: string;
548
+ RailHealReserve: number;
549
+ healRate: string;
550
+ DamagePerMission: number;
551
+ MissionInfo?: RawMission;
552
+ BattlePayReserve: number;
553
+ MissionBattlePay: number;
554
+ BattlePaySetBy: string;
555
+ BattlePaySetByClan: string;
556
+ TaxLastChangedBy: string;
557
+ TaxLastChangedByClan: string;
558
+ }
559
+ interface RawDarkSector extends BaseContentObject {
560
+ DefenderInfo: DefenderInfo;
561
+ History: RawDarkSectorBattle[];
562
+ }
563
+ /**
564
+ * Represents a dark sector
565
+ * @augments {WorldStateObject}
566
+ */
567
+ declare class DarkSector extends WorldStateObject {
568
+ /**
569
+ * The dark sector credit tax rate
570
+ */
571
+ creditTaxRate: number;
572
+ /**
573
+ * The dark sector credit tax rate for clan/alliance members
574
+ */
575
+ memberCreditsTaxRate: number;
576
+ /**
577
+ * The dark sector resource tax rate
578
+ */
579
+ itemsTaxRate: number;
580
+ /**
581
+ * The dark sector resource tax rate for clan/alliance members
582
+ */
583
+ memberItemsTaxRate: number;
584
+ /**
585
+ * Whether the dark sector holder is an alliance or not
586
+ */
587
+ isAlliance: boolean;
588
+ /**
589
+ * The current holder of the dark sector
590
+ */
591
+ defenderName: string;
592
+ /**
593
+ * The remaining health of the current solar rail
594
+ */
595
+ defenderPoolRemaining: number;
596
+ /**
597
+ * The maximum health of the solar rail
598
+ */
599
+ defenderMaxPool: number;
600
+ /**
601
+ * The date and time at which the rail was deployed
602
+ */
603
+ defenderDeployemntActivation: number | Date;
604
+ /**
605
+ * The solar rail type
606
+ */
607
+ railType: string;
608
+ /**
609
+ * The MOTD set by the dark sector holder
610
+ */
611
+ defenderMOTD: string;
612
+ /**
613
+ * The player who deployed the solar rail
614
+ */
615
+ deployerName: string;
616
+ /**
617
+ * The clan of the player who deployed the solar rail
618
+ */
619
+ deployerClan: string;
620
+ /**
621
+ * Defender rail heal reserve
622
+ */
623
+ defenderRailHealReserve: number;
624
+ /**
625
+ * Heal rate
626
+ */
627
+ healRate: number;
628
+ /**
629
+ * Damage per mission
630
+ */
631
+ damagePerMission: number;
632
+ /**
633
+ * The dark sector's mission
634
+ */
635
+ mission?: Mission;
636
+ /**
637
+ * Battle pay reserve
638
+ */
639
+ battlePayReserve: number;
640
+ /**
641
+ * The battle pay per mission offered to players
642
+ * @type {number}
643
+ */
644
+ perMissionBattlePay: number;
645
+ /**
646
+ * The player who set the battle pay
647
+ * @type {string}
648
+ */
649
+ battlePaySetBy: string;
650
+ /**
651
+ * The clan of the player who set the battle pay
652
+ * @type {string}
653
+ */
654
+ battlePaySetByClan: string;
655
+ /**
656
+ * The player who changed the tax
657
+ * @type {string}
658
+ */
659
+ taxChangedBy: string;
660
+ /**
661
+ * The clan of the player who set the tax
662
+ * @type {string}
663
+ */
664
+ taxChangedByClan: string;
665
+ /**
666
+ * The history of the dark sector
667
+ * @type {Array.<DarkSectorBattle>}
668
+ */
669
+ history: DarkSectorBattle[];
670
+ /**
671
+ * @param {object} data The dark sector data
672
+ * @param {object} deps The dependencies object
673
+ * @param {string} deps.locale Locale to use for translations
674
+ */
675
+ constructor(data: RawDarkSector, {
676
+ locale
677
+ }?: Dependency);
678
+ }
679
+ //#endregion
680
+ //#region lib/models/DuviriCycle.d.ts
681
+ /**
682
+ * @typedef {WorldStateObject} DuviriCycle
683
+ * @augments {WorldStateObject}
684
+ */
685
+ declare class DuviriCycle extends WorldStateObject {
686
+ /**
687
+ * Current stage key
688
+ */
689
+ state: string;
690
+ /**
691
+ * Choice options for this Cycle
692
+ */
693
+ choices: DuviriChoice[];
694
+ /**
695
+ * @param duviriChoices The current circuit choices
696
+ */
697
+ constructor(duviriChoices: DuviriChoice[]);
698
+ }
699
+ //#endregion
700
+ //#region lib/models/Fissure.d.ts
701
+ interface RawFissure extends BaseContentObject {
702
+ Node: string;
703
+ MissionType: string;
704
+ Modifier: string;
705
+ ActiveMissionTier: string;
706
+ Activation: ContentTimestamp;
707
+ Expiry: ContentTimestamp;
708
+ Hard?: boolean;
709
+ }
710
+ /**
711
+ * Represents a fissure mission
712
+ * @augments {WorldStateObject}
713
+ */
714
+ declare class Fissure extends WorldStateObject {
715
+ /**
716
+ * The node where the fissure has appeared
717
+ */
718
+ node: string;
719
+ /**
720
+ * The fissure mission type
721
+ */
722
+ missionType: string;
723
+ /**
724
+ * The fissure mission type key
725
+ */
726
+ missionTypeKey: string;
727
+ /**
728
+ * The faction controlling the node where the fissure has appeared
729
+ */
730
+ enemy: string;
731
+ /**
732
+ * Faction enum for the faction controlling the node where the fissure has appeared
733
+ */
734
+ enemyKey: string;
735
+ /**
736
+ * The node key where the fissure has appeared
737
+ */
738
+ nodeKey: string;
739
+ /**
740
+ * The fissure's tier
741
+ */
742
+ tier: string;
743
+ /**
744
+ * The fissure's tier as a number
745
+ */
746
+ tierNum: string | number;
747
+ /**
748
+ * Whether this fissure corresponds to a RailJack Void Storm
749
+ */
750
+ isStorm: boolean;
751
+ /**
752
+ * Whether this fissure is a Steel Path fissure
753
+ */
754
+ isHard: boolean;
755
+ /**
756
+ * @param {object} data The fissure data
757
+ * @param {Dependency} deps The dependencies object
758
+ * @param {string} deps.locale Locale to use for translations
759
+ */
760
+ constructor(data: RawFissure, {
761
+ locale
762
+ }?: Dependency);
763
+ /**
764
+ * Whether this is expired (at time of object creation)
765
+ */
766
+ get expired(): boolean;
767
+ /**
768
+ * ETA string (at time of object creation)
769
+ */
770
+ get eta(): string;
771
+ }
772
+ //#endregion
773
+ //#region lib/models/FlashSale.d.ts
774
+ interface RawFlashSale extends BaseContentObject {
775
+ TypeName: string;
776
+ EndDate: ContentTimestamp;
777
+ StartDate: ContentTimestamp;
778
+ Discount: number;
779
+ RegularOverride: number;
780
+ PremiumOverride: number;
781
+ ShowInMarket: boolean;
782
+ Featured: boolean;
783
+ Popular: boolean;
784
+ }
785
+ /**
786
+ * Represents a flash sale
787
+ */
788
+ declare class FlashSale extends WorldStateObject {
789
+ /**
790
+ * The item being offered in the flash sale
791
+ */
792
+ item: string;
793
+ /**
794
+ * The item's discount percentage
795
+ */
796
+ discount: number;
797
+ /**
798
+ * The item's discounted credit price
799
+ */
800
+ regularOverride: number;
801
+ /**
802
+ * The item's discounted platinum price
803
+ */
804
+ premiumOverride: number;
805
+ /**
806
+ * Whether this item is show in the in-game market
807
+ */
808
+ isShownInMarket: boolean;
809
+ /**
810
+ * Whether this item is featured in the in-game market
811
+ */
812
+ isFeatured: boolean;
813
+ /**
814
+ * Whether this item is marked as popular in the in-game market
815
+ */
816
+ isPopular: boolean;
817
+ /**
818
+ * Unique identifier for this sale built from the end time and reward
819
+ */
820
+ id: string;
821
+ /**
822
+ * @param {object} data The flash sale data
823
+ * @param {Dependency} deps The dependencies object
824
+ * @param {string} deps.locale Locale to use for translations
825
+ */
826
+ constructor(data: RawFlashSale, {
827
+ locale
828
+ }?: Dependency);
829
+ /**
830
+ * ETA string (at time of object creation)
831
+ */
832
+ get eta(): string;
833
+ /**
834
+ * Whether or not this is expired (at time of object creation)
835
+ */
836
+ get expired(): boolean;
837
+ }
838
+ //#endregion
839
+ //#region lib/models/GlobalUpgrade.d.ts
840
+ interface RawGlobalUpgrade extends BaseContentObject {
841
+ Activation: ContentTimestamp;
842
+ Expiry: ContentTimestamp;
843
+ UpgradeType: string;
844
+ OperationType: string;
845
+ Value: number;
846
+ }
847
+ /**
848
+ * Represents an upgrade that applies to all players
849
+ */
850
+ declare class GlobalUpgrade extends WorldStateObject {
851
+ /**
852
+ * The effect of the upgrade
853
+ */
854
+ upgrade: string;
855
+ /**
856
+ * The operation type
857
+ */
858
+ operation: string;
859
+ /**
860
+ * Symbol for operation
861
+ */
862
+ operationSymbol: string;
863
+ /**
864
+ * The operation value
865
+ */
866
+ upgradeOperationValue: number;
867
+ /**
868
+ * @param {object} data The global upgrade data
869
+ * @param {object} deps The dependencies object
870
+ * @param {string} deps.locale Locale to use for translations
871
+ */
872
+ constructor(data: RawGlobalUpgrade, {
873
+ locale
874
+ }?: Dependency);
875
+ /**
876
+ * Plaintext description of upgrade
877
+ */
878
+ get desc(): string;
879
+ /**
880
+ * ETA string (at time of object creation)
881
+ */
882
+ get eta(): string;
883
+ /**
884
+ * Whether or not this is expired (at time of object creation)
885
+ */
886
+ get expired(): boolean;
887
+ }
888
+ //#endregion
889
+ //#region lib/models/Invasion.d.ts
890
+ interface RawInvasion extends BaseContentObject {
891
+ Node: string;
892
+ LocTag: string;
893
+ DefenderMissionInfo: {
894
+ faction: string;
895
+ };
896
+ AttackerReward: RawReward;
897
+ DefenderReward: RawReward;
898
+ AttackerMissionInfo: {
899
+ faction: string;
900
+ };
901
+ Activation: ContentTimestamp;
902
+ Count: number;
903
+ Goal: number;
904
+ Completed: boolean;
905
+ }
906
+ /**
907
+ * An invasion participant
908
+ */
909
+ interface InvasionParticipant {
910
+ /**
911
+ * Reward for supporting this participant in the invasion
912
+ */
913
+ reward?: Reward;
914
+ /**
915
+ * Faction of this participant (localized)
916
+ */
917
+ faction: string;
918
+ /**
919
+ * Faction of this participant (always English)
920
+ */
921
+ factionKey: string;
922
+ }
923
+ /**
924
+ * Represents an invasion
925
+ */
926
+ declare class Invasion extends WorldStateObject {
927
+ /**
928
+ * The node where the invasion is taking place
929
+ */
930
+ node: string;
931
+ /**
932
+ * The node key where the invasion is taking place
933
+ */
934
+ nodeKey: string;
935
+ /**
936
+ * The invasion's description
937
+ */
938
+ desc: string;
939
+ /**
940
+ * Invasion attacker
941
+ */
942
+ attacker: InvasionParticipant;
943
+ /**
944
+ * Invasion defender
945
+ */
946
+ defender: InvasionParticipant;
947
+ /**
948
+ * Whether this invasion is against the infestation
949
+ */
950
+ vsInfestation: boolean;
951
+ /**
952
+ * The signed count of completed runs. Supporting the attackers makes the count go up,
953
+ * supporting the defenders makes it go down
954
+ */
955
+ count: number;
956
+ /**
957
+ * The number of runs that one side needs to win
958
+ */
959
+ requiredRuns: number;
960
+ /**
961
+ * The invasion's completion percentage. Defenders win if it gets to 0
962
+ * Grineer vs. Corpus invasions start at 50, Infested invasions start at 100
963
+ */
964
+ completion: number;
965
+ /**
966
+ * Whether the invasion has finished
967
+ */
968
+ completed: boolean;
969
+ /**
970
+ * An array containing the types of all of the invasions's rewards
971
+ */
972
+ rewardTypes: string[];
973
+ /**
974
+ * @param {object} data The invasion data
975
+ * @param {Dependency} deps The dependencies object
976
+ * @param {string} deps.locale Locale to use for translations
977
+ */
978
+ constructor(data: RawInvasion, {
979
+ locale
980
+ }?: Dependency);
981
+ /**
982
+ * Whether or not the attackers are winning.
983
+ * This is always false when the infestation is attacking
984
+ */
985
+ get isAttackerWinning(): boolean;
986
+ /**
987
+ * ETA string (at time of object creation)
988
+ */
989
+ get eta(): string;
990
+ /**
991
+ * Get an estimation of how much time is left before the invasion ends in milliseconds
992
+ */
993
+ private getRemainingTime;
994
+ }
995
+ //#endregion
996
+ //#region lib/models/Kuva.d.ts
997
+ /**
998
+ * Stores and parses kuva data from https://10o.io/kuvalog.json
999
+ * @property {ExternalMission[]} kuva currently active kuva missions
1000
+ * @property {ExternalMission} arbitration current arbitration
1001
+ */
1002
+ declare class Kuva {
1003
+ kuva?: ExternalMission[];
1004
+ arbitration?: ExternalMission;
1005
+ constructor({
1006
+ kuvaData,
1007
+ locale,
1008
+ logger
1009
+ }: Dependency);
1010
+ }
1011
+ //#endregion
1012
+ //#region lib/models/SentientOutpost.d.ts
1013
+ /**
1014
+ * Mission typeDef
1015
+ */
1016
+ interface OutpostMission {
1017
+ node: string;
1018
+ faction: string;
1019
+ type: string;
1020
+ }
1021
+ /**
1022
+ * Represents a set of sentient outposts that are present
1023
+ * Parsed source is combined data from DE's worldstate and semlar.com/anomaly.json
1024
+ */
1025
+ declare class SentientOutpost {
1026
+ private readonly node;
1027
+ /**
1028
+ * Unique identifier
1029
+ */
1030
+ id: string;
1031
+ /**
1032
+ * Start time
1033
+ */
1034
+ activation: Date;
1035
+ /**
1036
+ * End time
1037
+ */
1038
+ expiry: Date;
1039
+ /**
1040
+ * Current Mission
1041
+ */
1042
+ mission?: OutpostMission;
1043
+ /**
1044
+ * Whether or not the object was active during creation
1045
+ */
1046
+ active: boolean;
1047
+ /**
1048
+ * @param sfn Sentient outpost node number
1049
+ * @param deps Dependencies
1050
+ */
1051
+ constructor(sfn: string | number | undefined, {
1052
+ locale,
1053
+ sentientData,
1054
+ logger
1055
+ }: Dependency);
1056
+ }
1057
+ //#endregion
1058
+ //#region lib/models/Simaris.d.ts
1059
+ /**
1060
+ * Simaris library info
1061
+ */
1062
+ type LibraryInfo = {
1063
+ LastCompletedTargetType: string;
1064
+ };
1065
+ /**
1066
+ * Contains information about sanctuary targets
1067
+ */
1068
+ declare class Simaris {
1069
+ /**
1070
+ * The sanctuary target
1071
+ */
1072
+ target: string;
1073
+ /**
1074
+ * Whether or not the target is currently active
1075
+ */
1076
+ isTargetActive: boolean;
1077
+ /**
1078
+ * @param data The sanctuary data
1079
+ * @param deps The dependencies object
1080
+ * @param deps.locale Locale to use for translations
1081
+ */
1082
+ constructor(data?: LibraryInfo, {
1083
+ locale
1084
+ }?: Dependency);
1085
+ /**
1086
+ * A string representation of the current sanctuary status
1087
+ */
1088
+ get asString(): string;
1089
+ }
1090
+ //#endregion
1091
+ //#region lib/models/SortieVariant.d.ts
1092
+ interface RawSortieVariant {
1093
+ missionType: string;
1094
+ modifierType: string;
1095
+ node: string;
1096
+ }
1097
+ /**
1098
+ * Represents a sortie variant
1099
+ * @class
1100
+ */
1101
+ declare class SortieVariant {
1102
+ /**
1103
+ * The variant's mission type
1104
+ */
1105
+ missionType: string;
1106
+ /**
1107
+ * The variant's mission type unlocalized
1108
+ */
1109
+ missionTypeKey: string;
1110
+ /**
1111
+ * The mission modifier
1112
+ */
1113
+ modifier: string;
1114
+ /**
1115
+ * The variant's modifier description
1116
+ */
1117
+ modifierDescription: string;
1118
+ /**
1119
+ * The node where the variant takes place
1120
+ */
1121
+ node: string;
1122
+ /**
1123
+ * The node where the variant takes place unlocalized
1124
+ */
1125
+ nodeKey: string;
1126
+ /**
1127
+ * Make the SortieVariant
1128
+ * @param data Sortie variant data
1129
+ * @param deps Dependencies
1130
+ * @param deps.locale Locale to use for translations
1131
+ */
1132
+ constructor(data: RawSortieVariant, {
1133
+ locale
1134
+ }?: Dependency);
1135
+ }
1136
+ //#endregion
1137
+ //#region lib/models/Sortie.d.ts
1138
+ interface RawSortie extends BaseContentObject {
1139
+ Reward: string;
1140
+ Variants?: RawSortieVariant[];
1141
+ Missions?: RawMission[];
1142
+ Boss: string;
1143
+ }
1144
+ /**
1145
+ * Represents a daily sortie
1146
+ * @augments {WorldStateObject}
1147
+ */
1148
+ declare class Sortie extends WorldStateObject {
1149
+ /**
1150
+ * The sortie's reward pool
1151
+ */
1152
+ rewardPool: string;
1153
+ /**
1154
+ * The sortie's variants
1155
+ */
1156
+ variants: SortieVariant[];
1157
+ /**
1158
+ * Archon hunt missions if sortie is an archon hunt
1159
+ */
1160
+ missions: Mission[];
1161
+ /**
1162
+ * The sortie's boss
1163
+ */
1164
+ boss: string;
1165
+ /**
1166
+ * The sortie's faction
1167
+ */
1168
+ faction: string;
1169
+ /**
1170
+ * The sortie's faction
1171
+ */
1172
+ factionKey: string;
1173
+ /**
1174
+ * @param data The data for all daily sorties
1175
+ * @param deps The dependencies object
1176
+ * @param deps.locale Locale to use for translations
1177
+ */
1178
+ constructor(data: RawSortie, {
1179
+ locale
1180
+ }?: Dependency);
1181
+ /**
1182
+ * ETA string (at time of object creation)
1183
+ */
1184
+ get eta(): string;
1185
+ /**
1186
+ * Whether this is expired (at time of object creation)
1187
+ */
1188
+ get expired(): boolean;
1189
+ }
1190
+ //#endregion
1191
+ //#region lib/models/SyndicateJob.d.ts
1192
+ interface BountyReward {
1193
+ item: string;
1194
+ rarity: string;
1195
+ chance: number;
1196
+ }
1197
+ interface RawSyndicateJob {
1198
+ rewards: string;
1199
+ isVault?: boolean;
1200
+ JobCurrentVersion?: Identifier;
1201
+ jobType?: string;
1202
+ locationTag?: string;
1203
+ minEnemyLevel: number;
1204
+ maxEnemyLevel: number;
1205
+ xpAmounts: number[];
1206
+ masteryReq?: number;
1207
+ }
1208
+ interface RewardDrop extends BountyReward {
1209
+ count: number;
1210
+ }
1211
+ /**
1212
+ * Represents a syndicate daily mission
1213
+ * @augments {WorldStateObject}
1214
+ */
1215
+ declare class SyndicateJob extends WorldStateObject {
1216
+ /**
1217
+ * Reward pool unique name
1218
+ */
1219
+ uniqueName: string;
1220
+ /**
1221
+ * Array of strings describing rewards
1222
+ */
1223
+ rewardPool: string[];
1224
+ /**
1225
+ * A structured version of the reward pool
1226
+ */
1227
+ rewardPoolDrops: RewardDrop[];
1228
+ /**
1229
+ * The type of job this is
1230
+ */
1231
+ type?: string;
1232
+ /**
1233
+ * Array of enemy levels
1234
+ */
1235
+ enemyLevels: number[];
1236
+ /**
1237
+ * Array of standing gains per stage of job
1238
+ */
1239
+ standingStages: number[];
1240
+ /**
1241
+ * Minimum mastery required to participate
1242
+ */
1243
+ minMR: number;
1244
+ /**
1245
+ * Whether or not this is a Vault job.
1246
+ * No indication for difference of normal vs arcana vaults.
1247
+ */
1248
+ isVault?: boolean;
1249
+ /**
1250
+ * Corresponding chamber. Nullable
1251
+ */
1252
+ locationTag?: string;
1253
+ /**
1254
+ * What time phase this bounty is bound to
1255
+ */
1256
+ timeBound: string | undefined;
1257
+ /**
1258
+ * Generate a job with async data (reward pool)
1259
+ * @param data The syndicate mission data
1260
+ * @param expiry The syndicate job expiration
1261
+ * @param deps The dependencies object
1262
+ * @returns The created SyndicateJob object with rewardPool
1263
+ */
1264
+ static build(data: RawSyndicateJob, expiry: Date, deps: Dependency): Promise<SyndicateJob>;
1265
+ /**
1266
+ * Construct a job without async data (reward pool)
1267
+ * @param data The syndicate mission data
1268
+ * @param expiry The syndicate job expiration
1269
+ * @param deps The dependencies object
1270
+ * @param deps.locale Locale to use for translations
1271
+ *
1272
+ * This DOES NOT populate the reward pool
1273
+ */
1274
+ constructor(data: RawSyndicateJob, expiry: Date, {
1275
+ locale
1276
+ }?: Dependency);
1277
+ }
1278
+ //#endregion
1279
+ //#region lib/models/SyndicateMission.d.ts
1280
+ interface RawSyndicateMission extends BaseContentObject {
1281
+ Tag: string;
1282
+ Nodes: string[];
1283
+ Jobs: RawSyndicateJob[];
1284
+ }
1285
+ /**
1286
+ * Represents a syndicate daily mission
1287
+ * @augments {WorldStateObject}
1288
+ */
1289
+ declare class SyndicateMission extends WorldStateObject {
1290
+ /**
1291
+ * The syndicate that is offering the mission
1292
+ * @type {string}
1293
+ */
1294
+ syndicate: string;
1295
+ /**
1296
+ * The syndicate that is offering the mission
1297
+ * @type {string}
1298
+ */
1299
+ syndicateKey: string;
1300
+ /**
1301
+ * The nodes on which the missions are taking place
1302
+ * @type {Array.<string>}
1303
+ */
1304
+ nodes: string[];
1305
+ /**
1306
+ * The jobs for this syndicate. Will normally be []
1307
+ * @type {Array.<SyndicateJob>}
1308
+ */
1309
+ jobs: SyndicateJob[];
1310
+ /**
1311
+ * Build a new SyndicateMission with async operations & data
1312
+ * @param data The syndicate mission data
1313
+ * @param deps The dependencies object
1314
+ * @param deps.locale Locale to use for translations
1315
+ * @returns SyndicateMission object w/ async resolution of jobs
1316
+ */
1317
+ static build(data: RawSyndicateMission, deps?: Dependency): Promise<SyndicateMission>;
1318
+ /**
1319
+ * @param data The syndicate mission data
1320
+ * @param deps The dependencies object
1321
+ * @param deps.locale Locale to use for translations
1322
+ */
1323
+ constructor(data: RawSyndicateMission, {
1324
+ locale
1325
+ }?: Dependency);
1326
+ /**
1327
+ * Time delta string from now to the expiry
1328
+ */
1329
+ get eta(): string;
1330
+ }
1331
+ //#endregion
1332
+ //#region lib/models/Tmp.d.ts
1333
+ interface InitialTmp {
1334
+ sfn: number;
1335
+ pgr: {
1336
+ [k: string]: string | number;
1337
+ };
1338
+ fbst?: {
1339
+ a: number;
1340
+ e: number;
1341
+ n: number;
1342
+ };
1343
+ QTCCFloofCount?: number;
1344
+ QTCCFloofLimit?: number;
1345
+ }
1346
+ declare class Tmp {
1347
+ sentientOutposts: SentientOutpost;
1348
+ kinepage: Kinepage;
1349
+ faceoffBonus?: {
1350
+ activation: Date;
1351
+ expiry: Date;
1352
+ next: Date;
1353
+ };
1354
+ questToConquerCancer?: {
1355
+ count: number;
1356
+ goal: number;
1357
+ };
1358
+ constructor(json: string, deps?: Dependency);
1359
+ }
1360
+ //#endregion
1361
+ //#region lib/models/VoidTraderItem.d.ts
1362
+ interface RawVoidTraderItem {
1363
+ ItemType: string;
1364
+ PrimePrice?: number;
1365
+ RegularPrice?: number;
1366
+ }
1367
+ /**
1368
+ * A void trader inventory item
1369
+ */
1370
+ declare class VoidTraderItem {
1371
+ uniqueName: string;
1372
+ /**
1373
+ * The name of the inventory item
1374
+ */
1375
+ item: string;
1376
+ /**
1377
+ * Ducat cost of the item
1378
+ */
1379
+ ducats: number;
1380
+ /**
1381
+ * Credit cost of the item
1382
+ */
1383
+ credits: number;
1384
+ /**
1385
+ * @param data The void trader item data
1386
+ * @param data.ItemType Worldstate Item i18n path
1387
+ * @param data.PrimePrice Ducat cost of the item
1388
+ * @param data.RegularPrice Credit price of the item
1389
+ * @param deps The dependencies object
1390
+ * @param deps.locale Locale to use for translations
1391
+ */
1392
+ constructor({
1393
+ ItemType,
1394
+ PrimePrice,
1395
+ RegularPrice
1396
+ }: RawVoidTraderItem, {
1397
+ locale
1398
+ }?: Dependency);
1399
+ }
1400
+ //#endregion
1401
+ //#region lib/models/VoidTraderSchedule.d.ts
1402
+ declare class VoidTraderSchedule {
1403
+ expiry: Date;
1404
+ item: string;
1405
+ constructor(data: {
1406
+ Expiry: ContentTimestamp;
1407
+ FeaturedItem: string;
1408
+ }, {
1409
+ locale
1410
+ }?: Dependency);
1411
+ }
1412
+ //#endregion
1413
+ //#region lib/models/VoidTrader.d.ts
1414
+ interface RawVoidTrader extends BaseContentObject {
1415
+ Character?: string;
1416
+ Node: string;
1417
+ Manifest: RawVoidTraderItem[];
1418
+ InitialStartDate: ContentTimestamp;
1419
+ Completed: boolean;
1420
+ ScheduleInfo: {
1421
+ Expiry: ContentTimestamp;
1422
+ FeaturedItem: string;
1423
+ }[];
1424
+ }
1425
+ /**
1426
+ * Represents a void trader
1427
+ * @augments {WorldStateObject}
1428
+ */
1429
+ declare class VoidTrader extends WorldStateObject {
1430
+ /**
1431
+ * The void trader's name
1432
+ */
1433
+ character: string;
1434
+ /**
1435
+ * The node at which the Void Trader appears
1436
+ */
1437
+ location: string;
1438
+ /**
1439
+ * The trader's inventory
1440
+ */
1441
+ inventory: VoidTraderItem[];
1442
+ /**
1443
+ * Pseudo Identifier for identifying changes in inventory
1444
+ */
1445
+ psId: string;
1446
+ /**
1447
+ * The initial start date
1448
+ */
1449
+ initialStart: Date;
1450
+ /**
1451
+ * Whether it's completed or not
1452
+ */
1453
+ completed: boolean;
1454
+ /**
1455
+ * Possible schedule
1456
+ */
1457
+ schedule: VoidTraderSchedule[];
1458
+ /**
1459
+ * @param data The trader data
1460
+ * @param deps The dependencies object
1461
+ * @param deps.locale Locale to use for translations
1462
+ * @param deps.character The trader name
1463
+ */
1464
+ constructor(data: RawVoidTrader, {
1465
+ locale,
1466
+ character
1467
+ }?: Dependency);
1468
+ /**
1469
+ * Whether the trader is active
1470
+ */
1471
+ get active(): boolean;
1472
+ /**
1473
+ * Time delta string from now to the start
1474
+ */
1475
+ get startString(): string;
1476
+ /**
1477
+ * Time delta string from now to the end
1478
+ */
1479
+ get endString(): string;
1480
+ }
1481
+ //#endregion
1482
+ //#region lib/models/WeeklyChallenge.d.ts
1483
+ interface RawWeeklyChallenge extends BaseContentObject {
1484
+ Challenges: RawChallengeInstance[];
1485
+ }
1486
+ /**
1487
+ * Represents a void trader
1488
+ * @augments {WorldStateObject}
1489
+ */
1490
+ declare class WeeklyChallenge extends WorldStateObject {
1491
+ /**
1492
+ * Array of weekly challenges
1493
+ */
1494
+ challenges: ChallengeInstance[];
1495
+ /**
1496
+ * @param data The Void trader data
1497
+ */
1498
+ constructor(data: RawWeeklyChallenge);
1499
+ }
1500
+ //#endregion
1501
+ //#region lib/models/WorldEvent.d.ts
1502
+ /**
1503
+ * Interim step for an event reward system.
1504
+ */
1505
+ interface InterimStep {
1506
+ goal: number;
1507
+ reward: Reward | undefined;
1508
+ winnerCount: number;
1509
+ message: object;
1510
+ }
1511
+ /**
1512
+ * Progress for one of multiple stages
1513
+ */
1514
+ interface ProgressStep {
1515
+ type: string;
1516
+ progressAmt: number;
1517
+ }
1518
+ interface InterimRewardMessage {
1519
+ sender: string;
1520
+ subject: string;
1521
+ message: string;
1522
+ senderIcon: string;
1523
+ attachments: string;
1524
+ }
1525
+ interface RawWorldEvent extends BaseContentObject {
1526
+ Goal: number;
1527
+ Count?: number;
1528
+ GoalInterim?: string;
1529
+ GoalInterim2?: string;
1530
+ Faction?: string;
1531
+ Desc: string;
1532
+ ToolTip?: string;
1533
+ Node?: string;
1534
+ ConcurrentNodes?: string[] | undefined;
1535
+ VictimNode?: string;
1536
+ Fomorian?: string;
1537
+ ScoreLocTag?: string;
1538
+ HealthPct?: number;
1539
+ JobPreviousVersion?: Identifier;
1540
+ Reward?: RawReward;
1541
+ InterimRewards?: RawReward[];
1542
+ InterimRewardMessages?: InterimRewardMessage[];
1543
+ InterimGoals: number[];
1544
+ _interimWinnerCounts?: number[];
1545
+ IsMultiProgress?: boolean;
1546
+ Types?: string[];
1547
+ MultiProgress?: string[];
1548
+ ShowTotalAtEOM?: boolean;
1549
+ Personal: boolean;
1550
+ Community?: boolean;
1551
+ RegionDrops?: string[];
1552
+ ArchwingDrops?: string[];
1553
+ Metadata?: string;
1554
+ CompletionBonus?: number[];
1555
+ ScoreVar: string;
1556
+ AltExpiry?: ContentTimestamp;
1557
+ AltActivation?: ContentTimestamp;
1558
+ NextAltExpiry?: ContentTimestamp;
1559
+ NextAltActivation?: ContentTimestamp;
1560
+ JobAffiliationTag?: string;
1561
+ Tag: string;
1562
+ Jobs?: RawSyndicateJob[];
1563
+ PreviousJobs?: RawSyndicateJob[];
1564
+ }
1565
+ /**
1566
+ * Represents an in-game special event
1567
+ * @augments {WorldStateObject}
1568
+ */
1569
+ declare class WorldEvent extends WorldStateObject {
1570
+ /**
1571
+ * Jobs associated with this event
1572
+ */
1573
+ jobs: SyndicateJob[];
1574
+ /**
1575
+ * Previous jobs associated with this event
1576
+ */
1577
+ previousJobs: SyndicateJob[];
1578
+ /**
1579
+ * The event's main score goal
1580
+ */
1581
+ maximumScore: number;
1582
+ /**
1583
+ * The current score on the event
1584
+ */
1585
+ currentScore: number;
1586
+ /**
1587
+ * The first intermediate score goal
1588
+ */
1589
+ smallInterval: number;
1590
+ /**
1591
+ * The second intermediate score goal
1592
+ */
1593
+ largeInterval: number;
1594
+ /**
1595
+ * The faction that the players must fight in the event
1596
+ */
1597
+ faction: string | undefined;
1598
+ /**
1599
+ * The description of the event
1600
+ */
1601
+ description: string;
1602
+ /**
1603
+ * Tooltip for the event
1604
+ */
1605
+ tooltip: string | undefined;
1606
+ /**
1607
+ * The node where the event takes place
1608
+ */
1609
+ node: string | undefined;
1610
+ /**
1611
+ * The other nodes where the event takes place
1612
+ */
1613
+ concurrentNodes: string[];
1614
+ /**
1615
+ * The victim node
1616
+ */
1617
+ victimNode: string | undefined;
1618
+ /**
1619
+ * The score description
1620
+ */
1621
+ scoreLocTag: string | undefined;
1622
+ /**
1623
+ * The event's rewards
1624
+ */
1625
+ rewards: Reward[];
1626
+ /**
1627
+ * Health remaining for the target
1628
+ */
1629
+ health: number | undefined;
1630
+ /**
1631
+ * Previous job id
1632
+ */
1633
+ previousId: string | undefined;
1634
+ /**
1635
+ * Array of steps
1636
+ */
1637
+ interimSteps: InterimStep[];
1638
+ /**
1639
+ * Progress Steps, if any are present
1640
+ */
1641
+ progressSteps: ProgressStep[];
1642
+ /**
1643
+ * Total of all MultiProgress
1644
+ */
1645
+ progressTotal?: number;
1646
+ /**
1647
+ * Whether to show the total score at the end of the mission
1648
+ */
1649
+ showTotalAtEndOfMission: boolean;
1650
+ /**
1651
+ * Whether the event is personal
1652
+ */
1653
+ isPersonal: boolean;
1654
+ /**
1655
+ * Whether the event is community
1656
+ */
1657
+ isCommunity: boolean;
1658
+ regionDrops: string[];
1659
+ /**
1660
+ * Archwing Drops in effect while this event is active
1661
+ */
1662
+ archwingDrops: string[];
1663
+ /**
1664
+ * Metadata provided by DE
1665
+ */
1666
+ metadata: object;
1667
+ /**
1668
+ * Bonuses given for completion
1669
+ */
1670
+ completionBonuses: number[];
1671
+ /**
1672
+ * Score variable name
1673
+ */
1674
+ scoreVar: string;
1675
+ /**
1676
+ * Alternative expiry date
1677
+ */
1678
+ altExpiry: Date;
1679
+ /**
1680
+ * Alternative activation date
1681
+ */
1682
+ altActivation: Date;
1683
+ /**
1684
+ * Next alternative cycle dates
1685
+ */
1686
+ nextAlt: {
1687
+ expiry: Date;
1688
+ activation: Date;
1689
+ };
1690
+ /**
1691
+ * Affiliated syndicate, if any
1692
+ */
1693
+ affiliatedWith?: string;
1694
+ /**
1695
+ * The event's tag
1696
+ */
1697
+ tag: string;
1698
+ /**
1699
+ * Victim identifier, if any
1700
+ */
1701
+ victim?: string;
1702
+ /**
1703
+ * Asynchronously build a new WorldEvent
1704
+ * @param data The event data
1705
+ * @param deps The dependencies object
1706
+ * @returns The created WorldEvent object
1707
+ */
1708
+ static build(data: RawWorldEvent, deps: Dependency): Promise<WorldEvent>;
1709
+ /**
1710
+ * @param data The event data
1711
+ * @param deps The dependencies object
1712
+ */
1713
+ constructor(data: RawWorldEvent, {
1714
+ locale
1715
+ }?: Dependency);
1716
+ /**
1717
+ * Whether the event has expired
1718
+ */
1719
+ get expired(): boolean;
1720
+ }
1721
+ //#endregion
1722
+ export { Difficulty as $, InvasionParticipant as A, DefenderInfo as B, SortieVariant as C, SentientOutpost as D, OutpostMission as E, RawFlashSale as F, RawChallenge as G, DailyDeal as H, Fissure as I, Archimedea as J, ChallengeInstance as K, RawFissure as L, GlobalUpgrade as M, RawGlobalUpgrade as N, Kuva as O, FlashSale as P, DeepArchimedea as Q, DuviriCycle as R, RawSortieVariant as S, Simaris as T, RawDailyDeal as U, RawDarkSector as V, ConclaveChallenge as W, ArchimedeaMissionDifficulty as X, ArchimedeaMission as Y, ArchimedeaMissionDifficultyRisk as Z, RawSyndicateJob as _, WorldEvent as a, RawMission as at, RawSortie as b, RawVoidTrader as c, getItemType as ct, RawVoidTraderItem as d, RawChoice as dt, RawArchimedea as et, VoidTraderItem as f, SyndicateMission as g, RawSyndicateMission as h, RawWorldEvent as i, Mission as it, RawInvasion as j, Invasion as k, VoidTrader as l, getItemTypeFull as lt, Tmp as m, InterimStep as n, Alert as nt, RawWeeklyChallenge as o, RawReward as ot, InitialTmp as p, RawChallengeInstance as q, ProgressStep as r, RawAlert as rt, WeeklyChallenge as s, Reward as st, InterimRewardMessage as t, RawArchimedeaMission as tt, VoidTraderSchedule as u, DuviriChoice as ut, RewardDrop as v, LibraryInfo as w, Sortie as x, SyndicateJob as y, DarkSector as z };