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.
Files changed (103) hide show
  1. package/README.md +10 -0
  2. package/dist/ErrorInfo.d.ts +87 -0
  3. package/dist/host.d.ts +17 -0
  4. package/dist/o2g-analytics.d.ts +66 -0
  5. package/dist/o2g-cc-agent.d.ts +247 -0
  6. package/dist/o2g-cc-mngt.d.ts +32 -0
  7. package/dist/o2g-cc-pilot.d.ts +42 -0
  8. package/dist/o2g-comlog.d.ts +173 -0
  9. package/dist/o2g-directory.d.ts +88 -0
  10. package/dist/o2g-eventSummary.d.ts +33 -0
  11. package/dist/o2g-maint.d.ts +48 -0
  12. package/dist/o2g-messaging.d.ts +115 -0
  13. package/dist/o2g-node-sdk.d.ts +159 -0
  14. package/dist/o2g-node-sdk.js +2 -0
  15. package/dist/o2g-node-sdk.js.map +1 -0
  16. package/dist/o2g-pbx-mngt.d.ts +146 -0
  17. package/dist/o2g-phone-set-prog.d.ts +29 -0
  18. package/dist/o2g-routing.d.ts +267 -0
  19. package/dist/o2g-rsi.d.ts +160 -0
  20. package/dist/o2g-telephony.d.ts +795 -0
  21. package/dist/o2g-user-mngt.d.ts +42 -0
  22. package/dist/o2g-users.d.ts +85 -0
  23. package/dist/subscription.d.ts +258 -0
  24. package/dist/types/analytics/call-type.d.ts +24 -0
  25. package/dist/types/analytics/charging-file.d.ts +27 -0
  26. package/dist/types/analytics/charging-result.d.ts +43 -0
  27. package/dist/types/analytics/charging.d.ts +105 -0
  28. package/dist/types/analytics/incident.d.ts +46 -0
  29. package/dist/types/analytics/tel-facility.d.ts +44 -0
  30. package/dist/types/analytics/time-range.d.ts +22 -0
  31. package/dist/types/cc-agent/cc-agent-events.d.ts +54 -0
  32. package/dist/types/cc-agent/cc-agent-types.d.ts +71 -0
  33. package/dist/types/cc-agent/intrusion-mode.d.ts +24 -0
  34. package/dist/types/cc-agent/operator-dyn-state.d.ts +56 -0
  35. package/dist/types/cc-agent/operator-main-state.d.ts +21 -0
  36. package/dist/types/cc-agent/operator-type.d.ts +16 -0
  37. package/dist/types/cc-mngt/calendar/abstract-calendar.d.ts +7 -0
  38. package/dist/types/cc-mngt/calendar/calendar.d.ts +19 -0
  39. package/dist/types/cc-mngt/calendar/day-of-week.d.ts +33 -0
  40. package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +26 -0
  41. package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +27 -0
  42. package/dist/types/cc-mngt/calendar/transition.d.ts +49 -0
  43. package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
  44. package/dist/types/cc-mngt/pilot-rule-set.d.ts +27 -0
  45. package/dist/types/cc-mngt/pilot-rule.d.ts +14 -0
  46. package/dist/types/cc-mngt/pilot.d.ts +56 -0
  47. package/dist/types/cc-pilot/cc-pilot-events.d.ts +111 -0
  48. package/dist/types/comlog/com-record.d.ts +51 -0
  49. package/dist/types/comlog/comlog-events.d.ts +74 -0
  50. package/dist/types/comlog/comlog-types.d.ts +131 -0
  51. package/dist/types/comlog/option.d.ts +23 -0
  52. package/dist/types/comlog/page.d.ts +33 -0
  53. package/dist/types/comlog/query-filter.d.ts +44 -0
  54. package/dist/types/comlog/query-result.d.ts +27 -0
  55. package/dist/types/comlog/reason.d.ts +61 -0
  56. package/dist/types/comlog/role.d.ts +17 -0
  57. package/dist/types/common/common-types.d.ts +78 -0
  58. package/dist/types/directory/criteria.d.ts +90 -0
  59. package/dist/types/directory/directory-types.d.ts +44 -0
  60. package/dist/types/directory/filter-item.d.ts +21 -0
  61. package/dist/types/directory/operation-filter.d.ts +21 -0
  62. package/dist/types/events/events.d.ts +54 -0
  63. package/dist/types/eventsummary/event-summary-counter.d.ts +44 -0
  64. package/dist/types/eventsummary/event-summary-events.d.ts +15 -0
  65. package/dist/types/maint/maint-events.d.ts +51 -0
  66. package/dist/types/maint/maint-types.d.ts +162 -0
  67. package/dist/types/messaging/messaging-types.d.ts +120 -0
  68. package/dist/types/pbxmngt/attribute-filter.d.ts +30 -0
  69. package/dist/types/pbxmngt/attribute-type.d.ts +34 -0
  70. package/dist/types/pbxmngt/filter.d.ts +46 -0
  71. package/dist/types/pbxmngt/model.d.ts +63 -0
  72. package/dist/types/pbxmngt/pbx-attr-map.d.ts +91 -0
  73. package/dist/types/pbxmngt/pbx-attribute.d.ts +87 -0
  74. package/dist/types/pbxmngt/pbx-object.d.ts +45 -0
  75. package/dist/types/pbxmngt/pbxmngt-events.d.ts +59 -0
  76. package/dist/types/pbxmngt/pbxmngt-types.d.ts +14 -0
  77. package/dist/types/phoneset/device-key.d.ts +27 -0
  78. package/dist/types/phoneset/phoneset-types.d.ts +17 -0
  79. package/dist/types/phoneset/pin-control.d.ts +21 -0
  80. package/dist/types/phoneset/pin.d.ts +50 -0
  81. package/dist/types/phoneset/programmable-key.d.ts +23 -0
  82. package/dist/types/phoneset/softkey.d.ts +17 -0
  83. package/dist/types/routing/destination.d.ts +19 -0
  84. package/dist/types/routing/forward.d.ts +51 -0
  85. package/dist/types/routing/overflow.d.ts +42 -0
  86. package/dist/types/routing/routing-capability.d.ts +31 -0
  87. package/dist/types/routing/routing-events.d.ts +15 -0
  88. package/dist/types/routing/routing-state.d.ts +67 -0
  89. package/dist/types/routing/routing-types.d.ts +10 -0
  90. package/dist/types/rsi/add-digit-coll-criteria.d.ts +16 -0
  91. package/dist/types/rsi/collection-cause.d.ts +21 -0
  92. package/dist/types/rsi/routing-caller-type.d.ts +17 -0
  93. package/dist/types/rsi/routing-reason.d.ts +25 -0
  94. package/dist/types/rsi/rsi-events.d.ts +76 -0
  95. package/dist/types/rsi/rsi-types.d.ts +49 -0
  96. package/dist/types/rsi/tones.d.ts +25 -0
  97. package/dist/types/telephony/RecordingAction.d.ts +6 -0
  98. package/dist/types/telephony/acr-skill.d.ts +29 -0
  99. package/dist/types/telephony/telephony-events.d.ts +292 -0
  100. package/dist/types/telephony/telephony-types.d.ts +587 -0
  101. package/dist/types/users/users-events.d.ts +33 -0
  102. package/dist/types/users/users-types.d.ts +129 -0
  103. 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
+ }