Skip to main content

TrackedFormatEventIdentifierDescriptionPairs

This is a model that allows us to send send over super specific format related events such as copied, deleted, downloaded, etc

Properties

NameType
schemaEmbeddedModelSchema
formatCreatedstring
formatCopiedstring
formatPartiallyCopiedstring
formatDownloadedstring
formatDeletedstring
formatGenericClassificationUpdatedstring
formatSpecificClassificationUpdatedstring
formatUpdatedstring
formatInsertedstring
formatValueEditedstring

Example

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

// TODO: Update the object below with actual values
const example: TrackedFormatEventIdentifierDescriptionPairs = {
"schema": null,
"formatCreated": null,
"formatCopied": null,
"formatPartiallyCopied": null,
"formatDownloaded": null,
"formatDeleted": null,
"formatGenericClassificationUpdated": null,
"formatSpecificClassificationUpdated": null,
"formatUpdated": null,
"formatInserted": null,
"formatValueEdited": 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 TrackedFormatEventIdentifierDescriptionPairs
console.log(exampleParsed)