Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async generateForecastMetrics(id: number | string): Promise {
const request = new GenerateForecastMetricsRequest()
request.setKeywordPlan(`customers/${this.cid}/${RESOURCE_URL_NAME}/${id}`)
const response = await this.service.generateForecastMetrics(request)
const [parsed] = this.parseServiceResults([response]) as GenerateForecastMetricsResponse[]
return parsed
}