function createOriginQueryTerm ( input ) { return input . replace ( /\\/g , '\\\\' ) . replace ( /\"/g , '\\"' ) ; } internal param type param id returns export function createOriginQuery ( type , id ) { return `"${ createOriginQueryTerm ( `${ type }:${ id }` ) }" | "${ createOriginQueryTerm ( id ) }"` ; }