Skip to main content

FlattenedActivity

Note: - if mechanism == internal we will not display to the user.

Properties

NameType
schemaEmbeddedModelSchema
idstring
createdGroupedTimestamp
updatedGroupedTimestamp
eventSeededConnectorTracking
applicationApplication
deletedGroupedTimestamp
assetReferencedAsset
formatReferencedFormat
userFlattenedUserProfile
mechanismMechanismEnum
ranknumber

Example

import { FlattenedActivity } from '@pieces.app/pieces-os-client'

// TODO: Update the object below with actual values
const example: FlattenedActivity = {
"schema": null,
"id": null,
"created": null,
"updated": null,
"event": null,
"application": null,
"deleted": null,
"asset": null,
"format": null,
"user": null,
"mechanism": null,
"rank": 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 FlattenedActivity
console.log(exampleParsed)