PersonType
basic or platform is absolutely required here. basic: if provided is just information that has been either extracted from the piece or other wise added here. platform: is a real Pieces User.(this user will also exist within the user's users collection. && if not then we will just use the data we have.)
Properties
Name | Type |
---|---|
schema | EmbeddedModelSchema |
basic | PersonBasicType |
platform | UserProfile |
Example
import { PersonType } from '@pieces.app/pieces-os-client'
// TODO: Update the object below with actual values
const example: PersonType = {
"schema": null,
"basic": null,
"platform": 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 PersonType
console.log(exampleParsed)