Skip to main content

Website

This is a specific model for related websites to an asset.

Properties

NameType
schemaEmbeddedModelSchema
idstring
assetsFlattenedAssets
urlstring
namestring
createdGroupedTimestamp
updatedGroupedTimestamp
deletedGroupedTimestamp
mechanisms{ [key: string]: MechanismEnum; }
interactionsnumber
personsFlattenedPersons
conversationsFlattenedConversations
scoreScore
summariesFlattenedWorkstreamSummaries

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)