@intuned/runner-types
Advanced tools
Comparing version 0.13.4 to 0.13.5-auth-1
@@ -268,2 +268,22 @@ declare module '@intuned/runner' { | ||
} | ||
export interface SearchPdfConfigs { | ||
contextWindow?: number; | ||
matchCase?: boolean; | ||
wholeWord?: boolean; | ||
} | ||
export type SearchPdfResult = { | ||
context: string; | ||
page: number; | ||
found: true; | ||
} | { | ||
found: false; | ||
}; | ||
export function searchPdf(dataBuffer: Buffer, search: string, options?: SearchPdfConfigs): Promise<SearchPdfResult>; | ||
export function pdfPageToText(dataBuffer: Buffer, pageNumbers: number[]): Promise<{ | ||
results: { | ||
text: string; | ||
pageNumber: number; | ||
}[]; | ||
totalPages: number; | ||
}>; | ||
const pdfSourceSchema: z.ZodObject<{ | ||
@@ -569,2 +589,16 @@ type: z.ZodLiteral<"pdf">; | ||
export class FileHelpers { | ||
static searchPdf(...params: Parameters<typeof searchPdf>): Promise<{ | ||
context: string; | ||
page: number; | ||
found: true; | ||
} | { | ||
found: false; | ||
}>; | ||
static pdfPageToText(...pdfPageToTextParams: Parameters<typeof pdfPageToText>): Promise<{ | ||
results: { | ||
text: string; | ||
pageNumber: number; | ||
}[]; | ||
totalPages: number; | ||
}>; | ||
static extractTablesFromPdf(...extractTablesFromPdfParams: Parameters<typeof extractTablesFromPdf>): Promise<{ | ||
@@ -571,0 +605,0 @@ pages: { |
{ | ||
"name": "@intuned/runner-types", | ||
"version": "0.13.4", | ||
"version": "0.13.5-auth-1", | ||
"description": "intuned runner types", | ||
@@ -5,0 +5,0 @@ "author": "Intuned Team", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19538
631