@vonage/client-sdk 1.1.0-alpha.3 → 1.1.0-alpha.5
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/dist/client/VonageClient.d.ts +82 -4
- package/dist/client/index.cjs +390 -304
- package/dist/client/index.mjs +390 -304
- package/dist/coreExtend.d.ts +30 -3
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +1 -0
- package/dist/vonageClientSDK.js +387 -300
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +387 -300
- package/package.json +1 -1
package/dist/vonageClientSDK.js
CHANGED
|
@@ -40462,17 +40462,40 @@
|
|
|
40462
40462
|
return true;
|
|
40463
40463
|
};
|
|
40464
40464
|
TimeoutAction.$metadata$ = classMeta('TimeoutAction', [Actionable]);
|
|
40465
|
-
function
|
|
40465
|
+
function MediaDisable(id) {
|
|
40466
40466
|
this.j29_1 = id;
|
|
40467
40467
|
}
|
|
40468
|
-
|
|
40468
|
+
MediaDisable.prototype.a1l = function () {
|
|
40469
40469
|
return this.j29_1;
|
|
40470
40470
|
};
|
|
40471
|
+
MediaDisable.prototype.toString = function () {
|
|
40472
|
+
return 'MediaDisable(id=' + this.j29_1 + ')';
|
|
40473
|
+
};
|
|
40474
|
+
MediaDisable.prototype.hashCode = function () {
|
|
40475
|
+
return getStringHashCode(this.j29_1);
|
|
40476
|
+
};
|
|
40477
|
+
MediaDisable.prototype.equals = function (other) {
|
|
40478
|
+
if (this === other)
|
|
40479
|
+
return true;
|
|
40480
|
+
if (!(other instanceof MediaDisable))
|
|
40481
|
+
return false;
|
|
40482
|
+
var tmp0_other_with_cast = other instanceof MediaDisable ? other : THROW_CCE();
|
|
40483
|
+
if (!(this.j29_1 === tmp0_other_with_cast.j29_1))
|
|
40484
|
+
return false;
|
|
40485
|
+
return true;
|
|
40486
|
+
};
|
|
40487
|
+
MediaDisable.$metadata$ = classMeta('MediaDisable', [MediaEvent]);
|
|
40488
|
+
function Mute(id) {
|
|
40489
|
+
this.k29_1 = id;
|
|
40490
|
+
}
|
|
40491
|
+
Mute.prototype.a1l = function () {
|
|
40492
|
+
return this.k29_1;
|
|
40493
|
+
};
|
|
40471
40494
|
Mute.prototype.toString = function () {
|
|
40472
|
-
return 'Mute(id=' + this.
|
|
40495
|
+
return 'Mute(id=' + this.k29_1 + ')';
|
|
40473
40496
|
};
|
|
40474
40497
|
Mute.prototype.hashCode = function () {
|
|
40475
|
-
return getStringHashCode(this.
|
|
40498
|
+
return getStringHashCode(this.k29_1);
|
|
40476
40499
|
};
|
|
40477
40500
|
Mute.prototype.equals = function (other) {
|
|
40478
40501
|
if (this === other)
|
|
@@ -40480,22 +40503,22 @@
|
|
|
40480
40503
|
if (!(other instanceof Mute))
|
|
40481
40504
|
return false;
|
|
40482
40505
|
var tmp0_other_with_cast = other instanceof Mute ? other : THROW_CCE();
|
|
40483
|
-
if (!(this.
|
|
40506
|
+
if (!(this.k29_1 === tmp0_other_with_cast.k29_1))
|
|
40484
40507
|
return false;
|
|
40485
40508
|
return true;
|
|
40486
40509
|
};
|
|
40487
40510
|
Mute.$metadata$ = classMeta('Mute', [MediaEvent]);
|
|
40488
40511
|
function Unmute(id) {
|
|
40489
|
-
this.
|
|
40512
|
+
this.l29_1 = id;
|
|
40490
40513
|
}
|
|
40491
40514
|
Unmute.prototype.a1l = function () {
|
|
40492
|
-
return this.
|
|
40515
|
+
return this.l29_1;
|
|
40493
40516
|
};
|
|
40494
40517
|
Unmute.prototype.toString = function () {
|
|
40495
|
-
return 'Unmute(id=' + this.
|
|
40518
|
+
return 'Unmute(id=' + this.l29_1 + ')';
|
|
40496
40519
|
};
|
|
40497
40520
|
Unmute.prototype.hashCode = function () {
|
|
40498
|
-
return getStringHashCode(this.
|
|
40521
|
+
return getStringHashCode(this.l29_1);
|
|
40499
40522
|
};
|
|
40500
40523
|
Unmute.prototype.equals = function (other) {
|
|
40501
40524
|
if (this === other)
|
|
@@ -40503,22 +40526,22 @@
|
|
|
40503
40526
|
if (!(other instanceof Unmute))
|
|
40504
40527
|
return false;
|
|
40505
40528
|
var tmp0_other_with_cast = other instanceof Unmute ? other : THROW_CCE();
|
|
40506
|
-
if (!(this.
|
|
40529
|
+
if (!(this.l29_1 === tmp0_other_with_cast.l29_1))
|
|
40507
40530
|
return false;
|
|
40508
40531
|
return true;
|
|
40509
40532
|
};
|
|
40510
40533
|
Unmute.$metadata$ = classMeta('Unmute', [MediaEvent]);
|
|
40511
40534
|
function EnableEarmuff(id) {
|
|
40512
|
-
this.
|
|
40535
|
+
this.m29_1 = id;
|
|
40513
40536
|
}
|
|
40514
40537
|
EnableEarmuff.prototype.a1l = function () {
|
|
40515
|
-
return this.
|
|
40538
|
+
return this.m29_1;
|
|
40516
40539
|
};
|
|
40517
40540
|
EnableEarmuff.prototype.toString = function () {
|
|
40518
|
-
return 'EnableEarmuff(id=' + this.
|
|
40541
|
+
return 'EnableEarmuff(id=' + this.m29_1 + ')';
|
|
40519
40542
|
};
|
|
40520
40543
|
EnableEarmuff.prototype.hashCode = function () {
|
|
40521
|
-
return getStringHashCode(this.
|
|
40544
|
+
return getStringHashCode(this.m29_1);
|
|
40522
40545
|
};
|
|
40523
40546
|
EnableEarmuff.prototype.equals = function (other) {
|
|
40524
40547
|
if (this === other)
|
|
@@ -40526,22 +40549,22 @@
|
|
|
40526
40549
|
if (!(other instanceof EnableEarmuff))
|
|
40527
40550
|
return false;
|
|
40528
40551
|
var tmp0_other_with_cast = other instanceof EnableEarmuff ? other : THROW_CCE();
|
|
40529
|
-
if (!(this.
|
|
40552
|
+
if (!(this.m29_1 === tmp0_other_with_cast.m29_1))
|
|
40530
40553
|
return false;
|
|
40531
40554
|
return true;
|
|
40532
40555
|
};
|
|
40533
40556
|
EnableEarmuff.$metadata$ = classMeta('EnableEarmuff', [MediaEvent]);
|
|
40534
40557
|
function DisableEarmuff(id) {
|
|
40535
|
-
this.
|
|
40558
|
+
this.n29_1 = id;
|
|
40536
40559
|
}
|
|
40537
40560
|
DisableEarmuff.prototype.a1l = function () {
|
|
40538
|
-
return this.
|
|
40561
|
+
return this.n29_1;
|
|
40539
40562
|
};
|
|
40540
40563
|
DisableEarmuff.prototype.toString = function () {
|
|
40541
|
-
return 'DisableEarmuff(id=' + this.
|
|
40564
|
+
return 'DisableEarmuff(id=' + this.n29_1 + ')';
|
|
40542
40565
|
};
|
|
40543
40566
|
DisableEarmuff.prototype.hashCode = function () {
|
|
40544
|
-
return getStringHashCode(this.
|
|
40567
|
+
return getStringHashCode(this.n29_1);
|
|
40545
40568
|
};
|
|
40546
40569
|
DisableEarmuff.prototype.equals = function (other) {
|
|
40547
40570
|
if (this === other)
|
|
@@ -40549,34 +40572,11 @@
|
|
|
40549
40572
|
if (!(other instanceof DisableEarmuff))
|
|
40550
40573
|
return false;
|
|
40551
40574
|
var tmp0_other_with_cast = other instanceof DisableEarmuff ? other : THROW_CCE();
|
|
40552
|
-
if (!(this.m29_1 === tmp0_other_with_cast.m29_1))
|
|
40553
|
-
return false;
|
|
40554
|
-
return true;
|
|
40555
|
-
};
|
|
40556
|
-
DisableEarmuff.$metadata$ = classMeta('DisableEarmuff', [MediaEvent]);
|
|
40557
|
-
function MediaDisable(id) {
|
|
40558
|
-
this.n29_1 = id;
|
|
40559
|
-
}
|
|
40560
|
-
MediaDisable.prototype.a1l = function () {
|
|
40561
|
-
return this.n29_1;
|
|
40562
|
-
};
|
|
40563
|
-
MediaDisable.prototype.toString = function () {
|
|
40564
|
-
return 'MediaDisable(id=' + this.n29_1 + ')';
|
|
40565
|
-
};
|
|
40566
|
-
MediaDisable.prototype.hashCode = function () {
|
|
40567
|
-
return getStringHashCode(this.n29_1);
|
|
40568
|
-
};
|
|
40569
|
-
MediaDisable.prototype.equals = function (other) {
|
|
40570
|
-
if (this === other)
|
|
40571
|
-
return true;
|
|
40572
|
-
if (!(other instanceof MediaDisable))
|
|
40573
|
-
return false;
|
|
40574
|
-
var tmp0_other_with_cast = other instanceof MediaDisable ? other : THROW_CCE();
|
|
40575
40575
|
if (!(this.n29_1 === tmp0_other_with_cast.n29_1))
|
|
40576
40576
|
return false;
|
|
40577
40577
|
return true;
|
|
40578
40578
|
};
|
|
40579
|
-
|
|
40579
|
+
DisableEarmuff.$metadata$ = classMeta('DisableEarmuff', [MediaEvent]);
|
|
40580
40580
|
function MediaConnectionStatusUpdate(id, status) {
|
|
40581
40581
|
this.o29_1 = id;
|
|
40582
40582
|
this.p29_1 = status;
|
|
@@ -47269,37 +47269,33 @@
|
|
|
47269
47269
|
Unit_getInstance();
|
|
47270
47270
|
break;
|
|
47271
47271
|
case 5:
|
|
47272
|
-
|
|
47273
|
-
|
|
47274
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
47275
|
-
// Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
47276
|
-
var tmp0_safe_receiver_0 = $cancel._v;
|
|
47277
|
-
if (tmp0_safe_receiver_0 == null)
|
|
47272
|
+
var tmp4_safe_receiver = $cancel._v;
|
|
47273
|
+
if (tmp4_safe_receiver == null)
|
|
47278
47274
|
;
|
|
47279
47275
|
else
|
|
47280
|
-
|
|
47281
|
-
|
|
47276
|
+
tmp4_safe_receiver();
|
|
47277
|
+
$callback(Companion_getInstance_107().e2g(Exception_init_$Create$_0('Media Timeout')), null);
|
|
47282
47278
|
this$0.r2p_1.c1d(Action_init_$Create$(new CallCleanup($legId)));
|
|
47283
47279
|
Unit_getInstance();
|
|
47284
47280
|
break;
|
|
47285
47281
|
case 6:
|
|
47286
47282
|
case 4:
|
|
47287
47283
|
// Inline function 'co.touchlab.kermit.Logger.w' call
|
|
47288
|
-
var
|
|
47289
|
-
if (
|
|
47284
|
+
var tmp0_w = this$0.t2p_1;
|
|
47285
|
+
if (tmp0_w.g1a_1.p1a().g4(Severity_Warn_getInstance()) <= 0) {
|
|
47290
47286
|
var tmp_2 = Severity_Warn_getInstance();
|
|
47291
|
-
var tmp_3 =
|
|
47292
|
-
var tmp$ret$
|
|
47287
|
+
var tmp_3 = tmp0_w.f1a();
|
|
47288
|
+
var tmp$ret$0;
|
|
47293
47289
|
// Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
47294
|
-
tmp$ret$
|
|
47295
|
-
|
|
47290
|
+
tmp$ret$0 = 'Unexpected Media Connection Transition during setup';
|
|
47291
|
+
tmp0_w.o1a(tmp_2, tmp_3, null, tmp$ret$0);
|
|
47296
47292
|
}
|
|
47297
47293
|
|
|
47298
|
-
var
|
|
47299
|
-
if (
|
|
47294
|
+
var tmp5_safe_receiver = $cancel._v;
|
|
47295
|
+
if (tmp5_safe_receiver == null)
|
|
47300
47296
|
;
|
|
47301
47297
|
else
|
|
47302
|
-
|
|
47298
|
+
tmp5_safe_receiver();
|
|
47303
47299
|
this$0.r2p_1.c1d(Action_init_$Create$(new CallCleanup($legId)));
|
|
47304
47300
|
Unit_getInstance();
|
|
47305
47301
|
break;
|
|
@@ -48130,6 +48126,7 @@
|
|
|
48130
48126
|
callback(Companion_getInstance_107().e2g(InternalError_NoCallFound_getInstance()));
|
|
48131
48127
|
return Unit_getInstance();
|
|
48132
48128
|
}
|
|
48129
|
+
this.r2p_1.c1d(Action_init_$Create$(new MediaDisable(callId)));
|
|
48133
48130
|
var callMemberShipState = call.k2p_1.s1();
|
|
48134
48131
|
if (callMemberShipState instanceof Joined) {
|
|
48135
48132
|
var tmp = new MemberKickRequest(callMemberShipState.o2p_1, callMemberShipState.p2p_1, reasonText, reasonCode);
|
|
@@ -53002,13 +52999,13 @@
|
|
|
53002
52999
|
$media.r2v(action.p1d_1.m2r_1);
|
|
53003
53000
|
} else {
|
|
53004
53001
|
if (tmp0_subject instanceof MediaDisable) {
|
|
53005
|
-
$media.r2v(action.p1d_1.
|
|
53002
|
+
$media.r2v(action.p1d_1.j29_1);
|
|
53006
53003
|
} else {
|
|
53007
53004
|
if (tmp0_subject instanceof Mute) {
|
|
53008
|
-
$media.s2v(action.p1d_1.
|
|
53005
|
+
$media.s2v(action.p1d_1.k29_1);
|
|
53009
53006
|
} else {
|
|
53010
53007
|
if (tmp0_subject instanceof Unmute) {
|
|
53011
|
-
$media.t2v(action.p1d_1.
|
|
53008
|
+
$media.t2v(action.p1d_1.l29_1);
|
|
53012
53009
|
}
|
|
53013
53010
|
}
|
|
53014
53011
|
}
|
|
@@ -57060,11 +57057,11 @@
|
|
|
57060
57057
|
return true;
|
|
57061
57058
|
};
|
|
57062
57059
|
Resolved.$metadata$ = classMeta('Resolved', undefined, undefined, undefined, undefined, StateTransition.prototype);
|
|
57063
|
-
function Failed(error, value) {
|
|
57060
|
+
function Failed(error, value, requestId) {
|
|
57064
57061
|
StateTransition.call(this);
|
|
57065
57062
|
this.v2o_1 = error;
|
|
57066
57063
|
this.w2o_1 = value;
|
|
57067
|
-
this.x2o_1 =
|
|
57064
|
+
this.x2o_1 = requestId;
|
|
57068
57065
|
}
|
|
57069
57066
|
Failed.prototype.s1 = function () {
|
|
57070
57067
|
return this.w2o_1;
|
|
@@ -57073,11 +57070,12 @@
|
|
|
57073
57070
|
return this.x2o_1;
|
|
57074
57071
|
};
|
|
57075
57072
|
Failed.prototype.toString = function () {
|
|
57076
|
-
return 'Failed(error=' + this.v2o_1 + ', value=' + this.w2o_1 + ')';
|
|
57073
|
+
return 'Failed(error=' + this.v2o_1 + ', value=' + this.w2o_1 + ', requestId=' + this.x2o_1 + ')';
|
|
57077
57074
|
};
|
|
57078
57075
|
Failed.prototype.hashCode = function () {
|
|
57079
57076
|
var result = this.v2o_1.hashCode();
|
|
57080
57077
|
result = imul(result, 31) + (this.w2o_1 == null ? 0 : hashCode(this.w2o_1)) | 0;
|
|
57078
|
+
result = imul(result, 31) + (this.x2o_1 == null ? 0 : getStringHashCode(this.x2o_1)) | 0;
|
|
57081
57079
|
return result;
|
|
57082
57080
|
};
|
|
57083
57081
|
Failed.prototype.equals = function (other) {
|
|
@@ -57090,6 +57088,8 @@
|
|
|
57090
57088
|
return false;
|
|
57091
57089
|
if (!equals(this.w2o_1, tmp0_other_with_cast.w2o_1))
|
|
57092
57090
|
return false;
|
|
57091
|
+
if (!(this.x2o_1 == tmp0_other_with_cast.x2o_1))
|
|
57092
|
+
return false;
|
|
57093
57093
|
return true;
|
|
57094
57094
|
};
|
|
57095
57095
|
Failed.$metadata$ = classMeta('Failed', undefined, undefined, undefined, undefined, StateTransition.prototype);
|
|
@@ -57106,7 +57106,7 @@
|
|
|
57106
57106
|
var tmp0_subject = _this__u8e3s4;
|
|
57107
57107
|
var tmp;
|
|
57108
57108
|
if (tmp0_subject instanceof Pending) {
|
|
57109
|
-
tmp = new Failed(new Pair(_this__u8e3s4.w33_1, err), _this__u8e3s4.s1());
|
|
57109
|
+
tmp = new Failed(new Pair(_this__u8e3s4.w33_1, err), _this__u8e3s4.s1(), _this__u8e3s4.x33_1);
|
|
57110
57110
|
} else {
|
|
57111
57111
|
if (tmp0_subject instanceof Resolved) {
|
|
57112
57112
|
tmp = _this__u8e3s4;
|
|
@@ -57479,7 +57479,7 @@
|
|
|
57479
57479
|
//endregion
|
|
57480
57480
|
//region block: pre-declaration
|
|
57481
57481
|
function setConfig(config) {
|
|
57482
|
-
this.core.t1b(new SetConfig(config.
|
|
57482
|
+
this.core.t1b(new SetConfig(config.l3c_1, config.m3c_1, config.k3c_1, config.o3c_1, config.j3c_1.k2h_1, config.j3c_1.l2h_1));
|
|
57483
57483
|
}
|
|
57484
57484
|
function createSession(token, sessionId) {
|
|
57485
57485
|
return new Promise(ICoreClientJS$createSession$lambda(this, token, sessionId));
|
|
@@ -59849,9 +59849,10 @@
|
|
|
59849
59849
|
return SessionErrorCodesJS_instance;
|
|
59850
59850
|
}
|
|
59851
59851
|
function VonageErrorJS(vonageError) {
|
|
59852
|
-
extendThrowable(this, vonageError.p2j_1,
|
|
59852
|
+
extendThrowable(this, vonageError.p2j_1, void 1);
|
|
59853
59853
|
this.z3b_1 = valueOf_3(vonageError.n2j_1.d4_1);
|
|
59854
59854
|
this.a3c_1 = vonageError.o2j_1;
|
|
59855
|
+
this.b3c_1 = vonageError.q2j_1;
|
|
59855
59856
|
captureStack(this, VonageErrorJS);
|
|
59856
59857
|
}
|
|
59857
59858
|
VonageErrorJS.prototype.v2q = function () {
|
|
@@ -59860,6 +59861,9 @@
|
|
|
59860
59861
|
VonageErrorJS.prototype.f1e = function () {
|
|
59861
59862
|
return this.a3c_1;
|
|
59862
59863
|
};
|
|
59864
|
+
VonageErrorJS.prototype.c3c = function () {
|
|
59865
|
+
return this.b3c_1;
|
|
59866
|
+
};
|
|
59863
59867
|
VonageErrorJS.$metadata$ = classMeta('VonageErrorJS', undefined, undefined, undefined, undefined, Error.prototype);
|
|
59864
59868
|
Object.defineProperty(VonageErrorJS.prototype, 'type', {
|
|
59865
59869
|
configurable: true,
|
|
@@ -59869,6 +59873,10 @@
|
|
|
59869
59873
|
configurable: true,
|
|
59870
59874
|
get: VonageErrorJS.prototype.f1e
|
|
59871
59875
|
});
|
|
59876
|
+
Object.defineProperty(VonageErrorJS.prototype, 'kmpCause', {
|
|
59877
|
+
configurable: true,
|
|
59878
|
+
get: VonageErrorJS.prototype.c3c
|
|
59879
|
+
});
|
|
59872
59880
|
var VonageErrorTypeJS_CS_ERROR_instance;
|
|
59873
59881
|
var VonageErrorTypeJS_HTTP_CLIENT_ERROR_instance;
|
|
59874
59882
|
var VonageErrorTypeJS_SESSION_ERROR_instance;
|
|
@@ -60482,15 +60490,15 @@
|
|
|
60482
60490
|
}
|
|
60483
60491
|
function CoreClientConfigRegionJS(name, ordinal, coreRegion) {
|
|
60484
60492
|
Enum.call(this, name, ordinal);
|
|
60485
|
-
this.
|
|
60493
|
+
this.h3c_1 = coreRegion;
|
|
60486
60494
|
}
|
|
60487
|
-
CoreClientConfigRegionJS.prototype.
|
|
60488
|
-
return this.
|
|
60495
|
+
CoreClientConfigRegionJS.prototype.i3c = function () {
|
|
60496
|
+
return this.h3c_1;
|
|
60489
60497
|
};
|
|
60490
60498
|
CoreClientConfigRegionJS.$metadata$ = classMeta('CoreClientConfigRegionJS', undefined, undefined, undefined, undefined, Enum.prototype);
|
|
60491
60499
|
Object.defineProperty(CoreClientConfigRegionJS.prototype, 'coreRegion', {
|
|
60492
60500
|
configurable: true,
|
|
60493
|
-
get: CoreClientConfigRegionJS.prototype.
|
|
60501
|
+
get: CoreClientConfigRegionJS.prototype.i3c
|
|
60494
60502
|
});
|
|
60495
60503
|
Object.defineProperty(CoreClientConfigRegionJS.prototype, 'name', {
|
|
60496
60504
|
configurable: true,
|
|
@@ -60501,72 +60509,72 @@
|
|
|
60501
60509
|
get: CoreClientConfigRegionJS.prototype.pe
|
|
60502
60510
|
});
|
|
60503
60511
|
function CoreClientConfigJS(region) {
|
|
60504
|
-
this.
|
|
60505
|
-
this.
|
|
60506
|
-
this.
|
|
60507
|
-
this.
|
|
60508
|
-
this.
|
|
60509
|
-
this.
|
|
60512
|
+
this.j3c_1 = Companion_getInstance().d2h(region.h3c_1, 'js', 'Generic JS Navigator', true);
|
|
60513
|
+
this.k3c_1 = this.j3c_1.e2h_1;
|
|
60514
|
+
this.l3c_1 = this.j3c_1.f2h_1;
|
|
60515
|
+
this.m3c_1 = this.j3c_1.g2h_1;
|
|
60516
|
+
this.n3c_1 = this.j3c_1.h2h_1;
|
|
60517
|
+
this.o3c_1 = this.j3c_1.j2h_1;
|
|
60510
60518
|
}
|
|
60511
|
-
CoreClientConfigJS.prototype.n3c = function () {
|
|
60512
|
-
return this.h3c_1;
|
|
60513
|
-
};
|
|
60514
|
-
CoreClientConfigJS.prototype.o3c = function (_set____db54di) {
|
|
60515
|
-
this.i3c_1 = _set____db54di;
|
|
60516
|
-
};
|
|
60517
60519
|
CoreClientConfigJS.prototype.p3c = function () {
|
|
60518
|
-
return this.
|
|
60520
|
+
return this.j3c_1;
|
|
60519
60521
|
};
|
|
60520
60522
|
CoreClientConfigJS.prototype.q3c = function (_set____db54di) {
|
|
60521
|
-
this.
|
|
60523
|
+
this.k3c_1 = _set____db54di;
|
|
60522
60524
|
};
|
|
60523
60525
|
CoreClientConfigJS.prototype.r3c = function () {
|
|
60524
|
-
return this.
|
|
60526
|
+
return this.k3c_1;
|
|
60525
60527
|
};
|
|
60526
60528
|
CoreClientConfigJS.prototype.s3c = function (_set____db54di) {
|
|
60527
|
-
this.
|
|
60529
|
+
this.l3c_1 = _set____db54di;
|
|
60528
60530
|
};
|
|
60529
60531
|
CoreClientConfigJS.prototype.t3c = function () {
|
|
60530
|
-
return this.
|
|
60532
|
+
return this.l3c_1;
|
|
60531
60533
|
};
|
|
60532
60534
|
CoreClientConfigJS.prototype.u3c = function (_set____db54di) {
|
|
60533
|
-
this.
|
|
60535
|
+
this.m3c_1 = _set____db54di;
|
|
60534
60536
|
};
|
|
60535
60537
|
CoreClientConfigJS.prototype.v3c = function () {
|
|
60536
|
-
return this.
|
|
60538
|
+
return this.m3c_1;
|
|
60537
60539
|
};
|
|
60538
60540
|
CoreClientConfigJS.prototype.w3c = function (_set____db54di) {
|
|
60539
|
-
this.
|
|
60541
|
+
this.n3c_1 = _set____db54di;
|
|
60540
60542
|
};
|
|
60541
60543
|
CoreClientConfigJS.prototype.x3c = function () {
|
|
60542
|
-
return this.
|
|
60544
|
+
return this.n3c_1;
|
|
60545
|
+
};
|
|
60546
|
+
CoreClientConfigJS.prototype.y3c = function (_set____db54di) {
|
|
60547
|
+
this.o3c_1 = _set____db54di;
|
|
60548
|
+
};
|
|
60549
|
+
CoreClientConfigJS.prototype.z3c = function () {
|
|
60550
|
+
return this.o3c_1;
|
|
60543
60551
|
};
|
|
60544
60552
|
CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS');
|
|
60545
60553
|
Object.defineProperty(CoreClientConfigJS.prototype, 'apiUrl', {
|
|
60546
|
-
configurable: true,
|
|
60547
|
-
get: CoreClientConfigJS.prototype.p3c,
|
|
60548
|
-
set: CoreClientConfigJS.prototype.o3c
|
|
60549
|
-
});
|
|
60550
|
-
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
|
|
60551
60554
|
configurable: true,
|
|
60552
60555
|
get: CoreClientConfigJS.prototype.r3c,
|
|
60553
60556
|
set: CoreClientConfigJS.prototype.q3c
|
|
60554
60557
|
});
|
|
60555
|
-
Object.defineProperty(CoreClientConfigJS.prototype, '
|
|
60558
|
+
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
|
|
60556
60559
|
configurable: true,
|
|
60557
60560
|
get: CoreClientConfigJS.prototype.t3c,
|
|
60558
60561
|
set: CoreClientConfigJS.prototype.s3c
|
|
60559
60562
|
});
|
|
60560
|
-
Object.defineProperty(CoreClientConfigJS.prototype, '
|
|
60563
|
+
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', {
|
|
60561
60564
|
configurable: true,
|
|
60562
60565
|
get: CoreClientConfigJS.prototype.v3c,
|
|
60563
60566
|
set: CoreClientConfigJS.prototype.u3c
|
|
60564
60567
|
});
|
|
60565
|
-
Object.defineProperty(CoreClientConfigJS.prototype, '
|
|
60568
|
+
Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
|
|
60566
60569
|
configurable: true,
|
|
60567
60570
|
get: CoreClientConfigJS.prototype.x3c,
|
|
60568
60571
|
set: CoreClientConfigJS.prototype.w3c
|
|
60569
60572
|
});
|
|
60573
|
+
Object.defineProperty(CoreClientConfigJS.prototype, 'enableWebsocketInvites', {
|
|
60574
|
+
configurable: true,
|
|
60575
|
+
get: CoreClientConfigJS.prototype.z3c,
|
|
60576
|
+
set: CoreClientConfigJS.prototype.y3c
|
|
60577
|
+
});
|
|
60570
60578
|
var LoggingLevelJS_Verbose_instance;
|
|
60571
60579
|
var LoggingLevelJS_Debug_instance;
|
|
60572
60580
|
var LoggingLevelJS_Info_instance;
|
|
@@ -60610,10 +60618,10 @@
|
|
|
60610
60618
|
}
|
|
60611
60619
|
function LoggingLevelJS(name, ordinal, sev) {
|
|
60612
60620
|
Enum.call(this, name, ordinal);
|
|
60613
|
-
this.
|
|
60621
|
+
this.c3d_1 = sev;
|
|
60614
60622
|
}
|
|
60615
60623
|
LoggingLevelJS.prototype.s2g = function () {
|
|
60616
|
-
return this.
|
|
60624
|
+
return this.c3d_1;
|
|
60617
60625
|
};
|
|
60618
60626
|
LoggingLevelJS.$metadata$ = classMeta('LoggingLevelJS', [ILoggingLevel], undefined, undefined, undefined, Enum.prototype);
|
|
60619
60627
|
Object.defineProperty(LoggingLevelJS.prototype, 'name', {
|
|
@@ -60645,7 +60653,7 @@
|
|
|
60645
60653
|
inductionVariable = inductionVariable + 1 | 0;
|
|
60646
60654
|
var tmp$ret$0;
|
|
60647
60655
|
// Inline function 'vonage.Companion.getSessionErrorReason.<anonymous>' call
|
|
60648
|
-
tmp$ret$0 = element.
|
|
60656
|
+
tmp$ret$0 = element.f3d_1.equals(reason);
|
|
60649
60657
|
if (tmp$ret$0) {
|
|
60650
60658
|
tmp$ret$1 = element;
|
|
60651
60659
|
break $l$block;
|
|
@@ -60693,10 +60701,10 @@
|
|
|
60693
60701
|
}
|
|
60694
60702
|
function SessionErrorReasonJS(name, ordinal, reason) {
|
|
60695
60703
|
Enum.call(this, name, ordinal);
|
|
60696
|
-
this.
|
|
60704
|
+
this.f3d_1 = reason;
|
|
60697
60705
|
}
|
|
60698
60706
|
SessionErrorReasonJS.prototype.k2a = function () {
|
|
60699
|
-
return this.
|
|
60707
|
+
return this.f3d_1;
|
|
60700
60708
|
};
|
|
60701
60709
|
SessionErrorReasonJS.$metadata$ = classMeta('SessionErrorReasonJS', undefined, undefined, undefined, undefined, Enum.prototype);
|
|
60702
60710
|
Object.defineProperty(SessionErrorReasonJS.prototype, 'reason', {
|
|
@@ -61248,40 +61256,40 @@
|
|
|
61248
61256
|
}
|
|
61249
61257
|
IVoiceClientJS.$metadata$ = interfaceMeta('IVoiceClientJS', [ICoreClientJS]);
|
|
61250
61258
|
function VoiceInviteFromInfoJS(id, type) {
|
|
61251
|
-
this.
|
|
61252
|
-
this.
|
|
61259
|
+
this.k3d_1 = id;
|
|
61260
|
+
this.l3d_1 = type;
|
|
61253
61261
|
}
|
|
61254
61262
|
VoiceInviteFromInfoJS.prototype.a1l = function () {
|
|
61255
|
-
return this.
|
|
61263
|
+
return this.k3d_1;
|
|
61256
61264
|
};
|
|
61257
61265
|
VoiceInviteFromInfoJS.prototype.v2q = function () {
|
|
61258
|
-
return this.
|
|
61266
|
+
return this.l3d_1;
|
|
61259
61267
|
};
|
|
61260
61268
|
VoiceInviteFromInfoJS.prototype.component1 = function () {
|
|
61261
|
-
return this.
|
|
61269
|
+
return this.k3d_1;
|
|
61262
61270
|
};
|
|
61263
61271
|
VoiceInviteFromInfoJS.prototype.component2 = function () {
|
|
61264
|
-
return this.
|
|
61272
|
+
return this.l3d_1;
|
|
61265
61273
|
};
|
|
61266
61274
|
VoiceInviteFromInfoJS.prototype.copy = function (id, type) {
|
|
61267
|
-
return this.
|
|
61275
|
+
return this.m3d(id === void 1 ? this.k3d_1 : id, type === void 1 ? this.l3d_1 : type);
|
|
61268
61276
|
};
|
|
61269
|
-
VoiceInviteFromInfoJS.prototype.
|
|
61277
|
+
VoiceInviteFromInfoJS.prototype.m3d = function (id, type) {
|
|
61270
61278
|
return new VoiceInviteFromInfoJS(id, type);
|
|
61271
61279
|
};
|
|
61272
|
-
VoiceInviteFromInfoJS.prototype.
|
|
61280
|
+
VoiceInviteFromInfoJS.prototype.n3d = function (id, type, $mask0, $handler) {
|
|
61273
61281
|
if (!(($mask0 & 1) === 0))
|
|
61274
|
-
id = this.
|
|
61282
|
+
id = this.k3d_1;
|
|
61275
61283
|
if (!(($mask0 & 2) === 0))
|
|
61276
|
-
type = this.
|
|
61277
|
-
return this.
|
|
61284
|
+
type = this.l3d_1;
|
|
61285
|
+
return this.m3d(id, type);
|
|
61278
61286
|
};
|
|
61279
61287
|
VoiceInviteFromInfoJS.prototype.toString = function () {
|
|
61280
|
-
return 'VoiceInviteFromInfoJS(id=' + this.
|
|
61288
|
+
return 'VoiceInviteFromInfoJS(id=' + this.k3d_1 + ', type=' + this.l3d_1 + ')';
|
|
61281
61289
|
};
|
|
61282
61290
|
VoiceInviteFromInfoJS.prototype.hashCode = function () {
|
|
61283
|
-
var result = this.
|
|
61284
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
61291
|
+
var result = this.k3d_1 == null ? 0 : getStringHashCode(this.k3d_1);
|
|
61292
|
+
result = imul(result, 31) + getStringHashCode(this.l3d_1) | 0;
|
|
61285
61293
|
return result;
|
|
61286
61294
|
};
|
|
61287
61295
|
VoiceInviteFromInfoJS.prototype.equals = function (other) {
|
|
@@ -61290,9 +61298,9 @@
|
|
|
61290
61298
|
if (!(other instanceof VoiceInviteFromInfoJS))
|
|
61291
61299
|
return false;
|
|
61292
61300
|
var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE();
|
|
61293
|
-
if (!(this.
|
|
61301
|
+
if (!(this.k3d_1 == tmp0_other_with_cast.k3d_1))
|
|
61294
61302
|
return false;
|
|
61295
|
-
if (!(this.
|
|
61303
|
+
if (!(this.l3d_1 === tmp0_other_with_cast.l3d_1))
|
|
61296
61304
|
return false;
|
|
61297
61305
|
return true;
|
|
61298
61306
|
};
|
|
@@ -61339,64 +61347,64 @@
|
|
|
61339
61347
|
var responseBody_0 = responseBody === void 1 ? null : responseBody;
|
|
61340
61348
|
var cause_0 = cause === void 1 ? null : cause;
|
|
61341
61349
|
extendThrowable(this, void 1, void 1);
|
|
61342
|
-
this.
|
|
61343
|
-
this.
|
|
61344
|
-
this.
|
|
61345
|
-
this.
|
|
61350
|
+
this.o3d_1 = message_0;
|
|
61351
|
+
this.p3d_1 = responseCode_0;
|
|
61352
|
+
this.q3d_1 = responseBody_0;
|
|
61353
|
+
this.r3d_1 = cause_0;
|
|
61346
61354
|
captureStack(this, HttpClientErrorJS);
|
|
61347
61355
|
}
|
|
61348
61356
|
HttpClientErrorJS.prototype.g1 = function () {
|
|
61349
|
-
return this.
|
|
61357
|
+
return this.o3d_1;
|
|
61350
61358
|
};
|
|
61351
|
-
HttpClientErrorJS.prototype.
|
|
61352
|
-
return this.
|
|
61359
|
+
HttpClientErrorJS.prototype.s3d = function () {
|
|
61360
|
+
return this.p3d_1;
|
|
61353
61361
|
};
|
|
61354
|
-
HttpClientErrorJS.prototype.
|
|
61355
|
-
return this.
|
|
61362
|
+
HttpClientErrorJS.prototype.t3d = function () {
|
|
61363
|
+
return this.q3d_1;
|
|
61356
61364
|
};
|
|
61357
61365
|
HttpClientErrorJS.prototype.h1 = function () {
|
|
61358
|
-
return this.
|
|
61366
|
+
return this.r3d_1;
|
|
61359
61367
|
};
|
|
61360
|
-
HttpClientErrorJS.prototype.
|
|
61361
|
-
return new HTTPClientError(this.
|
|
61368
|
+
HttpClientErrorJS.prototype.u3d = function () {
|
|
61369
|
+
return new HTTPClientError(this.o3d_1, this.p3d_1, this.q3d_1, this.r3d_1);
|
|
61362
61370
|
};
|
|
61363
61371
|
HttpClientErrorJS.prototype.component1 = function () {
|
|
61364
|
-
return this.
|
|
61372
|
+
return this.o3d_1;
|
|
61365
61373
|
};
|
|
61366
61374
|
HttpClientErrorJS.prototype.component2 = function () {
|
|
61367
|
-
return this.
|
|
61375
|
+
return this.p3d_1;
|
|
61368
61376
|
};
|
|
61369
61377
|
HttpClientErrorJS.prototype.component3 = function () {
|
|
61370
|
-
return this.
|
|
61378
|
+
return this.q3d_1;
|
|
61371
61379
|
};
|
|
61372
61380
|
HttpClientErrorJS.prototype.component4 = function () {
|
|
61373
|
-
return this.
|
|
61381
|
+
return this.r3d_1;
|
|
61374
61382
|
};
|
|
61375
61383
|
HttpClientErrorJS.prototype.copy = function (message, responseCode, responseBody, cause) {
|
|
61376
|
-
return this.
|
|
61384
|
+
return this.v3d(message === void 1 ? this.o3d_1 : message, responseCode === void 1 ? this.p3d_1 : responseCode, responseBody === void 1 ? this.q3d_1 : responseBody, cause === void 1 ? this.r3d_1 : cause);
|
|
61377
61385
|
};
|
|
61378
|
-
HttpClientErrorJS.prototype.
|
|
61386
|
+
HttpClientErrorJS.prototype.v3d = function (message, responseCode, responseBody, cause) {
|
|
61379
61387
|
return new HttpClientErrorJS(message, responseCode, responseBody, cause);
|
|
61380
61388
|
};
|
|
61381
|
-
HttpClientErrorJS.prototype.
|
|
61389
|
+
HttpClientErrorJS.prototype.w3d = function (message, responseCode, responseBody, cause, $mask0, $handler) {
|
|
61382
61390
|
if (!(($mask0 & 1) === 0))
|
|
61383
|
-
message = this.
|
|
61391
|
+
message = this.o3d_1;
|
|
61384
61392
|
if (!(($mask0 & 2) === 0))
|
|
61385
|
-
responseCode = this.
|
|
61393
|
+
responseCode = this.p3d_1;
|
|
61386
61394
|
if (!(($mask0 & 4) === 0))
|
|
61387
|
-
responseBody = this.
|
|
61395
|
+
responseBody = this.q3d_1;
|
|
61388
61396
|
if (!(($mask0 & 8) === 0))
|
|
61389
|
-
cause = this.
|
|
61390
|
-
return this.
|
|
61397
|
+
cause = this.r3d_1;
|
|
61398
|
+
return this.v3d(message, responseCode, responseBody, cause);
|
|
61391
61399
|
};
|
|
61392
61400
|
HttpClientErrorJS.prototype.toString = function () {
|
|
61393
|
-
return 'HttpClientErrorJS(message=' + this.
|
|
61401
|
+
return 'HttpClientErrorJS(message=' + this.o3d_1 + ', responseCode=' + this.p3d_1 + ', responseBody=' + this.q3d_1 + ', cause=' + this.r3d_1 + ')';
|
|
61394
61402
|
};
|
|
61395
61403
|
HttpClientErrorJS.prototype.hashCode = function () {
|
|
61396
|
-
var result = this.
|
|
61397
|
-
result = imul(result, 31) + (this.
|
|
61398
|
-
result = imul(result, 31) + (this.
|
|
61399
|
-
result = imul(result, 31) + (this.
|
|
61404
|
+
var result = this.o3d_1 == null ? 0 : getStringHashCode(this.o3d_1);
|
|
61405
|
+
result = imul(result, 31) + (this.p3d_1 == null ? 0 : this.p3d_1) | 0;
|
|
61406
|
+
result = imul(result, 31) + (this.q3d_1 == null ? 0 : getStringHashCode(this.q3d_1)) | 0;
|
|
61407
|
+
result = imul(result, 31) + (this.r3d_1 == null ? 0 : hashCode(this.r3d_1)) | 0;
|
|
61400
61408
|
return result;
|
|
61401
61409
|
};
|
|
61402
61410
|
HttpClientErrorJS.prototype.equals = function (other) {
|
|
@@ -61405,13 +61413,13 @@
|
|
|
61405
61413
|
if (!(other instanceof HttpClientErrorJS))
|
|
61406
61414
|
return false;
|
|
61407
61415
|
var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
|
|
61408
|
-
if (!(this.
|
|
61416
|
+
if (!(this.o3d_1 == tmp0_other_with_cast.o3d_1))
|
|
61409
61417
|
return false;
|
|
61410
|
-
if (!(this.
|
|
61418
|
+
if (!(this.p3d_1 == tmp0_other_with_cast.p3d_1))
|
|
61411
61419
|
return false;
|
|
61412
|
-
if (!(this.
|
|
61420
|
+
if (!(this.q3d_1 == tmp0_other_with_cast.q3d_1))
|
|
61413
61421
|
return false;
|
|
61414
|
-
if (!equals(this.
|
|
61422
|
+
if (!equals(this.r3d_1, tmp0_other_with_cast.r3d_1))
|
|
61415
61423
|
return false;
|
|
61416
61424
|
return true;
|
|
61417
61425
|
};
|
|
@@ -61424,11 +61432,11 @@
|
|
|
61424
61432
|
});
|
|
61425
61433
|
Object.defineProperty(HttpClientErrorJS.prototype, 'responseCode', {
|
|
61426
61434
|
configurable: true,
|
|
61427
|
-
get: HttpClientErrorJS.prototype.
|
|
61435
|
+
get: HttpClientErrorJS.prototype.s3d
|
|
61428
61436
|
});
|
|
61429
61437
|
Object.defineProperty(HttpClientErrorJS.prototype, 'responseBody', {
|
|
61430
61438
|
configurable: true,
|
|
61431
|
-
get: HttpClientErrorJS.prototype.
|
|
61439
|
+
get: HttpClientErrorJS.prototype.t3d
|
|
61432
61440
|
});
|
|
61433
61441
|
Object.defineProperty(HttpClientErrorJS.prototype, 'cause', {
|
|
61434
61442
|
configurable: true,
|
|
@@ -61438,7 +61446,7 @@
|
|
|
61438
61446
|
});
|
|
61439
61447
|
Object.defineProperty(HttpClientErrorJS.prototype, 'coreError', {
|
|
61440
61448
|
configurable: true,
|
|
61441
|
-
get: HttpClientErrorJS.prototype.
|
|
61449
|
+
get: HttpClientErrorJS.prototype.u3d
|
|
61442
61450
|
});
|
|
61443
61451
|
function get_SOCKET_CONNECTED() {
|
|
61444
61452
|
return SOCKET_CONNECTED;
|
|
@@ -61503,10 +61511,10 @@
|
|
|
61503
61511
|
}
|
|
61504
61512
|
function CancelReasonJS(name, ordinal, reason) {
|
|
61505
61513
|
Enum.call(this, name, ordinal);
|
|
61506
|
-
this.
|
|
61514
|
+
this.z3d_1 = reason;
|
|
61507
61515
|
}
|
|
61508
61516
|
CancelReasonJS.prototype.k2a = function () {
|
|
61509
|
-
return this.
|
|
61517
|
+
return this.z3d_1;
|
|
61510
61518
|
};
|
|
61511
61519
|
CancelReasonJS.$metadata$ = classMeta('CancelReasonJS', undefined, undefined, undefined, undefined, Enum.prototype);
|
|
61512
61520
|
Object.defineProperty(CancelReasonJS.prototype, 'reason', {
|
|
@@ -61522,23 +61530,17 @@
|
|
|
61522
61530
|
get: CancelReasonJS.prototype.pe
|
|
61523
61531
|
});
|
|
61524
61532
|
function RTCQualityJS(callQuality) {
|
|
61525
|
-
this.
|
|
61526
|
-
this.
|
|
61527
|
-
this.
|
|
61528
|
-
this.
|
|
61529
|
-
this.
|
|
61530
|
-
this.
|
|
61531
|
-
this.
|
|
61532
|
-
this.
|
|
61533
|
-
this.
|
|
61534
|
-
this.
|
|
61533
|
+
this.a3e_1 = callQuality;
|
|
61534
|
+
this.b3e_1 = this.a3e_1.f2u_1;
|
|
61535
|
+
this.c3e_1 = this.a3e_1.g2u_1;
|
|
61536
|
+
this.d3e_1 = this.a3e_1.h2u_1;
|
|
61537
|
+
this.e3e_1 = this.a3e_1.i2u_1;
|
|
61538
|
+
this.f3e_1 = this.a3e_1.j2u_1;
|
|
61539
|
+
this.g3e_1 = this.a3e_1.k2u_1;
|
|
61540
|
+
this.h3e_1 = this.a3e_1.l2u_1;
|
|
61541
|
+
this.i3e_1 = this.a3e_1.m2u_1;
|
|
61542
|
+
this.j3e_1 = this.a3e_1.n2u_1;
|
|
61535
61543
|
}
|
|
61536
|
-
RTCQualityJS.prototype.i3e = function () {
|
|
61537
|
-
return this.z3d_1;
|
|
61538
|
-
};
|
|
61539
|
-
RTCQualityJS.prototype.j3e = function () {
|
|
61540
|
-
return this.a3e_1;
|
|
61541
|
-
};
|
|
61542
61544
|
RTCQualityJS.prototype.k3e = function () {
|
|
61543
61545
|
return this.b3e_1;
|
|
61544
61546
|
};
|
|
@@ -61560,22 +61562,28 @@
|
|
|
61560
61562
|
RTCQualityJS.prototype.q3e = function () {
|
|
61561
61563
|
return this.h3e_1;
|
|
61562
61564
|
};
|
|
61565
|
+
RTCQualityJS.prototype.r3e = function () {
|
|
61566
|
+
return this.i3e_1;
|
|
61567
|
+
};
|
|
61568
|
+
RTCQualityJS.prototype.s3e = function () {
|
|
61569
|
+
return this.j3e_1;
|
|
61570
|
+
};
|
|
61563
61571
|
RTCQualityJS.prototype.copy = function (callQuality) {
|
|
61564
|
-
return this.
|
|
61572
|
+
return this.t3e(callQuality === void 1 ? this.a3e_1 : callQuality);
|
|
61565
61573
|
};
|
|
61566
|
-
RTCQualityJS.prototype.
|
|
61574
|
+
RTCQualityJS.prototype.t3e = function (callQuality) {
|
|
61567
61575
|
return new RTCQualityJS(callQuality);
|
|
61568
61576
|
};
|
|
61569
|
-
RTCQualityJS.prototype.
|
|
61577
|
+
RTCQualityJS.prototype.u3e = function (callQuality, $mask0, $handler) {
|
|
61570
61578
|
if (!(($mask0 & 1) === 0))
|
|
61571
|
-
callQuality = this.
|
|
61572
|
-
return this.
|
|
61579
|
+
callQuality = this.a3e_1;
|
|
61580
|
+
return this.t3e(callQuality);
|
|
61573
61581
|
};
|
|
61574
61582
|
RTCQualityJS.prototype.toString = function () {
|
|
61575
|
-
return 'RTCQualityJS(callQuality=' + this.
|
|
61583
|
+
return 'RTCQualityJS(callQuality=' + this.a3e_1 + ')';
|
|
61576
61584
|
};
|
|
61577
61585
|
RTCQualityJS.prototype.hashCode = function () {
|
|
61578
|
-
return this.
|
|
61586
|
+
return this.a3e_1.hashCode();
|
|
61579
61587
|
};
|
|
61580
61588
|
RTCQualityJS.prototype.equals = function (other) {
|
|
61581
61589
|
if (this === other)
|
|
@@ -61583,65 +61591,59 @@
|
|
|
61583
61591
|
if (!(other instanceof RTCQualityJS))
|
|
61584
61592
|
return false;
|
|
61585
61593
|
var tmp0_other_with_cast = other instanceof RTCQualityJS ? other : THROW_CCE();
|
|
61586
|
-
if (!this.
|
|
61594
|
+
if (!this.a3e_1.equals(tmp0_other_with_cast.a3e_1))
|
|
61587
61595
|
return false;
|
|
61588
61596
|
return true;
|
|
61589
61597
|
};
|
|
61590
61598
|
RTCQualityJS.$metadata$ = classMeta('RTCQualityJS');
|
|
61591
61599
|
Object.defineProperty(RTCQualityJS.prototype, 'mos_score', {
|
|
61592
61600
|
configurable: true,
|
|
61593
|
-
get: RTCQualityJS.prototype.
|
|
61601
|
+
get: RTCQualityJS.prototype.k3e
|
|
61594
61602
|
});
|
|
61595
61603
|
Object.defineProperty(RTCQualityJS.prototype, 'quality_percentage', {
|
|
61596
61604
|
configurable: true,
|
|
61597
|
-
get: RTCQualityJS.prototype.
|
|
61605
|
+
get: RTCQualityJS.prototype.l3e
|
|
61598
61606
|
});
|
|
61599
61607
|
Object.defineProperty(RTCQualityJS.prototype, 'jitter_min_var', {
|
|
61600
61608
|
configurable: true,
|
|
61601
|
-
get: RTCQualityJS.prototype.
|
|
61609
|
+
get: RTCQualityJS.prototype.m3e
|
|
61602
61610
|
});
|
|
61603
61611
|
Object.defineProperty(RTCQualityJS.prototype, 'jitter_max_var', {
|
|
61604
61612
|
configurable: true,
|
|
61605
|
-
get: RTCQualityJS.prototype.
|
|
61613
|
+
get: RTCQualityJS.prototype.n3e
|
|
61606
61614
|
});
|
|
61607
61615
|
Object.defineProperty(RTCQualityJS.prototype, 'jitter_loss_rate', {
|
|
61608
61616
|
configurable: true,
|
|
61609
|
-
get: RTCQualityJS.prototype.
|
|
61617
|
+
get: RTCQualityJS.prototype.o3e
|
|
61610
61618
|
});
|
|
61611
61619
|
Object.defineProperty(RTCQualityJS.prototype, 'jitter_burst_rate', {
|
|
61612
61620
|
configurable: true,
|
|
61613
|
-
get: RTCQualityJS.prototype.
|
|
61621
|
+
get: RTCQualityJS.prototype.p3e
|
|
61614
61622
|
});
|
|
61615
61623
|
Object.defineProperty(RTCQualityJS.prototype, 'flaw_total', {
|
|
61616
61624
|
configurable: true,
|
|
61617
|
-
get: RTCQualityJS.prototype.
|
|
61625
|
+
get: RTCQualityJS.prototype.q3e
|
|
61618
61626
|
});
|
|
61619
61627
|
Object.defineProperty(RTCQualityJS.prototype, 'packet_cnt', {
|
|
61620
61628
|
configurable: true,
|
|
61621
|
-
get: RTCQualityJS.prototype.
|
|
61629
|
+
get: RTCQualityJS.prototype.r3e
|
|
61622
61630
|
});
|
|
61623
61631
|
Object.defineProperty(RTCQualityJS.prototype, 'packet_loss_perc', {
|
|
61624
61632
|
configurable: true,
|
|
61625
|
-
get: RTCQualityJS.prototype.
|
|
61633
|
+
get: RTCQualityJS.prototype.s3e
|
|
61626
61634
|
});
|
|
61627
61635
|
function RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
|
|
61628
|
-
this.
|
|
61629
|
-
this.
|
|
61630
|
-
this.
|
|
61631
|
-
this.
|
|
61632
|
-
this.
|
|
61633
|
-
this.
|
|
61634
|
-
this.
|
|
61635
|
-
this.
|
|
61636
|
-
this.
|
|
61637
|
-
this.
|
|
61636
|
+
this.v3e_1 = audioRecvPackets;
|
|
61637
|
+
this.w3e_1 = audioRecvPacketsLost;
|
|
61638
|
+
this.x3e_1 = audioRecvBytes;
|
|
61639
|
+
this.y3e_1 = audioRecvJitter;
|
|
61640
|
+
this.z3e_1 = audioSentPackets;
|
|
61641
|
+
this.a3f_1 = audioSentBytes;
|
|
61642
|
+
this.b3f_1 = audioSentPacketsLost;
|
|
61643
|
+
this.c3f_1 = audioRtt;
|
|
61644
|
+
this.d3f_1 = audioSentJitter;
|
|
61645
|
+
this.e3f_1 = legId;
|
|
61638
61646
|
}
|
|
61639
|
-
RTCStatsJS.prototype.d3f = function () {
|
|
61640
|
-
return this.t3e_1;
|
|
61641
|
-
};
|
|
61642
|
-
RTCStatsJS.prototype.e3f = function () {
|
|
61643
|
-
return this.u3e_1;
|
|
61644
|
-
};
|
|
61645
61647
|
RTCStatsJS.prototype.f3f = function () {
|
|
61646
61648
|
return this.v3e_1;
|
|
61647
61649
|
};
|
|
@@ -61663,82 +61665,88 @@
|
|
|
61663
61665
|
RTCStatsJS.prototype.l3f = function () {
|
|
61664
61666
|
return this.b3f_1;
|
|
61665
61667
|
};
|
|
61666
|
-
RTCStatsJS.prototype.
|
|
61668
|
+
RTCStatsJS.prototype.m3f = function () {
|
|
61667
61669
|
return this.c3f_1;
|
|
61668
61670
|
};
|
|
61671
|
+
RTCStatsJS.prototype.n3f = function () {
|
|
61672
|
+
return this.d3f_1;
|
|
61673
|
+
};
|
|
61674
|
+
RTCStatsJS.prototype.x1f = function () {
|
|
61675
|
+
return this.e3f_1;
|
|
61676
|
+
};
|
|
61669
61677
|
RTCStatsJS.prototype.component1 = function () {
|
|
61670
|
-
return this.
|
|
61678
|
+
return this.v3e_1;
|
|
61671
61679
|
};
|
|
61672
61680
|
RTCStatsJS.prototype.component2 = function () {
|
|
61673
|
-
return this.
|
|
61681
|
+
return this.w3e_1;
|
|
61674
61682
|
};
|
|
61675
61683
|
RTCStatsJS.prototype.component3 = function () {
|
|
61676
|
-
return this.
|
|
61684
|
+
return this.x3e_1;
|
|
61677
61685
|
};
|
|
61678
61686
|
RTCStatsJS.prototype.component4 = function () {
|
|
61679
|
-
return this.
|
|
61687
|
+
return this.y3e_1;
|
|
61680
61688
|
};
|
|
61681
61689
|
RTCStatsJS.prototype.component5 = function () {
|
|
61682
|
-
return this.
|
|
61690
|
+
return this.z3e_1;
|
|
61683
61691
|
};
|
|
61684
61692
|
RTCStatsJS.prototype.component6 = function () {
|
|
61685
|
-
return this.
|
|
61693
|
+
return this.a3f_1;
|
|
61686
61694
|
};
|
|
61687
61695
|
RTCStatsJS.prototype.component7 = function () {
|
|
61688
|
-
return this.
|
|
61696
|
+
return this.b3f_1;
|
|
61689
61697
|
};
|
|
61690
61698
|
RTCStatsJS.prototype.component8 = function () {
|
|
61691
|
-
return this.
|
|
61699
|
+
return this.c3f_1;
|
|
61692
61700
|
};
|
|
61693
61701
|
RTCStatsJS.prototype.component9 = function () {
|
|
61694
|
-
return this.
|
|
61702
|
+
return this.d3f_1;
|
|
61695
61703
|
};
|
|
61696
61704
|
RTCStatsJS.prototype.component10 = function () {
|
|
61697
|
-
return this.
|
|
61705
|
+
return this.e3f_1;
|
|
61698
61706
|
};
|
|
61699
61707
|
RTCStatsJS.prototype.copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
|
|
61700
|
-
return this.
|
|
61708
|
+
return this.o3f(audioRecvPackets === void 1 ? this.v3e_1 : audioRecvPackets, audioRecvPacketsLost === void 1 ? this.w3e_1 : audioRecvPacketsLost, audioRecvBytes === void 1 ? this.x3e_1 : audioRecvBytes, audioRecvJitter === void 1 ? this.y3e_1 : audioRecvJitter, audioSentPackets === void 1 ? this.z3e_1 : audioSentPackets, audioSentBytes === void 1 ? this.a3f_1 : audioSentBytes, audioSentPacketsLost === void 1 ? this.b3f_1 : audioSentPacketsLost, audioRtt === void 1 ? this.c3f_1 : audioRtt, audioSentJitter === void 1 ? this.d3f_1 : audioSentJitter, legId === void 1 ? this.e3f_1 : legId);
|
|
61701
61709
|
};
|
|
61702
|
-
RTCStatsJS.prototype.
|
|
61710
|
+
RTCStatsJS.prototype.o3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
|
|
61703
61711
|
return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId);
|
|
61704
61712
|
};
|
|
61705
|
-
RTCStatsJS.prototype.
|
|
61713
|
+
RTCStatsJS.prototype.p3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId, $mask0, $handler) {
|
|
61706
61714
|
if (!(($mask0 & 1) === 0))
|
|
61707
|
-
audioRecvPackets = this.
|
|
61715
|
+
audioRecvPackets = this.v3e_1;
|
|
61708
61716
|
if (!(($mask0 & 2) === 0))
|
|
61709
|
-
audioRecvPacketsLost = this.
|
|
61717
|
+
audioRecvPacketsLost = this.w3e_1;
|
|
61710
61718
|
if (!(($mask0 & 4) === 0))
|
|
61711
|
-
audioRecvBytes = this.
|
|
61719
|
+
audioRecvBytes = this.x3e_1;
|
|
61712
61720
|
if (!(($mask0 & 8) === 0))
|
|
61713
|
-
audioRecvJitter = this.
|
|
61721
|
+
audioRecvJitter = this.y3e_1;
|
|
61714
61722
|
if (!(($mask0 & 16) === 0))
|
|
61715
|
-
audioSentPackets = this.
|
|
61723
|
+
audioSentPackets = this.z3e_1;
|
|
61716
61724
|
if (!(($mask0 & 32) === 0))
|
|
61717
|
-
audioSentBytes = this.
|
|
61725
|
+
audioSentBytes = this.a3f_1;
|
|
61718
61726
|
if (!(($mask0 & 64) === 0))
|
|
61719
|
-
audioSentPacketsLost = this.
|
|
61727
|
+
audioSentPacketsLost = this.b3f_1;
|
|
61720
61728
|
if (!(($mask0 & 128) === 0))
|
|
61721
|
-
audioRtt = this.
|
|
61729
|
+
audioRtt = this.c3f_1;
|
|
61722
61730
|
if (!(($mask0 & 256) === 0))
|
|
61723
|
-
audioSentJitter = this.
|
|
61731
|
+
audioSentJitter = this.d3f_1;
|
|
61724
61732
|
if (!(($mask0 & 512) === 0))
|
|
61725
|
-
legId = this.
|
|
61726
|
-
return this.
|
|
61733
|
+
legId = this.e3f_1;
|
|
61734
|
+
return this.o3f(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId);
|
|
61727
61735
|
};
|
|
61728
61736
|
RTCStatsJS.prototype.toString = function () {
|
|
61729
|
-
return 'RTCStatsJS(audioRecvPackets=' + toString(this.
|
|
61737
|
+
return 'RTCStatsJS(audioRecvPackets=' + toString(this.v3e_1) + ', audioRecvPacketsLost=' + toString(this.w3e_1) + ', audioRecvBytes=' + toString(this.x3e_1) + ', audioRecvJitter=' + toString(this.y3e_1) + ', audioSentPackets=' + toString(this.z3e_1) + ', audioSentBytes=' + toString(this.a3f_1) + ', audioSentPacketsLost=' + toString(this.b3f_1) + ', audioRtt=' + toString(this.c3f_1) + ', audioSentJitter=' + toString(this.d3f_1) + ', legId=' + this.e3f_1 + ')';
|
|
61730
61738
|
};
|
|
61731
61739
|
RTCStatsJS.prototype.hashCode = function () {
|
|
61732
|
-
var result = this.
|
|
61733
|
-
result = imul(result, 31) + (this.u3e_1 == null ? 0 : hashCode(this.u3e_1)) | 0;
|
|
61734
|
-
result = imul(result, 31) + (this.v3e_1 == null ? 0 : hashCode(this.v3e_1)) | 0;
|
|
61740
|
+
var result = this.v3e_1 == null ? 0 : hashCode(this.v3e_1);
|
|
61735
61741
|
result = imul(result, 31) + (this.w3e_1 == null ? 0 : hashCode(this.w3e_1)) | 0;
|
|
61736
61742
|
result = imul(result, 31) + (this.x3e_1 == null ? 0 : hashCode(this.x3e_1)) | 0;
|
|
61737
61743
|
result = imul(result, 31) + (this.y3e_1 == null ? 0 : hashCode(this.y3e_1)) | 0;
|
|
61738
61744
|
result = imul(result, 31) + (this.z3e_1 == null ? 0 : hashCode(this.z3e_1)) | 0;
|
|
61739
61745
|
result = imul(result, 31) + (this.a3f_1 == null ? 0 : hashCode(this.a3f_1)) | 0;
|
|
61740
61746
|
result = imul(result, 31) + (this.b3f_1 == null ? 0 : hashCode(this.b3f_1)) | 0;
|
|
61741
|
-
result = imul(result, 31) +
|
|
61747
|
+
result = imul(result, 31) + (this.c3f_1 == null ? 0 : hashCode(this.c3f_1)) | 0;
|
|
61748
|
+
result = imul(result, 31) + (this.d3f_1 == null ? 0 : hashCode(this.d3f_1)) | 0;
|
|
61749
|
+
result = imul(result, 31) + getStringHashCode(this.e3f_1) | 0;
|
|
61742
61750
|
return result;
|
|
61743
61751
|
};
|
|
61744
61752
|
RTCStatsJS.prototype.equals = function (other) {
|
|
@@ -61747,10 +61755,6 @@
|
|
|
61747
61755
|
if (!(other instanceof RTCStatsJS))
|
|
61748
61756
|
return false;
|
|
61749
61757
|
var tmp0_other_with_cast = other instanceof RTCStatsJS ? other : THROW_CCE();
|
|
61750
|
-
if (!equals(this.t3e_1, tmp0_other_with_cast.t3e_1))
|
|
61751
|
-
return false;
|
|
61752
|
-
if (!equals(this.u3e_1, tmp0_other_with_cast.u3e_1))
|
|
61753
|
-
return false;
|
|
61754
61758
|
if (!equals(this.v3e_1, tmp0_other_with_cast.v3e_1))
|
|
61755
61759
|
return false;
|
|
61756
61760
|
if (!equals(this.w3e_1, tmp0_other_with_cast.w3e_1))
|
|
@@ -61765,46 +61769,50 @@
|
|
|
61765
61769
|
return false;
|
|
61766
61770
|
if (!equals(this.b3f_1, tmp0_other_with_cast.b3f_1))
|
|
61767
61771
|
return false;
|
|
61768
|
-
if (!(this.c3f_1
|
|
61772
|
+
if (!equals(this.c3f_1, tmp0_other_with_cast.c3f_1))
|
|
61773
|
+
return false;
|
|
61774
|
+
if (!equals(this.d3f_1, tmp0_other_with_cast.d3f_1))
|
|
61775
|
+
return false;
|
|
61776
|
+
if (!(this.e3f_1 === tmp0_other_with_cast.e3f_1))
|
|
61769
61777
|
return false;
|
|
61770
61778
|
return true;
|
|
61771
61779
|
};
|
|
61772
61780
|
RTCStatsJS.$metadata$ = classMeta('RTCStatsJS');
|
|
61773
61781
|
Object.defineProperty(RTCStatsJS.prototype, 'audioRecvPackets', {
|
|
61774
61782
|
configurable: true,
|
|
61775
|
-
get: RTCStatsJS.prototype.
|
|
61783
|
+
get: RTCStatsJS.prototype.f3f
|
|
61776
61784
|
});
|
|
61777
61785
|
Object.defineProperty(RTCStatsJS.prototype, 'audioRecvPacketsLost', {
|
|
61778
61786
|
configurable: true,
|
|
61779
|
-
get: RTCStatsJS.prototype.
|
|
61787
|
+
get: RTCStatsJS.prototype.g3f
|
|
61780
61788
|
});
|
|
61781
61789
|
Object.defineProperty(RTCStatsJS.prototype, 'audioRecvBytes', {
|
|
61782
61790
|
configurable: true,
|
|
61783
|
-
get: RTCStatsJS.prototype.
|
|
61791
|
+
get: RTCStatsJS.prototype.h3f
|
|
61784
61792
|
});
|
|
61785
61793
|
Object.defineProperty(RTCStatsJS.prototype, 'audioRecvJitter', {
|
|
61786
61794
|
configurable: true,
|
|
61787
|
-
get: RTCStatsJS.prototype.
|
|
61795
|
+
get: RTCStatsJS.prototype.i3f
|
|
61788
61796
|
});
|
|
61789
61797
|
Object.defineProperty(RTCStatsJS.prototype, 'audioSentPackets', {
|
|
61790
61798
|
configurable: true,
|
|
61791
|
-
get: RTCStatsJS.prototype.
|
|
61799
|
+
get: RTCStatsJS.prototype.j3f
|
|
61792
61800
|
});
|
|
61793
61801
|
Object.defineProperty(RTCStatsJS.prototype, 'audioSentBytes', {
|
|
61794
61802
|
configurable: true,
|
|
61795
|
-
get: RTCStatsJS.prototype.
|
|
61803
|
+
get: RTCStatsJS.prototype.k3f
|
|
61796
61804
|
});
|
|
61797
61805
|
Object.defineProperty(RTCStatsJS.prototype, 'audioSentPacketsLost', {
|
|
61798
61806
|
configurable: true,
|
|
61799
|
-
get: RTCStatsJS.prototype.
|
|
61807
|
+
get: RTCStatsJS.prototype.l3f
|
|
61800
61808
|
});
|
|
61801
61809
|
Object.defineProperty(RTCStatsJS.prototype, 'audioRtt', {
|
|
61802
61810
|
configurable: true,
|
|
61803
|
-
get: RTCStatsJS.prototype.
|
|
61811
|
+
get: RTCStatsJS.prototype.m3f
|
|
61804
61812
|
});
|
|
61805
61813
|
Object.defineProperty(RTCStatsJS.prototype, 'audioSentJitter', {
|
|
61806
61814
|
configurable: true,
|
|
61807
|
-
get: RTCStatsJS.prototype.
|
|
61815
|
+
get: RTCStatsJS.prototype.n3f
|
|
61808
61816
|
});
|
|
61809
61817
|
Object.defineProperty(RTCStatsJS.prototype, 'legId', {
|
|
61810
61818
|
configurable: true,
|
|
@@ -61842,7 +61850,7 @@
|
|
|
61842
61850
|
};
|
|
61843
61851
|
}
|
|
61844
61852
|
function HttpClientJSAdapter$1($js) {
|
|
61845
|
-
this.
|
|
61853
|
+
this.q3f_1 = $js;
|
|
61846
61854
|
}
|
|
61847
61855
|
HttpClientJSAdapter$1.prototype.c2v = function (verb, url, headers, body, callback) {
|
|
61848
61856
|
var tmp = verb.toString();
|
|
@@ -61854,7 +61862,7 @@
|
|
|
61854
61862
|
tmp$ret$0 = fromMap(JSON, headers);
|
|
61855
61863
|
tmp$ret$1 = tmp$ret$0;
|
|
61856
61864
|
var tmp_0 = tmp$ret$1;
|
|
61857
|
-
this.
|
|
61865
|
+
this.q3f_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
|
|
61858
61866
|
};
|
|
61859
61867
|
HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]);
|
|
61860
61868
|
function SocketClientJSAdapter$o$emit$lambda($callback) {
|
|
@@ -61878,14 +61886,14 @@
|
|
|
61878
61886
|
};
|
|
61879
61887
|
}
|
|
61880
61888
|
function SocketClientJSAdapter$adapter$1($js) {
|
|
61881
|
-
this.
|
|
61882
|
-
this.
|
|
61889
|
+
this.s3f_1 = $js;
|
|
61890
|
+
this.r3f_1 = null;
|
|
61883
61891
|
}
|
|
61884
61892
|
SocketClientJSAdapter$adapter$1.prototype.f2v = function (_set____db54di) {
|
|
61885
|
-
this.
|
|
61893
|
+
this.r3f_1 = _set____db54di;
|
|
61886
61894
|
};
|
|
61887
|
-
SocketClientJSAdapter$adapter$1.prototype.
|
|
61888
|
-
return this.
|
|
61895
|
+
SocketClientJSAdapter$adapter$1.prototype.t3f = function () {
|
|
61896
|
+
return this.r3f_1;
|
|
61889
61897
|
};
|
|
61890
61898
|
SocketClientJSAdapter$adapter$1.prototype.g2v = function (type, msg, callback) {
|
|
61891
61899
|
var tmp0_safe_receiver = msg;
|
|
@@ -61903,26 +61911,26 @@
|
|
|
61903
61911
|
tmp = tmp$ret$1;
|
|
61904
61912
|
}
|
|
61905
61913
|
var tmp_0 = tmp;
|
|
61906
|
-
this.
|
|
61914
|
+
this.s3f_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
|
|
61907
61915
|
};
|
|
61908
61916
|
SocketClientJSAdapter$adapter$1.prototype.h2v = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) {
|
|
61909
|
-
this.
|
|
61917
|
+
this.s3f_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
|
|
61910
61918
|
};
|
|
61911
61919
|
SocketClientJSAdapter$adapter$1.prototype.i2v = function () {
|
|
61912
|
-
this.
|
|
61920
|
+
this.s3f_1.disconnect();
|
|
61913
61921
|
};
|
|
61914
61922
|
SocketClientJSAdapter$adapter$1.prototype.j2v = function (token) {
|
|
61915
|
-
this.
|
|
61923
|
+
this.s3f_1.setConnectParamsSocketConfig(token);
|
|
61916
61924
|
};
|
|
61917
61925
|
SocketClientJSAdapter$adapter$1.prototype.k2v = function (milliseconds, callback) {
|
|
61918
|
-
this.
|
|
61926
|
+
this.s3f_1.startVerifyResponseTimer(milliseconds, callback);
|
|
61919
61927
|
};
|
|
61920
61928
|
SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]);
|
|
61921
61929
|
function SocketClientJSAdapter$1($adapter) {
|
|
61922
|
-
this.
|
|
61930
|
+
this.u3f_1 = $adapter;
|
|
61923
61931
|
}
|
|
61924
61932
|
SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) {
|
|
61925
|
-
var tmp0_safe_receiver = this.
|
|
61933
|
+
var tmp0_safe_receiver = this.u3f_1.r3f_1;
|
|
61926
61934
|
if (tmp0_safe_receiver == null)
|
|
61927
61935
|
;
|
|
61928
61936
|
else {
|
|
@@ -61955,35 +61963,35 @@
|
|
|
61955
61963
|
var tmp0_subject_0 = reason;
|
|
61956
61964
|
switch (tmp0_subject_0) {
|
|
61957
61965
|
case 'NXMCORE_REASON_SERVER_DISCONNECTED':
|
|
61958
|
-
var tmp1_safe_receiver_0 = this.
|
|
61966
|
+
var tmp1_safe_receiver_0 = this.u3f_1.r3f_1;
|
|
61959
61967
|
if (tmp1_safe_receiver_0 == null) ; else {
|
|
61960
61968
|
tmp1_safe_receiver_0.e2y(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance());
|
|
61961
61969
|
Unit_getInstance();
|
|
61962
61970
|
}
|
|
61963
61971
|
break;
|
|
61964
61972
|
case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
|
|
61965
|
-
var tmp2_safe_receiver = this.
|
|
61973
|
+
var tmp2_safe_receiver = this.u3f_1.r3f_1;
|
|
61966
61974
|
if (tmp2_safe_receiver == null) ; else {
|
|
61967
61975
|
tmp2_safe_receiver.e2y(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance());
|
|
61968
61976
|
Unit_getInstance();
|
|
61969
61977
|
}
|
|
61970
61978
|
break;
|
|
61971
61979
|
case 'NXMCORE_CLIENT_NETWORK_ERROR':
|
|
61972
|
-
var tmp3_safe_receiver = this.
|
|
61980
|
+
var tmp3_safe_receiver = this.u3f_1.r3f_1;
|
|
61973
61981
|
if (tmp3_safe_receiver == null) ; else {
|
|
61974
61982
|
tmp3_safe_receiver.e2y(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance());
|
|
61975
61983
|
Unit_getInstance();
|
|
61976
61984
|
}
|
|
61977
61985
|
break;
|
|
61978
61986
|
case 'NXMCORE_REASON_PING_TIMEOUT':
|
|
61979
|
-
var tmp4_safe_receiver = this.
|
|
61987
|
+
var tmp4_safe_receiver = this.u3f_1.r3f_1;
|
|
61980
61988
|
if (tmp4_safe_receiver == null) ; else {
|
|
61981
61989
|
tmp4_safe_receiver.e2y(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance());
|
|
61982
61990
|
Unit_getInstance();
|
|
61983
61991
|
}
|
|
61984
61992
|
break;
|
|
61985
61993
|
default:
|
|
61986
|
-
var tmp5_safe_receiver = this.
|
|
61994
|
+
var tmp5_safe_receiver = this.u3f_1.r3f_1;
|
|
61987
61995
|
if (tmp5_safe_receiver == null) ; else {
|
|
61988
61996
|
tmp5_safe_receiver.e2y(tmp1_safe_receiver, null);
|
|
61989
61997
|
Unit_getInstance();
|
|
@@ -61994,43 +62002,43 @@
|
|
|
61994
62002
|
};
|
|
61995
62003
|
SocketClientJSAdapter$1.$metadata$ = classMeta();
|
|
61996
62004
|
function MediaClientJSAdapter$adapter$1($js) {
|
|
61997
|
-
this.
|
|
61998
|
-
this.
|
|
62005
|
+
this.w3f_1 = $js;
|
|
62006
|
+
this.v3f_1 = null;
|
|
61999
62007
|
}
|
|
62000
62008
|
MediaClientJSAdapter$adapter$1.prototype.n2v = function (_set____db54di) {
|
|
62001
|
-
this.
|
|
62009
|
+
this.v3f_1 = _set____db54di;
|
|
62002
62010
|
};
|
|
62003
62011
|
MediaClientJSAdapter$adapter$1.prototype.o2v = function (closure) {
|
|
62004
|
-
this.
|
|
62012
|
+
this.w3f_1.enableMediaOutbound(closure);
|
|
62005
62013
|
};
|
|
62006
|
-
MediaClientJSAdapter$adapter$1.prototype.
|
|
62007
|
-
this.
|
|
62014
|
+
MediaClientJSAdapter$adapter$1.prototype.x3f = function (closure, offerSDP, rtcId) {
|
|
62015
|
+
this.w3f_1.enableMediaInbound(closure, offerSDP, rtcId);
|
|
62008
62016
|
};
|
|
62009
62017
|
MediaClientJSAdapter$adapter$1.prototype.p2v = function (closure, offerSDP, rtcId) {
|
|
62010
|
-
return this.
|
|
62018
|
+
return this.x3f(closure, offerSDP, rtcId);
|
|
62011
62019
|
};
|
|
62012
62020
|
MediaClientJSAdapter$adapter$1.prototype.q2v = function (id, sdp) {
|
|
62013
|
-
this.
|
|
62021
|
+
this.w3f_1.processAnswer(id, sdp);
|
|
62014
62022
|
};
|
|
62015
62023
|
MediaClientJSAdapter$adapter$1.prototype.r2v = function (id) {
|
|
62016
|
-
this.
|
|
62024
|
+
this.w3f_1.disableMedia(id);
|
|
62017
62025
|
};
|
|
62018
62026
|
MediaClientJSAdapter$adapter$1.prototype.s2v = function (id) {
|
|
62019
|
-
this.
|
|
62027
|
+
this.w3f_1.mute(id);
|
|
62020
62028
|
};
|
|
62021
62029
|
MediaClientJSAdapter$adapter$1.prototype.t2v = function (id) {
|
|
62022
|
-
this.
|
|
62030
|
+
this.w3f_1.unmute(id);
|
|
62023
62031
|
};
|
|
62024
62032
|
MediaClientJSAdapter$adapter$1.prototype.u2v = function (interval, mediaId) {
|
|
62025
|
-
this.
|
|
62033
|
+
this.w3f_1.enableRtcStatsCollection(interval, mediaId);
|
|
62026
62034
|
};
|
|
62027
62035
|
MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]);
|
|
62028
62036
|
function MediaClientJSAdapter$1($adapter) {
|
|
62029
|
-
this.
|
|
62037
|
+
this.y3f_1 = $adapter;
|
|
62030
62038
|
}
|
|
62031
62039
|
MediaClientJSAdapter$1.prototype.onRtcStats = function (rtcStats) {
|
|
62032
|
-
var stats = new RTCStats(rtcStats.
|
|
62033
|
-
var tmp0_safe_receiver = this.
|
|
62040
|
+
var stats = new RTCStats(rtcStats.v3e_1, rtcStats.w3e_1, rtcStats.x3e_1, rtcStats.y3e_1, rtcStats.z3e_1, rtcStats.a3f_1, rtcStats.b3f_1, rtcStats.c3f_1, rtcStats.d3f_1, rtcStats.e3f_1);
|
|
62041
|
+
var tmp0_safe_receiver = this.y3f_1.v3f_1;
|
|
62034
62042
|
if (tmp0_safe_receiver == null)
|
|
62035
62043
|
;
|
|
62036
62044
|
else {
|
|
@@ -62042,7 +62050,7 @@
|
|
|
62042
62050
|
switch (tmp0_subject) {
|
|
62043
62051
|
case 'new':
|
|
62044
62052
|
case 'checking':
|
|
62045
|
-
var tmp1_safe_receiver = this.
|
|
62053
|
+
var tmp1_safe_receiver = this.y3f_1.v3f_1;
|
|
62046
62054
|
if (tmp1_safe_receiver == null)
|
|
62047
62055
|
;
|
|
62048
62056
|
else {
|
|
@@ -62050,7 +62058,7 @@
|
|
|
62050
62058
|
}
|
|
62051
62059
|
break;
|
|
62052
62060
|
case 'connecting':
|
|
62053
|
-
var tmp2_safe_receiver = this.
|
|
62061
|
+
var tmp2_safe_receiver = this.y3f_1.v3f_1;
|
|
62054
62062
|
if (tmp2_safe_receiver == null)
|
|
62055
62063
|
;
|
|
62056
62064
|
else {
|
|
@@ -62058,7 +62066,7 @@
|
|
|
62058
62066
|
}
|
|
62059
62067
|
break;
|
|
62060
62068
|
case 'connected':
|
|
62061
|
-
var tmp3_safe_receiver = this.
|
|
62069
|
+
var tmp3_safe_receiver = this.y3f_1.v3f_1;
|
|
62062
62070
|
if (tmp3_safe_receiver == null)
|
|
62063
62071
|
;
|
|
62064
62072
|
else {
|
|
@@ -62066,7 +62074,7 @@
|
|
|
62066
62074
|
}
|
|
62067
62075
|
break;
|
|
62068
62076
|
case 'disconnected':
|
|
62069
|
-
var tmp4_safe_receiver = this.
|
|
62077
|
+
var tmp4_safe_receiver = this.y3f_1.v3f_1;
|
|
62070
62078
|
if (tmp4_safe_receiver == null)
|
|
62071
62079
|
;
|
|
62072
62080
|
else {
|
|
@@ -62074,7 +62082,7 @@
|
|
|
62074
62082
|
}
|
|
62075
62083
|
break;
|
|
62076
62084
|
case 'closed':
|
|
62077
|
-
var tmp5_safe_receiver = this.
|
|
62085
|
+
var tmp5_safe_receiver = this.y3f_1.v3f_1;
|
|
62078
62086
|
if (tmp5_safe_receiver == null)
|
|
62079
62087
|
;
|
|
62080
62088
|
else {
|
|
@@ -62082,7 +62090,7 @@
|
|
|
62082
62090
|
}
|
|
62083
62091
|
break;
|
|
62084
62092
|
case 'failed':
|
|
62085
|
-
var tmp6_safe_receiver = this.
|
|
62093
|
+
var tmp6_safe_receiver = this.y3f_1.v3f_1;
|
|
62086
62094
|
if (tmp6_safe_receiver == null)
|
|
62087
62095
|
;
|
|
62088
62096
|
else {
|
|
@@ -62090,7 +62098,7 @@
|
|
|
62090
62098
|
}
|
|
62091
62099
|
break;
|
|
62092
62100
|
default:
|
|
62093
|
-
var tmp7_safe_receiver = this.
|
|
62101
|
+
var tmp7_safe_receiver = this.y3f_1.v3f_1;
|
|
62094
62102
|
if (tmp7_safe_receiver == null)
|
|
62095
62103
|
;
|
|
62096
62104
|
else {
|
|
@@ -66936,9 +66944,6 @@
|
|
|
66936
66944
|
(_a = receiver.track) === null || _a === void 0 ? void 0 : _a.stop();
|
|
66937
66945
|
});
|
|
66938
66946
|
}
|
|
66939
|
-
else {
|
|
66940
|
-
throw new Error('No RTCPeerConnection established');
|
|
66941
|
-
}
|
|
66942
66947
|
}
|
|
66943
66948
|
// Private Methods
|
|
66944
66949
|
setMediaTracksEnabled(id, value) {
|
|
@@ -74600,9 +74605,24 @@
|
|
|
74600
74605
|
const SessionErrorReason = clientsdkClientcore_jsExports.vonage.SessionErrorReasonJS;
|
|
74601
74606
|
const LegStatus = clientsdkClientcore_jsExports.vonage.LegStatusJS;
|
|
74602
74607
|
const setVonageClientLoggingLevel = setDefaultLoggingLevel;
|
|
74608
|
+
/**
|
|
74609
|
+
* VonageClient is the main entry point for the Vonage Client SDK.
|
|
74610
|
+
*
|
|
74611
|
+
* @privateRemarks
|
|
74612
|
+
* This class is a wrapper around the KMP `CombinedClientJS` class.
|
|
74613
|
+
* It provides a more JS-like API, and also provides a proxy object
|
|
74614
|
+
* to allow for registering callbacks via `on()`.
|
|
74615
|
+
*
|
|
74616
|
+
* Minimal Interface built on top of KMP export
|
|
74617
|
+
* DO NOT ADD CODE HERE UNLESS REALLY NEEDEED!!111!
|
|
74618
|
+
*/
|
|
74603
74619
|
class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS {
|
|
74604
74620
|
constructor() {
|
|
74605
74621
|
super(new HttpClient(), new SocketClient(), new MediaClient());
|
|
74622
|
+
/**
|
|
74623
|
+
* Proxy object to allow for registering callbacks via `on()`
|
|
74624
|
+
* @internal
|
|
74625
|
+
*/
|
|
74606
74626
|
this.callbacks = new Map();
|
|
74607
74627
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
74608
74628
|
const _this = this;
|
|
@@ -74617,10 +74637,62 @@
|
|
|
74617
74637
|
}
|
|
74618
74638
|
});
|
|
74619
74639
|
}
|
|
74640
|
+
/**
|
|
74641
|
+
* Register a callback for an event.
|
|
74642
|
+
*
|
|
74643
|
+
* NOTE: you can only register one callback per event.
|
|
74644
|
+
*
|
|
74645
|
+
* @param event - the event to register for (e.g. 'legStatusUpdate')
|
|
74646
|
+
* @param callback - the callback to register for the event
|
|
74647
|
+
* @returns void
|
|
74648
|
+
*/
|
|
74620
74649
|
on(event, callback) {
|
|
74621
74650
|
this.callbacks.set(event, callback);
|
|
74622
74651
|
}
|
|
74623
|
-
|
|
74652
|
+
/**
|
|
74653
|
+
* Create a session with a token and optional sessionId
|
|
74654
|
+
* If no sessionId is provided, a new one will be generated
|
|
74655
|
+
* and returned. If a sessionId is provided, it will be used
|
|
74656
|
+
* to resume an existing session.
|
|
74657
|
+
*
|
|
74658
|
+
* @param token
|
|
74659
|
+
* @param sessionId - optional sessionId to use
|
|
74660
|
+
* @returns the `sessionId` of the session
|
|
74661
|
+
*/
|
|
74662
|
+
createSession(token, sessionId) {
|
|
74663
|
+
const _super = Object.create(null, {
|
|
74664
|
+
createSession: { get: () => super.createSession }
|
|
74665
|
+
});
|
|
74666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74667
|
+
return _super.createSession.call(this, token, sessionId || null);
|
|
74668
|
+
});
|
|
74669
|
+
}
|
|
74670
|
+
/**
|
|
74671
|
+
* Make a server call to the Vonage API.
|
|
74672
|
+
* This is used to initiate a call using the Voice API and NCCO.
|
|
74673
|
+
*
|
|
74674
|
+
* @param context - the context to send to the server passed as Custom data to the voice answer webhook
|
|
74675
|
+
* @returns the `callId` of the call
|
|
74676
|
+
*/
|
|
74677
|
+
serverCall(context) {
|
|
74678
|
+
const _super = Object.create(null, {
|
|
74679
|
+
serverCall: { get: () => super.serverCall }
|
|
74680
|
+
});
|
|
74681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74682
|
+
return _super.serverCall.call(this, context || null);
|
|
74683
|
+
});
|
|
74684
|
+
}
|
|
74685
|
+
/**
|
|
74686
|
+
* Hangup a call.
|
|
74687
|
+
*
|
|
74688
|
+
* @remarks
|
|
74689
|
+
* this is a convenience method that calls `hangupWithReason` with
|
|
74690
|
+
*
|
|
74691
|
+
* @param callId - the `callId` of the call to hangup
|
|
74692
|
+
* @param reasonText - optional reason text to send to the other party
|
|
74693
|
+
* @param reasonCode - optional reason code to send to the other party
|
|
74694
|
+
* @returns void
|
|
74695
|
+
*/
|
|
74624
74696
|
hangup(callId, reasonText, reasonCode) {
|
|
74625
74697
|
const _super = Object.create(null, {
|
|
74626
74698
|
hangupWithReason: { get: () => super.hangupWithReason }
|
|
@@ -74629,6 +74701,21 @@
|
|
|
74629
74701
|
return _super.hangupWithReason.call(this, callId, reasonText || null, reasonCode || null);
|
|
74630
74702
|
});
|
|
74631
74703
|
}
|
|
74704
|
+
say(callId, params) {
|
|
74705
|
+
const _super = Object.create(null, {
|
|
74706
|
+
say: { get: () => super.say }
|
|
74707
|
+
});
|
|
74708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74709
|
+
const defaultParams = {
|
|
74710
|
+
voiceName: null,
|
|
74711
|
+
loop: null,
|
|
74712
|
+
level: null,
|
|
74713
|
+
ssml: null,
|
|
74714
|
+
queue: null
|
|
74715
|
+
};
|
|
74716
|
+
return _super.say.call(this, callId, Object.assign(Object.assign({}, defaultParams), (typeof params === 'string' ? { text: params } : params)));
|
|
74717
|
+
});
|
|
74718
|
+
}
|
|
74632
74719
|
}
|
|
74633
74720
|
|
|
74634
74721
|
exports.CSErrorCodes = CSErrorCodes;
|