@solibo/solibo-sdk 1.26.4 → 1.26.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,8 +119,8 @@ import {
119
119
  filterNotNull3qfgcwmxhwfxe as filterNotNull,
120
120
  Companion_getInstance2o9uk4k3kfl5 as Companion_getInstance_0,
121
121
  KtList3hktaavzmj137 as KtList,
122
- emptyList1g2z5xcrvp2zy as emptyList,
123
122
  until1jbpn0z3f8lbg as until,
123
+ emptyList1g2z5xcrvp2zy as emptyList,
124
124
  listOfNotNull2woi2boe01ub4 as listOfNotNull_0,
125
125
  minus27abgkurcn6u0 as minus,
126
126
  emptySetcxexqki71qfa as emptySet,
@@ -253,14 +253,14 @@ import {
253
253
  FinalizeNewsletterDocumentCreateCommand38d3er5t7h91u as FinalizeNewsletterDocumentCreateCommand,
254
254
  FinalizeNewsletterDocumentUpdateCommand32oa4os7akyhp as FinalizeNewsletterDocumentUpdateCommand,
255
255
  FinalizeConversationMessageDocumentCommand3hs3h5lqv35jp as FinalizeConversationMessageDocumentCommand,
256
+ FinalizeConversationDocumentCreateCommand26xy2o92n12c7 as FinalizeConversationDocumentCreateCommand,
257
+ FinalizeConversationDocumentUpdateCommand3o4sbsc1413k2 as FinalizeConversationDocumentUpdateCommand,
256
258
  FinalizeNeighborhoodGroupDocumentCreateCommand1l2rsjmwh5kym as FinalizeNeighborhoodGroupDocumentCreateCommand,
257
259
  FinalizeNeighborhoodGroupDocumentUpdateCommand3ft5pngz2w4q5 as FinalizeNeighborhoodGroupDocumentUpdateCommand,
258
260
  FinalizeNeighborhoodPostDocumentCreateCommand1mgl7pd238rn0 as FinalizeNeighborhoodPostDocumentCreateCommand,
259
261
  FinalizeNeighborhoodPostDocumentUpdateCommand1uskqeheggwco as FinalizeNeighborhoodPostDocumentUpdateCommand,
260
262
  FinalizeCommunicationCommentDocumentCreateCommand2sl6pdgcuhh0n as FinalizeCommunicationCommentDocumentCreateCommand,
261
263
  FinalizeCommunicationCommentDocumentUpdateCommand1wu121adejl9m as FinalizeCommunicationCommentDocumentUpdateCommand,
262
- DocumentType_CONVERSATION_getInstance4g0365yu1t9c as DocumentType_CONVERSATION_getInstance,
263
- CreateDocumentReferenceCommandisz1d3w4w5b as CreateDocumentReferenceCommand,
264
264
  SectionInIssue1yrpcfolggw6b as SectionInIssue,
265
265
  IssueDetails2gzmci55nbdgd as IssueDetails,
266
266
  Meetingi1ieobusysj9 as Meeting,
@@ -874,7 +874,6 @@ initMetadataForClass(CreateConversationWithDocumentsResult, 'CreateConversationW
874
874
  initMetadataForClass(CreateConversationDocumentUploadException, 'CreateConversationDocumentUploadException', VOID, Exception);
875
875
  initMetadataForClass(IntegratedDocumentMutationException, 'IntegratedDocumentMutationException', VOID, Exception);
876
876
  initMetadataForClass(IntegratedDocumentMutationCancellationException, 'IntegratedDocumentMutationCancellationException', VOID, CancellationException);
877
- initMetadataForLambda(IntegratedDocumentMutation$createConversation$slambda$slambda, CoroutineImpl, VOID, [1]);
878
877
  initMetadataForLambda(IntegratedDocumentMutation$prepareDocuments$slambda$slambda$slambda, CoroutineImpl, VOID, [1]);
879
878
  initMetadataForLambda(IntegratedDocumentMutation$prepareDocuments$slambda$slambda$slambda_1, CoroutineImpl, VOID, [1]);
880
879
  initMetadataForLambda(IntegratedDocumentMutation$prepareDocuments$slambda$slambda, CoroutineImpl, VOID, [1]);
@@ -889,7 +888,8 @@ initMetadataForLambda(IntegratedDocumentMutation$updatePracticalInformation$slam
889
888
  initMetadataForLambda(IntegratedDocumentMutation$createNewsletter$slambda, CoroutineImpl, VOID, [2]);
890
889
  initMetadataForLambda(IntegratedDocumentMutation$updateNewsletter$slambda, CoroutineImpl, VOID, [2]);
891
890
  initMetadataForLambda(IntegratedDocumentMutation$createConversationMessage$slambda, CoroutineImpl, VOID, [2]);
892
- initMetadataForLambda(IntegratedDocumentMutation$createConversation$slambda, CoroutineImpl, VOID, [1]);
891
+ initMetadataForLambda(IntegratedDocumentMutation$createConversation$slambda, CoroutineImpl, VOID, [2]);
892
+ initMetadataForLambda(IntegratedDocumentMutation$updateConversation$slambda, CoroutineImpl, VOID, [2]);
893
893
  initMetadataForLambda(IntegratedDocumentMutation$createNeighborhoodGroup$slambda, CoroutineImpl, VOID, [2]);
894
894
  initMetadataForLambda(IntegratedDocumentMutation$updateNeighborhoodGroup$slambda, CoroutineImpl, VOID, [2]);
895
895
  initMetadataForLambda(IntegratedDocumentMutation$createNeighborhoodPost$slambda, CoroutineImpl, VOID, [2]);
@@ -909,6 +909,8 @@ initMetadataForCoroutine($updateNewsletter$suspendBridgeCOROUTINE$, CoroutineImp
909
909
  initMetadataForCoroutine($createConversationMessage$suspendBridgeCOROUTINE$, CoroutineImpl);
910
910
  initMetadataForCoroutine($createConversationCOROUTINE$, CoroutineImpl);
911
911
  initMetadataForCoroutine($createConversation$suspendBridgeCOROUTINE$, CoroutineImpl);
912
+ initMetadataForCoroutine($createConversation$suspendBridgeCOROUTINE$_0, CoroutineImpl);
913
+ initMetadataForCoroutine($updateConversation$suspendBridgeCOROUTINE$, CoroutineImpl);
912
914
  initMetadataForCoroutine($createNeighborhoodGroup$suspendBridgeCOROUTINE$, CoroutineImpl);
913
915
  initMetadataForCoroutine($updateNeighborhoodGroup$suspendBridgeCOROUTINE$, CoroutineImpl);
914
916
  initMetadataForCoroutine($createNeighborhoodPost$suspendBridgeCOROUTINE$, CoroutineImpl);
@@ -917,7 +919,6 @@ initMetadataForCoroutine($createHomepagePostComment$suspendBridgeCOROUTINE$, Cor
917
919
  initMetadataForCoroutine($updateHomepagePostComment$suspendBridgeCOROUTINE$, CoroutineImpl);
918
920
  initMetadataForCoroutine($createNeighborhoodPostComment$suspendBridgeCOROUTINE$, CoroutineImpl);
919
921
  initMetadataForCoroutine($updateNeighborhoodPostComment$suspendBridgeCOROUTINE$, CoroutineImpl);
920
- initMetadataForCoroutine($createConversationAttachmentCOROUTINE$, CoroutineImpl);
921
922
  initMetadataForCoroutine($executeCOROUTINE$, CoroutineImpl);
922
923
  initMetadataForCoroutine($requireSuccessfulBodyCOROUTINE$, CoroutineImpl);
923
924
  initMetadataForClass(IntegratedDocumentMutation, 'IntegratedDocumentMutation', VOID, VOID, VOID, [8, 11, 6, 7, 4, 5, 10, 9, 2, 1]);
@@ -930,7 +931,6 @@ initMetadataForClass(InlineDocumentLinkOptions, 'InlineDocumentLinkOptions', Inl
930
931
  initMetadataForClass(RequestedDocument, 'RequestedDocument');
931
932
  initMetadataForClass(PreparedDocuments, 'PreparedDocuments');
932
933
  initMetadataForClass(FinalizationRejected, 'FinalizationRejected', VOID, Exception);
933
- initMetadataForClass(ConversationAttachmentOutcome, 'ConversationAttachmentOutcome');
934
934
  initMetadataForCoroutine($findCOROUTINE$, CoroutineImpl);
935
935
  initMetadataForCoroutine($findAllCOROUTINE$, CoroutineImpl);
936
936
  initMetadataForClass(InvalidatingCacheStorage, 'InvalidatingCacheStorage', VOID, VOID, VOID, [2, 1, 0]);
@@ -7927,8 +7927,8 @@ function HomeApi$clientConfigurator$lambda$lambda_11(this$0, $platformName) {
7927
7927
  }
7928
7928
  accept($this$defaultRequest, Application_getInstance().Json_1);
7929
7929
  header($this$defaultRequest, 'Accept-Language', buildAcceptLanguage(this$0.userLanguage));
7930
- header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.26.4 (' + $platformName + ')');
7931
- header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.26.4');
7930
+ header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.26.5 (' + $platformName + ')');
7931
+ header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.26.5');
7932
7932
  return Unit_instance;
7933
7933
  };
7934
7934
  }
@@ -11441,95 +11441,6 @@ protoOf(IntegratedDocumentMutationCancellationException).get_rollbackFailures_pq
11441
11441
  protoOf(IntegratedDocumentMutationCancellationException).get_message_h23axq_k$ = function () {
11442
11442
  return this.message_1;
11443
11443
  };
11444
- function IntegratedDocumentMutation$createConversation$slambda$slambda($attachment, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation) {
11445
- this.$attachment_1 = $attachment;
11446
- this.this$0__1 = this$0;
11447
- this.$companyId_1 = $companyId;
11448
- this.$conversation_1 = $conversation;
11449
- this.$uploadGroupId_1 = $uploadGroupId;
11450
- this.$onUploadProgress_1 = $onUploadProgress;
11451
- CoroutineImpl.call(this, resultContinuation);
11452
- }
11453
- protoOf(IntegratedDocumentMutation$createConversation$slambda$slambda).invoke_koc23e_k$ = function ($this$async, $completion) {
11454
- var tmp = this.create_rcuf4x_k$($this$async, $completion);
11455
- tmp.result_1 = Unit_instance;
11456
- tmp.exception_1 = null;
11457
- return tmp.doResume_5yljmg_k$();
11458
- };
11459
- protoOf(IntegratedDocumentMutation$createConversation$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
11460
- return this.invoke_koc23e_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
11461
- };
11462
- protoOf(IntegratedDocumentMutation$createConversation$slambda$slambda).doResume_5yljmg_k$ = function () {
11463
- var suspendResult = this.result_1;
11464
- $sm: do
11465
- try {
11466
- var tmp = this.state_1;
11467
- switch (tmp) {
11468
- case 0:
11469
- this.exceptionState_1 = 3;
11470
- this.exceptionState_1 = 2;
11471
- this.ARGUMENT1__1 = description(this.$attachment_1);
11472
- this.state_1 = 1;
11473
- suspendResult = createConversationAttachment(this.this$0__1, this.$companyId_1, this.$conversation_1.id, this.$uploadGroupId_1, this.$attachment_1, this.$onUploadProgress_1, this);
11474
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
11475
- return suspendResult;
11476
- }
11477
-
11478
- continue $sm;
11479
- case 1:
11480
- var ARGUMENT = suspendResult;
11481
- this.TRY_RESULT0__1 = new ConversationAttachmentOutcome(this.ARGUMENT1__1, ARGUMENT);
11482
- this.exceptionState_1 = 3;
11483
- this.state_1 = 4;
11484
- continue $sm;
11485
- case 2:
11486
- this.exceptionState_1 = 3;
11487
- var tmp_0 = this.exception_1;
11488
- if (tmp_0 instanceof CancellationException) {
11489
- var cancellation = this.exception_1;
11490
- var tmp_1 = this;
11491
- throw cancellation;
11492
- } else {
11493
- var tmp_2 = this.exception_1;
11494
- if (tmp_2 instanceof Error) {
11495
- var failure = this.exception_1;
11496
- var tmp_3 = this;
11497
- tmp_3.TRY_RESULT0__1 = new ConversationAttachmentOutcome(description(this.$attachment_1), VOID, failure);
11498
- this.state_1 = 4;
11499
- continue $sm;
11500
- } else {
11501
- throw this.exception_1;
11502
- }
11503
- }
11504
-
11505
- case 3:
11506
- throw this.exception_1;
11507
- case 4:
11508
- this.exceptionState_1 = 3;
11509
- return this.TRY_RESULT0__1;
11510
- }
11511
- } catch ($p) {
11512
- var e = $p;
11513
- if (this.exceptionState_1 === 3) {
11514
- throw e;
11515
- } else {
11516
- this.state_1 = this.exceptionState_1;
11517
- this.exception_1 = e;
11518
- }
11519
- }
11520
- while (true);
11521
- };
11522
- protoOf(IntegratedDocumentMutation$createConversation$slambda$slambda).create_rcuf4x_k$ = function ($this$async, completion) {
11523
- var i = new IntegratedDocumentMutation$createConversation$slambda$slambda(this.$attachment_1, this.this$0__1, this.$companyId_1, this.$conversation_1, this.$uploadGroupId_1, this.$onUploadProgress_1, completion);
11524
- i.$this$async_1 = $this$async;
11525
- return i;
11526
- };
11527
- function IntegratedDocumentMutation$createConversation$slambda$slambda_0($attachment, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation) {
11528
- var i = new IntegratedDocumentMutation$createConversation$slambda$slambda($attachment, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation);
11529
- return constructCallableReference(function ($this$async, $completion) {
11530
- return i.invoke_koc23e_k$($this$async, $completion);
11531
- }, 1);
11532
- }
11533
11444
  function IntegratedDocumentMutation$prepareDocuments$slambda$slambda$lambda($onUploadProgress, $upload) {
11534
11445
  return function (progress) {
11535
11446
  var tmp0_safe_receiver = $onUploadProgress;
@@ -12135,12 +12046,6 @@ function createComment($this, companyId, attachments, inlineDocuments, idempoten
12135
12046
  function updateComment($this, companyId, attachments, inlineDocuments, idempotencyKey, onUploadProgress, finalize, $completion) {
12136
12047
  return execute($this, companyId, idempotencyKey, requestedDocuments($this, null, attachments, inlineDocuments), onUploadProgress, finalize, $completion);
12137
12048
  }
12138
- function createConversationAttachment($this, companyId, conversationId, uploadGroupId, attachment, onUploadProgress, $completion) {
12139
- var tmp = new $createConversationAttachmentCOROUTINE$($this, companyId, conversationId, uploadGroupId, attachment, onUploadProgress, $completion);
12140
- tmp.result_1 = Unit_instance;
12141
- tmp.exception_1 = null;
12142
- return tmp.doResume_5yljmg_k$();
12143
- }
12144
12049
  function execute($this, companyId, idempotencyKey, requestedDocuments, onUploadProgress, finalize, $completion) {
12145
12050
  var tmp = new $executeCOROUTINE$($this, companyId, idempotencyKey, requestedDocuments, onUploadProgress, finalize, $completion);
12146
12051
  tmp.result_1 = Unit_instance;
@@ -12655,23 +12560,21 @@ function IntegratedDocumentMutation$createConversationMessage$slambda_0(this$0,
12655
12560
  return i.invoke_kzla5a_k$(prepared, resolvedIdempotencyKey, $completion);
12656
12561
  }, 2);
12657
12562
  }
12658
- function IntegratedDocumentMutation$createConversation$slambda($attachments, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation) {
12659
- this.$attachments_1 = $attachments;
12563
+ function IntegratedDocumentMutation$createConversation$slambda(this$0, $companyId, $command, resultContinuation) {
12660
12564
  this.this$0__1 = this$0;
12661
12565
  this.$companyId_1 = $companyId;
12662
- this.$conversation_1 = $conversation;
12663
- this.$uploadGroupId_1 = $uploadGroupId;
12664
- this.$onUploadProgress_1 = $onUploadProgress;
12566
+ this.$command_1 = $command;
12665
12567
  CoroutineImpl.call(this, resultContinuation);
12666
12568
  }
12667
- protoOf(IntegratedDocumentMutation$createConversation$slambda).invoke_h0hcl8_k$ = function ($this$supervisorScope, $completion) {
12668
- var tmp = this.create_rcuf4x_k$($this$supervisorScope, $completion);
12569
+ protoOf(IntegratedDocumentMutation$createConversation$slambda).invoke_e52jmm_k$ = function (prepared, resolvedIdempotencyKey, $completion) {
12570
+ var tmp = this.create_qonpi6_k$(prepared, resolvedIdempotencyKey, $completion);
12669
12571
  tmp.result_1 = Unit_instance;
12670
12572
  tmp.exception_1 = null;
12671
12573
  return tmp.doResume_5yljmg_k$();
12672
12574
  };
12673
- protoOf(IntegratedDocumentMutation$createConversation$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
12674
- return this.invoke_h0hcl8_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
12575
+ protoOf(IntegratedDocumentMutation$createConversation$slambda).invoke_4tzzq6_k$ = function (p1, p2, $completion) {
12576
+ var tmp = (!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE();
12577
+ return this.invoke_e52jmm_k$(tmp, (!(p2 == null) ? typeof p2 === 'string' : false) ? p2 : THROW_CCE(), $completion);
12675
12578
  };
12676
12579
  protoOf(IntegratedDocumentMutation$createConversation$slambda).doResume_5yljmg_k$ = function () {
12677
12580
  var suspendResult = this.result_1;
@@ -12682,15 +12585,68 @@ protoOf(IntegratedDocumentMutation$createConversation$slambda).doResume_5yljmg_k
12682
12585
  case 0:
12683
12586
  this.exceptionState_1 = 2;
12684
12587
  this.state_1 = 1;
12685
- var this_0 = this.$attachments_1;
12686
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
12687
- var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
12688
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
12689
- var item = _iterator__ex2g4s.next_20eer_k$();
12690
- destination.add_utx5q5_k$(async(this.$this$supervisorScope_1, VOID, VOID, IntegratedDocumentMutation$createConversation$slambda$slambda_0(item, this.this$0__1, this.$companyId_1, this.$conversation_1, this.$uploadGroupId_1, this.$onUploadProgress_1, null)));
12588
+ suspendResult = this.this$0__1.conversations_1.finalizeIntegratedConversationCreate$suspendBridge_a963be_k$(this.$companyId_1, new FinalizeConversationDocumentCreateCommand(this.$command_1, this.prepared_1, this.resolvedIdempotencyKey_1), this);
12589
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
12590
+ return suspendResult;
12691
12591
  }
12692
12592
 
12693
- suspendResult = awaitAll(destination, this);
12593
+ continue $sm;
12594
+ case 1:
12595
+ return suspendResult;
12596
+ case 2:
12597
+ throw this.exception_1;
12598
+ }
12599
+ } catch ($p) {
12600
+ var e = $p;
12601
+ if (this.exceptionState_1 === 2) {
12602
+ throw e;
12603
+ } else {
12604
+ this.state_1 = this.exceptionState_1;
12605
+ this.exception_1 = e;
12606
+ }
12607
+ }
12608
+ while (true);
12609
+ };
12610
+ protoOf(IntegratedDocumentMutation$createConversation$slambda).create_qonpi6_k$ = function (prepared, resolvedIdempotencyKey, completion) {
12611
+ var i = new IntegratedDocumentMutation$createConversation$slambda(this.this$0__1, this.$companyId_1, this.$command_1, completion);
12612
+ i.prepared_1 = prepared;
12613
+ i.resolvedIdempotencyKey_1 = resolvedIdempotencyKey;
12614
+ return i;
12615
+ };
12616
+ function IntegratedDocumentMutation$createConversation$slambda_0(this$0, $companyId, $command, resultContinuation) {
12617
+ var i = new IntegratedDocumentMutation$createConversation$slambda(this$0, $companyId, $command, resultContinuation);
12618
+ return constructCallableReference(function (prepared, resolvedIdempotencyKey, $completion) {
12619
+ return i.invoke_e52jmm_k$(prepared, resolvedIdempotencyKey, $completion);
12620
+ }, 2);
12621
+ }
12622
+ function IntegratedDocumentMutation$updateConversation$slambda(this$0, $companyId, $conversationId, $command, $removeDocumentIds, resultContinuation) {
12623
+ this.this$0__1 = this$0;
12624
+ this.$companyId_1 = $companyId;
12625
+ this.$conversationId_1 = $conversationId;
12626
+ this.$command_1 = $command;
12627
+ this.$removeDocumentIds_1 = $removeDocumentIds;
12628
+ CoroutineImpl.call(this, resultContinuation);
12629
+ }
12630
+ protoOf(IntegratedDocumentMutation$updateConversation$slambda).invoke_e52jmm_k$ = function (prepared, resolvedIdempotencyKey, $completion) {
12631
+ var tmp = this.create_qonpi6_k$(prepared, resolvedIdempotencyKey, $completion);
12632
+ tmp.result_1 = Unit_instance;
12633
+ tmp.exception_1 = null;
12634
+ return tmp.doResume_5yljmg_k$();
12635
+ };
12636
+ protoOf(IntegratedDocumentMutation$updateConversation$slambda).invoke_4tzzq6_k$ = function (p1, p2, $completion) {
12637
+ var tmp = (!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE();
12638
+ return this.invoke_e52jmm_k$(tmp, (!(p2 == null) ? typeof p2 === 'string' : false) ? p2 : THROW_CCE(), $completion);
12639
+ };
12640
+ protoOf(IntegratedDocumentMutation$updateConversation$slambda).doResume_5yljmg_k$ = function () {
12641
+ var suspendResult = this.result_1;
12642
+ $sm: do
12643
+ try {
12644
+ var tmp = this.state_1;
12645
+ switch (tmp) {
12646
+ case 0:
12647
+ this.exceptionState_1 = 2;
12648
+ this.state_1 = 1;
12649
+ suspendResult = this.this$0__1.conversations_1.finalizeIntegratedConversationUpdate$suspendBridge_rvmub6_k$(this.$companyId_1, this.$conversationId_1, new FinalizeConversationDocumentUpdateCommand(this.$command_1, this.prepared_1, this.resolvedIdempotencyKey_1, this.$removeDocumentIds_1), this);
12694
12650
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
12695
12651
  return suspendResult;
12696
12652
  }
@@ -12712,21 +12668,17 @@ protoOf(IntegratedDocumentMutation$createConversation$slambda).doResume_5yljmg_k
12712
12668
  }
12713
12669
  while (true);
12714
12670
  };
12715
- protoOf(IntegratedDocumentMutation$createConversation$slambda).create_rcuf4x_k$ = function ($this$supervisorScope, completion) {
12716
- var i = new IntegratedDocumentMutation$createConversation$slambda(this.$attachments_1, this.this$0__1, this.$companyId_1, this.$conversation_1, this.$uploadGroupId_1, this.$onUploadProgress_1, completion);
12717
- i.$this$supervisorScope_1 = $this$supervisorScope;
12671
+ protoOf(IntegratedDocumentMutation$updateConversation$slambda).create_qonpi6_k$ = function (prepared, resolvedIdempotencyKey, completion) {
12672
+ var i = new IntegratedDocumentMutation$updateConversation$slambda(this.this$0__1, this.$companyId_1, this.$conversationId_1, this.$command_1, this.$removeDocumentIds_1, completion);
12673
+ i.prepared_1 = prepared;
12674
+ i.resolvedIdempotencyKey_1 = resolvedIdempotencyKey;
12718
12675
  return i;
12719
12676
  };
12720
- function IntegratedDocumentMutation$createConversation$slambda_0($attachments, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation) {
12721
- var i = new IntegratedDocumentMutation$createConversation$slambda($attachments, this$0, $companyId, $conversation, $uploadGroupId, $onUploadProgress, resultContinuation);
12722
- return constructCallableReference(function ($this$supervisorScope, $completion) {
12723
- return i.invoke_h0hcl8_k$($this$supervisorScope, $completion);
12724
- }, 1);
12725
- }
12726
- function IntegratedDocumentMutation$createConversation$lambda(outcome) {
12727
- var tmp0_safe_receiver = outcome.failure_1;
12728
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.message;
12729
- return outcome.attachment_1 + ': ' + (tmp1_elvis_lhs == null ? 'Unknown error' : tmp1_elvis_lhs);
12677
+ function IntegratedDocumentMutation$updateConversation$slambda_0(this$0, $companyId, $conversationId, $command, $removeDocumentIds, resultContinuation) {
12678
+ var i = new IntegratedDocumentMutation$updateConversation$slambda(this$0, $companyId, $conversationId, $command, $removeDocumentIds, resultContinuation);
12679
+ return constructCallableReference(function (prepared, resolvedIdempotencyKey, $completion) {
12680
+ return i.invoke_e52jmm_k$(prepared, resolvedIdempotencyKey, $completion);
12681
+ }, 2);
12730
12682
  }
12731
12683
  function IntegratedDocumentMutation$createNeighborhoodGroup$slambda(this$0, $companyId, $command, resultContinuation) {
12732
12684
  this.this$0__1 = this$0;
@@ -13215,16 +13167,6 @@ function IntegratedDocumentMutation$updateNeighborhoodPostComment$slambda_0(this
13215
13167
  return i.invoke_qtxnuw_k$(prepared, resolvedIdempotencyKey, $completion);
13216
13168
  }, 2);
13217
13169
  }
13218
- function IntegratedDocumentMutation$createConversationAttachment$lambda($onUploadProgress, $upload) {
13219
- return function (progress) {
13220
- var tmp0_safe_receiver = $onUploadProgress;
13221
- if (tmp0_safe_receiver == null)
13222
- null;
13223
- else
13224
- tmp0_safe_receiver(new IntegratedDocumentUploadProgress($upload.fileName, progress.loaded, progress.total, progress.fraction));
13225
- return Unit_instance;
13226
- };
13227
- }
13228
13170
  function IntegratedDocumentMutation$prepareDocuments$slambda($requestedDocuments, $idempotencyKey, this$0, $companyId, $onUploadProgress, resultContinuation) {
13229
13171
  this.$requestedDocuments_1 = $requestedDocuments;
13230
13172
  this.$idempotencyKey_1 = $idempotencyKey;
@@ -13934,13 +13876,15 @@ protoOf($createConversationMessage$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
13934
13876
  }
13935
13877
  while (true);
13936
13878
  };
13937
- function $createConversationCOROUTINE$(_this__u8e3s4, companyId, command, attachments, onUploadProgress, resultContinuation) {
13879
+ function $createConversationCOROUTINE$(_this__u8e3s4, companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, resultContinuation) {
13938
13880
  CoroutineImpl.call(this, resultContinuation);
13939
13881
  this._this__u8e3s4__1 = _this__u8e3s4;
13940
13882
  this.companyId_1 = companyId;
13941
13883
  this.command_1 = command;
13942
13884
  this.attachments_1 = attachments;
13943
13885
  this.onUploadProgress_1 = onUploadProgress;
13886
+ this.inlineDocuments_1 = inlineDocuments;
13887
+ this.idempotencyKey_1 = idempotencyKey;
13944
13888
  }
13945
13889
  protoOf($createConversationCOROUTINE$).doResume_5yljmg_k$ = function () {
13946
13890
  var suspendResult = this.result_1;
@@ -13949,87 +13893,132 @@ protoOf($createConversationCOROUTINE$).doResume_5yljmg_k$ = function () {
13949
13893
  var tmp = this.state_1;
13950
13894
  switch (tmp) {
13951
13895
  case 0:
13952
- this.exceptionState_1 = 4;
13896
+ this.exceptionState_1 = 2;
13953
13897
  this.state_1 = 1;
13954
- suspendResult = this._this__u8e3s4__1.conversations_1.createConversation$suspendBridge_pt7swp_k$(this.companyId_1, this.command_1, this);
13898
+ var tmp_0 = requestedDocuments(this._this__u8e3s4__1, null, this.attachments_1, this.inlineDocuments_1);
13899
+ suspendResult = execute(this._this__u8e3s4__1, this.companyId_1, this.idempotencyKey_1, tmp_0, this.onUploadProgress_1, IntegratedDocumentMutation$createConversation$slambda_0(this._this__u8e3s4__1, this.companyId_1, this.command_1, null), this);
13955
13900
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
13956
13901
  return suspendResult;
13957
13902
  }
13958
13903
 
13959
13904
  continue $sm;
13960
13905
  case 1:
13961
- var ARGUMENT = suspendResult;
13962
- this.state_1 = 2;
13963
- suspendResult = requireSuccessfulBody(this._this__u8e3s4__1, ARGUMENT, this);
13964
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
13965
- return suspendResult;
13906
+ var result = suspendResult;
13907
+ return new CreateConversationWithDocumentsResult(result.resource, result.documents.documents);
13908
+ case 2:
13909
+ throw this.exception_1;
13910
+ }
13911
+ } catch ($p) {
13912
+ var e = $p;
13913
+ if (this.exceptionState_1 === 2) {
13914
+ throw e;
13915
+ } else {
13916
+ this.state_1 = this.exceptionState_1;
13917
+ this.exception_1 = e;
13918
+ }
13919
+ }
13920
+ while (true);
13921
+ };
13922
+ function $createConversation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, resultContinuation) {
13923
+ CoroutineImpl.call(this, resultContinuation);
13924
+ this._this__u8e3s4__1 = _this__u8e3s4;
13925
+ this.companyId_1 = companyId;
13926
+ this.command_1 = command;
13927
+ this.attachments_1 = attachments;
13928
+ this.onUploadProgress_1 = onUploadProgress;
13929
+ this.inlineDocuments_1 = inlineDocuments;
13930
+ this.idempotencyKey_1 = idempotencyKey;
13931
+ }
13932
+ protoOf($createConversation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
13933
+ var suspendResult = this.result_1;
13934
+ $sm: do
13935
+ try {
13936
+ var tmp = this.state_1;
13937
+ switch (tmp) {
13938
+ case 0:
13939
+ this.exceptionState_1 = 4;
13940
+ if (this._this__u8e3s4__1.createConversation === protoOf(IntegratedDocumentMutation).createConversation) {
13941
+ this.state_1 = 2;
13942
+ suspendResult = this._this__u8e3s4__1.createConversation$default_2orw32_k$(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1, this.inlineDocuments_1, this.idempotencyKey_1, this);
13943
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
13944
+ return suspendResult;
13945
+ }
13946
+ continue $sm;
13947
+ } else {
13948
+ this.state_1 = 1;
13949
+ suspendResult = await_0(this._this__u8e3s4__1.createConversation(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1, this.inlineDocuments_1, this.idempotencyKey_1), this);
13950
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
13951
+ return suspendResult;
13952
+ }
13953
+ continue $sm;
13966
13954
  }
13967
13955
 
13956
+ case 1:
13957
+ this.WHEN_RESULT0__1 = suspendResult;
13958
+ this.state_1 = 3;
13968
13959
  continue $sm;
13969
13960
  case 2:
13970
- this.conversation0__1 = suspendResult;
13971
- if (this.attachments_1.isEmpty_y1axqb_k$()) {
13972
- return new CreateConversationWithDocumentsResult(this.conversation0__1, emptyList());
13973
- }
13974
-
13975
- var uploadGroupId = Companion_getInstance_0().random_fimq0t_k$().toString();
13961
+ this.WHEN_RESULT0__1 = suspendResult;
13976
13962
  this.state_1 = 3;
13977
- suspendResult = supervisorScope(IntegratedDocumentMutation$createConversation$slambda_0(this.attachments_1, this._this__u8e3s4__1, this.companyId_1, this.conversation0__1, uploadGroupId, this.onUploadProgress_1, null), this);
13978
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
13979
- return suspendResult;
13980
- }
13981
-
13982
13963
  continue $sm;
13983
13964
  case 3:
13984
- var outcomes = suspendResult;
13985
- var destination = ArrayList_init_$Create$_0();
13986
- var _iterator__ex2g4s = outcomes.iterator_jk1svi_k$();
13987
- while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
13988
- var element = _iterator__ex2g4s.next_20eer_k$();
13989
- if (!(element.failure_1 == null)) {
13990
- destination.add_utx5q5_k$(element);
13991
- }
13992
- }
13993
-
13994
- var failures = destination;
13995
- if (!failures.isEmpty_y1axqb_k$()) {
13996
- var destination_0 = ArrayList_init_$Create$_0();
13997
- var _iterator__ex2g4s_0 = outcomes.iterator_jk1svi_k$();
13998
- while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
13999
- var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
14000
- var tmp0_safe_receiver = element_0.document_1;
14001
- var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
14002
- if (tmp0_safe_receiver_0 == null)
14003
- null;
14004
- else {
14005
- destination_0.add_utx5q5_k$(tmp0_safe_receiver_0);
14006
- }
14007
- }
14008
- var tmp_0 = copyToArray(destination_0);
14009
- var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(failures, 10));
14010
- var _iterator__ex2g4s_1 = failures.iterator_jk1svi_k$();
14011
- while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
14012
- var item = _iterator__ex2g4s_1.next_20eer_k$();
14013
- destination_1.add_utx5q5_k$(item.attachment_1);
13965
+ return this.WHEN_RESULT0__1;
13966
+ case 4:
13967
+ throw this.exception_1;
13968
+ }
13969
+ } catch ($p) {
13970
+ var e = $p;
13971
+ if (this.exceptionState_1 === 4) {
13972
+ throw e;
13973
+ } else {
13974
+ this.state_1 = this.exceptionState_1;
13975
+ this.exception_1 = e;
13976
+ }
13977
+ }
13978
+ while (true);
13979
+ };
13980
+ function $createConversation$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, command, attachments, onUploadProgress, resultContinuation) {
13981
+ CoroutineImpl.call(this, resultContinuation);
13982
+ this._this__u8e3s4__1 = _this__u8e3s4;
13983
+ this.companyId_1 = companyId;
13984
+ this.command_1 = command;
13985
+ this.attachments_1 = attachments;
13986
+ this.onUploadProgress_1 = onUploadProgress;
13987
+ }
13988
+ protoOf($createConversation$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
13989
+ var suspendResult = this.result_1;
13990
+ $sm: do
13991
+ try {
13992
+ var tmp = this.state_1;
13993
+ switch (tmp) {
13994
+ case 0:
13995
+ this.exceptionState_1 = 4;
13996
+ if (this._this__u8e3s4__1.createConversationWithUploadProgress === protoOf(IntegratedDocumentMutation).createConversationWithUploadProgress) {
13997
+ this.state_1 = 2;
13998
+ suspendResult = this._this__u8e3s4__1.createConversation$default_l0wvd1_k$(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1, this);
13999
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
14000
+ return suspendResult;
14014
14001
  }
14015
- var tmp_1 = copyToArray(destination_1);
14016
- var tmp_2 = 'Conversation ' + this.conversation0__1.id.toString() + ' was created, but ' + ('' + failures.get_size_woubt6_k$() + ' of ' + this.attachments_1.get_size_woubt6_k$() + ' attachments failed to upload: ');
14017
- throw new CreateConversationDocumentUploadException(this.conversation0__1.id, tmp_0, tmp_1, tmp_2 + joinToString(failures, VOID, VOID, VOID, VOID, VOID, IntegratedDocumentMutation$createConversation$lambda));
14018
- }
14019
-
14020
- var destination_2 = ArrayList_init_$Create$_0();
14021
- var _iterator__ex2g4s_2 = outcomes.iterator_jk1svi_k$();
14022
- while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
14023
- var element_1 = _iterator__ex2g4s_2.next_20eer_k$();
14024
- var tmp0_safe_receiver_1 = element_1.document_1;
14025
- if (tmp0_safe_receiver_1 == null)
14026
- null;
14027
- else {
14028
- destination_2.add_utx5q5_k$(tmp0_safe_receiver_1);
14002
+ continue $sm;
14003
+ } else {
14004
+ this.state_1 = 1;
14005
+ suspendResult = await_0(this._this__u8e3s4__1.createConversationWithUploadProgress(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1), this);
14006
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
14007
+ return suspendResult;
14029
14008
  }
14009
+ continue $sm;
14030
14010
  }
14031
14011
 
14032
- return new CreateConversationWithDocumentsResult(this.conversation0__1, destination_2);
14012
+ case 1:
14013
+ this.WHEN_RESULT0__1 = suspendResult;
14014
+ this.state_1 = 3;
14015
+ continue $sm;
14016
+ case 2:
14017
+ this.WHEN_RESULT0__1 = suspendResult;
14018
+ this.state_1 = 3;
14019
+ continue $sm;
14020
+ case 3:
14021
+ return this.WHEN_RESULT0__1;
14033
14022
  case 4:
14034
14023
  throw this.exception_1;
14035
14024
  }
@@ -14044,15 +14033,19 @@ protoOf($createConversationCOROUTINE$).doResume_5yljmg_k$ = function () {
14044
14033
  }
14045
14034
  while (true);
14046
14035
  };
14047
- function $createConversation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, command, attachments, onUploadProgress, resultContinuation) {
14036
+ function $updateConversation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, resultContinuation) {
14048
14037
  CoroutineImpl.call(this, resultContinuation);
14049
14038
  this._this__u8e3s4__1 = _this__u8e3s4;
14050
14039
  this.companyId_1 = companyId;
14040
+ this.conversationId_1 = conversationId;
14051
14041
  this.command_1 = command;
14052
14042
  this.attachments_1 = attachments;
14043
+ this.inlineDocuments_1 = inlineDocuments;
14044
+ this.removeDocumentIds_1 = removeDocumentIds;
14045
+ this.idempotencyKey_1 = idempotencyKey;
14053
14046
  this.onUploadProgress_1 = onUploadProgress;
14054
14047
  }
14055
- protoOf($createConversation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
14048
+ protoOf($updateConversation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
14056
14049
  var suspendResult = this.result_1;
14057
14050
  $sm: do
14058
14051
  try {
@@ -14060,16 +14053,16 @@ protoOf($createConversation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
14060
14053
  switch (tmp) {
14061
14054
  case 0:
14062
14055
  this.exceptionState_1 = 4;
14063
- if (this._this__u8e3s4__1.createConversation === protoOf(IntegratedDocumentMutation).createConversation) {
14056
+ if (this._this__u8e3s4__1.updateConversation === protoOf(IntegratedDocumentMutation).updateConversation) {
14064
14057
  this.state_1 = 2;
14065
- suspendResult = this._this__u8e3s4__1.createConversation$default_e72hpn_k$(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1, this);
14058
+ suspendResult = this._this__u8e3s4__1.updateConversation$default_xqvifx_k$(this.companyId_1, this.conversationId_1, this.command_1, this.attachments_1, this.inlineDocuments_1, this.removeDocumentIds_1, this.idempotencyKey_1, this.onUploadProgress_1, this);
14066
14059
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
14067
14060
  return suspendResult;
14068
14061
  }
14069
14062
  continue $sm;
14070
14063
  } else {
14071
14064
  this.state_1 = 1;
14072
- suspendResult = await_0(this._this__u8e3s4__1.createConversation(this.companyId_1, this.command_1, this.attachments_1, this.onUploadProgress_1), this);
14065
+ suspendResult = await_0(this._this__u8e3s4__1.updateConversation(this.companyId_1, this.conversationId_1, this.command_1, this.attachments_1, this.inlineDocuments_1, this.removeDocumentIds_1, this.idempotencyKey_1, this.onUploadProgress_1), this);
14073
14066
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
14074
14067
  return suspendResult;
14075
14068
  }
@@ -14579,86 +14572,6 @@ protoOf($updateNeighborhoodPostComment$suspendBridgeCOROUTINE$).doResume_5yljmg_
14579
14572
  }
14580
14573
  while (true);
14581
14574
  };
14582
- function $createConversationAttachmentCOROUTINE$(_this__u8e3s4, companyId, conversationId, uploadGroupId, attachment, onUploadProgress, resultContinuation) {
14583
- CoroutineImpl.call(this, resultContinuation);
14584
- this._this__u8e3s4__1 = _this__u8e3s4;
14585
- this.companyId_1 = companyId;
14586
- this.conversationId_1 = conversationId;
14587
- this.uploadGroupId_1 = uploadGroupId;
14588
- this.attachment_1 = attachment;
14589
- this.onUploadProgress_1 = onUploadProgress;
14590
- }
14591
- protoOf($createConversationAttachmentCOROUTINE$).doResume_5yljmg_k$ = function () {
14592
- var suspendResult = this.result_1;
14593
- $sm: do
14594
- try {
14595
- var tmp = this.state_1;
14596
- switch (tmp) {
14597
- case 0:
14598
- this.exceptionState_1 = 5;
14599
- var upload = this.attachment_1.upload;
14600
- if (upload == null) {
14601
- this.state_1 = 2;
14602
- var tmp0 = this.attachment_1.sourceDocumentId;
14603
- var tmp$ret$0 = Unit_instance;
14604
- l$ret$1: do {
14605
- if (tmp0 == null) {
14606
- var message = 'Required value was null.';
14607
- throw IllegalArgumentException_init_$Create$(toString(message));
14608
- } else {
14609
- tmp$ret$0 = tmp0;
14610
- break l$ret$1;
14611
- }
14612
- }
14613
- while (false);
14614
- suspendResult = this._this__u8e3s4__1.documents_1.createDocumentReference$suspendBridge_f4902h_k$(this.companyId_1, tmp$ret$0, new CreateDocumentReferenceCommand(this.conversationId_1, DocumentType_CONVERSATION_getInstance(), this.uploadGroupId_1), this);
14615
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
14616
- return suspendResult;
14617
- }
14618
- continue $sm;
14619
- } else {
14620
- this.state_1 = 1;
14621
- var tmp_0 = new UploadDocumentRequest(this.companyId_1, DocumentType_CONVERSATION_getInstance(), upload.fileName, upload.bytes, this.conversationId_1, VOID, VOID, upload.contentType, upload.verifyUpload, this.uploadGroupId_1);
14622
- suspendResult = this._this__u8e3s4__1.documents_1.uploadDocument$suspendBridge_uzm8wh_k$(tmp_0, IntegratedDocumentMutation$createConversationAttachment$lambda(this.onUploadProgress_1, upload), this);
14623
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
14624
- return suspendResult;
14625
- }
14626
- continue $sm;
14627
- }
14628
-
14629
- case 1:
14630
- this.WHEN_RESULT0__1 = suspendResult;
14631
- this.state_1 = 4;
14632
- continue $sm;
14633
- case 2:
14634
- var ARGUMENT = suspendResult;
14635
- this.state_1 = 3;
14636
- suspendResult = requireSuccessfulBody(this._this__u8e3s4__1, ARGUMENT, this);
14637
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
14638
- return suspendResult;
14639
- }
14640
-
14641
- continue $sm;
14642
- case 3:
14643
- this.WHEN_RESULT0__1 = suspendResult;
14644
- this.state_1 = 4;
14645
- continue $sm;
14646
- case 4:
14647
- return this.WHEN_RESULT0__1;
14648
- case 5:
14649
- throw this.exception_1;
14650
- }
14651
- } catch ($p) {
14652
- var e = $p;
14653
- if (this.exceptionState_1 === 5) {
14654
- throw e;
14655
- } else {
14656
- this.state_1 = this.exceptionState_1;
14657
- this.exception_1 = e;
14658
- }
14659
- }
14660
- while (true);
14661
- };
14662
14575
  function $executeCOROUTINE$(_this__u8e3s4, companyId, idempotencyKey, requestedDocuments, onUploadProgress, finalize, resultContinuation) {
14663
14576
  CoroutineImpl.call(this, resultContinuation);
14664
14577
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -14721,7 +14634,7 @@ protoOf($executeCOROUTINE$).doResume_5yljmg_k$ = function () {
14721
14634
  var tmp_0 = this.exception_1;
14722
14635
  if (tmp_0 instanceof CancellationException) {
14723
14636
  var cause = this.exception_1;
14724
- throw new IntegratedDocumentMutationCancellationException('FINALIZE', this.resolvedIdempotencyKey0__1, true, [], 'Integrated document mutation finalization was cancelled; outcome is unknown and may be retried with idempotency key ' + this.resolvedIdempotencyKey0__1);
14637
+ throw new IntegratedDocumentMutationCancellationException('FINALIZE', this.resolvedIdempotencyKey0__1, true, [], 'Integrated document mutation finalization was cancelled; outcome is ' + ('unknown for idempotency key ' + this.resolvedIdempotencyKey0__1 + '; reconcile the ') + 'outcome before starting another upload attempt');
14725
14638
  } else {
14726
14639
  var tmp_1 = this.exception_1;
14727
14640
  if (tmp_1 instanceof Error) {
@@ -14774,7 +14687,7 @@ protoOf($executeCOROUTINE$).doResume_5yljmg_k$ = function () {
14774
14687
  }
14775
14688
  while (false);
14776
14689
  var cause_0 = tmp$ret$0;
14777
- throw new IntegratedDocumentMutationException('FINALIZE', this.resolvedIdempotencyKey0__1, true, [], 'Integrated document mutation outcome is unknown after 2 attempts; ' + ('temporary binaries were retained for an idempotent retry: ' + cause_0.message));
14690
+ throw new IntegratedDocumentMutationException('FINALIZE', this.resolvedIdempotencyKey0__1, true, [], 'Integrated document mutation outcome is unknown after 2 attempts; temporary binaries were retained; reconcile the outcome before starting ' + ('another upload attempt: ' + cause_0.message));
14778
14691
  case 10:
14779
14692
  throw this.exception_1;
14780
14693
  }
@@ -15023,25 +14936,70 @@ protoOf(IntegratedDocumentMutation).createConversationMessage$suspendBridge_61ex
15023
14936
  tmp.exception_1 = null;
15024
14937
  return tmp.doResume_5yljmg_k$();
15025
14938
  };
15026
- protoOf(IntegratedDocumentMutation).createConversation_3tlxb_k$ = function (companyId, command, attachments, onUploadProgress, $completion) {
15027
- var tmp = new $createConversationCOROUTINE$(this, companyId, command, attachments, onUploadProgress, $completion);
14939
+ protoOf(IntegratedDocumentMutation).createConversation_7cgjaq_k$ = function (companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion) {
14940
+ var tmp = new $createConversationCOROUTINE$(this, companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion);
14941
+ tmp.result_1 = Unit_instance;
14942
+ tmp.exception_1 = null;
14943
+ return tmp.doResume_5yljmg_k$();
14944
+ };
14945
+ protoOf(IntegratedDocumentMutation).createConversation$default_2orw32_k$ = function (companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion, $super) {
14946
+ attachments = attachments === VOID ? emptyList() : attachments;
14947
+ onUploadProgress = onUploadProgress === VOID ? null : onUploadProgress;
14948
+ inlineDocuments = inlineDocuments === VOID ? emptyMap() : inlineDocuments;
14949
+ idempotencyKey = idempotencyKey === VOID ? null : idempotencyKey;
14950
+ return $super === VOID ? this.createConversation_7cgjaq_k$(companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion) : $super.createConversation_7cgjaq_k$.call(this, companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion);
14951
+ };
14952
+ protoOf(IntegratedDocumentMutation).createConversation = function (companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey) {
14953
+ var tmp = this;
14954
+ return promisify(function ($completion) {
14955
+ return tmp.createConversation$default_2orw32_k$(companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion);
14956
+ });
14957
+ };
14958
+ protoOf(IntegratedDocumentMutation).createConversation$suspendBridge_nx4ldd_k$ = function (companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion) {
14959
+ var tmp = new $createConversation$suspendBridgeCOROUTINE$(this, companyId, command, attachments, onUploadProgress, inlineDocuments, idempotencyKey, $completion);
14960
+ tmp.result_1 = Unit_instance;
14961
+ tmp.exception_1 = null;
14962
+ return tmp.doResume_5yljmg_k$();
14963
+ };
14964
+ protoOf(IntegratedDocumentMutation).createConversation_x2ma2u_k$ = function (companyId, command, attachments, onUploadProgress, $completion) {
14965
+ return this.createConversation$suspendBridge_nx4ldd_k$(companyId, command, attachments, onUploadProgress, emptyMap(), null, $completion);
14966
+ };
14967
+ protoOf(IntegratedDocumentMutation).createConversation$default_l0wvd1_k$ = function (companyId, command, attachments, onUploadProgress, $completion, $super) {
14968
+ attachments = attachments === VOID ? emptyList() : attachments;
14969
+ return $super === VOID ? this.createConversation_x2ma2u_k$(companyId, command, attachments, onUploadProgress, $completion) : $super.createConversation_x2ma2u_k$.call(this, companyId, command, attachments, onUploadProgress, $completion);
14970
+ };
14971
+ protoOf(IntegratedDocumentMutation).createConversationWithUploadProgress = function (companyId, command, attachments, onUploadProgress) {
14972
+ var tmp = this;
14973
+ return promisify(function ($completion) {
14974
+ return tmp.createConversation$default_l0wvd1_k$(companyId, command, attachments, onUploadProgress, $completion);
14975
+ });
14976
+ };
14977
+ protoOf(IntegratedDocumentMutation).createConversation$suspendBridge_mt6w5j_k$ = function (companyId, command, attachments, onUploadProgress, $completion) {
14978
+ var tmp = new $createConversation$suspendBridgeCOROUTINE$_0(this, companyId, command, attachments, onUploadProgress, $completion);
15028
14979
  tmp.result_1 = Unit_instance;
15029
14980
  tmp.exception_1 = null;
15030
14981
  return tmp.doResume_5yljmg_k$();
15031
14982
  };
15032
- protoOf(IntegratedDocumentMutation).createConversation$default_e72hpn_k$ = function (companyId, command, attachments, onUploadProgress, $completion, $super) {
14983
+ protoOf(IntegratedDocumentMutation).updateConversation_1sgney_k$ = function (companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion) {
14984
+ var tmp = requestedDocuments(this, null, attachments, inlineDocuments);
14985
+ return execute(this, companyId, idempotencyKey, tmp, onUploadProgress, IntegratedDocumentMutation$updateConversation$slambda_0(this, companyId, conversationId, command, removeDocumentIds, null), $completion);
14986
+ };
14987
+ protoOf(IntegratedDocumentMutation).updateConversation$default_xqvifx_k$ = function (companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion, $super) {
15033
14988
  attachments = attachments === VOID ? emptyList() : attachments;
14989
+ inlineDocuments = inlineDocuments === VOID ? emptyMap() : inlineDocuments;
14990
+ removeDocumentIds = removeDocumentIds === VOID ? emptyList() : removeDocumentIds;
14991
+ idempotencyKey = idempotencyKey === VOID ? null : idempotencyKey;
15034
14992
  onUploadProgress = onUploadProgress === VOID ? null : onUploadProgress;
15035
- return $super === VOID ? this.createConversation_3tlxb_k$(companyId, command, attachments, onUploadProgress, $completion) : $super.createConversation_3tlxb_k$.call(this, companyId, command, attachments, onUploadProgress, $completion);
14993
+ return $super === VOID ? this.updateConversation_1sgney_k$(companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion) : $super.updateConversation_1sgney_k$.call(this, companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion);
15036
14994
  };
15037
- protoOf(IntegratedDocumentMutation).createConversation = function (companyId, command, attachments, onUploadProgress) {
14995
+ protoOf(IntegratedDocumentMutation).updateConversation = function (companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress) {
15038
14996
  var tmp = this;
15039
14997
  return promisify(function ($completion) {
15040
- return tmp.createConversation$default_e72hpn_k$(companyId, command, attachments, onUploadProgress, $completion);
14998
+ return tmp.updateConversation$default_xqvifx_k$(companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion);
15041
14999
  });
15042
15000
  };
15043
- protoOf(IntegratedDocumentMutation).createConversation$suspendBridge_y3mdpc_k$ = function (companyId, command, attachments, onUploadProgress, $completion) {
15044
- var tmp = new $createConversation$suspendBridgeCOROUTINE$(this, companyId, command, attachments, onUploadProgress, $completion);
15001
+ protoOf(IntegratedDocumentMutation).updateConversation$suspendBridge_iesxbd_k$ = function (companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion) {
15002
+ var tmp = new $updateConversation$suspendBridgeCOROUTINE$(this, companyId, conversationId, command, attachments, inlineDocuments, removeDocumentIds, idempotencyKey, onUploadProgress, $completion);
15045
15003
  tmp.result_1 = Unit_instance;
15046
15004
  tmp.exception_1 = null;
15047
15005
  return tmp.doResume_5yljmg_k$();
@@ -15795,41 +15753,6 @@ function FinalizationRejected(statusCode, message) {
15795
15753
  captureStack(this, FinalizationRejected);
15796
15754
  this.statusCode_1 = statusCode;
15797
15755
  }
15798
- function ConversationAttachmentOutcome(attachment, document, failure) {
15799
- document = document === VOID ? null : document;
15800
- failure = failure === VOID ? null : failure;
15801
- this.attachment_1 = attachment;
15802
- this.document_1 = document;
15803
- this.failure_1 = failure;
15804
- }
15805
- protoOf(ConversationAttachmentOutcome).toString = function () {
15806
- return 'ConversationAttachmentOutcome(attachment=' + this.attachment_1 + ', document=' + toString_0(this.document_1) + ', failure=' + toString_0(this.failure_1) + ')';
15807
- };
15808
- protoOf(ConversationAttachmentOutcome).hashCode = function () {
15809
- var result = getStringHashCode(this.attachment_1);
15810
- result = imul(result, 31) + (this.document_1 == null ? 0 : this.document_1.hashCode()) | 0;
15811
- result = imul(result, 31) + (this.failure_1 == null ? 0 : hashCode(this.failure_1)) | 0;
15812
- return result;
15813
- };
15814
- protoOf(ConversationAttachmentOutcome).equals = function (other) {
15815
- if (this === other)
15816
- return true;
15817
- if (!(other instanceof ConversationAttachmentOutcome))
15818
- return false;
15819
- if (!(this.attachment_1 === other.attachment_1))
15820
- return false;
15821
- if (!equals(this.document_1, other.document_1))
15822
- return false;
15823
- if (!equals(this.failure_1, other.failure_1))
15824
- return false;
15825
- return true;
15826
- };
15827
- function description(_this__u8e3s4) {
15828
- _init_properties_IntegratedDocumentMutation_kt__awjvbd();
15829
- var tmp0_safe_receiver = _this__u8e3s4.upload;
15830
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fileName;
15831
- return tmp1_elvis_lhs == null ? 'document:' + toString_0(_this__u8e3s4.sourceDocumentId) : tmp1_elvis_lhs;
15832
- }
15833
15756
  function imageAttributes(alt, options) {
15834
15757
  _init_properties_IntegratedDocumentMutation_kt__awjvbd();
15835
15758
  var tmp = 'alt="' + escapeHtmlAttribute(alt) + '"';
@@ -42380,7 +42303,7 @@ function SoliboOpenTelemetry() {
42380
42303
  }
42381
42304
  protoOf(SoliboOpenTelemetry).tracer_4qhv4u_k$ = function () {
42382
42305
  var tmp0_elvis_lhs = this.installed_1;
42383
- return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.26.4');
42306
+ return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.26.5');
42384
42307
  };
42385
42308
  var SoliboOpenTelemetry_instance;
42386
42309
  function SoliboOpenTelemetry_getInstance() {
@@ -45379,6 +45302,8 @@ if (typeof FailureKind !== 'undefined') {
45379
45302
  __soliboLookupTable["FcmDeviceType"] = () => ref(() => FcmDeviceType);
45380
45303
  __soliboLookupTable["FinalizeCommunicationCommentDocumentCreateCommand"] = () => ref(() => FinalizeCommunicationCommentDocumentCreateCommand);
45381
45304
  __soliboLookupTable["FinalizeCommunicationCommentDocumentUpdateCommand"] = () => ref(() => FinalizeCommunicationCommentDocumentUpdateCommand);
45305
+ __soliboLookupTable["FinalizeConversationDocumentCreateCommand"] = () => ref(() => FinalizeConversationDocumentCreateCommand);
45306
+ __soliboLookupTable["FinalizeConversationDocumentUpdateCommand"] = () => ref(() => FinalizeConversationDocumentUpdateCommand);
45382
45307
  __soliboLookupTable["FinalizeConversationMessageDocumentCommand"] = () => ref(() => FinalizeConversationMessageDocumentCommand);
45383
45308
  __soliboLookupTable["FinalizeHomepageDocumentCreateCommand"] = () => ref(() => FinalizeHomepageDocumentCreateCommand);
45384
45309
  __soliboLookupTable["FinalizeHomepageDocumentUpdateCommand"] = () => ref(() => FinalizeHomepageDocumentUpdateCommand);
@@ -45797,7 +45722,7 @@ if (typeof FailureKind !== 'undefined') {
45797
45722
  __soliboWrapMethod(ref(() => AccountingQueryClient), "getAccountingProject", {"args":{"0":["bigint"],"1":["bigint"]},"result":true});
45798
45723
  __soliboWrapMethod(ref(() => AccountingQueryClient), "listCompanyAccountingEntries", {"args":{"0":["bigint"],"3":["list",null],"4":["list",["bigint"]],"5":["list",["bigint"]],"6":["list",["bigint"]]},"result":true});
45799
45724
  __soliboWrapMethod(ref(() => AccountingQueryClient), "listAccountingEntries", {"args":{"2":["list",["bigint"]],"3":["list",null],"4":["list",["bigint"]],"5":["list",["bigint"]],"6":["list",["bigint"]]},"result":true});
45800
- __soliboWrapMethod(ref(() => DocumentsApi), "create", {"args":{"2":["callback"]},"isStatic":true});
45725
+ __soliboWrapMethod(ref(() => DocumentsApi), "create", {"args":{"2":["callback"],"4":["model","DocumentUploadOptions"]},"isStatic":true});
45801
45726
  __soliboWrapMethod(ref(() => DocumentsApi), "createWithClient", {"args":{"2":["model","DocumentUploadOptions"]},"isStatic":true});
45802
45727
  __soliboWrapMethod(ref(() => DocumentsApi), "uploadDocument", {"args":{"0":["model","UploadDocumentRequest"],"1":["callback"]},"result":true});
45803
45728
  __soliboWrapMethod(ref(() => DocumentsApi), "createUploadHeaders", {"args":{"0":["model","UploadBinaryRequest"]},"result":true,"internalAlias":"createUploadHeaders$solibo_kt"});
@@ -45825,7 +45750,9 @@ if (typeof FailureKind !== 'undefined') {
45825
45750
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createNewsletter", {"args":{"0":["bigint"],"1":["model","CreateNewsletterCommand"],"2":["list",["model","DocumentInput"]],"3":["map",null,["model","DocumentInput"]],"5":["callback"]},"result":true});
45826
45751
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "updateNewsletter", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","UpdateNewsletterCommand"],"3":["list",["model","DocumentInput"]],"4":["map",null,["model","DocumentInput"]],"5":["list",["bigint"]],"7":["callback"]},"result":true});
45827
45752
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createConversationMessage", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","CreateMessageCommand"],"3":["list",["model","DocumentInput"]],"4":["map",null,["model","DocumentInput"]],"6":["callback"]},"result":true});
45828
- __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createConversation", {"args":{"0":["bigint"],"1":["model","CreateConversationCommand"],"2":["list",["model","DocumentInput"]],"3":["callback"]},"result":true});
45753
+ __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createConversation", {"args":{"0":["bigint"],"1":["model","CreateConversationCommand"],"2":["list",["model","DocumentInput"]],"3":["callback"],"4":["map",null,["model","DocumentInput"]]},"result":true});
45754
+ __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createConversationWithUploadProgress", {"args":{"0":["bigint"],"1":["model","CreateConversationCommand"],"2":["list",["model","DocumentInput"]],"3":["callback"]},"result":true});
45755
+ __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "updateConversation", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","UpdateConversationCommand"],"3":["list",["model","DocumentInput"]],"4":["map",null,["model","DocumentInput"]],"5":["list",["bigint"]],"7":["callback"]},"result":true});
45829
45756
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createNeighborhoodGroup", {"args":{"0":["bigint"],"1":["model","CreateNeighborhoodGroupCommand"],"2":["model","DocumentInput"],"4":["callback"]},"result":true});
45830
45757
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "updateNeighborhoodGroup", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","UpdateNeighborhoodGroupCommand"],"3":["bigint"],"4":["model","DocumentInput"],"5":["list",["bigint"]],"7":["callback"]},"result":true});
45831
45758
  __soliboWrapMethod(ref(() => IntegratedDocumentMutation), "createNeighborhoodPost", {"args":{"0":["bigint"],"1":["bigint"],"2":["model","CreateNeighborhoodPostCommand"],"3":["model","DocumentInput"],"4":["list",["model","DocumentInput"]],"5":["map",null,["model","DocumentInput"]],"7":["callback"]},"result":true});