o2g-node-sdk 1.0.0 → 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.
- package/LICENSE +21 -0
- package/README.md +230 -5
- package/dist/o2g-node-sdk.js +41601 -1
- package/dist/o2g-node-sdk.js.map +1 -1
- package/package.json +40 -8
- package/dist/ErrorInfo.d.ts +0 -87
- package/dist/host.d.ts +0 -17
- package/dist/o2g-analytics.d.ts +0 -66
- package/dist/o2g-cc-agent.d.ts +0 -247
- package/dist/o2g-cc-mngt.d.ts +0 -32
- package/dist/o2g-cc-pilot.d.ts +0 -42
- package/dist/o2g-comlog.d.ts +0 -173
- package/dist/o2g-directory.d.ts +0 -88
- package/dist/o2g-eventSummary.d.ts +0 -33
- package/dist/o2g-maint.d.ts +0 -48
- package/dist/o2g-messaging.d.ts +0 -115
- package/dist/o2g-node-sdk.d.ts +0 -159
- package/dist/o2g-pbx-mngt.d.ts +0 -146
- package/dist/o2g-phone-set-prog.d.ts +0 -29
- package/dist/o2g-routing.d.ts +0 -267
- package/dist/o2g-rsi.d.ts +0 -160
- package/dist/o2g-telephony.d.ts +0 -795
- package/dist/o2g-user-mngt.d.ts +0 -42
- package/dist/o2g-users.d.ts +0 -85
- package/dist/subscription.d.ts +0 -258
- package/dist/types/analytics/call-type.d.ts +0 -24
- package/dist/types/analytics/charging-file.d.ts +0 -27
- package/dist/types/analytics/charging-result.d.ts +0 -43
- package/dist/types/analytics/charging.d.ts +0 -105
- package/dist/types/analytics/incident.d.ts +0 -46
- package/dist/types/analytics/tel-facility.d.ts +0 -44
- package/dist/types/analytics/time-range.d.ts +0 -22
- package/dist/types/cc-agent/cc-agent-events.d.ts +0 -54
- package/dist/types/cc-agent/cc-agent-types.d.ts +0 -71
- package/dist/types/cc-agent/intrusion-mode.d.ts +0 -24
- package/dist/types/cc-agent/operator-dyn-state.d.ts +0 -56
- package/dist/types/cc-agent/operator-main-state.d.ts +0 -21
- package/dist/types/cc-agent/operator-type.d.ts +0 -16
- package/dist/types/cc-mngt/calendar/abstract-calendar.d.ts +0 -7
- package/dist/types/cc-mngt/calendar/calendar.d.ts +0 -19
- package/dist/types/cc-mngt/calendar/day-of-week.d.ts +0 -33
- package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +0 -26
- package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +0 -27
- package/dist/types/cc-mngt/calendar/transition.d.ts +0 -49
- package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
- package/dist/types/cc-mngt/pilot-rule-set.d.ts +0 -27
- package/dist/types/cc-mngt/pilot-rule.d.ts +0 -14
- package/dist/types/cc-mngt/pilot.d.ts +0 -56
- package/dist/types/cc-pilot/cc-pilot-events.d.ts +0 -111
- package/dist/types/comlog/com-record.d.ts +0 -51
- package/dist/types/comlog/comlog-events.d.ts +0 -74
- package/dist/types/comlog/comlog-types.d.ts +0 -131
- package/dist/types/comlog/option.d.ts +0 -23
- package/dist/types/comlog/page.d.ts +0 -33
- package/dist/types/comlog/query-filter.d.ts +0 -44
- package/dist/types/comlog/query-result.d.ts +0 -27
- package/dist/types/comlog/reason.d.ts +0 -61
- package/dist/types/comlog/role.d.ts +0 -17
- package/dist/types/common/common-types.d.ts +0 -78
- package/dist/types/directory/criteria.d.ts +0 -90
- package/dist/types/directory/directory-types.d.ts +0 -44
- package/dist/types/directory/filter-item.d.ts +0 -21
- package/dist/types/directory/operation-filter.d.ts +0 -21
- package/dist/types/events/events.d.ts +0 -54
- package/dist/types/eventsummary/event-summary-counter.d.ts +0 -44
- package/dist/types/eventsummary/event-summary-events.d.ts +0 -15
- package/dist/types/maint/maint-events.d.ts +0 -51
- package/dist/types/maint/maint-types.d.ts +0 -162
- package/dist/types/messaging/messaging-types.d.ts +0 -120
- package/dist/types/pbxmngt/attribute-filter.d.ts +0 -30
- package/dist/types/pbxmngt/attribute-type.d.ts +0 -34
- package/dist/types/pbxmngt/filter.d.ts +0 -46
- package/dist/types/pbxmngt/model.d.ts +0 -63
- package/dist/types/pbxmngt/pbx-attr-map.d.ts +0 -91
- package/dist/types/pbxmngt/pbx-attribute.d.ts +0 -87
- package/dist/types/pbxmngt/pbx-object.d.ts +0 -45
- package/dist/types/pbxmngt/pbxmngt-events.d.ts +0 -59
- package/dist/types/pbxmngt/pbxmngt-types.d.ts +0 -14
- package/dist/types/phoneset/device-key.d.ts +0 -27
- package/dist/types/phoneset/phoneset-types.d.ts +0 -17
- package/dist/types/phoneset/pin-control.d.ts +0 -21
- package/dist/types/phoneset/pin.d.ts +0 -50
- package/dist/types/phoneset/programmable-key.d.ts +0 -23
- package/dist/types/phoneset/softkey.d.ts +0 -17
- package/dist/types/routing/destination.d.ts +0 -19
- package/dist/types/routing/forward.d.ts +0 -51
- package/dist/types/routing/overflow.d.ts +0 -42
- package/dist/types/routing/routing-capability.d.ts +0 -31
- package/dist/types/routing/routing-events.d.ts +0 -15
- package/dist/types/routing/routing-state.d.ts +0 -67
- package/dist/types/routing/routing-types.d.ts +0 -10
- package/dist/types/rsi/add-digit-coll-criteria.d.ts +0 -16
- package/dist/types/rsi/collection-cause.d.ts +0 -21
- package/dist/types/rsi/routing-caller-type.d.ts +0 -17
- package/dist/types/rsi/routing-reason.d.ts +0 -25
- package/dist/types/rsi/rsi-events.d.ts +0 -76
- package/dist/types/rsi/rsi-types.d.ts +0 -49
- package/dist/types/rsi/tones.d.ts +0 -25
- package/dist/types/telephony/RecordingAction.d.ts +0 -6
- package/dist/types/telephony/acr-skill.d.ts +0 -29
- package/dist/types/telephony/telephony-events.d.ts +0 -292
- package/dist/types/telephony/telephony-types.d.ts +0 -587
- package/dist/types/users/users-events.d.ts +0 -33
- package/dist/types/users/users-types.d.ts +0 -129
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FilterItem represents the attributes that can be used to filter a directory search.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum FilterItem {
|
|
5
|
-
/**
|
|
6
|
-
* The last name.
|
|
7
|
-
*/
|
|
8
|
-
LAST_NAME = 0,
|
|
9
|
-
/**
|
|
10
|
-
* The first name.
|
|
11
|
-
*/
|
|
12
|
-
FIRST_NAME = 1,
|
|
13
|
-
/**
|
|
14
|
-
* The phone number.
|
|
15
|
-
*/
|
|
16
|
-
PHONE_NUMBER = 2,
|
|
17
|
-
/**
|
|
18
|
-
* The login name.
|
|
19
|
-
*/
|
|
20
|
-
LOGIN_NAME = 3
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OperationFilter represents the operation that can be used to filter a directory search.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum OperationFilter {
|
|
5
|
-
/**
|
|
6
|
-
* The attribute and the given value are equals (case insensitive).
|
|
7
|
-
*/
|
|
8
|
-
EQUAL_IGNORE_CASE = 0,
|
|
9
|
-
/**
|
|
10
|
-
* The attribute begins with the value.
|
|
11
|
-
*/
|
|
12
|
-
BEGINS_WITH = 1,
|
|
13
|
-
/**
|
|
14
|
-
* The attribute contains the value.
|
|
15
|
-
*/
|
|
16
|
-
CONTAINS = 2,
|
|
17
|
-
/**
|
|
18
|
-
* The attribute ends with the value.
|
|
19
|
-
*/
|
|
20
|
-
ENDS_WITH = 3
|
|
21
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { O2GEvent } from "../../internal/events/o2g-event";
|
|
2
|
-
import { OnAgentSkillChanged, OnAgentStateChanged, OnSupervisorHelpCancelled, OnSupervisorHelpRequested } from "../cc-agent/cc-agent-events";
|
|
3
|
-
import { OnPilotCallCreated, OnPilotCallQueued, OnPilotCallRemoved } from "../cc-pilot/cc-pilot-events";
|
|
4
|
-
import { OnComRecordCreated, OnComRecordModified, OnComRecordsAck, OnComRecordsDeleted, OnComRecordsUnAck } from "../comlog/comlog-events";
|
|
5
|
-
import { OnEventSummaryUpdated } from "../eventsummary/event-summary-events";
|
|
6
|
-
import { OnCtiLinkUp, OnCtiLinkDown, OnLicenseExpiration, OnPbxLoaded, OnServerStart } from "../maint/maint-events";
|
|
7
|
-
import { OnPbxObjectInstanceCreated, OnPbxObjectInstanceDeleted, OnPbxObjectInstanceModified } from "../pbxmngt/pbxmngt-events";
|
|
8
|
-
import { OnRoutingStateChanged } from "../routing/routing-events";
|
|
9
|
-
import { OnToneGeneratedStart, OnToneGeneratedStop, OnDigitCollected, OnRouteRequest, OnRouteEnd } from "../rsi/rsi-events";
|
|
10
|
-
import { OnCallCreated, OnCallModified, OnCallRemoved, OnDeviceStateModified, OnDynamicStateChanged, OnTelephonyState, OnUserStateModified } from "../telephony/telephony-events";
|
|
11
|
-
import { OnUserCreated, OnUserInfoChanged, OnUserDeleted } from "../users/users-events";
|
|
12
|
-
export type OnChannelInformation = O2GEvent<'OnChannelInformation', {
|
|
13
|
-
text: string;
|
|
14
|
-
}>;
|
|
15
|
-
export interface EventMap {
|
|
16
|
-
OnChannelInformation: OnChannelInformation;
|
|
17
|
-
OnEventSummaryUpdated: OnEventSummaryUpdated;
|
|
18
|
-
OnUserCreated: OnUserCreated;
|
|
19
|
-
OnUserInfoChanged: OnUserInfoChanged;
|
|
20
|
-
OnUserDeleted: OnUserDeleted;
|
|
21
|
-
OnCallCreated: OnCallCreated;
|
|
22
|
-
OnCallModified: OnCallModified;
|
|
23
|
-
OnCallRemoved: OnCallRemoved;
|
|
24
|
-
OnDeviceStateModified: OnDeviceStateModified;
|
|
25
|
-
OnDynamicStateChanged: OnDynamicStateChanged;
|
|
26
|
-
OnTelephonyState: OnTelephonyState;
|
|
27
|
-
OnUserStateModified: OnUserStateModified;
|
|
28
|
-
OnRoutingStateChanged: OnRoutingStateChanged;
|
|
29
|
-
OnComRecordCreated: OnComRecordCreated;
|
|
30
|
-
OnComRecordModified: OnComRecordModified;
|
|
31
|
-
OnComRecordsDeleted: OnComRecordsDeleted;
|
|
32
|
-
OnComRecordsAck: OnComRecordsAck;
|
|
33
|
-
OnComRecordsUnAck: OnComRecordsUnAck;
|
|
34
|
-
OnCtiLinkUp: OnCtiLinkUp;
|
|
35
|
-
OnCtiLinkDown: OnCtiLinkDown;
|
|
36
|
-
OnLicenseExpiration: OnLicenseExpiration;
|
|
37
|
-
OnPbxLoaded: OnPbxLoaded;
|
|
38
|
-
OnServerStart: OnServerStart;
|
|
39
|
-
OnPbxObjectInstanceCreated: OnPbxObjectInstanceCreated;
|
|
40
|
-
OnPbxObjectInstanceDeleted: OnPbxObjectInstanceDeleted;
|
|
41
|
-
OnPbxObjectInstanceModified: OnPbxObjectInstanceModified;
|
|
42
|
-
OnAgentSkillChanged: OnAgentSkillChanged;
|
|
43
|
-
OnAgentStateChanged: OnAgentStateChanged;
|
|
44
|
-
OnSupervisorHelpCancelled: OnSupervisorHelpCancelled;
|
|
45
|
-
OnSupervisorHelpRequested: OnSupervisorHelpRequested;
|
|
46
|
-
OnPilotCallCreated: OnPilotCallCreated;
|
|
47
|
-
OnPilotCallQueued: OnPilotCallQueued;
|
|
48
|
-
OnPilotCallRemoved: OnPilotCallRemoved;
|
|
49
|
-
OnToneGeneratedStart: OnToneGeneratedStart;
|
|
50
|
-
OnToneGeneratedStop: OnToneGeneratedStop;
|
|
51
|
-
OnDigitCollected: OnDigitCollected;
|
|
52
|
-
OnRouteRequest: OnRouteRequest;
|
|
53
|
-
OnRouteEnd: OnRouteEnd;
|
|
54
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EventSummary represents event counters associated to the user. It allows a user to get its new message
|
|
3
|
-
*/
|
|
4
|
-
export type EventSummaryCounters = {
|
|
5
|
-
/**
|
|
6
|
-
* Return the number of missed calls.
|
|
7
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
8
|
-
* <p>
|
|
9
|
-
* <b>CAUTION</b>: This attribute doesn't reflect the missed call number managed by the call server itself but is related to the unanswered and non acknowledged incoming calls in the history call.
|
|
10
|
-
* Therefore, either only the explicit acknowledgment of these history com records through the communication log API service, or a new answered call with the same user will decrease this counter.
|
|
11
|
-
* Moreover, the counter is incremented for each non answered incoming call, including successive attempts from the same caller.
|
|
12
|
-
*/
|
|
13
|
-
missedCallsNb?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Return the number of new voice messages.
|
|
16
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
17
|
-
*/
|
|
18
|
-
voiceMessagesNb?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Return the number of new callback requests.
|
|
21
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
22
|
-
*/
|
|
23
|
-
callBackRequestsNb?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Return the number of new faxes.
|
|
26
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
27
|
-
*/
|
|
28
|
-
faxNb?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Return the number of new text messages.
|
|
31
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
32
|
-
*/
|
|
33
|
-
newTextNb?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Return the number of old text messages.
|
|
36
|
-
* <p>If this attribute is not specified, it means that the server is not able to provide that information.
|
|
37
|
-
*/
|
|
38
|
-
oldTextNb?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Return whether an event is waiting.
|
|
41
|
-
* <p>This flags can be used to notify the application that there are new events waiting.
|
|
42
|
-
*/
|
|
43
|
-
eventWaiting?: boolean;
|
|
44
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { O2GEvent } from "../../internal/events/o2g-event";
|
|
2
|
-
import { EventSummary } from "../../o2g-eventSummary";
|
|
3
|
-
/**
|
|
4
|
-
* Notification sent each time the user's counters have changed.
|
|
5
|
-
*/
|
|
6
|
-
export type OnEventSummaryUpdated = O2GEvent<'OnEventSummaryUpdated', {
|
|
7
|
-
/**
|
|
8
|
-
* Login name of the user (identifier which can be used for filtering).
|
|
9
|
-
*/
|
|
10
|
-
loginName: string;
|
|
11
|
-
/**
|
|
12
|
-
* The new event summary.
|
|
13
|
-
*/
|
|
14
|
-
eventSummary: EventSummary;
|
|
15
|
-
}>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { O2GEvent } from "../../internal/events/o2g-event";
|
|
2
|
-
/**
|
|
3
|
-
* Notification sent when CTI link is down. This event is sent with a 30 s minimum and 60 s maximum delay.
|
|
4
|
-
*/
|
|
5
|
-
export type OnCtiLinkDown = O2GEvent<'OnCtiLinkDown', {
|
|
6
|
-
/**
|
|
7
|
-
* the nodeId which CTI link is down.
|
|
8
|
-
*/
|
|
9
|
-
nodeId: number;
|
|
10
|
-
}>;
|
|
11
|
-
/**
|
|
12
|
-
* Notification sent when CTI link is up.
|
|
13
|
-
*/
|
|
14
|
-
export type OnCtiLinkUp = O2GEvent<'OnCtiLinkUp', {
|
|
15
|
-
/**
|
|
16
|
-
* the nodeId which CTI link is down.
|
|
17
|
-
*/
|
|
18
|
-
nodeId: number;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Notification sent when the license file will soon expire or has recently expired.
|
|
22
|
-
*/
|
|
23
|
-
export type OnLicenseExpiration = O2GEvent<'OnLicenseExpiration', {
|
|
24
|
-
/**
|
|
25
|
-
* Alarm message.
|
|
26
|
-
*/
|
|
27
|
-
message: string;
|
|
28
|
-
/**
|
|
29
|
-
* Number of days since or to expiration date: nbDays>0 means the license will expire in nb days and nbDays<0 means the license has already expired since nb days
|
|
30
|
-
*/
|
|
31
|
-
nbDays: number;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Notification sent when datas are fully loaded from an OXE.
|
|
35
|
-
*/
|
|
36
|
-
export type OnPbxLoaded = O2GEvent<'OnPbxLoaded', {
|
|
37
|
-
/**
|
|
38
|
-
* the nodeId identifier.
|
|
39
|
-
*/
|
|
40
|
-
nodeId: number;
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* Notification sent when O2G is ready (all oxe nodes are connected and loaded).
|
|
44
|
-
* To be received, this event needs a webhook url to be configured.
|
|
45
|
-
*/
|
|
46
|
-
export type OnServerStart = O2GEvent<'OnServerStart', {
|
|
47
|
-
/**
|
|
48
|
-
* the IP address of the server which starts.
|
|
49
|
-
*/
|
|
50
|
-
serverId: string;
|
|
51
|
-
}>;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConfigurationType represents the possible O2G server configurations.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ConfigurationType {
|
|
5
|
-
/**
|
|
6
|
-
* O2G Server is configured for management. An O2G server configured for
|
|
7
|
-
* management does not monitor devices on the OmniPCX Enterprise.
|
|
8
|
-
*/
|
|
9
|
-
PBX_MANAGEMENT = "PBX_MANAGEMENT",
|
|
10
|
-
/**
|
|
11
|
-
* O2G Server is configured with full services.
|
|
12
|
-
*/
|
|
13
|
-
FULL_SERVICES = "FULL_SERVICES"
|
|
14
|
-
}
|
|
15
|
-
export declare namespace ConfigurationType {
|
|
16
|
-
function isConfigurationType(value: string): value is ConfigurationType;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* ServerAddress defines an OmniPCX Enterprise address.
|
|
20
|
-
*/
|
|
21
|
-
export type ServerAddress = {
|
|
22
|
-
/**
|
|
23
|
-
* This address FQDN.
|
|
24
|
-
*/
|
|
25
|
-
fqdn: string;
|
|
26
|
-
/**
|
|
27
|
-
* This address IPv4 address.
|
|
28
|
-
*/
|
|
29
|
-
ip: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* CTILinkState represents the differents possible states of the CTI
|
|
33
|
-
* link between OmniPCX Enterprise and O2G server.
|
|
34
|
-
*/
|
|
35
|
-
export declare enum CTILinkState {
|
|
36
|
-
/**
|
|
37
|
-
* CTI Link is established with the main OmniPCX Enterprise call server.
|
|
38
|
-
*/
|
|
39
|
-
CONNECTED_MAIN = "CONNECTED_MAIN",
|
|
40
|
-
/**
|
|
41
|
-
* CTI Link is established with the standby OmniPCX Enterprise call server.
|
|
42
|
-
*/
|
|
43
|
-
CONNECTED_SECONDARY = "CONNECTED_SECONDARY",
|
|
44
|
-
/**
|
|
45
|
-
* CTI Link is not established.
|
|
46
|
-
*/
|
|
47
|
-
DISCONNECTED = "DISCONNECTED"
|
|
48
|
-
}
|
|
49
|
-
export type PbxStatus = {
|
|
50
|
-
/**
|
|
51
|
-
* The name of the OmniPCX Enterprise.
|
|
52
|
-
*/
|
|
53
|
-
name: string;
|
|
54
|
-
/**
|
|
55
|
-
* The OmniPCX Enterprise node number.
|
|
56
|
-
*/
|
|
57
|
-
nodeId: number;
|
|
58
|
-
/**
|
|
59
|
-
* The OmniPCX Enterprise main address.
|
|
60
|
-
*/
|
|
61
|
-
mainAddress: ServerAddress;
|
|
62
|
-
/**
|
|
63
|
-
* The OmniPCX Enterprise secondary address.
|
|
64
|
-
*/
|
|
65
|
-
secondaryAddress: ServerAddress;
|
|
66
|
-
/**
|
|
67
|
-
* The OmniPCX Enterprise version.
|
|
68
|
-
*/
|
|
69
|
-
version: string;
|
|
70
|
-
/**
|
|
71
|
-
* Whether this O2G is connected to this OmniPCX Enterprise node.
|
|
72
|
-
*/
|
|
73
|
-
connected: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the O2G has loaded all this OmniPCX Enterprise node's users.
|
|
76
|
-
* @see {@link Maintenance.ON_PBX_LOADED} event.
|
|
77
|
-
*/
|
|
78
|
-
loaded: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* The state of the CSTA link between the O2Gserver and this OmniPCX
|
|
81
|
-
* Enterprise node.
|
|
82
|
-
*/
|
|
83
|
-
ctiLinkState: CTILinkState;
|
|
84
|
-
/**
|
|
85
|
-
* Whether the OmniPCX Enterprise node is secured. If the OmniPCX
|
|
86
|
-
* Enterprise node is secured, the connection with the O2G server is done using
|
|
87
|
-
* SSH.
|
|
88
|
-
*/
|
|
89
|
-
secured: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* The number of monitored users on this OmniPCX Enterprise node.
|
|
92
|
-
*/
|
|
93
|
-
monitoredUserNumber: number;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* License represents an O2G license.
|
|
97
|
-
*/
|
|
98
|
-
export type License = {
|
|
99
|
-
/**
|
|
100
|
-
* The license name.
|
|
101
|
-
*/
|
|
102
|
-
name: string;
|
|
103
|
-
/**
|
|
104
|
-
* The number of licenses.
|
|
105
|
-
*/
|
|
106
|
-
total: number;
|
|
107
|
-
/**
|
|
108
|
-
* The number of licenses used.
|
|
109
|
-
*/
|
|
110
|
-
currentUsed: number;
|
|
111
|
-
/**
|
|
112
|
-
* The expiration date.
|
|
113
|
-
*/
|
|
114
|
-
expiration: string;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* SystemStatus provide a full status of the O2G server and its connections.
|
|
118
|
-
*/
|
|
119
|
-
export type SystemStatus = {
|
|
120
|
-
/**
|
|
121
|
-
* This O2G server logical address.
|
|
122
|
-
*/
|
|
123
|
-
logicalAddress: ServerAddress;
|
|
124
|
-
/**
|
|
125
|
-
* The start date of the O2G server.
|
|
126
|
-
*/
|
|
127
|
-
startDate: Date;
|
|
128
|
-
/**
|
|
129
|
-
* Whether this O2G is deployed in high availability mode.
|
|
130
|
-
*/
|
|
131
|
-
haMode: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* The FQDN of the currently active O2G server when it is configured in
|
|
134
|
-
* HA mode.
|
|
135
|
-
*/
|
|
136
|
-
primary: string;
|
|
137
|
-
/**
|
|
138
|
-
* The version of the current active O2G server when it is configured in
|
|
139
|
-
* HA mode.
|
|
140
|
-
*/
|
|
141
|
-
primaryVersion: string;
|
|
142
|
-
/**
|
|
143
|
-
* The FQDN of the backup O2G server when it is configured in HA mode.
|
|
144
|
-
*/
|
|
145
|
-
secondary: string;
|
|
146
|
-
/**
|
|
147
|
-
* The version of the backup O2G server when it is configured in HA mode.
|
|
148
|
-
*/
|
|
149
|
-
secondaryVersion: string;
|
|
150
|
-
/**
|
|
151
|
-
* The collection of OmniPCX Enterprise nodes connected to this O2G server
|
|
152
|
-
*/
|
|
153
|
-
pbxs: PbxStatus[];
|
|
154
|
-
/**
|
|
155
|
-
* The O2G server licenses.
|
|
156
|
-
*/
|
|
157
|
-
licenses: License[];
|
|
158
|
-
/**
|
|
159
|
-
* The O2G Server configuration
|
|
160
|
-
*/
|
|
161
|
-
configurationType: ConfigurationType;
|
|
162
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { PartyInfo } from "../common/common-types";
|
|
2
|
-
/**
|
|
3
|
-
* MailBox represents a mail box in a voice mail system. A voice mail is assigned to a user.
|
|
4
|
-
*/
|
|
5
|
-
export type MailBox = {
|
|
6
|
-
/**
|
|
7
|
-
* The mail box identifier.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* The mail box name.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* The mail box capabilities.
|
|
16
|
-
*/
|
|
17
|
-
capabilities: {
|
|
18
|
-
/**
|
|
19
|
-
* Whether the voicemail server can return the list of messages.
|
|
20
|
-
*/
|
|
21
|
-
listMessages: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether Voice messages can be downloaded.
|
|
24
|
-
*/
|
|
25
|
-
getMessages: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Whether Recorded messages can be downloaded.
|
|
28
|
-
*/
|
|
29
|
-
getRecord: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the voicemail server can play voice messages.
|
|
32
|
-
*/
|
|
33
|
-
play: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Whether a played voice message can be paused and resumes from the position it has been paused.
|
|
36
|
-
*/
|
|
37
|
-
pause: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Whether the media session can be terminate.
|
|
40
|
-
*/
|
|
41
|
-
hangup: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Whether the voicemail server can record voice messages.
|
|
44
|
-
*/
|
|
45
|
-
record: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Wheter a voice message can be resumed to the position it has been paused.
|
|
48
|
-
*/
|
|
49
|
-
resume: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Whether the current recording can be cancelled.
|
|
52
|
-
*/
|
|
53
|
-
cancel: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Wheter the voicemail server can forward voice messages.
|
|
56
|
-
*/
|
|
57
|
-
forward: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the voicemail server can call back the originator of the voice message.
|
|
60
|
-
*/
|
|
61
|
-
callback: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether a voice message or a record can be sent to recipients.
|
|
64
|
-
*/
|
|
65
|
-
send: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the voicemail server can send events in case of message deposit / removal.
|
|
68
|
-
*/
|
|
69
|
-
events: boolean;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* MailBoxInfo provides information on the mail box the user is
|
|
74
|
-
* connected on.
|
|
75
|
-
*
|
|
76
|
-
* @see {@link Messaging.getMailboxInfo}
|
|
77
|
-
*/
|
|
78
|
-
export type MailBoxInfo = {
|
|
79
|
-
/**
|
|
80
|
-
* The number of voice messages in this mail box.
|
|
81
|
-
*/
|
|
82
|
-
totalVoiceMsg: number;
|
|
83
|
-
/**
|
|
84
|
-
* The new voice messages in this mail box.
|
|
85
|
-
*/
|
|
86
|
-
newVoiceMsg: number;
|
|
87
|
-
/**
|
|
88
|
-
* The storage usage.
|
|
89
|
-
*/
|
|
90
|
-
storageUsage: number;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* VoiceMessage represents a message stored in a voice Mail box.
|
|
94
|
-
*/
|
|
95
|
-
export type VoiceMessage = {
|
|
96
|
-
/**
|
|
97
|
-
* The message identifier.
|
|
98
|
-
*/
|
|
99
|
-
voicemailId: string;
|
|
100
|
-
/**
|
|
101
|
-
* The party who has deposit this message.
|
|
102
|
-
*/
|
|
103
|
-
from: PartyInfo;
|
|
104
|
-
/**
|
|
105
|
-
* The message duration.
|
|
106
|
-
*/
|
|
107
|
-
duration: number;
|
|
108
|
-
/**
|
|
109
|
-
* The date this message has been deposit.
|
|
110
|
-
*/
|
|
111
|
-
date: Date;
|
|
112
|
-
/**
|
|
113
|
-
* Whether this message has been read.
|
|
114
|
-
*/
|
|
115
|
-
unread: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Whether this message has high priority.
|
|
118
|
-
*/
|
|
119
|
-
highPriority: boolean;
|
|
120
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AttributeFilter represents the possible operation to apply to an attribute to build a filter.
|
|
3
|
-
* @see {@link PbxManagement.getObjectInstances}
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AttributeFilter {
|
|
6
|
-
/**
|
|
7
|
-
* The attribute is equal to the value.
|
|
8
|
-
*/
|
|
9
|
-
Equals = 0,
|
|
10
|
-
/**
|
|
11
|
-
* The attribute starts with the value.
|
|
12
|
-
*/
|
|
13
|
-
StartsWith = 1,
|
|
14
|
-
/**
|
|
15
|
-
* The attributes ends with the value.
|
|
16
|
-
*/
|
|
17
|
-
EndsWith = 2,
|
|
18
|
-
/**
|
|
19
|
-
* The attribute is not equals to the value.
|
|
20
|
-
*/
|
|
21
|
-
NotEquals = 3,
|
|
22
|
-
/**
|
|
23
|
-
* The attribute is greather than or equals to the value.
|
|
24
|
-
*/
|
|
25
|
-
GreatherThanOrEquals = 4,
|
|
26
|
-
/**
|
|
27
|
-
* The attribute is Less than or equals to the value.
|
|
28
|
-
*/
|
|
29
|
-
LessThanOrEquals = 5
|
|
30
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AttributeType represents the possible type of an attribute.
|
|
3
|
-
* @see {@link Model}
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AttributeType {
|
|
6
|
-
/**
|
|
7
|
-
* An enumerated type.
|
|
8
|
-
*/
|
|
9
|
-
Enumerated = "Enumerated",
|
|
10
|
-
/**
|
|
11
|
-
* An octet string type.
|
|
12
|
-
*/
|
|
13
|
-
OctetString = "OctetString",
|
|
14
|
-
/**
|
|
15
|
-
* A sequence of other attributes.
|
|
16
|
-
*/
|
|
17
|
-
Sequence = "Sequence",
|
|
18
|
-
/**
|
|
19
|
-
* An integer type.
|
|
20
|
-
*/
|
|
21
|
-
Integer = "Integer",
|
|
22
|
-
/**
|
|
23
|
-
* A boolean type.
|
|
24
|
-
*/
|
|
25
|
-
Boolean = "Boolean",
|
|
26
|
-
/**
|
|
27
|
-
* A set of other attributes.
|
|
28
|
-
*/
|
|
29
|
-
Set = "Set",
|
|
30
|
-
/**
|
|
31
|
-
* A byte string type.
|
|
32
|
-
*/
|
|
33
|
-
ByteString = "ByteString"
|
|
34
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AttributeFilter } from "./attribute-filter";
|
|
2
|
-
import { PbxAttribute } from "./pbx-attribute";
|
|
3
|
-
/**
|
|
4
|
-
* Filter class represents a filter that can be used to query OmniPCX Enterprise Object instances.
|
|
5
|
-
* <p>
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* let complex = Filter.and(
|
|
9
|
-
* Filter.or(
|
|
10
|
-
* Filter.create("Station_Type", AttributeFilter.Equals, "ANALOG"),
|
|
11
|
-
* Filter.create("Station_Type", AttributeFilter.Equals, "ALE-300")
|
|
12
|
-
* ),
|
|
13
|
-
* Filter.create("Directory_Name", OperationFilter.StartsWith, "f")
|
|
14
|
-
* );
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare class Filter {
|
|
18
|
-
private _value;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
constructor(value: string);
|
|
23
|
-
get value(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Create a new filter with the specified attribute, operation and value.
|
|
26
|
-
* @param attribute the attribute, either a {@link PbxAttribute} value, or a string object
|
|
27
|
-
* @param operation the operation
|
|
28
|
-
* @param value the value to test
|
|
29
|
-
*/
|
|
30
|
-
static create(attribute: string | PbxAttribute, operation: AttributeFilter, value: string): Filter;
|
|
31
|
-
private static combineOperator;
|
|
32
|
-
/**
|
|
33
|
-
* Combine a set of filter with a logical And.
|
|
34
|
-
* @param filter1 the first filter
|
|
35
|
-
* @param filter2 the second filter
|
|
36
|
-
* @param otherFilters other optional filters
|
|
37
|
-
*/
|
|
38
|
-
static and(filter1: Filter, filter2: Filter, ...otherFilters: Filter[]): Filter;
|
|
39
|
-
/**
|
|
40
|
-
* Combine a set of filter with a logical Or.
|
|
41
|
-
* @param filter1 the first filter
|
|
42
|
-
* @param filter2 the second filter
|
|
43
|
-
* @param otherFilters other optional filters
|
|
44
|
-
*/
|
|
45
|
-
static or(filter1: Filter, filter2: Filter, ...otherFilters: Filter[]): Filter;
|
|
46
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AttributeType } from "./attribute-type";
|
|
2
|
-
import { O2GAttributeModel, O2GObjectModel } from "../../internal/types/pbxmngt/o2gpbxmngt-types";
|
|
3
|
-
export declare class OctetStringLength {
|
|
4
|
-
private readonly _min;
|
|
5
|
-
private readonly _max;
|
|
6
|
-
private constructor();
|
|
7
|
-
get min(): number;
|
|
8
|
-
get max(): number;
|
|
9
|
-
/**
|
|
10
|
-
* @ignore
|
|
11
|
-
*/
|
|
12
|
-
static parseLengthValue(value: string | null | undefined): OctetStringLength | null;
|
|
13
|
-
}
|
|
14
|
-
export declare class ModelAttribute {
|
|
15
|
-
private _name;
|
|
16
|
-
private _mandatory;
|
|
17
|
-
private _multiValue;
|
|
18
|
-
private _allowedValues;
|
|
19
|
-
private _octetStringLength;
|
|
20
|
-
private _defaultValue;
|
|
21
|
-
private _filtering;
|
|
22
|
-
private _usedWhen;
|
|
23
|
-
private _type;
|
|
24
|
-
constructor();
|
|
25
|
-
get name(): string;
|
|
26
|
-
get mandatory(): boolean;
|
|
27
|
-
get type(): AttributeType;
|
|
28
|
-
get multiValue(): boolean;
|
|
29
|
-
get allowedValues(): string[];
|
|
30
|
-
get octetStringLength(): OctetStringLength | null;
|
|
31
|
-
get defaultValue(): string;
|
|
32
|
-
get filtering(): boolean;
|
|
33
|
-
get usedWhen(): string;
|
|
34
|
-
/**
|
|
35
|
-
* @ignore
|
|
36
|
-
*/
|
|
37
|
-
static build(attr: O2GAttributeModel): ModelAttribute;
|
|
38
|
-
}
|
|
39
|
-
export declare class Model {
|
|
40
|
-
private _name;
|
|
41
|
-
private _hidden;
|
|
42
|
-
private _canCreate;
|
|
43
|
-
private _canDelete;
|
|
44
|
-
private _canSet;
|
|
45
|
-
private _canGet;
|
|
46
|
-
private _otherActions;
|
|
47
|
-
private _attributes;
|
|
48
|
-
private _children;
|
|
49
|
-
get name(): string;
|
|
50
|
-
get hidden(): boolean;
|
|
51
|
-
get canCreate(): boolean;
|
|
52
|
-
get canDelete(): boolean;
|
|
53
|
-
get canSet(): boolean;
|
|
54
|
-
get canGet(): boolean;
|
|
55
|
-
get otherActions(): string[];
|
|
56
|
-
attribute(attrName: string): ModelAttribute | undefined;
|
|
57
|
-
child(name: string): Model | undefined;
|
|
58
|
-
getMandatoryAttributes(): ModelAttribute[];
|
|
59
|
-
/**
|
|
60
|
-
* @ignore
|
|
61
|
-
*/
|
|
62
|
-
static build(o2gObjModel: O2GObjectModel): Model;
|
|
63
|
-
}
|