warframe-worldstate-parser 2.32.0 → 3.0.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/README.md +1 -0
- package/lib/WorldState.js +60 -94
- package/lib/models/Alert.js +18 -44
- package/lib/models/CambionCycle.js +8 -12
- package/lib/models/CetusCycle.js +34 -54
- package/lib/models/ChallengeInstance.js +11 -14
- package/lib/models/ConclaveChallenge.js +24 -44
- package/lib/models/ConstructionProgress.js +10 -22
- package/lib/models/DailyDeal.js +15 -34
- package/lib/models/DarkSector.js +14 -25
- package/lib/models/DarkSectorBattle.js +6 -8
- package/lib/models/DuviriCycle.js +9 -10
- package/lib/models/EarthCycle.js +36 -35
- package/lib/models/Fissure.js +36 -44
- package/lib/models/FlashSale.js +17 -37
- package/lib/models/GlobalUpgrade.js +23 -41
- package/lib/models/Invasion.js +37 -79
- package/lib/models/Kuva.js +20 -26
- package/lib/models/Mission.js +28 -38
- package/lib/models/News.js +34 -54
- package/lib/models/Nightwave.js +22 -48
- package/lib/models/NightwaveChallenge.js +15 -19
- package/lib/models/PersistentEnemy.js +21 -30
- package/lib/models/Reward.js +18 -20
- package/lib/models/SentientOutpost.js +11 -12
- package/lib/models/Simaris.js +9 -21
- package/lib/models/Sortie.js +36 -54
- package/lib/models/SortieVariant.js +23 -25
- package/lib/models/SteelPathOffering.js +26 -9
- package/lib/models/SyndicateJob.js +20 -30
- package/lib/models/SyndicateMission.js +22 -52
- package/lib/models/VallisCycle.js +37 -45
- package/lib/models/VoidTrader.js +35 -54
- package/lib/models/VoidTraderItem.js +5 -8
- package/lib/models/VoidTraderSchedule.js +7 -6
- package/lib/models/WeeklyChallenge.js +9 -17
- package/lib/models/WorldEvent.js +49 -74
- package/lib/models/WorldstateObject.js +23 -34
- package/lib/models/ZarimanCycle.js +34 -54
- package/lib/supporting/Dependency.js +2 -11
- package/lib/supporting/DuviriChoice.js +1 -5
- package/lib/supporting/ExternalMission.js +2 -6
- package/lib/supporting/MarkdownSettings.js +15 -19
- package/lib/supporting/RewardData.js +4 -6
- package/lib/supporting/RewardTypes.js +2 -4
- package/lib/utilities/integrity.js +11 -0
- package/lib/utilities/timeDate.js +16 -18
- package/lib/utilities/translation.js +188 -56
- package/main.js +2 -2
- package/package.json +4 -6
- package/types/lib/WorldState.d.ts +39 -28
- package/types/lib/models/Alert.d.ts +13 -24
- package/types/lib/models/CambionCycle.d.ts +5 -10
- package/types/lib/models/CetusCycle.d.ts +8 -26
- package/types/lib/models/ChallengeInstance.d.ts +7 -9
- package/types/lib/models/ConclaveChallenge.d.ts +11 -24
- package/types/lib/models/ConstructionProgress.d.ts +5 -16
- package/types/lib/models/DailyDeal.d.ts +7 -26
- package/types/lib/models/DarkSector.d.ts +11 -22
- package/types/lib/models/DarkSectorBattle.d.ts +3 -6
- package/types/lib/models/DuviriCycle.d.ts +5 -11
- package/types/lib/models/EarthCycle.d.ts +40 -17
- package/types/lib/models/Fissure.d.ts +10 -17
- package/types/lib/models/FlashSale.d.ts +8 -29
- package/types/lib/models/GlobalUpgrade.d.ts +8 -27
- package/types/lib/models/Invasion.d.ts +18 -53
- package/types/lib/models/Kuva.d.ts +10 -21
- package/types/lib/models/Mission.d.ts +11 -23
- package/types/lib/models/News.d.ts +18 -31
- package/types/lib/models/Nightwave.d.ts +12 -29
- package/types/lib/models/NightwaveChallenge.d.ts +10 -15
- package/types/lib/models/PersistentEnemy.d.ts +9 -20
- package/types/lib/models/Reward.d.ts +34 -18
- package/types/lib/models/SentientOutpost.d.ts +9 -13
- package/types/lib/models/Simaris.d.ts +6 -17
- package/types/lib/models/Sortie.d.ts +16 -25
- package/types/lib/models/SortieVariant.d.ts +13 -15
- package/types/lib/models/SteelPathOffering.d.ts +5 -8
- package/types/lib/models/SyndicateJob.d.ts +13 -14
- package/types/lib/models/SyndicateMission.d.ts +9 -22
- package/types/lib/models/VallisCycle.d.ts +28 -18
- package/types/lib/models/VoidTrader.d.ts +8 -21
- package/types/lib/models/VoidTraderItem.d.ts +4 -6
- package/types/lib/models/VoidTraderSchedule.d.ts +5 -8
- package/types/lib/models/WeeklyChallenge.d.ts +5 -14
- package/types/lib/models/WorldEvent.d.ts +38 -52
- package/types/lib/models/WorldstateObject.d.ts +46 -24
- package/types/lib/models/ZarimanCycle.d.ts +9 -27
- package/types/lib/supporting/Dependency.d.ts +2 -8
- package/types/lib/supporting/DuviriChoice.d.ts +1 -2
- package/types/lib/supporting/ExternalMission.d.ts +3 -7
- package/types/lib/supporting/MarkdownSettings.d.ts +29 -15
- package/types/lib/supporting/RewardData.d.ts +8 -2
- package/types/lib/supporting/RewardTypes.d.ts +2 -2
- package/types/lib/utilities/integrity.d.ts +1 -0
- package/types/lib/utilities/timeDate.d.ts +19 -12
- package/types/lib/utilities/translation.d.ts +188 -23
- package/types/main.d.ts +2 -4
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
export = PersistentEnemy;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a persistent enemy
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export default class PersistentEnemy extends WorldstateObject {
|
|
7
6
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {MarkdownSettings} deps.mdConfig The markdown settings
|
|
11
|
-
* @param {Translator} deps.translator The string translator
|
|
7
|
+
* @param {object} data The persistent enemy data
|
|
8
|
+
* @param {object} deps The dependencies object
|
|
12
9
|
* @param {string} deps.locale Locale to use for translations
|
|
13
10
|
*/
|
|
14
|
-
constructor(data:
|
|
15
|
-
mdConfig: MarkdownSettings;
|
|
16
|
-
translator: Translator;
|
|
11
|
+
constructor(data: object, { locale }?: {
|
|
17
12
|
locale: string;
|
|
18
13
|
});
|
|
19
|
-
/**
|
|
20
|
-
* The markdown settings
|
|
21
|
-
* @type {MarkdownSettings}
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
private mdConfig;
|
|
25
14
|
/**
|
|
26
15
|
* The enemy's type
|
|
27
16
|
* @type {string}
|
|
@@ -38,7 +27,7 @@ declare class PersistentEnemy extends WorldstateObject {
|
|
|
38
27
|
*/
|
|
39
28
|
rank: number;
|
|
40
29
|
/**
|
|
41
|
-
* The enemy's
|
|
30
|
+
* The enemy's remaining health percentage
|
|
42
31
|
* @type {number}
|
|
43
32
|
*/
|
|
44
33
|
healthPercent: number;
|
|
@@ -64,12 +53,12 @@ declare class PersistentEnemy extends WorldstateObject {
|
|
|
64
53
|
lastDiscoveredAt: string;
|
|
65
54
|
/**
|
|
66
55
|
* Whether or not the enemy is currently available
|
|
67
|
-
* @type {
|
|
56
|
+
* @type {boolean}
|
|
68
57
|
*/
|
|
69
58
|
isDiscovered: boolean;
|
|
70
59
|
/**
|
|
71
60
|
* Whether or not the enemy is using ticketing
|
|
72
|
-
* @type {
|
|
61
|
+
* @type {boolean}
|
|
73
62
|
*/
|
|
74
63
|
isUsingTicketing: boolean;
|
|
75
64
|
/**
|
|
@@ -78,4 +67,4 @@ declare class PersistentEnemy extends WorldstateObject {
|
|
|
78
67
|
*/
|
|
79
68
|
pid: string;
|
|
80
69
|
}
|
|
81
|
-
import WorldstateObject
|
|
70
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
@@ -1,18 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* An object describing a type of reward, including name, description,
|
|
3
|
+
* test function to verify type from a string, thumbnail url, and color
|
|
4
|
+
* @typedef {object} RewardType
|
|
5
|
+
* @property {string} name - Name of the reward type
|
|
6
|
+
* @property {string} description - Description of the reward type
|
|
7
|
+
* @property {string} test - Function for testing the return type against a string
|
|
8
|
+
* @property {string} thumbnail - Thumbnail url for this reward type
|
|
9
|
+
* @property {string} color - Summary color representing this reward type
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Returns the type of a given item
|
|
13
|
+
* @param {string} item The item whose type needs to be determined
|
|
14
|
+
* @param {Array.<RewardType>} [types] The possible types
|
|
15
|
+
* @returns {string} The type name
|
|
16
|
+
*/
|
|
17
|
+
export function getItemType(item: string, types?: Array<RewardType>): string;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the full type of a given item
|
|
20
|
+
* @param {string} item The item whose type needs to be determined
|
|
21
|
+
* @param {Array.<RewardType>} [types] The possible types
|
|
22
|
+
* @returns {RewardType} The type
|
|
23
|
+
*/
|
|
24
|
+
export function getItemTypeFull(item: string, types?: Array<RewardType>): RewardType;
|
|
2
25
|
/**
|
|
3
26
|
* Represents a mission reward
|
|
4
27
|
*/
|
|
5
|
-
|
|
28
|
+
export default class Reward {
|
|
6
29
|
/**
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {Translator} deps.translator The string translator
|
|
30
|
+
* @param {object} data The mission data
|
|
31
|
+
* @param {Dependency} deps The dependencies object
|
|
10
32
|
* @param {string} deps.locale Locale to use for translations
|
|
11
33
|
*/
|
|
12
|
-
constructor(data:
|
|
13
|
-
translator: Translator;
|
|
14
|
-
locale: string;
|
|
15
|
-
});
|
|
34
|
+
constructor(data: object, { locale }?: Dependency);
|
|
16
35
|
/**
|
|
17
36
|
* The items being rewarded
|
|
18
37
|
* @type {Array.<string>}
|
|
@@ -20,9 +39,9 @@ declare class Reward {
|
|
|
20
39
|
items: Array<string>;
|
|
21
40
|
/**
|
|
22
41
|
* The counted items being rewarded
|
|
23
|
-
* @type {Array.<
|
|
42
|
+
* @type {Array.<object>}
|
|
24
43
|
*/
|
|
25
|
-
countedItems: Array<
|
|
44
|
+
countedItems: Array<object>;
|
|
26
45
|
/**
|
|
27
46
|
* The credits being rewarded
|
|
28
47
|
* @type {number}
|
|
@@ -34,28 +53,25 @@ declare class Reward {
|
|
|
34
53
|
color: string | number;
|
|
35
54
|
/**
|
|
36
55
|
* The types of all items that are being rewarded
|
|
37
|
-
* @returns {Array.<string>}
|
|
56
|
+
* @returns {Array.<string>} types as array of string
|
|
38
57
|
*/
|
|
39
58
|
getTypes(): Array<string>;
|
|
40
59
|
/**
|
|
41
60
|
* The types of all the items that are being rewarded
|
|
42
|
-
* @returns {Array.<RewardType>}
|
|
61
|
+
* @returns {Array.<RewardType>} array of reward types
|
|
43
62
|
*/
|
|
44
63
|
getTypesFull(): Array<RewardType>;
|
|
45
64
|
/**
|
|
46
65
|
* The reward's string representation
|
|
47
|
-
* @returns {string}
|
|
66
|
+
* @returns {string} reward's string representation
|
|
48
67
|
*/
|
|
49
68
|
toString(): string;
|
|
50
69
|
}
|
|
51
|
-
declare namespace Reward {
|
|
52
|
-
export { RewardType };
|
|
53
|
-
}
|
|
54
70
|
/**
|
|
55
71
|
* An object describing a type of reward, including name, description,
|
|
56
72
|
* test function to verify type from a string, thumbnail url, and color
|
|
57
73
|
*/
|
|
58
|
-
type RewardType = {
|
|
74
|
+
export type RewardType = {
|
|
59
75
|
/**
|
|
60
76
|
* - Name of the reward type
|
|
61
77
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export = SentientOutpost;
|
|
2
1
|
/**
|
|
3
2
|
* Mission typeDef
|
|
4
|
-
* @typedef {
|
|
3
|
+
* @typedef {object} Mission
|
|
5
4
|
* @property {string} node Mission node name
|
|
6
5
|
* @property {string} enemy Node enemy
|
|
7
6
|
* @property {string} type Mission type of the node
|
|
@@ -14,35 +13,32 @@ export = SentientOutpost;
|
|
|
14
13
|
* @property {boolean} active Whether or not the mission is active
|
|
15
14
|
* @property {Date} activation When the mission became or becomes active
|
|
16
15
|
* @property {Date} expiry When the mission became or becomes inactive
|
|
17
|
-
* @property {
|
|
16
|
+
* @property {object} previous Estimation data for the last mission that was active.
|
|
18
17
|
* Could also be the current.
|
|
19
18
|
* @property {Date} previous.activation When the mission became or becomes active
|
|
20
19
|
* @property {Date} previous.expiry When the mission became or becomes inactive
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
constructor(data: any, {
|
|
24
|
-
translator: any;
|
|
21
|
+
export default class SentientOutpost {
|
|
22
|
+
constructor(data: any, { locale, sentientData, logger }: {
|
|
25
23
|
locale: any;
|
|
26
24
|
sentientData: any;
|
|
27
25
|
logger: any;
|
|
28
26
|
});
|
|
29
27
|
mission: {
|
|
30
|
-
node:
|
|
31
|
-
faction:
|
|
32
|
-
type:
|
|
28
|
+
node: string;
|
|
29
|
+
faction: string;
|
|
30
|
+
type: string;
|
|
33
31
|
};
|
|
34
32
|
active: boolean;
|
|
35
33
|
id: string;
|
|
36
34
|
activation: Date;
|
|
37
35
|
expiry: Date;
|
|
38
|
-
|
|
39
|
-
declare namespace SentientOutpost {
|
|
40
|
-
export { Mission };
|
|
36
|
+
#private;
|
|
41
37
|
}
|
|
42
38
|
/**
|
|
43
39
|
* Mission typeDef
|
|
44
40
|
*/
|
|
45
|
-
type Mission = {
|
|
41
|
+
export type Mission = {
|
|
46
42
|
/**
|
|
47
43
|
* Mission node name
|
|
48
44
|
*/
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
export = Simaris;
|
|
2
1
|
/**
|
|
3
2
|
* Contains information about sanctuary targets
|
|
4
3
|
*/
|
|
5
|
-
|
|
4
|
+
export default class Simaris {
|
|
6
5
|
/**
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {MarkdownSettings} deps.mdConfig The markdown settings
|
|
10
|
-
* @param {Translator} deps.translator The string translator
|
|
6
|
+
* @param {object} data The sanctuary data
|
|
7
|
+
* @param {object} deps The dependencies object
|
|
11
8
|
* @param {string} deps.locale Locale to use for translations
|
|
12
9
|
*/
|
|
13
|
-
constructor(data:
|
|
14
|
-
mdConfig: MarkdownSettings;
|
|
15
|
-
translator: Translator;
|
|
10
|
+
constructor(data: object, { locale }?: {
|
|
16
11
|
locale: string;
|
|
17
12
|
});
|
|
18
|
-
/**
|
|
19
|
-
* The markdown settings
|
|
20
|
-
* @type {MarkdownSettings}
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
private mdConfig;
|
|
24
13
|
/**
|
|
25
14
|
* The sanctuary target
|
|
26
15
|
* @type {string}
|
|
@@ -28,7 +17,7 @@ declare class Simaris {
|
|
|
28
17
|
target: string;
|
|
29
18
|
/**
|
|
30
19
|
* Whether or not the target is currently active
|
|
31
|
-
* @type {
|
|
20
|
+
* @type {boolean}
|
|
32
21
|
*/
|
|
33
22
|
isTargetActive: boolean;
|
|
34
23
|
/**
|
|
@@ -38,7 +27,7 @@ declare class Simaris {
|
|
|
38
27
|
asString: string;
|
|
39
28
|
/**
|
|
40
29
|
* Returns a string representation of the current sanctuary status
|
|
41
|
-
* @returns {string}
|
|
30
|
+
* @returns {string} a string representation of the current sanctuary status
|
|
42
31
|
*/
|
|
43
32
|
toString(): string;
|
|
44
33
|
}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
export = Sortie;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a daily sortie
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export default class Sortie extends WorldstateObject {
|
|
7
6
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {
|
|
10
|
-
* @param
|
|
11
|
-
* @param {Translator} translator The string translator
|
|
12
|
-
* @param {TimeDateFunctions} timeDate The time and date functions
|
|
13
|
-
* @param {Object} sortieData The data used to parse sorties
|
|
14
|
-
* @param {SortieVariant} SortieVariant The sortie variant parser
|
|
15
|
-
* @param {string} locale Locale to use for translations
|
|
7
|
+
* @param {object} data The data for all daily sorties
|
|
8
|
+
* @param {object} deps The dependencies object
|
|
9
|
+
* @param {string} deps.locale Locale to use for translations
|
|
16
10
|
*/
|
|
17
|
-
constructor(data:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @type {MarkdownSettings}
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
private mdConfig;
|
|
11
|
+
constructor(data: object, { locale }?: {
|
|
12
|
+
locale: string;
|
|
13
|
+
});
|
|
24
14
|
/**
|
|
25
15
|
* The sortie's reward pool
|
|
26
16
|
* @type {string}
|
|
@@ -30,7 +20,7 @@ declare class Sortie extends WorldstateObject {
|
|
|
30
20
|
* The sortie's variants
|
|
31
21
|
* @type {Array.<SortieVariant>}
|
|
32
22
|
*/
|
|
33
|
-
variants: Array<
|
|
23
|
+
variants: Array<SortieVariant>;
|
|
34
24
|
missions: any;
|
|
35
25
|
/**
|
|
36
26
|
* The sortie's boss
|
|
@@ -54,28 +44,29 @@ declare class Sortie extends WorldstateObject {
|
|
|
54
44
|
expired: boolean;
|
|
55
45
|
/**
|
|
56
46
|
* ETA string (at time of object creation)
|
|
57
|
-
* @type {
|
|
47
|
+
* @type {string}
|
|
58
48
|
*/
|
|
59
49
|
eta: string;
|
|
60
50
|
/**
|
|
61
51
|
* Get the sortie's boss
|
|
62
|
-
* @returns {string}
|
|
52
|
+
* @returns {string} the sortie's boss
|
|
63
53
|
*/
|
|
64
54
|
getBoss(): string;
|
|
65
55
|
/**
|
|
66
56
|
* Get the sortie's faction
|
|
67
|
-
* @returns {string}
|
|
57
|
+
* @returns {string} the sortie's faction
|
|
68
58
|
*/
|
|
69
59
|
getFaction(): string;
|
|
70
60
|
/**
|
|
71
61
|
* Gets a string indicating how long it will take for the sortie to end
|
|
72
|
-
* @returns {string}
|
|
62
|
+
* @returns {string} estimated time of arrival
|
|
73
63
|
*/
|
|
74
64
|
getETAString(): string;
|
|
75
65
|
/**
|
|
76
66
|
* Get whether or not the sortie has expired
|
|
77
|
-
* @returns {boolean}
|
|
67
|
+
* @returns {boolean} whether the sortie has expired
|
|
78
68
|
*/
|
|
79
69
|
isExpired(): boolean;
|
|
80
70
|
}
|
|
81
|
-
import WorldstateObject
|
|
71
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
72
|
+
import SortieVariant from './SortieVariant.js';
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
export = SortieVariant;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a sortie variant
|
|
3
|
+
* @class
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
export default class SortieVariant {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
7
|
+
* Make the SortieVariant
|
|
8
|
+
* @class
|
|
9
|
+
* @param {object} data Sortie variant data
|
|
10
|
+
* @param {object} deps Dependencies
|
|
11
|
+
* @param {string} deps.locale Locale to use for translations
|
|
12
12
|
*/
|
|
13
|
-
constructor(data:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @type {MarkdownSettings}
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
private mdConfig;
|
|
13
|
+
constructor(data: object, { locale }?: {
|
|
14
|
+
locale: string;
|
|
15
|
+
});
|
|
20
16
|
/**
|
|
21
17
|
* The variant's mission type
|
|
22
18
|
* @type {string}
|
|
23
19
|
*/
|
|
24
20
|
missionType: string;
|
|
21
|
+
missionTypeKey: string;
|
|
25
22
|
/**
|
|
26
23
|
* The variant's modifier
|
|
27
24
|
* @type {string}
|
|
@@ -37,9 +34,10 @@ declare class SortieVariant {
|
|
|
37
34
|
* @type {string}
|
|
38
35
|
*/
|
|
39
36
|
node: string;
|
|
37
|
+
nodeKey: string;
|
|
40
38
|
/**
|
|
41
39
|
* Returns a string representation of the sortie variant
|
|
42
|
-
* @returns {string}
|
|
40
|
+
* @returns {string} string representation
|
|
43
41
|
*/
|
|
44
42
|
toString(): string;
|
|
45
43
|
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
constructor({ timeDate, translator, locale }: {
|
|
4
|
-
timeDate: any;
|
|
5
|
-
translator: any;
|
|
1
|
+
export default class SteelPathOffering {
|
|
2
|
+
constructor({ locale }: {
|
|
6
3
|
locale: any;
|
|
7
4
|
});
|
|
8
5
|
currentReward: any;
|
|
9
6
|
activation: Date;
|
|
10
7
|
expiry: Date;
|
|
11
|
-
remaining:
|
|
8
|
+
remaining: string;
|
|
12
9
|
rotation: any;
|
|
13
10
|
evergreens: any;
|
|
14
11
|
/**
|
|
15
12
|
* General data pertaining to incursions
|
|
16
|
-
* @type {
|
|
13
|
+
* @type {object}
|
|
17
14
|
* @property {string} id Identifier for steel path incursion based on start of day.
|
|
18
15
|
* @property {Date} activation when the current incursions became active
|
|
19
16
|
* @property {Date} expiry when the current incursions become inactive
|
|
20
17
|
*/
|
|
21
|
-
incursions:
|
|
18
|
+
incursions: object;
|
|
22
19
|
}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
export = SyndicateJob;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a syndicate daily mission
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export default class SyndicateJob extends WorldstateObject {
|
|
7
6
|
/**
|
|
8
|
-
* @param {
|
|
7
|
+
* @param {object} data The syndicate mission data
|
|
9
8
|
* @param {Date} expiry The syndicate job expiration
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {Translator} translator The string translator
|
|
13
|
-
* @param {string} locale Locale to use for translations
|
|
9
|
+
* @param {object} deps The dependencies object
|
|
10
|
+
* @param {string} deps.locale Locale to use for translations
|
|
14
11
|
*/
|
|
15
|
-
constructor(data:
|
|
12
|
+
constructor(data: object, expiry: Date, { locale }: {
|
|
13
|
+
locale: string;
|
|
14
|
+
});
|
|
16
15
|
/**
|
|
17
16
|
* Array of strings describing rewards
|
|
18
|
-
* @type {Array.<
|
|
17
|
+
* @type {Array.<string>}
|
|
19
18
|
*/
|
|
20
19
|
rewardPool: Array<string>;
|
|
21
20
|
/**
|
|
22
21
|
* The type of job this is
|
|
23
|
-
* @type {
|
|
22
|
+
* @type {string}
|
|
24
23
|
*/
|
|
25
24
|
type: string;
|
|
26
25
|
/**
|
|
@@ -35,13 +34,13 @@ declare class SyndicateJob extends WorldstateObject {
|
|
|
35
34
|
standingStages: Array<number>;
|
|
36
35
|
/**
|
|
37
36
|
* Minimum mastery required to participate
|
|
38
|
-
* @type {
|
|
37
|
+
* @type {number}
|
|
39
38
|
*/
|
|
40
39
|
minMR: number;
|
|
41
40
|
/**
|
|
42
41
|
* Whether or not this is a Vault job.
|
|
43
42
|
* No indication for difference of normal vs arcana vaults.
|
|
44
|
-
* @type {
|
|
43
|
+
* @type {boolean}
|
|
45
44
|
*/
|
|
46
45
|
isVault: boolean;
|
|
47
46
|
/**
|
|
@@ -56,4 +55,4 @@ declare class SyndicateJob extends WorldstateObject {
|
|
|
56
55
|
timeBound: string;
|
|
57
56
|
timeBoound: string;
|
|
58
57
|
}
|
|
59
|
-
import WorldstateObject
|
|
58
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
export = SyndicateMission;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a syndicate daily mission
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export default class SyndicateMission extends WorldstateObject {
|
|
7
6
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {MarkdownSettings} deps.mdConfig The markdown settings
|
|
11
|
-
* @param {Translator} deps.translator The string translator
|
|
12
|
-
* @param {TimeDateFunctions} deps.timeDate The time and date functions
|
|
7
|
+
* @param {object} data The syndicate mission data
|
|
8
|
+
* @param {object} deps The dependencies object
|
|
13
9
|
* @param {string} deps.locale Locale to use for translations
|
|
14
10
|
*/
|
|
15
|
-
constructor(data:
|
|
16
|
-
mdConfig: MarkdownSettings;
|
|
17
|
-
translator: Translator;
|
|
18
|
-
timeDate: TimeDateFunctions;
|
|
11
|
+
constructor(data: object, { locale }?: {
|
|
19
12
|
locale: string;
|
|
20
13
|
});
|
|
21
|
-
/**
|
|
22
|
-
* The markdown settings
|
|
23
|
-
* @type {MarkdownSettings}
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
private mdConfig;
|
|
27
14
|
/**
|
|
28
15
|
* The syndicate that is offering the mission
|
|
29
16
|
* @type {string}
|
|
@@ -46,14 +33,14 @@ declare class SyndicateMission extends WorldstateObject {
|
|
|
46
33
|
jobs: Array<SyndicateJob>;
|
|
47
34
|
/**
|
|
48
35
|
* ETA string (at time of object creation)
|
|
49
|
-
* @type {
|
|
36
|
+
* @type {string} time delta string from now to the expiry
|
|
50
37
|
*/
|
|
51
38
|
eta: string;
|
|
52
39
|
/**
|
|
53
40
|
* Get a string indicating how much time is left before the syndicate mission expries
|
|
54
|
-
* @returns {string}
|
|
41
|
+
* @returns {string} time delta string from now to the expiry
|
|
55
42
|
*/
|
|
56
43
|
getETAString(): string;
|
|
57
44
|
}
|
|
58
|
-
import WorldstateObject
|
|
59
|
-
import SyndicateJob
|
|
45
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
46
|
+
import SyndicateJob from './SyndicateJob.js';
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
export = VallisCycle;
|
|
2
1
|
/**
|
|
3
2
|
* Represents the current Earth Day/Night Cycle
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @param {Date} bountiesEndDate The end date for Ostron bounties
|
|
9
|
-
* @param {Object} deps The dependencies object
|
|
10
|
-
* @param {MarkdownSettings} deps.mdConfig The markdown settings
|
|
11
|
-
* @param {TimeDateFunctions} deps.timeDate The time and date functions
|
|
12
|
-
*/
|
|
13
|
-
constructor({ mdConfig, timeDate }: Date);
|
|
14
|
-
/**
|
|
15
|
-
* The markdown settings
|
|
16
|
-
* @type {MarkdownSettings}
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
private mdConfig;
|
|
5
|
+
export default class VallisCycle extends WorldstateObject {
|
|
6
|
+
constructor();
|
|
20
7
|
/**
|
|
21
8
|
* Whether or not this it's daytime
|
|
22
9
|
* @type {boolean}
|
|
@@ -36,8 +23,31 @@ declare class VallisCycle extends WorldstateObject {
|
|
|
36
23
|
shortString: string;
|
|
37
24
|
/**
|
|
38
25
|
* Get whether or not the event has expired
|
|
39
|
-
* @returns {boolean}
|
|
26
|
+
* @returns {boolean} whether this event has expired
|
|
40
27
|
*/
|
|
41
28
|
getExpired(): boolean;
|
|
29
|
+
#private;
|
|
42
30
|
}
|
|
43
|
-
|
|
31
|
+
export type CurrentCycle = {
|
|
32
|
+
/**
|
|
33
|
+
* - Current cycle state. One of `warm`, `cold`
|
|
34
|
+
*/
|
|
35
|
+
state: string;
|
|
36
|
+
/**
|
|
37
|
+
* - Time remaining in the current cycle state
|
|
38
|
+
*/
|
|
39
|
+
toNextMinor: number;
|
|
40
|
+
/**
|
|
41
|
+
* - Time remaining until the next cycle
|
|
42
|
+
*/
|
|
43
|
+
toNextFull: number;
|
|
44
|
+
/**
|
|
45
|
+
* - Date and time at which the event started
|
|
46
|
+
*/
|
|
47
|
+
timeAtPrevious: Date;
|
|
48
|
+
/**
|
|
49
|
+
* - Date and time at which the event start
|
|
50
|
+
*/
|
|
51
|
+
timeAtNext: Date;
|
|
52
|
+
};
|
|
53
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
export = VoidTrader;
|
|
2
1
|
/**
|
|
3
2
|
* Represents a void trader
|
|
4
|
-
* @
|
|
3
|
+
* @augments {WorldstateObject}
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
export default class VoidTrader extends WorldstateObject {
|
|
7
6
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {MarkdownSettings} deps.mdConfig The markdown settings
|
|
11
|
-
* @param {Translator} deps.translator The string translator
|
|
12
|
-
* @param {TimeDateFunctions} deps.timeDate The time and date functions
|
|
7
|
+
* @param {object} data The Void trader data
|
|
8
|
+
* @param {object} deps The dependencies object
|
|
13
9
|
* @param {string} deps.locale Locale to use for translations
|
|
14
10
|
*/
|
|
15
|
-
constructor(data:
|
|
16
|
-
mdConfig: MarkdownSettings;
|
|
17
|
-
translator: Translator;
|
|
18
|
-
timeDate: TimeDateFunctions;
|
|
11
|
+
constructor(data: object, { locale }?: {
|
|
19
12
|
locale: string;
|
|
20
13
|
});
|
|
21
|
-
/**
|
|
22
|
-
* The markdown settings
|
|
23
|
-
* @type {MarkdownSettings}
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
private mdConfig;
|
|
27
14
|
/**
|
|
28
15
|
* The void trader's name
|
|
29
16
|
* @type {string}
|
|
@@ -50,9 +37,9 @@ declare class VoidTrader extends WorldstateObject {
|
|
|
50
37
|
* @type {string}
|
|
51
38
|
*/
|
|
52
39
|
endString: string;
|
|
53
|
-
initialStart:
|
|
40
|
+
initialStart: Date;
|
|
54
41
|
completed: any;
|
|
55
42
|
schedule: any;
|
|
56
43
|
}
|
|
57
|
-
import WorldstateObject
|
|
58
|
-
import VoidTraderItem
|
|
44
|
+
import WorldstateObject from './WorldstateObject.js';
|
|
45
|
+
import VoidTraderItem from './VoidTraderItem.js';
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
export = VoidTraderItem;
|
|
2
1
|
/**
|
|
3
2
|
* A void trader inventory item
|
|
4
3
|
* @property {string} item The name of the inventory item
|
|
5
4
|
* @property {number|string} ducats Ducat cost of the item
|
|
6
5
|
* @property {number|string} credits Credit cost of the item
|
|
7
6
|
*/
|
|
8
|
-
|
|
7
|
+
export default class VoidTraderItem {
|
|
9
8
|
/**
|
|
10
|
-
* @param {
|
|
9
|
+
* @param {object} data The void trader item data
|
|
11
10
|
* @param {string} data.ItemType Worldstate Item i18n path
|
|
12
11
|
* @param {string} data.PrimePrice Ducat cost of the item
|
|
13
12
|
* @param {string} data.RegularPrice Credit price of the item
|
|
14
13
|
* @param {Dependency} deps The dependencies object
|
|
15
|
-
* @param {Translator} deps.translator The string translator
|
|
16
14
|
* @param {string} deps.locale Locale to use for translations
|
|
17
15
|
*/
|
|
18
16
|
constructor({ ItemType, PrimePrice, RegularPrice }: {
|
|
19
17
|
ItemType: string;
|
|
20
18
|
PrimePrice: string;
|
|
21
19
|
RegularPrice: string;
|
|
22
|
-
}, {
|
|
20
|
+
}, { locale }?: Dependency);
|
|
23
21
|
uniqueName: string;
|
|
24
|
-
item:
|
|
22
|
+
item: string;
|
|
25
23
|
ducats: number;
|
|
26
24
|
credits: number;
|
|
27
25
|
}
|