@vonage/client-sdk
Advanced tools
Comparing version 0.1.3-alpha.17 to 0.1.3-alpha.18
@@ -12,2 +12,11 @@ import { vonage } from './kotlin/clientsdk-clientcore_js'; | ||
export declare type Conversation = vonage.ConversationJS; | ||
export declare enum ConfigRegion { | ||
AP = 0, | ||
EU = 1, | ||
US = 2, | ||
AUTO = 3 | ||
} | ||
export declare class ClientConfig extends vonage.CoreClientConfigJS { | ||
constructor(region: ConfigRegion); | ||
} | ||
declare class VoiceClient extends vonage.CoreClientJS { | ||
@@ -14,0 +23,0 @@ private callbacks; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientConfig = exports.ConfigRegion = void 0; | ||
const clientsdk_clientcore_js_1 = require("./kotlin/clientsdk-clientcore_js"); | ||
@@ -9,2 +10,15 @@ require("./coreExtend"); | ||
require("./global"); | ||
var ConfigRegion; | ||
(function (ConfigRegion) { | ||
ConfigRegion[ConfigRegion["AP"] = 0] = "AP"; | ||
ConfigRegion[ConfigRegion["EU"] = 1] = "EU"; | ||
ConfigRegion[ConfigRegion["US"] = 2] = "US"; | ||
ConfigRegion[ConfigRegion["AUTO"] = 3] = "AUTO"; | ||
})(ConfigRegion = exports.ConfigRegion || (exports.ConfigRegion = {})); | ||
class ClientConfig extends clientsdk_clientcore_js_1.vonage.CoreClientConfigJS { | ||
constructor(region) { | ||
super(ConfigRegion[region]); | ||
} | ||
} | ||
exports.ClientConfig = ClientConfig; | ||
class VoiceClient extends clientsdk_clientcore_js_1.vonage.CoreClientJS { | ||
@@ -11,0 +25,0 @@ constructor() { |
import './coreExtend'; | ||
export { default as VoiceClient, Invite, VoiceCall, Conversation } from './Client'; | ||
export { default as VoiceClient, Invite, VoiceCall, Conversation, ConfigRegion, ClientConfig } from './Client'; | ||
export {} from './coreExtend'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VoiceClient = void 0; | ||
exports.ClientConfig = exports.ConfigRegion = exports.VoiceClient = void 0; | ||
// export { Vonage } from './kotlin/clientsdk-core_js'; | ||
@@ -8,1 +8,3 @@ require("./coreExtend"); | ||
Object.defineProperty(exports, "VoiceClient", { enumerable: true, get: function () { return Client_1.default; } }); | ||
Object.defineProperty(exports, "ConfigRegion", { enumerable: true, get: function () { return Client_1.ConfigRegion; } }); | ||
Object.defineProperty(exports, "ClientConfig", { enumerable: true, get: function () { return Client_1.ClientConfig; } }); |
@@ -13,2 +13,3 @@ type Nullable<T> = T | null | undefined | ||
earmuff(call: vonage.VoiceCallJS, legId: string, earmuffStatus: boolean): void; | ||
dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void; | ||
} | ||
@@ -25,2 +26,15 @@ interface CallSayParams { | ||
export namespace vonage { | ||
class CoreClientConfigJS { | ||
constructor(region: string); | ||
get apiUrl(): string; | ||
set apiUrl(value: string); | ||
get websocketUrl(): string; | ||
set websocketUrl(value: string); | ||
get websocketPath(): string; | ||
set websocketPath(value: string); | ||
get iceServerUrls(): Array<string>; | ||
set iceServerUrls(value: Array<string>); | ||
get autoMediaReoffer(): boolean; | ||
set autoMediaReoffer(value: boolean); | ||
} | ||
class CoreClientJS { | ||
@@ -30,3 +44,3 @@ constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS); | ||
set emitter(value: Nullable<vonage.CoreClientEvents>); | ||
setConfig(httpHost: string, wsHost: string): void; | ||
setConfig(config: vonage.CoreClientConfigJS): void; | ||
createSession(token: string, sessionId: Nullable<string>): Promise<string>; | ||
@@ -46,5 +60,18 @@ deleteSession(): Promise<any>; | ||
disableEarmuff(): Promise<any>; | ||
sendDTMF(digits: string): Promise<any>; | ||
} | ||
class VoiceInviteFromInfoJS { | ||
constructor(id: Nullable<string>, type: string); | ||
get id(): Nullable<string>; | ||
get type(): string; | ||
component1(): Nullable<string>; | ||
component2(): string; | ||
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS; | ||
toString(): string; | ||
hashCode(): number; | ||
equals(other: Nullable<any>): boolean; | ||
} | ||
class VoiceInviteJS { | ||
private constructor(); | ||
get from(): vonage.VoiceInviteFromInfoJS; | ||
answerCall(): Promise<vonage.VoiceCallJS>; | ||
@@ -51,0 +78,0 @@ rejectCall(): Promise<any>; |
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) | ||
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './clientsdk-clientcore.js'], factory); | ||
define(['exports', './clientsdk-clientcore.js', './kotlin-kotlin-stdlib-js-ir.js'], factory); | ||
else if (typeof exports === 'object') | ||
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./clientsdk-clientcore.js')); | ||
factory(module.exports, require('./clientsdk-clientcore.js'), require('./kotlin-kotlin-stdlib-js-ir.js')); | ||
else { | ||
if (typeof this['clientsdk-clientcore'] === 'undefined') { | ||
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'clientsdk-clientcore' was not found. Please, check whether 'clientsdk-clientcore' is loaded prior to 'clientsdk-clientcore_js'."); | ||
} | ||
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') { | ||
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'clientsdk-clientcore_js'."); | ||
} | ||
if (typeof this['clientsdk-clientcore'] === 'undefined') { | ||
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'clientsdk-clientcore' was not found. Please, check whether 'clientsdk-clientcore' is loaded prior to 'clientsdk-clientcore_js'."); | ||
} | ||
root['clientsdk-clientcore_js'] = factory(typeof this['clientsdk-clientcore_js'] === 'undefined' ? {} : this['clientsdk-clientcore_js'], this['kotlin-kotlin-stdlib-js-ir'], this['clientsdk-clientcore']); | ||
root['clientsdk-clientcore_js'] = factory(typeof this['clientsdk-clientcore_js'] === 'undefined' ? {} : this['clientsdk-clientcore_js'], this['clientsdk-clientcore'], this['kotlin-kotlin-stdlib-js-ir']); | ||
} | ||
}(this, function (_, kotlin_kotlin, kotlin_com_vonage_clientcore) { | ||
}(this, function (_, kotlin_com_vonage_clientcore, kotlin_kotlin) { | ||
'use strict'; | ||
//region block: imports | ||
var imul = Math.imul; | ||
var ClientConfigRegion_ASIA_PACIFIC_getInstance = kotlin_com_vonage_clientcore.$_$.p; | ||
var ClientConfigRegion_EUROPE_getInstance = kotlin_com_vonage_clientcore.$_$.r; | ||
var ClientConfigRegion_UNITED_STATES_getInstance = kotlin_com_vonage_clientcore.$_$.s; | ||
var ClientConfigRegion_AUTOMATIC_getInstance = kotlin_com_vonage_clientcore.$_$.q; | ||
var objectMeta = kotlin_kotlin.$_$.h6; | ||
var Companion_getInstance = kotlin_com_vonage_clientcore.$_$.t; | ||
var copyToArray = kotlin_kotlin.$_$.s3; | ||
var Unit_getInstance = kotlin_kotlin.$_$.o2; | ||
var classMeta = kotlin_kotlin.$_$.h5; | ||
var newThrowable = kotlin_kotlin.$_$.e6; | ||
var Unit_getInstance = kotlin_kotlin.$_$.o2; | ||
var SessionListener = kotlin_com_vonage_clientcore.$_$.b; | ||
var classMeta = kotlin_kotlin.$_$.h5; | ||
var VoiceClientDelegate = kotlin_com_vonage_clientcore.$_$.c; | ||
@@ -27,2 +35,3 @@ var Builder = kotlin_com_vonage_clientcore.$_$.h; | ||
var THROW_CCE = kotlin_kotlin.$_$.v7; | ||
var getStringHashCode = kotlin_kotlin.$_$.m5; | ||
var equals = kotlin_kotlin.$_$.i5; | ||
@@ -49,3 +58,2 @@ var Exception_init_$Create$ = kotlin_kotlin.$_$.z; | ||
var Pair = kotlin_kotlin.$_$.u7; | ||
var copyToArray = kotlin_kotlin.$_$.s3; | ||
var json = kotlin_kotlin.$_$.c6; | ||
@@ -55,2 +63,95 @@ //endregion | ||
//endregion | ||
function map($this, region) { | ||
var tmp0_subject = region; | ||
switch (tmp0_subject) { | ||
case 'AP': | ||
return ClientConfigRegion_ASIA_PACIFIC_getInstance(); | ||
case 'EU': | ||
return ClientConfigRegion_EUROPE_getInstance(); | ||
case 'US': | ||
return ClientConfigRegion_UNITED_STATES_getInstance(); | ||
default: | ||
return ClientConfigRegion_AUTOMATIC_getInstance(); | ||
} | ||
} | ||
function Companion() { | ||
Companion_instance = this; | ||
} | ||
Companion.$metadata$ = objectMeta('Companion'); | ||
var Companion_instance; | ||
function Companion_getInstance_0() { | ||
if (Companion_instance == null) | ||
new Companion(); | ||
return Companion_instance; | ||
} | ||
function CoreClientConfigJS(region) { | ||
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; | ||
var tmp = this; | ||
var tmp$ret$0; | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var tmp0_toTypedArray = this.z2a_1.b1y_1; | ||
tmp$ret$0 = copyToArray(tmp0_toTypedArray); | ||
tmp.d2b_1 = tmp$ret$0; | ||
this.e2b_1 = this.z2a_1.c1y_1; | ||
} | ||
CoreClientConfigJS.prototype.f2b = function (_set____db54di) { | ||
this.a2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.g2b = function () { | ||
return this.a2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.h2b = function (_set____db54di) { | ||
this.b2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.i2b = function () { | ||
return this.b2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.j2b = function (_set____db54di) { | ||
this.c2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.k2b = function () { | ||
return this.c2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.l2b = function (_set____db54di) { | ||
this.d2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.m2b = function () { | ||
return this.d2b_1; | ||
}; | ||
CoreClientConfigJS.prototype.n2b = function (_set____db54di) { | ||
this.e2b_1 = _set____db54di; | ||
}; | ||
CoreClientConfigJS.prototype.o2b = function () { | ||
return this.e2b_1; | ||
}; | ||
CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS'); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'apiUrl', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.g2b, | ||
set: CoreClientConfigJS.prototype.f2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.i2b, | ||
set: CoreClientConfigJS.prototype.h2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.k2b, | ||
set: CoreClientConfigJS.prototype.j2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'iceServerUrls', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.m2b, | ||
set: CoreClientConfigJS.prototype.l2b | ||
}); | ||
Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', { | ||
configurable: true, | ||
get: CoreClientConfigJS.prototype.o2b, | ||
set: CoreClientConfigJS.prototype.n2b | ||
}); | ||
function CoreClientJS$createSession$lambda$lambda($reject, $resolve) { | ||
@@ -69,3 +170,3 @@ return function (err, sessionId) { | ||
return function (resolve, reject) { | ||
this$0.p29_1.b1b($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve)); | ||
this$0.q2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -85,3 +186,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.p29_1.c1b(CoreClientJS$deleteSession$lambda$lambda(reject, resolve)); | ||
this$0.q2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -101,3 +202,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.p29_1.d1b($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve)); | ||
this$0.q2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -120,3 +221,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.p29_1.g1b($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject)); | ||
this$0.q2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject)); | ||
return Unit_getInstance(); | ||
@@ -126,6 +227,6 @@ }; | ||
function CoreClientJS$1(this$0) { | ||
this.q29_1 = this$0; | ||
this.r2b_1 = this$0; | ||
} | ||
CoreClientJS$1.prototype.f1y = function () { | ||
var tmp0_safe_receiver = this.q29_1.o29_1; | ||
CoreClientJS$1.prototype.g1z = function () { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -137,4 +238,4 @@ null; | ||
}; | ||
CoreClientJS$1.prototype.g1y = function () { | ||
var tmp0_safe_receiver = this.q29_1.o29_1; | ||
CoreClientJS$1.prototype.h1z = function () { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -146,4 +247,4 @@ null; | ||
}; | ||
CoreClientJS$1.prototype.h1y = function (reason) { | ||
var tmp0_safe_receiver = this.q29_1.o29_1; | ||
CoreClientJS$1.prototype.i1z = function (reason) { | ||
var tmp0_safe_receiver = this.r2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -157,14 +258,14 @@ null; | ||
function CoreClientJS$2(this$0) { | ||
this.r29_1 = this$0; | ||
this.s2b_1 = this$0; | ||
} | ||
CoreClientJS$2.prototype.q1z = function (invite) { | ||
var tmp0_safe_receiver = this.r29_1.o29_1; | ||
CoreClientJS$2.prototype.t20 = function (invite) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.callInvite(new VoiceInviteJS(invite)); | ||
tmp0_safe_receiver.callInvite(VoiceInviteJS_init_$Create$(invite, null, 2, null)); | ||
} | ||
}; | ||
CoreClientJS$2.prototype.r1z = function (call, newConversation, prevConversation) { | ||
var tmp0_safe_receiver = this.r29_1.o29_1; | ||
CoreClientJS$2.prototype.u20 = function (call, newConversation, prevConversation) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -176,4 +277,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.s1z = function (call, legId, isMuted) { | ||
var tmp0_safe_receiver = this.r29_1.o29_1; | ||
CoreClientJS$2.prototype.v20 = function (call, legId, isMuted) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -185,4 +286,4 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.t1z = function (call, legId, earmuffStatus) { | ||
var tmp0_safe_receiver = this.r29_1.o29_1; | ||
CoreClientJS$2.prototype.w20 = function (call, legId, earmuffStatus) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
@@ -194,17 +295,25 @@ null; | ||
}; | ||
CoreClientJS$2.prototype.x20 = function (call, legId, digits) { | ||
var tmp0_safe_receiver = this.s2b_1.p2b_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.dtmf(new VoiceCallJS(call), legId, digits); | ||
} | ||
}; | ||
CoreClientJS$2.$metadata$ = classMeta(undefined, [VoiceClientDelegate]); | ||
function CoreClientJS(http, socket, media) { | ||
this.o29_1 = null; | ||
this.p29_1 = (new Builder()).e1c(HttpClientJSAdapter(http)).f1c(SocketClientJSAdapter(socket)).g1c(MediaClientJSAdapter(media)); | ||
this.p29_1.e1b(new CoreClientJS$1(this)); | ||
this.p29_1.f1b(new CoreClientJS$2(this)); | ||
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)); | ||
} | ||
CoreClientJS.prototype.s29 = function (_set____db54di) { | ||
this.o29_1 = _set____db54di; | ||
CoreClientJS.prototype.t2b = function (_set____db54di) { | ||
this.p2b_1 = _set____db54di; | ||
}; | ||
CoreClientJS.prototype.t29 = function () { | ||
return this.o29_1; | ||
CoreClientJS.prototype.u2b = function () { | ||
return this.p2b_1; | ||
}; | ||
CoreClientJS.prototype.setConfig = function (httpHost, wsHost) { | ||
this.p29_1.a1b(new SetConfig(wsHost, '/v2/rtc', httpHost)); | ||
CoreClientJS.prototype.setConfig = function (config) { | ||
this.q2b_1.q1a(new SetConfig(config.b2b_1, config.c2b_1, config.a2b_1)); | ||
}; | ||
@@ -226,5 +335,4 @@ CoreClientJS.prototype.createSession = function (token, sessionId) { | ||
var tmp$ret$0; | ||
{ | ||
tmp$ret$0 = emptyMap(); | ||
} | ||
// Inline function 'kotlin.collections.mapOf' call | ||
tmp$ret$0 = emptyMap(); | ||
tmp = tmp$ret$0; | ||
@@ -240,4 +348,4 @@ } else { | ||
configurable: true, | ||
get: CoreClientJS.prototype.t29, | ||
set: CoreClientJS.prototype.s29 | ||
get: CoreClientJS.prototype.u2b, | ||
set: CoreClientJS.prototype.t2b | ||
}); | ||
@@ -257,3 +365,3 @@ function VoiceCallJS$hangup$lambda$lambda($resolve, $reject) { | ||
return function (resolve, reject) { | ||
this$0.u29_1.a1z(VoiceCallJS$hangup$lambda$lambda(resolve, reject)); | ||
this$0.v2b_1.c20(VoiceCallJS$hangup$lambda$lambda(resolve, reject)); | ||
return Unit_getInstance(); | ||
@@ -286,3 +394,3 @@ }; | ||
var tmp_4 = tmp4_elvis_lhs == null ? true : tmp4_elvis_lhs; | ||
this$0.u29_1.p1z(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.s20(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -304,3 +412,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.u29_1.l1z(VoiceCallJS$mute$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.n20(VoiceCallJS$mute$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -320,3 +428,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.u29_1.m1z(VoiceCallJS$unmute$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.o20(VoiceCallJS$unmute$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -336,3 +444,3 @@ }; | ||
return function (resolve, reject) { | ||
this$0.u29_1.n1z(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.p20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -352,12 +460,27 @@ }; | ||
return function (resolve, reject) { | ||
this$0.u29_1.o1z(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve)); | ||
this$0.v2b_1.q20(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
}; | ||
} | ||
function VoiceCallJS$sendDTMF$lambda$lambda($reject, $resolve) { | ||
return function (it) { | ||
if (!(it == null)) | ||
$reject(it); | ||
else | ||
$resolve(null); | ||
return Unit_getInstance(); | ||
}; | ||
} | ||
function VoiceCallJS$sendDTMF$lambda(this$0, $digits) { | ||
return function (resolve, reject) { | ||
this$0.v2b_1.r20($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
}; | ||
} | ||
function VoiceCallJS(call) { | ||
this.u29_1 = call; | ||
this.v29_1 = this.u29_1.t1y_1; | ||
this.v2b_1 = call; | ||
this.w2b_1 = this.v2b_1.v1z_1; | ||
} | ||
VoiceCallJS.prototype.j1k = function () { | ||
return this.v29_1; | ||
VoiceCallJS.prototype.h1k = function () { | ||
return this.w2b_1; | ||
}; | ||
@@ -382,7 +505,77 @@ VoiceCallJS.prototype.hangup = function () { | ||
}; | ||
VoiceCallJS.prototype.sendDTMF = function (digits) { | ||
return new Promise(VoiceCallJS$sendDTMF$lambda(this, digits)); | ||
}; | ||
VoiceCallJS.$metadata$ = classMeta('VoiceCallJS'); | ||
Object.defineProperty(VoiceCallJS.prototype, 'id', { | ||
configurable: true, | ||
get: VoiceCallJS.prototype.j1k | ||
get: VoiceCallJS.prototype.h1k | ||
}); | ||
function VoiceInviteFromInfoJS(id, type) { | ||
this.x2b_1 = id; | ||
this.y2b_1 = type; | ||
} | ||
VoiceInviteFromInfoJS.prototype.h1k = function () { | ||
return this.x2b_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.z2b = function () { | ||
return this.y2b_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.component1 = function () { | ||
return this.x2b_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.component2 = function () { | ||
return this.y2b_1; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.copy = function (id, type) { | ||
return this.a2c(id === void 1 ? this.x2b_1 : id, type === void 1 ? this.y2b_1 : type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.a2c = function (id, type) { | ||
return new VoiceInviteFromInfoJS(id, type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.b2c = function (id, type, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
id = this.x2b_1; | ||
if (!(($mask0 & 2) === 0)) | ||
type = this.y2b_1; | ||
return this.a2c(id, type); | ||
}; | ||
VoiceInviteFromInfoJS.prototype.toString = function () { | ||
return 'VoiceInviteFromInfoJS(id=' + this.x2b_1 + ', type=' + this.y2b_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; | ||
return result; | ||
}; | ||
VoiceInviteFromInfoJS.prototype.equals = function (other) { | ||
if (this === other) | ||
return true; | ||
if (!(other instanceof VoiceInviteFromInfoJS)) | ||
return false; | ||
var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE(); | ||
if (!(this.x2b_1 == tmp0_other_with_cast.x2b_1)) | ||
return false; | ||
if (!(this.y2b_1 === tmp0_other_with_cast.y2b_1)) | ||
return false; | ||
return true; | ||
}; | ||
VoiceInviteFromInfoJS.$metadata$ = classMeta('VoiceInviteFromInfoJS'); | ||
Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'id', { | ||
configurable: true, | ||
get: VoiceInviteFromInfoJS.prototype.h1k | ||
}); | ||
Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'type', { | ||
configurable: true, | ||
get: VoiceInviteFromInfoJS.prototype.z2b | ||
}); | ||
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); | ||
VoiceInviteJS.call($this, invite, from); | ||
return $this; | ||
} | ||
function VoiceInviteJS_init_$Create$(invite, from, $mask0, $marker) { | ||
return VoiceInviteJS_init_$Init$(invite, from, $mask0, $marker, Object.create(VoiceInviteJS.prototype)); | ||
} | ||
function VoiceInviteJS$answerCall$lambda$lambda($reject, $resolve) { | ||
@@ -403,3 +596,3 @@ return function (err, call) { | ||
return function (resolve, reject) { | ||
this$0.w29_1.x1z(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve)); | ||
this$0.c2c_1.b21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
@@ -421,9 +614,13 @@ }; | ||
return function (resolve, reject) { | ||
this$0.w29_1.a20(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve)); | ||
this$0.c2c_1.e21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve)); | ||
return Unit_getInstance(); | ||
}; | ||
} | ||
function VoiceInviteJS(invite) { | ||
this.w29_1 = invite; | ||
function VoiceInviteJS(invite, from) { | ||
this.c2c_1 = invite; | ||
this.d2c_1 = from; | ||
} | ||
VoiceInviteJS.prototype.o1j = function () { | ||
return this.d2c_1; | ||
}; | ||
VoiceInviteJS.prototype.answerCall = function () { | ||
@@ -436,28 +633,32 @@ return new Promise(VoiceInviteJS$answerCall$lambda(this)); | ||
VoiceInviteJS.$metadata$ = classMeta('VoiceInviteJS'); | ||
Object.defineProperty(VoiceInviteJS.prototype, 'from', { | ||
configurable: true, | ||
get: VoiceInviteJS.prototype.o1j | ||
}); | ||
function ConversationJS(conversation) { | ||
this.x29_1 = conversation; | ||
this.y29_1 = this.x29_1.h1x_1; | ||
this.e2c_1 = conversation; | ||
this.f2c_1 = this.e2c_1.d1y_1; | ||
} | ||
ConversationJS.prototype.z29 = function (_set____db54di) { | ||
this.y29_1 = _set____db54di; | ||
ConversationJS.prototype.g2c = function (_set____db54di) { | ||
this.f2c_1 = _set____db54di; | ||
}; | ||
ConversationJS.prototype.j1k = function () { | ||
return this.y29_1; | ||
ConversationJS.prototype.h1k = function () { | ||
return this.f2c_1; | ||
}; | ||
ConversationJS.prototype.copy = function (conversation) { | ||
return this.a2a(conversation === void 1 ? this.x29_1 : conversation); | ||
return this.h2c(conversation === void 1 ? this.e2c_1 : conversation); | ||
}; | ||
ConversationJS.prototype.a2a = function (conversation) { | ||
ConversationJS.prototype.h2c = function (conversation) { | ||
return new ConversationJS(conversation); | ||
}; | ||
ConversationJS.prototype.b2a = function (conversation, $mask0, $handler) { | ||
ConversationJS.prototype.i2c = function (conversation, $mask0, $handler) { | ||
if (!(($mask0 & 1) === 0)) | ||
conversation = this.x29_1; | ||
return this.a2a(conversation); | ||
conversation = this.e2c_1; | ||
return this.h2c(conversation); | ||
}; | ||
ConversationJS.prototype.toString = function () { | ||
return 'ConversationJS(conversation=' + this.x29_1 + ')'; | ||
return 'ConversationJS(conversation=' + this.e2c_1 + ')'; | ||
}; | ||
ConversationJS.prototype.hashCode = function () { | ||
return this.x29_1.hashCode(); | ||
return this.e2c_1.hashCode(); | ||
}; | ||
@@ -470,3 +671,3 @@ ConversationJS.prototype.equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof ConversationJS ? other : THROW_CCE(); | ||
if (!this.x29_1.equals(tmp0_other_with_cast.x29_1)) | ||
if (!this.e2c_1.equals(tmp0_other_with_cast.e2c_1)) | ||
return false; | ||
@@ -478,4 +679,4 @@ return true; | ||
configurable: true, | ||
get: ConversationJS.prototype.j1k, | ||
set: ConversationJS.prototype.z29 | ||
get: ConversationJS.prototype.h1k, | ||
set: ConversationJS.prototype.g2c | ||
}); | ||
@@ -537,18 +738,15 @@ function get_jsonNullable(_this__u8e3s4) { | ||
function HttpClientJSAdapter$1($js) { | ||
this.c2a_1 = $js; | ||
this.j2c_1 = $js; | ||
} | ||
HttpClientJSAdapter$1.prototype.m1b = function (verb, url, headers, body, callback) { | ||
HttpClientJSAdapter$1.prototype.c1b = function (verb, url, headers, body, callback) { | ||
var tmp = verb.toString(); | ||
var tmp$ret$1; | ||
{ | ||
{ | ||
} | ||
var tmp$ret$0; | ||
{ | ||
tmp$ret$0 = fromMap(JSON, headers); | ||
} | ||
tmp$ret$1 = tmp$ret$0; | ||
} | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp$ret$0; | ||
// Inline function 'vonage.<no name provided>.request.<anonymous>' call | ||
tmp$ret$0 = fromMap(JSON, headers); | ||
tmp$ret$1 = tmp$ret$0; | ||
var tmp_0 = tmp$ret$1; | ||
this.c2a_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback)); | ||
this.j2c_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback)); | ||
}; | ||
@@ -564,11 +762,8 @@ HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]); | ||
var tmp$ret$1; | ||
{ | ||
{ | ||
} | ||
var tmp$ret$0; | ||
{ | ||
tmp$ret$0 = Exception_init_$Create$(err); | ||
} | ||
tmp$ret$1 = tmp$ret$0; | ||
} | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp$ret$0; | ||
// Inline function 'vonage.<no name provided>.emit.<anonymous>.<anonymous>' call | ||
tmp$ret$0 = Exception_init_$Create$(err); | ||
tmp$ret$1 = tmp$ret$0; | ||
tmp = tmp$ret$1; | ||
@@ -581,12 +776,12 @@ } | ||
function SocketClientJSAdapter$adapter$1($js) { | ||
this.e2a_1 = $js; | ||
this.d2a_1 = null; | ||
this.l2c_1 = $js; | ||
this.k2c_1 = null; | ||
} | ||
SocketClientJSAdapter$adapter$1.prototype.p1b = function (_set____db54di) { | ||
this.d2a_1 = _set____db54di; | ||
SocketClientJSAdapter$adapter$1.prototype.f1b = function (_set____db54di) { | ||
this.k2c_1 = _set____db54di; | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.g20 = function () { | ||
return this.d2a_1; | ||
SocketClientJSAdapter$adapter$1.prototype.r21 = function () { | ||
return this.k2c_1; | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.q1b = function (type, msg, callback) { | ||
SocketClientJSAdapter$adapter$1.prototype.g1b = function (type, msg, callback) { | ||
var tmp0_safe_receiver = msg; | ||
@@ -598,38 +793,35 @@ var tmp; | ||
var tmp$ret$1; | ||
{ | ||
{ | ||
} | ||
var tmp$ret$0; | ||
{ | ||
tmp$ret$0 = fromMap(JSON, tmp0_safe_receiver); | ||
} | ||
tmp$ret$1 = tmp$ret$0; | ||
} | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp$ret$0; | ||
// Inline function 'vonage.<no name provided>.emit.<anonymous>' call | ||
tmp$ret$0 = fromMap(JSON, tmp0_safe_receiver); | ||
tmp$ret$1 = tmp$ret$0; | ||
tmp = tmp$ret$1; | ||
} | ||
var tmp_0 = tmp; | ||
this.e2a_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback)); | ||
this.l2c_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback)); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.r1b = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) { | ||
this.e2a_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query); | ||
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); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.s1b = function () { | ||
this.e2a_1.disconnect(); | ||
SocketClientJSAdapter$adapter$1.prototype.i1b = function () { | ||
this.l2c_1.disconnect(); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.t1b = function (token) { | ||
this.e2a_1.setConnectParamsSocketConfig(token); | ||
SocketClientJSAdapter$adapter$1.prototype.j1b = function (token) { | ||
this.l2c_1.setConnectParamsSocketConfig(token); | ||
}; | ||
SocketClientJSAdapter$adapter$1.prototype.u1b = function (milliseconds, callback) { | ||
this.e2a_1.startVerifyResponseTimer(milliseconds, callback); | ||
SocketClientJSAdapter$adapter$1.prototype.k1b = function (milliseconds, callback) { | ||
this.l2c_1.startVerifyResponseTimer(milliseconds, callback); | ||
}; | ||
SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]); | ||
function SocketClientJSAdapter$1($adapter) { | ||
this.f2a_1 = $adapter; | ||
this.m2c_1 = $adapter; | ||
} | ||
SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) { | ||
var tmp0_safe_receiver = this.f2a_1.d2a_1; | ||
var tmp0_safe_receiver = this.m2c_1.k2c_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.s24(new UnknownSocketEvent(body, type)); | ||
tmp0_safe_receiver.f26(new UnknownSocketEvent(body, type)); | ||
} | ||
@@ -660,75 +852,72 @@ }; | ||
var tmp$ret$1; | ||
{ | ||
{ | ||
} | ||
var tmp$ret$0; | ||
{ | ||
var tmp0_subject_0 = reason; | ||
var tmp; | ||
switch (tmp0_subject_0) { | ||
case 'NXMCORE_REASON_SERVER_DISCONNECTED': | ||
var tmp1_safe_receiver_0 = this.f2a_1.d2a_1; | ||
var tmp_0; | ||
if (tmp1_safe_receiver_0 == null) { | ||
tmp_0 = null; | ||
} else { | ||
tmp1_safe_receiver_0.t24(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance()); | ||
tmp_0 = Unit_getInstance(); | ||
} | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp$ret$0; | ||
// Inline function 'vonage.<no name provided>.didReceiveNewSocketConnectionStatusEvent.<anonymous>' call | ||
var tmp0_subject_0 = reason; | ||
var tmp; | ||
switch (tmp0_subject_0) { | ||
case 'NXMCORE_REASON_SERVER_DISCONNECTED': | ||
var tmp1_safe_receiver_0 = this.m2c_1.k2c_1; | ||
var tmp_0; | ||
if (tmp1_safe_receiver_0 == null) { | ||
tmp_0 = null; | ||
} else { | ||
tmp1_safe_receiver_0.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance()); | ||
tmp_0 = Unit_getInstance(); | ||
} | ||
tmp = tmp_0; | ||
break; | ||
case 'NXMCORE_REASON_CLIENT_DISCONNECTED': | ||
var tmp2_safe_receiver = this.f2a_1.d2a_1; | ||
var tmp_1; | ||
if (tmp2_safe_receiver == null) { | ||
tmp_1 = null; | ||
} else { | ||
tmp2_safe_receiver.t24(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance()); | ||
tmp_1 = Unit_getInstance(); | ||
} | ||
tmp = tmp_0; | ||
break; | ||
case 'NXMCORE_REASON_CLIENT_DISCONNECTED': | ||
var tmp2_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp_1; | ||
if (tmp2_safe_receiver == null) { | ||
tmp_1 = null; | ||
} else { | ||
tmp2_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance()); | ||
tmp_1 = Unit_getInstance(); | ||
} | ||
tmp = tmp_1; | ||
break; | ||
case 'NXMCORE_CLIENT_NETWORK_ERROR': | ||
var tmp3_safe_receiver = this.f2a_1.d2a_1; | ||
var tmp_2; | ||
if (tmp3_safe_receiver == null) { | ||
tmp_2 = null; | ||
} else { | ||
tmp3_safe_receiver.t24(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance()); | ||
tmp_2 = Unit_getInstance(); | ||
} | ||
tmp = tmp_1; | ||
break; | ||
case 'NXMCORE_CLIENT_NETWORK_ERROR': | ||
var tmp3_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp_2; | ||
if (tmp3_safe_receiver == null) { | ||
tmp_2 = null; | ||
} else { | ||
tmp3_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance()); | ||
tmp_2 = Unit_getInstance(); | ||
} | ||
tmp = tmp_2; | ||
break; | ||
case 'NXMCORE_REASON_PING_TIMEOUT': | ||
var tmp4_safe_receiver = this.f2a_1.d2a_1; | ||
var tmp_3; | ||
if (tmp4_safe_receiver == null) { | ||
tmp_3 = null; | ||
} else { | ||
tmp4_safe_receiver.t24(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance()); | ||
tmp_3 = Unit_getInstance(); | ||
} | ||
tmp = tmp_2; | ||
break; | ||
case 'NXMCORE_REASON_PING_TIMEOUT': | ||
var tmp4_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp_3; | ||
if (tmp4_safe_receiver == null) { | ||
tmp_3 = null; | ||
} else { | ||
tmp4_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance()); | ||
tmp_3 = Unit_getInstance(); | ||
} | ||
tmp = tmp_3; | ||
break; | ||
default: | ||
var tmp5_safe_receiver = this.f2a_1.d2a_1; | ||
var tmp_4; | ||
if (tmp5_safe_receiver == null) { | ||
tmp_4 = null; | ||
} else { | ||
tmp5_safe_receiver.t24(tmp1_safe_receiver, null); | ||
tmp_4 = Unit_getInstance(); | ||
} | ||
tmp = tmp_3; | ||
break; | ||
default: | ||
var tmp5_safe_receiver = this.m2c_1.k2c_1; | ||
var tmp_4; | ||
if (tmp5_safe_receiver == null) { | ||
tmp_4 = null; | ||
} else { | ||
tmp5_safe_receiver.g26(tmp1_safe_receiver, null); | ||
tmp_4 = Unit_getInstance(); | ||
} | ||
tmp = tmp_4; | ||
break; | ||
} | ||
tmp$ret$0 = tmp; | ||
} | ||
tmp$ret$1 = tmp$ret$0; | ||
tmp = tmp_4; | ||
break; | ||
} | ||
tmp$ret$0 = tmp; | ||
tmp$ret$1 = tmp$ret$0; | ||
} | ||
@@ -738,52 +927,52 @@ }; | ||
function MediaClientJSAdapter$adapter$1($js) { | ||
this.h2a_1 = $js; | ||
this.g2a_1 = null; | ||
this.o2c_1 = $js; | ||
this.n2c_1 = null; | ||
} | ||
MediaClientJSAdapter$adapter$1.prototype.x1b = function (_set____db54di) { | ||
this.g2a_1 = _set____db54di; | ||
MediaClientJSAdapter$adapter$1.prototype.n1b = function (_set____db54di) { | ||
this.n2c_1 = _set____db54di; | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.y1b = function (id) { | ||
this.h2a_1.enableMedia(id, null); | ||
MediaClientJSAdapter$adapter$1.prototype.o1b = function (id) { | ||
this.o2c_1.enableMedia(id, null); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.z1b = function (id, remoteDescription) { | ||
this.h2a_1.enableMedia(id, remoteDescription); | ||
MediaClientJSAdapter$adapter$1.prototype.p1b = function (id, remoteDescription) { | ||
this.o2c_1.enableMedia(id, remoteDescription); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.a1c = function (id, sdp, streamId, legId) { | ||
this.h2a_1.processAnswer(id, sdp, streamId, legId); | ||
MediaClientJSAdapter$adapter$1.prototype.q1b = function (id, sdp, streamId, legId) { | ||
this.o2c_1.processAnswer(id, sdp, streamId, legId); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.b1c = function (id) { | ||
this.h2a_1.disableMedia(id); | ||
MediaClientJSAdapter$adapter$1.prototype.r1b = function (id) { | ||
this.o2c_1.disableMedia(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.c1c = function (id) { | ||
this.h2a_1.mute(id); | ||
MediaClientJSAdapter$adapter$1.prototype.s1b = function (id) { | ||
this.o2c_1.mute(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.prototype.d1c = function (id) { | ||
this.h2a_1.unmute(id); | ||
MediaClientJSAdapter$adapter$1.prototype.t1b = function (id) { | ||
this.o2c_1.unmute(id); | ||
}; | ||
MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]); | ||
function MediaClientJSAdapter$1($adapter) { | ||
this.i2a_1 = $adapter; | ||
this.p2c_1 = $adapter; | ||
} | ||
MediaClientJSAdapter$1.prototype.onOffer = function (mediaId, streamId, sdp, callback) { | ||
var tmp0_safe_receiver = this.i2a_1.g2a_1; | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.p24(mediaId, streamId, sdp, callback); | ||
tmp0_safe_receiver.c26(mediaId, streamId, sdp, callback); | ||
} | ||
}; | ||
MediaClientJSAdapter$1.prototype.onAnswer = function (mediaId, streamId, sdp, callback) { | ||
var tmp0_safe_receiver = this.i2a_1.g2a_1; | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.q24(mediaId, streamId, sdp, callback); | ||
tmp0_safe_receiver.d26(mediaId, streamId, sdp, callback); | ||
} | ||
}; | ||
MediaClientJSAdapter$1.prototype.onError = function (mediaId, error) { | ||
var tmp0_safe_receiver = this.i2a_1.g2a_1; | ||
var tmp0_safe_receiver = this.p2c_1.n2c_1; | ||
if (tmp0_safe_receiver == null) | ||
null; | ||
else { | ||
tmp0_safe_receiver.r24(mediaId, Exception_init_$Create$(error)); | ||
tmp0_safe_receiver.e26(mediaId, Exception_init_$Create$(error)); | ||
} | ||
@@ -794,25 +983,22 @@ }; | ||
var tmp$ret$2; | ||
{ | ||
var tmp = Object.entries; | ||
var tmp0_map = ((!(tmp == null) ? typeof tmp === 'function' : false) ? tmp : THROW_CCE())(jsObject); | ||
var tmp$ret$1; | ||
{ | ||
var tmp0_mapTo = ArrayList_init_$Create$(tmp0_map.length); | ||
var indexedObject = tmp0_map; | ||
var inductionVariable = 0; | ||
var last = indexedObject.length; | ||
while (inductionVariable < last) { | ||
var item = indexedObject[inductionVariable]; | ||
inductionVariable = inductionVariable + 1 | 0; | ||
var tmp$ret$0; | ||
{ | ||
var tmp_0 = item[0]; | ||
tmp$ret$0 = to((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(), item[1]); | ||
} | ||
tmp0_mapTo.a(tmp$ret$0); | ||
} | ||
tmp$ret$1 = tmp0_mapTo; | ||
} | ||
tmp$ret$2 = tmp$ret$1; | ||
// Inline function 'kotlin.collections.map' call | ||
var tmp = Object.entries; | ||
var tmp0_map = ((!(tmp == null) ? typeof tmp === 'function' : false) ? tmp : THROW_CCE())(jsObject); | ||
var tmp$ret$1; | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo = ArrayList_init_$Create$(tmp0_map.length); | ||
var indexedObject = tmp0_map; | ||
var inductionVariable = 0; | ||
var last = indexedObject.length; | ||
while (inductionVariable < last) { | ||
var item = indexedObject[inductionVariable]; | ||
inductionVariable = inductionVariable + 1 | 0; | ||
var tmp$ret$0; | ||
// Inline function 'vonage.utils.entriesOf.<anonymous>' call | ||
var tmp_0 = item[0]; | ||
tmp$ret$0 = to((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(), item[1]); | ||
tmp0_mapTo.a(tmp$ret$0); | ||
} | ||
tmp$ret$1 = tmp0_mapTo; | ||
tmp$ret$2 = tmp$ret$1; | ||
return tmp$ret$2; | ||
@@ -825,108 +1011,95 @@ } | ||
var tmp$ret$9; | ||
{ | ||
var tmp$ret$8; | ||
{ | ||
var tmp$ret$4; | ||
{ | ||
var tmp$ret$0; | ||
{ | ||
tmp$ret$0 = LinkedHashMap_init_$Create$(); | ||
} | ||
var tmp0_apply = tmp$ret$0; | ||
{ | ||
} | ||
{ | ||
{ | ||
var tmp$ret$1; | ||
{ | ||
tmp$ret$1 = m.q().g(); | ||
} | ||
var tmp0_iterator = tmp$ret$1; | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
{ | ||
var tmp$ret$2; | ||
{ | ||
tmp$ret$2 = element.m1(); | ||
} | ||
var k = tmp$ret$2; | ||
var tmp$ret$3; | ||
{ | ||
tmp$ret$3 = element.o1(); | ||
} | ||
var v = tmp$ret$3; | ||
var tmp0_subject = k; | ||
if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) { | ||
var tmp0_set = k; | ||
tmp0_apply.l(tmp0_set, v); | ||
} else { | ||
} | ||
} | ||
} | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var tmp$ret$8; | ||
// Inline function 'kotlin.collections.map' call | ||
var tmp$ret$4; | ||
// Inline function 'kotlin.apply' call | ||
var tmp$ret$0; | ||
// Inline function 'kotlin.collections.mutableMapOf' call | ||
tmp$ret$0 = LinkedHashMap_init_$Create$(); | ||
var tmp0_apply = tmp$ret$0; | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'vonage.utils.fromMap.<anonymous>' call | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp$ret$1; | ||
// Inline function 'kotlin.collections.iterator' call | ||
tmp$ret$1 = m.q().g(); | ||
var tmp0_iterator = tmp$ret$1; | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
// Inline function 'vonage.utils.fromMap.<anonymous>.<anonymous>' call | ||
var tmp$ret$2; | ||
// Inline function 'kotlin.collections.component1' call | ||
tmp$ret$2 = element.m1(); | ||
var k = tmp$ret$2; | ||
var tmp$ret$3; | ||
// Inline function 'kotlin.collections.component2' call | ||
tmp$ret$3 = element.o1(); | ||
var v = tmp$ret$3; | ||
var tmp0_subject = k; | ||
if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) { | ||
// Inline function 'kotlin.collections.set' call | ||
var tmp0_set = k; | ||
tmp0_apply.l(tmp0_set, v); | ||
} else { | ||
} | ||
} | ||
tmp$ret$4 = tmp0_apply; | ||
var tmp1_map = tmp$ret$4; | ||
var tmp$ret$7; | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo = ArrayList_init_$Create$(tmp1_map.f()); | ||
var tmp$ret$5; | ||
// Inline function 'kotlin.collections.iterator' call | ||
tmp$ret$5 = tmp1_map.q().g(); | ||
var tmp0_iterator_0 = tmp$ret$5; | ||
while (tmp0_iterator_0.h()) { | ||
var item = tmp0_iterator_0.i(); | ||
var tmp$ret$6; | ||
// Inline function 'vonage.utils.fromMap.<anonymous>' call | ||
var tmp = item.m1(); | ||
var tmp0_subject_0 = item.o1(); | ||
var tmp_0; | ||
var tmp_1; | ||
var tmp_2; | ||
if (!(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'string' : false) { | ||
tmp_2 = true; | ||
} else { | ||
tmp_2 = !(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'boolean' : false; | ||
} | ||
if (tmp_2) { | ||
tmp_1 = true; | ||
} else { | ||
tmp_1 = !(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'number' : false; | ||
} | ||
if (tmp_1) { | ||
tmp_0 = item.o1(); | ||
} else { | ||
if (!(tmp0_subject_0 == null) ? isInterface(tmp0_subject_0, Map) : false) { | ||
var tmp_3; | ||
try { | ||
var tmp_4 = JSON; | ||
var tmp_5 = item.o1(); | ||
tmp_3 = fromMap(tmp_4, (!(tmp_5 == null) ? isInterface(tmp_5, Map) : false) ? tmp_5 : THROW_CCE()); | ||
} catch ($p) { | ||
var tmp_6; | ||
if ($p instanceof Exception) { | ||
tmp_6 = null; | ||
} else { | ||
throw $p; | ||
} | ||
tmp_3 = tmp_6; | ||
} | ||
tmp$ret$4 = tmp0_apply; | ||
tmp_0 = tmp_3; | ||
} else { | ||
tmp_0 = null; | ||
} | ||
var tmp1_map = tmp$ret$4; | ||
var tmp$ret$7; | ||
{ | ||
var tmp0_mapTo = ArrayList_init_$Create$(tmp1_map.f()); | ||
var tmp$ret$5; | ||
{ | ||
tmp$ret$5 = tmp1_map.q().g(); | ||
} | ||
var tmp0_iterator_0 = tmp$ret$5; | ||
while (tmp0_iterator_0.h()) { | ||
var item = tmp0_iterator_0.i(); | ||
var tmp$ret$6; | ||
{ | ||
var tmp = item.m1(); | ||
var tmp0_subject_0 = item.o1(); | ||
var tmp_0; | ||
var tmp_1; | ||
var tmp_2; | ||
if (!(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'string' : false) { | ||
tmp_2 = true; | ||
} else { | ||
tmp_2 = !(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'boolean' : false; | ||
} | ||
if (tmp_2) { | ||
tmp_1 = true; | ||
} else { | ||
tmp_1 = !(tmp0_subject_0 == null) ? typeof tmp0_subject_0 === 'number' : false; | ||
} | ||
if (tmp_1) { | ||
tmp_0 = item.o1(); | ||
} else { | ||
if (!(tmp0_subject_0 == null) ? isInterface(tmp0_subject_0, Map) : false) { | ||
var tmp_3; | ||
try { | ||
var tmp_4 = JSON; | ||
var tmp_5 = item.o1(); | ||
tmp_3 = fromMap(tmp_4, (!(tmp_5 == null) ? isInterface(tmp_5, Map) : false) ? tmp_5 : THROW_CCE()); | ||
} catch ($p) { | ||
var tmp_6; | ||
if ($p instanceof Exception) { | ||
tmp_6 = null; | ||
} else { | ||
throw $p; | ||
} | ||
tmp_3 = tmp_6; | ||
} | ||
tmp_0 = tmp_3; | ||
} else { | ||
tmp_0 = null; | ||
} | ||
} | ||
tmp$ret$6 = new Pair(tmp, tmp_0); | ||
} | ||
tmp0_mapTo.a(tmp$ret$6); | ||
} | ||
tmp$ret$7 = tmp0_mapTo; | ||
} | ||
tmp$ret$8 = tmp$ret$7; | ||
} | ||
var tmp2_toTypedArray = tmp$ret$8; | ||
tmp$ret$9 = copyToArray(tmp2_toTypedArray); | ||
tmp$ret$6 = new Pair(tmp, tmp_0); | ||
tmp0_mapTo.a(tmp$ret$6); | ||
} | ||
tmp$ret$7 = tmp0_mapTo; | ||
tmp$ret$8 = tmp$ret$7; | ||
var tmp2_toTypedArray = tmp$ret$8; | ||
tmp$ret$9 = copyToArray(tmp2_toTypedArray); | ||
return json(tmp$ret$9.slice()); | ||
@@ -946,4 +1119,6 @@ } | ||
var $vonage = _.vonage || (_.vonage = {}); | ||
$vonage.CoreClientConfigJS = CoreClientConfigJS; | ||
$vonage.CoreClientJS = CoreClientJS; | ||
$vonage.VoiceCallJS = VoiceCallJS; | ||
$vonage.VoiceInviteFromInfoJS = VoiceInviteFromInfoJS; | ||
$vonage.VoiceInviteJS = VoiceInviteJS; | ||
@@ -986,2 +1161,2 @@ $vonage.ConversationJS = ConversationJS; | ||
//# sourceMappingURL=clientsdk-clientcore_js.js.map | ||
//# sourceMappingURL=clientsdk-clientcore_js.js.map |
@@ -33,3 +33,3 @@ (function (root, factory) { | ||
} | ||
LogWriter.prototype.h1a = function (severity) { | ||
LogWriter.prototype.x19 = function (severity) { | ||
return true; | ||
@@ -55,9 +55,9 @@ }; | ||
Companion_instance = this; | ||
var tmp = LoggerGlobal_getInstance().j1a_1; | ||
var tmp = LoggerGlobal_getInstance().z19_1; | ||
Logger_init_$Init$(tmp, null, 2, null, this); | ||
} | ||
Companion.prototype.m1a = function () { | ||
Companion.prototype.c1a = function () { | ||
return get_defaultTag(); | ||
}; | ||
Companion.prototype.n1a = function (tag) { | ||
Companion.prototype.d1a = function (tag) { | ||
set_defaultTag(tag); | ||
@@ -74,41 +74,40 @@ }; | ||
Companion_getInstance(); | ||
this.o1a_1 = config; | ||
this.p1a_1 = tag; | ||
this.e1a_1 = config; | ||
this.f1a_1 = tag; | ||
} | ||
Logger.prototype.q1a = function () { | ||
return this.o1a_1; | ||
Logger.prototype.g1a = function () { | ||
return this.e1a_1; | ||
}; | ||
Logger.prototype.m1a = function () { | ||
return this.p1a_1; | ||
Logger.prototype.c1a = function () { | ||
return this.f1a_1; | ||
}; | ||
Logger.prototype.r1a = function (tag) { | ||
return new Logger(this.o1a_1, tag); | ||
Logger.prototype.h1a = function (tag) { | ||
return new Logger(this.e1a_1, tag); | ||
}; | ||
Logger.prototype.s1a = function (message) { | ||
if (this.o1a_1.w1a().q3(Severity_Info_getInstance()) <= 0) | ||
this.v1a(Severity_Info_getInstance(), this.m1a(), null, message()); | ||
Logger.prototype.i1a = function (message) { | ||
if (this.e1a_1.m1a().r3(Severity_Info_getInstance()) <= 0) { | ||
this.l1a(Severity_Info_getInstance(), this.c1a(), null, message()); | ||
} | ||
}; | ||
Logger.prototype.t1a = function (message) { | ||
if (this.o1a_1.w1a().q3(Severity_Error_getInstance()) <= 0) | ||
this.v1a(Severity_Error_getInstance(), this.m1a(), null, message()); | ||
Logger.prototype.j1a = function (message) { | ||
if (this.e1a_1.m1a().r3(Severity_Error_getInstance()) <= 0) { | ||
this.l1a(Severity_Error_getInstance(), this.c1a(), null, message()); | ||
} | ||
}; | ||
Logger.prototype.u1a = function (message) { | ||
if (this.o1a_1.w1a().q3(Severity_Error_getInstance()) <= 0) | ||
this.v1a(Severity_Error_getInstance(), this.m1a(), null, message); | ||
Logger.prototype.k1a = function (message) { | ||
if (this.e1a_1.m1a().r3(Severity_Error_getInstance()) <= 0) { | ||
this.l1a(Severity_Error_getInstance(), this.c1a(), null, message); | ||
} | ||
}; | ||
Logger.prototype.v1a = function (severity, tag, throwable, message) { | ||
{ | ||
{ | ||
var tmp0_forEach = this.o1a_1.x1a(); | ||
var tmp0_iterator = tmp0_forEach.g(); | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
{ | ||
if (element.h1a(severity)) { | ||
{ | ||
element.i1a(severity, message, tag, throwable); | ||
} | ||
} | ||
} | ||
} | ||
Logger.prototype.l1a = function (severity, tag, throwable, message) { | ||
// Inline function 'co.touchlab.kermit.Logger.processLog' call | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_forEach = this.e1a_1.n1a(); | ||
var tmp0_iterator = tmp0_forEach.g(); | ||
while (tmp0_iterator.h()) { | ||
var element = tmp0_iterator.i(); | ||
// Inline function 'co.touchlab.kermit.Logger.processLog.<anonymous>' call | ||
if (element.x19(severity)) { | ||
// Inline function 'co.touchlab.kermit.Logger.log.<anonymous>' call | ||
element.y19(severity, message, tag, throwable); | ||
} | ||
@@ -120,3 +119,3 @@ } | ||
LoggerGlobal_instance = this; | ||
this.j1a_1 = mutableKermitConfigInit(listOf(platformLogWriter())); | ||
this.z19_1 = mutableKermitConfigInit(listOf(platformLogWriter())); | ||
} | ||
@@ -185,3 +184,3 @@ LoggerGlobal.$metadata$ = objectMeta('LoggerGlobal'); | ||
} | ||
ConsoleWriter.prototype.i1a = function (severity, message, tag, throwable) { | ||
ConsoleWriter.prototype.y19 = function (severity, message, tag, throwable) { | ||
var output = '[' + tag + '] ' + message; | ||
@@ -193,11 +192,9 @@ var tmp0_safe_receiver = throwable; | ||
var tmp$ret$0; | ||
{ | ||
{ | ||
} | ||
output = output + (' ' + stackTraceToString(tmp0_safe_receiver)); | ||
tmp$ret$0 = Unit_getInstance(); | ||
} | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
output = output + (' ' + stackTraceToString(tmp0_safe_receiver)); | ||
tmp$ret$0 = Unit_getInstance(); | ||
} | ||
var tmp1_subject = severity; | ||
var tmp0 = tmp1_subject.ue(); | ||
var tmp0 = tmp1_subject.p3_1; | ||
switch (tmp0) { | ||
@@ -207,8 +204,11 @@ case 5: | ||
console.error(output); | ||
; | ||
break; | ||
case 3: | ||
console.warn(output); | ||
; | ||
break; | ||
case 2: | ||
console.info(output); | ||
; | ||
break; | ||
@@ -218,2 +218,3 @@ case 1: | ||
console.log(output); | ||
; | ||
break; | ||
@@ -224,10 +225,10 @@ } | ||
function JsMutableLoggerConfig(logWriters) { | ||
this.y1a_1 = get_DEFAULT_MIN_SEVERITY(); | ||
this.z1a_1 = logWriters; | ||
this.o1a_1 = get_DEFAULT_MIN_SEVERITY(); | ||
this.p1a_1 = logWriters; | ||
} | ||
JsMutableLoggerConfig.prototype.w1a = function () { | ||
return this.y1a_1; | ||
JsMutableLoggerConfig.prototype.m1a = function () { | ||
return this.o1a_1; | ||
}; | ||
JsMutableLoggerConfig.prototype.x1a = function () { | ||
return this.z1a_1; | ||
JsMutableLoggerConfig.prototype.n1a = function () { | ||
return this.p1a_1; | ||
}; | ||
@@ -272,2 +273,2 @@ JsMutableLoggerConfig.$metadata$ = classMeta('JsMutableLoggerConfig', [MutableLoggerConfig]); | ||
//# sourceMappingURL=Kermit-kermit-js-ir.js.map | ||
//# sourceMappingURL=Kermit-kermit-js-ir.js.map |
{ | ||
"name": "@vonage/client-sdk", | ||
"version": "0.1.3-alpha.17", | ||
"version": "0.1.3-alpha.18", | ||
"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
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
Sorry, the diff of this file is too big to display
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
2099431
45160