Subsections of alarms
actions
Subsections of actions
Alarm Action Builder
Defines the builder to execute alarm actions
constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
| action | string |
❌ | This action can be ATTEND or CLOSE |
addAlarmId(alarmId)
Add alarmId to operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| alarmId | string |
❌ | AlarmId of Alarm |
Retorna
Tip
Tipo: AlarmActionBuilder
Ejemplos
build()
Build an instance of Operation
Retorna
Tip
Tipo: Operation
Ejemplos
withNotes(notes)
Add notes to operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| notes | string |
❌ | Notes about operation |
Retorna
Tip
Tipo: AlarmActionBuilder
Ejemplos
Alarm Attend Builder
Defines the builder to execute alarm attend operation
constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
Alarm Close Builder
Defines the builder to execute alarm close operation
constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
Operation
This is an abstract class; it must be extended by another class that defines the specific request. This class is responsible for executing operation requests to the 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 invokes a request to the OpenGate North API and the callback is managed by promises.
Retorna
Tip
Tipo: Promise
Alarm Actions
This class contains all alarms actions builders
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
newAttendBuilder()
Create alarm attend action builder
Retorna
Tip
Tipo: AlarmAttendBuilder
Ejemplos
newCloseBuilder()
Create alarm close action builder
Retorna
Tip
Tipo: AlarmCloseBuilder