Interface Quantity

Identifies a quantity of something (e.g. 5 kg)

interface Quantity {
    amount?: number;
    bbox?: Bbox;
    confidence?: number;
    display?: boolean;
    errors?: ErrorModel[];
    input?: string;
    lastChangedBy?: string;
    modifiedAt?: number;
    modifiedBy?: {
        displayName?: string;
        id?: string;
    };
    options?: any[];
    reason?: any;
    required?: boolean;
    reviewNeeded?: boolean;
    searchValue?: string;
    source?: string;
    templateValue?: string;
    uom?: UnitOfMeasurement;
    userEdited?: boolean;
    value?: any;
    weightUnit?: WeightUnit;
}

Hierarchy (view full)

Properties

amount?: number
bbox?: Bbox

Bounding box of extracted value

confidence?: number

Confidence supplied by data extraction or 1.0 if entered by human

display?: boolean
errors?: ErrorModel[]

could be validation errors

input?: string

The input value which was initially supplied for the property

lastChangedBy?: string

Encoded user (username, userId, etc.)

Deprecated

modifiedAt?: number

Last modification date (user or machine), as a UTC unix timestamp

modifiedBy?: {
    displayName?: string;
    id?: string;
}

Field last changed by

Type declaration

  • Optional displayName?: string
  • Optional id?: string
options?: any[]
reason?: any
required?: boolean
reviewNeeded?: boolean
searchValue?: string

Normalized searchValue, for any related queries. Needs to be a string, even if value is of a different type.

source?: string
templateValue?: string

Template value which was used to generate the value

Unit of measurement

userEdited?: boolean

Mark this property as user-edited (as opposed to machine-generated)

value?: any

The current value of the property

weightUnit?: WeightUnit