Home Manual Reference Source Test Repository
public class | source

SoftwaresSearchBuilder

Extends:

SearchBuilderSearchWithSummaryBuilder → SoftwaresSearchBuilder

Defined a search over Datastreams

Example:

ogapi.softwareSearchBuilder()

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

tagsFilter: *[]

Method Summary

Public Methods
public

Sets hardware id to search

public

Sets softwareId to search

public

Set feedName to search

public

Set modelName to search

public

Set modelVersion to search

public

Set softwareName to search

public

Set softwareType to search

public

Set softwareVersion 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 Members

public fluentFilter: * source

public tagsFilter: *[] source

Public Methods

public withHardwareId(hardwareId: string): SoftwaresSearchBuilder source

Sets hardware id to search

Params:

NameTypeAttributeDescription
hardwareId string
  • nullable: false

hardware id

Throw:

Error

throw error when hardwareId is not typeof string

Example:

 ogapi.hardwareSearchBuilder().withHardwareId('myHardware').build()

public withId(softwareId: string): SoftwaresSearchBuilder source

Sets softwareId to search

Params:

NameTypeAttributeDescription
softwareId string
  • nullable: false

software id

Throw:

Error

throw error when softwareId is not typeof string

Example:

 ogapi.softwareSearchBuilder().withId('mySoftwareId').build()

public withManufacturer(manufacturerName: string): SoftwaresSearchBuilder source

Set feedName to search

Params:

NameTypeAttributeDescription
manufacturerName string
  • nullable: false

manufacturer name

Throw:

Error

throw error when modelName is not typeof string

Example:

 ogapi.softwareSearchBuilder().withManufacturer('myManufacturer').build()

public withModel(modelName: string): SoftwaresSearchBuilder source

Set modelName to search

Params:

NameTypeAttributeDescription
modelName string
  • nullable: false

model name

Throw:

Error

throw error when modelName is not typeof string

Example:

 ogapi.softwareSearchBuilder().withModel('myModel').build()

public withModelVersion(modelVersion: string): SoftwaresSearchBuilder source

Set modelVersion to search

Params:

NameTypeAttributeDescription
modelVersion string
  • nullable: false

model version

Throw:

Error

throw error when modelVersion is not typeof string

Example:

 ogapi.softwareSearchBuilder().withModelVersion('myModelVersion).build()

public withName(softwareName: string): SoftwaresSearchBuilder source

Set softwareName to search

Params:

NameTypeAttributeDescription
softwareName string
  • nullable: false

software name

Throw:

Error

throw error when softwareName is not typeof string

Example:

 ogapi.softwareSearchBuilder().withName('mySoftware').build()

public withType(softwareType: string): SoftwaresSearchBuilder source

Set softwareType to search

Params:

NameTypeAttributeDescription
softwareType string
  • nullable: false

software version

Throw:

Error

throw error when softwareType is not typeof string

Example:

 ogapi.softwareSearchBuilder().withType('mySoftwareType).build()

public withVersion(softwareVersion: string): SoftwaresSearchBuilder source

Set softwareVersion to search

Params:

NameTypeAttributeDescription
softwareVersion string
  • nullable: false

software version

Throw:

Error

throw error when softwareVersion is not typeof string

Example:

 ogapi.softwareSearchBuilder().withVersion('mySoftwareVersion).build()