export type EntityType = "ASSET" | "ACCOUNT" | "SITE" | "GROUP"; export interface EntityIdentity { type: EntityType; id: string; } /** * The new field definition */ export interface AbstractCustomFieldDefinitionObject { definitionId?: string | null; key?: string | null; owner?: { irisAppId?: string | null; marketplaceEntry?: { name?: string | null; } | null; } | null; /** The title */ title?: string | null; description?: string | null; uiVisible?: boolean | null; uiEditable?: boolean | null; __typename?: "BooleanFieldDefinition" | "DateFieldDefinition" | "DropDownFieldDefinition" | "EmailFieldDefinition" | "FileFieldDefinition" | "JsonFieldDefinition" | "MonetaryFieldDefinition" | "NumberFieldDefinition" | "PhoneNumberFieldDefinition" | "StringFieldDefinition" | "StringListFieldDefinition" | "WebAddressFieldDefinition" | null; } export type BooleanFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "BooleanFieldDefinition"; }; export type DateFieldDefinition = AbstractCustomFieldDefinitionObject & { /** * ISO8601 formatted date */ __typename: "DateFieldDefinition"; }; export type PhoneNumberFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "PhoneNumberFieldDefinition"; }; export type EmailFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "EmailFieldDefinition"; }; export type JsonFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "JsonFieldDefinition"; }; export type MonetaryFieldDefinition = AbstractCustomFieldDefinitionObject & { currency: string; minimumNumber?: number | null; maximumNumber?: number | null; __typename: "MonetaryFieldDefinition"; }; export type WebAddressFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "WebAddressFieldDefinition"; }; export type FileFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "FileFieldDefinition"; }; export type DropDownFieldDefinition = AbstractCustomFieldDefinitionObject & { multiSelect?: boolean | null; allValues?: Array | null; __typename: "DropDownFieldDefinition"; }; export type StringListFieldDefinition = AbstractCustomFieldDefinitionObject & { __typename: "StringListFieldDefinition"; allValues?: Array | null; }; export declare const UnitOfMeasurement: { readonly NEWTON: "NEWTON"; readonly PASCAL: "PASCAL"; readonly KILOPASCAL: "KILOPASCAL"; readonly WATT: "WATT"; readonly BAR: "BAR"; readonly CENTIMETRE: "CENTIMETRE"; readonly MILLIMETRE: "MILLIMETRE"; readonly METRE: "METRE"; readonly KILOMETRE: "KILOMETRE"; readonly GRAM: "GRAM"; readonly KILOGRAM: "KILOGRAM"; readonly VOLT: "VOLT"; readonly AMPERE_HOUR: "AMPERE_HOUR"; readonly KILOWATT: "KILOWATT"; readonly KILOWATT_HOUR: "KILOWATT_HOUR"; readonly KILOGRAM_PER_HOUR: "KILOGRAM_PER_HOUR"; readonly KILOGRAM_PER_SECOND: "KILOGRAM_PER_SECOND"; readonly SQUARE_KILOMETRE: "SQUARE_KILOMETRE"; readonly KILOMETRE_PER_HOUR: "KILOMETRE_PER_HOUR"; readonly LITRE: "LITRE"; readonly SQUARE_METRE: "SQUARE_METRE"; readonly CUBIC_METRE: "CUBIC_METRE"; readonly METRE_PER_SECOND: "METRE_PER_SECOND"; readonly METRE_PER_SECOND_SQUARED: "METRE_PER_SECOND_SQUARED"; readonly METRIC_TON: "METRIC_TON"; readonly ARE: "ARE"; readonly HECTARE: "HECTARE"; readonly YEAR: "YEAR"; readonly MONTH: "MONTH"; readonly DAY: "DAY"; readonly HOUR: "HOUR"; readonly LITRES_PER_HOUR: "LITRES_PER_HOUR"; readonly REVOLUTIONS_PER_MINUTE: "REVOLUTIONS_PER_MINUTE"; readonly VOLT_AMPERE: "VOLT_AMPERE"; readonly G_FORCE: "G_FORCE"; readonly CELSIUS: "CELSIUS"; readonly PERCENT: "PERCENT"; readonly DEGREE_ANGLE: "DEGREE_ANGLE"; readonly MILLISECOND: "MILLISECOND"; readonly SECOND: "SECOND"; readonly MINUTE: "MINUTE"; readonly WEEK: "WEEK"; readonly AMPERE: "AMPERE"; readonly HERTZ: "HERTZ"; readonly ACRE: "ACRE"; readonly FOOT: "FOOT"; readonly SQUARE_FOOT: "SQUARE_FOOT"; readonly CUBIC_FOOT: "CUBIC_FOOT"; readonly GALLON_LIQUID: "GALLON_LIQUID"; readonly INCH: "INCH"; readonly POUND: "POUND"; readonly POUND_PER_HOUR: "POUND_PER_HOUR"; readonly POUND_PER_SECOND: "POUND_PER_SECOND"; readonly MILE: "MILE"; readonly MILE_PER_HOUR: "MILE_PER_HOUR"; readonly OUNCE: "OUNCE"; readonly US_TON: "US_TON"; readonly YARD: "YARD"; readonly POUND_PER_SQUARE_INCH: "POUND_PER_SQUARE_INCH"; readonly INCHES_OF_WATER: "INCHES_OF_WATER"; readonly GALLONS_PER_HOUR: "GALLONS_PER_HOUR"; readonly FAHRENHEIT: "FAHRENHEIT"; }; export type UnitOfMeasurementType = (typeof UnitOfMeasurement)[keyof typeof UnitOfMeasurement]; /** * @deprecated Use UnitOfMeasurement instead */ export declare const UnitUs: { readonly acre: "ACRE"; readonly foot: "FOOT"; readonly square_foot: "SQUARE_FOOT"; readonly cubic_foot: "CUBIC_FOOT"; readonly gallon_liquid: "GALLON_LIQUID"; readonly inch: "INCH"; readonly pound: "POUND"; readonly pound_per_hour: "POUND_PER_HOUR"; readonly pound_per_second: "POUND_PER_SECOND"; readonly mile: "MILE"; readonly mile_per_hour: "MILE_PER_HOUR"; readonly ounce: "OUNCE"; readonly ton_us: "US_TON"; readonly yard: "YARD"; readonly pound_per_square_inch: "POUND_PER_SQUARE_INCH"; }; /** * @deprecated Use UnitOfMeasurementType instead */ export type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs]; /** * @deprecated Use UnitOfMeasurement instead */ export declare const UnitSi: { readonly newton: "NEWTON"; readonly pascal: "PASCAL"; readonly kilopascal: "KILOPASCAL"; readonly amperehour: "AMPERE_HOUR"; readonly volt: "VOLT"; readonly watt: "WATT"; readonly bar: "BAR"; readonly centimetre: "CENTIMETRE"; readonly millimetre: "MILLIMETRE"; readonly metre: "METRE"; readonly kilometre: "KILOMETRE"; readonly gram: "GRAM"; readonly kilogram: "KILOGRAM"; readonly kilowatt: "KILOWATT"; readonly kilowatthour: "KILOWATT_HOUR"; readonly kilogram_per_hour: "KILOGRAM_PER_HOUR"; readonly kilogram_per_second: "KILOGRAM_PER_SECOND"; readonly square_kilometre: "SQUARE_KILOMETRE"; readonly kilometre_per_hour: "KILOMETRE_PER_HOUR"; readonly litre: "LITRE"; readonly square_metre: "SQUARE_METRE"; readonly cubic_metre: "CUBIC_METRE"; readonly metre_per_second: "METRE_PER_SECOND"; readonly metre_per_second_squared: "METRE_PER_SECOND_SQUARED"; readonly ton: "TON"; readonly hectare: "HECTARE"; readonly hour: "HOUR"; }; /** * @deprecated Use UnitOfMeasurementType instead */ export type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi]; export type NumberFieldDefinition = AbstractCustomFieldDefinitionObject & { minimumNumber?: number | null; maximumNumber?: number | null; unitSi?: UnitOfMeasurementType | null; unitUs?: UnitOfMeasurementType | null; isInteger?: boolean | null; __typename: "NumberFieldValue"; }; export type StringFieldDefinition = AbstractCustomFieldDefinitionObject & { minimumLength?: number | null; maximumLength?: number | null; pattern?: string | null; __typename: "StringFieldDefinition"; }; export interface AbstractCustomFieldValue { __typename: "BooleanFieldValue" | "DateFieldValue" | "DropDownFieldValue" | "EmailFieldValue" | "JsonFieldValue" | "MonetaryFieldValue" | "NumberFieldValue" | "PhoneNumberFieldValue" | "StringFieldValue" | "StringListFieldValue" | "WebAddressFieldValue"; } export type BooleanFieldValue = { __typename: "BooleanFieldValue"; booleanValue?: boolean | null; }; export type DateFieldValue = { __typename: "DateFieldValue"; /** * ISO8601 formatted date */ dateValue?: string | null; }; export type StringListFieldValue = { __typename: "StringListFieldValue"; stringArrayValue?: Array | null; }; export type DropDownFieldValue = { __typename: "DropDownFieldValue"; stringArrayValue?: Array | null; }; export type EmailFieldValue = { __typename: "EmailFieldValue"; emailValue?: string | null; }; export type JsonFieldValue = { __typename: "JsonFieldValue"; jsonValue?: unknown | null; }; export type MonetaryFieldValue = { __typename: "MonetaryFieldValue"; monetaryValue?: number | null; }; export type NumberFieldValue = { __typename: "NumberFieldValue"; numberValue?: number | null; }; export type PhoneNumberFieldValue = { __typename: "PhoneNumberFieldValue"; phoneNumberValue?: string | null; }; export type StringFieldValue = { __typename: "StringFieldValue"; stringValue?: string | null; }; export type WebAddressFieldValue = { __typename: "WebAddressFieldValue"; webAddressValue?: string | null; }; export type CustomFieldDefinition = BooleanFieldDefinition | DateFieldDefinition | DropDownFieldDefinition | EmailFieldDefinition | FileFieldDefinition | JsonFieldDefinition | MonetaryFieldDefinition | NumberFieldDefinition | PhoneNumberFieldDefinition | StringFieldDefinition | StringListFieldDefinition | WebAddressFieldDefinition; export type CustomFieldValue = BooleanFieldValue | DateFieldValue | DropDownFieldValue | EmailFieldValue | JsonFieldValue | MonetaryFieldValue | NumberFieldValue | PhoneNumberFieldValue | StringFieldValue | StringListFieldValue | WebAddressFieldValue; export interface ValueAndDefinition { definition: CustomFieldDefinition; value: CustomFieldValue; } export interface AbstractValueAndDefinition { definition: AbstractCustomFieldDefinitionObject; value: AbstractCustomFieldValue; } export interface ValueAndDefinitionKey { definitionKey: string; value: CustomFieldValue; }