@voicenter-team/events-sdk 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,20 @@ declare interface Dialer {
87
87
  statistics: unknown
88
88
  }
89
89
 
90
+ /**
91
+ * Data structure for dialer event.
92
+ */
93
+ declare interface DialerEvent extends CommonEventProperties {
94
+ data: Dialer
95
+ eventName: EventNameEnum.DIALER
96
+ //reason: ExtensionEventReasonEnum // TODO: do research for dialer 'reason' prop
97
+ telephonyServerTime?: number
98
+ callerID?: string
99
+ ivrUniqueId?: string
100
+ dialStatus?: string
101
+ //cause?: ExtensionHangupCauseEnum // TODO: do research for dialer 'cause' prop
102
+ }
103
+
90
104
  declare enum DialerType {
91
105
  AUTOMATIC = "Automatic",
92
106
  IVR = "IVR"
@@ -122,6 +136,7 @@ declare interface EventDataMap {
122
136
  [EventsEnum.ALL_USERS_STATUS]: AllUsersStatusEvent
123
137
  [EventsEnum.QUEUE_EVENT]: QueueEvent
124
138
  [EventsEnum.EXTENSION_EVENT]: ExtensionEvent
139
+ [EventsEnum.DIALER_EVENT]: DialerEvent
125
140
  [EventsEnum.LOGIN_SUCCESS]: LoginSuccessEvent
126
141
  [EventsEnum.LOGIN_STATUS]: LoginStatusEvent
127
142
  [EventsEnum.KEEP_ALIVE_RESPONSE]: KeepAliveResponseEvent
@@ -134,6 +149,7 @@ declare interface EventDataMap {
134
149
  declare enum EventNameEnum {
135
150
  EXTENSION = 'extension',
136
151
  QUEUE = 'queue',
152
+ DIALER = 'dialer',
137
153
  }
138
154
 
139
155
  /**
@@ -157,7 +173,8 @@ declare enum EventsEnum {
157
173
  // In case of wrong username or password or token, you will receive a 401 (“Unauthorized”) or 500 (“Unexpected token”) http error.
158
174
  LOGIN_SUCCESS = 'loginSuccess',
159
175
  QUEUE_EVENT = 'QueueEvent',
160
- ONLINE_STATUS_EVENT = 'onlineStatusEvent'
176
+ ONLINE_STATUS_EVENT = 'onlineStatusEvent',
177
+ DIALER_EVENT = 'DialerEvent',
161
178
  }
162
179
 
163
180
  /**
@@ -175,7 +192,8 @@ declare enum EventsEnum_2 {
175
192
  LOGIN_STATUS = "loginStatus",
176
193
  LOGIN_SUCCESS = "loginSuccess",
177
194
  QUEUE_EVENT = "QueueEvent",
178
- ONLINE_STATUS_EVENT = "onlineStatusEvent"
195
+ ONLINE_STATUS_EVENT = "onlineStatusEvent",
196
+ DIALER_EVENT = "DialerEvent"
179
197
  }
180
198
 
181
199
  /**