Home Manual Reference Source Test Repository
public class | source

DevicesPlansSearchBuilder

Extends:

SearchBuilderSearchWithSummaryBuilder → DevicesPlansSearchBuilder

Defined a search over DevicePlansSearchBuilder

Example:

ogapi.plansSearchBuilder()

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

withDomain(domainName: string): DevicePlansSearchBuilder

Sets de domain name to search

Inherited Summary

From class SearchBuilder
public

[route]: *

public

Add ascending param into the sort search object

public

addSortBy(filterField: string, typeSort: string): SearchBuilder

Add ascending/descending param into the sort search object

public

Add descending param into the sort search object

public

Build a instance of Search

public

The search request will have this filter

public

findAllFields(input: *): Promise

Return a promise which it will contains an array with fields recommended with complete structure

public

findFieldPath(field: *): Promise

Return a promise which it will contains an string with the path of a field

public

findFields(input: *): Promise

Return a promise which it will contains an array with fields recommended with only identifier

public

limit(size: number, start: number): SearchBuilder

Set reponse pagination.

public

Remove sort param from the search object

public

The request will have a specific time out if it will be exceeded then the promise throw an exception

From class SearchWithSummaryBuilder
public

The response will only have a summary information

Public Constructors

public constructor(parent: InternalOpenGateAPI) source

Constructor

Override:

SearchWithSummaryBuilder#constructor

Params:

NameTypeAttributeDescription
parent InternalOpenGateAPI
  • nullable: false

Instance of our InternalOpenGateAPI

Public Methods

public withDomain(domainName: string): DevicePlansSearchBuilder source

Sets de domain name to search

Params:

NameTypeAttributeDescription
domainName string
  • nullable: false

domain name

Return:

DevicePlansSearchBuilder

Throw:

Error

throw error when domainName is not typeof string

Example:

 ogapi.plansSearchBuilder().withDomain('myDomain').build()