MCPcopy Create free account
hub / github.com/ModelEngine-Group/app-platform / getInputParams

Function getInputParams

frontend/src/shared/utils/common.ts:500–508  ·  view source on GitHub ↗
(shape: any)

Source from the content-addressed store, hash-verified

498 const shapes = graph.pages[0].shapes;
499
500 const getInputParams = (shape: any) => {
501 if (shape.type === 'startNodeStart') {
502 return shape.flowMeta.inputParams;
503 } else if (shape.type === 'endNodeEnd') {
504 return shape.flowMeta.callback.converter.entity.inputParams;
505 } else {
506 return shape.flowMeta.jober.converter.entity.inputParams;
507 }
508 };
509
510 const getConfigByKeys = (keys: string[]) => {
511 if (!Array.isArray(keys)) {

Callers 1

getConfigByKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected