@solibo/home-api 1.41.0 → 1.42.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.
Files changed (74) hide show
  1. package/kotlin-kotlin-stdlib.mjs +4 -8
  2. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  3. package/kotlinx-coroutines-core.mjs +7 -7
  4. package/kotlinx-coroutines-core.mjs.map +1 -1
  5. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
  6. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  7. package/ktor-ktor-utils.mjs +2 -2
  8. package/ktor-ktor-websockets.mjs +2 -2
  9. package/package.json +1 -1
  10. package/solibo-sdk-sdk-api-accounting.mjs +581 -514
  11. package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
  12. package/solibo-sdk-sdk-api-board.mjs +531 -472
  13. package/solibo-sdk-sdk-api-board.mjs.map +1 -1
  14. package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
  15. package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
  16. package/solibo-sdk-sdk-api-company.mjs +4382 -3959
  17. package/solibo-sdk-sdk-api-company.mjs.map +1 -1
  18. package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
  19. package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
  20. package/solibo-sdk-sdk-api-document.mjs +7517 -6991
  21. package/solibo-sdk-sdk-api-document.mjs.map +1 -1
  22. package/solibo-sdk-sdk-api-economy.mjs +966 -856
  23. package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
  24. package/solibo-sdk-sdk-api-expense.mjs +1015 -902
  25. package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
  26. package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
  27. package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
  28. package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
  29. package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
  30. package/solibo-sdk-sdk-api-insurance.mjs +778 -695
  31. package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
  32. package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
  33. package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
  34. package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
  35. package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
  36. package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
  37. package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
  38. package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
  39. package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
  40. package/solibo-sdk-sdk-api-marketing.mjs +383 -337
  41. package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
  42. package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
  43. package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
  44. package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
  45. package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
  46. package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
  47. package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
  48. package/solibo-sdk-sdk-api-person.mjs +1488 -1339
  49. package/solibo-sdk-sdk-api-person.mjs.map +1 -1
  50. package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
  51. package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
  52. package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
  53. package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
  54. package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
  55. package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
  56. package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
  57. package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
  58. package/solibo-sdk-sdk-api-section.mjs +4076 -3685
  59. package/solibo-sdk-sdk-api-section.mjs.map +1 -1
  60. package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
  61. package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
  62. package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
  63. package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
  64. package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
  65. package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
  66. package/solibo-sdk-sdk-api-task.mjs +818 -727
  67. package/solibo-sdk-sdk-api-task.mjs.map +1 -1
  68. package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
  69. package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
  70. package/solibo-sdk-sdk-api-user.mjs +1059 -945
  71. package/solibo-sdk-sdk-api-user.mjs.map +1 -1
  72. package/solibo-sdk-sdk-core.mjs +121 -155
  73. package/solibo-sdk-sdk-core.mjs.map +1 -1
  74. package/solibo-sdk-sdk-home-api.d.mts +716 -2
@@ -10,7 +10,6 @@ import {
10
10
  IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
11
11
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
12
12
  ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$,
13
- ArrayList3it5z8td81qkl as ArrayList_BridgeFix,
14
13
  toString30pk9tzaqopn as toString_0,
15
14
  CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
16
15
  get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
@@ -106,17 +105,17 @@ initMetadataForClass(AccountingEntryResult, 'AccountingEntryResult', VOID, VOID,
106
105
  initMetadataForCompanion(Companion_7);
107
106
  initMetadataForObject($serializer_7, '$serializer', VOID, VOID, [GeneratedSerializer]);
108
107
  initMetadataForClass(AccountingEntriesResult, 'AccountingEntriesResult', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_9});
109
- initMetadataForCoroutine($getAccountingOverviewCOROUTINE$_0, CoroutineImpl);
110
108
  initMetadataForCoroutine($getAccountingOverview$suspendBridgeCOROUTINE$_0, CoroutineImpl);
111
- initMetadataForCoroutine($getAccountingPortfolioOverviewCOROUTINE$_0, CoroutineImpl);
112
109
  initMetadataForCoroutine($getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0, CoroutineImpl);
113
- initMetadataForCoroutine($getAccountingProjectCOROUTINE$_0, CoroutineImpl);
114
110
  initMetadataForCoroutine($getAccountingProject$suspendBridgeCOROUTINE$_0, CoroutineImpl);
115
- initMetadataForCoroutine($listAccountingEntriesCOROUTINE$_0, CoroutineImpl);
116
111
  initMetadataForCoroutine($listAccountingEntries$suspendBridgeCOROUTINE$_0, CoroutineImpl);
117
- initMetadataForCoroutine($listCompanyAccountingEntriesCOROUTINE$_0, CoroutineImpl);
118
112
  initMetadataForCoroutine($listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0, CoroutineImpl);
119
113
  initMetadataForClass(AccountingApi, 'AccountingApi', create, ApiClient, VOID, [4, 6, 5, 11, 3]);
114
+ initMetadataForCoroutine($getAccountingOverviewOperationCOROUTINE$, CoroutineImpl);
115
+ initMetadataForCoroutine($getAccountingPortfolioOverviewOperationCOROUTINE$, CoroutineImpl);
116
+ initMetadataForCoroutine($getAccountingProjectOperationCOROUTINE$, CoroutineImpl);
117
+ initMetadataForCoroutine($listAccountingEntriesOperationCOROUTINE$, CoroutineImpl);
118
+ initMetadataForCoroutine($listCompanyAccountingEntriesOperationCOROUTINE$, CoroutineImpl);
120
119
  initMetadataForCompanion(Companion_8);
121
120
  initMetadataForObject($serializer_8, '$serializer', VOID, VOID, [GeneratedSerializer]);
122
121
  initMetadataForClass(AccountingDimension, 'AccountingDimension', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
@@ -3452,7 +3451,7 @@ function AccountingApi_init_$Init$_0(baseUrl, httpClient, $this) {
3452
3451
  function createWithClient(baseUrl, httpClient) {
3453
3452
  return AccountingApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(AccountingApi)));
3454
3453
  }
3455
- function $getAccountingOverviewCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, fields, resultContinuation) {
3454
+ function $getAccountingOverview$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, fields, resultContinuation) {
3456
3455
  CoroutineImpl.call(this, resultContinuation);
3457
3456
  this._this__u8e3s4__1 = _this__u8e3s4;
3458
3457
  this.companyId_1 = companyId;
@@ -3460,76 +3459,46 @@ function $getAccountingOverviewCOROUTINE$_0(_this__u8e3s4, companyId, periodStar
3460
3459
  this.periodEnd_1 = periodEnd;
3461
3460
  this.fields_1 = fields;
3462
3461
  }
3463
- protoOf($getAccountingOverviewCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3462
+ protoOf($getAccountingOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3464
3463
  var suspendResult = this.result_1;
3465
3464
  $sm: do
3466
3465
  try {
3467
3466
  var tmp = this.state_1;
3468
3467
  switch (tmp) {
3469
3468
  case 0:
3470
- this.exceptionState_1 = 2;
3471
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
3472
- var localVariableBody = EmptyContent_getInstance();
3473
- var localVariableQuery = LinkedHashMap_init_$Create$();
3474
- if (this.periodStart_1 == null)
3475
- null;
3476
- else {
3477
- var tmp2 = 'periodStart';
3478
- var value = listOf_0(this.periodStart_1);
3479
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
3480
- }
3481
-
3482
- if (this.periodEnd_1 == null)
3483
- null;
3484
- else {
3485
- var tmp2_0 = 'periodEnd';
3486
- var value_0 = listOf_0(this.periodEnd_1);
3487
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
3488
- }
3489
-
3490
- if (this.fields_1 == null)
3491
- null;
3492
- else {
3493
- var value_1 = listOf_0(this.fields_1);
3494
- localVariableQuery.put_4fpzoq_k$('fields', value_1);
3495
- }
3496
-
3497
- var localVariableHeaders = LinkedHashMap_init_$Create$();
3498
- var tmp3_method = RequestMethod_GET_getInstance();
3499
- var tmp4_path = replace('/companies/{companyId}/accounting/overview', '{companyId}', this.companyId_1.toString());
3500
- var localVariableConfig = new RequestConfig(tmp3_method, tmp4_path, localVariableHeaders, VOID, localVariableQuery, true);
3501
- this.state_1 = 1;
3502
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
3503
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
3504
- return suspendResult;
3505
- }
3506
-
3507
- continue $sm;
3508
- case 1:
3509
- var this_0 = suspendResult;
3510
- var tmp_0 = getKClass(AccountingOverview);
3511
- var tmp_1 = null instanceof AccountingOverview;
3512
- var tmp_2;
3513
- try {
3514
- tmp_2 = createKType(getKClass(AccountingOverview), arrayOf([]), false);
3515
- } catch ($p) {
3516
- var tmp_3;
3517
- if ($p instanceof Error) {
3518
- var _unused_var__etf5q3 = $p;
3519
- tmp_3 = null;
3520
- } else {
3521
- throw $p;
3469
+ this.exceptionState_1 = 4;
3470
+ if (this._this__u8e3s4__1.getAccountingOverview === protoOf(AccountingApi).getAccountingOverview) {
3471
+ this.state_1 = 2;
3472
+ suspendResult = this._this__u8e3s4__1.getAccountingOverview$default_3rd91o_k$(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.fields_1, this);
3473
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3474
+ return suspendResult;
3522
3475
  }
3523
- tmp_2 = tmp_3;
3476
+ continue $sm;
3477
+ } else {
3478
+ this.state_1 = 1;
3479
+ suspendResult = await_0(this._this__u8e3s4__1.getAccountingOverview(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.fields_1), this);
3480
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3481
+ return suspendResult;
3482
+ }
3483
+ continue $sm;
3524
3484
  }
3525
3485
 
3526
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
3486
+ case 1:
3487
+ this.WHEN_RESULT0__1 = suspendResult;
3488
+ this.state_1 = 3;
3489
+ continue $sm;
3527
3490
  case 2:
3491
+ this.WHEN_RESULT0__1 = suspendResult;
3492
+ this.state_1 = 3;
3493
+ continue $sm;
3494
+ case 3:
3495
+ return this.WHEN_RESULT0__1;
3496
+ case 4:
3528
3497
  throw this.exception_1;
3529
3498
  }
3530
- } catch ($p_0) {
3531
- var e = $p_0;
3532
- if (this.exceptionState_1 === 2) {
3499
+ } catch ($p) {
3500
+ var e = $p;
3501
+ if (this.exceptionState_1 === 4) {
3533
3502
  throw e;
3534
3503
  } else {
3535
3504
  this.state_1 = this.exceptionState_1;
@@ -3538,15 +3507,17 @@ protoOf($getAccountingOverviewCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3538
3507
  }
3539
3508
  while (true);
3540
3509
  };
3541
- function $getAccountingOverview$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, fields, resultContinuation) {
3510
+ function $getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, fields, resultContinuation) {
3542
3511
  CoroutineImpl.call(this, resultContinuation);
3543
3512
  this._this__u8e3s4__1 = _this__u8e3s4;
3544
- this.companyId_1 = companyId;
3545
3513
  this.periodStart_1 = periodStart;
3546
3514
  this.periodEnd_1 = periodEnd;
3515
+ this.pageToken_1 = pageToken;
3516
+ this.count_1 = count;
3517
+ this.companyIds_1 = companyIds;
3547
3518
  this.fields_1 = fields;
3548
3519
  }
3549
- protoOf($getAccountingOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3520
+ protoOf($getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3550
3521
  var suspendResult = this.result_1;
3551
3522
  $sm: do
3552
3523
  try {
@@ -3554,16 +3525,16 @@ protoOf($getAccountingOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = f
3554
3525
  switch (tmp) {
3555
3526
  case 0:
3556
3527
  this.exceptionState_1 = 4;
3557
- if (this._this__u8e3s4__1.getAccountingOverview === protoOf(AccountingApi).getAccountingOverview) {
3528
+ if (this._this__u8e3s4__1.getAccountingPortfolioOverview === protoOf(AccountingApi).getAccountingPortfolioOverview) {
3558
3529
  this.state_1 = 2;
3559
- suspendResult = this._this__u8e3s4__1.getAccountingOverview$default_3rd91o_k$(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.fields_1, this);
3530
+ suspendResult = this._this__u8e3s4__1.getAccountingPortfolioOverview$default_czajlf_k$(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.fields_1, this);
3560
3531
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3561
3532
  return suspendResult;
3562
3533
  }
3563
3534
  continue $sm;
3564
3535
  } else {
3565
3536
  this.state_1 = 1;
3566
- suspendResult = await_0(this._this__u8e3s4__1.getAccountingOverview(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.fields_1), this);
3537
+ suspendResult = await_0(this._this__u8e3s4__1.getAccountingPortfolioOverview(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.fields_1), this);
3567
3538
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3568
3539
  return suspendResult;
3569
3540
  }
@@ -3594,109 +3565,55 @@ protoOf($getAccountingOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = f
3594
3565
  }
3595
3566
  while (true);
3596
3567
  };
3597
- function $getAccountingPortfolioOverviewCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, fields, resultContinuation) {
3568
+ function $getAccountingProject$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, projectId, periodStart, periodEnd, fields, resultContinuation) {
3598
3569
  CoroutineImpl.call(this, resultContinuation);
3599
3570
  this._this__u8e3s4__1 = _this__u8e3s4;
3571
+ this.companyId_1 = companyId;
3572
+ this.projectId_1 = projectId;
3600
3573
  this.periodStart_1 = periodStart;
3601
3574
  this.periodEnd_1 = periodEnd;
3602
- this.pageToken_1 = pageToken;
3603
- this.count_1 = count;
3604
- this.companyIds_1 = companyIds;
3605
3575
  this.fields_1 = fields;
3606
3576
  }
3607
- protoOf($getAccountingPortfolioOverviewCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3577
+ protoOf($getAccountingProject$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3608
3578
  var suspendResult = this.result_1;
3609
3579
  $sm: do
3610
3580
  try {
3611
3581
  var tmp = this.state_1;
3612
3582
  switch (tmp) {
3613
3583
  case 0:
3614
- this.exceptionState_1 = 2;
3615
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
3616
- var localVariableBody = EmptyContent_getInstance();
3617
- var localVariableQuery = LinkedHashMap_init_$Create$();
3618
- if (this.pageToken_1 == null)
3619
- null;
3620
- else {
3621
- var tmp2 = 'pageToken';
3622
- var value = listOf_0(this.pageToken_1);
3623
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
3624
- }
3625
-
3626
- if (this.count_1 == null)
3627
- null;
3628
- else {
3629
- var value_0 = listOf_0('' + this.count_1);
3630
- localVariableQuery.put_4fpzoq_k$('count', value_0);
3631
- }
3632
-
3633
- if (this.periodStart_1 == null)
3634
- null;
3635
- else {
3636
- var tmp2_0 = 'periodStart';
3637
- var value_1 = listOf_0(this.periodStart_1);
3638
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
3639
- }
3640
-
3641
- if (this.periodEnd_1 == null)
3642
- null;
3643
- else {
3644
- var tmp2_1 = 'periodEnd';
3645
- var value_2 = listOf_0(this.periodEnd_1);
3646
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
3647
- }
3648
-
3649
- var tmp4_safe_receiver = this.companyIds_1;
3650
- if (tmp4_safe_receiver == null)
3651
- null;
3652
- else {
3653
- var tmp2_2 = 'companyIds';
3654
- var value_3 = toMultiValue(tmp4_safe_receiver, 'multi');
3655
- localVariableQuery.put_4fpzoq_k$(tmp2_2, value_3);
3656
- }
3657
-
3658
- if (this.fields_1 == null)
3659
- null;
3660
- else {
3661
- var value_4 = listOf_0(this.fields_1);
3662
- localVariableQuery.put_4fpzoq_k$('fields', value_4);
3663
- }
3664
-
3665
- var localVariableHeaders = LinkedHashMap_init_$Create$();
3666
- var tmp6_method = RequestMethod_GET_getInstance();
3667
- var localVariableConfig = new RequestConfig(tmp6_method, '/companies/accounting/overview', localVariableHeaders, VOID, localVariableQuery, true);
3668
- this.state_1 = 1;
3669
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
3670
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
3671
- return suspendResult;
3672
- }
3673
-
3674
- continue $sm;
3675
- case 1:
3676
- var this_0 = suspendResult;
3677
- var tmp_0 = getKClass(AccountingPortfolio);
3678
- var tmp_1 = null instanceof AccountingPortfolio;
3679
- var tmp_2;
3680
- try {
3681
- tmp_2 = createKType(getKClass(AccountingPortfolio), arrayOf([]), false);
3682
- } catch ($p) {
3683
- var tmp_3;
3684
- if ($p instanceof Error) {
3685
- var _unused_var__etf5q3 = $p;
3686
- tmp_3 = null;
3687
- } else {
3688
- throw $p;
3584
+ this.exceptionState_1 = 4;
3585
+ if (this._this__u8e3s4__1.getAccountingProject === protoOf(AccountingApi).getAccountingProject) {
3586
+ this.state_1 = 2;
3587
+ suspendResult = this._this__u8e3s4__1.getAccountingProject$default_1qa5ec_k$(this.companyId_1, this.projectId_1, this.periodStart_1, this.periodEnd_1, this.fields_1, this);
3588
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3589
+ return suspendResult;
3689
3590
  }
3690
- tmp_2 = tmp_3;
3591
+ continue $sm;
3592
+ } else {
3593
+ this.state_1 = 1;
3594
+ suspendResult = await_0(this._this__u8e3s4__1.getAccountingProject(this.companyId_1, this.projectId_1, this.periodStart_1, this.periodEnd_1, this.fields_1), this);
3595
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3596
+ return suspendResult;
3597
+ }
3598
+ continue $sm;
3691
3599
  }
3692
3600
 
3693
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
3601
+ case 1:
3602
+ this.WHEN_RESULT0__1 = suspendResult;
3603
+ this.state_1 = 3;
3604
+ continue $sm;
3694
3605
  case 2:
3606
+ this.WHEN_RESULT0__1 = suspendResult;
3607
+ this.state_1 = 3;
3608
+ continue $sm;
3609
+ case 3:
3610
+ return this.WHEN_RESULT0__1;
3611
+ case 4:
3695
3612
  throw this.exception_1;
3696
3613
  }
3697
- } catch ($p_0) {
3698
- var e = $p_0;
3699
- if (this.exceptionState_1 === 2) {
3614
+ } catch ($p) {
3615
+ var e = $p;
3616
+ if (this.exceptionState_1 === 4) {
3700
3617
  throw e;
3701
3618
  } else {
3702
3619
  this.state_1 = this.exceptionState_1;
@@ -3705,7 +3622,7 @@ protoOf($getAccountingPortfolioOverviewCOROUTINE$_0).doResume_5yljmg_k$ = functi
3705
3622
  }
3706
3623
  while (true);
3707
3624
  };
3708
- function $getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, fields, resultContinuation) {
3625
+ function $listAccountingEntries$suspendBridgeCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
3709
3626
  CoroutineImpl.call(this, resultContinuation);
3710
3627
  this._this__u8e3s4__1 = _this__u8e3s4;
3711
3628
  this.periodStart_1 = periodStart;
@@ -3713,9 +3630,14 @@ function $getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0(_this__u8e3s4
3713
3630
  this.pageToken_1 = pageToken;
3714
3631
  this.count_1 = count;
3715
3632
  this.companyIds_1 = companyIds;
3633
+ this.accountNumbers_1 = accountNumbers;
3634
+ this.projectIds_1 = projectIds;
3635
+ this.departmentIds_1 = departmentIds;
3636
+ this.supplierIds_1 = supplierIds;
3637
+ this.search_1 = search;
3716
3638
  this.fields_1 = fields;
3717
3639
  }
3718
- protoOf($getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3640
+ protoOf($listAccountingEntries$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3719
3641
  var suspendResult = this.result_1;
3720
3642
  $sm: do
3721
3643
  try {
@@ -3723,16 +3645,16 @@ protoOf($getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0).doResume_5ylj
3723
3645
  switch (tmp) {
3724
3646
  case 0:
3725
3647
  this.exceptionState_1 = 4;
3726
- if (this._this__u8e3s4__1.getAccountingPortfolioOverview === protoOf(AccountingApi).getAccountingPortfolioOverview) {
3648
+ if (this._this__u8e3s4__1.listAccountingEntries === protoOf(AccountingApi).listAccountingEntries) {
3727
3649
  this.state_1 = 2;
3728
- suspendResult = this._this__u8e3s4__1.getAccountingPortfolioOverview$default_czajlf_k$(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.fields_1, this);
3650
+ suspendResult = this._this__u8e3s4__1.listAccountingEntries$default_8ykwvy_k$(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1, this);
3729
3651
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3730
3652
  return suspendResult;
3731
3653
  }
3732
3654
  continue $sm;
3733
3655
  } else {
3734
3656
  this.state_1 = 1;
3735
- suspendResult = await_0(this._this__u8e3s4__1.getAccountingPortfolioOverview(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.fields_1), this);
3657
+ suspendResult = await_0(this._this__u8e3s4__1.listAccountingEntries(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1), this);
3736
3658
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3737
3659
  return suspendResult;
3738
3660
  }
@@ -3763,41 +3685,230 @@ protoOf($getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0).doResume_5ylj
3763
3685
  }
3764
3686
  while (true);
3765
3687
  };
3766
- function $getAccountingProjectCOROUTINE$_0(_this__u8e3s4, companyId, projectId, periodStart, periodEnd, fields, resultContinuation) {
3688
+ function $listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
3767
3689
  CoroutineImpl.call(this, resultContinuation);
3768
3690
  this._this__u8e3s4__1 = _this__u8e3s4;
3769
3691
  this.companyId_1 = companyId;
3770
- this.projectId_1 = projectId;
3771
3692
  this.periodStart_1 = periodStart;
3772
3693
  this.periodEnd_1 = periodEnd;
3694
+ this.pageToken_1 = pageToken;
3695
+ this.count_1 = count;
3696
+ this.accountNumbers_1 = accountNumbers;
3697
+ this.projectIds_1 = projectIds;
3698
+ this.departmentIds_1 = departmentIds;
3699
+ this.supplierIds_1 = supplierIds;
3700
+ this.search_1 = search;
3773
3701
  this.fields_1 = fields;
3774
3702
  }
3775
- protoOf($getAccountingProjectCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3703
+ protoOf($listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3776
3704
  var suspendResult = this.result_1;
3777
3705
  $sm: do
3778
3706
  try {
3779
3707
  var tmp = this.state_1;
3780
3708
  switch (tmp) {
3781
3709
  case 0:
3782
- this.exceptionState_1 = 2;
3783
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
3784
- var localVariableBody = EmptyContent_getInstance();
3785
- var localVariableQuery = LinkedHashMap_init_$Create$();
3786
- if (this.periodStart_1 == null)
3787
- null;
3788
- else {
3789
- var tmp2 = 'periodStart';
3790
- var value = listOf_0(this.periodStart_1);
3791
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
3792
- }
3793
-
3794
- if (this.periodEnd_1 == null)
3795
- null;
3796
- else {
3797
- var tmp2_0 = 'periodEnd';
3798
- var value_0 = listOf_0(this.periodEnd_1);
3799
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
3800
- }
3710
+ this.exceptionState_1 = 4;
3711
+ if (this._this__u8e3s4__1.listCompanyAccountingEntries === protoOf(AccountingApi).listCompanyAccountingEntries) {
3712
+ this.state_1 = 2;
3713
+ suspendResult = this._this__u8e3s4__1.listCompanyAccountingEntries$default_fiblhr_k$(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1, this);
3714
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3715
+ return suspendResult;
3716
+ }
3717
+ continue $sm;
3718
+ } else {
3719
+ this.state_1 = 1;
3720
+ suspendResult = await_0(this._this__u8e3s4__1.listCompanyAccountingEntries(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1), this);
3721
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
3722
+ return suspendResult;
3723
+ }
3724
+ continue $sm;
3725
+ }
3726
+
3727
+ case 1:
3728
+ this.WHEN_RESULT0__1 = suspendResult;
3729
+ this.state_1 = 3;
3730
+ continue $sm;
3731
+ case 2:
3732
+ this.WHEN_RESULT0__1 = suspendResult;
3733
+ this.state_1 = 3;
3734
+ continue $sm;
3735
+ case 3:
3736
+ return this.WHEN_RESULT0__1;
3737
+ case 4:
3738
+ throw this.exception_1;
3739
+ }
3740
+ } catch ($p) {
3741
+ var e = $p;
3742
+ if (this.exceptionState_1 === 4) {
3743
+ throw e;
3744
+ } else {
3745
+ this.state_1 = this.exceptionState_1;
3746
+ this.exception_1 = e;
3747
+ }
3748
+ }
3749
+ while (true);
3750
+ };
3751
+ protoOf(AccountingApi).getAccountingOverview_ypsrw8_k$ = function (companyId, periodStart, periodEnd, fields, $completion) {
3752
+ return getAccountingOverviewOperation_0(this, companyId, periodStart, periodEnd, fields, $completion);
3753
+ };
3754
+ protoOf(AccountingApi).getAccountingOverview$default_3rd91o_k$ = function (companyId, periodStart, periodEnd, fields, $completion, $super) {
3755
+ fields = fields === VOID ? null : fields;
3756
+ return $super === VOID ? this.getAccountingOverview_ypsrw8_k$(companyId, periodStart, periodEnd, fields, $completion) : $super.getAccountingOverview_ypsrw8_k$.call(this, companyId, periodStart, periodEnd, fields, $completion);
3757
+ };
3758
+ protoOf(AccountingApi).getAccountingOverview = function (companyId, periodStart, periodEnd, fields) {
3759
+ var tmp = this;
3760
+ return promisify(function ($completion) {
3761
+ return tmp.getAccountingOverview$default_3rd91o_k$(companyId, periodStart, periodEnd, fields, $completion);
3762
+ });
3763
+ };
3764
+ protoOf(AccountingApi).getAccountingOverview$suspendBridge_k6lg6h_k$ = function (companyId, periodStart, periodEnd, fields, $completion) {
3765
+ var tmp = new $getAccountingOverview$suspendBridgeCOROUTINE$_0(this, companyId, periodStart, periodEnd, fields, $completion);
3766
+ tmp.result_1 = Unit_instance;
3767
+ tmp.exception_1 = null;
3768
+ return tmp.doResume_5yljmg_k$();
3769
+ };
3770
+ protoOf(AccountingApi).getAccountingPortfolioOverview_hrktkm_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) {
3771
+ return getAccountingPortfolioOverviewOperation_0(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3772
+ };
3773
+ protoOf(AccountingApi).getAccountingPortfolioOverview$default_czajlf_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion, $super) {
3774
+ pageToken = pageToken === VOID ? null : pageToken;
3775
+ count = count === VOID ? null : count;
3776
+ companyIds = companyIds === VOID ? null : companyIds;
3777
+ fields = fields === VOID ? null : fields;
3778
+ return $super === VOID ? this.getAccountingPortfolioOverview_hrktkm_k$(periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) : $super.getAccountingPortfolioOverview_hrktkm_k$.call(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3779
+ };
3780
+ protoOf(AccountingApi).getAccountingPortfolioOverview = function (periodStart, periodEnd, pageToken, count, companyIds, fields) {
3781
+ var tmp = this;
3782
+ return promisify(function ($completion) {
3783
+ return tmp.getAccountingPortfolioOverview$default_czajlf_k$(periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3784
+ });
3785
+ };
3786
+ protoOf(AccountingApi).getAccountingPortfolioOverview$suspendBridge_xhlrlj_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) {
3787
+ var tmp = new $getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3788
+ tmp.result_1 = Unit_instance;
3789
+ tmp.exception_1 = null;
3790
+ return tmp.doResume_5yljmg_k$();
3791
+ };
3792
+ protoOf(AccountingApi).getAccountingProject_9ubcaa_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion) {
3793
+ return getAccountingProjectOperation_0(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
3794
+ };
3795
+ protoOf(AccountingApi).getAccountingProject$default_1qa5ec_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion, $super) {
3796
+ fields = fields === VOID ? null : fields;
3797
+ return $super === VOID ? this.getAccountingProject_9ubcaa_k$(companyId, projectId, periodStart, periodEnd, fields, $completion) : $super.getAccountingProject_9ubcaa_k$.call(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
3798
+ };
3799
+ protoOf(AccountingApi).getAccountingProject = function (companyId, projectId, periodStart, periodEnd, fields) {
3800
+ var tmp = this;
3801
+ return promisify(function ($completion) {
3802
+ return tmp.getAccountingProject$default_1qa5ec_k$(companyId, projectId, periodStart, periodEnd, fields, $completion);
3803
+ });
3804
+ };
3805
+ protoOf(AccountingApi).getAccountingProject$suspendBridge_rdmdbh_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion) {
3806
+ var tmp = new $getAccountingProject$suspendBridgeCOROUTINE$_0(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
3807
+ tmp.result_1 = Unit_instance;
3808
+ tmp.exception_1 = null;
3809
+ return tmp.doResume_5yljmg_k$();
3810
+ };
3811
+ protoOf(AccountingApi).listAccountingEntries_c5fn30_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
3812
+ return listAccountingEntriesOperation_0(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3813
+ };
3814
+ protoOf(AccountingApi).listAccountingEntries$default_8ykwvy_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion, $super) {
3815
+ pageToken = pageToken === VOID ? null : pageToken;
3816
+ count = count === VOID ? null : count;
3817
+ companyIds = companyIds === VOID ? null : companyIds;
3818
+ accountNumbers = accountNumbers === VOID ? null : accountNumbers;
3819
+ projectIds = projectIds === VOID ? null : projectIds;
3820
+ departmentIds = departmentIds === VOID ? null : departmentIds;
3821
+ supplierIds = supplierIds === VOID ? null : supplierIds;
3822
+ search = search === VOID ? null : search;
3823
+ fields = fields === VOID ? null : fields;
3824
+ return $super === VOID ? this.listAccountingEntries_c5fn30_k$(periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) : $super.listAccountingEntries_c5fn30_k$.call(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3825
+ };
3826
+ protoOf(AccountingApi).listAccountingEntries = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
3827
+ var tmp = this;
3828
+ return promisify(function ($completion) {
3829
+ return tmp.listAccountingEntries$default_8ykwvy_k$(periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3830
+ });
3831
+ };
3832
+ protoOf(AccountingApi).listAccountingEntries$suspendBridge_2lv8e3_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
3833
+ var tmp = new $listAccountingEntries$suspendBridgeCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3834
+ tmp.result_1 = Unit_instance;
3835
+ tmp.exception_1 = null;
3836
+ return tmp.doResume_5yljmg_k$();
3837
+ };
3838
+ protoOf(AccountingApi).listCompanyAccountingEntries_pl9cv6_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
3839
+ return listCompanyAccountingEntriesOperation_0(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3840
+ };
3841
+ protoOf(AccountingApi).listCompanyAccountingEntries$default_fiblhr_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion, $super) {
3842
+ pageToken = pageToken === VOID ? null : pageToken;
3843
+ count = count === VOID ? null : count;
3844
+ accountNumbers = accountNumbers === VOID ? null : accountNumbers;
3845
+ projectIds = projectIds === VOID ? null : projectIds;
3846
+ departmentIds = departmentIds === VOID ? null : departmentIds;
3847
+ supplierIds = supplierIds === VOID ? null : supplierIds;
3848
+ search = search === VOID ? null : search;
3849
+ fields = fields === VOID ? null : fields;
3850
+ return $super === VOID ? this.listCompanyAccountingEntries_pl9cv6_k$(companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) : $super.listCompanyAccountingEntries_pl9cv6_k$.call(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3851
+ };
3852
+ protoOf(AccountingApi).listCompanyAccountingEntries = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
3853
+ var tmp = this;
3854
+ return promisify(function ($completion) {
3855
+ return tmp.listCompanyAccountingEntries$default_fiblhr_k$(companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3856
+ });
3857
+ };
3858
+ protoOf(AccountingApi).listCompanyAccountingEntries$suspendBridge_xlx8ox_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
3859
+ var tmp = new $listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
3860
+ tmp.result_1 = Unit_instance;
3861
+ tmp.exception_1 = null;
3862
+ return tmp.doResume_5yljmg_k$();
3863
+ };
3864
+ function AccountingApi() {
3865
+ }
3866
+ function getAccountingOverviewOperation(client, companyId, periodStart, periodEnd, fields) {
3867
+ return promisify(function ($completion) {
3868
+ return getAccountingOverviewOperation_0(client, companyId, periodStart, periodEnd, fields, $completion);
3869
+ });
3870
+ }
3871
+ function getAccountingOverviewOperation_0(client, companyId, periodStart, periodEnd, fields, $completion) {
3872
+ fields = fields === VOID ? null : fields;
3873
+ var tmp = new $getAccountingOverviewOperationCOROUTINE$(client, companyId, periodStart, periodEnd, fields, $completion);
3874
+ tmp.result_1 = Unit_instance;
3875
+ tmp.exception_1 = null;
3876
+ return tmp.doResume_5yljmg_k$();
3877
+ }
3878
+ function $getAccountingOverviewOperationCOROUTINE$(client, companyId, periodStart, periodEnd, fields, resultContinuation) {
3879
+ CoroutineImpl.call(this, resultContinuation);
3880
+ this.client_1 = client;
3881
+ this.companyId_1 = companyId;
3882
+ this.periodStart_1 = periodStart;
3883
+ this.periodEnd_1 = periodEnd;
3884
+ this.fields_1 = fields;
3885
+ }
3886
+ protoOf($getAccountingOverviewOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
3887
+ var suspendResult = this.result_1;
3888
+ $sm: do
3889
+ try {
3890
+ var tmp = this.state_1;
3891
+ switch (tmp) {
3892
+ case 0:
3893
+ this.exceptionState_1 = 2;
3894
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
3895
+ var localVariableBody = EmptyContent_getInstance();
3896
+ var localVariableQuery = LinkedHashMap_init_$Create$();
3897
+ if (this.periodStart_1 == null)
3898
+ null;
3899
+ else {
3900
+ var tmp2 = 'periodStart';
3901
+ var value = listOf_0(this.periodStart_1);
3902
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
3903
+ }
3904
+
3905
+ if (this.periodEnd_1 == null)
3906
+ null;
3907
+ else {
3908
+ var tmp2_0 = 'periodEnd';
3909
+ var value_0 = listOf_0(this.periodEnd_1);
3910
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
3911
+ }
3801
3912
 
3802
3913
  if (this.fields_1 == null)
3803
3914
  null;
@@ -3808,10 +3919,10 @@ protoOf($getAccountingProjectCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3808
3919
 
3809
3920
  var localVariableHeaders = LinkedHashMap_init_$Create$();
3810
3921
  var tmp3_method = RequestMethod_GET_getInstance();
3811
- var tmp4_path = replace(replace('/companies/{companyId}/accounting/projects/{projectId}', '{companyId}', this.companyId_1.toString()), '{projectId}', this.projectId_1.toString());
3922
+ var tmp4_path = replace('/companies/{companyId}/accounting/overview', '{companyId}', this.companyId_1.toString());
3812
3923
  var localVariableConfig = new RequestConfig(tmp3_method, tmp4_path, localVariableHeaders, VOID, localVariableQuery, true);
3813
3924
  this.state_1 = 1;
3814
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
3925
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
3815
3926
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3816
3927
  return suspendResult;
3817
3928
  }
@@ -3819,11 +3930,11 @@ protoOf($getAccountingProjectCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3819
3930
  continue $sm;
3820
3931
  case 1:
3821
3932
  var this_0 = suspendResult;
3822
- var tmp_0 = getKClass(AccountingProject);
3823
- var tmp_1 = null instanceof AccountingProject;
3933
+ var tmp_0 = getKClass(AccountingOverview);
3934
+ var tmp_1 = null instanceof AccountingOverview;
3824
3935
  var tmp_2;
3825
3936
  try {
3826
- tmp_2 = createKType(getKClass(AccountingProject), arrayOf([]), false);
3937
+ tmp_2 = createKType(getKClass(AccountingOverview), arrayOf([]), false);
3827
3938
  } catch ($p) {
3828
3939
  var tmp_3;
3829
3940
  if ($p instanceof Error) {
@@ -3850,79 +3961,32 @@ protoOf($getAccountingProjectCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3850
3961
  }
3851
3962
  while (true);
3852
3963
  };
3853
- function $getAccountingProject$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, projectId, periodStart, periodEnd, fields, resultContinuation) {
3854
- CoroutineImpl.call(this, resultContinuation);
3855
- this._this__u8e3s4__1 = _this__u8e3s4;
3856
- this.companyId_1 = companyId;
3857
- this.projectId_1 = projectId;
3858
- this.periodStart_1 = periodStart;
3859
- this.periodEnd_1 = periodEnd;
3860
- this.fields_1 = fields;
3964
+ function getAccountingPortfolioOverviewOperation(client, periodStart, periodEnd, pageToken, count, companyIds, fields) {
3965
+ return promisify(function ($completion) {
3966
+ return getAccountingPortfolioOverviewOperation_0(client, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3967
+ });
3861
3968
  }
3862
- protoOf($getAccountingProject$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3863
- var suspendResult = this.result_1;
3864
- $sm: do
3865
- try {
3866
- var tmp = this.state_1;
3867
- switch (tmp) {
3868
- case 0:
3869
- this.exceptionState_1 = 4;
3870
- if (this._this__u8e3s4__1.getAccountingProject === protoOf(AccountingApi).getAccountingProject) {
3871
- this.state_1 = 2;
3872
- suspendResult = this._this__u8e3s4__1.getAccountingProject$default_1qa5ec_k$(this.companyId_1, this.projectId_1, this.periodStart_1, this.periodEnd_1, this.fields_1, this);
3873
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
3874
- return suspendResult;
3875
- }
3876
- continue $sm;
3877
- } else {
3878
- this.state_1 = 1;
3879
- suspendResult = await_0(this._this__u8e3s4__1.getAccountingProject(this.companyId_1, this.projectId_1, this.periodStart_1, this.periodEnd_1, this.fields_1), this);
3880
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
3881
- return suspendResult;
3882
- }
3883
- continue $sm;
3884
- }
3885
-
3886
- case 1:
3887
- this.WHEN_RESULT0__1 = suspendResult;
3888
- this.state_1 = 3;
3889
- continue $sm;
3890
- case 2:
3891
- this.WHEN_RESULT0__1 = suspendResult;
3892
- this.state_1 = 3;
3893
- continue $sm;
3894
- case 3:
3895
- return this.WHEN_RESULT0__1;
3896
- case 4:
3897
- throw this.exception_1;
3898
- }
3899
- } catch ($p) {
3900
- var e = $p;
3901
- if (this.exceptionState_1 === 4) {
3902
- throw e;
3903
- } else {
3904
- this.state_1 = this.exceptionState_1;
3905
- this.exception_1 = e;
3906
- }
3907
- }
3908
- while (true);
3909
- };
3910
- function $listAccountingEntriesCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
3969
+ function getAccountingPortfolioOverviewOperation_0(client, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) {
3970
+ pageToken = pageToken === VOID ? null : pageToken;
3971
+ count = count === VOID ? null : count;
3972
+ companyIds = companyIds === VOID ? null : companyIds;
3973
+ fields = fields === VOID ? null : fields;
3974
+ var tmp = new $getAccountingPortfolioOverviewOperationCOROUTINE$(client, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
3975
+ tmp.result_1 = Unit_instance;
3976
+ tmp.exception_1 = null;
3977
+ return tmp.doResume_5yljmg_k$();
3978
+ }
3979
+ function $getAccountingPortfolioOverviewOperationCOROUTINE$(client, periodStart, periodEnd, pageToken, count, companyIds, fields, resultContinuation) {
3911
3980
  CoroutineImpl.call(this, resultContinuation);
3912
- this._this__u8e3s4__1 = _this__u8e3s4;
3981
+ this.client_1 = client;
3913
3982
  this.periodStart_1 = periodStart;
3914
3983
  this.periodEnd_1 = periodEnd;
3915
3984
  this.pageToken_1 = pageToken;
3916
3985
  this.count_1 = count;
3917
3986
  this.companyIds_1 = companyIds;
3918
- this.accountNumbers_1 = accountNumbers;
3919
- this.projectIds_1 = projectIds;
3920
- this.departmentIds_1 = departmentIds;
3921
- this.supplierIds_1 = supplierIds;
3922
- this.search_1 = search;
3923
3987
  this.fields_1 = fields;
3924
3988
  }
3925
- protoOf($listAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3989
+ protoOf($getAccountingPortfolioOverviewOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
3926
3990
  var suspendResult = this.result_1;
3927
3991
  $sm: do
3928
3992
  try {
@@ -3973,61 +4037,117 @@ protoOf($listAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function () {
3973
4037
  localVariableQuery.put_4fpzoq_k$(tmp2_2, value_3);
3974
4038
  }
3975
4039
 
3976
- var tmp5_safe_receiver = this.accountNumbers_1;
3977
- if (tmp5_safe_receiver == null)
4040
+ if (this.fields_1 == null)
3978
4041
  null;
3979
4042
  else {
3980
- var tmp2_3 = 'accountNumbers';
3981
- var value_4 = toMultiValue(tmp5_safe_receiver, 'multi');
3982
- localVariableQuery.put_4fpzoq_k$(tmp2_3, value_4);
4043
+ var value_4 = listOf_0(this.fields_1);
4044
+ localVariableQuery.put_4fpzoq_k$('fields', value_4);
3983
4045
  }
3984
4046
 
3985
- var tmp6_safe_receiver = this.projectIds_1;
3986
- if (tmp6_safe_receiver == null)
3987
- null;
3988
- else {
3989
- var tmp2_4 = 'projectIds';
3990
- var value_5 = toMultiValue(tmp6_safe_receiver, 'multi');
3991
- localVariableQuery.put_4fpzoq_k$(tmp2_4, value_5);
4047
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
4048
+ var tmp6_method = RequestMethod_GET_getInstance();
4049
+ var localVariableConfig = new RequestConfig(tmp6_method, '/companies/accounting/overview', localVariableHeaders, VOID, localVariableQuery, true);
4050
+ this.state_1 = 1;
4051
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4052
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
4053
+ return suspendResult;
3992
4054
  }
3993
4055
 
3994
- var tmp7_safe_receiver = this.departmentIds_1;
3995
- if (tmp7_safe_receiver == null)
3996
- null;
3997
- else {
3998
- var tmp2_5 = 'departmentIds';
3999
- var value_6 = toMultiValue(tmp7_safe_receiver, 'multi');
4000
- localVariableQuery.put_4fpzoq_k$(tmp2_5, value_6);
4056
+ continue $sm;
4057
+ case 1:
4058
+ var this_0 = suspendResult;
4059
+ var tmp_0 = getKClass(AccountingPortfolio);
4060
+ var tmp_1 = null instanceof AccountingPortfolio;
4061
+ var tmp_2;
4062
+ try {
4063
+ tmp_2 = createKType(getKClass(AccountingPortfolio), arrayOf([]), false);
4064
+ } catch ($p) {
4065
+ var tmp_3;
4066
+ if ($p instanceof Error) {
4067
+ var _unused_var__etf5q3 = $p;
4068
+ tmp_3 = null;
4069
+ } else {
4070
+ throw $p;
4071
+ }
4072
+ tmp_2 = tmp_3;
4001
4073
  }
4002
4074
 
4003
- var tmp8_safe_receiver = this.supplierIds_1;
4004
- if (tmp8_safe_receiver == null)
4075
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
4076
+ case 2:
4077
+ throw this.exception_1;
4078
+ }
4079
+ } catch ($p_0) {
4080
+ var e = $p_0;
4081
+ if (this.exceptionState_1 === 2) {
4082
+ throw e;
4083
+ } else {
4084
+ this.state_1 = this.exceptionState_1;
4085
+ this.exception_1 = e;
4086
+ }
4087
+ }
4088
+ while (true);
4089
+ };
4090
+ function getAccountingProjectOperation(client, companyId, projectId, periodStart, periodEnd, fields) {
4091
+ return promisify(function ($completion) {
4092
+ return getAccountingProjectOperation_0(client, companyId, projectId, periodStart, periodEnd, fields, $completion);
4093
+ });
4094
+ }
4095
+ function getAccountingProjectOperation_0(client, companyId, projectId, periodStart, periodEnd, fields, $completion) {
4096
+ fields = fields === VOID ? null : fields;
4097
+ var tmp = new $getAccountingProjectOperationCOROUTINE$(client, companyId, projectId, periodStart, periodEnd, fields, $completion);
4098
+ tmp.result_1 = Unit_instance;
4099
+ tmp.exception_1 = null;
4100
+ return tmp.doResume_5yljmg_k$();
4101
+ }
4102
+ function $getAccountingProjectOperationCOROUTINE$(client, companyId, projectId, periodStart, periodEnd, fields, resultContinuation) {
4103
+ CoroutineImpl.call(this, resultContinuation);
4104
+ this.client_1 = client;
4105
+ this.companyId_1 = companyId;
4106
+ this.projectId_1 = projectId;
4107
+ this.periodStart_1 = periodStart;
4108
+ this.periodEnd_1 = periodEnd;
4109
+ this.fields_1 = fields;
4110
+ }
4111
+ protoOf($getAccountingProjectOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
4112
+ var suspendResult = this.result_1;
4113
+ $sm: do
4114
+ try {
4115
+ var tmp = this.state_1;
4116
+ switch (tmp) {
4117
+ case 0:
4118
+ this.exceptionState_1 = 2;
4119
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
4120
+ var localVariableBody = EmptyContent_getInstance();
4121
+ var localVariableQuery = LinkedHashMap_init_$Create$();
4122
+ if (this.periodStart_1 == null)
4005
4123
  null;
4006
4124
  else {
4007
- var tmp2_6 = 'supplierIds';
4008
- var value_7 = toMultiValue(tmp8_safe_receiver, 'multi');
4009
- localVariableQuery.put_4fpzoq_k$(tmp2_6, value_7);
4125
+ var tmp2 = 'periodStart';
4126
+ var value = listOf_0(this.periodStart_1);
4127
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
4010
4128
  }
4011
4129
 
4012
- if (this.search_1 == null)
4130
+ if (this.periodEnd_1 == null)
4013
4131
  null;
4014
4132
  else {
4015
- var value_8 = listOf_0(this.search_1);
4016
- localVariableQuery.put_4fpzoq_k$('search', value_8);
4133
+ var tmp2_0 = 'periodEnd';
4134
+ var value_0 = listOf_0(this.periodEnd_1);
4135
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
4017
4136
  }
4018
4137
 
4019
4138
  if (this.fields_1 == null)
4020
4139
  null;
4021
4140
  else {
4022
- var value_9 = listOf_0(this.fields_1);
4023
- localVariableQuery.put_4fpzoq_k$('fields', value_9);
4141
+ var value_1 = listOf_0(this.fields_1);
4142
+ localVariableQuery.put_4fpzoq_k$('fields', value_1);
4024
4143
  }
4025
4144
 
4026
4145
  var localVariableHeaders = LinkedHashMap_init_$Create$();
4027
- var tmp11_method = RequestMethod_GET_getInstance();
4028
- var localVariableConfig = new RequestConfig(tmp11_method, '/companies/accounting/entries', localVariableHeaders, VOID, localVariableQuery, true);
4146
+ var tmp3_method = RequestMethod_GET_getInstance();
4147
+ var tmp4_path = replace(replace('/companies/{companyId}/accounting/projects/{projectId}', '{companyId}', this.companyId_1.toString()), '{projectId}', this.projectId_1.toString());
4148
+ var localVariableConfig = new RequestConfig(tmp3_method, tmp4_path, localVariableHeaders, VOID, localVariableQuery, true);
4029
4149
  this.state_1 = 1;
4030
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4150
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4031
4151
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4032
4152
  return suspendResult;
4033
4153
  }
@@ -4035,11 +4155,11 @@ protoOf($listAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function () {
4035
4155
  continue $sm;
4036
4156
  case 1:
4037
4157
  var this_0 = suspendResult;
4038
- var tmp_0 = getKClass(AccountingEntries);
4039
- var tmp_1 = null instanceof AccountingEntries;
4158
+ var tmp_0 = getKClass(AccountingProject);
4159
+ var tmp_1 = null instanceof AccountingProject;
4040
4160
  var tmp_2;
4041
4161
  try {
4042
- tmp_2 = createKType(getKClass(AccountingEntries), arrayOf([]), false);
4162
+ tmp_2 = createKType(getKClass(AccountingProject), arrayOf([]), false);
4043
4163
  } catch ($p) {
4044
4164
  var tmp_3;
4045
4165
  if ($p instanceof Error) {
@@ -4066,9 +4186,29 @@ protoOf($listAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function () {
4066
4186
  }
4067
4187
  while (true);
4068
4188
  };
4069
- function $listAccountingEntries$suspendBridgeCOROUTINE$_0(_this__u8e3s4, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
4189
+ function listAccountingEntriesOperation(client, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
4190
+ return promisify(function ($completion) {
4191
+ return listAccountingEntriesOperation_0(client, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4192
+ });
4193
+ }
4194
+ function listAccountingEntriesOperation_0(client, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4195
+ pageToken = pageToken === VOID ? null : pageToken;
4196
+ count = count === VOID ? null : count;
4197
+ companyIds = companyIds === VOID ? null : companyIds;
4198
+ accountNumbers = accountNumbers === VOID ? null : accountNumbers;
4199
+ projectIds = projectIds === VOID ? null : projectIds;
4200
+ departmentIds = departmentIds === VOID ? null : departmentIds;
4201
+ supplierIds = supplierIds === VOID ? null : supplierIds;
4202
+ search = search === VOID ? null : search;
4203
+ fields = fields === VOID ? null : fields;
4204
+ var tmp = new $listAccountingEntriesOperationCOROUTINE$(client, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4205
+ tmp.result_1 = Unit_instance;
4206
+ tmp.exception_1 = null;
4207
+ return tmp.doResume_5yljmg_k$();
4208
+ }
4209
+ function $listAccountingEntriesOperationCOROUTINE$(client, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
4070
4210
  CoroutineImpl.call(this, resultContinuation);
4071
- this._this__u8e3s4__1 = _this__u8e3s4;
4211
+ this.client_1 = client;
4072
4212
  this.periodStart_1 = periodStart;
4073
4213
  this.periodEnd_1 = periodEnd;
4074
4214
  this.pageToken_1 = pageToken;
@@ -4081,46 +4221,142 @@ function $listAccountingEntries$suspendBridgeCOROUTINE$_0(_this__u8e3s4, periodS
4081
4221
  this.search_1 = search;
4082
4222
  this.fields_1 = fields;
4083
4223
  }
4084
- protoOf($listAccountingEntries$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
4224
+ protoOf($listAccountingEntriesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
4085
4225
  var suspendResult = this.result_1;
4086
4226
  $sm: do
4087
4227
  try {
4088
4228
  var tmp = this.state_1;
4089
4229
  switch (tmp) {
4090
4230
  case 0:
4091
- this.exceptionState_1 = 4;
4092
- if (this._this__u8e3s4__1.listAccountingEntries === protoOf(AccountingApi).listAccountingEntries) {
4093
- this.state_1 = 2;
4094
- suspendResult = this._this__u8e3s4__1.listAccountingEntries$default_8ykwvy_k$(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1, this);
4095
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
4096
- return suspendResult;
4097
- }
4098
- continue $sm;
4099
- } else {
4100
- this.state_1 = 1;
4101
- suspendResult = await_0(this._this__u8e3s4__1.listAccountingEntries(this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.companyIds_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1), this);
4102
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
4103
- return suspendResult;
4104
- }
4105
- continue $sm;
4231
+ this.exceptionState_1 = 2;
4232
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
4233
+ var localVariableBody = EmptyContent_getInstance();
4234
+ var localVariableQuery = LinkedHashMap_init_$Create$();
4235
+ if (this.pageToken_1 == null)
4236
+ null;
4237
+ else {
4238
+ var tmp2 = 'pageToken';
4239
+ var value = listOf_0(this.pageToken_1);
4240
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
4241
+ }
4242
+
4243
+ if (this.count_1 == null)
4244
+ null;
4245
+ else {
4246
+ var value_0 = listOf_0('' + this.count_1);
4247
+ localVariableQuery.put_4fpzoq_k$('count', value_0);
4248
+ }
4249
+
4250
+ if (this.periodStart_1 == null)
4251
+ null;
4252
+ else {
4253
+ var tmp2_0 = 'periodStart';
4254
+ var value_1 = listOf_0(this.periodStart_1);
4255
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
4256
+ }
4257
+
4258
+ if (this.periodEnd_1 == null)
4259
+ null;
4260
+ else {
4261
+ var tmp2_1 = 'periodEnd';
4262
+ var value_2 = listOf_0(this.periodEnd_1);
4263
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
4264
+ }
4265
+
4266
+ var tmp4_safe_receiver = this.companyIds_1;
4267
+ if (tmp4_safe_receiver == null)
4268
+ null;
4269
+ else {
4270
+ var tmp2_2 = 'companyIds';
4271
+ var value_3 = toMultiValue(tmp4_safe_receiver, 'multi');
4272
+ localVariableQuery.put_4fpzoq_k$(tmp2_2, value_3);
4273
+ }
4274
+
4275
+ var tmp5_safe_receiver = this.accountNumbers_1;
4276
+ if (tmp5_safe_receiver == null)
4277
+ null;
4278
+ else {
4279
+ var tmp2_3 = 'accountNumbers';
4280
+ var value_4 = toMultiValue(tmp5_safe_receiver, 'multi');
4281
+ localVariableQuery.put_4fpzoq_k$(tmp2_3, value_4);
4282
+ }
4283
+
4284
+ var tmp6_safe_receiver = this.projectIds_1;
4285
+ if (tmp6_safe_receiver == null)
4286
+ null;
4287
+ else {
4288
+ var tmp2_4 = 'projectIds';
4289
+ var value_5 = toMultiValue(tmp6_safe_receiver, 'multi');
4290
+ localVariableQuery.put_4fpzoq_k$(tmp2_4, value_5);
4291
+ }
4292
+
4293
+ var tmp7_safe_receiver = this.departmentIds_1;
4294
+ if (tmp7_safe_receiver == null)
4295
+ null;
4296
+ else {
4297
+ var tmp2_5 = 'departmentIds';
4298
+ var value_6 = toMultiValue(tmp7_safe_receiver, 'multi');
4299
+ localVariableQuery.put_4fpzoq_k$(tmp2_5, value_6);
4300
+ }
4301
+
4302
+ var tmp8_safe_receiver = this.supplierIds_1;
4303
+ if (tmp8_safe_receiver == null)
4304
+ null;
4305
+ else {
4306
+ var tmp2_6 = 'supplierIds';
4307
+ var value_7 = toMultiValue(tmp8_safe_receiver, 'multi');
4308
+ localVariableQuery.put_4fpzoq_k$(tmp2_6, value_7);
4309
+ }
4310
+
4311
+ if (this.search_1 == null)
4312
+ null;
4313
+ else {
4314
+ var value_8 = listOf_0(this.search_1);
4315
+ localVariableQuery.put_4fpzoq_k$('search', value_8);
4316
+ }
4317
+
4318
+ if (this.fields_1 == null)
4319
+ null;
4320
+ else {
4321
+ var value_9 = listOf_0(this.fields_1);
4322
+ localVariableQuery.put_4fpzoq_k$('fields', value_9);
4323
+ }
4324
+
4325
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
4326
+ var tmp11_method = RequestMethod_GET_getInstance();
4327
+ var localVariableConfig = new RequestConfig(tmp11_method, '/companies/accounting/entries', localVariableHeaders, VOID, localVariableQuery, true);
4328
+ this.state_1 = 1;
4329
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4330
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
4331
+ return suspendResult;
4106
4332
  }
4107
4333
 
4108
- case 1:
4109
- this.WHEN_RESULT0__1 = suspendResult;
4110
- this.state_1 = 3;
4111
4334
  continue $sm;
4335
+ case 1:
4336
+ var this_0 = suspendResult;
4337
+ var tmp_0 = getKClass(AccountingEntries);
4338
+ var tmp_1 = null instanceof AccountingEntries;
4339
+ var tmp_2;
4340
+ try {
4341
+ tmp_2 = createKType(getKClass(AccountingEntries), arrayOf([]), false);
4342
+ } catch ($p) {
4343
+ var tmp_3;
4344
+ if ($p instanceof Error) {
4345
+ var _unused_var__etf5q3 = $p;
4346
+ tmp_3 = null;
4347
+ } else {
4348
+ throw $p;
4349
+ }
4350
+ tmp_2 = tmp_3;
4351
+ }
4352
+
4353
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
4112
4354
  case 2:
4113
- this.WHEN_RESULT0__1 = suspendResult;
4114
- this.state_1 = 3;
4115
- continue $sm;
4116
- case 3:
4117
- return this.WHEN_RESULT0__1;
4118
- case 4:
4119
4355
  throw this.exception_1;
4120
4356
  }
4121
- } catch ($p) {
4122
- var e = $p;
4123
- if (this.exceptionState_1 === 4) {
4357
+ } catch ($p_0) {
4358
+ var e = $p_0;
4359
+ if (this.exceptionState_1 === 2) {
4124
4360
  throw e;
4125
4361
  } else {
4126
4362
  this.state_1 = this.exceptionState_1;
@@ -4129,9 +4365,28 @@ protoOf($listAccountingEntries$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = f
4129
4365
  }
4130
4366
  while (true);
4131
4367
  };
4132
- function $listCompanyAccountingEntriesCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
4368
+ function listCompanyAccountingEntriesOperation(client, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
4369
+ return promisify(function ($completion) {
4370
+ return listCompanyAccountingEntriesOperation_0(client, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4371
+ });
4372
+ }
4373
+ function listCompanyAccountingEntriesOperation_0(client, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4374
+ pageToken = pageToken === VOID ? null : pageToken;
4375
+ count = count === VOID ? null : count;
4376
+ accountNumbers = accountNumbers === VOID ? null : accountNumbers;
4377
+ projectIds = projectIds === VOID ? null : projectIds;
4378
+ departmentIds = departmentIds === VOID ? null : departmentIds;
4379
+ supplierIds = supplierIds === VOID ? null : supplierIds;
4380
+ search = search === VOID ? null : search;
4381
+ fields = fields === VOID ? null : fields;
4382
+ var tmp = new $listCompanyAccountingEntriesOperationCOROUTINE$(client, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4383
+ tmp.result_1 = Unit_instance;
4384
+ tmp.exception_1 = null;
4385
+ return tmp.doResume_5yljmg_k$();
4386
+ }
4387
+ function $listCompanyAccountingEntriesOperationCOROUTINE$(client, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
4133
4388
  CoroutineImpl.call(this, resultContinuation);
4134
- this._this__u8e3s4__1 = _this__u8e3s4;
4389
+ this.client_1 = client;
4135
4390
  this.companyId_1 = companyId;
4136
4391
  this.periodStart_1 = periodStart;
4137
4392
  this.periodEnd_1 = periodEnd;
@@ -4144,7 +4399,7 @@ function $listCompanyAccountingEntriesCOROUTINE$_0(_this__u8e3s4, companyId, per
4144
4399
  this.search_1 = search;
4145
4400
  this.fields_1 = fields;
4146
4401
  }
4147
- protoOf($listCompanyAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function () {
4402
+ protoOf($listCompanyAccountingEntriesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
4148
4403
  var suspendResult = this.result_1;
4149
4404
  $sm: do
4150
4405
  try {
@@ -4241,7 +4496,7 @@ protoOf($listCompanyAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function
4241
4496
  var tmp11_path = replace('/companies/{companyId}/accounting/entries', '{companyId}', this.companyId_1.toString());
4242
4497
  var localVariableConfig = new RequestConfig(tmp10_method, tmp11_path, localVariableHeaders, VOID, localVariableQuery, true);
4243
4498
  this.state_1 = 1;
4244
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4499
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
4245
4500
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4246
4501
  return suspendResult;
4247
4502
  }
@@ -4280,199 +4535,6 @@ protoOf($listCompanyAccountingEntriesCOROUTINE$_0).doResume_5yljmg_k$ = function
4280
4535
  }
4281
4536
  while (true);
4282
4537
  };
4283
- function $listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0(_this__u8e3s4, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, resultContinuation) {
4284
- CoroutineImpl.call(this, resultContinuation);
4285
- this._this__u8e3s4__1 = _this__u8e3s4;
4286
- this.companyId_1 = companyId;
4287
- this.periodStart_1 = periodStart;
4288
- this.periodEnd_1 = periodEnd;
4289
- this.pageToken_1 = pageToken;
4290
- this.count_1 = count;
4291
- this.accountNumbers_1 = accountNumbers;
4292
- this.projectIds_1 = projectIds;
4293
- this.departmentIds_1 = departmentIds;
4294
- this.supplierIds_1 = supplierIds;
4295
- this.search_1 = search;
4296
- this.fields_1 = fields;
4297
- }
4298
- protoOf($listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0).doResume_5yljmg_k$ = function () {
4299
- var suspendResult = this.result_1;
4300
- $sm: do
4301
- try {
4302
- var tmp = this.state_1;
4303
- switch (tmp) {
4304
- case 0:
4305
- this.exceptionState_1 = 4;
4306
- if (this._this__u8e3s4__1.listCompanyAccountingEntries === protoOf(AccountingApi).listCompanyAccountingEntries) {
4307
- this.state_1 = 2;
4308
- suspendResult = this._this__u8e3s4__1.listCompanyAccountingEntries$default_fiblhr_k$(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1, this);
4309
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
4310
- return suspendResult;
4311
- }
4312
- continue $sm;
4313
- } else {
4314
- this.state_1 = 1;
4315
- suspendResult = await_0(this._this__u8e3s4__1.listCompanyAccountingEntries(this.companyId_1, this.periodStart_1, this.periodEnd_1, this.pageToken_1, this.count_1, this.accountNumbers_1, this.projectIds_1, this.departmentIds_1, this.supplierIds_1, this.search_1, this.fields_1), this);
4316
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
4317
- return suspendResult;
4318
- }
4319
- continue $sm;
4320
- }
4321
-
4322
- case 1:
4323
- this.WHEN_RESULT0__1 = suspendResult;
4324
- this.state_1 = 3;
4325
- continue $sm;
4326
- case 2:
4327
- this.WHEN_RESULT0__1 = suspendResult;
4328
- this.state_1 = 3;
4329
- continue $sm;
4330
- case 3:
4331
- return this.WHEN_RESULT0__1;
4332
- case 4:
4333
- throw this.exception_1;
4334
- }
4335
- } catch ($p) {
4336
- var e = $p;
4337
- if (this.exceptionState_1 === 4) {
4338
- throw e;
4339
- } else {
4340
- this.state_1 = this.exceptionState_1;
4341
- this.exception_1 = e;
4342
- }
4343
- }
4344
- while (true);
4345
- };
4346
- protoOf(AccountingApi).getAccountingOverview_ypsrw8_k$ = function (companyId, periodStart, periodEnd, fields, $completion) {
4347
- var tmp = new $getAccountingOverviewCOROUTINE$_0(this, companyId, periodStart, periodEnd, fields, $completion);
4348
- tmp.result_1 = Unit_instance;
4349
- tmp.exception_1 = null;
4350
- return tmp.doResume_5yljmg_k$();
4351
- };
4352
- protoOf(AccountingApi).getAccountingOverview$default_3rd91o_k$ = function (companyId, periodStart, periodEnd, fields, $completion, $super) {
4353
- fields = fields === VOID ? null : fields;
4354
- return $super === VOID ? this.getAccountingOverview_ypsrw8_k$(companyId, periodStart, periodEnd, fields, $completion) : $super.getAccountingOverview_ypsrw8_k$.call(this, companyId, periodStart, periodEnd, fields, $completion);
4355
- };
4356
- protoOf(AccountingApi).getAccountingOverview = function (companyId, periodStart, periodEnd, fields) {
4357
- var tmp = this;
4358
- return promisify(function ($completion) {
4359
- return tmp.getAccountingOverview$default_3rd91o_k$(companyId, periodStart, periodEnd, fields, $completion);
4360
- });
4361
- };
4362
- protoOf(AccountingApi).getAccountingOverview$suspendBridge_k6lg6h_k$ = function (companyId, periodStart, periodEnd, fields, $completion) {
4363
- var tmp = new $getAccountingOverview$suspendBridgeCOROUTINE$_0(this, companyId, periodStart, periodEnd, fields, $completion);
4364
- tmp.result_1 = Unit_instance;
4365
- tmp.exception_1 = null;
4366
- return tmp.doResume_5yljmg_k$();
4367
- };
4368
- protoOf(AccountingApi).getAccountingPortfolioOverview_hrktkm_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) {
4369
- var tmp = new $getAccountingPortfolioOverviewCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
4370
- tmp.result_1 = Unit_instance;
4371
- tmp.exception_1 = null;
4372
- return tmp.doResume_5yljmg_k$();
4373
- };
4374
- protoOf(AccountingApi).getAccountingPortfolioOverview$default_czajlf_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion, $super) {
4375
- pageToken = pageToken === VOID ? null : pageToken;
4376
- count = count === VOID ? null : count;
4377
- companyIds = companyIds === VOID ? null : companyIds;
4378
- fields = fields === VOID ? null : fields;
4379
- return $super === VOID ? this.getAccountingPortfolioOverview_hrktkm_k$(periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) : $super.getAccountingPortfolioOverview_hrktkm_k$.call(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
4380
- };
4381
- protoOf(AccountingApi).getAccountingPortfolioOverview = function (periodStart, periodEnd, pageToken, count, companyIds, fields) {
4382
- var tmp = this;
4383
- return promisify(function ($completion) {
4384
- return tmp.getAccountingPortfolioOverview$default_czajlf_k$(periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
4385
- });
4386
- };
4387
- protoOf(AccountingApi).getAccountingPortfolioOverview$suspendBridge_xhlrlj_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, fields, $completion) {
4388
- var tmp = new $getAccountingPortfolioOverview$suspendBridgeCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, fields, $completion);
4389
- tmp.result_1 = Unit_instance;
4390
- tmp.exception_1 = null;
4391
- return tmp.doResume_5yljmg_k$();
4392
- };
4393
- protoOf(AccountingApi).getAccountingProject_9ubcaa_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion) {
4394
- var tmp = new $getAccountingProjectCOROUTINE$_0(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
4395
- tmp.result_1 = Unit_instance;
4396
- tmp.exception_1 = null;
4397
- return tmp.doResume_5yljmg_k$();
4398
- };
4399
- protoOf(AccountingApi).getAccountingProject$default_1qa5ec_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion, $super) {
4400
- fields = fields === VOID ? null : fields;
4401
- return $super === VOID ? this.getAccountingProject_9ubcaa_k$(companyId, projectId, periodStart, periodEnd, fields, $completion) : $super.getAccountingProject_9ubcaa_k$.call(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
4402
- };
4403
- protoOf(AccountingApi).getAccountingProject = function (companyId, projectId, periodStart, periodEnd, fields) {
4404
- var tmp = this;
4405
- return promisify(function ($completion) {
4406
- return tmp.getAccountingProject$default_1qa5ec_k$(companyId, projectId, periodStart, periodEnd, fields, $completion);
4407
- });
4408
- };
4409
- protoOf(AccountingApi).getAccountingProject$suspendBridge_rdmdbh_k$ = function (companyId, projectId, periodStart, periodEnd, fields, $completion) {
4410
- var tmp = new $getAccountingProject$suspendBridgeCOROUTINE$_0(this, companyId, projectId, periodStart, periodEnd, fields, $completion);
4411
- tmp.result_1 = Unit_instance;
4412
- tmp.exception_1 = null;
4413
- return tmp.doResume_5yljmg_k$();
4414
- };
4415
- protoOf(AccountingApi).listAccountingEntries_c5fn30_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4416
- var tmp = new $listAccountingEntriesCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4417
- tmp.result_1 = Unit_instance;
4418
- tmp.exception_1 = null;
4419
- return tmp.doResume_5yljmg_k$();
4420
- };
4421
- protoOf(AccountingApi).listAccountingEntries$default_8ykwvy_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion, $super) {
4422
- pageToken = pageToken === VOID ? null : pageToken;
4423
- count = count === VOID ? null : count;
4424
- companyIds = companyIds === VOID ? null : companyIds;
4425
- accountNumbers = accountNumbers === VOID ? null : accountNumbers;
4426
- projectIds = projectIds === VOID ? null : projectIds;
4427
- departmentIds = departmentIds === VOID ? null : departmentIds;
4428
- supplierIds = supplierIds === VOID ? null : supplierIds;
4429
- search = search === VOID ? null : search;
4430
- fields = fields === VOID ? null : fields;
4431
- return $super === VOID ? this.listAccountingEntries_c5fn30_k$(periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) : $super.listAccountingEntries_c5fn30_k$.call(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4432
- };
4433
- protoOf(AccountingApi).listAccountingEntries = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
4434
- var tmp = this;
4435
- return promisify(function ($completion) {
4436
- return tmp.listAccountingEntries$default_8ykwvy_k$(periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4437
- });
4438
- };
4439
- protoOf(AccountingApi).listAccountingEntries$suspendBridge_2lv8e3_k$ = function (periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4440
- var tmp = new $listAccountingEntries$suspendBridgeCOROUTINE$_0(this, periodStart, periodEnd, pageToken, count, companyIds, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4441
- tmp.result_1 = Unit_instance;
4442
- tmp.exception_1 = null;
4443
- return tmp.doResume_5yljmg_k$();
4444
- };
4445
- protoOf(AccountingApi).listCompanyAccountingEntries_pl9cv6_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4446
- var tmp = new $listCompanyAccountingEntriesCOROUTINE$_0(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4447
- tmp.result_1 = Unit_instance;
4448
- tmp.exception_1 = null;
4449
- return tmp.doResume_5yljmg_k$();
4450
- };
4451
- protoOf(AccountingApi).listCompanyAccountingEntries$default_fiblhr_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion, $super) {
4452
- pageToken = pageToken === VOID ? null : pageToken;
4453
- count = count === VOID ? null : count;
4454
- accountNumbers = accountNumbers === VOID ? null : accountNumbers;
4455
- projectIds = projectIds === VOID ? null : projectIds;
4456
- departmentIds = departmentIds === VOID ? null : departmentIds;
4457
- supplierIds = supplierIds === VOID ? null : supplierIds;
4458
- search = search === VOID ? null : search;
4459
- fields = fields === VOID ? null : fields;
4460
- return $super === VOID ? this.listCompanyAccountingEntries_pl9cv6_k$(companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) : $super.listCompanyAccountingEntries_pl9cv6_k$.call(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4461
- };
4462
- protoOf(AccountingApi).listCompanyAccountingEntries = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields) {
4463
- var tmp = this;
4464
- return promisify(function ($completion) {
4465
- return tmp.listCompanyAccountingEntries$default_fiblhr_k$(companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4466
- });
4467
- };
4468
- protoOf(AccountingApi).listCompanyAccountingEntries$suspendBridge_xlx8ox_k$ = function (companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion) {
4469
- var tmp = new $listCompanyAccountingEntries$suspendBridgeCOROUTINE$_0(this, companyId, periodStart, periodEnd, pageToken, count, accountNumbers, projectIds, departmentIds, supplierIds, search, fields, $completion);
4470
- tmp.result_1 = Unit_instance;
4471
- tmp.exception_1 = null;
4472
- return tmp.doResume_5yljmg_k$();
4473
- };
4474
- function AccountingApi() {
4475
- }
4476
4538
  function AccountingDimension$Companion$$childSerializers$_anonymous__461g4n() {
4477
4539
  return new ArrayListSerializer($serializer_getInstance_18());
4478
4540
  }
@@ -7016,6 +7078,11 @@ export {
7016
7078
  AccountingEntryResult as AccountingEntryResult,
7017
7079
  AccountingEntriesResult as AccountingEntriesResult,
7018
7080
  AccountingApi as AccountingApi,
7081
+ getAccountingOverviewOperation as getAccountingOverviewOperation,
7082
+ getAccountingPortfolioOverviewOperation as getAccountingPortfolioOverviewOperation,
7083
+ getAccountingProjectOperation as getAccountingProjectOperation,
7084
+ listAccountingEntriesOperation as listAccountingEntriesOperation,
7085
+ listCompanyAccountingEntriesOperation as listCompanyAccountingEntriesOperation,
7019
7086
  AccountingDimension as AccountingDimension,
7020
7087
  AccountingEntries as AccountingEntries,
7021
7088
  AccountingEntry as AccountingEntry,