@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/client/index.cjs
CHANGED
|
@@ -59579,100 +59579,105 @@ function requireClientsdkClientcore () {
|
|
|
59579
59579
|
InviteReducer.prototype.h33 = function (action, state) {
|
|
59580
59580
|
var tmp0_subject = action.p1d_1;
|
|
59581
59581
|
var tmp;
|
|
59582
|
-
if (tmp0_subject instanceof
|
|
59583
|
-
|
|
59582
|
+
if (tmp0_subject instanceof ErrorReport) {
|
|
59583
|
+
var tmp1_elvis_lhs = action.q1d_1.n1d_1;
|
|
59584
|
+
tmp = state.s32(action.p1d_1, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
59584
59585
|
} else {
|
|
59585
|
-
if (tmp0_subject instanceof
|
|
59586
|
-
|
|
59587
|
-
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
59588
|
-
tmp_0 = state.p30(action.p1d_1);
|
|
59589
|
-
} else {
|
|
59590
|
-
tmp_0 = null;
|
|
59591
|
-
}
|
|
59592
|
-
tmp = tmp_0;
|
|
59586
|
+
if (tmp0_subject instanceof SessionSuccessEvent) {
|
|
59587
|
+
tmp = state.y30(action.p1d_1);
|
|
59593
59588
|
} else {
|
|
59594
|
-
if (tmp0_subject instanceof
|
|
59595
|
-
var
|
|
59596
|
-
if (!(action.p1d_1.
|
|
59597
|
-
|
|
59589
|
+
if (tmp0_subject instanceof MemberInvitedEvent) {
|
|
59590
|
+
var tmp_0;
|
|
59591
|
+
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
59592
|
+
tmp_0 = state.p30(action.p1d_1);
|
|
59598
59593
|
} else {
|
|
59599
|
-
|
|
59594
|
+
tmp_0 = null;
|
|
59600
59595
|
}
|
|
59601
|
-
tmp =
|
|
59596
|
+
tmp = tmp_0;
|
|
59602
59597
|
} else {
|
|
59603
|
-
if (tmp0_subject instanceof
|
|
59604
|
-
var
|
|
59605
|
-
if (!(action.p1d_1.
|
|
59606
|
-
|
|
59598
|
+
if (tmp0_subject instanceof PushMemberInvitedEvent) {
|
|
59599
|
+
var tmp_1;
|
|
59600
|
+
if (!(action.p1d_1.w23_1.b1z_1.m2j_1 == null)) {
|
|
59601
|
+
tmp_1 = state.j33(action.p1d_1);
|
|
59607
59602
|
} else {
|
|
59608
|
-
|
|
59603
|
+
tmp_1 = null;
|
|
59609
59604
|
}
|
|
59610
|
-
tmp =
|
|
59605
|
+
tmp = tmp_1;
|
|
59611
59606
|
} else {
|
|
59612
|
-
if (tmp0_subject instanceof
|
|
59613
|
-
var
|
|
59614
|
-
|
|
59615
|
-
|
|
59616
|
-
if (tmp1_safe_receiver == null) {
|
|
59617
|
-
tmp_3 = null;
|
|
59607
|
+
if (tmp0_subject instanceof MemberJoinedEvent) {
|
|
59608
|
+
var tmp_2;
|
|
59609
|
+
if (!(action.p1d_1.h1z_1.r1z_1.m2j_1 == null)) {
|
|
59610
|
+
tmp_2 = state.o30(action.p1d_1);
|
|
59618
59611
|
} else {
|
|
59619
|
-
|
|
59620
|
-
// Inline function 'kotlin.let' call
|
|
59621
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
59622
|
-
var tmp$ret$0;
|
|
59623
|
-
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59624
|
-
tmp$ret$0 = state.f32(action.p1d_1, tmp1_safe_receiver);
|
|
59625
|
-
tmp$ret$1 = tmp$ret$0;
|
|
59626
|
-
tmp_3 = tmp$ret$1;
|
|
59612
|
+
tmp_2 = null;
|
|
59627
59613
|
}
|
|
59628
|
-
tmp =
|
|
59614
|
+
tmp = tmp_2;
|
|
59629
59615
|
} else {
|
|
59630
|
-
if (tmp0_subject instanceof
|
|
59631
|
-
var
|
|
59632
|
-
var tmp2_safe_receiver =
|
|
59633
|
-
var
|
|
59616
|
+
if (tmp0_subject instanceof MemberLeftEvent) {
|
|
59617
|
+
var id = action.p1d_1.v1z_1.g20_1.m2j_1;
|
|
59618
|
+
var tmp2_safe_receiver = id;
|
|
59619
|
+
var tmp_3;
|
|
59634
59620
|
if (tmp2_safe_receiver == null) {
|
|
59635
|
-
|
|
59621
|
+
tmp_3 = null;
|
|
59636
59622
|
} else {
|
|
59637
|
-
var tmp$ret$
|
|
59623
|
+
var tmp$ret$1;
|
|
59638
59624
|
// Inline function 'kotlin.let' call
|
|
59639
59625
|
// Inline function 'kotlin.contracts.contract' call
|
|
59640
|
-
var tmp$ret$
|
|
59626
|
+
var tmp$ret$0;
|
|
59641
59627
|
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59642
|
-
tmp$ret$
|
|
59643
|
-
tmp$ret$
|
|
59644
|
-
|
|
59628
|
+
tmp$ret$0 = state.f32(action.p1d_1, tmp2_safe_receiver);
|
|
59629
|
+
tmp$ret$1 = tmp$ret$0;
|
|
59630
|
+
tmp_3 = tmp$ret$1;
|
|
59645
59631
|
}
|
|
59646
|
-
tmp =
|
|
59632
|
+
tmp = tmp_3;
|
|
59647
59633
|
} else {
|
|
59648
|
-
if (tmp0_subject instanceof
|
|
59649
|
-
var
|
|
59650
|
-
|
|
59651
|
-
var
|
|
59652
|
-
|
|
59653
|
-
|
|
59654
|
-
|
|
59655
|
-
|
|
59656
|
-
|
|
59657
|
-
|
|
59634
|
+
if (tmp0_subject instanceof RTCHangupEvent) {
|
|
59635
|
+
var id_0 = action.p1d_1.d23_1.f1y_1.m2j_1;
|
|
59636
|
+
var tmp3_safe_receiver = id_0;
|
|
59637
|
+
var tmp_4;
|
|
59638
|
+
if (tmp3_safe_receiver == null) {
|
|
59639
|
+
tmp_4 = null;
|
|
59640
|
+
} else {
|
|
59641
|
+
var tmp$ret$3;
|
|
59642
|
+
// Inline function 'kotlin.let' call
|
|
59643
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
59644
|
+
var tmp$ret$2;
|
|
59645
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59646
|
+
tmp$ret$2 = state.c32(action.p1d_1, tmp3_safe_receiver);
|
|
59647
|
+
tmp$ret$3 = tmp$ret$2;
|
|
59648
|
+
tmp_4 = tmp$ret$3;
|
|
59649
|
+
}
|
|
59650
|
+
tmp = tmp_4;
|
|
59658
59651
|
} else {
|
|
59659
|
-
if (
|
|
59660
|
-
var
|
|
59661
|
-
|
|
59662
|
-
var
|
|
59663
|
-
|
|
59664
|
-
|
|
59665
|
-
|
|
59666
|
-
|
|
59667
|
-
|
|
59668
|
-
|
|
59652
|
+
if (tmp0_subject instanceof InviteCleanup) {
|
|
59653
|
+
var tmp$ret$5;
|
|
59654
|
+
// Inline function 'kotlin.let' call
|
|
59655
|
+
var tmp0_let = state.i33(action.p1d_1, action.p1d_1.g2s_1);
|
|
59656
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
59657
|
+
var tmp$ret$4;
|
|
59658
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59659
|
+
tmp$ret$4 = null;
|
|
59660
|
+
tmp$ret$5 = tmp$ret$4;
|
|
59661
|
+
tmp = tmp$ret$5;
|
|
59662
|
+
} else {
|
|
59663
|
+
if (isInterface(tmp0_subject, ApiRequest)) {
|
|
59664
|
+
var tmp4_elvis_lhs = action.q1d_1.n1d_1;
|
|
59665
|
+
var callId = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
|
|
59666
|
+
var tmp5_subject = action.p1d_1;
|
|
59667
|
+
var tmp_5;
|
|
59668
|
+
if (tmp5_subject instanceof MemberKickRequest) {
|
|
59669
|
+
tmp_5 = state.z31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
59669
59670
|
} else {
|
|
59670
|
-
|
|
59671
|
+
if (tmp5_subject instanceof MemberJoinRequest) {
|
|
59672
|
+
tmp_5 = state.y31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
59673
|
+
} else {
|
|
59674
|
+
tmp_5 = null;
|
|
59675
|
+
}
|
|
59671
59676
|
}
|
|
59677
|
+
tmp = tmp_5;
|
|
59678
|
+
} else {
|
|
59679
|
+
tmp = null;
|
|
59672
59680
|
}
|
|
59673
|
-
tmp = tmp_5;
|
|
59674
|
-
} else {
|
|
59675
|
-
tmp = null;
|
|
59676
59681
|
}
|
|
59677
59682
|
}
|
|
59678
59683
|
}
|
|
@@ -59789,6 +59794,23 @@ function requireClientsdkClientcore () {
|
|
|
59789
59794
|
return Unit_getInstance();
|
|
59790
59795
|
};
|
|
59791
59796
|
}
|
|
59797
|
+
function InviteState$update$lambda_6($action) {
|
|
59798
|
+
return function ($this$modify) {
|
|
59799
|
+
var tmp;
|
|
59800
|
+
var tmp_0;
|
|
59801
|
+
var tmp_1 = $this$modify.c2q_1;
|
|
59802
|
+
if (tmp_1 instanceof Pending) {
|
|
59803
|
+
tmp_0 = $this$modify.c2q_1.k2q() === $action.s1d_1;
|
|
59804
|
+
} else {
|
|
59805
|
+
tmp_0 = false;
|
|
59806
|
+
}
|
|
59807
|
+
if (tmp_0) {
|
|
59808
|
+
$this$modify.c2q_1 = toFailed($this$modify.c2q_1, $action.r1d_1);
|
|
59809
|
+
tmp = Unit_getInstance();
|
|
59810
|
+
}
|
|
59811
|
+
return Unit_getInstance();
|
|
59812
|
+
};
|
|
59813
|
+
}
|
|
59792
59814
|
function InviteState(invites, currentUserId) {
|
|
59793
59815
|
this.l2q_1 = invites;
|
|
59794
59816
|
this.m2q_1 = currentUserId;
|
|
@@ -59852,6 +59874,9 @@ function requireClientsdkClientcore () {
|
|
|
59852
59874
|
tmp$ret$0 = this;
|
|
59853
59875
|
return tmp$ret$0;
|
|
59854
59876
|
};
|
|
59877
|
+
InviteState.prototype.s32 = function (action, callId) {
|
|
59878
|
+
return modify(this, callId, InviteState$update$lambda_6(action));
|
|
59879
|
+
};
|
|
59855
59880
|
InviteState.prototype.l33 = function (invites, currentUserId) {
|
|
59856
59881
|
return new InviteState(invites, currentUserId);
|
|
59857
59882
|
};
|
package/dist/client/index.mjs
CHANGED
|
@@ -59555,100 +59555,105 @@ function requireClientsdkClientcore () {
|
|
|
59555
59555
|
InviteReducer.prototype.h33 = function (action, state) {
|
|
59556
59556
|
var tmp0_subject = action.p1d_1;
|
|
59557
59557
|
var tmp;
|
|
59558
|
-
if (tmp0_subject instanceof
|
|
59559
|
-
|
|
59558
|
+
if (tmp0_subject instanceof ErrorReport) {
|
|
59559
|
+
var tmp1_elvis_lhs = action.q1d_1.n1d_1;
|
|
59560
|
+
tmp = state.s32(action.p1d_1, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
59560
59561
|
} else {
|
|
59561
|
-
if (tmp0_subject instanceof
|
|
59562
|
-
|
|
59563
|
-
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
59564
|
-
tmp_0 = state.p30(action.p1d_1);
|
|
59565
|
-
} else {
|
|
59566
|
-
tmp_0 = null;
|
|
59567
|
-
}
|
|
59568
|
-
tmp = tmp_0;
|
|
59562
|
+
if (tmp0_subject instanceof SessionSuccessEvent) {
|
|
59563
|
+
tmp = state.y30(action.p1d_1);
|
|
59569
59564
|
} else {
|
|
59570
|
-
if (tmp0_subject instanceof
|
|
59571
|
-
var
|
|
59572
|
-
if (!(action.p1d_1.
|
|
59573
|
-
|
|
59565
|
+
if (tmp0_subject instanceof MemberInvitedEvent) {
|
|
59566
|
+
var tmp_0;
|
|
59567
|
+
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
59568
|
+
tmp_0 = state.p30(action.p1d_1);
|
|
59574
59569
|
} else {
|
|
59575
|
-
|
|
59570
|
+
tmp_0 = null;
|
|
59576
59571
|
}
|
|
59577
|
-
tmp =
|
|
59572
|
+
tmp = tmp_0;
|
|
59578
59573
|
} else {
|
|
59579
|
-
if (tmp0_subject instanceof
|
|
59580
|
-
var
|
|
59581
|
-
if (!(action.p1d_1.
|
|
59582
|
-
|
|
59574
|
+
if (tmp0_subject instanceof PushMemberInvitedEvent) {
|
|
59575
|
+
var tmp_1;
|
|
59576
|
+
if (!(action.p1d_1.w23_1.b1z_1.m2j_1 == null)) {
|
|
59577
|
+
tmp_1 = state.j33(action.p1d_1);
|
|
59583
59578
|
} else {
|
|
59584
|
-
|
|
59579
|
+
tmp_1 = null;
|
|
59585
59580
|
}
|
|
59586
|
-
tmp =
|
|
59581
|
+
tmp = tmp_1;
|
|
59587
59582
|
} else {
|
|
59588
|
-
if (tmp0_subject instanceof
|
|
59589
|
-
var
|
|
59590
|
-
|
|
59591
|
-
|
|
59592
|
-
if (tmp1_safe_receiver == null) {
|
|
59593
|
-
tmp_3 = null;
|
|
59583
|
+
if (tmp0_subject instanceof MemberJoinedEvent) {
|
|
59584
|
+
var tmp_2;
|
|
59585
|
+
if (!(action.p1d_1.h1z_1.r1z_1.m2j_1 == null)) {
|
|
59586
|
+
tmp_2 = state.o30(action.p1d_1);
|
|
59594
59587
|
} else {
|
|
59595
|
-
|
|
59596
|
-
// Inline function 'kotlin.let' call
|
|
59597
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
59598
|
-
var tmp$ret$0;
|
|
59599
|
-
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59600
|
-
tmp$ret$0 = state.f32(action.p1d_1, tmp1_safe_receiver);
|
|
59601
|
-
tmp$ret$1 = tmp$ret$0;
|
|
59602
|
-
tmp_3 = tmp$ret$1;
|
|
59588
|
+
tmp_2 = null;
|
|
59603
59589
|
}
|
|
59604
|
-
tmp =
|
|
59590
|
+
tmp = tmp_2;
|
|
59605
59591
|
} else {
|
|
59606
|
-
if (tmp0_subject instanceof
|
|
59607
|
-
var
|
|
59608
|
-
var tmp2_safe_receiver =
|
|
59609
|
-
var
|
|
59592
|
+
if (tmp0_subject instanceof MemberLeftEvent) {
|
|
59593
|
+
var id = action.p1d_1.v1z_1.g20_1.m2j_1;
|
|
59594
|
+
var tmp2_safe_receiver = id;
|
|
59595
|
+
var tmp_3;
|
|
59610
59596
|
if (tmp2_safe_receiver == null) {
|
|
59611
|
-
|
|
59597
|
+
tmp_3 = null;
|
|
59612
59598
|
} else {
|
|
59613
|
-
var tmp$ret$
|
|
59599
|
+
var tmp$ret$1;
|
|
59614
59600
|
// Inline function 'kotlin.let' call
|
|
59615
59601
|
// Inline function 'kotlin.contracts.contract' call
|
|
59616
|
-
var tmp$ret$
|
|
59602
|
+
var tmp$ret$0;
|
|
59617
59603
|
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59618
|
-
tmp$ret$
|
|
59619
|
-
tmp$ret$
|
|
59620
|
-
|
|
59604
|
+
tmp$ret$0 = state.f32(action.p1d_1, tmp2_safe_receiver);
|
|
59605
|
+
tmp$ret$1 = tmp$ret$0;
|
|
59606
|
+
tmp_3 = tmp$ret$1;
|
|
59621
59607
|
}
|
|
59622
|
-
tmp =
|
|
59608
|
+
tmp = tmp_3;
|
|
59623
59609
|
} else {
|
|
59624
|
-
if (tmp0_subject instanceof
|
|
59625
|
-
var
|
|
59626
|
-
|
|
59627
|
-
var
|
|
59628
|
-
|
|
59629
|
-
|
|
59630
|
-
|
|
59631
|
-
|
|
59632
|
-
|
|
59633
|
-
|
|
59610
|
+
if (tmp0_subject instanceof RTCHangupEvent) {
|
|
59611
|
+
var id_0 = action.p1d_1.d23_1.f1y_1.m2j_1;
|
|
59612
|
+
var tmp3_safe_receiver = id_0;
|
|
59613
|
+
var tmp_4;
|
|
59614
|
+
if (tmp3_safe_receiver == null) {
|
|
59615
|
+
tmp_4 = null;
|
|
59616
|
+
} else {
|
|
59617
|
+
var tmp$ret$3;
|
|
59618
|
+
// Inline function 'kotlin.let' call
|
|
59619
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
59620
|
+
var tmp$ret$2;
|
|
59621
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59622
|
+
tmp$ret$2 = state.c32(action.p1d_1, tmp3_safe_receiver);
|
|
59623
|
+
tmp$ret$3 = tmp$ret$2;
|
|
59624
|
+
tmp_4 = tmp$ret$3;
|
|
59625
|
+
}
|
|
59626
|
+
tmp = tmp_4;
|
|
59634
59627
|
} else {
|
|
59635
|
-
if (
|
|
59636
|
-
var
|
|
59637
|
-
|
|
59638
|
-
var
|
|
59639
|
-
|
|
59640
|
-
|
|
59641
|
-
|
|
59642
|
-
|
|
59643
|
-
|
|
59644
|
-
|
|
59628
|
+
if (tmp0_subject instanceof InviteCleanup) {
|
|
59629
|
+
var tmp$ret$5;
|
|
59630
|
+
// Inline function 'kotlin.let' call
|
|
59631
|
+
var tmp0_let = state.i33(action.p1d_1, action.p1d_1.g2s_1);
|
|
59632
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
59633
|
+
var tmp$ret$4;
|
|
59634
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
59635
|
+
tmp$ret$4 = null;
|
|
59636
|
+
tmp$ret$5 = tmp$ret$4;
|
|
59637
|
+
tmp = tmp$ret$5;
|
|
59638
|
+
} else {
|
|
59639
|
+
if (isInterface(tmp0_subject, ApiRequest)) {
|
|
59640
|
+
var tmp4_elvis_lhs = action.q1d_1.n1d_1;
|
|
59641
|
+
var callId = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
|
|
59642
|
+
var tmp5_subject = action.p1d_1;
|
|
59643
|
+
var tmp_5;
|
|
59644
|
+
if (tmp5_subject instanceof MemberKickRequest) {
|
|
59645
|
+
tmp_5 = state.z31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
59645
59646
|
} else {
|
|
59646
|
-
|
|
59647
|
+
if (tmp5_subject instanceof MemberJoinRequest) {
|
|
59648
|
+
tmp_5 = state.y31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
59649
|
+
} else {
|
|
59650
|
+
tmp_5 = null;
|
|
59651
|
+
}
|
|
59647
59652
|
}
|
|
59653
|
+
tmp = tmp_5;
|
|
59654
|
+
} else {
|
|
59655
|
+
tmp = null;
|
|
59648
59656
|
}
|
|
59649
|
-
tmp = tmp_5;
|
|
59650
|
-
} else {
|
|
59651
|
-
tmp = null;
|
|
59652
59657
|
}
|
|
59653
59658
|
}
|
|
59654
59659
|
}
|
|
@@ -59765,6 +59770,23 @@ function requireClientsdkClientcore () {
|
|
|
59765
59770
|
return Unit_getInstance();
|
|
59766
59771
|
};
|
|
59767
59772
|
}
|
|
59773
|
+
function InviteState$update$lambda_6($action) {
|
|
59774
|
+
return function ($this$modify) {
|
|
59775
|
+
var tmp;
|
|
59776
|
+
var tmp_0;
|
|
59777
|
+
var tmp_1 = $this$modify.c2q_1;
|
|
59778
|
+
if (tmp_1 instanceof Pending) {
|
|
59779
|
+
tmp_0 = $this$modify.c2q_1.k2q() === $action.s1d_1;
|
|
59780
|
+
} else {
|
|
59781
|
+
tmp_0 = false;
|
|
59782
|
+
}
|
|
59783
|
+
if (tmp_0) {
|
|
59784
|
+
$this$modify.c2q_1 = toFailed($this$modify.c2q_1, $action.r1d_1);
|
|
59785
|
+
tmp = Unit_getInstance();
|
|
59786
|
+
}
|
|
59787
|
+
return Unit_getInstance();
|
|
59788
|
+
};
|
|
59789
|
+
}
|
|
59768
59790
|
function InviteState(invites, currentUserId) {
|
|
59769
59791
|
this.l2q_1 = invites;
|
|
59770
59792
|
this.m2q_1 = currentUserId;
|
|
@@ -59828,6 +59850,9 @@ function requireClientsdkClientcore () {
|
|
|
59828
59850
|
tmp$ret$0 = this;
|
|
59829
59851
|
return tmp$ret$0;
|
|
59830
59852
|
};
|
|
59853
|
+
InviteState.prototype.s32 = function (action, callId) {
|
|
59854
|
+
return modify(this, callId, InviteState$update$lambda_6(action));
|
|
59855
|
+
};
|
|
59831
59856
|
InviteState.prototype.l33 = function (invites, currentUserId) {
|
|
59832
59857
|
return new InviteState(invites, currentUserId);
|
|
59833
59858
|
};
|
package/dist/vonageClientSDK.js
CHANGED
|
@@ -56301,100 +56301,105 @@
|
|
|
56301
56301
|
InviteReducer.prototype.h33 = function (action, state) {
|
|
56302
56302
|
var tmp0_subject = action.p1d_1;
|
|
56303
56303
|
var tmp;
|
|
56304
|
-
if (tmp0_subject instanceof
|
|
56305
|
-
|
|
56304
|
+
if (tmp0_subject instanceof ErrorReport) {
|
|
56305
|
+
var tmp1_elvis_lhs = action.q1d_1.n1d_1;
|
|
56306
|
+
tmp = state.s32(action.p1d_1, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
56306
56307
|
} else {
|
|
56307
|
-
if (tmp0_subject instanceof
|
|
56308
|
-
|
|
56309
|
-
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
56310
|
-
tmp_0 = state.p30(action.p1d_1);
|
|
56311
|
-
} else {
|
|
56312
|
-
tmp_0 = null;
|
|
56313
|
-
}
|
|
56314
|
-
tmp = tmp_0;
|
|
56308
|
+
if (tmp0_subject instanceof SessionSuccessEvent) {
|
|
56309
|
+
tmp = state.y30(action.p1d_1);
|
|
56315
56310
|
} else {
|
|
56316
|
-
if (tmp0_subject instanceof
|
|
56317
|
-
var
|
|
56318
|
-
if (!(action.p1d_1.
|
|
56319
|
-
|
|
56311
|
+
if (tmp0_subject instanceof MemberInvitedEvent) {
|
|
56312
|
+
var tmp_0;
|
|
56313
|
+
if (!(action.p1d_1.n1y_1.b1z_1.m2j_1 == null)) {
|
|
56314
|
+
tmp_0 = state.p30(action.p1d_1);
|
|
56320
56315
|
} else {
|
|
56321
|
-
|
|
56316
|
+
tmp_0 = null;
|
|
56322
56317
|
}
|
|
56323
|
-
tmp =
|
|
56318
|
+
tmp = tmp_0;
|
|
56324
56319
|
} else {
|
|
56325
|
-
if (tmp0_subject instanceof
|
|
56326
|
-
var
|
|
56327
|
-
if (!(action.p1d_1.
|
|
56328
|
-
|
|
56320
|
+
if (tmp0_subject instanceof PushMemberInvitedEvent) {
|
|
56321
|
+
var tmp_1;
|
|
56322
|
+
if (!(action.p1d_1.w23_1.b1z_1.m2j_1 == null)) {
|
|
56323
|
+
tmp_1 = state.j33(action.p1d_1);
|
|
56329
56324
|
} else {
|
|
56330
|
-
|
|
56325
|
+
tmp_1 = null;
|
|
56331
56326
|
}
|
|
56332
|
-
tmp =
|
|
56327
|
+
tmp = tmp_1;
|
|
56333
56328
|
} else {
|
|
56334
|
-
if (tmp0_subject instanceof
|
|
56335
|
-
var
|
|
56336
|
-
|
|
56337
|
-
|
|
56338
|
-
if (tmp1_safe_receiver == null) {
|
|
56339
|
-
tmp_3 = null;
|
|
56329
|
+
if (tmp0_subject instanceof MemberJoinedEvent) {
|
|
56330
|
+
var tmp_2;
|
|
56331
|
+
if (!(action.p1d_1.h1z_1.r1z_1.m2j_1 == null)) {
|
|
56332
|
+
tmp_2 = state.o30(action.p1d_1);
|
|
56340
56333
|
} else {
|
|
56341
|
-
|
|
56342
|
-
// Inline function 'kotlin.let' call
|
|
56343
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
56344
|
-
var tmp$ret$0;
|
|
56345
|
-
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56346
|
-
tmp$ret$0 = state.f32(action.p1d_1, tmp1_safe_receiver);
|
|
56347
|
-
tmp$ret$1 = tmp$ret$0;
|
|
56348
|
-
tmp_3 = tmp$ret$1;
|
|
56334
|
+
tmp_2 = null;
|
|
56349
56335
|
}
|
|
56350
|
-
tmp =
|
|
56336
|
+
tmp = tmp_2;
|
|
56351
56337
|
} else {
|
|
56352
|
-
if (tmp0_subject instanceof
|
|
56353
|
-
var
|
|
56354
|
-
var tmp2_safe_receiver =
|
|
56355
|
-
var
|
|
56338
|
+
if (tmp0_subject instanceof MemberLeftEvent) {
|
|
56339
|
+
var id = action.p1d_1.v1z_1.g20_1.m2j_1;
|
|
56340
|
+
var tmp2_safe_receiver = id;
|
|
56341
|
+
var tmp_3;
|
|
56356
56342
|
if (tmp2_safe_receiver == null) {
|
|
56357
|
-
|
|
56343
|
+
tmp_3 = null;
|
|
56358
56344
|
} else {
|
|
56359
|
-
var tmp$ret$
|
|
56345
|
+
var tmp$ret$1;
|
|
56360
56346
|
// Inline function 'kotlin.let' call
|
|
56361
56347
|
// Inline function 'kotlin.contracts.contract' call
|
|
56362
|
-
var tmp$ret$
|
|
56348
|
+
var tmp$ret$0;
|
|
56363
56349
|
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56364
|
-
tmp$ret$
|
|
56365
|
-
tmp$ret$
|
|
56366
|
-
|
|
56350
|
+
tmp$ret$0 = state.f32(action.p1d_1, tmp2_safe_receiver);
|
|
56351
|
+
tmp$ret$1 = tmp$ret$0;
|
|
56352
|
+
tmp_3 = tmp$ret$1;
|
|
56367
56353
|
}
|
|
56368
|
-
tmp =
|
|
56354
|
+
tmp = tmp_3;
|
|
56369
56355
|
} else {
|
|
56370
|
-
if (tmp0_subject instanceof
|
|
56371
|
-
var
|
|
56372
|
-
|
|
56373
|
-
|
|
56374
|
-
|
|
56375
|
-
|
|
56376
|
-
|
|
56377
|
-
|
|
56378
|
-
|
|
56379
|
-
|
|
56356
|
+
if (tmp0_subject instanceof RTCHangupEvent) {
|
|
56357
|
+
var id_0 = action.p1d_1.d23_1.f1y_1.m2j_1;
|
|
56358
|
+
var tmp3_safe_receiver = id_0;
|
|
56359
|
+
var tmp_4;
|
|
56360
|
+
if (tmp3_safe_receiver == null) {
|
|
56361
|
+
tmp_4 = null;
|
|
56362
|
+
} else {
|
|
56363
|
+
var tmp$ret$3;
|
|
56364
|
+
// Inline function 'kotlin.let' call
|
|
56365
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56366
|
+
var tmp$ret$2;
|
|
56367
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56368
|
+
tmp$ret$2 = state.c32(action.p1d_1, tmp3_safe_receiver);
|
|
56369
|
+
tmp$ret$3 = tmp$ret$2;
|
|
56370
|
+
tmp_4 = tmp$ret$3;
|
|
56371
|
+
}
|
|
56372
|
+
tmp = tmp_4;
|
|
56380
56373
|
} else {
|
|
56381
|
-
if (
|
|
56382
|
-
var
|
|
56383
|
-
|
|
56384
|
-
|
|
56385
|
-
|
|
56386
|
-
|
|
56387
|
-
|
|
56388
|
-
|
|
56389
|
-
|
|
56390
|
-
|
|
56374
|
+
if (tmp0_subject instanceof InviteCleanup) {
|
|
56375
|
+
var tmp$ret$5;
|
|
56376
|
+
// Inline function 'kotlin.let' call
|
|
56377
|
+
state.i33(action.p1d_1, action.p1d_1.g2s_1);
|
|
56378
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
56379
|
+
var tmp$ret$4;
|
|
56380
|
+
// Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
|
|
56381
|
+
tmp$ret$4 = null;
|
|
56382
|
+
tmp$ret$5 = tmp$ret$4;
|
|
56383
|
+
tmp = tmp$ret$5;
|
|
56384
|
+
} else {
|
|
56385
|
+
if (isInterface(tmp0_subject, ApiRequest)) {
|
|
56386
|
+
var tmp4_elvis_lhs = action.q1d_1.n1d_1;
|
|
56387
|
+
var callId = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
|
|
56388
|
+
var tmp5_subject = action.p1d_1;
|
|
56389
|
+
var tmp_5;
|
|
56390
|
+
if (tmp5_subject instanceof MemberKickRequest) {
|
|
56391
|
+
tmp_5 = state.z31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
56391
56392
|
} else {
|
|
56392
|
-
|
|
56393
|
+
if (tmp5_subject instanceof MemberJoinRequest) {
|
|
56394
|
+
tmp_5 = state.y31(action.p1d_1, callId, action.q1d_1.m1d_1);
|
|
56395
|
+
} else {
|
|
56396
|
+
tmp_5 = null;
|
|
56397
|
+
}
|
|
56393
56398
|
}
|
|
56399
|
+
tmp = tmp_5;
|
|
56400
|
+
} else {
|
|
56401
|
+
tmp = null;
|
|
56394
56402
|
}
|
|
56395
|
-
tmp = tmp_5;
|
|
56396
|
-
} else {
|
|
56397
|
-
tmp = null;
|
|
56398
56403
|
}
|
|
56399
56404
|
}
|
|
56400
56405
|
}
|
|
@@ -56508,6 +56513,22 @@
|
|
|
56508
56513
|
return Unit_getInstance();
|
|
56509
56514
|
};
|
|
56510
56515
|
}
|
|
56516
|
+
function InviteState$update$lambda_6($action) {
|
|
56517
|
+
return function ($this$modify) {
|
|
56518
|
+
var tmp_0;
|
|
56519
|
+
var tmp_1 = $this$modify.c2q_1;
|
|
56520
|
+
if (tmp_1 instanceof Pending) {
|
|
56521
|
+
tmp_0 = $this$modify.c2q_1.k2q() === $action.s1d_1;
|
|
56522
|
+
} else {
|
|
56523
|
+
tmp_0 = false;
|
|
56524
|
+
}
|
|
56525
|
+
if (tmp_0) {
|
|
56526
|
+
$this$modify.c2q_1 = toFailed($this$modify.c2q_1, $action.r1d_1);
|
|
56527
|
+
Unit_getInstance();
|
|
56528
|
+
}
|
|
56529
|
+
return Unit_getInstance();
|
|
56530
|
+
};
|
|
56531
|
+
}
|
|
56511
56532
|
function InviteState(invites, currentUserId) {
|
|
56512
56533
|
this.l2q_1 = invites;
|
|
56513
56534
|
this.m2q_1 = currentUserId;
|
|
@@ -56571,6 +56592,9 @@
|
|
|
56571
56592
|
tmp$ret$0 = this;
|
|
56572
56593
|
return tmp$ret$0;
|
|
56573
56594
|
};
|
|
56595
|
+
InviteState.prototype.s32 = function (action, callId) {
|
|
56596
|
+
return modify(this, callId, InviteState$update$lambda_6(action));
|
|
56597
|
+
};
|
|
56574
56598
|
InviteState.prototype.l33 = function (invites, currentUserId) {
|
|
56575
56599
|
return new InviteState(invites, currentUserId);
|
|
56576
56600
|
};
|