Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected appOptions

appOptions: IAppOptions

createRoute

createRoute: string = "media-vault-streams/{path}"

getRoute

getRoute: string = "media-vault-streams/{id}/{?width,height}"

Protected modelMapper

modelMapper: ModelMapper

updateRoute

updateRoute: string = "media-vault-streams/{id}/{?width,height}"

Protected utility

utility: Utility

Methods

Protected baseCreate

  • baseCreate(route: string, data?: any): any
  • Parses get resource route which must be expanded with the Id of the previously created resource in the system.

    method
    example

    baseRoute.create();

    Parameters

    • route: string
    • Optional data: any

    Returns any

    get resource uri

Protected baseDelete

  • baseDelete(route: string, data: any, options?: IOptions, linkName?: string): any
  • Parses delete resource route.

    method
    example

    baseRoute.delete();

    Parameters

    • route: string
    • data: any
    • Optional options: IOptions
    • Optional linkName: string

    Returns any

    delete resource uri.

Protected baseFind

  • baseFind(route: string, options?: IOptions): any
  • Parses resources route which can be expanded with additional options. Supported items are:

    • searchQuery - A string value used to identify resources using the phrase search.
    • page - A value used to set the page number, i.e. to retrieve certain resource subset from the storage.
    • rpp - A value used to limit the size of result set per page.
    • sort - A string used to set the resource property to sort the result collection by.
    • embed - Comma separated list of resources to be contained within the current representation.
    method
    example

    baasicBaseDefinition.find();

    Parameters

    • route: string
    • Optional options: IOptions

    Returns any

    Query resources uri with search params

Protected baseGet

  • baseGet(route: string, id?: any, options?: any, propName?: string): any
  • Parses get resource route which must be expanded with the Id of the previously created resource in the system.

    method
    example

    baseRoute.get(route, id);

    Parameters

    • route: string
    • Optional id: any
    • Optional options: any
    • Optional propName: string

    Returns any

    get resource uri

Protected baseUpdate

  • baseUpdate(route: string, data: any, options?: IOptions, linkName?: string): any
  • Parses get resource route.

    method
    example

    baseRoute.update();

    Parameters

    • route: string
    • data: any
    • Optional options: IOptions
    • Optional linkName: string

    Returns any

    update resource uri

create

  • create(data: any): any
  • Parses create route; this route should be expanded with the path which indicates where the stream will be saved.

    method
    example

    mediaVaultStreamsRoute.create({path: ''});

    Parameters

    • data: any

    Returns any

createParams

  • createParams(data: any, prop?: string): any
  • Parameters

    • data: any
    • Optional prop: string

    Returns any

deleteParams

  • deleteParams(data: any): any
  • Parameters

    • data: any

    Returns any

get

  • get(data: any): any
  • Parses get route; this route should be expanded with id or path of desired media vault stream. Additional supported items are:

    • width - width of desired derived image.
    • height - height of desired derived image.
    method
    example

    mediaVaultRoute.get({id: ''});

    Parameters

    • data: any

    Returns any

parse

  • parse(route: string): any
  • Parses and expands URI templates based on RFC6570 specifications. For more information please visit the project GitHub page.

    method
    example

    baseRoute.parse('/{?embed,fields,options}').expand({embed: ''});

    Parameters

    • route: string

    Returns any

update

  • update(data: any): any
  • Parses update route; this route should be expanded with the id or path of the previously saved media vault resource. Additional supported items are:

    • width - width of desired derived image.
    • height - height of desired derived image.
    method
    example

    mediaVaultStreamsRoute.update({id: ''});

    Parameters

    • data: any

    Returns any

updateParams

  • updateParams(data: any): any
  • Parameters

    • data: any

    Returns any

Generated using TypeDoc