@solibo/home-api 1.31.0 → 1.32.0

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/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "directory": "sdk/home-api"
18
18
  },
19
19
  "main": "solibo-sdk-sdk-home-api.mjs",
20
- "version": "1.31.0",
20
+ "version": "1.32.0",
21
21
  "name": "@solibo/home-api",
22
22
  "dependencies": {
23
23
  "ws": "8.21.3",
@@ -23477,6 +23477,7 @@ export declare class CompanyApi extends ApiClient.$metadata$.constructor {
23477
23477
  createImportDraftSameieAddress(sameieAddresseSearchCommand: SameieAddresseSearchCommand): Promise<HttpResponse<void>>;
23478
23478
  createImportDraftSameieMatrikkel(sameieMatrikkelSearchCommand: SameieMatrikkelSearchCommand): Promise<HttpResponse<void>>;
23479
23479
  deleteCompanyAddress(companyId: bigint, addressId: bigint): Promise<HttpResponse<void>>;
23480
+ deleteImportDraft(draftId: bigint): Promise<HttpResponse<void>>;
23480
23481
  indexActiveAdministrators(fields?: Nullable<string>): Promise<HttpResponse<SoliboContacts>>;
23481
23482
  indexAllAdministrators(fields?: Nullable<string>): Promise<HttpResponse<SoliboContacts>>;
23482
23483
  indexAvailableCompanyAdministrators(companyId: bigint, fields?: Nullable<string>): Promise<HttpResponse<SoliboContacts>>;
@@ -2993,6 +2993,8 @@ initMetadataForCoroutine($createImportDraftSameieMatrikkelCOROUTINE$, CoroutineI
2993
2993
  initMetadataForCoroutine($createImportDraftSameieMatrikkel$suspendBridgeCOROUTINE$, CoroutineImpl);
2994
2994
  initMetadataForCoroutine($deleteCompanyAddressCOROUTINE$, CoroutineImpl);
2995
2995
  initMetadataForCoroutine($deleteCompanyAddress$suspendBridgeCOROUTINE$, CoroutineImpl);
2996
+ initMetadataForCoroutine($deleteImportDraftCOROUTINE$, CoroutineImpl);
2997
+ initMetadataForCoroutine($deleteImportDraft$suspendBridgeCOROUTINE$, CoroutineImpl);
2996
2998
  initMetadataForCoroutine($indexActiveAdministratorsCOROUTINE$, CoroutineImpl);
2997
2999
  initMetadataForCoroutine($indexActiveAdministrators$suspendBridgeCOROUTINE$, CoroutineImpl);
2998
3000
  initMetadataForCoroutine($indexAllAdministratorsCOROUTINE$, CoroutineImpl);
@@ -215456,6 +215458,119 @@ protoOf($deleteCompanyAddress$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = func
215456
215458
  }
215457
215459
  while (true);
215458
215460
  };
215461
+ function $deleteImportDraftCOROUTINE$(_this__u8e3s4, draftId, resultContinuation) {
215462
+ CoroutineImpl.call(this, resultContinuation);
215463
+ this._this__u8e3s4__1 = _this__u8e3s4;
215464
+ this.draftId_1 = draftId;
215465
+ }
215466
+ protoOf($deleteImportDraftCOROUTINE$).doResume_5yljmg_k$ = function () {
215467
+ var suspendResult = this.result_1;
215468
+ $sm: do
215469
+ try {
215470
+ var tmp = this.state_1;
215471
+ switch (tmp) {
215472
+ case 0:
215473
+ this.exceptionState_1 = 2;
215474
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
215475
+ var localVariableBody = EmptyContent_getInstance();
215476
+ var localVariableQuery = LinkedHashMap_init_$Create$_0();
215477
+ var localVariableHeaders = LinkedHashMap_init_$Create$_0();
215478
+ var tmp0_method = RequestMethod_DELETE_getInstance();
215479
+ var tmp1_path = replace('/companies/import/drafts/{draftId}', '{draftId}', this.draftId_1.toString());
215480
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
215481
+ this.state_1 = 1;
215482
+ suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
215483
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
215484
+ return suspendResult;
215485
+ }
215486
+
215487
+ continue $sm;
215488
+ case 1:
215489
+ var this_0 = suspendResult;
215490
+ var tmp_0 = getKClass(Unit);
215491
+ var tmp_1 = null instanceof Unit;
215492
+ var tmp_2;
215493
+ try {
215494
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
215495
+ } catch ($p) {
215496
+ var tmp_3;
215497
+ if ($p instanceof Error) {
215498
+ var _unused_var__etf5q3 = $p;
215499
+ tmp_3 = null;
215500
+ } else {
215501
+ throw $p;
215502
+ }
215503
+ tmp_2 = tmp_3;
215504
+ }
215505
+
215506
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
215507
+ case 2:
215508
+ throw this.exception_1;
215509
+ }
215510
+ } catch ($p_0) {
215511
+ var e = $p_0;
215512
+ if (this.exceptionState_1 === 2) {
215513
+ throw e;
215514
+ } else {
215515
+ this.state_1 = this.exceptionState_1;
215516
+ this.exception_1 = e;
215517
+ }
215518
+ }
215519
+ while (true);
215520
+ };
215521
+ function $deleteImportDraft$suspendBridgeCOROUTINE$(_this__u8e3s4, draftId, resultContinuation) {
215522
+ CoroutineImpl.call(this, resultContinuation);
215523
+ this._this__u8e3s4__1 = _this__u8e3s4;
215524
+ this.draftId_1 = draftId;
215525
+ }
215526
+ protoOf($deleteImportDraft$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
215527
+ var suspendResult = this.result_1;
215528
+ $sm: do
215529
+ try {
215530
+ var tmp = this.state_1;
215531
+ switch (tmp) {
215532
+ case 0:
215533
+ this.exceptionState_1 = 4;
215534
+ if (this._this__u8e3s4__1.deleteImportDraft === protoOf(CompanyApi).deleteImportDraft) {
215535
+ this.state_1 = 2;
215536
+ suspendResult = this._this__u8e3s4__1.deleteImportDraft_zdvb75_k$(this.draftId_1, this);
215537
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
215538
+ return suspendResult;
215539
+ }
215540
+ continue $sm;
215541
+ } else {
215542
+ this.state_1 = 1;
215543
+ suspendResult = await_0(this._this__u8e3s4__1.deleteImportDraft(this.draftId_1), this);
215544
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
215545
+ return suspendResult;
215546
+ }
215547
+ continue $sm;
215548
+ }
215549
+
215550
+ case 1:
215551
+ this.WHEN_RESULT0__1 = suspendResult;
215552
+ this.state_1 = 3;
215553
+ continue $sm;
215554
+ case 2:
215555
+ this.WHEN_RESULT0__1 = suspendResult;
215556
+ this.state_1 = 3;
215557
+ continue $sm;
215558
+ case 3:
215559
+ return this.WHEN_RESULT0__1;
215560
+ case 4:
215561
+ throw this.exception_1;
215562
+ }
215563
+ } catch ($p) {
215564
+ var e = $p;
215565
+ if (this.exceptionState_1 === 4) {
215566
+ throw e;
215567
+ } else {
215568
+ this.state_1 = this.exceptionState_1;
215569
+ this.exception_1 = e;
215570
+ }
215571
+ }
215572
+ while (true);
215573
+ };
215459
215574
  function $indexActiveAdministratorsCOROUTINE$(_this__u8e3s4, fields, resultContinuation) {
215460
215575
  CoroutineImpl.call(this, resultContinuation);
215461
215576
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -219707,6 +219822,24 @@ protoOf(CompanyApi).deleteCompanyAddress$suspendBridge_9vk9hb_k$ = function (com
219707
219822
  tmp.exception_1 = null;
219708
219823
  return tmp.doResume_5yljmg_k$();
219709
219824
  };
219825
+ protoOf(CompanyApi).deleteImportDraft_zdvb75_k$ = function (draftId, $completion) {
219826
+ var tmp = new $deleteImportDraftCOROUTINE$(this, draftId, $completion);
219827
+ tmp.result_1 = Unit_instance;
219828
+ tmp.exception_1 = null;
219829
+ return tmp.doResume_5yljmg_k$();
219830
+ };
219831
+ protoOf(CompanyApi).deleteImportDraft = function (draftId) {
219832
+ var tmp = this;
219833
+ return promisify(function ($completion) {
219834
+ return tmp.deleteImportDraft_zdvb75_k$(draftId, $completion);
219835
+ });
219836
+ };
219837
+ protoOf(CompanyApi).deleteImportDraft$suspendBridge_m8rwdq_k$ = function (draftId, $completion) {
219838
+ var tmp = new $deleteImportDraft$suspendBridgeCOROUTINE$(this, draftId, $completion);
219839
+ tmp.result_1 = Unit_instance;
219840
+ tmp.exception_1 = null;
219841
+ return tmp.doResume_5yljmg_k$();
219842
+ };
219710
219843
  protoOf(CompanyApi).indexActiveAdministrators_m1q8ob_k$ = function (fields, $completion) {
219711
219844
  var tmp = new $indexActiveAdministratorsCOROUTINE$(this, fields, $completion);
219712
219845
  tmp.result_1 = Unit_instance;