This is an abstract class; it must be extended by another class that defines the specific request. This class is
responsible for managing execute-operation requests to OpenGate North API.
constructor
Constructor
Parámetros
Nombre
Tipo
Opcional
Descripción
ogapi
InternalOpenGateAPI
❌
this is ogapi instance
resource
string
❌
this is a base url resource
postObj
object
❌
it will be sent as a data on post action
execute()
This invoke a request to OpenGate North API and the callback is managed by promises
Retorna
Tip
Tipo:Promise
updatePeriodicity()
This invoke a request to OpenGate North API and the callback is managed by promises
Defines the builder used to configure the periodicity of an operation. With this builder you can select how the
operation repeats: by days, hours, or minutes.
constructor
Constructor
Parámetros
Nombre
Tipo
Opcional
Descripción
parent
BaseOperationBuilder
❌
this is a operationBaseBuilder.
date
Date
❌
Date when operation will be executed
periodicityName
string
❌
Name associated to periodicity
or
number
❌
Date} end - When periodicity ends. By repetitions or by date
days(days)
Set a difference of days in each repetition
Parámetros
Nombre
Tipo
Opcional
Descripción
days
number
❌
Retorna
Tip
Tipo:BaseOperationBuilder
hours(hours)
Set a difference of hours in each repetition
Parámetros
Nombre
Tipo
Opcional
Descripción
hours
number
❌
Retorna
Tip
Tipo:BaseOperationBuilder
minutes(minutes)
Set a difference of minutes in each repetition
Parámetros
Nombre
Tipo
Opcional
Descripción
minutes
number
❌
Retorna
Tip
Tipo:BaseOperationBuilder
Execute Every Builder
Defines the builder used to configure the periodicity of an operation. With this builder you can select the
period by day, week, month, or year.
constructor
Constructor
Parámetros
Nombre
Tipo
Opcional
Descripción
parent
BaseOperationBuilder
❌
this is a operationBaseBuilder.
date
Date
❌
Date when operation will be executed
periodicityName
string
❌
Name associated to periodicity
day()
Every day at time defined will be the pattern
Retorna
Tip
Tipo:BaseOperationBuilder
month(months)
Each month at time and day defined will be the pattern