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 generateHistoricalMetrics(id: number | string): Promise {
const request = new GenerateHistoricalMetricsRequest()
request.setKeywordPlan(`customers/${this.cid}/${RESOURCE_URL_NAME}/${id}`)
const response = await this.service.generateHistoricalMetrics(request)
const [parsed] = this.parseServiceResults([response]) as GenerateHistoricalMetricsResponse[]
return parsed
}
}