Reference·JavaScript · @bimworks/jssdkJavaScript

LinkedDataItemInput

Interface in @bimworks/jssdk.

API catalogue · @bimworks/jssdk · Interface

TypeScript#
interface LinkedDataItemInput

One item to link: its value is url, text, identifier or file

Members#

Member Kind Description
category Property One of the policy's categories
content_type Property The media type the client declares; the server decides from the content
description Property
file Property The file, sent as a stream of the task
filename Property Required for a file without a name (a Blob or bytes); a File's own name otherwise
identifier Property
kind Property FILE when a file is given
strip_metadata Property Remove a JPEG, PNG or WebP photo's location and camera details, losslessly; a HEIC or TIFF is kept as it is
text Property
title Property Without one: the file name without its extension, the URL's host, the identifier, or the text's first line
url Property
valid_until Property A date, yyyy-mm-dd

category#

TypeScript#
category?: string

One of the policy's categories

content_type#

TypeScript#
content_type?: string

The media type the client declares; the server decides from the content

description#

TypeScript#
description?: string

file#

TypeScript#
file?: ArrayBuffer | ArrayBufferView<ArrayBuffer> | Blob

The file, sent as a stream of the task

filename#

TypeScript#
filename?: string

Required for a file without a name (a Blob or bytes); a File's own name otherwise

identifier#

TypeScript#
identifier?: { system?: string; value: string }

kind#

TypeScript#
kind?: LinkedDataKind

FILE when a file is given

strip_metadata#

TypeScript#
strip_metadata?: boolean

Remove a JPEG, PNG or WebP photo's location and camera details, losslessly; a HEIC or TIFF is kept as it is

text#

TypeScript#
text?: string

title#

TypeScript#
title?: string

Without one: the file name without its extension, the URL's host, the identifier, or the text's first line

url#

TypeScript#
url?: string

valid_until#

TypeScript#
valid_until?: string

A date, yyyy-mm-dd