UNPKG

lml-main

Version:

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

40 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var root_1 = require("../../root"); /** * Retreive the entire state associated with job statuses * * @param state */ exports.getJobsStatusState = function (state) { return root_1.getApiState(state).jobs.status; }; /** * Retrieve a JobStatusModel by refId * * @param state * @param id */ exports.getJobStatusById = function (state, id) { return root_1.getApiState(state).jobs.status.byStatus[id]; }; /** * Retrieve the raw data associated with a search * * @param state * @param searchKey */ exports.getJobSearch = function (state, searchKey) { return root_1.getApiState(state).jobs.status.search[searchKey]; }; /** * An array of JobstatusModels associated with a search * * @param state * @param status */ exports.getJobSearchResults = function (state, searchKey) { var search = exports.getJobSearch(state, searchKey); return search ? search.results : []; }; //# sourceMappingURL=status.js.map