Home Manual Reference Source Test Repository
import OperationFinder from 'opengate-js/src/operations/OperationFinder.js'
public class | source

OperationFinder

Extends:

GenericFinder → OperationFinder

This class allow make get request to operation resource into Opengate North API.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

Download a specific operation by its id.

public

Download a specific executions of an operation by its id.

public

Download information of peridodicitiy of a specific operation by its id.

public

Download information of periodicitiy by its id.

Public Constructors

public constructor(ogapi: InternalOpenGateAPI) source

Constructor

Override:

GenericFinder#constructor

Params:

NameTypeAttributeDescription
ogapi InternalOpenGateAPI

Reference to the API object.

Public Methods

public findById(id: string): Promise source

Download a specific operation by its id. This execute a GET http method

Params:

NameTypeAttributeDescription
id string

Operation id.

Return:

Promise

Example:

  ogapi.newOperationFinder().findById('xxx-xx-xxx-xxx').then().catch();

public findExecutionsById(id: string, size: number, start: number): Promise source

Download a specific executions of an operation by its id. This execute a GET http method

Params:

NameTypeAttributeDescription
id string

Operation id.

size number

Defined the number of elements on response

start number
  • optional
  • default: 0

Defined the offset on response

Return:

Promise

public findPeriodicityById(id: string): Promise source

Download information of peridodicitiy of a specific operation by its id. This execute a GET http method

Params:

NameTypeAttributeDescription
id string

Operation id.

Return:

Promise

Example:

  ogapi.newOperationFinder().findPeriodicityById('xxx-xx-xxx-xxx').then().catch();

public findPeriodicityByPeriodicityId(periodicityId: string): Promise source

Download information of periodicitiy by its id. This execute a GET http method

Params:

NameTypeAttributeDescription
periodicityId string

Periodicity id.

Return:

Promise

Example:

  ogapi.newOperationFinder().findPeriodicityByPeriodicityId('xxx-xx-xxx-xxx').then().catch();