-
<async> build(data, expiry, deps)
-
Generate a job with async data (reward pool)
Parameters:
Name |
Type |
Description |
data |
object
|
The syndicate mission data |
expiry |
Date
|
The syndicate job expiration |
deps |
object
|
The dependencies object
Properties
Name |
Type |
Description |
locale |
string
|
Locale to use for translations |
|
- Source:
-
Returns:
The created SyndicateJob object with rewardPool
-
Type
-
Promise.<SyndicateJob>
-
<async> build(data, deps)
-
Build a new SyndicateMission with async operations & data
Parameters:
Name |
Type |
Description |
data |
object
|
The syndicate mission data |
deps |
object
|
The dependencies object
Properties
Name |
Type |
Description |
locale |
string
|
Locale to use for translations |
|
- Source:
-
Returns:
SyndicateMission object w/ async resolution of jobs
-
Type
-
Promise.<SyndicateMission>
-
<async> build(data, deps)
-
Asynchronously build a new WorldEvent
Parameters:
Name |
Type |
Description |
data |
object
|
The event data |
deps |
object
|
The dependencies object
Properties
Name |
Type |
Description |
locale |
string
|
Locale to use for translations |
|
- Source:
-
Returns:
The created WorldEvent object
-
Type
-
Promise.<WorldEvent>
-
compileDesription()
-
Turn the global upgrade into a plain text description
- Source:
-
Returns:
Descriptio
-
Type
-
string
-
getBoss()
-
Get the sortie's boss
- Source:
-
Returns:
the sortie's boss
-
Type
-
string
-
getCurrentCycle()
-
Get the current cycle state for Orb Vallis
- Source:
-
Returns:
current cycle state
-
Type
-
CurrentCycle
-
getCurrentEarthCycle()
-
Get the current Earth Day/Night Cycle
- Source:
-
Returns:
The current Earth Day/Night Cycle
-
Type
-
EarthCycle
-
getDescription()
-
Get the alert's description text
- Source:
-
Returns:
the description
-
Type
-
string
-
getEndOfDay()
-
When was the end of the day
- Source:
-
Returns:
end of the day
-
Type
-
Date
-
getEndString()
-
Get a string indicating how much time is left before the challenge expires
- Source:
-
Returns:
The time left before the challenge expires
-
Type
-
string
-
getEndString()
-
Get a string indicating how long it will take for the trader to leave
- Source:
-
Returns:
time delta string from now to the end
-
Type
-
string
-
getEndString()
-
Get a string indicating how long it will take for the trader to leave
- Source:
-
Returns:
time delta string from now to the end
-
Type
-
string
-
getETAString()
-
Get a string indicating how much time is left before the alert expires
- Source:
-
Returns:
the time left
-
Type
-
string
-
getETAString()
-
Get a string indicating how much time is left before the deal expires
- Source:
-
Returns:
estimated time remaining on the deal
-
Type
-
string
-
getETAString()
-
Get a string representation of how long the void fissure will remain active
- Source:
-
Returns:
The string representation of the fissure's remaining time
-
Type
-
string
-
getETAString()
-
Get how much time is left before the deal expires
- Source:
-
Returns:
The time left before the deal expires
-
Type
-
string
-
getETAString()
-
Get a string indicating how long it will take for the upgrade to expire
- Source:
-
Returns:
estimated timer of the upgrade
-
Type
-
string
-
getETAString()
-
Get a string estimating how much time is left before the invasion ends
- Source:
-
Returns:
time delta string from now to the end
-
Type
-
string
-
getETAString()
-
Get a string indicating how long it will take for the event to start or
how long it's been since the news went up
- Source:
-
Returns:
the estimated time of arrival for the event
-
Type
-
string
-
getETAString()
-
Get a string indicating how much time is left before the alert expires
- Source:
-
Returns:
estimated timer of the alert
-
Type
-
string
-
getETAString()
-
Gets a string indicating how long it will take for the sortie to end
- Source:
-
Returns:
estimated time of arrival
-
Type
-
string
-
getETAString()
-
Get a string indicating how much time is left before the syndicate mission expries
- Source:
-
Returns:
time delta string from now to the expiry
-
Type
-
string
-
getExpired()
-
Get whether the event has expired
- Source:
-
Returns:
whether the event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether or not the event has expired
- Source:
-
Returns:
whether the event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether or not the event has expired
- Source:
-
Returns:
Whether or not the event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether this deal has expired
- Source:
-
Returns:
Whether or not the deal has expired
-
Type
-
boolean
-
getExpired()
-
Get whether or not this deal has expired
- Source:
-
Returns:
Whether or not the deal has expired
-
Type
-
boolean
-
getExpired()
-
Get whether or not the event has expired
- Source:
-
Returns:
whether the event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether or not the event has expired
- Source:
-
Returns:
whether this event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether the event has expired
- Source:
-
Returns:
whether the event has expired
-
Type
-
boolean
-
getExpired()
-
Get whether the event has expired
- Source:
-
Returns:
whether this is expired
-
Type
-
boolean
-
getFaction()
-
Get the sortie's faction
- Source:
-
Returns:
the sortie's faction
-
Type
-
string
-
getFirstDayOfWeek()
-
Gets the first day of the week
- Source:
-
Returns:
first day of the week
-
Type
-
Date
-
getItemType(item [, types])
-
Returns the type of a given item
Parameters:
Name |
Type |
Argument |
Description |
item |
string
|
|
The item whose type needs to be determined |
types |
Array.<RewardType>
|
<optional>
|
The possible types |
- Source:
-
Returns:
The type name
-
Type
-
string
-
getItemTypeFull(item [, types])
-
Returns the full type of a given item
Parameters:
Name |
Type |
Argument |
Description |
item |
string
|
|
The item whose type needs to be determined |
types |
Array.<RewardType>
|
<optional>
|
The possible types |
- Source:
-
Returns:
The type
-
Type
-
RewardType
-
getLastDayOfWeek()
-
Get the last day of the week
- Source:
-
Returns:
last day of the week
-
Type
-
Date
-
getLevelString(job)
-
Determine the level string for the bounty
Parameters:
Name |
Type |
Description |
job |
object
|
Original raw job data |
- Source:
-
Returns:
level range string
-
Type
-
string
-
getRemainingTime()
-
Get an estimation of how much time is left before the invasion ends in milliseconds
- Source:
-
Returns:
remaining time in ms
-
Type
-
number
-
getReward()
-
Get the alert's reward
- Source:
-
Returns:
the reward
-
Type
-
Reward
-
getRewardTypes()
-
Get an array containing the types of all of the alert's rewards
- Source:
-
Returns:
an array containing the types of all of the alert's rewards
-
Type
-
Array.<string>
-
getRewardTypes()
-
Get the types of the items being rewarded in the invasion
- Source:
-
Returns:
types of items being rewarded
-
Type
-
Array.<string>
-
getRewardTypes()
-
Get an array containing the types of all of the nightwave season's rewards
- Source:
-
Returns:
an array containing the types of all of the nightwave season's rewards
-
Type
-
Array.<string>
-
getStartOfDay()
-
When was the start of the day
- Source:
-
Returns:
start of the day
-
Type
-
Date
-
getStartString()
-
Get a string indicating how long it will take for the trader to arrive
- Source:
-
Returns:
time delta string from now to the start
-
Type
-
string
-
getStartString()
-
Get a string indicating how long it will take for the trader to arrive
- Source:
-
Returns:
time delta string from now to the start
-
Type
-
string
-
getTitle(langCode)
-
The title of the news item in the specified language
Parameters:
Name |
Type |
Description |
langCode |
string
|
Ex. 'es', 'de', 'fr' |
- Source:
-
Returns:
The title of the news item in the specified language
-
Type
-
string
-
getTypes()
-
The types of all items that are being rewarded
- Source:
-
Returns:
types as array of string
-
Type
-
Array.<string>
-
getTypesFull()
-
The types of all the items that are being rewarded
- Source:
-
Returns:
array of reward types
-
Type
-
Array.<RewardType>
-
isActive()
-
Get whether or not the trader is currently active
- Source:
-
Returns:
whether the trader is active
-
Type
-
boolean
-
isActive()
-
Get whether the trader is currently active
- Source:
-
Returns:
whether the trader is active
-
Type
-
boolean
-
isAttackerWinning()
-
Whether or not the attackers are winning.
This is always false when the infestation is attacking
- Source:
-
Returns:
whether the attacker is winning
-
Type
-
boolean
-
isDaily()
-
Get whether or not the challenge is daily
- Source:
-
Returns:
whether the category is daily
-
Type
-
boolean
-
isExpired()
-
Get whether or not the challenge has expired
- Source:
-
Returns:
Whether or not the challenge has expired
-
Type
-
boolean
-
isExpired()
-
Get whether or not the sortie has expired
- Source:
-
Returns:
whether the sortie has expired
-
Type
-
boolean
-
isPrimeAccess()
-
Whether this is about a new Prime Access
- Source:
-
Returns:
whether the news is about a new Prime Access
-
Type
-
boolean
-
isRootChallenge()
-
Get whether or not this is the weekly root challenge
- Source:
-
Returns:
whether this is the root challenge
-
Type
-
boolean
-
isStream()
-
Whether this is about a new stream
- Source:
-
Returns:
whether the news is for a stream
-
Type
-
boolean
-
isUpdate()
-
Whether or not this is about a game update
- Source:
-
Returns:
whether the news is about an update
-
Type
-
boolean
-
parse(data, locale)
-
Parse kuva & arbitration data
Parameters:
Name |
Type |
Description |
data |
object
|
Data to split for kuva/arbitration |
locale |
string
|
locale to translate |
- Source:
-
Returns:
Split parsed data
-
Type
-
Kuva
-
parseArray(ParserClass, dataArray, deps [, uniqueField])
-
Parameters:
Name |
Type |
Argument |
Description |
ParserClass |
object
|
|
class for parsing data |
dataArray |
Array.<BaseContentObject>
|
|
array of raw data |
deps |
Dependency
|
|
shared dependency object |
uniqueField |
*
|
<optional>
|
field to treat as unique |
- Source:
-
Returns:
array of parsed objects
-
Type
-
Array.<WorldstateObject>
-
scrub(mission)
-
Scrub unnecessary details from the mission
Parameters:
Name |
Type |
Description |
mission |
object
|
parsed mission with re-aligned field names |
- Source:
-
-
toString()
-
The alert's string representation
- Source:
-
Returns:
the string representation
-
Type
-
string
-
toString()
-
The event's string representation
- Source:
-
Returns:
The string representation of the event
-
Type
-
string
-
toString()
-
The conclave challenge's string representation
- Source:
-
Returns:
The string representation of the conclave challenge
-
Type
-
string
-
toString()
-
The alert's string representation
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the daily deal
- Source:
-
Returns:
The string representation of the daily deal
-
Type
-
string
-
toString()
-
The event's string representation
- Source:
-
Returns:
The string representation of the event
-
Type
-
string
-
toString()
-
Returns a string representation of the fissure
- Source:
-
Returns:
The string representation of the fissure
-
Type
-
string
-
toString()
-
Returns a string representation of the flash sale
- Source:
-
Returns:
The string representation of the flash sale
-
Type
-
string
-
toString()
-
Returns a string representation of the upgrade
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
The invasion's string representation
- Source:
-
Returns:
string representation of the invasion
-
Type
-
string
-
toString()
-
The Mission's string representation
- Source:
-
Returns:
Mission's string representation
-
Type
-
string
-
toString()
-
String representation
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
The alert's string representation
- Source:
-
Returns:
string representation of the alert
-
Type
-
string
-
toString()
-
Returns a string representation of the persistent enemy
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
The reward's string representation
- Source:
-
Returns:
reward's string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the current sanctuary status
- Source:
-
Returns:
a string representation of the current sanctuary status
-
Type
-
string
-
toString()
-
Returns the sortie's string representation
- Source:
-
Returns:
the string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the sortie variant
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the syndicate mission
- Source:
-
Returns:
the string representation
-
Type
-
string
-
toString()
-
The event's string representation
- Source:
-
Returns:
the event's string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the trader
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the trader
- Source:
-
Returns:
string representation
-
Type
-
string
-
toString()
-
The event's string representation
- Source:
-
Returns:
the event's string representation
-
Type
-
string
-
toString()
-
Returns a string representation of the object
- Source:
-
Returns:
basic representation from the id
-
Type
-
string
-
toString()
-
The event's string representation
- Source:
-
Returns:
string representation
-
Type
-
string
-
truncateTime(mission)
-
Truncate time for a semlar-provided mission
Parameters:
Name |
Type |
Description |
mission |
object
|
parsed mission with re-aligned field names |
- Source:
-