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,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define the device type
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DeviceType {
|
|
5
|
+
/**
|
|
6
|
+
* The device is a DECT device
|
|
7
|
+
*/
|
|
8
|
+
DECT = "DECT",
|
|
9
|
+
/**
|
|
10
|
+
* The device is a deskphone
|
|
11
|
+
*/
|
|
12
|
+
DESKPHONE = "DESKPHONE",
|
|
13
|
+
/**
|
|
14
|
+
* The device is a mobile device
|
|
15
|
+
*/
|
|
16
|
+
MOBILE = "MOBILE",
|
|
17
|
+
/**
|
|
18
|
+
* The device is a softphone
|
|
19
|
+
*/
|
|
20
|
+
SOFTPHONE = "SOFTPHONE"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Device represents a device of a user.
|
|
24
|
+
*/
|
|
25
|
+
export type Device = {
|
|
26
|
+
/**
|
|
27
|
+
* The device type
|
|
28
|
+
*/
|
|
29
|
+
type: DeviceType;
|
|
30
|
+
/**
|
|
31
|
+
* The device identifier which is used to identify the device in telephony requests and events.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* The device sub-type. When set, the device sub-type provide information about the device model.
|
|
36
|
+
*/
|
|
37
|
+
subType?: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The type of voice mail a user can have
|
|
41
|
+
*/
|
|
42
|
+
export declare enum VoicemailType {
|
|
43
|
+
/**
|
|
44
|
+
* Internal 4635 voice mail.
|
|
45
|
+
*/
|
|
46
|
+
VM_4635 = "VM_4635",
|
|
47
|
+
/**
|
|
48
|
+
* Internal 4645 voice mail.
|
|
49
|
+
*/
|
|
50
|
+
VM_4645 = "VM_4645",
|
|
51
|
+
/**
|
|
52
|
+
* External voice mail.
|
|
53
|
+
*/
|
|
54
|
+
EXTERNAL = "EXTERNAL"
|
|
55
|
+
}
|
|
56
|
+
export type User = {
|
|
57
|
+
/**
|
|
58
|
+
* The user company phone. This company phone number is the phone
|
|
59
|
+
* number of the main device when the user has a multi-device configuration.
|
|
60
|
+
*/
|
|
61
|
+
companyPhone: string;
|
|
62
|
+
/**
|
|
63
|
+
* The user's first name.
|
|
64
|
+
*/
|
|
65
|
+
firstName: string;
|
|
66
|
+
/**
|
|
67
|
+
* The user's last name.
|
|
68
|
+
*/
|
|
69
|
+
lastName: string;
|
|
70
|
+
/**
|
|
71
|
+
* The user's login.
|
|
72
|
+
*/
|
|
73
|
+
loginName: string;
|
|
74
|
+
/**
|
|
75
|
+
* The user's voice mail information.
|
|
76
|
+
*/
|
|
77
|
+
voicemail: {
|
|
78
|
+
/**
|
|
79
|
+
* The voice mail number.
|
|
80
|
+
*/
|
|
81
|
+
number: string;
|
|
82
|
+
/**
|
|
83
|
+
* The voice mail type.
|
|
84
|
+
*/
|
|
85
|
+
type: VoicemailType;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The user's devices.
|
|
89
|
+
*/
|
|
90
|
+
devices: Device[];
|
|
91
|
+
/**
|
|
92
|
+
* The OmniPCX Enterprise node this user is configured on.
|
|
93
|
+
*/
|
|
94
|
+
nodeId: number;
|
|
95
|
+
/**
|
|
96
|
+
* User external login
|
|
97
|
+
*/
|
|
98
|
+
externalLogin: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Preferences represents the preferred settings of a user.
|
|
102
|
+
*/
|
|
103
|
+
export type Preferences = {
|
|
104
|
+
/**
|
|
105
|
+
* The preferred GUI language. This is the language the user prefers
|
|
106
|
+
* when it uses an application with a graphical user interface.
|
|
107
|
+
*/
|
|
108
|
+
guiLanguage: string;
|
|
109
|
+
/**
|
|
110
|
+
* The prefered OXE language. This is the language the user prefers when
|
|
111
|
+
* it uses his phone set.
|
|
112
|
+
*/
|
|
113
|
+
oxeLanguage: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* SupportedLanguages represents the languages supported by a user.
|
|
117
|
+
*
|
|
118
|
+
* @see {@link Preferences}.
|
|
119
|
+
*/
|
|
120
|
+
export type SupportedLanguages = {
|
|
121
|
+
/**
|
|
122
|
+
* The supported languages.
|
|
123
|
+
*/
|
|
124
|
+
supportedLanguages: string[];
|
|
125
|
+
/**
|
|
126
|
+
* The supported GUI languages.
|
|
127
|
+
*/
|
|
128
|
+
supportedGuiLanguages: string[];
|
|
129
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "o2g-node-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A Node.js library for O2G.",
|
|
5
|
+
"main": "dist/o2g-node-sdk.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"tsc": "tsc",
|
|
8
|
+
"build": "webpack --config webpack.config.js",
|
|
9
|
+
"docs": "typedoc --options typedoc.json",
|
|
10
|
+
"clean": "rm -rf dist docs"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"type": "commonjs",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^24.0.13",
|
|
18
|
+
"@types/node-fetch": "^2.6.12",
|
|
19
|
+
"ts-loader": "^9.5.2",
|
|
20
|
+
"typedoc": "^0.28.7",
|
|
21
|
+
"typescript": "^5.8.3",
|
|
22
|
+
"webpack": "^5.100.1",
|
|
23
|
+
"webpack-cli": "^6.0.1"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"fetch-cookie": "^3.1.0",
|
|
27
|
+
"inversify": "^7.6.1",
|
|
28
|
+
"node-fetch": "^3.3.2",
|
|
29
|
+
"reflect-metadata": "^0.2.2",
|
|
30
|
+
"tough-cookie": "^5.1.2",
|
|
31
|
+
"uuid": "^11.1.0"
|
|
32
|
+
}
|
|
33
|
+
}
|