@vonage/client-sdk
Advanced tools
Comparing version 0.1.3-alpha.21 to 0.1.3-alpha.22
@@ -12,2 +12,3 @@ import { vonage } from './kotlin/clientsdk-clientcore_js'; | ||
export declare type Conversation = vonage.ConversationJS; | ||
export declare type RTCQuality = vonage.RTCQualityJS; | ||
export declare enum ConfigRegion { | ||
@@ -14,0 +15,0 @@ AP = 0, |
import './coreExtend'; | ||
export { default as VoiceClient, Invite, VoiceCall, Conversation, ConfigRegion, ClientConfig } from './Client'; | ||
export { default as VoiceClient, Invite, VoiceCall, Conversation, ConfigRegion, ClientConfig, RTCQuality } from './Client'; | ||
export {} from './coreExtend'; |
@@ -14,2 +14,3 @@ type Nullable<T> = T | null | undefined | ||
dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void; | ||
rtcHangup(call: vonage.VoiceCallJS, legId: string, callQuality: vonage.RTCQualityJS): void; | ||
} | ||
@@ -52,3 +53,3 @@ interface CallSayParams { | ||
get id(): string; | ||
hangup(): Promise<any>; | ||
hangup(reasonText?: Nullable<string>, reasonCode?: Nullable<string>): Promise<any>; | ||
say(params: vonage.CallSayParams): Promise<any>; | ||
@@ -126,3 +127,19 @@ mute(): Promise<any>; | ||
const REASON_PING_TIMEOUT: string; | ||
class RTCQualityJS { | ||
constructor(callQuality: any/* com.vonage.clientcore.core.conversation.RTCQuality */); | ||
get mos_score(): number; | ||
get quality_percentage(): number; | ||
get jitter_min_var(): number; | ||
get jitter_max_var(): number; | ||
get jitter_loss_rate(): number; | ||
get jitter_burst_rate(): number; | ||
get flaw_total(): number; | ||
get packet_cnt(): number; | ||
get packet_loss_perc(): number; | ||
copy(callQuality?: any/* com.vonage.clientcore.core.conversation.RTCQuality */): vonage.RTCQualityJS; | ||
toString(): string; | ||
hashCode(): number; | ||
equals(other: Nullable<any>): boolean; | ||
} | ||
} | ||
export as namespace clientsdk_clientcore_js; |
@@ -86,43 +86,43 @@ (function (root, factory) { | ||
Companion_getInstance_0(); | ||
this.z2a_1 = Companion_getInstance().v1x(map(Companion_getInstance_0(), region)); | ||
this.a2b_1 = this.z2a_1.y1x_1; | ||
this.b2b_1 = this.z2a_1.z1x_1; | ||
this.c2b_1 = this.z2a_1.a1y_1; | ||
this.e2b_1 = Companion_getInstance().y1x(map(Companion_getInstance_0(), region)); | ||
this.f2b_1 = this.e2b_1.b1y_1; | ||
this.g2b_1 = this.e2b_1.c1y_1; | ||
this.h2b_1 = this.e2b_1.d1y_1; | ||
var tmp = this; | ||
var tmp$ret$0; | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var tmp0_toTypedArray = this.z2a_1.b1y_1; | ||
var tmp0_toTypedArray = this.e2b_1.e1y_1; | ||
tmp$ret$0 = copyToArray(tmp0_toTypedArray); | ||
tmp.d2b_1 = tmp$ret$0; | ||
this.e2b_1 = this.z2a_1.c1y_1; | ||
tmp.i2b_1 = tmp$ret$0; | ||
this.j2b_1 = this.e2b_1.f1y_1; | ||
} | ||
CoreClientConfigJS.prototype.f2b = function (_set____db54di) { | ||
this.a2b_1 = _set____db54di; | ||
CoreClientConfigJS.prototype.k2b = function (_set____db54di) { | ||
this.f2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.g2b = function () { | ||
return this.a2b_1; | ||
CoreClientConfigJS.prototype.l2b = function () { | ||
return this.f2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.h2b = function (_set____db54di) { | ||
this.b2b_1 = _set____db54di; | ||
CoreClientConfigJS.prototype.m2b = function (_set____db54di) { | ||
this.g2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.i2b = function () { | ||
return this.b2b_1; | ||
CoreClientConfigJS.prototype.n2b = function () { | ||
return this.g2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.j2b = function (_set____db54di) { | ||
this.c2b_1 = _set____db54di; | ||
CoreClientConfigJS.prototype.o2b = function (_set____db54di) { | ||
this.h2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.k2b = function () { | ||
return this.c2b_1; | ||
CoreClientConfigJS.prototype.p2b = function () { | ||
return this.h2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.l2b = function (_set____db54di) { | ||
this.d2b_1 = _set____db54di; | ||
CoreClientConfigJS.prototype.q2b = function (_set____db54di) { | ||
this.i2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.m2b = function () { | ||
return this.d2b_1; | ||
CoreClientConfigJS.prototype.r2b = function () { | ||
return this.i2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.n2b = function (_set____db54di) { | ||
this.e2b_1 = _set____db54di; | ||
CoreClientConfigJS.prototype.s2b = function (_set____db54di) { | ||
this.j2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.o2b = function () { | ||
return this.e2b_1; | ||
CoreClientConfigJS.prototype.t2b = function () { | ||
return this.j2b_1; | ||
}; | ||
@@ -132,24 +132,24 @@ CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS'); | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.g2b, | ||
set: CoreClientConfigJS.prototype.f2b | ||
get: CoreClientConfigJS.prototype.l2b, | ||
set: CoreClientConfigJS.prototype.k2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.i2b, | ||
set: CoreClientConfigJS.prototype.h2b | ||
get: CoreClientConfigJS.prototype.n2b, | ||
set: CoreClientConfigJS.prototype.m2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.k2b, | ||
set: CoreClientConfigJS.prototype.j2b | ||
get: CoreClientConfigJS.prototype.p2b, | ||
set: CoreClientConfigJS.prototype.o2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'iceServerUrls', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.m2b, | ||
set: CoreClientConfigJS.prototype.l2b | ||
get: CoreClientConfigJS.prototype.r2b, | ||
set: CoreClientConfigJS.prototype.q2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.o2b, | ||
set: CoreClientConfigJS.prototype.n2b | ||
get: CoreClientConfigJS.prototype.t2b, | ||
set: CoreClientConfigJS.prototype.s2b | ||
}); | ||
@@ -169,3 +169,3 @@ function CoreClientJS$createSession$lambda$lambda($reject, $resolve) { | ||
return function (resolve, reject) { | ||
this$0.q2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -185,3 +185,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.q2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -201,3 +201,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.q2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -220,3 +220,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.q2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject)); | ||
this$0.v2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject)); | ||
return Unit_getInstance(); | ||
@@ -226,6 +226,6 @@ }; | ||
function CoreClientJS$1(this$0) { | ||
this.r2b_1 = this$0; | ||
this.w2b_1 = this$0; | ||
} | ||
CoreClientJS$1.prototype.g1z = function () { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
CoreClientJS$1.prototype.q1z = function () { | ||
var tmp0_safe_receiver = this.w2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -237,4 +237,4 @@ null; | ||
}; | ||
CoreClientJS$1.prototype.h1z = function () { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
CoreClientJS$1.prototype.r1z = function () { | ||
var tmp0_safe_receiver = this.w2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -246,4 +246,4 @@ null; | ||
}; | ||
CoreClientJS$1.prototype.i1z = function (reason) { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
CoreClientJS$1.prototype.s1z = function (reason) { | ||
var tmp0_safe_receiver = this.w2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -257,6 +257,6 @@ null; | ||
function CoreClientJS$2(this$0) { | ||
this.s2b_1 = this$0; | ||
this.x2b_1 = this$0; | ||
} | ||
CoreClientJS$2.prototype.t20 = function (invite) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
CoreClientJS$2.prototype.d21 = function (invite) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -268,4 +268,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.u20 = function (call, newConversation, prevConversation) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
CoreClientJS$2.prototype.e21 = function (call, newConversation, prevConversation) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -277,4 +277,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.v20 = function (call, legId, isMuted) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
CoreClientJS$2.prototype.f21 = function (call, legId, isMuted) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -286,4 +286,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.w20 = function (call, legId, earmuffStatus) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
CoreClientJS$2.prototype.g21 = function (call, legId, earmuffStatus) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -295,4 +295,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.x20 = function (call, legId, digits) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
CoreClientJS$2.prototype.h21 = function (call, legId, digits) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -304,17 +304,25 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.i21 = function (call, legId, callQuality) { | ||
var tmp0_safe_receiver = this.x2b_1.u2b_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.rtcHangup(new VoiceCallJS(call), legId, new RTCQualityJS(callQuality)); | ||
} | ||
}; | ||
CoreClientJS$2.$metadata$ = classMeta(undefined, [VoiceClientDelegate]); | ||
function CoreClientJS(http, socket, media) { | ||
this.p2b_1 = null; | ||
this.q2b_1 = (new Builder()).u1b(HttpClientJSAdapter(http)).v1b(SocketClientJSAdapter(socket)).w1b(MediaClientJSAdapter(media)); | ||
this.q2b_1.u1a(new CoreClientJS$1(this)); | ||
this.q2b_1.v1a(new CoreClientJS$2(this)); | ||
this.u2b_1 = null; | ||
this.v2b_1 = (new Builder()).u1b(HttpClientJSAdapter(http)).v1b(SocketClientJSAdapter(socket)).w1b(MediaClientJSAdapter(media)); | ||
this.v2b_1.u1a(new CoreClientJS$1(this)); | ||
this.v2b_1.v1a(new CoreClientJS$2(this)); | ||
} | ||
CoreClientJS.prototype.t2b = function (_set____db54di) { | ||
this.p2b_1 = _set____db54di; | ||
CoreClientJS.prototype.y2b = function (_set____db54di) { | ||
this.u2b_1 = _set____db54di; | ||
}; | ||
CoreClientJS.prototype.u2b = function () { | ||
return this.p2b_1; | ||
CoreClientJS.prototype.z2b = function () { | ||
return this.u2b_1; | ||
}; | ||
CoreClientJS.prototype.setConfig = function (config) { | ||
this.q2b_1.q1a(new SetConfig(config.b2b_1, config.c2b_1, config.a2b_1)); | ||
this.v2b_1.q1a(new SetConfig(config.g2b_1, config.h2b_1, config.f2b_1)); | ||
}; | ||
@@ -348,9 +356,10 @@ CoreClientJS.prototype.createSession = function (token, sessionId) { | ||
configurable: true, | ||
get: CoreClientJS.prototype.u2b, | ||
set: CoreClientJS.prototype.t2b | ||
get: CoreClientJS.prototype.z2b, | ||
set: CoreClientJS.prototype.y2b | ||
}); | ||
function VoiceCallJS$hangup$lambda$lambda($resolve, $reject) { | ||
return function (it) { | ||
var tmp0_subject = it; | ||
var tmp; | ||
if (it == null) { | ||
if (tmp0_subject == null) { | ||
tmp = $resolve(null); | ||
@@ -363,5 +372,5 @@ } else { | ||
} | ||
function VoiceCallJS$hangup$lambda(this$0) { | ||
function VoiceCallJS$hangup$lambda(this$0, $reasonText, $reasonCode) { | ||
return function (resolve, reject) { | ||
this$0.v2b_1.c20(VoiceCallJS$hangup$lambda$lambda(resolve, reject)); | ||
this$0.a2c_1.m20($reasonText, $reasonCode, VoiceCallJS$hangup$lambda$lambda(resolve, reject)); | ||
return Unit_getInstance(); | ||
@@ -394,3 +403,3 @@ }; | ||
var tmp_4 = tmp4_elvis_lhs == null ? true : tmp4_elvis_lhs; | ||
this$0.v2b_1.s20(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.c21(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -412,3 +421,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.v2b_1.n20(VoiceCallJS$mute$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.x20(VoiceCallJS$mute$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -428,3 +437,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.v2b_1.o20(VoiceCallJS$unmute$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.y20(VoiceCallJS$unmute$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -444,3 +453,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.v2b_1.p20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.z20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -460,3 +469,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.v2b_1.q20(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.a21(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -476,3 +485,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.v2b_1.r20($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve)); | ||
this$0.a2c_1.b21($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -482,11 +491,21 @@ }; | ||
function VoiceCallJS(call) { | ||
this.v2b_1 = call; | ||
this.w2b_1 = this.v2b_1.v1z_1; | ||
this.a2c_1 = call; | ||
this.b2c_1 = this.a2c_1.f20_1; | ||
} | ||
VoiceCallJS.prototype.h1k = function () { | ||
return this.w2b_1; | ||
VoiceCallJS.prototype.k1k = function () { | ||
return this.b2c_1; | ||
}; | ||
VoiceCallJS.prototype.hangup = function () { | ||
return new Promise(VoiceCallJS$hangup$lambda(this)); | ||
VoiceCallJS.prototype.hangup = function (reasonText, reasonCode) { | ||
return this.c2c(reasonText === void 1 ? null : reasonText, reasonCode === void 1 ? null : reasonCode); | ||
}; | ||
VoiceCallJS.prototype.c2c = function (reasonText, reasonCode) { | ||
return new Promise(VoiceCallJS$hangup$lambda(this, reasonText, reasonCode)); | ||
}; | ||
VoiceCallJS.prototype.d2c = function (reasonText, reasonCode, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
reasonText = null; | ||
if (!(($mask0 & 2) === 0)) | ||
reasonCode = null; | ||
return this.c2c(reasonText, reasonCode); | ||
}; | ||
VoiceCallJS.prototype.say = function (params) { | ||
@@ -513,39 +532,39 @@ return new Promise(VoiceCallJS$say$lambda(this, params)); | ||
configurable: true, | ||
get: VoiceCallJS.prototype.h1k | ||
get: VoiceCallJS.prototype.k1k | ||
}); | ||
function VoiceInviteFromInfoJS(id, type) { | ||
this.x2b_1 = id; | ||
this.y2b_1 = type; | ||
this.e2c_1 = id; | ||
this.f2c_1 = type; | ||
} | ||
VoiceInviteFromInfoJS.prototype.h1k = function () { | ||
return this.x2b_1; | ||
VoiceInviteFromInfoJS.prototype.k1k = function () { | ||
return this.e2c_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.z2b = function () { | ||
return this.y2b_1; | ||
VoiceInviteFromInfoJS.prototype.g2c = function () { | ||
return this.f2c_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.component1 = function () { | ||
return this.x2b_1; | ||
return this.e2c_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.component2 = function () { | ||
return this.y2b_1; | ||
return this.f2c_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.copy = function (id, type) { | ||
return this.a2c(id === void 1 ? this.x2b_1 : id, type === void 1 ? this.y2b_1 : type); | ||
return this.h2c(id === void 1 ? this.e2c_1 : id, type === void 1 ? this.f2c_1 : type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.a2c = function (id, type) { | ||
VoiceInviteFromInfoJS.prototype.h2c = function (id, type) { | ||
return new VoiceInviteFromInfoJS(id, type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.b2c = function (id, type, $mask0, $handler) { | ||
VoiceInviteFromInfoJS.prototype.i2c = function (id, type, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
id = this.x2b_1; | ||
id = this.e2c_1; | ||
if (!(($mask0 & 2) === 0)) | ||
type = this.y2b_1; | ||
return this.a2c(id, type); | ||
type = this.f2c_1; | ||
return this.h2c(id, type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.toString = function () { | ||
return 'VoiceInviteFromInfoJS(id=' + this.x2b_1 + ', type=' + this.y2b_1 + ')'; | ||
return 'VoiceInviteFromInfoJS(id=' + this.e2c_1 + ', type=' + this.f2c_1 + ')'; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.hashCode = function () { | ||
var result = this.x2b_1 == null ? 0 : getStringHashCode(this.x2b_1); | ||
result = imul(result, 31) + getStringHashCode(this.y2b_1) | 0; | ||
var result = this.e2c_1 == null ? 0 : getStringHashCode(this.e2c_1); | ||
result = imul(result, 31) + getStringHashCode(this.f2c_1) | 0; | ||
return result; | ||
@@ -559,5 +578,5 @@ }; | ||
var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE(); | ||
if (!(this.x2b_1 == tmp0_other_with_cast.x2b_1)) | ||
if (!(this.e2c_1 == tmp0_other_with_cast.e2c_1)) | ||
return false; | ||
if (!(this.y2b_1 === tmp0_other_with_cast.y2b_1)) | ||
if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1)) | ||
return false; | ||
@@ -569,11 +588,11 @@ return true; | ||
configurable: true, | ||
get: VoiceInviteFromInfoJS.prototype.h1k | ||
get: VoiceInviteFromInfoJS.prototype.k1k | ||
}); | ||
Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'type', { | ||
configurable: true, | ||
get: VoiceInviteFromInfoJS.prototype.z2b | ||
get: VoiceInviteFromInfoJS.prototype.g2c | ||
}); | ||
function VoiceInviteJS_init_$Init$(invite, from, $mask0, $marker, $this) { | ||
if (!(($mask0 & 2) === 0)) | ||
from = new VoiceInviteFromInfoJS(invite.a21_1.f21_1, invite.a21_1.g21_1); | ||
from = new VoiceInviteFromInfoJS(invite.l21_1.q21_1, invite.l21_1.r21_1); | ||
VoiceInviteJS.call($this, invite, from); | ||
@@ -600,3 +619,3 @@ return $this; | ||
return function (resolve, reject) { | ||
this$0.c2c_1.b21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve)); | ||
this$0.j2c_1.m21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -618,3 +637,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.c2c_1.e21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve)); | ||
this$0.j2c_1.p21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -624,7 +643,7 @@ }; | ||
function VoiceInviteJS(invite, from) { | ||
this.c2c_1 = invite; | ||
this.d2c_1 = from; | ||
this.j2c_1 = invite; | ||
this.k2c_1 = from; | ||
} | ||
VoiceInviteJS.prototype.o1j = function () { | ||
return this.d2c_1; | ||
VoiceInviteJS.prototype.r1j = function () { | ||
return this.k2c_1; | ||
}; | ||
@@ -640,30 +659,30 @@ VoiceInviteJS.prototype.answerCall = function () { | ||
configurable: true, | ||
get: VoiceInviteJS.prototype.o1j | ||
get: VoiceInviteJS.prototype.r1j | ||
}); | ||
function ConversationJS(conversation) { | ||
this.e2c_1 = conversation; | ||
this.f2c_1 = this.e2c_1.d1y_1; | ||
this.l2c_1 = conversation; | ||
this.m2c_1 = this.l2c_1.g1y_1; | ||
} | ||
ConversationJS.prototype.g2c = function (_set____db54di) { | ||
this.f2c_1 = _set____db54di; | ||
ConversationJS.prototype.n2c = function (_set____db54di) { | ||
this.m2c_1 = _set____db54di; | ||
}; | ||
ConversationJS.prototype.h1k = function () { | ||
return this.f2c_1; | ||
ConversationJS.prototype.k1k = function () { | ||
return this.m2c_1; | ||
}; | ||
ConversationJS.prototype.copy = function (conversation) { | ||
return this.h2c(conversation === void 1 ? this.e2c_1 : conversation); | ||
return this.o2c(conversation === void 1 ? this.l2c_1 : conversation); | ||
}; | ||
ConversationJS.prototype.h2c = function (conversation) { | ||
ConversationJS.prototype.o2c = function (conversation) { | ||
return new ConversationJS(conversation); | ||
}; | ||
ConversationJS.prototype.i2c = function (conversation, $mask0, $handler) { | ||
ConversationJS.prototype.p2c = function (conversation, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
conversation = this.e2c_1; | ||
return this.h2c(conversation); | ||
conversation = this.l2c_1; | ||
return this.o2c(conversation); | ||
}; | ||
ConversationJS.prototype.toString = function () { | ||
return 'ConversationJS(conversation=' + this.e2c_1 + ')'; | ||
return 'ConversationJS(conversation=' + this.l2c_1 + ')'; | ||
}; | ||
ConversationJS.prototype.hashCode = function () { | ||
return this.e2c_1.hashCode(); | ||
return this.l2c_1.hashCode(); | ||
}; | ||
@@ -676,3 +695,3 @@ ConversationJS.prototype.equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof ConversationJS ? other : THROW_CCE(); | ||
if (!this.e2c_1.equals(tmp0_other_with_cast.e2c_1)) | ||
if (!this.l2c_1.equals(tmp0_other_with_cast.l2c_1)) | ||
return false; | ||
@@ -684,4 +703,4 @@ return true; | ||
configurable: true, | ||
get: ConversationJS.prototype.h1k, | ||
set: ConversationJS.prototype.g2c | ||
get: ConversationJS.prototype.k1k, | ||
set: ConversationJS.prototype.n2c | ||
}); | ||
@@ -720,2 +739,105 @@ function get_jsonNullable(_this__u8e3s4) { | ||
var REASON_PING_TIMEOUT; | ||
function RTCQualityJS(callQuality) { | ||
this.q2c_1 = callQuality; | ||
this.r2c_1 = this.q2c_1.c24_1; | ||
this.s2c_1 = this.q2c_1.d24_1; | ||
this.t2c_1 = this.q2c_1.e24_1; | ||
this.u2c_1 = this.q2c_1.f24_1; | ||
this.v2c_1 = this.q2c_1.g24_1; | ||
this.w2c_1 = this.q2c_1.h24_1; | ||
this.x2c_1 = this.q2c_1.i24_1; | ||
this.y2c_1 = this.q2c_1.j24_1; | ||
this.z2c_1 = this.q2c_1.k24_1; | ||
} | ||
RTCQualityJS.prototype.a2d = function () { | ||
return this.r2c_1; | ||
}; | ||
RTCQualityJS.prototype.b2d = function () { | ||
return this.s2c_1; | ||
}; | ||
RTCQualityJS.prototype.c2d = function () { | ||
return this.t2c_1; | ||
}; | ||
RTCQualityJS.prototype.d2d = function () { | ||
return this.u2c_1; | ||
}; | ||
RTCQualityJS.prototype.e2d = function () { | ||
return this.v2c_1; | ||
}; | ||
RTCQualityJS.prototype.f2d = function () { | ||
return this.w2c_1; | ||
}; | ||
RTCQualityJS.prototype.g2d = function () { | ||
return this.x2c_1; | ||
}; | ||
RTCQualityJS.prototype.h2d = function () { | ||
return this.y2c_1; | ||
}; | ||
RTCQualityJS.prototype.i2d = function () { | ||
return this.z2c_1; | ||
}; | ||
RTCQualityJS.prototype.copy = function (callQuality) { | ||
return this.j2d(callQuality === void 1 ? this.q2c_1 : callQuality); | ||
}; | ||
RTCQualityJS.prototype.j2d = function (callQuality) { | ||
return new RTCQualityJS(callQuality); | ||
}; | ||
RTCQualityJS.prototype.k2d = function (callQuality, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
callQuality = this.q2c_1; | ||
return this.j2d(callQuality); | ||
}; | ||
RTCQualityJS.prototype.toString = function () { | ||
return 'RTCQualityJS(callQuality=' + this.q2c_1 + ')'; | ||
}; | ||
RTCQualityJS.prototype.hashCode = function () { | ||
return this.q2c_1.hashCode(); | ||
}; | ||
RTCQualityJS.prototype.equals = function (other) { | ||
if (this === other) | ||
return true; | ||
if (!(other instanceof RTCQualityJS)) | ||
return false; | ||
var tmp0_other_with_cast = other instanceof RTCQualityJS ? other : THROW_CCE(); | ||
if (!this.q2c_1.equals(tmp0_other_with_cast.q2c_1)) | ||
return false; | ||
return true; | ||
}; | ||
RTCQualityJS.$metadata$ = classMeta('RTCQualityJS'); | ||
Object.defineProperty(RTCQualityJS.prototype, 'mos_score', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.a2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'quality_percentage', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.b2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'jitter_min_var', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.c2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'jitter_max_var', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.d2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'jitter_loss_rate', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.e2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'jitter_burst_rate', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.f2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'flaw_total', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.g2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'packet_cnt', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.h2d | ||
}); | ||
Object.defineProperty(RTCQualityJS.prototype, 'packet_loss_perc', { | ||
configurable: true, | ||
get: RTCQualityJS.prototype.i2d | ||
}); | ||
function HttpClientJSAdapter(js) { | ||
@@ -744,3 +866,3 @@ return new HttpClientJSAdapter$1(js); | ||
function HttpClientJSAdapter$1($js) { | ||
this.j2c_1 = $js; | ||
this.l2d_1 = $js; | ||
} | ||
@@ -757,3 +879,3 @@ HttpClientJSAdapter$1.prototype.c1b = function (verb, url, headers, body, callback) { | ||
var tmp_0 = tmp$ret$1; | ||
this.j2c_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback)); | ||
this.l2d_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback)); | ||
}; | ||
@@ -782,10 +904,10 @@ HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]); | ||
function SocketClientJSAdapter$adapter$1($js) { | ||
this.l2c_1 = $js; | ||
this.k2c_1 = null; | ||
this.n2d_1 = $js; | ||
this.m2d_1 = null; | ||
} | ||
SocketClientJSAdapter$adapter$1.prototype.f1b = function (_set____db54di) { | ||
this.k2c_1 = _set____db54di; | ||
this.m2d_1 = _set____db54di; | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.r21 = function () { | ||
return this.k2c_1; | ||
SocketClientJSAdapter$adapter$1.prototype.c22 = function () { | ||
return this.m2d_1; | ||
}; | ||
@@ -808,26 +930,26 @@ SocketClientJSAdapter$adapter$1.prototype.g1b = function (type, msg, callback) { | ||
var tmp_0 = tmp; | ||
this.l2c_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback)); | ||
this.n2d_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback)); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.h1b = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) { | ||
this.l2c_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query); | ||
this.n2d_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.i1b = function () { | ||
this.l2c_1.disconnect(); | ||
this.n2d_1.disconnect(); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.j1b = function (token) { | ||
this.l2c_1.setConnectParamsSocketConfig(token); | ||
this.n2d_1.setConnectParamsSocketConfig(token); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.k1b = function (milliseconds, callback) { | ||
this.l2c_1.startVerifyResponseTimer(milliseconds, callback); | ||
this.n2d_1.startVerifyResponseTimer(milliseconds, callback); | ||
}; | ||
SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]); | ||
function SocketClientJSAdapter$1($adapter) { | ||
this.m2c_1 = $adapter; | ||
this.o2d_1 = $adapter; | ||
} | ||
SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) { | ||
var tmp0_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp0_safe_receiver = this.o2d_1.m2d_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.f26(new UnknownSocketEvent(body, type)); | ||
tmp0_safe_receiver.k26(new UnknownSocketEvent(body, type)); | ||
} | ||
@@ -866,3 +988,3 @@ }; | ||
case 'NXMCORE_REASON_SERVER_DISCONNECTED': | ||
var tmp1_safe_receiver_0 = this.m2c_1.k2c_1; | ||
var tmp1_safe_receiver_0 = this.o2d_1.m2d_1; | ||
var tmp_0; | ||
@@ -872,3 +994,3 @@ if (tmp1_safe_receiver_0 == null) { | ||
} else { | ||
tmp1_safe_receiver_0.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance()); | ||
tmp1_safe_receiver_0.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance()); | ||
tmp_0 = Unit_getInstance(); | ||
@@ -880,3 +1002,3 @@ } | ||
case 'NXMCORE_REASON_CLIENT_DISCONNECTED': | ||
var tmp2_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp2_safe_receiver = this.o2d_1.m2d_1; | ||
var tmp_1; | ||
@@ -886,3 +1008,3 @@ if (tmp2_safe_receiver == null) { | ||
} else { | ||
tmp2_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance()); | ||
tmp2_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance()); | ||
tmp_1 = Unit_getInstance(); | ||
@@ -894,3 +1016,3 @@ } | ||
case 'NXMCORE_CLIENT_NETWORK_ERROR': | ||
var tmp3_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp3_safe_receiver = this.o2d_1.m2d_1; | ||
var tmp_2; | ||
@@ -900,3 +1022,3 @@ if (tmp3_safe_receiver == null) { | ||
} else { | ||
tmp3_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance()); | ||
tmp3_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance()); | ||
tmp_2 = Unit_getInstance(); | ||
@@ -908,3 +1030,3 @@ } | ||
case 'NXMCORE_REASON_PING_TIMEOUT': | ||
var tmp4_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp4_safe_receiver = this.o2d_1.m2d_1; | ||
var tmp_3; | ||
@@ -914,3 +1036,3 @@ if (tmp4_safe_receiver == null) { | ||
} else { | ||
tmp4_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance()); | ||
tmp4_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance()); | ||
tmp_3 = Unit_getInstance(); | ||
@@ -922,3 +1044,3 @@ } | ||
default: | ||
var tmp5_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp5_safe_receiver = this.o2d_1.m2d_1; | ||
var tmp_4; | ||
@@ -928,3 +1050,3 @@ if (tmp5_safe_receiver == null) { | ||
} else { | ||
tmp5_safe_receiver.g26(tmp1_safe_receiver, null); | ||
tmp5_safe_receiver.l26(tmp1_safe_receiver, null); | ||
tmp_4 = Unit_getInstance(); | ||
@@ -942,52 +1064,52 @@ } | ||
function MediaClientJSAdapter$adapter$1($js) { | ||
this.o2c_1 = $js; | ||
this.n2c_1 = null; | ||
this.q2d_1 = $js; | ||
this.p2d_1 = null; | ||
} | ||
MediaClientJSAdapter$adapter$1.prototype.n1b = function (_set____db54di) { | ||
this.n2c_1 = _set____db54di; | ||
this.p2d_1 = _set____db54di; | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.o1b = function (id) { | ||
this.o2c_1.enableMedia(id, null); | ||
this.q2d_1.enableMedia(id, null); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.p1b = function (id, remoteDescription) { | ||
this.o2c_1.enableMedia(id, remoteDescription); | ||
this.q2d_1.enableMedia(id, remoteDescription); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.q1b = function (id, sdp, streamId, legId) { | ||
this.o2c_1.processAnswer(id, sdp, streamId, legId); | ||
this.q2d_1.processAnswer(id, sdp, streamId, legId); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.r1b = function (id) { | ||
this.o2c_1.disableMedia(id); | ||
this.q2d_1.disableMedia(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.s1b = function (id) { | ||
this.o2c_1.mute(id); | ||
this.q2d_1.mute(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.t1b = function (id) { | ||
this.o2c_1.unmute(id); | ||
this.q2d_1.unmute(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]); | ||
function MediaClientJSAdapter$1($adapter) { | ||
this.p2c_1 = $adapter; | ||
this.r2d_1 = $adapter; | ||
} | ||
MediaClientJSAdapter$1.prototype.onOffer = function (mediaId, streamId, sdp, callback) { | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
var tmp0_safe_receiver = this.r2d_1.p2d_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.c26(mediaId, streamId, sdp, callback); | ||
tmp0_safe_receiver.h26(mediaId, streamId, sdp, callback); | ||
} | ||
}; | ||
MediaClientJSAdapter$1.prototype.onAnswer = function (mediaId, streamId, sdp, callback) { | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
var tmp0_safe_receiver = this.r2d_1.p2d_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.d26(mediaId, streamId, sdp, callback); | ||
tmp0_safe_receiver.i26(mediaId, streamId, sdp, callback); | ||
} | ||
}; | ||
MediaClientJSAdapter$1.prototype.onError = function (mediaId, error) { | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
var tmp0_safe_receiver = this.r2d_1.p2d_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.e26(mediaId, Exception_init_$Create$(error)); | ||
tmp0_safe_receiver.j26(mediaId, Exception_init_$Create$(error)); | ||
} | ||
@@ -1167,2 +1289,3 @@ }; | ||
}); | ||
$vonage.RTCQualityJS = RTCQualityJS; | ||
} | ||
@@ -1169,0 +1292,0 @@ $jsExportAll$(_); |
{ | ||
"name": "@vonage/client-sdk", | ||
"version": "0.1.3-alpha.21", | ||
"version": "0.1.3-alpha.22", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/Client.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2111142
45412