FlattenedWebsite
This is a specific model for related websites to an asset.[DAG SAFE]
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
id | string |
assets | FlattenedAssets |
name | string |
url | string |
created | GroupedTimestamp |
updated | GroupedTimestamp |
deleted | GroupedTimestamp |
mechanisms | { [key: string]: MechanismEnum; } |
interactions | number |
persons | FlattenedPersons |
conversations | FlattenedConversations |
score | Score |
summaries | FlattenedWorkstreamSummaries |
Example
import { FlattenedWebsite } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: FlattenedWebsite = {
"schema": null,
"id": null,
"assets": null,
"name": null,
"url": null,
"created": null,
"updated": null,
"deleted": null,
"mechanisms": null,
"interactions": null,
"persons": null,
"conversations": null,
"score": null,
"summaries": 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 FlattenedWebsite
console.log(exampleParsed)