@vonage/client-sdk 1.1.1-alpha.0 → 1.1.1-alpha.2

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.
@@ -58499,13 +58499,13 @@ function requireClientsdkClientcore () {
58499
58499
  function getLeg(legId) {
58500
58500
  return new Promise(IVoiceClientJS$getLeg$lambda(this, legId));
58501
58501
  }
58502
- function answerCall(callId) {
58503
- return new Promise(IVoiceClientJS$answerCall$lambda(this, callId));
58502
+ function answer(callId) {
58503
+ return new Promise(IVoiceClientJS$answer$lambda(this, callId));
58504
58504
  }
58505
- function rejectCall(callId) {
58506
- return new Promise(IVoiceClientJS$rejectCall$lambda(this, callId));
58505
+ function reject(callId) {
58506
+ return new Promise(IVoiceClientJS$reject$lambda(this, callId));
58507
58507
  }
58508
- function hangupWithReason(callId, reasonText, reasonCode) {
58508
+ function hangup(callId, reasonText, reasonCode) {
58509
58509
  return new Promise(IVoiceClientJS$hangup$lambda(this, callId, reasonText, reasonCode));
58510
58510
  }
58511
58511
  function say(callId, params) {
@@ -62044,7 +62044,7 @@ function requireClientsdkClientcore () {
62044
62044
  return Unit_getInstance();
62045
62045
  };
62046
62046
  }
62047
- function IVoiceClientJS$answerCall$lambda$lambda($reject, $resolve) {
62047
+ function IVoiceClientJS$answer$lambda$lambda($reject, $resolve) {
62048
62048
  return function (it) {
62049
62049
  if (!(it == null)) {
62050
62050
  $reject(it instanceof Error ? it : THROW_CCE());
@@ -62054,14 +62054,14 @@ function requireClientsdkClientcore () {
62054
62054
  return Unit_getInstance();
62055
62055
  };
62056
62056
  }
62057
- function IVoiceClientJS$answerCall$lambda(this$0, $callId) {
62057
+ function IVoiceClientJS$answer$lambda(this$0, $callId) {
62058
62058
  return function (resolve, reject) {
62059
62059
  var tmp = this$0.core;
62060
- tmp.i1b($callId, IVoiceClientJS$answerCall$lambda$lambda(reject, resolve));
62060
+ tmp.i1b($callId, IVoiceClientJS$answer$lambda$lambda(reject, resolve));
62061
62061
  return Unit_getInstance();
62062
62062
  };
62063
62063
  }
62064
- function IVoiceClientJS$rejectCall$lambda$lambda($reject, $resolve) {
62064
+ function IVoiceClientJS$reject$lambda$lambda($reject, $resolve) {
62065
62065
  return function (it) {
62066
62066
  if (!(it == null)) {
62067
62067
  $reject(it instanceof Error ? it : THROW_CCE());
@@ -62071,10 +62071,10 @@ function requireClientsdkClientcore () {
62071
62071
  return Unit_getInstance();
62072
62072
  };
62073
62073
  }
62074
- function IVoiceClientJS$rejectCall$lambda(this$0, $callId) {
62074
+ function IVoiceClientJS$reject$lambda(this$0, $callId) {
62075
62075
  return function (resolve, reject) {
62076
62076
  var tmp = this$0.core;
62077
- tmp.h1b($callId, IVoiceClientJS$rejectCall$lambda$lambda(reject, resolve));
62077
+ tmp.h1b($callId, IVoiceClientJS$reject$lambda$lambda(reject, resolve));
62078
62078
  return Unit_getInstance();
62079
62079
  };
62080
62080
  }
@@ -63269,9 +63269,9 @@ function requireClientsdkClientcore () {
63269
63269
  CombinedClientJS.prototype.serverCall = serverCall;
63270
63270
  CombinedClientJS.prototype.reconnectCall = reconnectCall;
63271
63271
  CombinedClientJS.prototype.getLeg = getLeg;
63272
- CombinedClientJS.prototype.answerCall = answerCall;
63273
- CombinedClientJS.prototype.rejectCall = rejectCall;
63274
- CombinedClientJS.prototype.hangupWithReason = hangupWithReason;
63272
+ CombinedClientJS.prototype.answer = answer;
63273
+ CombinedClientJS.prototype.reject = reject;
63274
+ CombinedClientJS.prototype.hangup = hangup;
63275
63275
  CombinedClientJS.prototype.say = say;
63276
63276
  CombinedClientJS.prototype.mute = mute;
63277
63277
  CombinedClientJS.prototype.unmute = unmute;
@@ -79065,12 +79065,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
79065
79065
  set emitter(value) {
79066
79066
  super.emitter = value;
79067
79067
  }
79068
- /**
79069
- * @internal
79070
- */
79071
- hangupWithReason(callId, reasonText, reasonCode) {
79072
- return super.hangupWithReason(callId, reasonText, reasonCode);
79073
- }
79074
79068
  constructor() {
79075
79069
  super(new HttpClient(), new SocketClient(), new MediaClient());
79076
79070
  /**
@@ -79243,10 +79237,10 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
79243
79237
  */
79244
79238
  hangup(callId, reasonText, reasonCode) {
79245
79239
  const _super = Object.create(null, {
79246
- hangupWithReason: { get: () => super.hangupWithReason }
79240
+ hangup: { get: () => super.hangup }
79247
79241
  });
79248
79242
  return __awaiter(this, void 0, void 0, function* () {
79249
- return _super.hangupWithReason.call(this, callId, reasonText || null, reasonCode || null);
79243
+ return _super.hangup.call(this, callId, reasonText || null, reasonCode || null);
79250
79244
  });
79251
79245
  }
79252
79246
  say(callId, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/client-sdk",
3
- "version": "1.1.1-alpha.0",
3
+ "version": "1.1.1-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "dist/client/index.mjs",