function getReaderSourceDefinitionName(node: GeneratedNode): string {
  const [name, derivedFrom] =
    node.kind === 'Request'
      ? [node.params.name, node.params.metadata?.derivedFrom]
      : node.kind === 'SplitOperation'
      ? [node.name, node.metadata?.derivedFrom]
      : [node.name, null];
  return typeof derivedFrom === 'string' ? derivedFrom : name;
}
function getReaderSourceDefinitionName(node: GeneratedNode): string {
  const [name, derivedFrom] =
    node.kind === 'Request'
      ? [node.params.name, node.params.metadata?.derivedFrom]
      : node.kind === 'SplitOperation'
      ? [node.name, node.metadata?.derivedFrom]
      : [node.name, null];
  return typeof derivedFrom === 'string' ? derivedFrom : name;
}
function getReaderSourceDefinitionName ( node : GeneratedNode ) : string { const [ name , derivedFrom ] = node . kind === 'Request' ? [ node . params . name , node . params . metadata ? . derivedFrom ] : node . kind === 'SplitOperation' ? [ node . name , node . metadata ? . derivedFrom ] : [ node . name , null ] ; return typeof derivedFrom === 'string' ? derivedFrom : name ; }
Helpers to retieve the name of the document from which the input derives:
this is either the name of the input itself (if it is not a derived node)
or the metadata.derivedFrom property for derived nodes.
 Version for generated nodes
Helpers to retieve the name of the document from which the input derives : this is either the name of the input itself ( if it is not a derived node ) or the metadata . derivedFrom property for derived nodes . Version for generated nodes
Returns the name of the reader source definition