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 a 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 a abstract class, it must be extended to another class that defined the specific search. This class is responsible to manage execute operations request 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
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