@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.
@@ -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 SessionSuccessEvent) {
56299
- tmp = state.y30(action.p1d_1);
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 MemberInvitedEvent) {
56302
- var tmp_0;
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 PushMemberInvitedEvent) {
56311
- var tmp_1;
56312
- if (!(action.p1d_1.w23_1.b1z_1.m2j_1 == null)) {
56313
- tmp_1 = state.j33(action.p1d_1);
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
- tmp_1 = null;
56310
+ tmp_0 = null;
56316
56311
  }
56317
- tmp = tmp_1;
56312
+ tmp = tmp_0;
56318
56313
  } else {
56319
- if (tmp0_subject instanceof MemberJoinedEvent) {
56320
- var tmp_2;
56321
- if (!(action.p1d_1.h1z_1.r1z_1.m2j_1 == null)) {
56322
- tmp_2 = state.o30(action.p1d_1);
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
- tmp_2 = null;
56319
+ tmp_1 = null;
56325
56320
  }
56326
- tmp = tmp_2;
56321
+ tmp = tmp_1;
56327
56322
  } else {
56328
- if (tmp0_subject instanceof MemberLeftEvent) {
56329
- var id = action.p1d_1.v1z_1.g20_1.m2j_1;
56330
- var tmp1_safe_receiver = id;
56331
- var tmp_3;
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
- var tmp$ret$1;
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 = tmp_3;
56330
+ tmp = tmp_2;
56345
56331
  } else {
56346
- if (tmp0_subject instanceof RTCHangupEvent) {
56347
- var id_0 = action.p1d_1.d23_1.f1y_1.m2j_1;
56348
- var tmp2_safe_receiver = id_0;
56349
- var tmp_4;
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
- tmp_4 = null;
56337
+ tmp_3 = null;
56352
56338
  } else {
56353
- var tmp$ret$3;
56339
+ var tmp$ret$1;
56354
56340
  // Inline function 'kotlin.let' call
56355
56341
  // Inline function 'kotlin.contracts.contract' call
56356
- var tmp$ret$2;
56342
+ var tmp$ret$0;
56357
56343
  // Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
56358
- tmp$ret$2 = state.c32(action.p1d_1, tmp2_safe_receiver);
56359
- tmp$ret$3 = tmp$ret$2;
56360
- tmp_4 = tmp$ret$3;
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 = tmp_4;
56348
+ tmp = tmp_3;
56363
56349
  } else {
56364
- if (tmp0_subject instanceof InviteCleanup) {
56365
- var tmp$ret$5;
56366
- // Inline function 'kotlin.let' call
56367
- state.i33(action.p1d_1, action.p1d_1.g2s_1);
56368
- // Inline function 'kotlin.contracts.contract' call
56369
- var tmp$ret$4;
56370
- // Inline function 'com.vonage.clientcore.core.reducers.call.InviteReducer.reduce.<anonymous>' call
56371
- tmp$ret$4 = null;
56372
- tmp$ret$5 = tmp$ret$4;
56373
- tmp = tmp$ret$5;
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 (isInterface(tmp0_subject, ApiRequest)) {
56376
- var tmp3_elvis_lhs = action.q1d_1.n1d_1;
56377
- var callId = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
56378
- var tmp4_subject = action.p1d_1;
56379
- var tmp_5;
56380
- if (tmp4_subject instanceof MemberKickRequest) {
56381
- tmp_5 = state.z31(action.p1d_1, callId, action.q1d_1.m1d_1);
56382
- } else {
56383
- if (tmp4_subject instanceof MemberJoinRequest) {
56384
- tmp_5 = state.y31(action.p1d_1, callId, action.q1d_1.m1d_1);
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
- tmp_5 = null;
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/client-sdk",
3
- "version": "1.0.1-alpha.3",
3
+ "version": "1.0.1-alpha.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "dist/client/index.mjs",