o2g-node-sdk 2.5.6 → 2.5.7
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
CHANGED
|
@@ -54,6 +54,10 @@ await O2G.telephony.makeCall("1234", "5678");
|
|
|
54
54
|
await O2G.shutdown();
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## What's New in 2.5.7
|
|
58
|
+
|
|
59
|
+
- Add new field `emailAddress` in object `User`
|
|
60
|
+
|
|
57
61
|
## What's New in 2.5.6
|
|
58
62
|
|
|
59
63
|
- Fixed a syntax error in the `UserManagement` service that prevented compiling `createUsers`
|
|
@@ -535,7 +539,7 @@ This SDK follows the O2G API version it targets:
|
|
|
535
539
|
- **Minor**: O2G API patch version (currently 7.5 → 5)
|
|
536
540
|
- **Patch**: SDK release number
|
|
537
541
|
|
|
538
|
-
For example, `2.5.
|
|
542
|
+
For example, `2.5.0` targets O2G API version 2.7.5.
|
|
539
543
|
|
|
540
544
|
## License
|
|
541
545
|
|
package/dist/o2g-node-sdk.js
CHANGED
|
@@ -39846,7 +39846,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
39846
39846
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
39847
39847
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
39848
39848
|
};
|
|
39849
|
-
var _User_companyPhone, _User_firstName, _User_lastName, _User_loginName, _User_voicemail, _User_devices, _User_nodeId, _User_externalLogin;
|
|
39849
|
+
var _User_companyPhone, _User_firstName, _User_lastName, _User_loginName, _User_voicemail, _User_devices, _User_nodeId, _User_externalLogin, _User_emailaddress;
|
|
39850
39850
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39851
39851
|
exports.User = void 0;
|
|
39852
39852
|
const device_1 = __webpack_require__(/*! ../common/device */ "./src/types/common/device.ts");
|
|
@@ -39869,9 +39869,10 @@ class User {
|
|
|
39869
39869
|
* @param devices - The user's devices, or undefined if none
|
|
39870
39870
|
* @param nodeId - The OmniPCX Enterprise node ID
|
|
39871
39871
|
* @param externalLogin - The user's external login, or undefined if none
|
|
39872
|
+
* @param emailAddress - The user's email address, or undefined if none
|
|
39872
39873
|
* @private
|
|
39873
39874
|
*/
|
|
39874
|
-
constructor(companyPhone, firstName, lastName, loginName, voicemail, devices, nodeId, externalLogin) {
|
|
39875
|
+
constructor(companyPhone, firstName, lastName, loginName, voicemail, devices, nodeId, externalLogin, emailAddess) {
|
|
39875
39876
|
_User_companyPhone.set(this, void 0);
|
|
39876
39877
|
_User_firstName.set(this, void 0);
|
|
39877
39878
|
_User_lastName.set(this, void 0);
|
|
@@ -39880,6 +39881,7 @@ class User {
|
|
|
39880
39881
|
_User_devices.set(this, void 0);
|
|
39881
39882
|
_User_nodeId.set(this, void 0);
|
|
39882
39883
|
_User_externalLogin.set(this, void 0);
|
|
39884
|
+
_User_emailaddress.set(this, void 0);
|
|
39883
39885
|
__classPrivateFieldSet(this, _User_companyPhone, companyPhone, "f");
|
|
39884
39886
|
__classPrivateFieldSet(this, _User_firstName, firstName, "f");
|
|
39885
39887
|
__classPrivateFieldSet(this, _User_lastName, lastName, "f");
|
|
@@ -39888,6 +39890,7 @@ class User {
|
|
|
39888
39890
|
__classPrivateFieldSet(this, _User_devices, devices, "f");
|
|
39889
39891
|
__classPrivateFieldSet(this, _User_nodeId, nodeId, "f");
|
|
39890
39892
|
__classPrivateFieldSet(this, _User_externalLogin, externalLogin, "f");
|
|
39893
|
+
__classPrivateFieldSet(this, _User_emailaddress, emailAddess, "f");
|
|
39891
39894
|
}
|
|
39892
39895
|
/**
|
|
39893
39896
|
* Returns the user's company phone number.
|
|
@@ -39946,6 +39949,13 @@ class User {
|
|
|
39946
39949
|
get externalLogin() {
|
|
39947
39950
|
return __classPrivateFieldGet(this, _User_externalLogin, "f") ?? null;
|
|
39948
39951
|
}
|
|
39952
|
+
/**
|
|
39953
|
+
* Returns the user's email address.
|
|
39954
|
+
* @returns The email address, or null if none
|
|
39955
|
+
*/
|
|
39956
|
+
get emailAddress() {
|
|
39957
|
+
return __classPrivateFieldGet(this, _User_emailaddress, "f") ?? null;
|
|
39958
|
+
}
|
|
39949
39959
|
/**
|
|
39950
39960
|
* Creates a new {@link User} instance from JSON data.
|
|
39951
39961
|
*
|
|
@@ -39957,11 +39967,11 @@ class User {
|
|
|
39957
39967
|
*/
|
|
39958
39968
|
/** @internal */
|
|
39959
39969
|
static fromJson(json) {
|
|
39960
|
-
return new User(json.companyPhone, json.firstName, json.lastName, json.loginName, json.voicemail ? voicemail_1.Voicemail.fromJson(json.voicemail) : null, json.devices?.map((d) => device_1.Device.fromJson(d)), Number(json.nodeId), json.externalLogin);
|
|
39970
|
+
return new User(json.companyPhone, json.firstName, json.lastName, json.loginName, json.voicemail ? voicemail_1.Voicemail.fromJson(json.voicemail) : null, json.devices?.map((d) => device_1.Device.fromJson(d)), Number(json.nodeId), json.externalLogin, json.eMailAddress);
|
|
39961
39971
|
}
|
|
39962
39972
|
}
|
|
39963
39973
|
exports.User = User;
|
|
39964
|
-
_User_companyPhone = new WeakMap(), _User_firstName = new WeakMap(), _User_lastName = new WeakMap(), _User_loginName = new WeakMap(), _User_voicemail = new WeakMap(), _User_devices = new WeakMap(), _User_nodeId = new WeakMap(), _User_externalLogin = new WeakMap();
|
|
39974
|
+
_User_companyPhone = new WeakMap(), _User_firstName = new WeakMap(), _User_lastName = new WeakMap(), _User_loginName = new WeakMap(), _User_voicemail = new WeakMap(), _User_devices = new WeakMap(), _User_nodeId = new WeakMap(), _User_externalLogin = new WeakMap(), _User_emailaddress = new WeakMap();
|
|
39965
39975
|
|
|
39966
39976
|
|
|
39967
39977
|
/***/ },
|