import path from 'node:path'

export type RedeemArtifactPaths = {
  redeemPageScreenshotPath: string
  beijingTimeScreenshotPath: string
  screenshotPath: string
  htmlPath: string
  resultPath: string
}

export function buildArtifactPaths(outputDir: string): RedeemArtifactPaths {
  return {
    redeemPageScreenshotPath: path.join(outputDir, 'redeem-page.png'),
    beijingTimeScreenshotPath: path.join(outputDir, 'beijing-time.png'),
    screenshotPath: path.join(outputDir, 'redeem-result.png'),
    htmlPath: path.join(outputDir, 'page.html'),
    resultPath: path.join(outputDir, 'result.json'),
  }
}
