@intuned/runner-types
Advanced tools
Comparing version 0.12.1 to 0.12.2
@@ -291,3 +291,3 @@ declare module '@intuned/runner' { | ||
}>; | ||
const sourceSchema: z.ZodObject<{ | ||
const pdfSourceSchema: z.ZodObject<{ | ||
type: z.ZodLiteral<"pdf">; | ||
@@ -341,3 +341,53 @@ pageNumbers: z.ZodUnion<[ | ||
}>; | ||
export type Source = z.infer<typeof sourceSchema>; | ||
export type PdfSource = z.infer<typeof pdfSourceSchema>; | ||
const excelSourceSchema: z.ZodObject<{ | ||
type: z.ZodLiteral<"excel">; | ||
location: z.ZodUnion<[ | ||
z.ZodObject<{ | ||
type: z.ZodLiteral<"Buffer">; | ||
buffer: z.ZodType<Buffer, z.ZodTypeDef, Buffer>; | ||
}, "strip", z.ZodTypeAny, { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
}, { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
}>, | ||
z.ZodObject<{ | ||
type: z.ZodLiteral<"Url">; | ||
url: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "Url"; | ||
url: string; | ||
}, { | ||
type: "Url"; | ||
url: string; | ||
}> | ||
]>; | ||
sheetsNames: z.ZodUnion<[ | ||
z.ZodArray<z.ZodString, "many">, | ||
z.ZodLiteral<"*"> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "excel"; | ||
location: { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
} | { | ||
type: "Url"; | ||
url: string; | ||
}; | ||
sheetsNames: (string[] | "*") & (string[] | "*" | undefined); | ||
}, { | ||
type: "excel"; | ||
location: { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
} | { | ||
type: "Url"; | ||
url: string; | ||
}; | ||
sheetsNames: (string[] | "*") & (string[] | "*" | undefined); | ||
}>; | ||
export type ExcelSource = z.infer<typeof excelSourceSchema>; | ||
const fileExtractionPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[ | ||
@@ -529,6 +579,12 @@ z.ZodObject<{ | ||
export type FileExtractionPropertyType = FileExtractionProperties[keyof FileExtractionProperties]; | ||
function extractFromPdfImproved(entityName: string, sourceInput: Source, fileExtractionPropertiesInput: FileExtractionProperties): Promise<any>; | ||
export function extractTablesFromPdf(source: Omit<Source, "type">): Promise<{ | ||
function extractFromPdfImproved(entityName: string, sourceInput: PdfSource, fileExtractionPropertiesInput: FileExtractionProperties): Promise<any>; | ||
function extractTablesFromExcel(source: Omit<ExcelSource, "type">): Promise<{ | ||
pages: { | ||
title: string | undefined; | ||
content: (string | undefined | number | Date)[][]; | ||
}[][]; | ||
}>; | ||
export function extractTablesFromPdf(source: Omit<PdfSource, "type">): Promise<{ | ||
pages: { | ||
title: string | undefined; | ||
content: (string | undefined)[][]; | ||
@@ -559,2 +615,8 @@ }[][]; | ||
}>; | ||
static extractTablesFromExcel(...extractTablesFromExcelParams: Parameters<typeof extractTablesFromExcel>): Promise<{ | ||
pages: { | ||
title: string | undefined; | ||
content: (string | number | Date | undefined)[][]; | ||
}[][]; | ||
}>; | ||
} | ||
@@ -561,0 +623,0 @@ |
{ | ||
"name": "@intuned/runner-types", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"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
19758
635