Skip to main content

TrackedAssetEventIdentifierDescriptionPairs

These are all of the available event types that are permitted in an object pair notation.

Properties

NameType
schemaEmbeddedModelSchema
assetCreatedstring
assetViewedstring
assetFormatCopiedstring
assetFormatDownloadedstring
assetDeletedstring
assetDescriptionUpdatedstring
assetNameUpdatedstring
assetFormatGenericClassificationUpdatedstring
assetFormatSpecificClassificationUpdatedstring
assetCreationFailedstring
assetTagAddedstring
assetLinkAddedstring
assetLinkGeneratedstring
assetLinkDeletedstring
assetTagDeletedstring
assetUpdatedstring
assetFormatValueEditedstring
assetFormatUpdatedstring
assetLinkRevokedstring
assetPersonAddedstring
assetPersonDeletedstring
assetSensitiveAddedstring
assetSensitiveDeletedstring
suggestedAssetReferencedstring
searchedAssetReferencedstring
assetReferencedstring
activityAssetReferencedstring
assetAnnotationAddedstring
assetAnnotationDeletedstring
assetAnnotationUpdatedstring
assetHintAddedstring
assetHintDeletedstring
assetHintUpdatedstring
assetAnchorAddedstring
assetAnchorDeletedstring
assetAnchorUpdatedstring

Example

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

// TODO: Update the object below with actual values
const example: TrackedAssetEventIdentifierDescriptionPairs = {
"schema": null,
"assetCreated": null,
"assetViewed": null,
"assetFormatCopied": null,
"assetFormatDownloaded": null,
"assetDeleted": null,
"assetDescriptionUpdated": null,
"assetNameUpdated": null,
"assetFormatGenericClassificationUpdated": null,
"assetFormatSpecificClassificationUpdated": null,
"assetCreationFailed": null,
"assetTagAdded": null,
"assetLinkAdded": null,
"assetLinkGenerated": null,
"assetLinkDeleted": null,
"assetTagDeleted": null,
"assetUpdated": null,
"assetFormatValueEdited": null,
"assetFormatUpdated": null,
"assetLinkRevoked": null,
"assetPersonAdded": null,
"assetPersonDeleted": null,
"assetSensitiveAdded": null,
"assetSensitiveDeleted": null,
"suggestedAssetReferenced": null,
"searchedAssetReferenced": null,
"assetReferenced": null,
"activityAssetReferenced": null,
"assetAnnotationAdded": null,
"assetAnnotationDeleted": null,
"assetAnnotationUpdated": null,
"assetHintAdded": null,
"assetHintDeleted": null,
"assetHintUpdated": null,
"assetAnchorAdded": null,
"assetAnchorDeleted": null,
"assetAnchorUpdated": 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 TrackedAssetEventIdentifierDescriptionPairs
console.log(exampleParsed)