Skip to main content

FlattenedWebsite

This is a specific model for related websites to an asset.[DAG SAFE]

Properties

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

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)