@vonage/client-sdk 1.0.1-alpha.3 → 1.0.1-alpha.4
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/index.cjs +97 -72
- package/dist/client/index.mjs +97 -72
- package/dist/vonageClientSDK.js +96 -72
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +96 -72
- package/package.json +1 -1
package/dist/vonageClientSDK.mjs
CHANGED
|
@@ -56295,100 +56295,105 @@ function requireClientsdkClientcore () {
|
|
|
56295
56295
|
InviteReducer.prototype.h33 = function (action, state) {
|
|
56296
56296
|
var tmp0_subject = action.p1d_1;
|
|
56297
56297
|
var tmp;
|
|
56298
|
-
if (tmp0_subject instanceof
|
|
56299
|
-
|
|
56298
|
+
if (tmp0_subject instanceof ErrorReport) {
|
|
56299
|
+
var tmp1_elvis_lhs = action.q1d_1.n1d_1;
|
|
56300
|
+
tmp = state.s32(action.p1d_1, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
56300
56301
|
} else {
|
|
56301
|
-
if (tmp0_subject instanceof
|
|
56302
|
-
|
|
56303
|
-
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
56304
|
-
tmp_0 = state.p30(action.p1d_1);
|
|
56305
|
-
} else {
|
|
56306
|
-
tmp_0 = null;
|
|
56307
|
-
}
|
|
56308
|
-
tmp = tmp_0;
|
|
56302
|
+
if (tmp0_subject instanceof SessionSuccessEvent) {
|
|
56303
|
+
tmp = state.y30(action.p1d_1);
|
|
56309
56304
|
} else {
|
|
56310
|
-
if (tmp0_subject instanceof
|
|
56311
|
-
var
|
|
56312
|
-
if (!(action.p1d_1.
|
|
56313
|
-
|
|
56305
|
+
if (tmp0_subject instanceof MemberInvitedEvent) {
|
|
56306
|
+
var tmp_0;
|
|
56307
|
+
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
56308
|
+
tmp_0 = state.p30(action.p1d_1);
|
|
56314
56309
|
} else {
|
|
56315
|
-
|
|
56310
|
+
tmp_0 = null;
|
|
56316
56311
|
}
|
|
56317
|
-
tmp =
|
|
56312
|
+
tmp = tmp_0;
|
|
56318
56313
|
} else {
|
|
56319
|
-
if (tmp0_subject instanceof
|
|
56320
|
-
var
|
|
56321
|
-
if (!(action.p1d_1.
|
|
56322
|
-
|
|
56314
|
+
if (tmp0_subject instanceof PushMemberInvitedEvent) {
|
|
56315
|
+
var tmp_1;
|
|
56316
|
+
if (!(action.p1d_1.w23_1.b1z_1.m2j_1 == null)) {
|
|
56317
|
+
tmp_1 = state.j33(action.p1d_1);
|
|
56323
56318
|
} else {
|
|
56324
|
-
|
|
56319
|
+
tmp_1 = null;
|
|
56325
56320
|
}
|
|
56326
|
-
tmp =
|
|
56321
|
+
tmp = tmp_1;
|
|
56327
56322
|
} else {
|
|
56328
|
-
if (tmp0_subject instanceof
|
|
56329
|
-
var
|
|
56330
|
-
|
|
56331
|
-
|
|
56332
|
-
if (tmp1_safe_receiver == null) {
|
|
56333
|
-
tmp_3 = null;
|
|
56323
|
+
if (tmp0_subject instanceof MemberJoinedEvent) {
|
|
56324
|
+
var tmp_2;
|
|
56325
|
+
if (!(action.p1d_1.h1z_1.r1z_1.m2j_1 == null)) {
|
|
56326
|
+
tmp_2 = state.o30(action.p1d_1);
|
|
56334
56327
|
} else {
|
|
56335
|
-
|
|
56336
|
-
// Inline function 'kotlin.let' call
|
|
56337
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
56338
|
-
var tmp$ret$0;
|
|
56339
|
-
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56340
|
-
tmp$ret$0 = state.f32(action.p1d_1, tmp1_safe_receiver);
|
|
56341
|
-
tmp$ret$1 = tmp$ret$0;
|
|
56342
|
-
tmp_3 = tmp$ret$1;
|
|
56328
|
+
tmp_2 = null;
|
|
56343
56329
|
}
|
|
56344
|
-
tmp =
|
|
56330
|
+
tmp = tmp_2;
|
|
56345
56331
|
} else {
|
|
56346
|
-
if (tmp0_subject instanceof
|
|
56347
|
-
var
|
|
56348
|
-
var tmp2_safe_receiver =
|
|
56349
|
-
var
|
|
56332
|
+
if (tmp0_subject instanceof MemberLeftEvent) {
|
|
56333
|
+
var id = action.p1d_1.v1z_1.g20_1.m2j_1;
|
|
56334
|
+
var tmp2_safe_receiver = id;
|
|
56335
|
+
var tmp_3;
|
|
56350
56336
|
if (tmp2_safe_receiver == null) {
|
|
56351
|
-
|
|
56337
|
+
tmp_3 = null;
|
|
56352
56338
|
} else {
|
|
56353
|
-
var tmp$ret$
|
|
56339
|
+
var tmp$ret$1;
|
|
56354
56340
|
// Inline function 'kotlin.let' call
|
|
56355
56341
|
// Inline function 'kotlin.contracts.contract' call
|
|
56356
|
-
var tmp$ret$
|
|
56342
|
+
var tmp$ret$0;
|
|
56357
56343
|
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56358
|
-
tmp$ret$
|
|
56359
|
-
tmp$ret$
|
|
56360
|
-
|
|
56344
|
+
tmp$ret$0 = state.f32(action.p1d_1, tmp2_safe_receiver);
|
|
56345
|
+
tmp$ret$1 = tmp$ret$0;
|
|
56346
|
+
tmp_3 = tmp$ret$1;
|
|
56361
56347
|
}
|
|
56362
|
-
tmp =
|
|
56348
|
+
tmp = tmp_3;
|
|
56363
56349
|
} else {
|
|
56364
|
-
if (tmp0_subject instanceof
|
|
56365
|
-
var
|
|
56366
|
-
|
|
56367
|
-
|
|
56368
|
-
|
|
56369
|
-
|
|
56370
|
-
|
|
56371
|
-
|
|
56372
|
-
|
|
56373
|
-
|
|
56350
|
+
if (tmp0_subject instanceof RTCHangupEvent) {
|
|
56351
|
+
var id_0 = action.p1d_1.d23_1.f1y_1.m2j_1;
|
|
56352
|
+
var tmp3_safe_receiver = id_0;
|
|
56353
|
+
var tmp_4;
|
|
56354
|
+
if (tmp3_safe_receiver == null) {
|
|
56355
|
+
tmp_4 = null;
|
|
56356
|
+
} else {
|
|
56357
|
+
var tmp$ret$3;
|
|
56358
|
+
// Inline function 'kotlin.let' call
|
|
56359
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56360
|
+
var tmp$ret$2;
|
|
56361
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56362
|
+
tmp$ret$2 = state.c32(action.p1d_1, tmp3_safe_receiver);
|
|
56363
|
+
tmp$ret$3 = tmp$ret$2;
|
|
56364
|
+
tmp_4 = tmp$ret$3;
|
|
56365
|
+
}
|
|
56366
|
+
tmp = tmp_4;
|
|
56374
56367
|
} else {
|
|
56375
|
-
if (
|
|
56376
|
-
var
|
|
56377
|
-
|
|
56378
|
-
|
|
56379
|
-
|
|
56380
|
-
|
|
56381
|
-
|
|
56382
|
-
|
|
56383
|
-
|
|
56384
|
-
|
|
56368
|
+
if (tmp0_subject instanceof InviteCleanup) {
|
|
56369
|
+
var tmp$ret$5;
|
|
56370
|
+
// Inline function 'kotlin.let' call
|
|
56371
|
+
state.i33(action.p1d_1, action.p1d_1.g2s_1);
|
|
56372
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56373
|
+
var tmp$ret$4;
|
|
56374
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56375
|
+
tmp$ret$4 = null;
|
|
56376
|
+
tmp$ret$5 = tmp$ret$4;
|
|
56377
|
+
tmp = tmp$ret$5;
|
|
56378
|
+
} else {
|
|
56379
|
+
if (isInterface(tmp0_subject, ApiRequest)) {
|
|
56380
|
+
var tmp4_elvis_lhs = action.q1d_1.n1d_1;
|
|
56381
|
+
var callId = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
|
|
56382
|
+
var tmp5_subject = action.p1d_1;
|
|
56383
|
+
var tmp_5;
|
|
56384
|
+
if (tmp5_subject instanceof MemberKickRequest) {
|
|
56385
|
+
tmp_5 = state.z31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
56385
56386
|
} else {
|
|
56386
|
-
|
|
56387
|
+
if (tmp5_subject instanceof MemberJoinRequest) {
|
|
56388
|
+
tmp_5 = state.y31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
56389
|
+
} else {
|
|
56390
|
+
tmp_5 = null;
|
|
56391
|
+
}
|
|
56387
56392
|
}
|
|
56393
|
+
tmp = tmp_5;
|
|
56394
|
+
} else {
|
|
56395
|
+
tmp = null;
|
|
56388
56396
|
}
|
|
56389
|
-
tmp = tmp_5;
|
|
56390
|
-
} else {
|
|
56391
|
-
tmp = null;
|
|
56392
56397
|
}
|
|
56393
56398
|
}
|
|
56394
56399
|
}
|
|
@@ -56502,6 +56507,22 @@ function requireClientsdkClientcore () {
|
|
|
56502
56507
|
return Unit_getInstance();
|
|
56503
56508
|
};
|
|
56504
56509
|
}
|
|
56510
|
+
function InviteState$update$lambda_6($action) {
|
|
56511
|
+
return function ($this$modify) {
|
|
56512
|
+
var tmp_0;
|
|
56513
|
+
var tmp_1 = $this$modify.c2q_1;
|
|
56514
|
+
if (tmp_1 instanceof Pending) {
|
|
56515
|
+
tmp_0 = $this$modify.c2q_1.k2q() === $action.s1d_1;
|
|
56516
|
+
} else {
|
|
56517
|
+
tmp_0 = false;
|
|
56518
|
+
}
|
|
56519
|
+
if (tmp_0) {
|
|
56520
|
+
$this$modify.c2q_1 = toFailed($this$modify.c2q_1, $action.r1d_1);
|
|
56521
|
+
Unit_getInstance();
|
|
56522
|
+
}
|
|
56523
|
+
return Unit_getInstance();
|
|
56524
|
+
};
|
|
56525
|
+
}
|
|
56505
56526
|
function InviteState(invites, currentUserId) {
|
|
56506
56527
|
this.l2q_1 = invites;
|
|
56507
56528
|
this.m2q_1 = currentUserId;
|
|
@@ -56565,6 +56586,9 @@ function requireClientsdkClientcore () {
|
|
|
56565
56586
|
tmp$ret$0 = this;
|
|
56566
56587
|
return tmp$ret$0;
|
|
56567
56588
|
};
|
|
56589
|
+
InviteState.prototype.s32 = function (action, callId) {
|
|
56590
|
+
return modify(this, callId, InviteState$update$lambda_6(action));
|
|
56591
|
+
};
|
|
56568
56592
|
InviteState.prototype.l33 = function (invites, currentUserId) {
|
|
56569
56593
|
return new InviteState(invites, currentUserId);
|
|
56570
56594
|
};
|