o2g-node-sdk 1.0.1 → 2.4.0

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.
Files changed (105) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +230 -5
  3. package/dist/o2g-node-sdk.js +41601 -1
  4. package/dist/o2g-node-sdk.js.map +1 -1
  5. package/package.json +40 -8
  6. package/dist/ErrorInfo.d.ts +0 -87
  7. package/dist/host.d.ts +0 -17
  8. package/dist/o2g-analytics.d.ts +0 -66
  9. package/dist/o2g-cc-agent.d.ts +0 -247
  10. package/dist/o2g-cc-mngt.d.ts +0 -32
  11. package/dist/o2g-cc-pilot.d.ts +0 -42
  12. package/dist/o2g-comlog.d.ts +0 -173
  13. package/dist/o2g-directory.d.ts +0 -88
  14. package/dist/o2g-eventSummary.d.ts +0 -33
  15. package/dist/o2g-maint.d.ts +0 -48
  16. package/dist/o2g-messaging.d.ts +0 -115
  17. package/dist/o2g-node-sdk.d.ts +0 -159
  18. package/dist/o2g-pbx-mngt.d.ts +0 -146
  19. package/dist/o2g-phone-set-prog.d.ts +0 -29
  20. package/dist/o2g-routing.d.ts +0 -267
  21. package/dist/o2g-rsi.d.ts +0 -160
  22. package/dist/o2g-telephony.d.ts +0 -795
  23. package/dist/o2g-user-mngt.d.ts +0 -42
  24. package/dist/o2g-users.d.ts +0 -85
  25. package/dist/subscription.d.ts +0 -258
  26. package/dist/types/analytics/call-type.d.ts +0 -24
  27. package/dist/types/analytics/charging-file.d.ts +0 -27
  28. package/dist/types/analytics/charging-result.d.ts +0 -43
  29. package/dist/types/analytics/charging.d.ts +0 -105
  30. package/dist/types/analytics/incident.d.ts +0 -46
  31. package/dist/types/analytics/tel-facility.d.ts +0 -44
  32. package/dist/types/analytics/time-range.d.ts +0 -22
  33. package/dist/types/cc-agent/cc-agent-events.d.ts +0 -54
  34. package/dist/types/cc-agent/cc-agent-types.d.ts +0 -71
  35. package/dist/types/cc-agent/intrusion-mode.d.ts +0 -24
  36. package/dist/types/cc-agent/operator-dyn-state.d.ts +0 -56
  37. package/dist/types/cc-agent/operator-main-state.d.ts +0 -21
  38. package/dist/types/cc-agent/operator-type.d.ts +0 -16
  39. package/dist/types/cc-mngt/calendar/abstract-calendar.d.ts +0 -7
  40. package/dist/types/cc-mngt/calendar/calendar.d.ts +0 -19
  41. package/dist/types/cc-mngt/calendar/day-of-week.d.ts +0 -33
  42. package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +0 -26
  43. package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +0 -27
  44. package/dist/types/cc-mngt/calendar/transition.d.ts +0 -49
  45. package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
  46. package/dist/types/cc-mngt/pilot-rule-set.d.ts +0 -27
  47. package/dist/types/cc-mngt/pilot-rule.d.ts +0 -14
  48. package/dist/types/cc-mngt/pilot.d.ts +0 -56
  49. package/dist/types/cc-pilot/cc-pilot-events.d.ts +0 -111
  50. package/dist/types/comlog/com-record.d.ts +0 -51
  51. package/dist/types/comlog/comlog-events.d.ts +0 -74
  52. package/dist/types/comlog/comlog-types.d.ts +0 -131
  53. package/dist/types/comlog/option.d.ts +0 -23
  54. package/dist/types/comlog/page.d.ts +0 -33
  55. package/dist/types/comlog/query-filter.d.ts +0 -44
  56. package/dist/types/comlog/query-result.d.ts +0 -27
  57. package/dist/types/comlog/reason.d.ts +0 -61
  58. package/dist/types/comlog/role.d.ts +0 -17
  59. package/dist/types/common/common-types.d.ts +0 -78
  60. package/dist/types/directory/criteria.d.ts +0 -90
  61. package/dist/types/directory/directory-types.d.ts +0 -44
  62. package/dist/types/directory/filter-item.d.ts +0 -21
  63. package/dist/types/directory/operation-filter.d.ts +0 -21
  64. package/dist/types/events/events.d.ts +0 -54
  65. package/dist/types/events/o2g-event.d.ts +0 -3
  66. package/dist/types/eventsummary/event-summary-counter.d.ts +0 -44
  67. package/dist/types/eventsummary/event-summary-events.d.ts +0 -15
  68. package/dist/types/maint/maint-events.d.ts +0 -51
  69. package/dist/types/maint/maint-types.d.ts +0 -162
  70. package/dist/types/messaging/messaging-types.d.ts +0 -120
  71. package/dist/types/pbxmngt/attribute-filter.d.ts +0 -30
  72. package/dist/types/pbxmngt/attribute-type.d.ts +0 -34
  73. package/dist/types/pbxmngt/filter.d.ts +0 -46
  74. package/dist/types/pbxmngt/model.d.ts +0 -63
  75. package/dist/types/pbxmngt/pbx-attr-map.d.ts +0 -91
  76. package/dist/types/pbxmngt/pbx-attribute.d.ts +0 -87
  77. package/dist/types/pbxmngt/pbx-object.d.ts +0 -45
  78. package/dist/types/pbxmngt/pbxmngt-events.d.ts +0 -59
  79. package/dist/types/pbxmngt/pbxmngt-types.d.ts +0 -14
  80. package/dist/types/phoneset/device-key.d.ts +0 -27
  81. package/dist/types/phoneset/phoneset-types.d.ts +0 -17
  82. package/dist/types/phoneset/pin-control.d.ts +0 -21
  83. package/dist/types/phoneset/pin.d.ts +0 -50
  84. package/dist/types/phoneset/programmable-key.d.ts +0 -23
  85. package/dist/types/phoneset/softkey.d.ts +0 -17
  86. package/dist/types/routing/destination.d.ts +0 -19
  87. package/dist/types/routing/forward.d.ts +0 -51
  88. package/dist/types/routing/overflow.d.ts +0 -42
  89. package/dist/types/routing/routing-capability.d.ts +0 -31
  90. package/dist/types/routing/routing-events.d.ts +0 -15
  91. package/dist/types/routing/routing-state.d.ts +0 -67
  92. package/dist/types/routing/routing-types.d.ts +0 -10
  93. package/dist/types/rsi/add-digit-coll-criteria.d.ts +0 -16
  94. package/dist/types/rsi/collection-cause.d.ts +0 -21
  95. package/dist/types/rsi/routing-caller-type.d.ts +0 -17
  96. package/dist/types/rsi/routing-reason.d.ts +0 -25
  97. package/dist/types/rsi/rsi-events.d.ts +0 -76
  98. package/dist/types/rsi/rsi-types.d.ts +0 -49
  99. package/dist/types/rsi/tones.d.ts +0 -25
  100. package/dist/types/telephony/RecordingAction.d.ts +0 -6
  101. package/dist/types/telephony/acr-skill.d.ts +0 -29
  102. package/dist/types/telephony/telephony-events.d.ts +0 -292
  103. package/dist/types/telephony/telephony-types.d.ts +0 -587
  104. package/dist/types/users/users-events.d.ts +0 -33
  105. package/dist/types/users/users-types.d.ts +0 -129
@@ -1,67 +0,0 @@
1
- import { O2GRoutingState } from "../../internal/types/routing/o2grouting-types";
2
- import { Forward } from "./forward";
3
- import { Overflow } from "./overflow";
4
- import { DndState } from "./routing-types";
5
- /**
6
- * RoutingState represente a user routing state. A routing state is
7
- * composed of four elements:
8
- * <table>
9
- * <caption>Routing state elements</caption>
10
- * <tr>
11
- * <td>Remote extension activation</td>
12
- * <td>When the user is configured with a remote extension, he has the
13
- * possibility to activate or deactivate this remote extension. when the remote
14
- * extension is de-activated, call are not presented on the mobile device.</td>
15
- * </tr>
16
- * <tr>
17
- * <td>Forward</td>
18
- * <td>The user can configure a forward, on his voice mail if any or on any
19
- * other number (depending on the cOmniPCX Enterprise configuration).</td>
20
- * </tr>
21
- * <tr>
22
- * <td>Overflow</td>
23
- * <td>The user can configure an overflow on his voice mail.
24
- * If a forward is configured, it is considered prior the overflow.</td>
25
- * </tr>
26
- * <tr>
27
- * <td>Do Not Disturb</td>
28
- * <td>When Do Not Disturb (DND) is activated, call are not presented to the
29
- * user.</td>
30
- * </tr>
31
- *
32
- * </table>
33
- */
34
- export declare class RoutingState {
35
- private _dndState;
36
- private _forward;
37
- private _overflow;
38
- private _remoteExtensionActivated;
39
- /**
40
- * @internal
41
- */
42
- private constructor();
43
- /**
44
- * Return the do not disturb state.
45
- */
46
- get dndState(): DndState;
47
- /**
48
- * Returns the forward.
49
- */
50
- get forward(): Forward;
51
- /**
52
- * Returns the overflow.
53
- */
54
- get overflow(): Overflow;
55
- /**
56
- * Returns whether the routing on remote extension is activated.
57
- */
58
- get remoteExtensionActivated(): boolean;
59
- /**
60
- * @ignore
61
- */
62
- static build(routingState: O2GRoutingState): RoutingState;
63
- /**
64
- * @ignore
65
- */
66
- private static getRemoteExtensionActivation;
67
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Represents the DoNotDisturb state. When the DoNotDisturb is activated for a
3
- * user, he does not receive any call.
4
- */
5
- export type DndState = {
6
- /**
7
- * Whether the DoNotDisturb is activated.
8
- */
9
- activate: boolean;
10
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * AdditionalDigitCollectionCriteria is used to define a digit collection strategy.
3
- */
4
- export declare class AdditionalDigitCollectionCriteria {
5
- private abortDigits;
6
- private ignoreDigits;
7
- private backspaceDigits;
8
- private termDigits;
9
- private resetDigits;
10
- private startTimeout;
11
- private digitTimeout;
12
- /**
13
- * Constructs a new empty AdditionalDigitCollectionCriteria
14
- */
15
- constructor();
16
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * CollectionCause represents the reason the digits collection ended.
3
- */
4
- export declare enum CollectionCause {
5
- /**
6
- * A specific tone specified in the retrieval criteria is received.
7
- */
8
- FLUSCHAR_RECEIVED = "FLUSCHAR_RECEIVED",
9
- /**
10
- * The number of tones specified in the retrieval criteria is received.
11
- */
12
- CHAR_COUNT_REACHED = "CHAR_COUNT_REACHED",
13
- /**
14
- * The timeout specified in the retrieval criteria has elapsed.
15
- */
16
- TIMEOUT = "TIMEOUT",
17
- /**
18
- * An error occurs.
19
- */
20
- SF_TERMINATED = "SF_TERMINATED"
21
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * RoutingCallerType represents the call origin of a route request.
3
- */
4
- export declare enum RoutingCallerType {
5
- /**
6
- * The caller is internal.
7
- */
8
- INTERNAL = "INTERNAL",
9
- /**
10
- * The caller is external.
11
- */
12
- EXTERNAL = "EXTERNAL",
13
- /**
14
- * The caller origin is unknown.
15
- */
16
- UNKNOWN = "UNKNOWN"
17
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * RoutingReason represents the possible reason associated to a route request.
3
- */
4
- export declare enum RoutingReason {
5
- /**
6
- * First route request.
7
- */
8
- INITIAL = "INITIAL",
9
- /**
10
- * The call is rerouted because of no answer from initial route.
11
- */
12
- NOANSWER = "NOANSWER",
13
- /**
14
- * The call is rerouted because of busy initial route.
15
- */
16
- BUSY = "BUSY",
17
- /**
18
- * The call is rerouted because of not obtainable initial route.
19
- */
20
- NOT_OBTAINABLE = "NOT_OBTAINABLE",
21
- /**
22
- * Unknown reason.
23
- */
24
- UNKNOWN = "UNKNOWN"
25
- }
@@ -1,76 +0,0 @@
1
- import { O2GEvent } from "../events/o2g-event";
2
- import { RoutingReason } from "./routing-reason";
3
- import { Tones } from "./tones";
4
- /**
5
- * Notification sent when a data collection has ended.
6
- */
7
- export type OnToneGeneratedStop = O2GEvent<'OnToneGeneratedStop', {
8
- /**
9
- * The RSI point extension number.
10
- */
11
- rsiPoint: string;
12
- /**
13
- * The reference of the call on which the tones are played.
14
- */
15
- callRef: string;
16
- }>;
17
- /**
18
- * This event is sent from a RSI point when a tone generation is started.
19
- */
20
- export type OnToneGeneratedStart = O2GEvent<'OnToneGeneratedStart', {
21
- /**
22
- * The RSI point extension number.
23
- */
24
- rsiPoint: string;
25
- /**
26
- * The reference of the call on which the tones are played.
27
- */
28
- callRef: string;
29
- /**
30
- * The tones types
31
- */
32
- tonesTypes: Tones;
33
- }>;
34
- /**
35
- * This event is raised when a data collection has ended..
36
- */
37
- export type OnDigitCollected = O2GEvent<'OnDigitCollected', {
38
- /**
39
- * The RSI point extension number.
40
- */
41
- rsiPoint: string;
42
- /**
43
- * The reference of the call on which the tones are played.
44
- */
45
- callRef: string;
46
- }>;
47
- /**
48
- * This event is sent from a Routing point to request a route.
49
- */
50
- export type OnRouteRequest = O2GEvent<'OnRouteRequest', {
51
- /**
52
- * The RSI point extension number.
53
- */
54
- rsiPoint: string;
55
- }>;
56
- /**
57
- * This event is sent from a Routing point to close a route session (routing crid is no longer valid).
58
- */
59
- export type OnRouteEnd = O2GEvent<'OnRouteEnd', {
60
- /**
61
- * The RSI point extension number.
62
- */
63
- rsiPoint: string;
64
- /**
65
- * The routing session unique identifier.
66
- */
67
- routeCrid: string;
68
- /**
69
- * The routed call reference.
70
- */
71
- routedCallRef: string;
72
- /**
73
- * The routing reason.
74
- */
75
- reason: RoutingReason;
76
- }>;
@@ -1,49 +0,0 @@
1
- /**
2
- * RsiPoint represents a RSI point. When a call is receive by a RSI
3
- * routing point, a {@link Rsi.ON_ROUTE_REQUEST} is send to the application.
4
- */
5
- export type RsiPoint = {
6
- /**
7
- * This rsi point extension number.
8
- */
9
- number: string;
10
- /**
11
- * The name of this rsi point.
12
- */
13
- name: string;
14
- /**
15
- * The OmniPcx Enterprise node on which this RSI point is configured.
16
- */
17
- node: number;
18
- /**
19
- * Whether this rsi point is registered.
20
- */
21
- registered: boolean;
22
- };
23
- /**
24
- * RouteSession represents a route request session between a RSI point
25
- * and an application.
26
- * <p>
27
- * A route session is initiated by a RSI point by sending a
28
- * {@link Rsi.ON_ROUTE_REQUEST}.
29
- * The application selects a route and answer the request by calling
30
- * {@link Rsi.routeSelect}
31
- */
32
- export type RouteSession = {
33
- /**
34
- * This Route session unique idnetifier.
35
- */
36
- routeCrid: string;
37
- /**
38
- * The call extension number.
39
- */
40
- caller: string;
41
- /**
42
- * The called number.
43
- */
44
- called: string;
45
- /**
46
- * The routed call reference.
47
- */
48
- routedCallRef: string;
49
- };
@@ -1,25 +0,0 @@
1
- /**
2
- * Tones represents tones that can be generated by a RSI point.
3
- */
4
- export declare enum Tones {
5
- /**
6
- * The busy tone.
7
- */
8
- BUSY = "BUSY",
9
- /**
10
- * The ring back tone.
11
- */
12
- RINGBACK = "RINGBACK",
13
- /**
14
- * The silent tone.
15
- */
16
- SILENCE = "SILENCE",
17
- /**
18
- * The music tone.
19
- */
20
- MUSIC = "MUSIC",
21
- /**
22
- * The annoucement tone.
23
- */
24
- ANNOUNCEMENT = "ANNOUNCEMENT"
25
- }
@@ -1,6 +0,0 @@
1
- export declare enum RecordingAction {
2
- START = "Start",
3
- STOP = "Stop",
4
- PAUSE = "Pause",
5
- RESUME = "Resume"
6
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * AcrSkill represents a skill associated to a call. When the "Advanced Call Routing" call distribution strategy is configured,
3
- * the CCD agent are selected according to their {@link AgentSkill}.
4
- * The selected agent skills must match the skill required by the call.
5
- */
6
- export declare class AcrSkill {
7
- private skillNumber;
8
- private acrStatus;
9
- private expertEvalLevel;
10
- /**
11
- * Construct a new AcrSkill with the specified parameters.
12
- * @param number the skill number
13
- * @param level the expected skill level
14
- * @param mandatory whether this skill is a mandatory skill.
15
- */
16
- constructor(number: number, level: number, mandatory: boolean);
17
- /**
18
- * Returns the skill number
19
- */
20
- get number(): number;
21
- /**
22
- * Returns whether this skill is a mandatory skill.
23
- */
24
- get mandatory(): boolean;
25
- /**
26
- * Returns the skill level.
27
- */
28
- get evalLevel(): number;
29
- }
@@ -1,292 +0,0 @@
1
- import { O2GEvent } from "../events/o2g-event";
2
- import { CallData, DeviceCapabilities, DeviceState, HuntingGroupStatus, Leg, Participant, TelephonicState, UserState } from "../telephony/telephony-types";
3
- /**
4
- * Lists the different call causes.
5
- */
6
- export declare enum CallCause {
7
- /**
8
- * Caller in a two-party call has disconnected before the call was answered.
9
- **/
10
- ABANDONED = "ABANDONED",
11
- /**
12
- * The call is receiving the network congestion tone.
13
- **/
14
- ALL_TRUNK_BUSY = "ALL_TRUNK_BUSY",
15
- /**
16
- * The call is receiving the busy tone.
17
- **/
18
- BUSY = "BUSY",
19
- /**
20
- * One party in a two-party call has disconnected after the call was answered.
21
- **/
22
- CLEARED = "CLEARED",
23
- /**
24
- * One party has left the conference call.
25
- **/
26
- PARTICIPANT_LEFT = "PARTICIPANT_LEFT",
27
- /**
28
- * This is a multi-party call.
29
- **/
30
- CONFERENCED = "CONFERENCED",
31
- /**
32
- * The call is receiving the invalid number tone.
33
- **/
34
- INVALID_NUMBER = "INVALID_NUMBER",
35
- /**
36
- * The destination cannot be reached.
37
- **/
38
- DESTINATION_NOT_OBTAINABLE = "DESTINATION_NOT_OBTAINABLE",
39
- /**
40
- * The device is in DND.
41
- **/
42
- DO_NOT_DISTURB = "DO_NOT_DISTURB",
43
- /**
44
- * The call has been forwarded.
45
- **/
46
- FORWARDED = "FORWARDED",
47
- /**
48
- * The call has been hanged up before answer.
49
- **/
50
- NOT_ANSWERED = "NOT_ANSWERED",
51
- /**
52
- * The call has been picked up.
53
- **/
54
- PICKED_UP = "PICKED_UP",
55
- /**
56
- * The call has been parked.
57
- **/
58
- PARKED = "PARKED",
59
- /**
60
- * The call has been redirected.
61
- **/
62
- REDIRECTED = "REDIRECTED",
63
- /**
64
- * The call goes on overflow destination.
65
- **/
66
- OVERFLOWN = "OVERFLOWN",
67
- /**
68
- * This is a transferred call.
69
- **/
70
- TRANSFERRED = "TRANSFERRED",
71
- /**
72
- * Unknown cause.
73
- **/
74
- UNKNOWN = "UNKNOWN",
75
- /**
76
- * Picked up tandem.
77
- **/
78
- PICKED_UP_TANDEM = "PICKED_UP_TANDEM",
79
- /**
80
- * The call is a call back.
81
- **/
82
- CALL_BACK = "CALL_BACK",
83
- /**
84
- * The call is recall (e.g. on HELD call indicates that device rings back).
85
- **/
86
- RECALL = "RECALL",
87
- /**
88
- * CCD context: call distribution
89
- **/
90
- DISTRIBUTED = "DISTRIBUTED",
91
- /**
92
- * CCD context: call enters in distribution
93
- **/
94
- ACD_ENTER_DISTRIBUTION = "ACD_ENTER_DISTRIBUTION",
95
- /**
96
- * CCD context: pilot is not open
97
- **/
98
- RESOURCES_NOT_AVAILABLE = "RESOURCES_NOT_AVAILABLE",
99
- /**
100
- * CCD context: supervisor is listening the agent conversation
101
- **/
102
- SUPERVISOR_LISTENING = "SUPERVISOR_LISTENING",
103
- /**
104
- * CCD context: supervisor is fully intruded in the agent conversation
105
- **/
106
- SUPERVISOR_INTRUSION = "SUPERVISOR_INTRUSION",
107
- /**
108
- * CCD context: supervisor can speak to the agent
109
- **/
110
- SUPERVISOR_RESTRICT_INTRUSION = "SUPERVISOR_RESTRICT_INTRUSION",
111
- /**
112
- * CCD context: No available agent
113
- **/
114
- NO_AVAILABLE_AGENT = "NO_AVAILABLE_AGENT",
115
- /**
116
- * Physical phone set device is off the hook
117
- **/
118
- LOCKOUT = "LOCKOUT"
119
- }
120
- /**
121
- * This notification indicates that a new call has been created.
122
- */
123
- export type OnCallCreated = O2GEvent<'OnCallCreated', {
124
- /**
125
- * Login name of the user receiving the event.
126
- */
127
- loginName: string;
128
- /**
129
- * The call reference.
130
- */
131
- callRef: string;
132
- /**
133
- * Cause of the event.
134
- */
135
- cause: CallCause;
136
- /**
137
- * Call data.
138
- */
139
- callData: CallData;
140
- /**
141
- * Initiator of the call : correspond to one participant of the call, the matching can be done with the participantId value of the participants.
142
- */
143
- initiator: string;
144
- /**
145
- * Legs associated to this call.
146
- */
147
- legs: Leg[];
148
- /**
149
- * Participants associated to this call.
150
- */
151
- participants: Participant[];
152
- /**
153
- * Devices capabilities (if not specified, it means there is no modification).
154
- */
155
- deviceCapabilities: DeviceCapabilities[];
156
- }>;
157
- /**
158
- * This notification indicates that an existing call has been modified.
159
- */
160
- export type OnCallModified = O2GEvent<'OnCallModified', {
161
- /**
162
- * Login name of the user receiving the event.
163
- */
164
- loginName: string;
165
- /**
166
- * The call reference.
167
- */
168
- callRef: string;
169
- /**
170
- * Cause of the event.
171
- */
172
- cause: CallCause;
173
- /**
174
- * If specified, this call reference indicates that the "callRef" replace "previousCallRef".
175
- * This also indicates that "previousCallRef" has been removed (call removed event is not generated)
176
- */
177
- previousCallRef: string;
178
- /**
179
- * This call reference appears when a call is released, the replacedByCallRef if present indicates that the "callRef" is replaced by this one.
180
- */
181
- replacedByCallRef: string;
182
- /**
183
- * Call data.
184
- */
185
- callData: CallData;
186
- /**
187
- * Legs modified (if not specified, it means there is no modification).
188
- */
189
- modifiedLegs: Leg[];
190
- /**
191
- * Legs added (if not specified, it means there is no added leg).
192
- */
193
- addedLegs: Leg[];
194
- /**
195
- * Legs removed (if not specified, it means there is no removed leg).
196
- */
197
- removedLeg: Leg[];
198
- /**
199
- * Participants modified (if not specified, it means there is no modification).
200
- */
201
- modifiedParticipants: Participant[];
202
- /**
203
- * Participants added (if not specified, it means there is no added participant).
204
- */
205
- addedParticipants: Participant[];
206
- /**
207
- * Participants removed (if not specified, it means there is no removed participant).
208
- */
209
- removedParticipants: string[];
210
- /**
211
- * Devices capabilities (if not specified, it means there is no modification).
212
- */
213
- deviceCapabilities: DeviceCapabilities[];
214
- }>;
215
- /**
216
- * This notification indicates that a call has been removed (hang up, transfer...).
217
- */
218
- export type OnCallRemoved = O2GEvent<'OnCallRemoved', {
219
- /**
220
- * Login name of the user receiving the event.
221
- */
222
- loginName: string;
223
- /**
224
- * The call reference.
225
- */
226
- callRef: string;
227
- /**
228
- * Cause of the event.
229
- */
230
- cause: CallCause;
231
- /**
232
- * If the call is forwarded or redirected, this field indicate the new destination number.
233
- * This number is a user phone number if the destination is a device associated to an user, else the number is the number provided by the system.
234
- */
235
- newDestination: string;
236
- /**
237
- * Devices capabilities (if not specified, it means there is no modification).
238
- */
239
- deviceCapabilities: DeviceCapabilities[];
240
- }>;
241
- /**
242
- * This notification indicates that device's state has been modified.
243
- */
244
- export type OnDeviceStateModified = O2GEvent<'OnDeviceStateModified', {
245
- /**
246
- * Login name of the user receiving the event.
247
- */
248
- loginName: string;
249
- /**
250
- * Device state modified.
251
- */
252
- deviceStates: DeviceState[];
253
- }>;
254
- /**
255
- * This notification indicates the user's dynamic state change. (hunting group logon state)
256
- */
257
- export type OnDynamicStateChanged = O2GEvent<'OnDynamicStateChanged', {
258
- /**
259
- * Login name of the user receiving the event.
260
- */
261
- loginName: string;
262
- /**
263
- * User hg state.
264
- */
265
- huntingGroupState: HuntingGroupStatus;
266
- }>;
267
- /**
268
- * This notification indicates the telephonic state (calls[] and deviceCapabilities[]) of a user.
269
- */
270
- export type OnTelephonyState = O2GEvent<'OnTelephonyState', {
271
- /**
272
- * Login name of the user receiving the event.
273
- */
274
- loginName: string;
275
- /**
276
- * Telephonic state of the user.
277
- */
278
- state: TelephonicState;
279
- }>;
280
- /**
281
- * This notification indicates that user's state has been modified (FREE, BUSY ...).
282
- */
283
- export type OnUserStateModified = O2GEvent<'OnUserStateModified', {
284
- /**
285
- * Login name of the user receiving the event.
286
- */
287
- loginName: string;
288
- /**
289
- * User state.
290
- */
291
- state: UserState;
292
- }>;