OperationFinder
Extends:
This class allow make get request to operation resource into Opengate North API.
Constructor Summary
| Public Constructor | ||
| public |
constructor(ogapi: InternalOpenGateAPI) Constructor |
|
Method Summary
| Public Methods | ||
| public |
Download a specific operation by its id. |
|
| public |
findExecutionsById(id: string, size: number, start: number): Promise Download a specific executions of an operation by its id. |
|
| public |
findPeriodicityById(id: string): Promise Download information of peridodicitiy of a specific operation by its id. |
|
| public |
findPeriodicityByPeriodicityId(periodicityId: string): Promise Download information of periodicitiy by its id. |
|
Public Constructors
public constructor(ogapi: InternalOpenGateAPI) source
Constructor
Override:
GenericFinder#constructorParams:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| id | string | Operation id. |
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
public findPeriodicityById(id: string): Promise source
Download information of peridodicitiy of a specific operation by its id. This execute a GET http method
Params:
| Name | Type | Attribute | Description |
| id | string | Operation id. |
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:
| Name | Type | Attribute | Description |
| periodicityId | string | Periodicity id. |
Example:
ogapi.newOperationFinder().findPeriodicityByPeriodicityId('xxx-xx-xxx-xxx').then().catch();