Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollectionResponse

Hierarchy

Index

Constructors

constructor

  • new CollectionResponse(__namedParameters: { attachments: {}; fieldsWithAttachments: {}; items: Item[] }): CollectionResponse
  • Parameters

    • __namedParameters: { attachments: {}; fieldsWithAttachments: {}; items: Item[] }
      • attachments: {}
        • [id: string]: Item
      • fieldsWithAttachments: {}
        • [field_name: string]: {}
      • items: Item[]

    Returns CollectionResponse

Properties

_attachments

_attachments: {}

Type declaration

  • [id: string]: Item

_fieldsWithAttachments

_fieldsWithAttachments: {}

Type declaration

  • [field_name: string]: {}

items

items: Item[]

Accessors

empty

  • get empty(): boolean
  • Returns boolean

length

  • get length(): number
  • Returns number

Methods

_wrapFields

  • _wrapFields(items: Item[]): void

_wrapSingleField

  • _wrapSingleField(item: Item, field: keyof Item): void

getAttachments

  • getAttachments(): {}

getMetadata

  • getMetadata(): {}
  • Returns {}

    • [field_name: string]: {}

toObject

  • toObject(): { attachments: {}; fieldsWithAttachments: {}; items: Item[] }
  • Returns { attachments: {}; fieldsWithAttachments: {}; items: Item[] }

    • attachments: {}
      • [id: string]: Item
    • fieldsWithAttachments: {}
      • [field_name: string]: {}
    • items: Item[]

Generated using TypeDoc