ExportedDatabase
Properties
Name | Type |
---|---|
analyses | Array<number> |
applications | Array<number> |
assets | Array<number> |
codeAnalyses | Array<number> |
files | Array<number> |
formatMetrics | Array<number> |
formats | Array<number> |
fragments | Array<number> |
imageAnalyses | Array<number> |
models | Array<number> |
ocrAnalyses | Array<number> |
persons | Array<number> |
sensitives | Array<number> |
tags | Array<number> |
websites | Array<number> |
values | ExportedDatabaseFormats |
version | string |
schema | EmbeddedModelSchema |
relationships | Array<number> |
activities | Array<number> |
annotations | Array<number> |
hints | Array<number> |
anchors | Array<number> |
anchorPoints | Array<number> |
conversations | Array<number> |
conversationMessages | Array<number> |
workstreamEvents | Array<number> |
ranges | Array<number> |
workstreamSummaries | Array<number> |
messageValues | ExportedDatabaseFormats |
workstreamEventValues | ExportedDatabaseFormats |
Example
import { ExportedDatabase } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: ExportedDatabase = {
"analyses": null,
"applications": null,
"assets": null,
"codeAnalyses": null,
"files": null,
"formatMetrics": null,
"formats": null,
"fragments": null,
"imageAnalyses": null,
"models": null,
"ocrAnalyses": null,
"persons": null,
"sensitives": null,
"tags": null,
"websites": null,
"values": null,
"version": null,
"schema": null,
"relationships": null,
"activities": null,
"annotations": null,
"hints": null,
"anchors": null,
"anchorPoints": null,
"conversations": null,
"conversationMessages": null,
"workstreamEvents": null,
"ranges": null,
"workstreamSummaries": null,
"messageValues": null,
"workstreamEventValues": null,
}
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as ExportedDatabase
console.log(exampleParsed)