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