(applicationId)
| 236 | } |
| 237 | |
| 238 | export function getFunctionNames(applicationId) { |
| 239 | const store = |
| 240 | (_triggerStore[applicationId] && _triggerStore[applicationId][Category.Functions]) || {}; |
| 241 | const functionNames = []; |
| 242 | const extractFunctionNames = (namespace, store) => { |
| 243 | Object.keys(store).forEach(name => { |
| 244 | const value = store[name]; |
| 245 | if (namespace) { |
| 246 | name = `${namespace}.${name}`; |
| 247 | } |
| 248 | if (typeof value === 'function') { |
| 249 | functionNames.push(name); |
| 250 | } else { |
| 251 | extractFunctionNames(name, value); |
| 252 | } |
| 253 | }); |
| 254 | }; |
| 255 | extractFunctionNames(null, store); |
| 256 | return functionNames; |
| 257 | } |
| 258 | |
| 259 | export function getJob(jobName, applicationId) { |
| 260 | return get(Category.Jobs, jobName, applicationId); |
no test coverage detected
searching dependent graphs…