UNPKG

warframe-worldstate-parser

Version:

An Open parser for Warframe's Worldstate in Javascript

73 lines (72 loc) 2.1 kB
/** * Represents a syndicate daily mission * @augments {WorldstateObject} */ export default class SyndicateJob extends WorldstateObject { /** * Generate a job with async data (reward pool) * @param {object} data The syndicate mission data * @param {Date} expiry The syndicate job expiration * @param {object} deps The dependencies object * @param {string} deps.locale Locale to use for translations * @returns {Promise<SyndicateJob>} The created SyndicateJob object with rewardPool */ static build(data: object, expiry: Date, deps: { locale: string; }): Promise<SyndicateJob>; /** * Construct a job without async data (reward pool) * @param {object} data The syndicate mission data * @param {Date} expiry The syndicate job expiration * @param {object} deps The dependencies object * @param {string} deps.locale Locale to use for translations * * This DOES NOT populate the reward pool */ constructor(data: object, expiry: Date, { locale }: { locale: string; }); /** * Array of strings describing rewards * @type {Array.<string>} */ rewardPool: Array<string>; /** * The type of job this is * @type {string} */ type: string; /** * Array of enemy levels * @type {Array.<number>} */ enemyLevels: Array<number>; /** * Array of standing gains per stage of job * @type {Array.<number>} */ standingStages: Array<number>; /** * Minimum mastery required to participate * @type {number} */ minMR: number; /** * Whether or not this is a Vault job. * No indication for difference of normal vs arcana vaults. * @type {boolean} */ isVault: boolean; /** * Corresponding chamber. Nullable * @type {string|null} */ locationTag: string | null; /** * What time phase this bounty is bound to * @type {string} */ timeBound: string; timeBoound: string; } import WorldstateObject from './WorldstateObject.js';