@intuned/runner-types
Advanced tools
Comparing version 0.10.12 to 0.11.0-beta
242
index.d.ts
@@ -7,2 +7,3 @@ declare module '@intuned/runner' { | ||
import { BrowserContext, Download as PlaywrightDownload, Locator, Page } from '@intuned/playwright-core'; | ||
import * as z from 'zod'; | ||
@@ -287,4 +288,245 @@ export type ClassificationCategories = { | ||
}>; | ||
const sourceSchema: z.ZodObject<{ | ||
type: z.ZodLiteral<"pdf">; | ||
pageNumbers: z.ZodUnion<[ | ||
z.ZodArray<z.ZodNumber, "many">, | ||
z.ZodLiteral<"*"> | ||
]>; | ||
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; | ||
}> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "pdf"; | ||
location: { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
} | { | ||
type: "Url"; | ||
url: string; | ||
}; | ||
pageNumbers: (number[] | "*") & (number[] | "*" | undefined); | ||
}, { | ||
type: "pdf"; | ||
location: { | ||
buffer: Buffer; | ||
type: "Buffer"; | ||
} | { | ||
type: "Url"; | ||
url: string; | ||
}; | ||
pageNumbers: (number[] | "*") & (number[] | "*" | undefined); | ||
}>; | ||
export type Source = z.infer<typeof sourceSchema>; | ||
const fileExtractionPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[ | ||
z.ZodObject<{ | ||
type: z.ZodLiteral<"array">; | ||
description: z.ZodString; | ||
required: z.ZodOptional<z.ZodBoolean>; | ||
items: z.ZodUnion<[ | ||
z.ZodObject<{ | ||
type: z.ZodUnion<[ | ||
z.ZodLiteral<"number">, | ||
z.ZodLiteral<"string">, | ||
z.ZodLiteral<"boolean"> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "string" | "number" | "boolean"; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
}>, | ||
z.ZodObject<{ | ||
type: z.ZodLiteral<"object">; | ||
properties: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{ | ||
description: z.ZodString; | ||
required: z.ZodOptional<z.ZodBoolean>; | ||
exact: z.ZodOptional<z.ZodBoolean>; | ||
type: z.ZodUnion<[ | ||
z.ZodLiteral<"string">, | ||
z.ZodLiteral<"boolean">, | ||
z.ZodLiteral<"number"> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "object"; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
}, { | ||
type: "object"; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
}> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "array"; | ||
description: string; | ||
items: { | ||
type: "string" | "number" | "boolean"; | ||
} | { | ||
type: "object"; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
}; | ||
required?: boolean | undefined; | ||
}, { | ||
type: "array"; | ||
description: string; | ||
items: { | ||
type: "string" | "number" | "boolean"; | ||
} | { | ||
type: "object"; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
}; | ||
required?: boolean | undefined; | ||
}>, | ||
z.ZodObject<{ | ||
type: z.ZodLiteral<"object">; | ||
description: z.ZodString; | ||
required: z.ZodOptional<z.ZodBoolean>; | ||
properties: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{ | ||
description: z.ZodString; | ||
required: z.ZodOptional<z.ZodBoolean>; | ||
exact: z.ZodOptional<z.ZodBoolean>; | ||
type: z.ZodUnion<[ | ||
z.ZodLiteral<"string">, | ||
z.ZodLiteral<"boolean">, | ||
z.ZodLiteral<"number"> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "object"; | ||
description: string; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
required?: boolean | undefined; | ||
}, { | ||
type: "object"; | ||
description: string; | ||
properties: Record<string, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>; | ||
required?: boolean | undefined; | ||
}>, | ||
z.ZodEffects<z.ZodObject<{ | ||
description: z.ZodString; | ||
required: z.ZodOptional<z.ZodBoolean>; | ||
exact: z.ZodOptional<z.ZodBoolean>; | ||
type: z.ZodUnion<[ | ||
z.ZodLiteral<"string">, | ||
z.ZodLiteral<"boolean">, | ||
z.ZodLiteral<"number"> | ||
]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}>, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}, { | ||
type: "string" | "number" | "boolean"; | ||
description: string; | ||
required?: boolean | undefined; | ||
exact?: boolean | undefined; | ||
}> | ||
]>>; | ||
export type FileExtractionProperties = z.infer<typeof fileExtractionPropertiesSchema>; | ||
export type FileExtractionPropertyType = FileExtractionProperties[keyof FileExtractionProperties]; | ||
function extractFromPdfImproved(entityName: string, sourceInput: Source, fileExtractionPropertiesInput: FileExtractionProperties): Promise<any>; | ||
export { | ||
extractFromPdfImproved as extractFromPdfV2, | ||
}; | ||
export {}; | ||
} |
{ | ||
"name": "@intuned/runner-types", | ||
"version": "0.10.12", | ||
"version": "0.11.0-beta", | ||
"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
17389
540