UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

30 lines 753 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var root_1 = require("../../root"); /** * Get the incidents for a particular job * Defaults to empty array * * @param state * @param refId */ exports.getJobIncidents = function (state, refId) { return root_1.getApiState(state).jobs.incidents.data[refId] || null; }; /** * Get the list of possible incident codes * * @param state */ exports.getIncidentImpacts = function (state) { return root_1.getApiState(state).jobs.incidents.impacts; }; /** * Get the list of possible incident codes * * @param state */ exports.getIncidentReasons = function (state) { return root_1.getApiState(state).jobs.incidents.reasons; }; //# sourceMappingURL=incident.js.map