o2g-node-sdk 1.0.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/README.md +10 -0
- package/dist/ErrorInfo.d.ts +87 -0
- package/dist/host.d.ts +17 -0
- package/dist/o2g-analytics.d.ts +66 -0
- package/dist/o2g-cc-agent.d.ts +247 -0
- package/dist/o2g-cc-mngt.d.ts +32 -0
- package/dist/o2g-cc-pilot.d.ts +42 -0
- package/dist/o2g-comlog.d.ts +173 -0
- package/dist/o2g-directory.d.ts +88 -0
- package/dist/o2g-eventSummary.d.ts +33 -0
- package/dist/o2g-maint.d.ts +48 -0
- package/dist/o2g-messaging.d.ts +115 -0
- package/dist/o2g-node-sdk.d.ts +159 -0
- package/dist/o2g-node-sdk.js +2 -0
- package/dist/o2g-node-sdk.js.map +1 -0
- package/dist/o2g-pbx-mngt.d.ts +146 -0
- package/dist/o2g-phone-set-prog.d.ts +29 -0
- package/dist/o2g-routing.d.ts +267 -0
- package/dist/o2g-rsi.d.ts +160 -0
- package/dist/o2g-telephony.d.ts +795 -0
- package/dist/o2g-user-mngt.d.ts +42 -0
- package/dist/o2g-users.d.ts +85 -0
- package/dist/subscription.d.ts +258 -0
- package/dist/types/analytics/call-type.d.ts +24 -0
- package/dist/types/analytics/charging-file.d.ts +27 -0
- package/dist/types/analytics/charging-result.d.ts +43 -0
- package/dist/types/analytics/charging.d.ts +105 -0
- package/dist/types/analytics/incident.d.ts +46 -0
- package/dist/types/analytics/tel-facility.d.ts +44 -0
- package/dist/types/analytics/time-range.d.ts +22 -0
- package/dist/types/cc-agent/cc-agent-events.d.ts +54 -0
- package/dist/types/cc-agent/cc-agent-types.d.ts +71 -0
- package/dist/types/cc-agent/intrusion-mode.d.ts +24 -0
- package/dist/types/cc-agent/operator-dyn-state.d.ts +56 -0
- package/dist/types/cc-agent/operator-main-state.d.ts +21 -0
- package/dist/types/cc-agent/operator-type.d.ts +16 -0
- package/dist/types/cc-mngt/calendar/abstract-calendar.d.ts +7 -0
- package/dist/types/cc-mngt/calendar/calendar.d.ts +19 -0
- package/dist/types/cc-mngt/calendar/day-of-week.d.ts +33 -0
- package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +26 -0
- package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +27 -0
- package/dist/types/cc-mngt/calendar/transition.d.ts +49 -0
- package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
- package/dist/types/cc-mngt/pilot-rule-set.d.ts +27 -0
- package/dist/types/cc-mngt/pilot-rule.d.ts +14 -0
- package/dist/types/cc-mngt/pilot.d.ts +56 -0
- package/dist/types/cc-pilot/cc-pilot-events.d.ts +111 -0
- package/dist/types/comlog/com-record.d.ts +51 -0
- package/dist/types/comlog/comlog-events.d.ts +74 -0
- package/dist/types/comlog/comlog-types.d.ts +131 -0
- package/dist/types/comlog/option.d.ts +23 -0
- package/dist/types/comlog/page.d.ts +33 -0
- package/dist/types/comlog/query-filter.d.ts +44 -0
- package/dist/types/comlog/query-result.d.ts +27 -0
- package/dist/types/comlog/reason.d.ts +61 -0
- package/dist/types/comlog/role.d.ts +17 -0
- package/dist/types/common/common-types.d.ts +78 -0
- package/dist/types/directory/criteria.d.ts +90 -0
- package/dist/types/directory/directory-types.d.ts +44 -0
- package/dist/types/directory/filter-item.d.ts +21 -0
- package/dist/types/directory/operation-filter.d.ts +21 -0
- package/dist/types/events/events.d.ts +54 -0
- package/dist/types/eventsummary/event-summary-counter.d.ts +44 -0
- package/dist/types/eventsummary/event-summary-events.d.ts +15 -0
- package/dist/types/maint/maint-events.d.ts +51 -0
- package/dist/types/maint/maint-types.d.ts +162 -0
- package/dist/types/messaging/messaging-types.d.ts +120 -0
- package/dist/types/pbxmngt/attribute-filter.d.ts +30 -0
- package/dist/types/pbxmngt/attribute-type.d.ts +34 -0
- package/dist/types/pbxmngt/filter.d.ts +46 -0
- package/dist/types/pbxmngt/model.d.ts +63 -0
- package/dist/types/pbxmngt/pbx-attr-map.d.ts +91 -0
- package/dist/types/pbxmngt/pbx-attribute.d.ts +87 -0
- package/dist/types/pbxmngt/pbx-object.d.ts +45 -0
- package/dist/types/pbxmngt/pbxmngt-events.d.ts +59 -0
- package/dist/types/pbxmngt/pbxmngt-types.d.ts +14 -0
- package/dist/types/phoneset/device-key.d.ts +27 -0
- package/dist/types/phoneset/phoneset-types.d.ts +17 -0
- package/dist/types/phoneset/pin-control.d.ts +21 -0
- package/dist/types/phoneset/pin.d.ts +50 -0
- package/dist/types/phoneset/programmable-key.d.ts +23 -0
- package/dist/types/phoneset/softkey.d.ts +17 -0
- package/dist/types/routing/destination.d.ts +19 -0
- package/dist/types/routing/forward.d.ts +51 -0
- package/dist/types/routing/overflow.d.ts +42 -0
- package/dist/types/routing/routing-capability.d.ts +31 -0
- package/dist/types/routing/routing-events.d.ts +15 -0
- package/dist/types/routing/routing-state.d.ts +67 -0
- package/dist/types/routing/routing-types.d.ts +10 -0
- package/dist/types/rsi/add-digit-coll-criteria.d.ts +16 -0
- package/dist/types/rsi/collection-cause.d.ts +21 -0
- package/dist/types/rsi/routing-caller-type.d.ts +17 -0
- package/dist/types/rsi/routing-reason.d.ts +25 -0
- package/dist/types/rsi/rsi-events.d.ts +76 -0
- package/dist/types/rsi/rsi-types.d.ts +49 -0
- package/dist/types/rsi/tones.d.ts +25 -0
- package/dist/types/telephony/RecordingAction.d.ts +6 -0
- package/dist/types/telephony/acr-skill.d.ts +29 -0
- package/dist/types/telephony/telephony-events.d.ts +292 -0
- package/dist/types/telephony/telephony-types.d.ts +587 -0
- package/dist/types/users/users-events.d.ts +33 -0
- package/dist/types/users/users-types.d.ts +129 -0
- package/package.json +33 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { O2GPbxComplexAttribute } from "../../internal/types/pbxmngt/o2gpbxmngt-types";
|
|
2
|
+
import { PbxAttribute } from "./pbx-attribute";
|
|
3
|
+
/**
|
|
4
|
+
* PbxAttributeMap represents a sequence of named attributes.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PbxAttributeMap {
|
|
7
|
+
private _attributes;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Returns the names of the attributes in this sequence.
|
|
14
|
+
*/
|
|
15
|
+
get names(): string[];
|
|
16
|
+
/**
|
|
17
|
+
* Returns the Attribute with the specified name.
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* let skillSequence = ...
|
|
21
|
+
* let attr = skillSequence.getAttribute("Skill_nb");
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param name The attribute name
|
|
25
|
+
*/
|
|
26
|
+
getAttribute(name: string): PbxAttribute | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Adds the specified attribute to this sequence. It's possible to chain the
|
|
29
|
+
* add operations to create a complete sequence.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* let attr = PbxAttributeMap.create()
|
|
34
|
+
* .add(PbxAttribute.createBoolean("Elem1", true))
|
|
35
|
+
* .add(PbxAttribute.createInteger("Elem2", 23));
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param value the attribute to add to this sequence
|
|
39
|
+
* @return the sequence object.
|
|
40
|
+
*/
|
|
41
|
+
add(value: PbxAttribute): PbxAttributeMap;
|
|
42
|
+
/**
|
|
43
|
+
* Create a new empty PbxAttributeMap. Use this method to create a new sequence
|
|
44
|
+
* of attribute. For example:
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* Sequence {
|
|
49
|
+
* Param1 := Integer,
|
|
50
|
+
* Param2 := Boolean
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
* Can be created with the following operations
|
|
54
|
+
* ```typescript
|
|
55
|
+
* let sequence = PbxAttributeMap.create()
|
|
56
|
+
* .add(PbxAttribute.createInteger("Param1", 1))
|
|
57
|
+
* .add(PbxAttribute.createBoolean("Param2", true));
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
static create(): PbxAttributeMap;
|
|
61
|
+
/**
|
|
62
|
+
* Create a new PbxAttributeMap with the specified attributes.
|
|
63
|
+
* Use this method to create a new sequence of attributes. For example:
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* Sequence {
|
|
68
|
+
* Param1 := Integer,
|
|
69
|
+
* Param2 := Boolean
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
* Can be created with the following:
|
|
73
|
+
* ```typescript
|
|
74
|
+
* let sequence = PbxAttributeMap.createWith([
|
|
75
|
+
* PbxAttribute.createInteger("Param1", 1),
|
|
76
|
+
* PbxAttribute.createBoolean("Param2", true)
|
|
77
|
+
* ]);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @param attributes the array of attributes
|
|
81
|
+
*/
|
|
82
|
+
static createWith(attributes: PbxAttribute[]): PbxAttributeMap;
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
static build(o2gPbxComplexAttribute: O2GPbxComplexAttribute): PbxAttributeMap;
|
|
87
|
+
/**
|
|
88
|
+
* @ignore
|
|
89
|
+
*/
|
|
90
|
+
static from(attributeMaps: PbxAttributeMap, attrName: string): O2GPbxComplexAttribute;
|
|
91
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PbxAttributeMap } from "./pbx-attr-map";
|
|
2
|
+
import { O2GPbxAttribute } from "../../internal/types/pbxmngt/o2gpbxmngt-types";
|
|
3
|
+
/**
|
|
4
|
+
* PbxAttribute class represents an attribute in a {@link PbxObject} object. A PbxAttribute
|
|
5
|
+
* can be of the following type:
|
|
6
|
+
* <p><b><u>Integer</u></b>: An Integer value is equivalent to an int value.
|
|
7
|
+
* <p><b><u>Boolean</u></b>: An Boolean value is equivalent to an boolean value.
|
|
8
|
+
* <p><b><u>Enumerated</u></b>: An enumerated value can have a limited set of possible
|
|
9
|
+
* values. PbxAttribute treats enumerated value as string value.
|
|
10
|
+
* <p><b><u>OctetString, ByteString</u></b>: An OctetString or a ByteString are equivalent to a string value.
|
|
11
|
+
* <p><b><u>Sequence</u></b>: A Sequence is a structured data whose attribute member have
|
|
12
|
+
* a specific name and type: For exemple
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* Skill := Sequence {
|
|
16
|
+
* Skill_Nb := Integer,
|
|
17
|
+
* Skill_Level := Integer,
|
|
18
|
+
* Skill_Activate := Boolean
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* <p><b><u>Set</u></b>: A Set value is a list of attributes of the same type. It can be
|
|
23
|
+
* a list of simple value like:
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* SimpleSet := Set {
|
|
28
|
+
* Item := OctetString
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* or a list of sequences:
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* SkillSet := Set {
|
|
37
|
+
* Item := Sequence {
|
|
38
|
+
* Skill_Nb := Integer,
|
|
39
|
+
* Skill_Level := Integer,
|
|
40
|
+
* Skill_Activate := Boolean
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class PbxAttribute {
|
|
46
|
+
private _name;
|
|
47
|
+
private _values;
|
|
48
|
+
private _attributeMaps;
|
|
49
|
+
private _sequenceMap;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string);
|
|
54
|
+
/**
|
|
55
|
+
* Returns this attribute's name.
|
|
56
|
+
*/
|
|
57
|
+
get name(): string;
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
static build(attr: O2GPbxAttribute): PbxAttribute;
|
|
62
|
+
/**
|
|
63
|
+
* @ignore
|
|
64
|
+
*/
|
|
65
|
+
static addSequenceAttribute(pbxAttribute: PbxAttribute, name: string, attr: O2GPbxAttribute): void;
|
|
66
|
+
static createSetOfStrings(attrName: string, values: string[]): PbxAttribute;
|
|
67
|
+
static createString(attrName: string, value: string): PbxAttribute;
|
|
68
|
+
static createBoolean(attrName: string, value: boolean): PbxAttribute;
|
|
69
|
+
static createInteger(attrName: string, value: number): PbxAttribute;
|
|
70
|
+
static createSequence(attrName: string, sequence: PbxAttributeMap): PbxAttribute;
|
|
71
|
+
static createSequenceSet(attrName: string, setOfSequences: PbxAttributeMap[]): PbxAttribute;
|
|
72
|
+
getAt(index: number): PbxAttributeMap;
|
|
73
|
+
asAttributeMap(): PbxAttributeMap | null;
|
|
74
|
+
asListOfMaps(): PbxAttributeMap[] | null;
|
|
75
|
+
private _assertUnique;
|
|
76
|
+
asBoolean(): boolean;
|
|
77
|
+
setBoolean(value: boolean): void;
|
|
78
|
+
asInteger(): number;
|
|
79
|
+
setInteger(value: number): void;
|
|
80
|
+
asString(): string;
|
|
81
|
+
setString(value: string): void;
|
|
82
|
+
asEnum(): string;
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
static from(attr: PbxAttribute): O2GPbxAttribute[];
|
|
87
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PbxAttribute } from "./pbx-attribute";
|
|
2
|
+
import { O2GPbxObject } from "../../internal/types/pbxmngt/o2gpbxmngt-types";
|
|
3
|
+
/**
|
|
4
|
+
* PbxObject represents an object of the OmniPCX Enterprise object model.
|
|
5
|
+
* <p>
|
|
6
|
+
* A PbxObject object is referenced by it's object instance definition,
|
|
7
|
+
* a hierarchical path from the root object, and a unique instance id.<br>
|
|
8
|
+
* For exemple:
|
|
9
|
+
* <ul>
|
|
10
|
+
* <li>"Subscriber" : A Subscriber object.</li>
|
|
11
|
+
* <li>"Application_Configuration/1/ACD2/1/ACD2_Operator/1/ACD2_Operator_data" :
|
|
12
|
+
* A CCD operator data object.</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
*/
|
|
15
|
+
export declare class PbxObject {
|
|
16
|
+
private _objectName;
|
|
17
|
+
private _id;
|
|
18
|
+
private _objectNames;
|
|
19
|
+
private _attributes;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
private constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Returns the collection of sub-object names.
|
|
26
|
+
*/
|
|
27
|
+
get objectNames(): string[];
|
|
28
|
+
/**
|
|
29
|
+
* Returns this object's name.
|
|
30
|
+
*/
|
|
31
|
+
get name(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns this object's instance ID.
|
|
34
|
+
*/
|
|
35
|
+
get id(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the attribute with the specified name.
|
|
38
|
+
* @param attrName The attribute name.
|
|
39
|
+
*/
|
|
40
|
+
getAttribute(attrName: string): PbxAttribute | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
static build(o2GPbxObject: O2GPbxObject): PbxObject;
|
|
45
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { O2GEvent } from "../../internal/events/o2g-event";
|
|
2
|
+
/**
|
|
3
|
+
* Represent an OmniPCX Enterprise object definition.
|
|
4
|
+
*/
|
|
5
|
+
export type PbxObjectDefinition = {
|
|
6
|
+
objectName: string;
|
|
7
|
+
objectId: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Notification sent when a PBX object instance is created. Only Object Subscriber is concerned by this event.
|
|
11
|
+
*/
|
|
12
|
+
export type OnPbxObjectInstanceCreated = O2GEvent<'OnPbxObjectInstanceCreated', {
|
|
13
|
+
/**
|
|
14
|
+
* The created object definition.
|
|
15
|
+
*/
|
|
16
|
+
object: PbxObjectDefinition;
|
|
17
|
+
/**
|
|
18
|
+
* The object father of the created object.
|
|
19
|
+
*/
|
|
20
|
+
father: PbxObjectDefinition;
|
|
21
|
+
/**
|
|
22
|
+
* The OmniPCX Enterprise node id that send this event.
|
|
23
|
+
*/
|
|
24
|
+
nodeId: number;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Notification sent when a PBX object instance is deleted. Only Object Subscriber is concerned by this event.
|
|
28
|
+
*/
|
|
29
|
+
export type OnPbxObjectInstanceDeleted = O2GEvent<'OnPbxObjectInstanceDeleted', {
|
|
30
|
+
/**
|
|
31
|
+
* The deleted object definition.
|
|
32
|
+
*/
|
|
33
|
+
object: PbxObjectDefinition;
|
|
34
|
+
/**
|
|
35
|
+
* The object father of the deleted object.
|
|
36
|
+
*/
|
|
37
|
+
father: PbxObjectDefinition;
|
|
38
|
+
/**
|
|
39
|
+
* The OmniPCX Enterprise node id that send this event.
|
|
40
|
+
*/
|
|
41
|
+
nodeId: number;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Notification sent when a PBX object instance is modified. Only Object Subscriber is concerned by this event.
|
|
45
|
+
*/
|
|
46
|
+
export type OnPbxObjectInstanceModified = O2GEvent<'OnPbxObjectInstanceModified', {
|
|
47
|
+
/**
|
|
48
|
+
* The modified object definition.
|
|
49
|
+
*/
|
|
50
|
+
object: PbxObjectDefinition;
|
|
51
|
+
/**
|
|
52
|
+
* The object father of the modified object.
|
|
53
|
+
*/
|
|
54
|
+
father: PbxObjectDefinition;
|
|
55
|
+
/**
|
|
56
|
+
* The OmniPCX Enterprise node id that send this event.
|
|
57
|
+
*/
|
|
58
|
+
nodeId: number;
|
|
59
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pbx represents basic information of a Pbx (OmniPCX Enterprise).
|
|
3
|
+
* In an OmniPcx Enterprise sub-network, each OXE node is identifier by a unique node id.
|
|
4
|
+
*/
|
|
5
|
+
export type Pbx = {
|
|
6
|
+
/**
|
|
7
|
+
* The OmniPcx Enterprise node id.
|
|
8
|
+
*/
|
|
9
|
+
nodeId: number;
|
|
10
|
+
/**
|
|
11
|
+
* The OmniPCX Enterprise node Fqdn.
|
|
12
|
+
*/
|
|
13
|
+
fqdn: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeviceKey class represents the base class for key on an OmniPCX Enterprise device.
|
|
3
|
+
*/
|
|
4
|
+
export declare class DeviceKey {
|
|
5
|
+
protected _position: number;
|
|
6
|
+
protected _number: string;
|
|
7
|
+
protected _mnemonic: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a new DeviceKey with the specified position, number, and optional mnemonic.
|
|
10
|
+
* @param position The key position on the device.
|
|
11
|
+
* @param number The phone number associated with this key.
|
|
12
|
+
* @param mnemonic The mnemonic associated with this key (optional).
|
|
13
|
+
*/
|
|
14
|
+
constructor(position: number, number: string, mnemonic?: string | null);
|
|
15
|
+
/**
|
|
16
|
+
* Returns the key position.
|
|
17
|
+
*/
|
|
18
|
+
get position(): number;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the key-associated number.
|
|
21
|
+
*/
|
|
22
|
+
get number(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the key mnemonic, or null if not set.
|
|
25
|
+
*/
|
|
26
|
+
get mnemonic(): string | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DynamicState represents the dynamic state of a device. This state provide information on the associate, and the locked and campon state.
|
|
3
|
+
*/
|
|
4
|
+
export type DynamicState = {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the device is locked.
|
|
7
|
+
*/
|
|
8
|
+
lock: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the camp on is activated.
|
|
11
|
+
*/
|
|
12
|
+
campon: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The associated phone number.
|
|
15
|
+
*/
|
|
16
|
+
associate: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of access of a PIN code.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PinControl {
|
|
5
|
+
/**
|
|
6
|
+
* PIN code can be used from any set according to categories.
|
|
7
|
+
*/
|
|
8
|
+
ByCategory = "PIN_Category",
|
|
9
|
+
/**
|
|
10
|
+
* PIN code is restricted to the users set.
|
|
11
|
+
*/
|
|
12
|
+
RestrictedToOwner = "PIN_Restricted_To_Owner_Set",
|
|
13
|
+
/**
|
|
14
|
+
* PIN code can be used on any set in the system.
|
|
15
|
+
*/
|
|
16
|
+
UniversalAccess = "PIN_Universal_Access",
|
|
17
|
+
/**
|
|
18
|
+
* PIN code is limited to specific group.
|
|
19
|
+
*/
|
|
20
|
+
ByGroup = "PIN_By_Group"
|
|
21
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { O2GPinCode } from "../../internal/types/phoneset/phoneset-types";
|
|
2
|
+
import { PinControl } from "./pin-control";
|
|
3
|
+
/**
|
|
4
|
+
* Pin class represents a PIN (Personal Identification Number)
|
|
5
|
+
* <p>
|
|
6
|
+
* This service allows the user to announce that the call he is making is a personal (external) call and not a business call.
|
|
7
|
+
* Using pulse metering tickets, the company is then able to invoice this call again as a personal call.
|
|
8
|
+
* <p>
|
|
9
|
+
* This service can be applied to local users (employees) or visitors (in this case, the created user set is a virtual set without a physical address).
|
|
10
|
+
* <p>
|
|
11
|
+
* To use this service, users must dial the personal prefix followed by the PIN No. and then the secret code followed by the external number.
|
|
12
|
+
* <p>
|
|
13
|
+
* The Personal Identification Number is private and secret; only the administrator and, in certain cases, the pulse metering administrator may know it.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Pin {
|
|
16
|
+
private _number;
|
|
17
|
+
private _withSecretCode;
|
|
18
|
+
private _control;
|
|
19
|
+
private _group;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
private constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Returns the PIN number.
|
|
26
|
+
*/
|
|
27
|
+
get number(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Returns whether the PIN code requires validation via the user's secret code.
|
|
30
|
+
*/
|
|
31
|
+
get withSecretCode(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the access control associated with this PIN code.
|
|
34
|
+
*/
|
|
35
|
+
get control(): PinControl;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the PIN group associated with this PIN code.
|
|
38
|
+
*/
|
|
39
|
+
get group(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Builds a Pin object from an O2GPinCode object.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
static build(pin: O2GPinCode): Pin;
|
|
45
|
+
/**
|
|
46
|
+
* Converts a Pin instance into an O2GPinCode object.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
static from(pin: Pin): O2GPinCode;
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DeviceKey } from "./device-key";
|
|
2
|
+
/**
|
|
3
|
+
* ProgrammableKey class represents a programmable key on an OmniPCX Enterprise device.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ProgrammableKey extends DeviceKey {
|
|
6
|
+
private _locked;
|
|
7
|
+
/**
|
|
8
|
+
* Construct a new ProgrammableKey with the specified parameters.
|
|
9
|
+
* @param position the key position
|
|
10
|
+
* @param number the associated number
|
|
11
|
+
* @param mnemonic the key mnemonic
|
|
12
|
+
* @param locked 'true' if the key is locked, 'false' otherwise
|
|
13
|
+
*/
|
|
14
|
+
constructor(position: number, number: string, mnemonic?: string | null, locked?: boolean);
|
|
15
|
+
/**
|
|
16
|
+
* Return whether this key is locked.
|
|
17
|
+
*/
|
|
18
|
+
get locked(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
static build(pkey: any): ProgrammableKey;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeviceKey } from "./device-key";
|
|
2
|
+
/**
|
|
3
|
+
* SoftKey class represents a software key on an OmniPcx Enterprise device.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SoftKey extends DeviceKey {
|
|
6
|
+
/**
|
|
7
|
+
* Construct a new SoftKey with the specified parameters.
|
|
8
|
+
* @param position the key position
|
|
9
|
+
* @param number the associated number
|
|
10
|
+
* @param mnemonic the key mnemonic
|
|
11
|
+
*/
|
|
12
|
+
constructor(position: number, number: string, mnemonic?: string | null);
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
16
|
+
static build(pkey: any): SoftKey;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Destination represents a forward or an overflow destination.
|
|
3
|
+
* @see {@link Forward}
|
|
4
|
+
* @see {@link Overflow}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Destination {
|
|
7
|
+
/**
|
|
8
|
+
* The destination is the user voice mail.
|
|
9
|
+
*/
|
|
10
|
+
VOICEMAIL = "VOICEMAIL",
|
|
11
|
+
/**
|
|
12
|
+
* The destination is another phone number. This destination can be used only to configure a forward.
|
|
13
|
+
*/
|
|
14
|
+
NUMBER = "NUMBER",
|
|
15
|
+
/**
|
|
16
|
+
* None destination.
|
|
17
|
+
*/
|
|
18
|
+
NONE = "NONE"
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ForwardRoute } from "../../internal/types/routing/forward-route";
|
|
2
|
+
import { Destination } from "./destination";
|
|
3
|
+
/**
|
|
4
|
+
* ForwardCondition represents the possible condition a user can associate to a forward.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ForwardCondition {
|
|
7
|
+
/**
|
|
8
|
+
* Incoming calls are immediately forwarded on the target.
|
|
9
|
+
*/
|
|
10
|
+
IMMEDIATE = "IMMEDIATE",
|
|
11
|
+
/**
|
|
12
|
+
* Incoming calls are forwarded on the target if the user is busy.
|
|
13
|
+
*/
|
|
14
|
+
BUSY = "BUSY",
|
|
15
|
+
/**
|
|
16
|
+
* Incoming calls are forwarded on the target if the user does not answer the call.
|
|
17
|
+
*/
|
|
18
|
+
NO_ANSWER = "NO_ANSWER",
|
|
19
|
+
/**
|
|
20
|
+
* Incoming calls are forwarded on the target if the user is busy or if the user does not answer the call.
|
|
21
|
+
*/
|
|
22
|
+
BUSY_OR_NO_ANSWER = "BUSY_OR_NO_ANSWER"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Forward represents a forward the user has activated.
|
|
26
|
+
*/
|
|
27
|
+
export declare class Forward {
|
|
28
|
+
private _destination;
|
|
29
|
+
private _number;
|
|
30
|
+
private _condition;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
private constructor();
|
|
35
|
+
/**
|
|
36
|
+
* Returns this forward destination.
|
|
37
|
+
*/
|
|
38
|
+
get destination(): Destination;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the number destination of this forward.
|
|
41
|
+
*/
|
|
42
|
+
get number(): string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Returns this forward associated condition.
|
|
45
|
+
*/
|
|
46
|
+
get condition(): ForwardCondition | null;
|
|
47
|
+
/**
|
|
48
|
+
* @ignore
|
|
49
|
+
*/
|
|
50
|
+
static build(forwardRoute?: ForwardRoute | null): Forward;
|
|
51
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import OverflowRoute from "../../internal/types/routing/overflow-route";
|
|
2
|
+
import { Destination } from "./destination";
|
|
3
|
+
/**
|
|
4
|
+
* OverflowCondition represents the possible condition a user can associate to an overflow.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum OverflowCondition {
|
|
7
|
+
/**
|
|
8
|
+
* Incoming calls are forwarded on the target if the user is busy.
|
|
9
|
+
*/
|
|
10
|
+
BUSY = "BUSY",
|
|
11
|
+
/**
|
|
12
|
+
* Incoming calls are forwarded on the target if the user does not answer the call.
|
|
13
|
+
*/
|
|
14
|
+
NO_ANSWER = "NO_ANSWER",
|
|
15
|
+
/**
|
|
16
|
+
* Incoming calls are forwarded on the target if the user is busy or if the user does not answer the call.
|
|
17
|
+
*/
|
|
18
|
+
BUSY_OR_NO_ANSWER = "BUSY_OR_NO_ANSWER"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Overflow represents an overflow the user has activated.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Overflow {
|
|
24
|
+
private _destination;
|
|
25
|
+
private _condition;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
private constructor();
|
|
30
|
+
/**
|
|
31
|
+
* Returns this overflow destination.
|
|
32
|
+
*/
|
|
33
|
+
get destination(): Destination;
|
|
34
|
+
/**
|
|
35
|
+
* Returns this overflow associated condition.
|
|
36
|
+
*/
|
|
37
|
+
get condition(): OverflowCondition | null;
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
static build(overflowRoute?: OverflowRoute | null): Overflow;
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { O2GRoutingCapabilities } from "../../internal/types/routing/o2grouting-types";
|
|
2
|
+
/**
|
|
3
|
+
* RoutingCapabilities represents the routing capability of a user.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RoutingCapabilities {
|
|
6
|
+
private _presentationRoute;
|
|
7
|
+
private _forwardRoute;
|
|
8
|
+
private _overflowRoute;
|
|
9
|
+
private _dnd;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
get canManageRemoteExtension(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Returns whether this user can manage forward.
|
|
17
|
+
*/
|
|
18
|
+
get canManageForward(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns whether this user can manage overflow.
|
|
21
|
+
*/
|
|
22
|
+
get canManageOverflow(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Returns whether this user can manage do not disturb.
|
|
25
|
+
*/
|
|
26
|
+
get canManageDnd(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @ignore
|
|
29
|
+
*/
|
|
30
|
+
static build(capabilities: O2GRoutingCapabilities): RoutingCapabilities;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { O2GEvent } from "../../internal/events/o2g-event";
|
|
2
|
+
import { RoutingState } from "./routing-state";
|
|
3
|
+
/**
|
|
4
|
+
* This notification indicate that routing state is changed.
|
|
5
|
+
*/
|
|
6
|
+
export type OnRoutingStateChanged = O2GEvent<'OnRoutingStateChanged', {
|
|
7
|
+
/**
|
|
8
|
+
* Login name of the user (identifier which can be used for filtering).
|
|
9
|
+
*/
|
|
10
|
+
loginName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Current routing state.
|
|
13
|
+
*/
|
|
14
|
+
routingState: RoutingState;
|
|
15
|
+
}>;
|