Scripting API / core/AnalysisApi
core/AnalysisApi
Modules
| Module | Description |
|---|---|
| External | - |
Classes
AnalysisApi
Methods
getDataRecordFileContents()
getDataRecordFileContents(
id,type):Promise<Blob>
Gets the contents of the
Parameters
| Parameter | Type | Description |
|---|---|---|
id |
number |
The ID of the file to retrieve the contents of. |
type |
DataRecordType | "dataset" |
The type of data record, or the data set. |
Returns
Promise<Blob>
getDataRecordFiles()
getDataRecordFiles(
id,type):Promise<DataRecordFile[]>
Gets the list of files attached to a data record. This includes both files attached directly to the data record, and files attached to the data set (sub-inspeciton) that this record belongs to.
Parameters
| Parameter | Type | Description |
|---|---|---|
id |
number |
The ID of the data record to fetch. |
type |
DataRecordType |
The type of data record. Note that accountability data cannot have files attached. |
Returns
Promise<DataRecordFile[]>
retrieveData()
retrieveData(
settings):Promise<DataRetrievalResponse>
Retrieves raw data.
Parameters
| Parameter | Type | Description |
|---|---|---|
settings |
WorkerRetrieveDataRequest |
Data request settings |
Returns
Promise<DataRetrievalResponse>