@voicenter-team/events-sdk 0.0.64 → 0.0.66

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.
@@ -350,6 +350,7 @@ declare class EventsSdkClass {
350
350
  private findNextServer;
351
351
  init(): Promise<boolean>;
352
352
  getCircularReplacer: () => (key: string, value: object) => object | undefined;
353
+ getCurrentMonitorServer(): Server | undefined;
353
354
  }
354
355
  export default EventsSdkClass;
355
356
 
@@ -5115,13 +5115,13 @@ class ce {
5115
5115
  ...i,
5116
5116
  currentCall: o ? {
5117
5117
  ...o,
5118
- duration: Date.now() - ((o == null ? void 0 : o.callAnswered_UTC_CLIENT) ?? 0)
5118
+ duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
5119
5119
  } : void 0,
5120
5120
  calls: (u = e.data.calls) == null ? void 0 : u.map((d) => {
5121
5121
  const c = this.mapExtensionCall(e, d);
5122
5122
  return {
5123
5123
  ...c,
5124
- duration: Date.now() - (c.callAnswered_UTC_CLIENT ?? 0)
5124
+ duration: c.callAnswered_UTC_CLIENT ? Date.now() - c.callAnswered_UTC_CLIENT : 0
5125
5125
  };
5126
5126
  })
5127
5127
  }
@@ -5574,6 +5574,9 @@ class Go {
5574
5574
  const e = await this.authClass.login();
5575
5575
  return e && this.authClass.onLoginResponse(e), this.loggerClass.sdkInitializedLog(), !0;
5576
5576
  }
5577
+ getCurrentMonitorServer() {
5578
+ return this.server;
5579
+ }
5577
5580
  }
5578
5581
  export {
5579
5582
  jo as CallStatusEnum,