Options
All
  • Public
  • Public/Protected
  • All
Menu

Local copy of an API ItemTemplate. View slots as a map with template.slotsByName or create a new Item with toNewItem()

Hierarchy

  • ItemMap<Slot>
    • SDKTemplate

Index

Constructors

constructor

  • new SDKTemplate(itemTemplate: ItemTemplate, slots: Slot[], extra?: Partial<{ attachments: Attachment[]; classification_nodes: ClassificationNode[]; thumbnails: Thumbnail[] }>): SDKTemplate
  • Parameters

    • itemTemplate: ItemTemplate
    • slots: Slot[]
    • extra: Partial<{ attachments: Attachment[]; classification_nodes: ClassificationNode[]; thumbnails: Thumbnail[] }> = {}

    Returns SDKTemplate

Properties

Readonly attachments

attachments: Attachment[]

Readonly classification_nodes

classification_nodes: ClassificationNode[]

Readonly description

description: string

Readonly id

id: string

Readonly itemTemplate

itemTemplate: ItemTemplate

Readonly label

label: string

Readonly name

name: string

Readonly slots

slots: Slot[]

Readonly thumbnails

thumbnails: Thumbnail[]

Accessors

slotsByName

  • get slotsByName(): Record<string, SlotType>

values

  • get values(): Record<string, undefined | string>

Methods

toNewItem

  • toNewItem(label: string): NewItem

Static fromAPI

Generated using TypeDoc