IHubItemEntityManager

Interface

Item specific functions that must be implemented by Managers which operate against items stored in the Portal API

Methods

Method Returns Notes
  • fromItem(item: IItem, requestOptions: IRequestOptions)
Promise<>

Given an item, do any additional data fetching and return a type T

  • updateThumbnail(entity: , file: any, filename: string, requestOptions: IUserRequestOptions)
Promise<>

Add a thumbnail to an item

fromItem

Interface Method

Given an item, do any additional data fetching and return a type T

  • fromItem(item: IItem, requestOptions: IRequestOptions) : Promise<>

Parameters

Parameter Type Default Notes
item Required IItem
requestOptions Required IRequestOptions

Returns

Promise<>

updateThumbnail

Interface Method

Add a thumbnail to an item

  • updateThumbnail(entity: , file: any, filename: string, requestOptions: IUserRequestOptions) : Promise<>

Parameters

Parameter Type Default Notes
entity Required
file Required any
filename Required string
requestOptions Optional IUserRequestOptions

Returns

Promise<>

Interface defined in common/src/core/types/IHubItemEntityManager.ts:9