Skip to content

Commit

Permalink
add outcome filter (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjacks0n authored Jun 24, 2024
1 parent 901bd3c commit e1f2652
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "getindexify",
"version": "0.0.47",
"version": "0.0.48",
"description": "This is the TypeScript client for interacting with the Indexify service.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
5 changes: 4 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,20 +336,23 @@ class IndexifyClient {
extractionPolicyId,
startId,
limit,
outcome,
returnTotal = false,
}: {
contentId?: string;
extractionPolicyId?: string;
startId?: string;
limit?: number;
returnTotal: boolean;
outcome?: "Unknown" | "Success" | "Failed";
returnTotal?: boolean;
}): Promise<{ tasks: ITask[]; total?: number }> {
const resp = await this.client.get("tasks", {
params: {
content_id: contentId,
extraction_policy: extractionPolicyId,
start_id: startId,
limit,
outcome,
return_total: returnTotal,
},
});
Expand Down

0 comments on commit e1f2652

Please sign in to comment.