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

HistoryFinder

Extends:

GenericFinder → HistoryFinder

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

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

findByOrganization(organization: *): Promise

Download a complete list of scheduler history for the organization.

public

findByOrganizationAndSchedulerId(organization: *, schedulerId: *): Promise

Download a complete list of scheduler history for the organization and type selected.

public

findByOrganizationAndType(organization: *, type: *): Promise

Download a complete list of scheduler history for the organization and type selected.

public

withLimit(limit: *): this

Marks results limit

public

withSchedulerId(schedulerId: *): this

Set parameter schedulerIds

public

withSchedulerType(schedulerType: *): this

Set parameter schedulerIds

Public Constructors

public constructor(ogapi: InternalOpenGateAPI) source

Constructor

Override:

GenericFinder#constructor

Params:

NameTypeAttributeDescription
ogapi InternalOpenGateAPI

Reference to the API object.

Public Methods

public findByOrganization(organization: *): Promise source

Download a complete list of scheduler history for the organization. This execute a GET http method

Params:

NameTypeAttributeDescription
organization *

Return:

Promise

public findByOrganizationAndSchedulerId(organization: *, schedulerId: *): Promise source

Download a complete list of scheduler history for the organization and type selected. This execute a GET http method

Params:

NameTypeAttributeDescription
organization *
schedulerId *

Return:

Promise

public findByOrganizationAndType(organization: *, type: *): Promise source

Download a complete list of scheduler history for the organization and type selected. This execute a GET http method

Params:

NameTypeAttributeDescription
organization *
type *

Return:

Promise

public withLimit(limit: *): this source

Marks results limit

Params:

NameTypeAttributeDescription
limit *

Return:

this

public withSchedulerId(schedulerId: *): this source

Set parameter schedulerIds

Params:

NameTypeAttributeDescription
schedulerId *

Return:

this

public withSchedulerType(schedulerType: *): this source

Set parameter schedulerIds

Params:

NameTypeAttributeDescription
schedulerType *

Return:

this