Skip to content

Commit

Permalink
Switch to args
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Sep 22, 2024
1 parent af852a9 commit 41b7236
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,21 +235,21 @@ export class AutoblocksAPIClient {
return this.get('/human-review/jobs');
}

public async getTestCasesForHumanReviewJob(
jobId: string,
): Promise<HumanReviewJobWithTestCases> {
public async getTestCasesForHumanReviewJob(args: {
jobId: string;
}): Promise<HumanReviewJobWithTestCases> {
return this.get(
`/human-review/jobs/${encodeURIComponent(jobId)}/test-cases`,
`/human-review/jobs/${encodeURIComponent(args.jobId)}/test-cases`,
);
}

public async getTestCaseResultForHumanReviewJob(
jobId: string,
testCaseId: string,
): Promise<HumanReviewJobTestCaseResult> {
public async getTestCaseResultForHumanReviewJob(args: {
jobId: string;
testCaseId: string;
}): Promise<HumanReviewJobTestCaseResult> {
return this.get(
`/human-review/jobs/${encodeURIComponent(jobId)}/test-cases/${encodeURIComponent(
testCaseId,
`/human-review/jobs/${encodeURIComponent(args.jobId)}/test-cases/${encodeURIComponent(
args.testCaseId,
)}`,
);
}
Expand Down

0 comments on commit 41b7236

Please sign in to comment.