mindee
Version:
Mindee Client Library for Node.js
44 lines (43 loc) • 1.13 kB
TypeScript
import { StringDict } from "../../../../parsing/index.js";
export declare class DataSchemaField {
/**
* Display name for the field, also impacts inference results.
*/
title: string;
/**
* Name of the field in the data schema.
*/
name: string;
/**
* Whether this field can contain multiple values.
*/
isArray: boolean;
/**
* Data type of the field.
*/
type: string;
/**
* Allowed values when type is `classification`. Leave empty for other types.
*/
classificationValues?: Array<string>;
/**
* Whether to remove duplicate values in the array.
* Only applicable if `is_array` is True.
*/
uniqueValues?: boolean;
/**
* Detailed description of what this field represents.
*/
description?: string;
/**
* Optional extraction guidelines.
*/
guidelines?: string;
/**
* Subfields when type is `nested_object`. Leave empty for other types.
*/
nestedFields?: StringDict;
constructor(fields: StringDict);
toJSON(): Record<string, unknown>;
toString(): string;
}