Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Asset

Hierarchy

Index

Properties

fields

fields: { description: {}; file: {}; title: {} }

Type declaration

  • description: {}
    • [key: string]: string
  • file: {}
    • [key: string]: { contentType: string; details?: Record<string, any>; fileName: string; upload?: undefined | string; uploadFrom?: Record<string, any>; url?: undefined | string }
      • contentType: string
      • Optional details?: Record<string, any>
      • fileName: string
      • Optional upload?: undefined | string
      • Optional uploadFrom?: Record<string, any>
      • Optional url?: undefined | string
  • title: {}
    • [key: string]: string

linkType

linkType: "Asset"

sys

sys: { locale: string } & MetaSysProps

type

type: "Link"

Methods

archive

  • archive(): Promise<Asset>

delete

  • delete(): Promise<void>

isArchived

  • isArchived(): boolean

isDraft

  • isDraft(): boolean

isPublished

  • isPublished(): boolean

isUpdated

  • isUpdated(): boolean
  • isUpdated(): boolean

processForAllLocales

processForLocale

publish

  • publish(): Promise<Asset>

toPlainObject

unarchive

  • unarchive(): Promise<Asset>

unpublish

  • unpublish(): Promise<Asset>

update

  • update(): Promise<Asset>