import { FuncVersion } from '../../FuncVersion' ; export function getScriptVerifiedTemplateIds ( version ) { let verifiedTemplateIds = [ 'BlobTrigger' , 'HttpTrigger' , 'QueueTrigger' , 'TimerTrigger' ] ; if ( version === FuncVersion . v1 ) { verifiedTemplateIds = verifiedTemplateIds . concat ( [ 'GenericWebHook' , 'GitHubWebHook' , 'HttpTriggerWithParameters' , 'ManualTrigger' ] ) ; return verifiedTemplateIds . map ( t => `${ t }-JavaScript` ) ; } else { verifiedTemplateIds = verifiedTemplateIds . concat ( [ 'CosmosDBTrigger' , 'DurableFunctionsActivity' , 'DurableFunctionsHttpStart' , 'DurableFunctionsOrchestrator' , 'EventGridTrigger' , 'EventHubTrigger' , 'ServiceBusQueueTrigger' , 'ServiceBusTopicTrigger' , 'SendGrid' , 'IoTHubTrigger' , ] ) ; return verifiedTemplateIds . map ( t => new RegExp ( `^${ t }-(JavaScript|TypeScript|Python|PowerShell|Custom)$` , 'i' ) ) ; } }