@solibo/home-api 1.41.1 → 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 (71) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
  2. package/kotlin-kotlin-stdlib.mjs +0 -4
  3. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  4. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
  5. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/solibo-sdk-sdk-api-accounting.mjs +581 -514
  8. package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
  9. package/solibo-sdk-sdk-api-board.mjs +531 -472
  10. package/solibo-sdk-sdk-api-board.mjs.map +1 -1
  11. package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
  12. package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
  13. package/solibo-sdk-sdk-api-company.mjs +4382 -3959
  14. package/solibo-sdk-sdk-api-company.mjs.map +1 -1
  15. package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
  16. package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
  17. package/solibo-sdk-sdk-api-document.mjs +7517 -6991
  18. package/solibo-sdk-sdk-api-document.mjs.map +1 -1
  19. package/solibo-sdk-sdk-api-economy.mjs +966 -856
  20. package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
  21. package/solibo-sdk-sdk-api-expense.mjs +1015 -902
  22. package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
  23. package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
  24. package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
  25. package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
  26. package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
  27. package/solibo-sdk-sdk-api-insurance.mjs +778 -695
  28. package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
  29. package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
  30. package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
  31. package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
  32. package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
  33. package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
  34. package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
  35. package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
  36. package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
  37. package/solibo-sdk-sdk-api-marketing.mjs +383 -337
  38. package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
  39. package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
  40. package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
  41. package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
  42. package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
  43. package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
  44. package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
  45. package/solibo-sdk-sdk-api-person.mjs +1488 -1339
  46. package/solibo-sdk-sdk-api-person.mjs.map +1 -1
  47. package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
  48. package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
  49. package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
  50. package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
  51. package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
  52. package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
  53. package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
  54. package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
  55. package/solibo-sdk-sdk-api-section.mjs +4076 -3685
  56. package/solibo-sdk-sdk-api-section.mjs.map +1 -1
  57. package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
  58. package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
  59. package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
  60. package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
  61. package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
  62. package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
  63. package/solibo-sdk-sdk-api-task.mjs +818 -727
  64. package/solibo-sdk-sdk-api-task.mjs.map +1 -1
  65. package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
  66. package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
  67. package/solibo-sdk-sdk-api-user.mjs +1059 -945
  68. package/solibo-sdk-sdk-api-user.mjs.map +1 -1
  69. package/solibo-sdk-sdk-core.mjs +121 -155
  70. package/solibo-sdk-sdk-core.mjs.map +1 -1
  71. package/solibo-sdk-sdk-home-api.d.mts +716 -2
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  getKClass3t8tygqu4lcxf as getKClass,
3
- KtList3hktaavzmj137 as KtList,
4
- arrayOf1akklvh2at202 as arrayOf,
5
- createKType31ecntyyaay3k as createKType,
6
- createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
7
- THROW_CCE2g6jy02ryeudk as THROW_CCE,
8
- isInterface3d6p8outrmvmk as isInterface,
9
- protoOf180f3jzyo7rfj as protoOf,
10
- initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
11
3
  VOID3gxj6tk5isa35 as VOID,
4
+ protoOf180f3jzyo7rfj as protoOf,
12
5
  objectCreate1ve4bgxiu4x98 as objectCreate,
13
- initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
14
6
  CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
7
+ await3n7kedgocftsv as await_0,
8
+ get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
9
+ initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
10
+ promisify1z0ncraq1ipzh as promisify,
11
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
12
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
15
13
  listOf1jh22dvmctj1r as listOf,
16
14
  LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
17
15
  replace3le3ie7l9k8aq as replace,
18
- get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
19
16
  Unitkvevlwgzwiuc as Unit,
20
- initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
21
- await3n7kedgocftsv as await_0,
17
+ arrayOf1akklvh2at202 as arrayOf,
18
+ createKType31ecntyyaay3k as createKType,
22
19
  listOfvhqybd2zx248 as listOf_0,
23
- Unit_instance3kz1zqli6gr1r as Unit_instance,
24
- promisify1z0ncraq1ipzh as promisify,
20
+ KtList3hktaavzmj137 as KtList,
21
+ createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
22
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
23
+ isInterface3d6p8outrmvmk as isInterface,
24
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
25
25
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
26
26
  toString30pk9tzaqopn as toString,
27
27
  equals2au1ep9vhcato as equals,
@@ -42,29 +42,11 @@ import {
42
42
  Enum3alwj03lh1n41 as Enum,
43
43
  defineProp3ur6h3slcvq4x as defineProp,
44
44
  } from './kotlin-kotlin-stdlib.mjs';
45
- import {
46
- serializer1hwzc6m64v1op as serializer,
47
- KSerializerzf77vz1967fq as KSerializer,
48
- SerializableWithd2dap36updxd as SerializableWith,
49
- PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
50
- InstantSerializer_getInstance1n2pd669tdsta as InstantSerializer_getInstance,
51
- UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$,
52
- get_nullable197rfua9r7fsz as get_nullable,
53
- typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
54
- GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
55
- throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
56
- BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
57
- StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
58
- ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
59
- LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
60
- LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
61
- createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
62
- SerializerFactory1qv9hivitncuv as SerializerFactory,
63
- } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
64
45
  import {
65
46
  Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
66
47
  ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
67
48
  ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
49
+ ApiClient2azxax1pjdtdm as ApiClient,
68
50
  RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
69
51
  RequestConfig10esd7ix0dbbm as RequestConfig,
70
52
  TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
@@ -75,52 +57,70 @@ import {
75
57
  Base64ByteArray15zeye4j39p4v as Base64ByteArray,
76
58
  toMultiValue5gsdsvx60e2f as toMultiValue,
77
59
  map1gud2hobp4wg5 as map,
78
- ApiClient2azxax1pjdtdm as ApiClient,
79
60
  Companion_getInstance2riknjoj7ktdl as Companion_getInstance_0,
80
61
  $serializer_getInstance2u6e9d36lcolu as $serializer_getInstance,
81
62
  $serializer_getInstance2ubvlf5l752ie as $serializer_getInstance_0,
82
63
  } from './solibo-sdk-sdk-core.mjs';
83
64
  import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
84
65
  import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
66
+ import {
67
+ serializer1hwzc6m64v1op as serializer,
68
+ KSerializerzf77vz1967fq as KSerializer,
69
+ SerializableWithd2dap36updxd as SerializableWith,
70
+ PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
71
+ InstantSerializer_getInstance1n2pd669tdsta as InstantSerializer_getInstance,
72
+ UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$,
73
+ get_nullable197rfua9r7fsz as get_nullable,
74
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
75
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
76
+ throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
77
+ BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
78
+ StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
79
+ ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
80
+ LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
81
+ LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
82
+ createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
83
+ SerializerFactory1qv9hivitncuv as SerializerFactory,
84
+ } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
85
85
  //region block: imports
86
86
  var imul = Math.imul;
87
87
  //endregion
88
88
  //region block: pre-declaration
89
- initMetadataForCompanion(Companion, VOID, [KSerializer]);
90
- initMetadataForClass(ListVacantParkingSpacesResponse, 'ListVacantParkingSpacesResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
91
- initMetadataForCoroutine($assignParkingSpaceToOrganizationCOROUTINE$, CoroutineImpl);
92
89
  initMetadataForCoroutine($assignParkingSpaceToOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
93
- initMetadataForCoroutine($assignParkingSpaceToPersonCOROUTINE$, CoroutineImpl);
94
90
  initMetadataForCoroutine($assignParkingSpaceToPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
95
- initMetadataForCoroutine($assignParkingSpaceToSectionCOROUTINE$, CoroutineImpl);
96
91
  initMetadataForCoroutine($assignParkingSpaceToSection$suspendBridgeCOROUTINE$, CoroutineImpl);
97
- initMetadataForCoroutine($createParkingSpaceCOROUTINE$, CoroutineImpl);
98
92
  initMetadataForCoroutine($createParkingSpace$suspendBridgeCOROUTINE$, CoroutineImpl);
99
- initMetadataForCoroutine($deleteParkingSpaceCOROUTINE$, CoroutineImpl);
100
93
  initMetadataForCoroutine($deleteParkingSpace$suspendBridgeCOROUTINE$, CoroutineImpl);
101
- initMetadataForCoroutine($exportAssetsCOROUTINE$, CoroutineImpl);
102
94
  initMetadataForCoroutine($exportAssets$suspendBridgeCOROUTINE$, CoroutineImpl);
103
- initMetadataForCoroutine($indexParkingSpaceCOROUTINE$, CoroutineImpl);
104
95
  initMetadataForCoroutine($indexParkingSpace$suspendBridgeCOROUTINE$, CoroutineImpl);
105
- initMetadataForCoroutine($indexParkingSpacesUserCOROUTINE$, CoroutineImpl);
106
96
  initMetadataForCoroutine($indexParkingSpacesUser$suspendBridgeCOROUTINE$, CoroutineImpl);
107
- initMetadataForCoroutine($listVacantParkingSpacesCOROUTINE$, CoroutineImpl);
108
97
  initMetadataForCoroutine($listVacantParkingSpaces$suspendBridgeCOROUTINE$, CoroutineImpl);
109
- initMetadataForCoroutine($parkingSpaceAllocationOverviewCOROUTINE$, CoroutineImpl);
110
98
  initMetadataForCoroutine($parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$, CoroutineImpl);
111
- initMetadataForCoroutine($parkingSpaceVacancyCOROUTINE$, CoroutineImpl);
112
99
  initMetadataForCoroutine($parkingSpaceVacancy$suspendBridgeCOROUTINE$, CoroutineImpl);
113
- initMetadataForCoroutine($showParkingSpaceCOROUTINE$, CoroutineImpl);
114
100
  initMetadataForCoroutine($showParkingSpace$suspendBridgeCOROUTINE$, CoroutineImpl);
115
- initMetadataForCoroutine($unAssignParkingSpaceToOrganizationCOROUTINE$, CoroutineImpl);
116
101
  initMetadataForCoroutine($unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
117
- initMetadataForCoroutine($unAssignParkingSpaceToPersonCOROUTINE$, CoroutineImpl);
118
102
  initMetadataForCoroutine($unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
119
- initMetadataForCoroutine($unAssignParkingSpaceToSectionCOROUTINE$, CoroutineImpl);
120
103
  initMetadataForCoroutine($unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$, CoroutineImpl);
121
- initMetadataForCoroutine($updateParkingSpaceCOROUTINE$, CoroutineImpl);
122
104
  initMetadataForCoroutine($updateParkingSpace$suspendBridgeCOROUTINE$, CoroutineImpl);
123
105
  initMetadataForClass(ParkingApi, 'ParkingApi', create, ApiClient, VOID, [4, 2, 1, 9, 3]);
106
+ initMetadataForCoroutine($assignParkingSpaceToOrganizationOperationCOROUTINE$, CoroutineImpl);
107
+ initMetadataForCoroutine($assignParkingSpaceToPersonOperationCOROUTINE$, CoroutineImpl);
108
+ initMetadataForCoroutine($assignParkingSpaceToSectionOperationCOROUTINE$, CoroutineImpl);
109
+ initMetadataForCoroutine($createParkingSpaceOperationCOROUTINE$, CoroutineImpl);
110
+ initMetadataForCoroutine($deleteParkingSpaceOperationCOROUTINE$, CoroutineImpl);
111
+ initMetadataForCoroutine($exportAssetsOperationCOROUTINE$, CoroutineImpl);
112
+ initMetadataForCoroutine($indexParkingSpaceOperationCOROUTINE$, CoroutineImpl);
113
+ initMetadataForCoroutine($indexParkingSpacesUserOperationCOROUTINE$, CoroutineImpl);
114
+ initMetadataForCompanion(Companion, VOID, [KSerializer]);
115
+ initMetadataForClass(ListVacantParkingSpacesResponse, 'ListVacantParkingSpacesResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
116
+ initMetadataForCoroutine($listVacantParkingSpacesOperationCOROUTINE$, CoroutineImpl);
117
+ initMetadataForCoroutine($parkingSpaceAllocationOverviewOperationCOROUTINE$, CoroutineImpl);
118
+ initMetadataForCoroutine($parkingSpaceVacancyOperationCOROUTINE$, CoroutineImpl);
119
+ initMetadataForCoroutine($showParkingSpaceOperationCOROUTINE$, CoroutineImpl);
120
+ initMetadataForCoroutine($unAssignParkingSpaceToOrganizationOperationCOROUTINE$, CoroutineImpl);
121
+ initMetadataForCoroutine($unAssignParkingSpaceToPersonOperationCOROUTINE$, CoroutineImpl);
122
+ initMetadataForCoroutine($unAssignParkingSpaceToSectionOperationCOROUTINE$, CoroutineImpl);
123
+ initMetadataForCoroutine($updateParkingSpaceOperationCOROUTINE$, CoroutineImpl);
124
124
  initMetadataForCompanion(Companion_0);
125
125
  initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
126
126
  initMetadataForClass(AssignParkingSpaceCommand, 'AssignParkingSpaceCommand', AssignParkingSpaceCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
@@ -169,36 +169,6 @@ function get_parking(_this__u8e3s4) {
169
169
  function _get_parking_$lambda_a8qmia(arguments_0) {
170
170
  return create(arguments_0.baseUrl_1, arguments_0.httpClientEngine_1, arguments_0.httpClientConfig_1);
171
171
  }
172
- function Companion() {
173
- Companion_instance_0 = this;
174
- var tmp = this;
175
- // Inline function 'kotlinx.serialization.serializer' call
176
- // Inline function 'kotlinx.serialization.internal.cast' call
177
- var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ParkingSpaceVacant), arrayOf([]), false))]), false));
178
- tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
179
- this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
180
- }
181
- protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
182
- return this.descriptor_1;
183
- };
184
- protoOf(Companion).serialize_ok5gde_k$ = function (encoder, value) {
185
- return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
186
- };
187
- protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
188
- return this.serialize_ok5gde_k$(encoder, value instanceof ListVacantParkingSpacesResponse ? value : THROW_CCE());
189
- };
190
- protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
191
- return new ListVacantParkingSpacesResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
192
- };
193
- protoOf(Companion).serializer_9w0wvi_k$ = function () {
194
- return Companion_getInstance_1();
195
- };
196
- var Companion_instance_0;
197
- function Companion_getInstance_1() {
198
- if (Companion_instance_0 == null)
199
- new Companion();
200
- return Companion_instance_0;
201
- }
202
172
  function ParkingApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this) {
203
173
  baseUrl = baseUrl === VOID ? 'https://home.solibo.no/api' : baseUrl;
204
174
  httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
@@ -219,76 +189,6 @@ function ParkingApi_init_$Init$_0(baseUrl, httpClient, $this) {
219
189
  function createWithClient(baseUrl, httpClient) {
220
190
  return ParkingApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(ParkingApi)));
221
191
  }
222
- function ListVacantParkingSpacesResponse(value) {
223
- Companion_getInstance_1();
224
- this.value_1 = value;
225
- }
226
- function ParkingApi$listVacantParkingSpaces$lambda($this$map) {
227
- return $this$map.value_1;
228
- }
229
- function $assignParkingSpaceToOrganizationCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, resultContinuation) {
230
- CoroutineImpl.call(this, resultContinuation);
231
- this._this__u8e3s4__1 = _this__u8e3s4;
232
- this.companyId_1 = companyId;
233
- this.parkingSpaceId_1 = parkingSpaceId;
234
- this.organizationId_1 = organizationId;
235
- this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
236
- }
237
- protoOf($assignParkingSpaceToOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
238
- var suspendResult = this.result_1;
239
- $sm: do
240
- try {
241
- var tmp = this.state_1;
242
- switch (tmp) {
243
- case 0:
244
- this.exceptionState_1 = 2;
245
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
246
- var localVariableBody = this.assignParkingSpaceCommand_1;
247
- var localVariableQuery = LinkedHashMap_init_$Create$();
248
- var localVariableHeaders = LinkedHashMap_init_$Create$();
249
- var tmp0_method = RequestMethod_PUT_getInstance();
250
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{organizationId}', this.organizationId_1.toString());
251
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
252
- this.state_1 = 1;
253
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
254
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
255
- return suspendResult;
256
- }
257
-
258
- continue $sm;
259
- case 1:
260
- var this_0 = suspendResult;
261
- var tmp_0 = getKClass(Unit);
262
- var tmp_1 = null instanceof Unit;
263
- var tmp_2;
264
- try {
265
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
266
- } catch ($p) {
267
- var tmp_3;
268
- if ($p instanceof Error) {
269
- var _unused_var__etf5q3 = $p;
270
- tmp_3 = null;
271
- } else {
272
- throw $p;
273
- }
274
- tmp_2 = tmp_3;
275
- }
276
-
277
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
278
- case 2:
279
- throw this.exception_1;
280
- }
281
- } catch ($p_0) {
282
- var e = $p_0;
283
- if (this.exceptionState_1 === 2) {
284
- throw e;
285
- } else {
286
- this.state_1 = this.exceptionState_1;
287
- this.exception_1 = e;
288
- }
289
- }
290
- while (true);
291
- };
292
192
  function $assignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, resultContinuation) {
293
193
  CoroutineImpl.call(this, resultContinuation);
294
194
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -345,7 +245,7 @@ protoOf($assignParkingSpaceToOrganization$suspendBridgeCOROUTINE$).doResume_5ylj
345
245
  }
346
246
  while (true);
347
247
  };
348
- function $assignParkingSpaceToPersonCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, resultContinuation) {
248
+ function $assignParkingSpaceToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, resultContinuation) {
349
249
  CoroutineImpl.call(this, resultContinuation);
350
250
  this._this__u8e3s4__1 = _this__u8e3s4;
351
251
  this.companyId_1 = companyId;
@@ -353,53 +253,46 @@ function $assignParkingSpaceToPersonCOROUTINE$(_this__u8e3s4, companyId, parking
353
253
  this.personId_1 = personId;
354
254
  this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
355
255
  }
356
- protoOf($assignParkingSpaceToPersonCOROUTINE$).doResume_5yljmg_k$ = function () {
256
+ protoOf($assignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
357
257
  var suspendResult = this.result_1;
358
258
  $sm: do
359
259
  try {
360
260
  var tmp = this.state_1;
361
261
  switch (tmp) {
362
262
  case 0:
363
- this.exceptionState_1 = 2;
364
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
365
- var localVariableBody = this.assignParkingSpaceCommand_1;
366
- var localVariableQuery = LinkedHashMap_init_$Create$();
367
- var localVariableHeaders = LinkedHashMap_init_$Create$();
368
- var tmp0_method = RequestMethod_PUT_getInstance();
369
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{personId}', this.personId_1.toString());
370
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
371
- this.state_1 = 1;
372
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
373
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
374
- return suspendResult;
375
- }
376
-
377
- continue $sm;
378
- case 1:
379
- var this_0 = suspendResult;
380
- var tmp_0 = getKClass(Unit);
381
- var tmp_1 = null instanceof Unit;
382
- var tmp_2;
383
- try {
384
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
385
- } catch ($p) {
386
- var tmp_3;
387
- if ($p instanceof Error) {
388
- var _unused_var__etf5q3 = $p;
389
- tmp_3 = null;
390
- } else {
391
- throw $p;
263
+ this.exceptionState_1 = 4;
264
+ if (this._this__u8e3s4__1.assignParkingSpaceToPerson === protoOf(ParkingApi).assignParkingSpaceToPerson) {
265
+ this.state_1 = 2;
266
+ suspendResult = this._this__u8e3s4__1.assignParkingSpaceToPerson_j7nbw6_k$(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.assignParkingSpaceCommand_1, this);
267
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
268
+ return suspendResult;
392
269
  }
393
- tmp_2 = tmp_3;
270
+ continue $sm;
271
+ } else {
272
+ this.state_1 = 1;
273
+ suspendResult = await_0(this._this__u8e3s4__1.assignParkingSpaceToPerson(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.assignParkingSpaceCommand_1), this);
274
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
275
+ return suspendResult;
276
+ }
277
+ continue $sm;
394
278
  }
395
279
 
396
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
280
+ case 1:
281
+ this.WHEN_RESULT0__1 = suspendResult;
282
+ this.state_1 = 3;
283
+ continue $sm;
397
284
  case 2:
285
+ this.WHEN_RESULT0__1 = suspendResult;
286
+ this.state_1 = 3;
287
+ continue $sm;
288
+ case 3:
289
+ return this.WHEN_RESULT0__1;
290
+ case 4:
398
291
  throw this.exception_1;
399
292
  }
400
- } catch ($p_0) {
401
- var e = $p_0;
402
- if (this.exceptionState_1 === 2) {
293
+ } catch ($p) {
294
+ var e = $p;
295
+ if (this.exceptionState_1 === 4) {
403
296
  throw e;
404
297
  } else {
405
298
  this.state_1 = this.exceptionState_1;
@@ -408,15 +301,15 @@ protoOf($assignParkingSpaceToPersonCOROUTINE$).doResume_5yljmg_k$ = function ()
408
301
  }
409
302
  while (true);
410
303
  };
411
- function $assignParkingSpaceToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, resultContinuation) {
304
+ function $assignParkingSpaceToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, resultContinuation) {
412
305
  CoroutineImpl.call(this, resultContinuation);
413
306
  this._this__u8e3s4__1 = _this__u8e3s4;
414
307
  this.companyId_1 = companyId;
415
308
  this.parkingSpaceId_1 = parkingSpaceId;
416
- this.personId_1 = personId;
309
+ this.sectionId_1 = sectionId;
417
310
  this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
418
311
  }
419
- protoOf($assignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
312
+ protoOf($assignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
420
313
  var suspendResult = this.result_1;
421
314
  $sm: do
422
315
  try {
@@ -424,16 +317,16 @@ protoOf($assignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
424
317
  switch (tmp) {
425
318
  case 0:
426
319
  this.exceptionState_1 = 4;
427
- if (this._this__u8e3s4__1.assignParkingSpaceToPerson === protoOf(ParkingApi).assignParkingSpaceToPerson) {
320
+ if (this._this__u8e3s4__1.assignParkingSpaceToSection === protoOf(ParkingApi).assignParkingSpaceToSection) {
428
321
  this.state_1 = 2;
429
- suspendResult = this._this__u8e3s4__1.assignParkingSpaceToPerson_j7nbw6_k$(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.assignParkingSpaceCommand_1, this);
322
+ suspendResult = this._this__u8e3s4__1.assignParkingSpaceToSection_xjpkh6_k$(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.assignParkingSpaceCommand_1, this);
430
323
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
431
324
  return suspendResult;
432
325
  }
433
326
  continue $sm;
434
327
  } else {
435
328
  this.state_1 = 1;
436
- suspendResult = await_0(this._this__u8e3s4__1.assignParkingSpaceToPerson(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.assignParkingSpaceCommand_1), this);
329
+ suspendResult = await_0(this._this__u8e3s4__1.assignParkingSpaceToSection(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.assignParkingSpaceCommand_1), this);
437
330
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
438
331
  return suspendResult;
439
332
  }
@@ -464,61 +357,52 @@ protoOf($assignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
464
357
  }
465
358
  while (true);
466
359
  };
467
- function $assignParkingSpaceToSectionCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, resultContinuation) {
360
+ function $createParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createParkingSpaceCommand, resultContinuation) {
468
361
  CoroutineImpl.call(this, resultContinuation);
469
362
  this._this__u8e3s4__1 = _this__u8e3s4;
470
363
  this.companyId_1 = companyId;
471
- this.parkingSpaceId_1 = parkingSpaceId;
472
- this.sectionId_1 = sectionId;
473
- this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
364
+ this.createParkingSpaceCommand_1 = createParkingSpaceCommand;
474
365
  }
475
- protoOf($assignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function () {
366
+ protoOf($createParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
476
367
  var suspendResult = this.result_1;
477
368
  $sm: do
478
369
  try {
479
370
  var tmp = this.state_1;
480
371
  switch (tmp) {
481
372
  case 0:
482
- this.exceptionState_1 = 2;
483
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
484
- var localVariableBody = this.assignParkingSpaceCommand_1;
485
- var localVariableQuery = LinkedHashMap_init_$Create$();
486
- var localVariableHeaders = LinkedHashMap_init_$Create$();
487
- var tmp0_method = RequestMethod_PUT_getInstance();
488
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{sectionId}', this.sectionId_1.toString());
489
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
490
- this.state_1 = 1;
491
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
492
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
493
- return suspendResult;
494
- }
495
-
496
- continue $sm;
497
- case 1:
498
- var this_0 = suspendResult;
499
- var tmp_0 = getKClass(Unit);
500
- var tmp_1 = null instanceof Unit;
501
- var tmp_2;
502
- try {
503
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
504
- } catch ($p) {
505
- var tmp_3;
506
- if ($p instanceof Error) {
507
- var _unused_var__etf5q3 = $p;
508
- tmp_3 = null;
509
- } else {
510
- throw $p;
373
+ this.exceptionState_1 = 4;
374
+ if (this._this__u8e3s4__1.createParkingSpace === protoOf(ParkingApi).createParkingSpace) {
375
+ this.state_1 = 2;
376
+ suspendResult = this._this__u8e3s4__1.createParkingSpace_svxlk3_k$(this.companyId_1, this.createParkingSpaceCommand_1, this);
377
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
378
+ return suspendResult;
511
379
  }
512
- tmp_2 = tmp_3;
380
+ continue $sm;
381
+ } else {
382
+ this.state_1 = 1;
383
+ suspendResult = await_0(this._this__u8e3s4__1.createParkingSpace(this.companyId_1, this.createParkingSpaceCommand_1), this);
384
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
385
+ return suspendResult;
386
+ }
387
+ continue $sm;
513
388
  }
514
389
 
515
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
390
+ case 1:
391
+ this.WHEN_RESULT0__1 = suspendResult;
392
+ this.state_1 = 3;
393
+ continue $sm;
516
394
  case 2:
395
+ this.WHEN_RESULT0__1 = suspendResult;
396
+ this.state_1 = 3;
397
+ continue $sm;
398
+ case 3:
399
+ return this.WHEN_RESULT0__1;
400
+ case 4:
517
401
  throw this.exception_1;
518
402
  }
519
- } catch ($p_0) {
520
- var e = $p_0;
521
- if (this.exceptionState_1 === 2) {
403
+ } catch ($p) {
404
+ var e = $p;
405
+ if (this.exceptionState_1 === 4) {
522
406
  throw e;
523
407
  } else {
524
408
  this.state_1 = this.exceptionState_1;
@@ -527,15 +411,13 @@ protoOf($assignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function ()
527
411
  }
528
412
  while (true);
529
413
  };
530
- function $assignParkingSpaceToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, resultContinuation) {
414
+ function $deleteParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, resultContinuation) {
531
415
  CoroutineImpl.call(this, resultContinuation);
532
416
  this._this__u8e3s4__1 = _this__u8e3s4;
533
417
  this.companyId_1 = companyId;
534
418
  this.parkingSpaceId_1 = parkingSpaceId;
535
- this.sectionId_1 = sectionId;
536
- this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
537
419
  }
538
- protoOf($assignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
420
+ protoOf($deleteParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
539
421
  var suspendResult = this.result_1;
540
422
  $sm: do
541
423
  try {
@@ -543,16 +425,16 @@ protoOf($assignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
543
425
  switch (tmp) {
544
426
  case 0:
545
427
  this.exceptionState_1 = 4;
546
- if (this._this__u8e3s4__1.assignParkingSpaceToSection === protoOf(ParkingApi).assignParkingSpaceToSection) {
428
+ if (this._this__u8e3s4__1.deleteParkingSpace === protoOf(ParkingApi).deleteParkingSpace) {
547
429
  this.state_1 = 2;
548
- suspendResult = this._this__u8e3s4__1.assignParkingSpaceToSection_xjpkh6_k$(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.assignParkingSpaceCommand_1, this);
430
+ suspendResult = this._this__u8e3s4__1.deleteParkingSpace_r5wo6t_k$(this.companyId_1, this.parkingSpaceId_1, this);
549
431
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
550
432
  return suspendResult;
551
433
  }
552
434
  continue $sm;
553
435
  } else {
554
436
  this.state_1 = 1;
555
- suspendResult = await_0(this._this__u8e3s4__1.assignParkingSpaceToSection(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.assignParkingSpaceCommand_1), this);
437
+ suspendResult = await_0(this._this__u8e3s4__1.deleteParkingSpace(this.companyId_1, this.parkingSpaceId_1), this);
556
438
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
557
439
  return suspendResult;
558
440
  }
@@ -583,59 +465,51 @@ protoOf($assignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
583
465
  }
584
466
  while (true);
585
467
  };
586
- function $createParkingSpaceCOROUTINE$(_this__u8e3s4, companyId, createParkingSpaceCommand, resultContinuation) {
468
+ function $exportAssets$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
587
469
  CoroutineImpl.call(this, resultContinuation);
588
470
  this._this__u8e3s4__1 = _this__u8e3s4;
589
471
  this.companyId_1 = companyId;
590
- this.createParkingSpaceCommand_1 = createParkingSpaceCommand;
591
472
  }
592
- protoOf($createParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
473
+ protoOf($exportAssets$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
593
474
  var suspendResult = this.result_1;
594
475
  $sm: do
595
476
  try {
596
477
  var tmp = this.state_1;
597
478
  switch (tmp) {
598
479
  case 0:
599
- this.exceptionState_1 = 2;
600
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
601
- var localVariableBody = this.createParkingSpaceCommand_1;
602
- var localVariableQuery = LinkedHashMap_init_$Create$();
603
- var localVariableHeaders = LinkedHashMap_init_$Create$();
604
- var tmp0_method = RequestMethod_POST_getInstance();
605
- var tmp1_path = replace('/companies/{companyId}/parkingSpaces', '{companyId}', this.companyId_1.toString());
606
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
607
- this.state_1 = 1;
608
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
609
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
610
- return suspendResult;
611
- }
612
-
613
- continue $sm;
614
- case 1:
615
- var this_0 = suspendResult;
616
- var tmp_0 = getKClass(ParkingSpace);
617
- var tmp_1 = null instanceof ParkingSpace;
618
- var tmp_2;
619
- try {
620
- tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
621
- } catch ($p) {
622
- var tmp_3;
623
- if ($p instanceof Error) {
624
- var _unused_var__etf5q3 = $p;
625
- tmp_3 = null;
626
- } else {
627
- throw $p;
480
+ this.exceptionState_1 = 4;
481
+ if (this._this__u8e3s4__1.exportAssets === protoOf(ParkingApi).exportAssets) {
482
+ this.state_1 = 2;
483
+ suspendResult = this._this__u8e3s4__1.exportAssets_k57oj3_k$(this.companyId_1, this);
484
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
485
+ return suspendResult;
628
486
  }
629
- tmp_2 = tmp_3;
487
+ continue $sm;
488
+ } else {
489
+ this.state_1 = 1;
490
+ suspendResult = await_0(this._this__u8e3s4__1.exportAssets(this.companyId_1), this);
491
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
492
+ return suspendResult;
493
+ }
494
+ continue $sm;
630
495
  }
631
496
 
632
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
497
+ case 1:
498
+ this.WHEN_RESULT0__1 = suspendResult;
499
+ this.state_1 = 3;
500
+ continue $sm;
633
501
  case 2:
502
+ this.WHEN_RESULT0__1 = suspendResult;
503
+ this.state_1 = 3;
504
+ continue $sm;
505
+ case 3:
506
+ return this.WHEN_RESULT0__1;
507
+ case 4:
634
508
  throw this.exception_1;
635
509
  }
636
- } catch ($p_0) {
637
- var e = $p_0;
638
- if (this.exceptionState_1 === 2) {
510
+ } catch ($p) {
511
+ var e = $p;
512
+ if (this.exceptionState_1 === 4) {
639
513
  throw e;
640
514
  } else {
641
515
  this.state_1 = this.exceptionState_1;
@@ -644,13 +518,20 @@ protoOf($createParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
644
518
  }
645
519
  while (true);
646
520
  };
647
- function $createParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createParkingSpaceCommand, resultContinuation) {
521
+ function $indexParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
648
522
  CoroutineImpl.call(this, resultContinuation);
649
523
  this._this__u8e3s4__1 = _this__u8e3s4;
650
524
  this.companyId_1 = companyId;
651
- this.createParkingSpaceCommand_1 = createParkingSpaceCommand;
525
+ this.search_1 = search;
526
+ this.type_1 = type;
527
+ this.charger_1 = charger;
528
+ this.assigned_1 = assigned;
529
+ this.fields_1 = fields;
530
+ this.pageToken_1 = pageToken;
531
+ this.autoPaginate_1 = autoPaginate;
532
+ this.count_1 = count;
652
533
  }
653
- protoOf($createParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
534
+ protoOf($indexParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
654
535
  var suspendResult = this.result_1;
655
536
  $sm: do
656
537
  try {
@@ -658,16 +539,16 @@ protoOf($createParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
658
539
  switch (tmp) {
659
540
  case 0:
660
541
  this.exceptionState_1 = 4;
661
- if (this._this__u8e3s4__1.createParkingSpace === protoOf(ParkingApi).createParkingSpace) {
542
+ if (this._this__u8e3s4__1.indexParkingSpace === protoOf(ParkingApi).indexParkingSpace) {
662
543
  this.state_1 = 2;
663
- suspendResult = this._this__u8e3s4__1.createParkingSpace_svxlk3_k$(this.companyId_1, this.createParkingSpaceCommand_1, this);
544
+ suspendResult = this._this__u8e3s4__1.indexParkingSpace$default_33qrpc_k$(this.companyId_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
664
545
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
665
546
  return suspendResult;
666
547
  }
667
548
  continue $sm;
668
549
  } else {
669
550
  this.state_1 = 1;
670
- suspendResult = await_0(this._this__u8e3s4__1.createParkingSpace(this.companyId_1, this.createParkingSpaceCommand_1), this);
551
+ suspendResult = await_0(this._this__u8e3s4__1.indexParkingSpace(this.companyId_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
671
552
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
672
553
  return suspendResult;
673
554
  }
@@ -698,59 +579,59 @@ protoOf($createParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
698
579
  }
699
580
  while (true);
700
581
  };
701
- function $deleteParkingSpaceCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, resultContinuation) {
582
+ function $indexParkingSpacesUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
702
583
  CoroutineImpl.call(this, resultContinuation);
703
584
  this._this__u8e3s4__1 = _this__u8e3s4;
704
- this.companyId_1 = companyId;
705
- this.parkingSpaceId_1 = parkingSpaceId;
585
+ this.companyIds_1 = companyIds;
586
+ this.search_1 = search;
587
+ this.type_1 = type;
588
+ this.charger_1 = charger;
589
+ this.assigned_1 = assigned;
590
+ this.fields_1 = fields;
591
+ this.pageToken_1 = pageToken;
592
+ this.autoPaginate_1 = autoPaginate;
593
+ this.count_1 = count;
706
594
  }
707
- protoOf($deleteParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
595
+ protoOf($indexParkingSpacesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
708
596
  var suspendResult = this.result_1;
709
597
  $sm: do
710
598
  try {
711
599
  var tmp = this.state_1;
712
600
  switch (tmp) {
713
601
  case 0:
714
- this.exceptionState_1 = 2;
715
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
716
- var localVariableBody = EmptyContent_getInstance();
717
- var localVariableQuery = LinkedHashMap_init_$Create$();
718
- var localVariableHeaders = LinkedHashMap_init_$Create$();
719
- var tmp0_method = RequestMethod_DELETE_getInstance();
720
- var tmp1_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
721
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
722
- this.state_1 = 1;
723
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
724
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
725
- return suspendResult;
726
- }
727
-
728
- continue $sm;
729
- case 1:
730
- var this_0 = suspendResult;
731
- var tmp_0 = getKClass(Unit);
732
- var tmp_1 = null instanceof Unit;
733
- var tmp_2;
734
- try {
735
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
736
- } catch ($p) {
737
- var tmp_3;
738
- if ($p instanceof Error) {
739
- var _unused_var__etf5q3 = $p;
740
- tmp_3 = null;
741
- } else {
742
- throw $p;
602
+ this.exceptionState_1 = 4;
603
+ if (this._this__u8e3s4__1.indexParkingSpacesUser === protoOf(ParkingApi).indexParkingSpacesUser) {
604
+ this.state_1 = 2;
605
+ suspendResult = this._this__u8e3s4__1.indexParkingSpacesUser$default_do01w8_k$(this.companyIds_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
606
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
607
+ return suspendResult;
743
608
  }
744
- tmp_2 = tmp_3;
609
+ continue $sm;
610
+ } else {
611
+ this.state_1 = 1;
612
+ suspendResult = await_0(this._this__u8e3s4__1.indexParkingSpacesUser(this.companyIds_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
613
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
614
+ return suspendResult;
615
+ }
616
+ continue $sm;
745
617
  }
746
618
 
747
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
619
+ case 1:
620
+ this.WHEN_RESULT0__1 = suspendResult;
621
+ this.state_1 = 3;
622
+ continue $sm;
748
623
  case 2:
624
+ this.WHEN_RESULT0__1 = suspendResult;
625
+ this.state_1 = 3;
626
+ continue $sm;
627
+ case 3:
628
+ return this.WHEN_RESULT0__1;
629
+ case 4:
749
630
  throw this.exception_1;
750
631
  }
751
- } catch ($p_0) {
752
- var e = $p_0;
753
- if (this.exceptionState_1 === 2) {
632
+ } catch ($p) {
633
+ var e = $p;
634
+ if (this.exceptionState_1 === 4) {
754
635
  throw e;
755
636
  } else {
756
637
  this.state_1 = this.exceptionState_1;
@@ -759,13 +640,14 @@ protoOf($deleteParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
759
640
  }
760
641
  while (true);
761
642
  };
762
- function $deleteParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, resultContinuation) {
643
+ function $listVacantParkingSpaces$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
763
644
  CoroutineImpl.call(this, resultContinuation);
764
645
  this._this__u8e3s4__1 = _this__u8e3s4;
765
646
  this.companyId_1 = companyId;
766
- this.parkingSpaceId_1 = parkingSpaceId;
647
+ this.searchDate_1 = searchDate;
648
+ this.fields_1 = fields;
767
649
  }
768
- protoOf($deleteParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
650
+ protoOf($listVacantParkingSpaces$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
769
651
  var suspendResult = this.result_1;
770
652
  $sm: do
771
653
  try {
@@ -773,16 +655,16 @@ protoOf($deleteParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
773
655
  switch (tmp) {
774
656
  case 0:
775
657
  this.exceptionState_1 = 4;
776
- if (this._this__u8e3s4__1.deleteParkingSpace === protoOf(ParkingApi).deleteParkingSpace) {
658
+ if (this._this__u8e3s4__1.listVacantParkingSpaces === protoOf(ParkingApi).listVacantParkingSpaces) {
777
659
  this.state_1 = 2;
778
- suspendResult = this._this__u8e3s4__1.deleteParkingSpace_r5wo6t_k$(this.companyId_1, this.parkingSpaceId_1, this);
660
+ suspendResult = this._this__u8e3s4__1.listVacantParkingSpaces$default_ntq13c_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
779
661
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
780
662
  return suspendResult;
781
663
  }
782
664
  continue $sm;
783
665
  } else {
784
666
  this.state_1 = 1;
785
- suspendResult = await_0(this._this__u8e3s4__1.deleteParkingSpace(this.companyId_1, this.parkingSpaceId_1), this);
667
+ suspendResult = await_0(this._this__u8e3s4__1.listVacantParkingSpaces(this.companyId_1, this.searchDate_1, this.fields_1), this);
786
668
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
787
669
  return suspendResult;
788
670
  }
@@ -813,58 +695,53 @@ protoOf($deleteParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
813
695
  }
814
696
  while (true);
815
697
  };
816
- function $exportAssetsCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
698
+ function $parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
817
699
  CoroutineImpl.call(this, resultContinuation);
818
700
  this._this__u8e3s4__1 = _this__u8e3s4;
819
701
  this.companyId_1 = companyId;
702
+ this.searchDate_1 = searchDate;
703
+ this.fields_1 = fields;
820
704
  }
821
- protoOf($exportAssetsCOROUTINE$).doResume_5yljmg_k$ = function () {
705
+ protoOf($parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
822
706
  var suspendResult = this.result_1;
823
707
  $sm: do
824
708
  try {
825
709
  var tmp = this.state_1;
826
710
  switch (tmp) {
827
711
  case 0:
828
- this.exceptionState_1 = 2;
829
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
830
- var localVariableBody = EmptyContent_getInstance();
831
- var localVariableQuery = LinkedHashMap_init_$Create$();
832
- var localVariableHeaders = LinkedHashMap_init_$Create$();
833
- var tmp0_method = RequestMethod_GET_getInstance();
834
- var tmp1_path = replace('/companies/{companyId}/parkingSpaces/export', '{companyId}', this.companyId_1.toString());
835
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
836
- this.state_1 = 1;
837
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
838
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
839
- return suspendResult;
840
- }
841
-
842
- continue $sm;
843
- case 1:
844
- var this_0 = suspendResult;
845
- var tmp_0 = getKClass(Base64ByteArray);
846
- var tmp_1 = null instanceof Base64ByteArray;
847
- var tmp_2;
848
- try {
849
- tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
850
- } catch ($p) {
851
- var tmp_3;
852
- if ($p instanceof Error) {
853
- var _unused_var__etf5q3 = $p;
854
- tmp_3 = null;
855
- } else {
856
- throw $p;
712
+ this.exceptionState_1 = 4;
713
+ if (this._this__u8e3s4__1.parkingSpaceAllocationOverview === protoOf(ParkingApi).parkingSpaceAllocationOverview) {
714
+ this.state_1 = 2;
715
+ suspendResult = this._this__u8e3s4__1.parkingSpaceAllocationOverview$default_n2aomn_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
716
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
717
+ return suspendResult;
857
718
  }
858
- tmp_2 = tmp_3;
719
+ continue $sm;
720
+ } else {
721
+ this.state_1 = 1;
722
+ suspendResult = await_0(this._this__u8e3s4__1.parkingSpaceAllocationOverview(this.companyId_1, this.searchDate_1, this.fields_1), this);
723
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
724
+ return suspendResult;
725
+ }
726
+ continue $sm;
859
727
  }
860
728
 
861
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
729
+ case 1:
730
+ this.WHEN_RESULT0__1 = suspendResult;
731
+ this.state_1 = 3;
732
+ continue $sm;
862
733
  case 2:
734
+ this.WHEN_RESULT0__1 = suspendResult;
735
+ this.state_1 = 3;
736
+ continue $sm;
737
+ case 3:
738
+ return this.WHEN_RESULT0__1;
739
+ case 4:
863
740
  throw this.exception_1;
864
741
  }
865
- } catch ($p_0) {
866
- var e = $p_0;
867
- if (this.exceptionState_1 === 2) {
742
+ } catch ($p) {
743
+ var e = $p;
744
+ if (this.exceptionState_1 === 4) {
868
745
  throw e;
869
746
  } else {
870
747
  this.state_1 = this.exceptionState_1;
@@ -873,12 +750,15 @@ protoOf($exportAssetsCOROUTINE$).doResume_5yljmg_k$ = function () {
873
750
  }
874
751
  while (true);
875
752
  };
876
- function $exportAssets$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
753
+ function $parkingSpaceVacancy$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, searchDate, fields, resultContinuation) {
877
754
  CoroutineImpl.call(this, resultContinuation);
878
755
  this._this__u8e3s4__1 = _this__u8e3s4;
879
756
  this.companyId_1 = companyId;
757
+ this.parkingSpaceId_1 = parkingSpaceId;
758
+ this.searchDate_1 = searchDate;
759
+ this.fields_1 = fields;
880
760
  }
881
- protoOf($exportAssets$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
761
+ protoOf($parkingSpaceVacancy$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
882
762
  var suspendResult = this.result_1;
883
763
  $sm: do
884
764
  try {
@@ -886,16 +766,16 @@ protoOf($exportAssets$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
886
766
  switch (tmp) {
887
767
  case 0:
888
768
  this.exceptionState_1 = 4;
889
- if (this._this__u8e3s4__1.exportAssets === protoOf(ParkingApi).exportAssets) {
769
+ if (this._this__u8e3s4__1.parkingSpaceVacancy === protoOf(ParkingApi).parkingSpaceVacancy) {
890
770
  this.state_1 = 2;
891
- suspendResult = this._this__u8e3s4__1.exportAssets_k57oj3_k$(this.companyId_1, this);
771
+ suspendResult = this._this__u8e3s4__1.parkingSpaceVacancy$default_bcdsqv_k$(this.companyId_1, this.parkingSpaceId_1, this.searchDate_1, this.fields_1, this);
892
772
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
893
773
  return suspendResult;
894
774
  }
895
775
  continue $sm;
896
776
  } else {
897
777
  this.state_1 = 1;
898
- suspendResult = await_0(this._this__u8e3s4__1.exportAssets(this.companyId_1), this);
778
+ suspendResult = await_0(this._this__u8e3s4__1.parkingSpaceVacancy(this.companyId_1, this.parkingSpaceId_1, this.searchDate_1, this.fields_1), this);
899
779
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
900
780
  return suspendResult;
901
781
  }
@@ -926,126 +806,53 @@ protoOf($exportAssets$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
926
806
  }
927
807
  while (true);
928
808
  };
929
- function $indexParkingSpaceCOROUTINE$(_this__u8e3s4, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
809
+ function $showParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, fields, resultContinuation) {
930
810
  CoroutineImpl.call(this, resultContinuation);
931
811
  this._this__u8e3s4__1 = _this__u8e3s4;
932
812
  this.companyId_1 = companyId;
933
- this.search_1 = search;
934
- this.type_1 = type;
935
- this.charger_1 = charger;
936
- this.assigned_1 = assigned;
813
+ this.parkingSpaceId_1 = parkingSpaceId;
937
814
  this.fields_1 = fields;
938
- this.pageToken_1 = pageToken;
939
- this.autoPaginate_1 = autoPaginate;
940
- this.count_1 = count;
941
815
  }
942
- protoOf($indexParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
816
+ protoOf($showParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
943
817
  var suspendResult = this.result_1;
944
818
  $sm: do
945
819
  try {
946
820
  var tmp = this.state_1;
947
821
  switch (tmp) {
948
822
  case 0:
949
- this.exceptionState_1 = 2;
950
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
951
- var localVariableBody = EmptyContent_getInstance();
952
- var localVariableQuery = LinkedHashMap_init_$Create$();
953
- if (this.search_1 == null)
954
- null;
955
- else {
956
- var value = listOf_0(this.search_1);
957
- localVariableQuery.put_4fpzoq_k$('search', value);
958
- }
959
-
960
- var tmp1_safe_receiver = this.type_1;
961
- if (tmp1_safe_receiver == null)
962
- null;
963
- else {
964
- var value_0 = toMultiValue(tmp1_safe_receiver, 'multi');
965
- localVariableQuery.put_4fpzoq_k$('type', value_0);
966
- }
967
-
968
- if (this.charger_1 == null)
969
- null;
970
- else {
971
- var value_1 = listOf_0('' + this.charger_1);
972
- localVariableQuery.put_4fpzoq_k$('charger', value_1);
973
- }
974
-
975
- if (this.assigned_1 == null)
976
- null;
977
- else {
978
- var tmp2 = 'assigned';
979
- var value_2 = listOf_0('' + this.assigned_1);
980
- localVariableQuery.put_4fpzoq_k$(tmp2, value_2);
981
- }
982
-
983
- if (this.fields_1 == null)
984
- null;
985
- else {
986
- var value_3 = listOf_0(this.fields_1);
987
- localVariableQuery.put_4fpzoq_k$('fields', value_3);
988
- }
989
-
990
- if (this.pageToken_1 == null)
991
- null;
992
- else {
993
- var tmp2_0 = 'pageToken';
994
- var value_4 = listOf_0(this.pageToken_1);
995
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_4);
996
- }
997
-
998
- if (this.autoPaginate_1 == null)
999
- null;
1000
- else {
1001
- var tmp2_1 = 'autoPaginate';
1002
- var value_5 = listOf_0('' + this.autoPaginate_1);
1003
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_5);
1004
- }
1005
-
1006
- if (this.count_1 == null)
1007
- null;
1008
- else {
1009
- var value_6 = listOf_0('' + this.count_1);
1010
- localVariableQuery.put_4fpzoq_k$('count', value_6);
1011
- }
1012
-
1013
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1014
- var tmp8_method = RequestMethod_GET_getInstance();
1015
- var tmp9_path = replace('/companies/{companyId}/parkingSpaces', '{companyId}', this.companyId_1.toString());
1016
- var localVariableConfig = new RequestConfig(tmp8_method, tmp9_path, localVariableHeaders, VOID, localVariableQuery, true);
1017
- this.state_1 = 1;
1018
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1019
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1020
- return suspendResult;
1021
- }
1022
-
1023
- continue $sm;
1024
- case 1:
1025
- var this_0 = suspendResult;
1026
- var tmp_0 = getKClass(PagedListParkingSpace);
1027
- var tmp_1 = null instanceof PagedListParkingSpace;
1028
- var tmp_2;
1029
- try {
1030
- tmp_2 = createKType(getKClass(PagedListParkingSpace), arrayOf([]), false);
1031
- } catch ($p) {
1032
- var tmp_3;
1033
- if ($p instanceof Error) {
1034
- var _unused_var__etf5q3 = $p;
1035
- tmp_3 = null;
1036
- } else {
1037
- throw $p;
823
+ this.exceptionState_1 = 4;
824
+ if (this._this__u8e3s4__1.showParkingSpace === protoOf(ParkingApi).showParkingSpace) {
825
+ this.state_1 = 2;
826
+ suspendResult = this._this__u8e3s4__1.showParkingSpace$default_x3punw_k$(this.companyId_1, this.parkingSpaceId_1, this.fields_1, this);
827
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
828
+ return suspendResult;
1038
829
  }
1039
- tmp_2 = tmp_3;
830
+ continue $sm;
831
+ } else {
832
+ this.state_1 = 1;
833
+ suspendResult = await_0(this._this__u8e3s4__1.showParkingSpace(this.companyId_1, this.parkingSpaceId_1, this.fields_1), this);
834
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
835
+ return suspendResult;
836
+ }
837
+ continue $sm;
1040
838
  }
1041
839
 
1042
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
840
+ case 1:
841
+ this.WHEN_RESULT0__1 = suspendResult;
842
+ this.state_1 = 3;
843
+ continue $sm;
1043
844
  case 2:
845
+ this.WHEN_RESULT0__1 = suspendResult;
846
+ this.state_1 = 3;
847
+ continue $sm;
848
+ case 3:
849
+ return this.WHEN_RESULT0__1;
850
+ case 4:
1044
851
  throw this.exception_1;
1045
852
  }
1046
- } catch ($p_0) {
1047
- var e = $p_0;
1048
- if (this.exceptionState_1 === 2) {
853
+ } catch ($p) {
854
+ var e = $p;
855
+ if (this.exceptionState_1 === 4) {
1049
856
  throw e;
1050
857
  } else {
1051
858
  this.state_1 = this.exceptionState_1;
@@ -1054,20 +861,15 @@ protoOf($indexParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
1054
861
  }
1055
862
  while (true);
1056
863
  };
1057
- function $indexParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
864
+ function $unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, resultContinuation) {
1058
865
  CoroutineImpl.call(this, resultContinuation);
1059
866
  this._this__u8e3s4__1 = _this__u8e3s4;
1060
867
  this.companyId_1 = companyId;
1061
- this.search_1 = search;
1062
- this.type_1 = type;
1063
- this.charger_1 = charger;
1064
- this.assigned_1 = assigned;
1065
- this.fields_1 = fields;
1066
- this.pageToken_1 = pageToken;
1067
- this.autoPaginate_1 = autoPaginate;
1068
- this.count_1 = count;
868
+ this.parkingSpaceId_1 = parkingSpaceId;
869
+ this.organizationId_1 = organizationId;
870
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1069
871
  }
1070
- protoOf($indexParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
872
+ protoOf($unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1071
873
  var suspendResult = this.result_1;
1072
874
  $sm: do
1073
875
  try {
@@ -1075,16 +877,16 @@ protoOf($indexParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
1075
877
  switch (tmp) {
1076
878
  case 0:
1077
879
  this.exceptionState_1 = 4;
1078
- if (this._this__u8e3s4__1.indexParkingSpace === protoOf(ParkingApi).indexParkingSpace) {
880
+ if (this._this__u8e3s4__1.unAssignParkingSpaceToOrganization === protoOf(ParkingApi).unAssignParkingSpaceToOrganization) {
1079
881
  this.state_1 = 2;
1080
- suspendResult = this._this__u8e3s4__1.indexParkingSpace$default_33qrpc_k$(this.companyId_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
882
+ suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToOrganization$default_b9colu_k$(this.companyId_1, this.parkingSpaceId_1, this.organizationId_1, this.unassignParkingSpaceCommand_1, this);
1081
883
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1082
884
  return suspendResult;
1083
885
  }
1084
886
  continue $sm;
1085
887
  } else {
1086
888
  this.state_1 = 1;
1087
- suspendResult = await_0(this._this__u8e3s4__1.indexParkingSpace(this.companyId_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
889
+ suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToOrganization(this.companyId_1, this.parkingSpaceId_1, this.organizationId_1, this.unassignParkingSpaceCommand_1), this);
1088
890
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1089
891
  return suspendResult;
1090
892
  }
@@ -1115,134 +917,54 @@ protoOf($indexParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
1115
917
  }
1116
918
  while (true);
1117
919
  };
1118
- function $indexParkingSpacesUserCOROUTINE$(_this__u8e3s4, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
920
+ function $unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, resultContinuation) {
1119
921
  CoroutineImpl.call(this, resultContinuation);
1120
922
  this._this__u8e3s4__1 = _this__u8e3s4;
1121
- this.companyIds_1 = companyIds;
1122
- this.search_1 = search;
1123
- this.type_1 = type;
1124
- this.charger_1 = charger;
1125
- this.assigned_1 = assigned;
1126
- this.fields_1 = fields;
1127
- this.pageToken_1 = pageToken;
1128
- this.autoPaginate_1 = autoPaginate;
1129
- this.count_1 = count;
923
+ this.companyId_1 = companyId;
924
+ this.parkingSpaceId_1 = parkingSpaceId;
925
+ this.personId_1 = personId;
926
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1130
927
  }
1131
- protoOf($indexParkingSpacesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
928
+ protoOf($unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1132
929
  var suspendResult = this.result_1;
1133
930
  $sm: do
1134
931
  try {
1135
932
  var tmp = this.state_1;
1136
933
  switch (tmp) {
1137
934
  case 0:
1138
- this.exceptionState_1 = 2;
1139
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1140
- var localVariableBody = EmptyContent_getInstance();
1141
- var localVariableQuery = LinkedHashMap_init_$Create$();
1142
- var tmp0_safe_receiver = this.companyIds_1;
1143
- if (tmp0_safe_receiver == null)
1144
- null;
1145
- else {
1146
- var tmp2 = 'companyIds';
1147
- var value = toMultiValue(tmp0_safe_receiver, 'multi');
1148
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
1149
- }
1150
-
1151
- if (this.search_1 == null)
1152
- null;
1153
- else {
1154
- var value_0 = listOf_0(this.search_1);
1155
- localVariableQuery.put_4fpzoq_k$('search', value_0);
935
+ this.exceptionState_1 = 4;
936
+ if (this._this__u8e3s4__1.unAssignParkingSpaceToPerson === protoOf(ParkingApi).unAssignParkingSpaceToPerson) {
937
+ this.state_1 = 2;
938
+ suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToPerson$default_tplh4k_k$(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.unassignParkingSpaceCommand_1, this);
939
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
940
+ return suspendResult;
941
+ }
942
+ continue $sm;
943
+ } else {
944
+ this.state_1 = 1;
945
+ suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToPerson(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.unassignParkingSpaceCommand_1), this);
946
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
947
+ return suspendResult;
948
+ }
949
+ continue $sm;
1156
950
  }
1157
951
 
1158
- var tmp2_safe_receiver = this.type_1;
1159
- if (tmp2_safe_receiver == null)
1160
- null;
1161
- else {
1162
- var value_1 = toMultiValue(tmp2_safe_receiver, 'multi');
1163
- localVariableQuery.put_4fpzoq_k$('type', value_1);
1164
- }
1165
-
1166
- if (this.charger_1 == null)
1167
- null;
1168
- else {
1169
- var value_2 = listOf_0('' + this.charger_1);
1170
- localVariableQuery.put_4fpzoq_k$('charger', value_2);
1171
- }
1172
-
1173
- if (this.assigned_1 == null)
1174
- null;
1175
- else {
1176
- var tmp2_0 = 'assigned';
1177
- var value_3 = listOf_0('' + this.assigned_1);
1178
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_3);
1179
- }
1180
-
1181
- if (this.fields_1 == null)
1182
- null;
1183
- else {
1184
- var value_4 = listOf_0(this.fields_1);
1185
- localVariableQuery.put_4fpzoq_k$('fields', value_4);
1186
- }
1187
-
1188
- if (this.pageToken_1 == null)
1189
- null;
1190
- else {
1191
- var tmp2_1 = 'pageToken';
1192
- var value_5 = listOf_0(this.pageToken_1);
1193
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_5);
1194
- }
1195
-
1196
- if (this.autoPaginate_1 == null)
1197
- null;
1198
- else {
1199
- var tmp2_2 = 'autoPaginate';
1200
- var value_6 = listOf_0('' + this.autoPaginate_1);
1201
- localVariableQuery.put_4fpzoq_k$(tmp2_2, value_6);
1202
- }
1203
-
1204
- if (this.count_1 == null)
1205
- null;
1206
- else {
1207
- var value_7 = listOf_0('' + this.count_1);
1208
- localVariableQuery.put_4fpzoq_k$('count', value_7);
1209
- }
1210
-
1211
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1212
- var tmp9_method = RequestMethod_GET_getInstance();
1213
- var localVariableConfig = new RequestConfig(tmp9_method, '/companies/parkingSpaces', localVariableHeaders, VOID, localVariableQuery, true);
1214
- this.state_1 = 1;
1215
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1216
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1217
- return suspendResult;
1218
- }
1219
-
1220
- continue $sm;
1221
952
  case 1:
1222
- var this_0 = suspendResult;
1223
- var tmp_0 = getKClass(PagedListParkingSpace);
1224
- var tmp_1 = null instanceof PagedListParkingSpace;
1225
- var tmp_2;
1226
- try {
1227
- tmp_2 = createKType(getKClass(PagedListParkingSpace), arrayOf([]), false);
1228
- } catch ($p) {
1229
- var tmp_3;
1230
- if ($p instanceof Error) {
1231
- var _unused_var__etf5q3 = $p;
1232
- tmp_3 = null;
1233
- } else {
1234
- throw $p;
1235
- }
1236
- tmp_2 = tmp_3;
1237
- }
1238
-
1239
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
953
+ this.WHEN_RESULT0__1 = suspendResult;
954
+ this.state_1 = 3;
955
+ continue $sm;
1240
956
  case 2:
957
+ this.WHEN_RESULT0__1 = suspendResult;
958
+ this.state_1 = 3;
959
+ continue $sm;
960
+ case 3:
961
+ return this.WHEN_RESULT0__1;
962
+ case 4:
1241
963
  throw this.exception_1;
1242
964
  }
1243
- } catch ($p_0) {
1244
- var e = $p_0;
1245
- if (this.exceptionState_1 === 2) {
965
+ } catch ($p) {
966
+ var e = $p;
967
+ if (this.exceptionState_1 === 4) {
1246
968
  throw e;
1247
969
  } else {
1248
970
  this.state_1 = this.exceptionState_1;
@@ -1251,20 +973,15 @@ protoOf($indexParkingSpacesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1251
973
  }
1252
974
  while (true);
1253
975
  };
1254
- function $indexParkingSpacesUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
976
+ function $unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, resultContinuation) {
1255
977
  CoroutineImpl.call(this, resultContinuation);
1256
978
  this._this__u8e3s4__1 = _this__u8e3s4;
1257
- this.companyIds_1 = companyIds;
1258
- this.search_1 = search;
1259
- this.type_1 = type;
1260
- this.charger_1 = charger;
1261
- this.assigned_1 = assigned;
1262
- this.fields_1 = fields;
1263
- this.pageToken_1 = pageToken;
1264
- this.autoPaginate_1 = autoPaginate;
1265
- this.count_1 = count;
979
+ this.companyId_1 = companyId;
980
+ this.parkingSpaceId_1 = parkingSpaceId;
981
+ this.sectionId_1 = sectionId;
982
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1266
983
  }
1267
- protoOf($indexParkingSpacesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
984
+ protoOf($unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1268
985
  var suspendResult = this.result_1;
1269
986
  $sm: do
1270
987
  try {
@@ -1272,16 +989,16 @@ protoOf($indexParkingSpacesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
1272
989
  switch (tmp) {
1273
990
  case 0:
1274
991
  this.exceptionState_1 = 4;
1275
- if (this._this__u8e3s4__1.indexParkingSpacesUser === protoOf(ParkingApi).indexParkingSpacesUser) {
992
+ if (this._this__u8e3s4__1.unAssignParkingSpaceToSection === protoOf(ParkingApi).unAssignParkingSpaceToSection) {
1276
993
  this.state_1 = 2;
1277
- suspendResult = this._this__u8e3s4__1.indexParkingSpacesUser$default_do01w8_k$(this.companyIds_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
994
+ suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToSection$default_dhhqki_k$(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.unassignParkingSpaceCommand_1, this);
1278
995
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1279
996
  return suspendResult;
1280
997
  }
1281
998
  continue $sm;
1282
999
  } else {
1283
1000
  this.state_1 = 1;
1284
- suspendResult = await_0(this._this__u8e3s4__1.indexParkingSpacesUser(this.companyIds_1, this.search_1, this.type_1, this.charger_1, this.assigned_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
1001
+ suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToSection(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.unassignParkingSpaceCommand_1), this);
1285
1002
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1286
1003
  return suspendResult;
1287
1004
  }
@@ -1312,92 +1029,14 @@ protoOf($indexParkingSpacesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
1312
1029
  }
1313
1030
  while (true);
1314
1031
  };
1315
- function $listVacantParkingSpacesCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
1316
- CoroutineImpl.call(this, resultContinuation);
1317
- this._this__u8e3s4__1 = _this__u8e3s4;
1318
- this.companyId_1 = companyId;
1319
- this.searchDate_1 = searchDate;
1320
- this.fields_1 = fields;
1321
- }
1322
- protoOf($listVacantParkingSpacesCOROUTINE$).doResume_5yljmg_k$ = function () {
1323
- var suspendResult = this.result_1;
1324
- $sm: do
1325
- try {
1326
- var tmp = this.state_1;
1327
- switch (tmp) {
1328
- case 0:
1329
- this.exceptionState_1 = 2;
1330
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1331
- var localVariableBody = EmptyContent_getInstance();
1332
- var localVariableQuery = LinkedHashMap_init_$Create$();
1333
- if (this.searchDate_1 == null)
1334
- null;
1335
- else {
1336
- var tmp2 = 'searchDate';
1337
- var value = listOf_0(this.searchDate_1.toString());
1338
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
1339
- }
1340
-
1341
- if (this.fields_1 == null)
1342
- null;
1343
- else {
1344
- var value_0 = listOf_0(this.fields_1);
1345
- localVariableQuery.put_4fpzoq_k$('fields', value_0);
1346
- }
1347
-
1348
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1349
- var tmp2_method = RequestMethod_GET_getInstance();
1350
- var tmp3_path = replace('/companies/{companyId}/parkingSpaces/vacant', '{companyId}', this.companyId_1.toString());
1351
- var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
1352
- this.state_1 = 1;
1353
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1354
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1355
- return suspendResult;
1356
- }
1357
-
1358
- continue $sm;
1359
- case 1:
1360
- var this_0 = suspendResult;
1361
- var tmp_0 = getKClass(ListVacantParkingSpacesResponse);
1362
- var tmp_1 = null instanceof ListVacantParkingSpacesResponse;
1363
- var tmp_2;
1364
- try {
1365
- tmp_2 = createKType(getKClass(ListVacantParkingSpacesResponse), arrayOf([]), false);
1366
- } catch ($p) {
1367
- var tmp_3;
1368
- if ($p instanceof Error) {
1369
- var _unused_var__etf5q3 = $p;
1370
- tmp_3 = null;
1371
- } else {
1372
- throw $p;
1373
- }
1374
- tmp_2 = tmp_3;
1375
- }
1376
-
1377
- var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1378
- return map(ARGUMENT, ParkingApi$listVacantParkingSpaces$lambda);
1379
- case 2:
1380
- throw this.exception_1;
1381
- }
1382
- } catch ($p_0) {
1383
- var e = $p_0;
1384
- if (this.exceptionState_1 === 2) {
1385
- throw e;
1386
- } else {
1387
- this.state_1 = this.exceptionState_1;
1388
- this.exception_1 = e;
1389
- }
1390
- }
1391
- while (true);
1392
- };
1393
- function $listVacantParkingSpaces$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
1032
+ function $updateParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, updateParkingSpaceCommand, resultContinuation) {
1394
1033
  CoroutineImpl.call(this, resultContinuation);
1395
1034
  this._this__u8e3s4__1 = _this__u8e3s4;
1396
1035
  this.companyId_1 = companyId;
1397
- this.searchDate_1 = searchDate;
1398
- this.fields_1 = fields;
1036
+ this.parkingSpaceId_1 = parkingSpaceId;
1037
+ this.updateParkingSpaceCommand_1 = updateParkingSpaceCommand;
1399
1038
  }
1400
- protoOf($listVacantParkingSpaces$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1039
+ protoOf($updateParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1401
1040
  var suspendResult = this.result_1;
1402
1041
  $sm: do
1403
1042
  try {
@@ -1405,16 +1044,16 @@ protoOf($listVacantParkingSpaces$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
1405
1044
  switch (tmp) {
1406
1045
  case 0:
1407
1046
  this.exceptionState_1 = 4;
1408
- if (this._this__u8e3s4__1.listVacantParkingSpaces === protoOf(ParkingApi).listVacantParkingSpaces) {
1047
+ if (this._this__u8e3s4__1.updateParkingSpace === protoOf(ParkingApi).updateParkingSpace) {
1409
1048
  this.state_1 = 2;
1410
- suspendResult = this._this__u8e3s4__1.listVacantParkingSpaces$default_ntq13c_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
1049
+ suspendResult = this._this__u8e3s4__1.updateParkingSpace_y6whl_k$(this.companyId_1, this.parkingSpaceId_1, this.updateParkingSpaceCommand_1, this);
1411
1050
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1412
1051
  return suspendResult;
1413
1052
  }
1414
1053
  continue $sm;
1415
1054
  } else {
1416
1055
  this.state_1 = 1;
1417
- suspendResult = await_0(this._this__u8e3s4__1.listVacantParkingSpaces(this.companyId_1, this.searchDate_1, this.fields_1), this);
1056
+ suspendResult = await_0(this._this__u8e3s4__1.updateParkingSpace(this.companyId_1, this.parkingSpaceId_1, this.updateParkingSpaceCommand_1), this);
1418
1057
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1419
1058
  return suspendResult;
1420
1059
  }
@@ -1445,65 +1084,358 @@ protoOf($listVacantParkingSpaces$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
1445
1084
  }
1446
1085
  while (true);
1447
1086
  };
1448
- function $parkingSpaceAllocationOverviewCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
1449
- CoroutineImpl.call(this, resultContinuation);
1450
- this._this__u8e3s4__1 = _this__u8e3s4;
1451
- this.companyId_1 = companyId;
1452
- this.searchDate_1 = searchDate;
1453
- this.fields_1 = fields;
1454
- }
1455
- protoOf($parkingSpaceAllocationOverviewCOROUTINE$).doResume_5yljmg_k$ = function () {
1456
- var suspendResult = this.result_1;
1457
- $sm: do
1458
- try {
1459
- var tmp = this.state_1;
1460
- switch (tmp) {
1461
- case 0:
1462
- this.exceptionState_1 = 2;
1463
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1464
- var localVariableBody = EmptyContent_getInstance();
1465
- var localVariableQuery = LinkedHashMap_init_$Create$();
1466
- if (this.searchDate_1 == null)
1467
- null;
1468
- else {
1469
- var tmp2 = 'searchDate';
1470
- var value = listOf_0(this.searchDate_1.toString());
1471
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
1472
- }
1473
-
1474
- if (this.fields_1 == null)
1475
- null;
1476
- else {
1477
- var value_0 = listOf_0(this.fields_1);
1478
- localVariableQuery.put_4fpzoq_k$('fields', value_0);
1479
- }
1480
-
1481
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1482
- var tmp2_method = RequestMethod_GET_getInstance();
1483
- var tmp3_path = replace('/companies/{companyId}/parkingSpaces/allocations', '{companyId}', this.companyId_1.toString());
1484
- var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
1485
- this.state_1 = 1;
1486
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1487
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1488
- return suspendResult;
1489
- }
1490
-
1491
- continue $sm;
1492
- case 1:
1493
- var this_0 = suspendResult;
1494
- var tmp_0 = getKClass(ParkingSpaceAllocationOverview);
1495
- var tmp_1 = null instanceof ParkingSpaceAllocationOverview;
1496
- var tmp_2;
1497
- try {
1498
- tmp_2 = createKType(getKClass(ParkingSpaceAllocationOverview), arrayOf([]), false);
1499
- } catch ($p) {
1500
- var tmp_3;
1501
- if ($p instanceof Error) {
1502
- var _unused_var__etf5q3 = $p;
1503
- tmp_3 = null;
1504
- } else {
1505
- throw $p;
1506
- }
1087
+ protoOf(ParkingApi).assignParkingSpaceToOrganization_9aavbo_k$ = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion) {
1088
+ return assignParkingSpaceToOrganizationOperation_0(this, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
1089
+ };
1090
+ protoOf(ParkingApi).assignParkingSpaceToOrganization = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand) {
1091
+ var tmp = this;
1092
+ return promisify(function ($completion) {
1093
+ return tmp.assignParkingSpaceToOrganization_9aavbo_k$(companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
1094
+ });
1095
+ };
1096
+ protoOf(ParkingApi).assignParkingSpaceToOrganization$suspendBridge_snkjkb_k$ = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion) {
1097
+ var tmp = new $assignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
1098
+ tmp.result_1 = Unit_instance;
1099
+ tmp.exception_1 = null;
1100
+ return tmp.doResume_5yljmg_k$();
1101
+ };
1102
+ protoOf(ParkingApi).assignParkingSpaceToPerson_j7nbw6_k$ = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion) {
1103
+ return assignParkingSpaceToPersonOperation_0(this, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
1104
+ };
1105
+ protoOf(ParkingApi).assignParkingSpaceToPerson = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand) {
1106
+ var tmp = this;
1107
+ return promisify(function ($completion) {
1108
+ return tmp.assignParkingSpaceToPerson_j7nbw6_k$(companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
1109
+ });
1110
+ };
1111
+ protoOf(ParkingApi).assignParkingSpaceToPerson$suspendBridge_b5mbvt_k$ = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion) {
1112
+ var tmp = new $assignParkingSpaceToPerson$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
1113
+ tmp.result_1 = Unit_instance;
1114
+ tmp.exception_1 = null;
1115
+ return tmp.doResume_5yljmg_k$();
1116
+ };
1117
+ protoOf(ParkingApi).assignParkingSpaceToSection_xjpkh6_k$ = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion) {
1118
+ return assignParkingSpaceToSectionOperation_0(this, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
1119
+ };
1120
+ protoOf(ParkingApi).assignParkingSpaceToSection = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand) {
1121
+ var tmp = this;
1122
+ return promisify(function ($completion) {
1123
+ return tmp.assignParkingSpaceToSection_xjpkh6_k$(companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
1124
+ });
1125
+ };
1126
+ protoOf(ParkingApi).assignParkingSpaceToSection$suspendBridge_z7wuwn_k$ = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion) {
1127
+ var tmp = new $assignParkingSpaceToSection$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
1128
+ tmp.result_1 = Unit_instance;
1129
+ tmp.exception_1 = null;
1130
+ return tmp.doResume_5yljmg_k$();
1131
+ };
1132
+ protoOf(ParkingApi).createParkingSpace_svxlk3_k$ = function (companyId, createParkingSpaceCommand, $completion) {
1133
+ return createParkingSpaceOperation_0(this, companyId, createParkingSpaceCommand, $completion);
1134
+ };
1135
+ protoOf(ParkingApi).createParkingSpace = function (companyId, createParkingSpaceCommand) {
1136
+ var tmp = this;
1137
+ return promisify(function ($completion) {
1138
+ return tmp.createParkingSpace_svxlk3_k$(companyId, createParkingSpaceCommand, $completion);
1139
+ });
1140
+ };
1141
+ protoOf(ParkingApi).createParkingSpace$suspendBridge_19dq4c_k$ = function (companyId, createParkingSpaceCommand, $completion) {
1142
+ var tmp = new $createParkingSpace$suspendBridgeCOROUTINE$(this, companyId, createParkingSpaceCommand, $completion);
1143
+ tmp.result_1 = Unit_instance;
1144
+ tmp.exception_1 = null;
1145
+ return tmp.doResume_5yljmg_k$();
1146
+ };
1147
+ protoOf(ParkingApi).deleteParkingSpace_r5wo6t_k$ = function (companyId, parkingSpaceId, $completion) {
1148
+ return deleteParkingSpaceOperation_0(this, companyId, parkingSpaceId, $completion);
1149
+ };
1150
+ protoOf(ParkingApi).deleteParkingSpace = function (companyId, parkingSpaceId) {
1151
+ var tmp = this;
1152
+ return promisify(function ($completion) {
1153
+ return tmp.deleteParkingSpace_r5wo6t_k$(companyId, parkingSpaceId, $completion);
1154
+ });
1155
+ };
1156
+ protoOf(ParkingApi).deleteParkingSpace$suspendBridge_96t1u2_k$ = function (companyId, parkingSpaceId, $completion) {
1157
+ var tmp = new $deleteParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, $completion);
1158
+ tmp.result_1 = Unit_instance;
1159
+ tmp.exception_1 = null;
1160
+ return tmp.doResume_5yljmg_k$();
1161
+ };
1162
+ protoOf(ParkingApi).exportAssets_k57oj3_k$ = function (companyId, $completion) {
1163
+ return exportAssetsOperation_0(this, companyId, $completion);
1164
+ };
1165
+ protoOf(ParkingApi).exportAssets = function (companyId) {
1166
+ var tmp = this;
1167
+ return promisify(function ($completion) {
1168
+ return tmp.exportAssets_k57oj3_k$(companyId, $completion);
1169
+ });
1170
+ };
1171
+ protoOf(ParkingApi).exportAssets$suspendBridge_gl27u6_k$ = function (companyId, $completion) {
1172
+ var tmp = new $exportAssets$suspendBridgeCOROUTINE$(this, companyId, $completion);
1173
+ tmp.result_1 = Unit_instance;
1174
+ tmp.exception_1 = null;
1175
+ return tmp.doResume_5yljmg_k$();
1176
+ };
1177
+ protoOf(ParkingApi).indexParkingSpace_r5j0hw_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1178
+ return indexParkingSpaceOperation_0(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1179
+ };
1180
+ protoOf(ParkingApi).indexParkingSpace$default_33qrpc_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
1181
+ search = search === VOID ? null : search;
1182
+ type = type === VOID ? null : type;
1183
+ charger = charger === VOID ? null : charger;
1184
+ assigned = assigned === VOID ? null : assigned;
1185
+ fields = fields === VOID ? null : fields;
1186
+ pageToken = pageToken === VOID ? null : pageToken;
1187
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1188
+ count = count === VOID ? null : count;
1189
+ return $super === VOID ? this.indexParkingSpace_r5j0hw_k$(companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexParkingSpace_r5j0hw_k$.call(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1190
+ };
1191
+ protoOf(ParkingApi).indexParkingSpace = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
1192
+ var tmp = this;
1193
+ return promisify(function ($completion) {
1194
+ return tmp.indexParkingSpace$default_33qrpc_k$(companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1195
+ });
1196
+ };
1197
+ protoOf(ParkingApi).indexParkingSpace$suspendBridge_udxm1v_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1198
+ var tmp = new $indexParkingSpace$suspendBridgeCOROUTINE$(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1199
+ tmp.result_1 = Unit_instance;
1200
+ tmp.exception_1 = null;
1201
+ return tmp.doResume_5yljmg_k$();
1202
+ };
1203
+ protoOf(ParkingApi).indexParkingSpacesUser_ycz40z_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1204
+ return indexParkingSpacesUserOperation_0(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1205
+ };
1206
+ protoOf(ParkingApi).indexParkingSpacesUser$default_do01w8_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
1207
+ companyIds = companyIds === VOID ? null : companyIds;
1208
+ search = search === VOID ? null : search;
1209
+ type = type === VOID ? null : type;
1210
+ charger = charger === VOID ? null : charger;
1211
+ assigned = assigned === VOID ? null : assigned;
1212
+ fields = fields === VOID ? null : fields;
1213
+ pageToken = pageToken === VOID ? null : pageToken;
1214
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1215
+ count = count === VOID ? null : count;
1216
+ return $super === VOID ? this.indexParkingSpacesUser_ycz40z_k$(companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexParkingSpacesUser_ycz40z_k$.call(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1217
+ };
1218
+ protoOf(ParkingApi).indexParkingSpacesUser = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
1219
+ var tmp = this;
1220
+ return promisify(function ($completion) {
1221
+ return tmp.indexParkingSpacesUser$default_do01w8_k$(companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1222
+ });
1223
+ };
1224
+ protoOf(ParkingApi).indexParkingSpacesUser$suspendBridge_qvx9fg_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1225
+ var tmp = new $indexParkingSpacesUser$suspendBridgeCOROUTINE$(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1226
+ tmp.result_1 = Unit_instance;
1227
+ tmp.exception_1 = null;
1228
+ return tmp.doResume_5yljmg_k$();
1229
+ };
1230
+ protoOf(ParkingApi).listVacantParkingSpaces_mey9du_k$ = function (companyId, searchDate, fields, $completion) {
1231
+ return listVacantParkingSpacesOperation_0(this, companyId, searchDate, fields, $completion);
1232
+ };
1233
+ protoOf(ParkingApi).listVacantParkingSpaces$default_ntq13c_k$ = function (companyId, searchDate, fields, $completion, $super) {
1234
+ searchDate = searchDate === VOID ? null : searchDate;
1235
+ fields = fields === VOID ? null : fields;
1236
+ return $super === VOID ? this.listVacantParkingSpaces_mey9du_k$(companyId, searchDate, fields, $completion) : $super.listVacantParkingSpaces_mey9du_k$.call(this, companyId, searchDate, fields, $completion);
1237
+ };
1238
+ protoOf(ParkingApi).listVacantParkingSpaces = function (companyId, searchDate, fields) {
1239
+ var tmp = this;
1240
+ return promisify(function ($completion) {
1241
+ return tmp.listVacantParkingSpaces$default_ntq13c_k$(companyId, searchDate, fields, $completion);
1242
+ });
1243
+ };
1244
+ protoOf(ParkingApi).listVacantParkingSpaces$suspendBridge_7y2wvx_k$ = function (companyId, searchDate, fields, $completion) {
1245
+ var tmp = new $listVacantParkingSpaces$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
1246
+ tmp.result_1 = Unit_instance;
1247
+ tmp.exception_1 = null;
1248
+ return tmp.doResume_5yljmg_k$();
1249
+ };
1250
+ protoOf(ParkingApi).parkingSpaceAllocationOverview_feg47r_k$ = function (companyId, searchDate, fields, $completion) {
1251
+ return parkingSpaceAllocationOverviewOperation_0(this, companyId, searchDate, fields, $completion);
1252
+ };
1253
+ protoOf(ParkingApi).parkingSpaceAllocationOverview$default_n2aomn_k$ = function (companyId, searchDate, fields, $completion, $super) {
1254
+ searchDate = searchDate === VOID ? null : searchDate;
1255
+ fields = fields === VOID ? null : fields;
1256
+ return $super === VOID ? this.parkingSpaceAllocationOverview_feg47r_k$(companyId, searchDate, fields, $completion) : $super.parkingSpaceAllocationOverview_feg47r_k$.call(this, companyId, searchDate, fields, $completion);
1257
+ };
1258
+ protoOf(ParkingApi).parkingSpaceAllocationOverview = function (companyId, searchDate, fields) {
1259
+ var tmp = this;
1260
+ return promisify(function ($completion) {
1261
+ return tmp.parkingSpaceAllocationOverview$default_n2aomn_k$(companyId, searchDate, fields, $completion);
1262
+ });
1263
+ };
1264
+ protoOf(ParkingApi).parkingSpaceAllocationOverview$suspendBridge_sdoxyu_k$ = function (companyId, searchDate, fields, $completion) {
1265
+ var tmp = new $parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
1266
+ tmp.result_1 = Unit_instance;
1267
+ tmp.exception_1 = null;
1268
+ return tmp.doResume_5yljmg_k$();
1269
+ };
1270
+ protoOf(ParkingApi).parkingSpaceVacancy_mkoyx7_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion) {
1271
+ return parkingSpaceVacancyOperation_0(this, companyId, parkingSpaceId, searchDate, fields, $completion);
1272
+ };
1273
+ protoOf(ParkingApi).parkingSpaceVacancy$default_bcdsqv_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion, $super) {
1274
+ searchDate = searchDate === VOID ? null : searchDate;
1275
+ fields = fields === VOID ? null : fields;
1276
+ return $super === VOID ? this.parkingSpaceVacancy_mkoyx7_k$(companyId, parkingSpaceId, searchDate, fields, $completion) : $super.parkingSpaceVacancy_mkoyx7_k$.call(this, companyId, parkingSpaceId, searchDate, fields, $completion);
1277
+ };
1278
+ protoOf(ParkingApi).parkingSpaceVacancy = function (companyId, parkingSpaceId, searchDate, fields) {
1279
+ var tmp = this;
1280
+ return promisify(function ($completion) {
1281
+ return tmp.parkingSpaceVacancy$default_bcdsqv_k$(companyId, parkingSpaceId, searchDate, fields, $completion);
1282
+ });
1283
+ };
1284
+ protoOf(ParkingApi).parkingSpaceVacancy$suspendBridge_wku5cm_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion) {
1285
+ var tmp = new $parkingSpaceVacancy$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, searchDate, fields, $completion);
1286
+ tmp.result_1 = Unit_instance;
1287
+ tmp.exception_1 = null;
1288
+ return tmp.doResume_5yljmg_k$();
1289
+ };
1290
+ protoOf(ParkingApi).showParkingSpace_piy5p9_k$ = function (companyId, parkingSpaceId, fields, $completion) {
1291
+ return showParkingSpaceOperation_0(this, companyId, parkingSpaceId, fields, $completion);
1292
+ };
1293
+ protoOf(ParkingApi).showParkingSpace$default_x3punw_k$ = function (companyId, parkingSpaceId, fields, $completion, $super) {
1294
+ fields = fields === VOID ? null : fields;
1295
+ return $super === VOID ? this.showParkingSpace_piy5p9_k$(companyId, parkingSpaceId, fields, $completion) : $super.showParkingSpace_piy5p9_k$.call(this, companyId, parkingSpaceId, fields, $completion);
1296
+ };
1297
+ protoOf(ParkingApi).showParkingSpace = function (companyId, parkingSpaceId, fields) {
1298
+ var tmp = this;
1299
+ return promisify(function ($completion) {
1300
+ return tmp.showParkingSpace$default_x3punw_k$(companyId, parkingSpaceId, fields, $completion);
1301
+ });
1302
+ };
1303
+ protoOf(ParkingApi).showParkingSpace$suspendBridge_ixhhgc_k$ = function (companyId, parkingSpaceId, fields, $completion) {
1304
+ var tmp = new $showParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, fields, $completion);
1305
+ tmp.result_1 = Unit_instance;
1306
+ tmp.exception_1 = null;
1307
+ return tmp.doResume_5yljmg_k$();
1308
+ };
1309
+ protoOf(ParkingApi).unAssignParkingSpaceToOrganization_16zz3h_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) {
1310
+ return unAssignParkingSpaceToOrganizationOperation_0(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
1311
+ };
1312
+ protoOf(ParkingApi).unAssignParkingSpaceToOrganization$default_b9colu_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion, $super) {
1313
+ unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
1314
+ return $super === VOID ? this.unAssignParkingSpaceToOrganization_16zz3h_k$(companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToOrganization_16zz3h_k$.call(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
1315
+ };
1316
+ protoOf(ParkingApi).unAssignParkingSpaceToOrganization = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand) {
1317
+ var tmp = this;
1318
+ return promisify(function ($completion) {
1319
+ return tmp.unAssignParkingSpaceToOrganization$default_b9colu_k$(companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
1320
+ });
1321
+ };
1322
+ protoOf(ParkingApi).unAssignParkingSpaceToOrganization$suspendBridge_780w9g_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) {
1323
+ var tmp = new $unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
1324
+ tmp.result_1 = Unit_instance;
1325
+ tmp.exception_1 = null;
1326
+ return tmp.doResume_5yljmg_k$();
1327
+ };
1328
+ protoOf(ParkingApi).unAssignParkingSpaceToPerson_u26j63_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) {
1329
+ return unAssignParkingSpaceToPersonOperation_0(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
1330
+ };
1331
+ protoOf(ParkingApi).unAssignParkingSpaceToPerson$default_tplh4k_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion, $super) {
1332
+ unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
1333
+ return $super === VOID ? this.unAssignParkingSpaceToPerson_u26j63_k$(companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToPerson_u26j63_k$.call(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
1334
+ };
1335
+ protoOf(ParkingApi).unAssignParkingSpaceToPerson = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand) {
1336
+ var tmp = this;
1337
+ return promisify(function ($completion) {
1338
+ return tmp.unAssignParkingSpaceToPerson$default_tplh4k_k$(companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
1339
+ });
1340
+ };
1341
+ protoOf(ParkingApi).unAssignParkingSpaceToPerson$suspendBridge_ac07g6_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) {
1342
+ var tmp = new $unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
1343
+ tmp.result_1 = Unit_instance;
1344
+ tmp.exception_1 = null;
1345
+ return tmp.doResume_5yljmg_k$();
1346
+ };
1347
+ protoOf(ParkingApi).unAssignParkingSpaceToSection_k34l37_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) {
1348
+ return unAssignParkingSpaceToSectionOperation_0(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
1349
+ };
1350
+ protoOf(ParkingApi).unAssignParkingSpaceToSection$default_dhhqki_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion, $super) {
1351
+ unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
1352
+ return $super === VOID ? this.unAssignParkingSpaceToSection_k34l37_k$(companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToSection_k34l37_k$.call(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
1353
+ };
1354
+ protoOf(ParkingApi).unAssignParkingSpaceToSection = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand) {
1355
+ var tmp = this;
1356
+ return promisify(function ($completion) {
1357
+ return tmp.unAssignParkingSpaceToSection$default_dhhqki_k$(companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
1358
+ });
1359
+ };
1360
+ protoOf(ParkingApi).unAssignParkingSpaceToSection$suspendBridge_245gn0_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) {
1361
+ var tmp = new $unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
1362
+ tmp.result_1 = Unit_instance;
1363
+ tmp.exception_1 = null;
1364
+ return tmp.doResume_5yljmg_k$();
1365
+ };
1366
+ protoOf(ParkingApi).updateParkingSpace_y6whl_k$ = function (companyId, parkingSpaceId, updateParkingSpaceCommand, $completion) {
1367
+ return updateParkingSpaceOperation_0(this, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
1368
+ };
1369
+ protoOf(ParkingApi).updateParkingSpace = function (companyId, parkingSpaceId, updateParkingSpaceCommand) {
1370
+ var tmp = this;
1371
+ return promisify(function ($completion) {
1372
+ return tmp.updateParkingSpace_y6whl_k$(companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
1373
+ });
1374
+ };
1375
+ protoOf(ParkingApi).updateParkingSpace$suspendBridge_f6l2ew_k$ = function (companyId, parkingSpaceId, updateParkingSpaceCommand, $completion) {
1376
+ var tmp = new $updateParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
1377
+ tmp.result_1 = Unit_instance;
1378
+ tmp.exception_1 = null;
1379
+ return tmp.doResume_5yljmg_k$();
1380
+ };
1381
+ function ParkingApi() {
1382
+ }
1383
+ function assignParkingSpaceToOrganizationOperation(client, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand) {
1384
+ return promisify(function ($completion) {
1385
+ return assignParkingSpaceToOrganizationOperation_0(client, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
1386
+ });
1387
+ }
1388
+ function assignParkingSpaceToOrganizationOperation_0(client, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion) {
1389
+ var tmp = new $assignParkingSpaceToOrganizationOperationCOROUTINE$(client, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
1390
+ tmp.result_1 = Unit_instance;
1391
+ tmp.exception_1 = null;
1392
+ return tmp.doResume_5yljmg_k$();
1393
+ }
1394
+ function $assignParkingSpaceToOrganizationOperationCOROUTINE$(client, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, resultContinuation) {
1395
+ CoroutineImpl.call(this, resultContinuation);
1396
+ this.client_1 = client;
1397
+ this.companyId_1 = companyId;
1398
+ this.parkingSpaceId_1 = parkingSpaceId;
1399
+ this.organizationId_1 = organizationId;
1400
+ this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
1401
+ }
1402
+ protoOf($assignParkingSpaceToOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1403
+ var suspendResult = this.result_1;
1404
+ $sm: do
1405
+ try {
1406
+ var tmp = this.state_1;
1407
+ switch (tmp) {
1408
+ case 0:
1409
+ this.exceptionState_1 = 2;
1410
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1411
+ var localVariableBody = this.assignParkingSpaceCommand_1;
1412
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1413
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1414
+ var tmp0_method = RequestMethod_PUT_getInstance();
1415
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{organizationId}', this.organizationId_1.toString());
1416
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1417
+ this.state_1 = 1;
1418
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1419
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1420
+ return suspendResult;
1421
+ }
1422
+
1423
+ continue $sm;
1424
+ case 1:
1425
+ var this_0 = suspendResult;
1426
+ var tmp_0 = getKClass(Unit);
1427
+ var tmp_1 = null instanceof Unit;
1428
+ var tmp_2;
1429
+ try {
1430
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1431
+ } catch ($p) {
1432
+ var tmp_3;
1433
+ if ($p instanceof Error) {
1434
+ var _unused_var__etf5q3 = $p;
1435
+ tmp_3 = null;
1436
+ } else {
1437
+ throw $p;
1438
+ }
1507
1439
  tmp_2 = tmp_3;
1508
1440
  }
1509
1441
 
@@ -1522,53 +1454,72 @@ protoOf($parkingSpaceAllocationOverviewCOROUTINE$).doResume_5yljmg_k$ = function
1522
1454
  }
1523
1455
  while (true);
1524
1456
  };
1525
- function $parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, searchDate, fields, resultContinuation) {
1457
+ function assignParkingSpaceToPersonOperation(client, companyId, parkingSpaceId, personId, assignParkingSpaceCommand) {
1458
+ return promisify(function ($completion) {
1459
+ return assignParkingSpaceToPersonOperation_0(client, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
1460
+ });
1461
+ }
1462
+ function assignParkingSpaceToPersonOperation_0(client, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion) {
1463
+ var tmp = new $assignParkingSpaceToPersonOperationCOROUTINE$(client, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
1464
+ tmp.result_1 = Unit_instance;
1465
+ tmp.exception_1 = null;
1466
+ return tmp.doResume_5yljmg_k$();
1467
+ }
1468
+ function $assignParkingSpaceToPersonOperationCOROUTINE$(client, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, resultContinuation) {
1526
1469
  CoroutineImpl.call(this, resultContinuation);
1527
- this._this__u8e3s4__1 = _this__u8e3s4;
1470
+ this.client_1 = client;
1528
1471
  this.companyId_1 = companyId;
1529
- this.searchDate_1 = searchDate;
1530
- this.fields_1 = fields;
1472
+ this.parkingSpaceId_1 = parkingSpaceId;
1473
+ this.personId_1 = personId;
1474
+ this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
1531
1475
  }
1532
- protoOf($parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1476
+ protoOf($assignParkingSpaceToPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1533
1477
  var suspendResult = this.result_1;
1534
1478
  $sm: do
1535
1479
  try {
1536
1480
  var tmp = this.state_1;
1537
1481
  switch (tmp) {
1538
1482
  case 0:
1539
- this.exceptionState_1 = 4;
1540
- if (this._this__u8e3s4__1.parkingSpaceAllocationOverview === protoOf(ParkingApi).parkingSpaceAllocationOverview) {
1541
- this.state_1 = 2;
1542
- suspendResult = this._this__u8e3s4__1.parkingSpaceAllocationOverview$default_n2aomn_k$(this.companyId_1, this.searchDate_1, this.fields_1, this);
1543
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1544
- return suspendResult;
1545
- }
1546
- continue $sm;
1547
- } else {
1548
- this.state_1 = 1;
1549
- suspendResult = await_0(this._this__u8e3s4__1.parkingSpaceAllocationOverview(this.companyId_1, this.searchDate_1, this.fields_1), this);
1550
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1551
- return suspendResult;
1552
- }
1553
- continue $sm;
1483
+ this.exceptionState_1 = 2;
1484
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1485
+ var localVariableBody = this.assignParkingSpaceCommand_1;
1486
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1487
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1488
+ var tmp0_method = RequestMethod_PUT_getInstance();
1489
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{personId}', this.personId_1.toString());
1490
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1491
+ this.state_1 = 1;
1492
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1493
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1494
+ return suspendResult;
1554
1495
  }
1555
1496
 
1556
- case 1:
1557
- this.WHEN_RESULT0__1 = suspendResult;
1558
- this.state_1 = 3;
1559
1497
  continue $sm;
1498
+ case 1:
1499
+ var this_0 = suspendResult;
1500
+ var tmp_0 = getKClass(Unit);
1501
+ var tmp_1 = null instanceof Unit;
1502
+ var tmp_2;
1503
+ try {
1504
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1505
+ } catch ($p) {
1506
+ var tmp_3;
1507
+ if ($p instanceof Error) {
1508
+ var _unused_var__etf5q3 = $p;
1509
+ tmp_3 = null;
1510
+ } else {
1511
+ throw $p;
1512
+ }
1513
+ tmp_2 = tmp_3;
1514
+ }
1515
+
1516
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1560
1517
  case 2:
1561
- this.WHEN_RESULT0__1 = suspendResult;
1562
- this.state_1 = 3;
1563
- continue $sm;
1564
- case 3:
1565
- return this.WHEN_RESULT0__1;
1566
- case 4:
1567
1518
  throw this.exception_1;
1568
1519
  }
1569
- } catch ($p) {
1570
- var e = $p;
1571
- if (this.exceptionState_1 === 4) {
1520
+ } catch ($p_0) {
1521
+ var e = $p_0;
1522
+ if (this.exceptionState_1 === 2) {
1572
1523
  throw e;
1573
1524
  } else {
1574
1525
  this.state_1 = this.exceptionState_1;
@@ -1577,15 +1528,26 @@ protoOf($parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$).doResume_5yljmg
1577
1528
  }
1578
1529
  while (true);
1579
1530
  };
1580
- function $parkingSpaceVacancyCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, searchDate, fields, resultContinuation) {
1531
+ function assignParkingSpaceToSectionOperation(client, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand) {
1532
+ return promisify(function ($completion) {
1533
+ return assignParkingSpaceToSectionOperation_0(client, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
1534
+ });
1535
+ }
1536
+ function assignParkingSpaceToSectionOperation_0(client, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion) {
1537
+ var tmp = new $assignParkingSpaceToSectionOperationCOROUTINE$(client, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
1538
+ tmp.result_1 = Unit_instance;
1539
+ tmp.exception_1 = null;
1540
+ return tmp.doResume_5yljmg_k$();
1541
+ }
1542
+ function $assignParkingSpaceToSectionOperationCOROUTINE$(client, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, resultContinuation) {
1581
1543
  CoroutineImpl.call(this, resultContinuation);
1582
- this._this__u8e3s4__1 = _this__u8e3s4;
1544
+ this.client_1 = client;
1583
1545
  this.companyId_1 = companyId;
1584
1546
  this.parkingSpaceId_1 = parkingSpaceId;
1585
- this.searchDate_1 = searchDate;
1586
- this.fields_1 = fields;
1547
+ this.sectionId_1 = sectionId;
1548
+ this.assignParkingSpaceCommand_1 = assignParkingSpaceCommand;
1587
1549
  }
1588
- protoOf($parkingSpaceVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
1550
+ protoOf($assignParkingSpaceToSectionOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1589
1551
  var suspendResult = this.result_1;
1590
1552
  $sm: do
1591
1553
  try {
@@ -1594,29 +1556,14 @@ protoOf($parkingSpaceVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
1594
1556
  case 0:
1595
1557
  this.exceptionState_1 = 2;
1596
1558
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1597
- var localVariableBody = EmptyContent_getInstance();
1559
+ var localVariableBody = this.assignParkingSpaceCommand_1;
1598
1560
  var localVariableQuery = LinkedHashMap_init_$Create$();
1599
- if (this.searchDate_1 == null)
1600
- null;
1601
- else {
1602
- var tmp2 = 'searchDate';
1603
- var value = listOf_0(this.searchDate_1.toString());
1604
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
1605
- }
1606
-
1607
- if (this.fields_1 == null)
1608
- null;
1609
- else {
1610
- var value_0 = listOf_0(this.fields_1);
1611
- localVariableQuery.put_4fpzoq_k$('fields', value_0);
1612
- }
1613
-
1614
1561
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1615
- var tmp2_method = RequestMethod_GET_getInstance();
1616
- var tmp3_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/vacancy', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
1617
- var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
1562
+ var tmp0_method = RequestMethod_PUT_getInstance();
1563
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{sectionId}', this.sectionId_1.toString());
1564
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1618
1565
  this.state_1 = 1;
1619
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1566
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1620
1567
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1621
1568
  return suspendResult;
1622
1569
  }
@@ -1624,11 +1571,11 @@ protoOf($parkingSpaceVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
1624
1571
  continue $sm;
1625
1572
  case 1:
1626
1573
  var this_0 = suspendResult;
1627
- var tmp_0 = getKClass(ParkingSpaceVacancy);
1628
- var tmp_1 = null instanceof ParkingSpaceVacancy;
1574
+ var tmp_0 = getKClass(Unit);
1575
+ var tmp_1 = null instanceof Unit;
1629
1576
  var tmp_2;
1630
1577
  try {
1631
- tmp_2 = createKType(getKClass(ParkingSpaceVacancy), arrayOf([]), false);
1578
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1632
1579
  } catch ($p) {
1633
1580
  var tmp_3;
1634
1581
  if ($p instanceof Error) {
@@ -1655,54 +1602,70 @@ protoOf($parkingSpaceVacancyCOROUTINE$).doResume_5yljmg_k$ = function () {
1655
1602
  }
1656
1603
  while (true);
1657
1604
  };
1658
- function $parkingSpaceVacancy$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, searchDate, fields, resultContinuation) {
1605
+ function createParkingSpaceOperation(client, companyId, createParkingSpaceCommand) {
1606
+ return promisify(function ($completion) {
1607
+ return createParkingSpaceOperation_0(client, companyId, createParkingSpaceCommand, $completion);
1608
+ });
1609
+ }
1610
+ function createParkingSpaceOperation_0(client, companyId, createParkingSpaceCommand, $completion) {
1611
+ var tmp = new $createParkingSpaceOperationCOROUTINE$(client, companyId, createParkingSpaceCommand, $completion);
1612
+ tmp.result_1 = Unit_instance;
1613
+ tmp.exception_1 = null;
1614
+ return tmp.doResume_5yljmg_k$();
1615
+ }
1616
+ function $createParkingSpaceOperationCOROUTINE$(client, companyId, createParkingSpaceCommand, resultContinuation) {
1659
1617
  CoroutineImpl.call(this, resultContinuation);
1660
- this._this__u8e3s4__1 = _this__u8e3s4;
1618
+ this.client_1 = client;
1661
1619
  this.companyId_1 = companyId;
1662
- this.parkingSpaceId_1 = parkingSpaceId;
1663
- this.searchDate_1 = searchDate;
1664
- this.fields_1 = fields;
1620
+ this.createParkingSpaceCommand_1 = createParkingSpaceCommand;
1665
1621
  }
1666
- protoOf($parkingSpaceVacancy$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1622
+ protoOf($createParkingSpaceOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1667
1623
  var suspendResult = this.result_1;
1668
1624
  $sm: do
1669
1625
  try {
1670
1626
  var tmp = this.state_1;
1671
1627
  switch (tmp) {
1672
1628
  case 0:
1673
- this.exceptionState_1 = 4;
1674
- if (this._this__u8e3s4__1.parkingSpaceVacancy === protoOf(ParkingApi).parkingSpaceVacancy) {
1675
- this.state_1 = 2;
1676
- suspendResult = this._this__u8e3s4__1.parkingSpaceVacancy$default_bcdsqv_k$(this.companyId_1, this.parkingSpaceId_1, this.searchDate_1, this.fields_1, this);
1677
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1678
- return suspendResult;
1679
- }
1680
- continue $sm;
1681
- } else {
1682
- this.state_1 = 1;
1683
- suspendResult = await_0(this._this__u8e3s4__1.parkingSpaceVacancy(this.companyId_1, this.parkingSpaceId_1, this.searchDate_1, this.fields_1), this);
1684
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1685
- return suspendResult;
1686
- }
1687
- continue $sm;
1629
+ this.exceptionState_1 = 2;
1630
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1631
+ var localVariableBody = this.createParkingSpaceCommand_1;
1632
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1633
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1634
+ var tmp0_method = RequestMethod_POST_getInstance();
1635
+ var tmp1_path = replace('/companies/{companyId}/parkingSpaces', '{companyId}', this.companyId_1.toString());
1636
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1637
+ this.state_1 = 1;
1638
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1639
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1640
+ return suspendResult;
1688
1641
  }
1689
1642
 
1690
- case 1:
1691
- this.WHEN_RESULT0__1 = suspendResult;
1692
- this.state_1 = 3;
1693
1643
  continue $sm;
1644
+ case 1:
1645
+ var this_0 = suspendResult;
1646
+ var tmp_0 = getKClass(ParkingSpace);
1647
+ var tmp_1 = null instanceof ParkingSpace;
1648
+ var tmp_2;
1649
+ try {
1650
+ tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
1651
+ } catch ($p) {
1652
+ var tmp_3;
1653
+ if ($p instanceof Error) {
1654
+ var _unused_var__etf5q3 = $p;
1655
+ tmp_3 = null;
1656
+ } else {
1657
+ throw $p;
1658
+ }
1659
+ tmp_2 = tmp_3;
1660
+ }
1661
+
1662
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1694
1663
  case 2:
1695
- this.WHEN_RESULT0__1 = suspendResult;
1696
- this.state_1 = 3;
1697
- continue $sm;
1698
- case 3:
1699
- return this.WHEN_RESULT0__1;
1700
- case 4:
1701
1664
  throw this.exception_1;
1702
1665
  }
1703
- } catch ($p) {
1704
- var e = $p;
1705
- if (this.exceptionState_1 === 4) {
1666
+ } catch ($p_0) {
1667
+ var e = $p_0;
1668
+ if (this.exceptionState_1 === 2) {
1706
1669
  throw e;
1707
1670
  } else {
1708
1671
  this.state_1 = this.exceptionState_1;
@@ -1711,14 +1674,24 @@ protoOf($parkingSpaceVacancy$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
1711
1674
  }
1712
1675
  while (true);
1713
1676
  };
1714
- function $showParkingSpaceCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, fields, resultContinuation) {
1677
+ function deleteParkingSpaceOperation(client, companyId, parkingSpaceId) {
1678
+ return promisify(function ($completion) {
1679
+ return deleteParkingSpaceOperation_0(client, companyId, parkingSpaceId, $completion);
1680
+ });
1681
+ }
1682
+ function deleteParkingSpaceOperation_0(client, companyId, parkingSpaceId, $completion) {
1683
+ var tmp = new $deleteParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, $completion);
1684
+ tmp.result_1 = Unit_instance;
1685
+ tmp.exception_1 = null;
1686
+ return tmp.doResume_5yljmg_k$();
1687
+ }
1688
+ function $deleteParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, resultContinuation) {
1715
1689
  CoroutineImpl.call(this, resultContinuation);
1716
- this._this__u8e3s4__1 = _this__u8e3s4;
1690
+ this.client_1 = client;
1717
1691
  this.companyId_1 = companyId;
1718
1692
  this.parkingSpaceId_1 = parkingSpaceId;
1719
- this.fields_1 = fields;
1720
1693
  }
1721
- protoOf($showParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
1694
+ protoOf($deleteParkingSpaceOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1722
1695
  var suspendResult = this.result_1;
1723
1696
  $sm: do
1724
1697
  try {
@@ -1729,19 +1702,12 @@ protoOf($showParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
1729
1702
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1730
1703
  var localVariableBody = EmptyContent_getInstance();
1731
1704
  var localVariableQuery = LinkedHashMap_init_$Create$();
1732
- if (this.fields_1 == null)
1733
- null;
1734
- else {
1735
- var value = listOf_0(this.fields_1);
1736
- localVariableQuery.put_4fpzoq_k$('fields', value);
1737
- }
1738
-
1739
1705
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1740
- var tmp1_method = RequestMethod_GET_getInstance();
1741
- var tmp2_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
1742
- var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
1706
+ var tmp0_method = RequestMethod_DELETE_getInstance();
1707
+ var tmp1_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
1708
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1743
1709
  this.state_1 = 1;
1744
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1710
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1745
1711
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1746
1712
  return suspendResult;
1747
1713
  }
@@ -1749,11 +1715,11 @@ protoOf($showParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
1749
1715
  continue $sm;
1750
1716
  case 1:
1751
1717
  var this_0 = suspendResult;
1752
- var tmp_0 = getKClass(ParkingSpace);
1753
- var tmp_1 = null instanceof ParkingSpace;
1718
+ var tmp_0 = getKClass(Unit);
1719
+ var tmp_1 = null instanceof Unit;
1754
1720
  var tmp_2;
1755
1721
  try {
1756
- tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
1722
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1757
1723
  } catch ($p) {
1758
1724
  var tmp_3;
1759
1725
  if ($p instanceof Error) {
@@ -1780,53 +1746,69 @@ protoOf($showParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
1780
1746
  }
1781
1747
  while (true);
1782
1748
  };
1783
- function $showParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, fields, resultContinuation) {
1749
+ function exportAssetsOperation(client, companyId) {
1750
+ return promisify(function ($completion) {
1751
+ return exportAssetsOperation_0(client, companyId, $completion);
1752
+ });
1753
+ }
1754
+ function exportAssetsOperation_0(client, companyId, $completion) {
1755
+ var tmp = new $exportAssetsOperationCOROUTINE$(client, companyId, $completion);
1756
+ tmp.result_1 = Unit_instance;
1757
+ tmp.exception_1 = null;
1758
+ return tmp.doResume_5yljmg_k$();
1759
+ }
1760
+ function $exportAssetsOperationCOROUTINE$(client, companyId, resultContinuation) {
1784
1761
  CoroutineImpl.call(this, resultContinuation);
1785
- this._this__u8e3s4__1 = _this__u8e3s4;
1762
+ this.client_1 = client;
1786
1763
  this.companyId_1 = companyId;
1787
- this.parkingSpaceId_1 = parkingSpaceId;
1788
- this.fields_1 = fields;
1789
1764
  }
1790
- protoOf($showParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1765
+ protoOf($exportAssetsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1791
1766
  var suspendResult = this.result_1;
1792
1767
  $sm: do
1793
1768
  try {
1794
1769
  var tmp = this.state_1;
1795
1770
  switch (tmp) {
1796
1771
  case 0:
1797
- this.exceptionState_1 = 4;
1798
- if (this._this__u8e3s4__1.showParkingSpace === protoOf(ParkingApi).showParkingSpace) {
1799
- this.state_1 = 2;
1800
- suspendResult = this._this__u8e3s4__1.showParkingSpace$default_x3punw_k$(this.companyId_1, this.parkingSpaceId_1, this.fields_1, this);
1801
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1802
- return suspendResult;
1803
- }
1804
- continue $sm;
1805
- } else {
1806
- this.state_1 = 1;
1807
- suspendResult = await_0(this._this__u8e3s4__1.showParkingSpace(this.companyId_1, this.parkingSpaceId_1, this.fields_1), this);
1808
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1809
- return suspendResult;
1810
- }
1811
- continue $sm;
1772
+ this.exceptionState_1 = 2;
1773
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1774
+ var localVariableBody = EmptyContent_getInstance();
1775
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1776
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1777
+ var tmp0_method = RequestMethod_GET_getInstance();
1778
+ var tmp1_path = replace('/companies/{companyId}/parkingSpaces/export', '{companyId}', this.companyId_1.toString());
1779
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1780
+ this.state_1 = 1;
1781
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1782
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1783
+ return suspendResult;
1812
1784
  }
1813
1785
 
1814
- case 1:
1815
- this.WHEN_RESULT0__1 = suspendResult;
1816
- this.state_1 = 3;
1817
1786
  continue $sm;
1787
+ case 1:
1788
+ var this_0 = suspendResult;
1789
+ var tmp_0 = getKClass(Base64ByteArray);
1790
+ var tmp_1 = null instanceof Base64ByteArray;
1791
+ var tmp_2;
1792
+ try {
1793
+ tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
1794
+ } catch ($p) {
1795
+ var tmp_3;
1796
+ if ($p instanceof Error) {
1797
+ var _unused_var__etf5q3 = $p;
1798
+ tmp_3 = null;
1799
+ } else {
1800
+ throw $p;
1801
+ }
1802
+ tmp_2 = tmp_3;
1803
+ }
1804
+
1805
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1818
1806
  case 2:
1819
- this.WHEN_RESULT0__1 = suspendResult;
1820
- this.state_1 = 3;
1821
- continue $sm;
1822
- case 3:
1823
- return this.WHEN_RESULT0__1;
1824
- case 4:
1825
1807
  throw this.exception_1;
1826
1808
  }
1827
- } catch ($p) {
1828
- var e = $p;
1829
- if (this.exceptionState_1 === 4) {
1809
+ } catch ($p_0) {
1810
+ var e = $p_0;
1811
+ if (this.exceptionState_1 === 2) {
1830
1812
  throw e;
1831
1813
  } else {
1832
1814
  this.state_1 = this.exceptionState_1;
@@ -1835,15 +1817,39 @@ protoOf($showParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
1835
1817
  }
1836
1818
  while (true);
1837
1819
  };
1838
- function $unAssignParkingSpaceToOrganizationCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, resultContinuation) {
1820
+ function indexParkingSpaceOperation(client, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
1821
+ return promisify(function ($completion) {
1822
+ return indexParkingSpaceOperation_0(client, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1823
+ });
1824
+ }
1825
+ function indexParkingSpaceOperation_0(client, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1826
+ search = search === VOID ? null : search;
1827
+ type = type === VOID ? null : type;
1828
+ charger = charger === VOID ? null : charger;
1829
+ assigned = assigned === VOID ? null : assigned;
1830
+ fields = fields === VOID ? null : fields;
1831
+ pageToken = pageToken === VOID ? null : pageToken;
1832
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1833
+ count = count === VOID ? null : count;
1834
+ var tmp = new $indexParkingSpaceOperationCOROUTINE$(client, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1835
+ tmp.result_1 = Unit_instance;
1836
+ tmp.exception_1 = null;
1837
+ return tmp.doResume_5yljmg_k$();
1838
+ }
1839
+ function $indexParkingSpaceOperationCOROUTINE$(client, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
1839
1840
  CoroutineImpl.call(this, resultContinuation);
1840
- this._this__u8e3s4__1 = _this__u8e3s4;
1841
+ this.client_1 = client;
1841
1842
  this.companyId_1 = companyId;
1842
- this.parkingSpaceId_1 = parkingSpaceId;
1843
- this.organizationId_1 = organizationId;
1844
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1843
+ this.search_1 = search;
1844
+ this.type_1 = type;
1845
+ this.charger_1 = charger;
1846
+ this.assigned_1 = assigned;
1847
+ this.fields_1 = fields;
1848
+ this.pageToken_1 = pageToken;
1849
+ this.autoPaginate_1 = autoPaginate;
1850
+ this.count_1 = count;
1845
1851
  }
1846
- protoOf($unAssignParkingSpaceToOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
1852
+ protoOf($indexParkingSpaceOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1847
1853
  var suspendResult = this.result_1;
1848
1854
  $sm: do
1849
1855
  try {
@@ -1852,14 +1858,74 @@ protoOf($unAssignParkingSpaceToOrganizationCOROUTINE$).doResume_5yljmg_k$ = func
1852
1858
  case 0:
1853
1859
  this.exceptionState_1 = 2;
1854
1860
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1855
- var localVariableBody = this.unassignParkingSpaceCommand_1;
1861
+ var localVariableBody = EmptyContent_getInstance();
1856
1862
  var localVariableQuery = LinkedHashMap_init_$Create$();
1863
+ if (this.search_1 == null)
1864
+ null;
1865
+ else {
1866
+ var value = listOf_0(this.search_1);
1867
+ localVariableQuery.put_4fpzoq_k$('search', value);
1868
+ }
1869
+
1870
+ var tmp1_safe_receiver = this.type_1;
1871
+ if (tmp1_safe_receiver == null)
1872
+ null;
1873
+ else {
1874
+ var value_0 = toMultiValue(tmp1_safe_receiver, 'multi');
1875
+ localVariableQuery.put_4fpzoq_k$('type', value_0);
1876
+ }
1877
+
1878
+ if (this.charger_1 == null)
1879
+ null;
1880
+ else {
1881
+ var value_1 = listOf_0('' + this.charger_1);
1882
+ localVariableQuery.put_4fpzoq_k$('charger', value_1);
1883
+ }
1884
+
1885
+ if (this.assigned_1 == null)
1886
+ null;
1887
+ else {
1888
+ var tmp2 = 'assigned';
1889
+ var value_2 = listOf_0('' + this.assigned_1);
1890
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_2);
1891
+ }
1892
+
1893
+ if (this.fields_1 == null)
1894
+ null;
1895
+ else {
1896
+ var value_3 = listOf_0(this.fields_1);
1897
+ localVariableQuery.put_4fpzoq_k$('fields', value_3);
1898
+ }
1899
+
1900
+ if (this.pageToken_1 == null)
1901
+ null;
1902
+ else {
1903
+ var tmp2_0 = 'pageToken';
1904
+ var value_4 = listOf_0(this.pageToken_1);
1905
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_4);
1906
+ }
1907
+
1908
+ if (this.autoPaginate_1 == null)
1909
+ null;
1910
+ else {
1911
+ var tmp2_1 = 'autoPaginate';
1912
+ var value_5 = listOf_0('' + this.autoPaginate_1);
1913
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_5);
1914
+ }
1915
+
1916
+ if (this.count_1 == null)
1917
+ null;
1918
+ else {
1919
+ var value_6 = listOf_0('' + this.count_1);
1920
+ localVariableQuery.put_4fpzoq_k$('count', value_6);
1921
+ }
1922
+
1857
1923
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1858
- var tmp0_method = RequestMethod_DELETE_getInstance();
1859
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{organizationId}', this.organizationId_1.toString());
1860
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1924
+ var tmp8_method = RequestMethod_GET_getInstance();
1925
+ var tmp9_path = replace('/companies/{companyId}/parkingSpaces', '{companyId}', this.companyId_1.toString());
1926
+ var localVariableConfig = new RequestConfig(tmp8_method, tmp9_path, localVariableHeaders, VOID, localVariableQuery, true);
1861
1927
  this.state_1 = 1;
1862
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1928
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1863
1929
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1864
1930
  return suspendResult;
1865
1931
  }
@@ -1867,11 +1933,11 @@ protoOf($unAssignParkingSpaceToOrganizationCOROUTINE$).doResume_5yljmg_k$ = func
1867
1933
  continue $sm;
1868
1934
  case 1:
1869
1935
  var this_0 = suspendResult;
1870
- var tmp_0 = getKClass(Unit);
1871
- var tmp_1 = null instanceof Unit;
1936
+ var tmp_0 = getKClass(PagedListParkingSpace);
1937
+ var tmp_1 = null instanceof PagedListParkingSpace;
1872
1938
  var tmp_2;
1873
1939
  try {
1874
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1940
+ tmp_2 = createKType(getKClass(PagedListParkingSpace), arrayOf([]), false);
1875
1941
  } catch ($p) {
1876
1942
  var tmp_3;
1877
1943
  if ($p instanceof Error) {
@@ -1898,87 +1964,124 @@ protoOf($unAssignParkingSpaceToOrganizationCOROUTINE$).doResume_5yljmg_k$ = func
1898
1964
  }
1899
1965
  while (true);
1900
1966
  };
1901
- function $unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, resultContinuation) {
1967
+ function indexParkingSpacesUserOperation(client, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
1968
+ return promisify(function ($completion) {
1969
+ return indexParkingSpacesUserOperation_0(client, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1970
+ });
1971
+ }
1972
+ function indexParkingSpacesUserOperation_0(client, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
1973
+ companyIds = companyIds === VOID ? null : companyIds;
1974
+ search = search === VOID ? null : search;
1975
+ type = type === VOID ? null : type;
1976
+ charger = charger === VOID ? null : charger;
1977
+ assigned = assigned === VOID ? null : assigned;
1978
+ fields = fields === VOID ? null : fields;
1979
+ pageToken = pageToken === VOID ? null : pageToken;
1980
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1981
+ count = count === VOID ? null : count;
1982
+ var tmp = new $indexParkingSpacesUserOperationCOROUTINE$(client, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
1983
+ tmp.result_1 = Unit_instance;
1984
+ tmp.exception_1 = null;
1985
+ return tmp.doResume_5yljmg_k$();
1986
+ }
1987
+ function $indexParkingSpacesUserOperationCOROUTINE$(client, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, resultContinuation) {
1902
1988
  CoroutineImpl.call(this, resultContinuation);
1903
- this._this__u8e3s4__1 = _this__u8e3s4;
1904
- this.companyId_1 = companyId;
1905
- this.parkingSpaceId_1 = parkingSpaceId;
1906
- this.organizationId_1 = organizationId;
1907
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1989
+ this.client_1 = client;
1990
+ this.companyIds_1 = companyIds;
1991
+ this.search_1 = search;
1992
+ this.type_1 = type;
1993
+ this.charger_1 = charger;
1994
+ this.assigned_1 = assigned;
1995
+ this.fields_1 = fields;
1996
+ this.pageToken_1 = pageToken;
1997
+ this.autoPaginate_1 = autoPaginate;
1998
+ this.count_1 = count;
1908
1999
  }
1909
- protoOf($unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
2000
+ protoOf($indexParkingSpacesUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1910
2001
  var suspendResult = this.result_1;
1911
2002
  $sm: do
1912
2003
  try {
1913
2004
  var tmp = this.state_1;
1914
2005
  switch (tmp) {
1915
2006
  case 0:
1916
- this.exceptionState_1 = 4;
1917
- if (this._this__u8e3s4__1.unAssignParkingSpaceToOrganization === protoOf(ParkingApi).unAssignParkingSpaceToOrganization) {
1918
- this.state_1 = 2;
1919
- suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToOrganization$default_b9colu_k$(this.companyId_1, this.parkingSpaceId_1, this.organizationId_1, this.unassignParkingSpaceCommand_1, this);
1920
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1921
- return suspendResult;
1922
- }
1923
- continue $sm;
1924
- } else {
1925
- this.state_1 = 1;
1926
- suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToOrganization(this.companyId_1, this.parkingSpaceId_1, this.organizationId_1, this.unassignParkingSpaceCommand_1), this);
1927
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1928
- return suspendResult;
1929
- }
1930
- continue $sm;
2007
+ this.exceptionState_1 = 2;
2008
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2009
+ var localVariableBody = EmptyContent_getInstance();
2010
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2011
+ var tmp0_safe_receiver = this.companyIds_1;
2012
+ if (tmp0_safe_receiver == null)
2013
+ null;
2014
+ else {
2015
+ var tmp2 = 'companyIds';
2016
+ var value = toMultiValue(tmp0_safe_receiver, 'multi');
2017
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
2018
+ }
2019
+
2020
+ if (this.search_1 == null)
2021
+ null;
2022
+ else {
2023
+ var value_0 = listOf_0(this.search_1);
2024
+ localVariableQuery.put_4fpzoq_k$('search', value_0);
2025
+ }
2026
+
2027
+ var tmp2_safe_receiver = this.type_1;
2028
+ if (tmp2_safe_receiver == null)
2029
+ null;
2030
+ else {
2031
+ var value_1 = toMultiValue(tmp2_safe_receiver, 'multi');
2032
+ localVariableQuery.put_4fpzoq_k$('type', value_1);
2033
+ }
2034
+
2035
+ if (this.charger_1 == null)
2036
+ null;
2037
+ else {
2038
+ var value_2 = listOf_0('' + this.charger_1);
2039
+ localVariableQuery.put_4fpzoq_k$('charger', value_2);
2040
+ }
2041
+
2042
+ if (this.assigned_1 == null)
2043
+ null;
2044
+ else {
2045
+ var tmp2_0 = 'assigned';
2046
+ var value_3 = listOf_0('' + this.assigned_1);
2047
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_3);
2048
+ }
2049
+
2050
+ if (this.fields_1 == null)
2051
+ null;
2052
+ else {
2053
+ var value_4 = listOf_0(this.fields_1);
2054
+ localVariableQuery.put_4fpzoq_k$('fields', value_4);
2055
+ }
2056
+
2057
+ if (this.pageToken_1 == null)
2058
+ null;
2059
+ else {
2060
+ var tmp2_1 = 'pageToken';
2061
+ var value_5 = listOf_0(this.pageToken_1);
2062
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_5);
2063
+ }
2064
+
2065
+ if (this.autoPaginate_1 == null)
2066
+ null;
2067
+ else {
2068
+ var tmp2_2 = 'autoPaginate';
2069
+ var value_6 = listOf_0('' + this.autoPaginate_1);
2070
+ localVariableQuery.put_4fpzoq_k$(tmp2_2, value_6);
2071
+ }
2072
+
2073
+ if (this.count_1 == null)
2074
+ null;
2075
+ else {
2076
+ var value_7 = listOf_0('' + this.count_1);
2077
+ localVariableQuery.put_4fpzoq_k$('count', value_7);
1931
2078
  }
1932
2079
 
1933
- case 1:
1934
- this.WHEN_RESULT0__1 = suspendResult;
1935
- this.state_1 = 3;
1936
- continue $sm;
1937
- case 2:
1938
- this.WHEN_RESULT0__1 = suspendResult;
1939
- this.state_1 = 3;
1940
- continue $sm;
1941
- case 3:
1942
- return this.WHEN_RESULT0__1;
1943
- case 4:
1944
- throw this.exception_1;
1945
- }
1946
- } catch ($p) {
1947
- var e = $p;
1948
- if (this.exceptionState_1 === 4) {
1949
- throw e;
1950
- } else {
1951
- this.state_1 = this.exceptionState_1;
1952
- this.exception_1 = e;
1953
- }
1954
- }
1955
- while (true);
1956
- };
1957
- function $unAssignParkingSpaceToPersonCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, resultContinuation) {
1958
- CoroutineImpl.call(this, resultContinuation);
1959
- this._this__u8e3s4__1 = _this__u8e3s4;
1960
- this.companyId_1 = companyId;
1961
- this.parkingSpaceId_1 = parkingSpaceId;
1962
- this.personId_1 = personId;
1963
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
1964
- }
1965
- protoOf($unAssignParkingSpaceToPersonCOROUTINE$).doResume_5yljmg_k$ = function () {
1966
- var suspendResult = this.result_1;
1967
- $sm: do
1968
- try {
1969
- var tmp = this.state_1;
1970
- switch (tmp) {
1971
- case 0:
1972
- this.exceptionState_1 = 2;
1973
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1974
- var localVariableBody = this.unassignParkingSpaceCommand_1;
1975
- var localVariableQuery = LinkedHashMap_init_$Create$();
1976
2080
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1977
- var tmp0_method = RequestMethod_DELETE_getInstance();
1978
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{personId}', this.personId_1.toString());
1979
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2081
+ var tmp9_method = RequestMethod_GET_getInstance();
2082
+ var localVariableConfig = new RequestConfig(tmp9_method, '/companies/parkingSpaces', localVariableHeaders, VOID, localVariableQuery, true);
1980
2083
  this.state_1 = 1;
1981
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2084
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1982
2085
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1983
2086
  return suspendResult;
1984
2087
  }
@@ -1986,11 +2089,11 @@ protoOf($unAssignParkingSpaceToPersonCOROUTINE$).doResume_5yljmg_k$ = function (
1986
2089
  continue $sm;
1987
2090
  case 1:
1988
2091
  var this_0 = suspendResult;
1989
- var tmp_0 = getKClass(Unit);
1990
- var tmp_1 = null instanceof Unit;
2092
+ var tmp_0 = getKClass(PagedListParkingSpace);
2093
+ var tmp_1 = null instanceof PagedListParkingSpace;
1991
2094
  var tmp_2;
1992
2095
  try {
1993
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
2096
+ tmp_2 = createKType(getKClass(PagedListParkingSpace), arrayOf([]), false);
1994
2097
  } catch ($p) {
1995
2098
  var tmp_3;
1996
2099
  if ($p instanceof Error) {
@@ -2017,71 +2120,64 @@ protoOf($unAssignParkingSpaceToPersonCOROUTINE$).doResume_5yljmg_k$ = function (
2017
2120
  }
2018
2121
  while (true);
2019
2122
  };
2020
- function $unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, resultContinuation) {
2021
- CoroutineImpl.call(this, resultContinuation);
2022
- this._this__u8e3s4__1 = _this__u8e3s4;
2023
- this.companyId_1 = companyId;
2024
- this.parkingSpaceId_1 = parkingSpaceId;
2025
- this.personId_1 = personId;
2026
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2123
+ function listVacantParkingSpacesOperation(client, companyId, searchDate, fields) {
2124
+ return promisify(function ($completion) {
2125
+ return listVacantParkingSpacesOperation_0(client, companyId, searchDate, fields, $completion);
2126
+ });
2027
2127
  }
2028
- protoOf($unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
2029
- var suspendResult = this.result_1;
2030
- $sm: do
2031
- try {
2032
- var tmp = this.state_1;
2033
- switch (tmp) {
2034
- case 0:
2035
- this.exceptionState_1 = 4;
2036
- if (this._this__u8e3s4__1.unAssignParkingSpaceToPerson === protoOf(ParkingApi).unAssignParkingSpaceToPerson) {
2037
- this.state_1 = 2;
2038
- suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToPerson$default_tplh4k_k$(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.unassignParkingSpaceCommand_1, this);
2039
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2040
- return suspendResult;
2041
- }
2042
- continue $sm;
2043
- } else {
2044
- this.state_1 = 1;
2045
- suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToPerson(this.companyId_1, this.parkingSpaceId_1, this.personId_1, this.unassignParkingSpaceCommand_1), this);
2046
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2047
- return suspendResult;
2048
- }
2049
- continue $sm;
2050
- }
2051
-
2052
- case 1:
2053
- this.WHEN_RESULT0__1 = suspendResult;
2054
- this.state_1 = 3;
2055
- continue $sm;
2056
- case 2:
2057
- this.WHEN_RESULT0__1 = suspendResult;
2058
- this.state_1 = 3;
2059
- continue $sm;
2060
- case 3:
2061
- return this.WHEN_RESULT0__1;
2062
- case 4:
2063
- throw this.exception_1;
2064
- }
2065
- } catch ($p) {
2066
- var e = $p;
2067
- if (this.exceptionState_1 === 4) {
2068
- throw e;
2069
- } else {
2070
- this.state_1 = this.exceptionState_1;
2071
- this.exception_1 = e;
2072
- }
2073
- }
2074
- while (true);
2128
+ function listVacantParkingSpacesOperation_0(client, companyId, searchDate, fields, $completion) {
2129
+ searchDate = searchDate === VOID ? null : searchDate;
2130
+ fields = fields === VOID ? null : fields;
2131
+ var tmp = new $listVacantParkingSpacesOperationCOROUTINE$(client, companyId, searchDate, fields, $completion);
2132
+ tmp.result_1 = Unit_instance;
2133
+ tmp.exception_1 = null;
2134
+ return tmp.doResume_5yljmg_k$();
2135
+ }
2136
+ function Companion() {
2137
+ Companion_instance_0 = this;
2138
+ var tmp = this;
2139
+ // Inline function 'kotlinx.serialization.serializer' call
2140
+ // Inline function 'kotlinx.serialization.internal.cast' call
2141
+ var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ParkingSpaceVacant), arrayOf([]), false))]), false));
2142
+ tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
2143
+ this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
2144
+ }
2145
+ protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
2146
+ return this.descriptor_1;
2147
+ };
2148
+ protoOf(Companion).serialize_5rfys1_k$ = function (encoder, value) {
2149
+ return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
2150
+ };
2151
+ protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
2152
+ return this.serialize_5rfys1_k$(encoder, value instanceof ListVacantParkingSpacesResponse ? value : THROW_CCE());
2153
+ };
2154
+ protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
2155
+ return new ListVacantParkingSpacesResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
2075
2156
  };
2076
- function $unAssignParkingSpaceToSectionCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, resultContinuation) {
2157
+ protoOf(Companion).serializer_9w0wvi_k$ = function () {
2158
+ return Companion_getInstance_1();
2159
+ };
2160
+ var Companion_instance_0;
2161
+ function Companion_getInstance_1() {
2162
+ if (Companion_instance_0 == null)
2163
+ new Companion();
2164
+ return Companion_instance_0;
2165
+ }
2166
+ function ListVacantParkingSpacesResponse(value) {
2167
+ Companion_getInstance_1();
2168
+ this.value_1 = value;
2169
+ }
2170
+ function listVacantParkingSpacesOperation$lambda($this$map) {
2171
+ return $this$map.value_1;
2172
+ }
2173
+ function $listVacantParkingSpacesOperationCOROUTINE$(client, companyId, searchDate, fields, resultContinuation) {
2077
2174
  CoroutineImpl.call(this, resultContinuation);
2078
- this._this__u8e3s4__1 = _this__u8e3s4;
2175
+ this.client_1 = client;
2079
2176
  this.companyId_1 = companyId;
2080
- this.parkingSpaceId_1 = parkingSpaceId;
2081
- this.sectionId_1 = sectionId;
2082
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2177
+ this.searchDate_1 = searchDate;
2178
+ this.fields_1 = fields;
2083
2179
  }
2084
- protoOf($unAssignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function () {
2180
+ protoOf($listVacantParkingSpacesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2085
2181
  var suspendResult = this.result_1;
2086
2182
  $sm: do
2087
2183
  try {
@@ -2090,14 +2186,29 @@ protoOf($unAssignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function
2090
2186
  case 0:
2091
2187
  this.exceptionState_1 = 2;
2092
2188
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2093
- var localVariableBody = this.unassignParkingSpaceCommand_1;
2189
+ var localVariableBody = EmptyContent_getInstance();
2094
2190
  var localVariableQuery = LinkedHashMap_init_$Create$();
2191
+ if (this.searchDate_1 == null)
2192
+ null;
2193
+ else {
2194
+ var tmp2 = 'searchDate';
2195
+ var value = listOf_0(this.searchDate_1.toString());
2196
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
2197
+ }
2198
+
2199
+ if (this.fields_1 == null)
2200
+ null;
2201
+ else {
2202
+ var value_0 = listOf_0(this.fields_1);
2203
+ localVariableQuery.put_4fpzoq_k$('fields', value_0);
2204
+ }
2205
+
2095
2206
  var localVariableHeaders = LinkedHashMap_init_$Create$();
2096
- var tmp0_method = RequestMethod_DELETE_getInstance();
2097
- var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{sectionId}', this.sectionId_1.toString());
2098
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2207
+ var tmp2_method = RequestMethod_GET_getInstance();
2208
+ var tmp3_path = replace('/companies/{companyId}/parkingSpaces/vacant', '{companyId}', this.companyId_1.toString());
2209
+ var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
2099
2210
  this.state_1 = 1;
2100
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2211
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2101
2212
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2102
2213
  return suspendResult;
2103
2214
  }
@@ -2105,11 +2216,11 @@ protoOf($unAssignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function
2105
2216
  continue $sm;
2106
2217
  case 1:
2107
2218
  var this_0 = suspendResult;
2108
- var tmp_0 = getKClass(Unit);
2109
- var tmp_1 = null instanceof Unit;
2219
+ var tmp_0 = getKClass(ListVacantParkingSpacesResponse);
2220
+ var tmp_1 = null instanceof ListVacantParkingSpacesResponse;
2110
2221
  var tmp_2;
2111
2222
  try {
2112
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
2223
+ tmp_2 = createKType(getKClass(ListVacantParkingSpacesResponse), arrayOf([]), false);
2113
2224
  } catch ($p) {
2114
2225
  var tmp_3;
2115
2226
  if ($p instanceof Error) {
@@ -2121,7 +2232,8 @@ protoOf($unAssignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function
2121
2232
  tmp_2 = tmp_3;
2122
2233
  }
2123
2234
 
2124
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2235
+ var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2236
+ return map(ARGUMENT, listVacantParkingSpacesOperation$lambda);
2125
2237
  case 2:
2126
2238
  throw this.exception_1;
2127
2239
  }
@@ -2136,70 +2248,27 @@ protoOf($unAssignParkingSpaceToSectionCOROUTINE$).doResume_5yljmg_k$ = function
2136
2248
  }
2137
2249
  while (true);
2138
2250
  };
2139
- function $unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, resultContinuation) {
2140
- CoroutineImpl.call(this, resultContinuation);
2141
- this._this__u8e3s4__1 = _this__u8e3s4;
2142
- this.companyId_1 = companyId;
2143
- this.parkingSpaceId_1 = parkingSpaceId;
2144
- this.sectionId_1 = sectionId;
2145
- this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2251
+ function parkingSpaceAllocationOverviewOperation(client, companyId, searchDate, fields) {
2252
+ return promisify(function ($completion) {
2253
+ return parkingSpaceAllocationOverviewOperation_0(client, companyId, searchDate, fields, $completion);
2254
+ });
2146
2255
  }
2147
- protoOf($unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
2148
- var suspendResult = this.result_1;
2149
- $sm: do
2150
- try {
2151
- var tmp = this.state_1;
2152
- switch (tmp) {
2153
- case 0:
2154
- this.exceptionState_1 = 4;
2155
- if (this._this__u8e3s4__1.unAssignParkingSpaceToSection === protoOf(ParkingApi).unAssignParkingSpaceToSection) {
2156
- this.state_1 = 2;
2157
- suspendResult = this._this__u8e3s4__1.unAssignParkingSpaceToSection$default_dhhqki_k$(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.unassignParkingSpaceCommand_1, this);
2158
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2159
- return suspendResult;
2160
- }
2161
- continue $sm;
2162
- } else {
2163
- this.state_1 = 1;
2164
- suspendResult = await_0(this._this__u8e3s4__1.unAssignParkingSpaceToSection(this.companyId_1, this.parkingSpaceId_1, this.sectionId_1, this.unassignParkingSpaceCommand_1), this);
2165
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2166
- return suspendResult;
2167
- }
2168
- continue $sm;
2169
- }
2170
-
2171
- case 1:
2172
- this.WHEN_RESULT0__1 = suspendResult;
2173
- this.state_1 = 3;
2174
- continue $sm;
2175
- case 2:
2176
- this.WHEN_RESULT0__1 = suspendResult;
2177
- this.state_1 = 3;
2178
- continue $sm;
2179
- case 3:
2180
- return this.WHEN_RESULT0__1;
2181
- case 4:
2182
- throw this.exception_1;
2183
- }
2184
- } catch ($p) {
2185
- var e = $p;
2186
- if (this.exceptionState_1 === 4) {
2187
- throw e;
2188
- } else {
2189
- this.state_1 = this.exceptionState_1;
2190
- this.exception_1 = e;
2191
- }
2192
- }
2193
- while (true);
2194
- };
2195
- function $updateParkingSpaceCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, updateParkingSpaceCommand, resultContinuation) {
2256
+ function parkingSpaceAllocationOverviewOperation_0(client, companyId, searchDate, fields, $completion) {
2257
+ searchDate = searchDate === VOID ? null : searchDate;
2258
+ fields = fields === VOID ? null : fields;
2259
+ var tmp = new $parkingSpaceAllocationOverviewOperationCOROUTINE$(client, companyId, searchDate, fields, $completion);
2260
+ tmp.result_1 = Unit_instance;
2261
+ tmp.exception_1 = null;
2262
+ return tmp.doResume_5yljmg_k$();
2263
+ }
2264
+ function $parkingSpaceAllocationOverviewOperationCOROUTINE$(client, companyId, searchDate, fields, resultContinuation) {
2196
2265
  CoroutineImpl.call(this, resultContinuation);
2197
- this._this__u8e3s4__1 = _this__u8e3s4;
2266
+ this.client_1 = client;
2198
2267
  this.companyId_1 = companyId;
2199
- this.parkingSpaceId_1 = parkingSpaceId;
2200
- this.updateParkingSpaceCommand_1 = updateParkingSpaceCommand;
2268
+ this.searchDate_1 = searchDate;
2269
+ this.fields_1 = fields;
2201
2270
  }
2202
- protoOf($updateParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
2271
+ protoOf($parkingSpaceAllocationOverviewOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2203
2272
  var suspendResult = this.result_1;
2204
2273
  $sm: do
2205
2274
  try {
@@ -2208,14 +2277,29 @@ protoOf($updateParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
2208
2277
  case 0:
2209
2278
  this.exceptionState_1 = 2;
2210
2279
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2211
- var localVariableBody = this.updateParkingSpaceCommand_1;
2280
+ var localVariableBody = EmptyContent_getInstance();
2212
2281
  var localVariableQuery = LinkedHashMap_init_$Create$();
2282
+ if (this.searchDate_1 == null)
2283
+ null;
2284
+ else {
2285
+ var tmp2 = 'searchDate';
2286
+ var value = listOf_0(this.searchDate_1.toString());
2287
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
2288
+ }
2289
+
2290
+ if (this.fields_1 == null)
2291
+ null;
2292
+ else {
2293
+ var value_0 = listOf_0(this.fields_1);
2294
+ localVariableQuery.put_4fpzoq_k$('fields', value_0);
2295
+ }
2296
+
2213
2297
  var localVariableHeaders = LinkedHashMap_init_$Create$();
2214
- var tmp0_method = RequestMethod_PUT_getInstance();
2215
- var tmp1_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
2216
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2298
+ var tmp2_method = RequestMethod_GET_getInstance();
2299
+ var tmp3_path = replace('/companies/{companyId}/parkingSpaces/allocations', '{companyId}', this.companyId_1.toString());
2300
+ var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
2217
2301
  this.state_1 = 1;
2218
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2302
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2219
2303
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2220
2304
  return suspendResult;
2221
2305
  }
@@ -2223,11 +2307,11 @@ protoOf($updateParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
2223
2307
  continue $sm;
2224
2308
  case 1:
2225
2309
  var this_0 = suspendResult;
2226
- var tmp_0 = getKClass(ParkingSpace);
2227
- var tmp_1 = null instanceof ParkingSpace;
2310
+ var tmp_0 = getKClass(ParkingSpaceAllocationOverview);
2311
+ var tmp_1 = null instanceof ParkingSpaceAllocationOverview;
2228
2312
  var tmp_2;
2229
2313
  try {
2230
- tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
2314
+ tmp_2 = createKType(getKClass(ParkingSpaceAllocationOverview), arrayOf([]), false);
2231
2315
  } catch ($p) {
2232
2316
  var tmp_3;
2233
2317
  if ($p instanceof Error) {
@@ -2246,413 +2330,484 @@ protoOf($updateParkingSpaceCOROUTINE$).doResume_5yljmg_k$ = function () {
2246
2330
  } catch ($p_0) {
2247
2331
  var e = $p_0;
2248
2332
  if (this.exceptionState_1 === 2) {
2249
- throw e;
2250
- } else {
2251
- this.state_1 = this.exceptionState_1;
2252
- this.exception_1 = e;
2253
- }
2254
- }
2255
- while (true);
2256
- };
2257
- function $updateParkingSpace$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, parkingSpaceId, updateParkingSpaceCommand, resultContinuation) {
2258
- CoroutineImpl.call(this, resultContinuation);
2259
- this._this__u8e3s4__1 = _this__u8e3s4;
2260
- this.companyId_1 = companyId;
2261
- this.parkingSpaceId_1 = parkingSpaceId;
2262
- this.updateParkingSpaceCommand_1 = updateParkingSpaceCommand;
2263
- }
2264
- protoOf($updateParkingSpace$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
2265
- var suspendResult = this.result_1;
2266
- $sm: do
2267
- try {
2268
- var tmp = this.state_1;
2269
- switch (tmp) {
2270
- case 0:
2271
- this.exceptionState_1 = 4;
2272
- if (this._this__u8e3s4__1.updateParkingSpace === protoOf(ParkingApi).updateParkingSpace) {
2273
- this.state_1 = 2;
2274
- suspendResult = this._this__u8e3s4__1.updateParkingSpace_y6whl_k$(this.companyId_1, this.parkingSpaceId_1, this.updateParkingSpaceCommand_1, this);
2275
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2276
- return suspendResult;
2277
- }
2278
- continue $sm;
2279
- } else {
2280
- this.state_1 = 1;
2281
- suspendResult = await_0(this._this__u8e3s4__1.updateParkingSpace(this.companyId_1, this.parkingSpaceId_1, this.updateParkingSpaceCommand_1), this);
2282
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
2283
- return suspendResult;
2284
- }
2285
- continue $sm;
2286
- }
2287
-
2288
- case 1:
2289
- this.WHEN_RESULT0__1 = suspendResult;
2290
- this.state_1 = 3;
2291
- continue $sm;
2292
- case 2:
2293
- this.WHEN_RESULT0__1 = suspendResult;
2294
- this.state_1 = 3;
2295
- continue $sm;
2296
- case 3:
2297
- return this.WHEN_RESULT0__1;
2298
- case 4:
2299
- throw this.exception_1;
2300
- }
2301
- } catch ($p) {
2302
- var e = $p;
2303
- if (this.exceptionState_1 === 4) {
2304
- throw e;
2305
- } else {
2306
- this.state_1 = this.exceptionState_1;
2307
- this.exception_1 = e;
2308
- }
2309
- }
2310
- while (true);
2311
- };
2312
- protoOf(ParkingApi).assignParkingSpaceToOrganization_9aavbo_k$ = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion) {
2313
- var tmp = new $assignParkingSpaceToOrganizationCOROUTINE$(this, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
2314
- tmp.result_1 = Unit_instance;
2315
- tmp.exception_1 = null;
2316
- return tmp.doResume_5yljmg_k$();
2317
- };
2318
- protoOf(ParkingApi).assignParkingSpaceToOrganization = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand) {
2319
- var tmp = this;
2320
- return promisify(function ($completion) {
2321
- return tmp.assignParkingSpaceToOrganization_9aavbo_k$(companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
2322
- });
2323
- };
2324
- protoOf(ParkingApi).assignParkingSpaceToOrganization$suspendBridge_snkjkb_k$ = function (companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion) {
2325
- var tmp = new $assignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, organizationId, assignParkingSpaceCommand, $completion);
2326
- tmp.result_1 = Unit_instance;
2327
- tmp.exception_1 = null;
2328
- return tmp.doResume_5yljmg_k$();
2329
- };
2330
- protoOf(ParkingApi).assignParkingSpaceToPerson_j7nbw6_k$ = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion) {
2331
- var tmp = new $assignParkingSpaceToPersonCOROUTINE$(this, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
2332
- tmp.result_1 = Unit_instance;
2333
- tmp.exception_1 = null;
2334
- return tmp.doResume_5yljmg_k$();
2335
- };
2336
- protoOf(ParkingApi).assignParkingSpaceToPerson = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand) {
2337
- var tmp = this;
2338
- return promisify(function ($completion) {
2339
- return tmp.assignParkingSpaceToPerson_j7nbw6_k$(companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
2340
- });
2341
- };
2342
- protoOf(ParkingApi).assignParkingSpaceToPerson$suspendBridge_b5mbvt_k$ = function (companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion) {
2343
- var tmp = new $assignParkingSpaceToPerson$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, personId, assignParkingSpaceCommand, $completion);
2344
- tmp.result_1 = Unit_instance;
2345
- tmp.exception_1 = null;
2346
- return tmp.doResume_5yljmg_k$();
2347
- };
2348
- protoOf(ParkingApi).assignParkingSpaceToSection_xjpkh6_k$ = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion) {
2349
- var tmp = new $assignParkingSpaceToSectionCOROUTINE$(this, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
2350
- tmp.result_1 = Unit_instance;
2351
- tmp.exception_1 = null;
2352
- return tmp.doResume_5yljmg_k$();
2353
- };
2354
- protoOf(ParkingApi).assignParkingSpaceToSection = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand) {
2355
- var tmp = this;
2356
- return promisify(function ($completion) {
2357
- return tmp.assignParkingSpaceToSection_xjpkh6_k$(companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
2358
- });
2359
- };
2360
- protoOf(ParkingApi).assignParkingSpaceToSection$suspendBridge_z7wuwn_k$ = function (companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion) {
2361
- var tmp = new $assignParkingSpaceToSection$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, sectionId, assignParkingSpaceCommand, $completion);
2362
- tmp.result_1 = Unit_instance;
2363
- tmp.exception_1 = null;
2364
- return tmp.doResume_5yljmg_k$();
2365
- };
2366
- protoOf(ParkingApi).createParkingSpace_svxlk3_k$ = function (companyId, createParkingSpaceCommand, $completion) {
2367
- var tmp = new $createParkingSpaceCOROUTINE$(this, companyId, createParkingSpaceCommand, $completion);
2368
- tmp.result_1 = Unit_instance;
2369
- tmp.exception_1 = null;
2370
- return tmp.doResume_5yljmg_k$();
2371
- };
2372
- protoOf(ParkingApi).createParkingSpace = function (companyId, createParkingSpaceCommand) {
2373
- var tmp = this;
2374
- return promisify(function ($completion) {
2375
- return tmp.createParkingSpace_svxlk3_k$(companyId, createParkingSpaceCommand, $completion);
2376
- });
2377
- };
2378
- protoOf(ParkingApi).createParkingSpace$suspendBridge_19dq4c_k$ = function (companyId, createParkingSpaceCommand, $completion) {
2379
- var tmp = new $createParkingSpace$suspendBridgeCOROUTINE$(this, companyId, createParkingSpaceCommand, $completion);
2380
- tmp.result_1 = Unit_instance;
2381
- tmp.exception_1 = null;
2382
- return tmp.doResume_5yljmg_k$();
2383
- };
2384
- protoOf(ParkingApi).deleteParkingSpace_r5wo6t_k$ = function (companyId, parkingSpaceId, $completion) {
2385
- var tmp = new $deleteParkingSpaceCOROUTINE$(this, companyId, parkingSpaceId, $completion);
2386
- tmp.result_1 = Unit_instance;
2387
- tmp.exception_1 = null;
2388
- return tmp.doResume_5yljmg_k$();
2389
- };
2390
- protoOf(ParkingApi).deleteParkingSpace = function (companyId, parkingSpaceId) {
2391
- var tmp = this;
2392
- return promisify(function ($completion) {
2393
- return tmp.deleteParkingSpace_r5wo6t_k$(companyId, parkingSpaceId, $completion);
2394
- });
2395
- };
2396
- protoOf(ParkingApi).deleteParkingSpace$suspendBridge_96t1u2_k$ = function (companyId, parkingSpaceId, $completion) {
2397
- var tmp = new $deleteParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, $completion);
2398
- tmp.result_1 = Unit_instance;
2399
- tmp.exception_1 = null;
2400
- return tmp.doResume_5yljmg_k$();
2401
- };
2402
- protoOf(ParkingApi).exportAssets_k57oj3_k$ = function (companyId, $completion) {
2403
- var tmp = new $exportAssetsCOROUTINE$(this, companyId, $completion);
2404
- tmp.result_1 = Unit_instance;
2405
- tmp.exception_1 = null;
2406
- return tmp.doResume_5yljmg_k$();
2407
- };
2408
- protoOf(ParkingApi).exportAssets = function (companyId) {
2409
- var tmp = this;
2410
- return promisify(function ($completion) {
2411
- return tmp.exportAssets_k57oj3_k$(companyId, $completion);
2412
- });
2413
- };
2414
- protoOf(ParkingApi).exportAssets$suspendBridge_gl27u6_k$ = function (companyId, $completion) {
2415
- var tmp = new $exportAssets$suspendBridgeCOROUTINE$(this, companyId, $completion);
2416
- tmp.result_1 = Unit_instance;
2417
- tmp.exception_1 = null;
2418
- return tmp.doResume_5yljmg_k$();
2419
- };
2420
- protoOf(ParkingApi).indexParkingSpace_r5j0hw_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
2421
- var tmp = new $indexParkingSpaceCOROUTINE$(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2422
- tmp.result_1 = Unit_instance;
2423
- tmp.exception_1 = null;
2424
- return tmp.doResume_5yljmg_k$();
2425
- };
2426
- protoOf(ParkingApi).indexParkingSpace$default_33qrpc_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
2427
- search = search === VOID ? null : search;
2428
- type = type === VOID ? null : type;
2429
- charger = charger === VOID ? null : charger;
2430
- assigned = assigned === VOID ? null : assigned;
2431
- fields = fields === VOID ? null : fields;
2432
- pageToken = pageToken === VOID ? null : pageToken;
2433
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2434
- count = count === VOID ? null : count;
2435
- return $super === VOID ? this.indexParkingSpace_r5j0hw_k$(companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexParkingSpace_r5j0hw_k$.call(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2436
- };
2437
- protoOf(ParkingApi).indexParkingSpace = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
2438
- var tmp = this;
2439
- return promisify(function ($completion) {
2440
- return tmp.indexParkingSpace$default_33qrpc_k$(companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2441
- });
2442
- };
2443
- protoOf(ParkingApi).indexParkingSpace$suspendBridge_udxm1v_k$ = function (companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
2444
- var tmp = new $indexParkingSpace$suspendBridgeCOROUTINE$(this, companyId, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2445
- tmp.result_1 = Unit_instance;
2446
- tmp.exception_1 = null;
2447
- return tmp.doResume_5yljmg_k$();
2448
- };
2449
- protoOf(ParkingApi).indexParkingSpacesUser_ycz40z_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
2450
- var tmp = new $indexParkingSpacesUserCOROUTINE$(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2451
- tmp.result_1 = Unit_instance;
2452
- tmp.exception_1 = null;
2453
- return tmp.doResume_5yljmg_k$();
2454
- };
2455
- protoOf(ParkingApi).indexParkingSpacesUser$default_do01w8_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion, $super) {
2456
- companyIds = companyIds === VOID ? null : companyIds;
2457
- search = search === VOID ? null : search;
2458
- type = type === VOID ? null : type;
2459
- charger = charger === VOID ? null : charger;
2460
- assigned = assigned === VOID ? null : assigned;
2461
- fields = fields === VOID ? null : fields;
2462
- pageToken = pageToken === VOID ? null : pageToken;
2463
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2464
- count = count === VOID ? null : count;
2465
- return $super === VOID ? this.indexParkingSpacesUser_ycz40z_k$(companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) : $super.indexParkingSpacesUser_ycz40z_k$.call(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2466
- };
2467
- protoOf(ParkingApi).indexParkingSpacesUser = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count) {
2468
- var tmp = this;
2469
- return promisify(function ($completion) {
2470
- return tmp.indexParkingSpacesUser$default_do01w8_k$(companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2471
- });
2472
- };
2473
- protoOf(ParkingApi).indexParkingSpacesUser$suspendBridge_qvx9fg_k$ = function (companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion) {
2474
- var tmp = new $indexParkingSpacesUser$suspendBridgeCOROUTINE$(this, companyIds, search, type, charger, assigned, fields, pageToken, autoPaginate, count, $completion);
2475
- tmp.result_1 = Unit_instance;
2476
- tmp.exception_1 = null;
2477
- return tmp.doResume_5yljmg_k$();
2478
- };
2479
- protoOf(ParkingApi).listVacantParkingSpaces_mey9du_k$ = function (companyId, searchDate, fields, $completion) {
2480
- var tmp = new $listVacantParkingSpacesCOROUTINE$(this, companyId, searchDate, fields, $completion);
2481
- tmp.result_1 = Unit_instance;
2482
- tmp.exception_1 = null;
2483
- return tmp.doResume_5yljmg_k$();
2484
- };
2485
- protoOf(ParkingApi).listVacantParkingSpaces$default_ntq13c_k$ = function (companyId, searchDate, fields, $completion, $super) {
2486
- searchDate = searchDate === VOID ? null : searchDate;
2487
- fields = fields === VOID ? null : fields;
2488
- return $super === VOID ? this.listVacantParkingSpaces_mey9du_k$(companyId, searchDate, fields, $completion) : $super.listVacantParkingSpaces_mey9du_k$.call(this, companyId, searchDate, fields, $completion);
2333
+ throw e;
2334
+ } else {
2335
+ this.state_1 = this.exceptionState_1;
2336
+ this.exception_1 = e;
2337
+ }
2338
+ }
2339
+ while (true);
2489
2340
  };
2490
- protoOf(ParkingApi).listVacantParkingSpaces = function (companyId, searchDate, fields) {
2491
- var tmp = this;
2341
+ function parkingSpaceVacancyOperation(client, companyId, parkingSpaceId, searchDate, fields) {
2492
2342
  return promisify(function ($completion) {
2493
- return tmp.listVacantParkingSpaces$default_ntq13c_k$(companyId, searchDate, fields, $completion);
2343
+ return parkingSpaceVacancyOperation_0(client, companyId, parkingSpaceId, searchDate, fields, $completion);
2494
2344
  });
2495
- };
2496
- protoOf(ParkingApi).listVacantParkingSpaces$suspendBridge_7y2wvx_k$ = function (companyId, searchDate, fields, $completion) {
2497
- var tmp = new $listVacantParkingSpaces$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
2498
- tmp.result_1 = Unit_instance;
2499
- tmp.exception_1 = null;
2500
- return tmp.doResume_5yljmg_k$();
2501
- };
2502
- protoOf(ParkingApi).parkingSpaceAllocationOverview_feg47r_k$ = function (companyId, searchDate, fields, $completion) {
2503
- var tmp = new $parkingSpaceAllocationOverviewCOROUTINE$(this, companyId, searchDate, fields, $completion);
2504
- tmp.result_1 = Unit_instance;
2505
- tmp.exception_1 = null;
2506
- return tmp.doResume_5yljmg_k$();
2507
- };
2508
- protoOf(ParkingApi).parkingSpaceAllocationOverview$default_n2aomn_k$ = function (companyId, searchDate, fields, $completion, $super) {
2345
+ }
2346
+ function parkingSpaceVacancyOperation_0(client, companyId, parkingSpaceId, searchDate, fields, $completion) {
2509
2347
  searchDate = searchDate === VOID ? null : searchDate;
2510
2348
  fields = fields === VOID ? null : fields;
2511
- return $super === VOID ? this.parkingSpaceAllocationOverview_feg47r_k$(companyId, searchDate, fields, $completion) : $super.parkingSpaceAllocationOverview_feg47r_k$.call(this, companyId, searchDate, fields, $completion);
2512
- };
2513
- protoOf(ParkingApi).parkingSpaceAllocationOverview = function (companyId, searchDate, fields) {
2514
- var tmp = this;
2515
- return promisify(function ($completion) {
2516
- return tmp.parkingSpaceAllocationOverview$default_n2aomn_k$(companyId, searchDate, fields, $completion);
2517
- });
2518
- };
2519
- protoOf(ParkingApi).parkingSpaceAllocationOverview$suspendBridge_sdoxyu_k$ = function (companyId, searchDate, fields, $completion) {
2520
- var tmp = new $parkingSpaceAllocationOverview$suspendBridgeCOROUTINE$(this, companyId, searchDate, fields, $completion);
2521
- tmp.result_1 = Unit_instance;
2522
- tmp.exception_1 = null;
2523
- return tmp.doResume_5yljmg_k$();
2524
- };
2525
- protoOf(ParkingApi).parkingSpaceVacancy_mkoyx7_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion) {
2526
- var tmp = new $parkingSpaceVacancyCOROUTINE$(this, companyId, parkingSpaceId, searchDate, fields, $completion);
2349
+ var tmp = new $parkingSpaceVacancyOperationCOROUTINE$(client, companyId, parkingSpaceId, searchDate, fields, $completion);
2527
2350
  tmp.result_1 = Unit_instance;
2528
2351
  tmp.exception_1 = null;
2529
2352
  return tmp.doResume_5yljmg_k$();
2353
+ }
2354
+ function $parkingSpaceVacancyOperationCOROUTINE$(client, companyId, parkingSpaceId, searchDate, fields, resultContinuation) {
2355
+ CoroutineImpl.call(this, resultContinuation);
2356
+ this.client_1 = client;
2357
+ this.companyId_1 = companyId;
2358
+ this.parkingSpaceId_1 = parkingSpaceId;
2359
+ this.searchDate_1 = searchDate;
2360
+ this.fields_1 = fields;
2361
+ }
2362
+ protoOf($parkingSpaceVacancyOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2363
+ var suspendResult = this.result_1;
2364
+ $sm: do
2365
+ try {
2366
+ var tmp = this.state_1;
2367
+ switch (tmp) {
2368
+ case 0:
2369
+ this.exceptionState_1 = 2;
2370
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2371
+ var localVariableBody = EmptyContent_getInstance();
2372
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2373
+ if (this.searchDate_1 == null)
2374
+ null;
2375
+ else {
2376
+ var tmp2 = 'searchDate';
2377
+ var value = listOf_0(this.searchDate_1.toString());
2378
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
2379
+ }
2380
+
2381
+ if (this.fields_1 == null)
2382
+ null;
2383
+ else {
2384
+ var value_0 = listOf_0(this.fields_1);
2385
+ localVariableQuery.put_4fpzoq_k$('fields', value_0);
2386
+ }
2387
+
2388
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2389
+ var tmp2_method = RequestMethod_GET_getInstance();
2390
+ var tmp3_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/vacancy', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
2391
+ var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
2392
+ this.state_1 = 1;
2393
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2394
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2395
+ return suspendResult;
2396
+ }
2397
+
2398
+ continue $sm;
2399
+ case 1:
2400
+ var this_0 = suspendResult;
2401
+ var tmp_0 = getKClass(ParkingSpaceVacancy);
2402
+ var tmp_1 = null instanceof ParkingSpaceVacancy;
2403
+ var tmp_2;
2404
+ try {
2405
+ tmp_2 = createKType(getKClass(ParkingSpaceVacancy), arrayOf([]), false);
2406
+ } catch ($p) {
2407
+ var tmp_3;
2408
+ if ($p instanceof Error) {
2409
+ var _unused_var__etf5q3 = $p;
2410
+ tmp_3 = null;
2411
+ } else {
2412
+ throw $p;
2413
+ }
2414
+ tmp_2 = tmp_3;
2415
+ }
2416
+
2417
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2418
+ case 2:
2419
+ throw this.exception_1;
2420
+ }
2421
+ } catch ($p_0) {
2422
+ var e = $p_0;
2423
+ if (this.exceptionState_1 === 2) {
2424
+ throw e;
2425
+ } else {
2426
+ this.state_1 = this.exceptionState_1;
2427
+ this.exception_1 = e;
2428
+ }
2429
+ }
2430
+ while (true);
2530
2431
  };
2531
- protoOf(ParkingApi).parkingSpaceVacancy$default_bcdsqv_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion, $super) {
2532
- searchDate = searchDate === VOID ? null : searchDate;
2533
- fields = fields === VOID ? null : fields;
2534
- return $super === VOID ? this.parkingSpaceVacancy_mkoyx7_k$(companyId, parkingSpaceId, searchDate, fields, $completion) : $super.parkingSpaceVacancy_mkoyx7_k$.call(this, companyId, parkingSpaceId, searchDate, fields, $completion);
2535
- };
2536
- protoOf(ParkingApi).parkingSpaceVacancy = function (companyId, parkingSpaceId, searchDate, fields) {
2537
- var tmp = this;
2432
+ function showParkingSpaceOperation(client, companyId, parkingSpaceId, fields) {
2538
2433
  return promisify(function ($completion) {
2539
- return tmp.parkingSpaceVacancy$default_bcdsqv_k$(companyId, parkingSpaceId, searchDate, fields, $completion);
2434
+ return showParkingSpaceOperation_0(client, companyId, parkingSpaceId, fields, $completion);
2540
2435
  });
2541
- };
2542
- protoOf(ParkingApi).parkingSpaceVacancy$suspendBridge_wku5cm_k$ = function (companyId, parkingSpaceId, searchDate, fields, $completion) {
2543
- var tmp = new $parkingSpaceVacancy$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, searchDate, fields, $completion);
2436
+ }
2437
+ function showParkingSpaceOperation_0(client, companyId, parkingSpaceId, fields, $completion) {
2438
+ fields = fields === VOID ? null : fields;
2439
+ var tmp = new $showParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, fields, $completion);
2544
2440
  tmp.result_1 = Unit_instance;
2545
2441
  tmp.exception_1 = null;
2546
2442
  return tmp.doResume_5yljmg_k$();
2443
+ }
2444
+ function $showParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, fields, resultContinuation) {
2445
+ CoroutineImpl.call(this, resultContinuation);
2446
+ this.client_1 = client;
2447
+ this.companyId_1 = companyId;
2448
+ this.parkingSpaceId_1 = parkingSpaceId;
2449
+ this.fields_1 = fields;
2450
+ }
2451
+ protoOf($showParkingSpaceOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2452
+ var suspendResult = this.result_1;
2453
+ $sm: do
2454
+ try {
2455
+ var tmp = this.state_1;
2456
+ switch (tmp) {
2457
+ case 0:
2458
+ this.exceptionState_1 = 2;
2459
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2460
+ var localVariableBody = EmptyContent_getInstance();
2461
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2462
+ if (this.fields_1 == null)
2463
+ null;
2464
+ else {
2465
+ var value = listOf_0(this.fields_1);
2466
+ localVariableQuery.put_4fpzoq_k$('fields', value);
2467
+ }
2468
+
2469
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2470
+ var tmp1_method = RequestMethod_GET_getInstance();
2471
+ var tmp2_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
2472
+ var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
2473
+ this.state_1 = 1;
2474
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2475
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2476
+ return suspendResult;
2477
+ }
2478
+
2479
+ continue $sm;
2480
+ case 1:
2481
+ var this_0 = suspendResult;
2482
+ var tmp_0 = getKClass(ParkingSpace);
2483
+ var tmp_1 = null instanceof ParkingSpace;
2484
+ var tmp_2;
2485
+ try {
2486
+ tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
2487
+ } catch ($p) {
2488
+ var tmp_3;
2489
+ if ($p instanceof Error) {
2490
+ var _unused_var__etf5q3 = $p;
2491
+ tmp_3 = null;
2492
+ } else {
2493
+ throw $p;
2494
+ }
2495
+ tmp_2 = tmp_3;
2496
+ }
2497
+
2498
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2499
+ case 2:
2500
+ throw this.exception_1;
2501
+ }
2502
+ } catch ($p_0) {
2503
+ var e = $p_0;
2504
+ if (this.exceptionState_1 === 2) {
2505
+ throw e;
2506
+ } else {
2507
+ this.state_1 = this.exceptionState_1;
2508
+ this.exception_1 = e;
2509
+ }
2510
+ }
2511
+ while (true);
2547
2512
  };
2548
- protoOf(ParkingApi).showParkingSpace_piy5p9_k$ = function (companyId, parkingSpaceId, fields, $completion) {
2549
- var tmp = new $showParkingSpaceCOROUTINE$(this, companyId, parkingSpaceId, fields, $completion);
2513
+ function unAssignParkingSpaceToOrganizationOperation(client, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand) {
2514
+ return promisify(function ($completion) {
2515
+ return unAssignParkingSpaceToOrganizationOperation_0(client, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2516
+ });
2517
+ }
2518
+ function unAssignParkingSpaceToOrganizationOperation_0(client, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) {
2519
+ unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
2520
+ var tmp = new $unAssignParkingSpaceToOrganizationOperationCOROUTINE$(client, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2550
2521
  tmp.result_1 = Unit_instance;
2551
2522
  tmp.exception_1 = null;
2552
2523
  return tmp.doResume_5yljmg_k$();
2524
+ }
2525
+ function $unAssignParkingSpaceToOrganizationOperationCOROUTINE$(client, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, resultContinuation) {
2526
+ CoroutineImpl.call(this, resultContinuation);
2527
+ this.client_1 = client;
2528
+ this.companyId_1 = companyId;
2529
+ this.parkingSpaceId_1 = parkingSpaceId;
2530
+ this.organizationId_1 = organizationId;
2531
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2532
+ }
2533
+ protoOf($unAssignParkingSpaceToOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2534
+ var suspendResult = this.result_1;
2535
+ $sm: do
2536
+ try {
2537
+ var tmp = this.state_1;
2538
+ switch (tmp) {
2539
+ case 0:
2540
+ this.exceptionState_1 = 2;
2541
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2542
+ var localVariableBody = this.unassignParkingSpaceCommand_1;
2543
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2544
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2545
+ var tmp0_method = RequestMethod_DELETE_getInstance();
2546
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{organizationId}', this.organizationId_1.toString());
2547
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2548
+ this.state_1 = 1;
2549
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2550
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2551
+ return suspendResult;
2552
+ }
2553
+
2554
+ continue $sm;
2555
+ case 1:
2556
+ var this_0 = suspendResult;
2557
+ var tmp_0 = getKClass(Unit);
2558
+ var tmp_1 = null instanceof Unit;
2559
+ var tmp_2;
2560
+ try {
2561
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
2562
+ } catch ($p) {
2563
+ var tmp_3;
2564
+ if ($p instanceof Error) {
2565
+ var _unused_var__etf5q3 = $p;
2566
+ tmp_3 = null;
2567
+ } else {
2568
+ throw $p;
2569
+ }
2570
+ tmp_2 = tmp_3;
2571
+ }
2572
+
2573
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2574
+ case 2:
2575
+ throw this.exception_1;
2576
+ }
2577
+ } catch ($p_0) {
2578
+ var e = $p_0;
2579
+ if (this.exceptionState_1 === 2) {
2580
+ throw e;
2581
+ } else {
2582
+ this.state_1 = this.exceptionState_1;
2583
+ this.exception_1 = e;
2584
+ }
2585
+ }
2586
+ while (true);
2553
2587
  };
2554
- protoOf(ParkingApi).showParkingSpace$default_x3punw_k$ = function (companyId, parkingSpaceId, fields, $completion, $super) {
2555
- fields = fields === VOID ? null : fields;
2556
- return $super === VOID ? this.showParkingSpace_piy5p9_k$(companyId, parkingSpaceId, fields, $completion) : $super.showParkingSpace_piy5p9_k$.call(this, companyId, parkingSpaceId, fields, $completion);
2557
- };
2558
- protoOf(ParkingApi).showParkingSpace = function (companyId, parkingSpaceId, fields) {
2559
- var tmp = this;
2588
+ function unAssignParkingSpaceToPersonOperation(client, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand) {
2560
2589
  return promisify(function ($completion) {
2561
- return tmp.showParkingSpace$default_x3punw_k$(companyId, parkingSpaceId, fields, $completion);
2590
+ return unAssignParkingSpaceToPersonOperation_0(client, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2562
2591
  });
2563
- };
2564
- protoOf(ParkingApi).showParkingSpace$suspendBridge_ixhhgc_k$ = function (companyId, parkingSpaceId, fields, $completion) {
2565
- var tmp = new $showParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, fields, $completion);
2566
- tmp.result_1 = Unit_instance;
2567
- tmp.exception_1 = null;
2568
- return tmp.doResume_5yljmg_k$();
2569
- };
2570
- protoOf(ParkingApi).unAssignParkingSpaceToOrganization_16zz3h_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) {
2571
- var tmp = new $unAssignParkingSpaceToOrganizationCOROUTINE$(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2572
- tmp.result_1 = Unit_instance;
2573
- tmp.exception_1 = null;
2574
- return tmp.doResume_5yljmg_k$();
2575
- };
2576
- protoOf(ParkingApi).unAssignParkingSpaceToOrganization$default_b9colu_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion, $super) {
2592
+ }
2593
+ function unAssignParkingSpaceToPersonOperation_0(client, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) {
2577
2594
  unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
2578
- return $super === VOID ? this.unAssignParkingSpaceToOrganization_16zz3h_k$(companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToOrganization_16zz3h_k$.call(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2579
- };
2580
- protoOf(ParkingApi).unAssignParkingSpaceToOrganization = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand) {
2581
- var tmp = this;
2582
- return promisify(function ($completion) {
2583
- return tmp.unAssignParkingSpaceToOrganization$default_b9colu_k$(companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2584
- });
2585
- };
2586
- protoOf(ParkingApi).unAssignParkingSpaceToOrganization$suspendBridge_780w9g_k$ = function (companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion) {
2587
- var tmp = new $unAssignParkingSpaceToOrganization$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, organizationId, unassignParkingSpaceCommand, $completion);
2588
- tmp.result_1 = Unit_instance;
2589
- tmp.exception_1 = null;
2590
- return tmp.doResume_5yljmg_k$();
2591
- };
2592
- protoOf(ParkingApi).unAssignParkingSpaceToPerson_u26j63_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) {
2593
- var tmp = new $unAssignParkingSpaceToPersonCOROUTINE$(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2595
+ var tmp = new $unAssignParkingSpaceToPersonOperationCOROUTINE$(client, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2594
2596
  tmp.result_1 = Unit_instance;
2595
2597
  tmp.exception_1 = null;
2596
2598
  return tmp.doResume_5yljmg_k$();
2599
+ }
2600
+ function $unAssignParkingSpaceToPersonOperationCOROUTINE$(client, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, resultContinuation) {
2601
+ CoroutineImpl.call(this, resultContinuation);
2602
+ this.client_1 = client;
2603
+ this.companyId_1 = companyId;
2604
+ this.parkingSpaceId_1 = parkingSpaceId;
2605
+ this.personId_1 = personId;
2606
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2607
+ }
2608
+ protoOf($unAssignParkingSpaceToPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2609
+ var suspendResult = this.result_1;
2610
+ $sm: do
2611
+ try {
2612
+ var tmp = this.state_1;
2613
+ switch (tmp) {
2614
+ case 0:
2615
+ this.exceptionState_1 = 2;
2616
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2617
+ var localVariableBody = this.unassignParkingSpaceCommand_1;
2618
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2619
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2620
+ var tmp0_method = RequestMethod_DELETE_getInstance();
2621
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{personId}', this.personId_1.toString());
2622
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2623
+ this.state_1 = 1;
2624
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2625
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2626
+ return suspendResult;
2627
+ }
2628
+
2629
+ continue $sm;
2630
+ case 1:
2631
+ var this_0 = suspendResult;
2632
+ var tmp_0 = getKClass(Unit);
2633
+ var tmp_1 = null instanceof Unit;
2634
+ var tmp_2;
2635
+ try {
2636
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
2637
+ } catch ($p) {
2638
+ var tmp_3;
2639
+ if ($p instanceof Error) {
2640
+ var _unused_var__etf5q3 = $p;
2641
+ tmp_3 = null;
2642
+ } else {
2643
+ throw $p;
2644
+ }
2645
+ tmp_2 = tmp_3;
2646
+ }
2647
+
2648
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2649
+ case 2:
2650
+ throw this.exception_1;
2651
+ }
2652
+ } catch ($p_0) {
2653
+ var e = $p_0;
2654
+ if (this.exceptionState_1 === 2) {
2655
+ throw e;
2656
+ } else {
2657
+ this.state_1 = this.exceptionState_1;
2658
+ this.exception_1 = e;
2659
+ }
2660
+ }
2661
+ while (true);
2597
2662
  };
2598
- protoOf(ParkingApi).unAssignParkingSpaceToPerson$default_tplh4k_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion, $super) {
2599
- unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
2600
- return $super === VOID ? this.unAssignParkingSpaceToPerson_u26j63_k$(companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToPerson_u26j63_k$.call(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2601
- };
2602
- protoOf(ParkingApi).unAssignParkingSpaceToPerson = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand) {
2603
- var tmp = this;
2663
+ function unAssignParkingSpaceToSectionOperation(client, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand) {
2604
2664
  return promisify(function ($completion) {
2605
- return tmp.unAssignParkingSpaceToPerson$default_tplh4k_k$(companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2665
+ return unAssignParkingSpaceToSectionOperation_0(client, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2606
2666
  });
2607
- };
2608
- protoOf(ParkingApi).unAssignParkingSpaceToPerson$suspendBridge_ac07g6_k$ = function (companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion) {
2609
- var tmp = new $unAssignParkingSpaceToPerson$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, personId, unassignParkingSpaceCommand, $completion);
2610
- tmp.result_1 = Unit_instance;
2611
- tmp.exception_1 = null;
2612
- return tmp.doResume_5yljmg_k$();
2613
- };
2614
- protoOf(ParkingApi).unAssignParkingSpaceToSection_k34l37_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) {
2615
- var tmp = new $unAssignParkingSpaceToSectionCOROUTINE$(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2616
- tmp.result_1 = Unit_instance;
2617
- tmp.exception_1 = null;
2618
- return tmp.doResume_5yljmg_k$();
2619
- };
2620
- protoOf(ParkingApi).unAssignParkingSpaceToSection$default_dhhqki_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion, $super) {
2667
+ }
2668
+ function unAssignParkingSpaceToSectionOperation_0(client, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) {
2621
2669
  unassignParkingSpaceCommand = unassignParkingSpaceCommand === VOID ? null : unassignParkingSpaceCommand;
2622
- return $super === VOID ? this.unAssignParkingSpaceToSection_k34l37_k$(companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) : $super.unAssignParkingSpaceToSection_k34l37_k$.call(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2623
- };
2624
- protoOf(ParkingApi).unAssignParkingSpaceToSection = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand) {
2625
- var tmp = this;
2626
- return promisify(function ($completion) {
2627
- return tmp.unAssignParkingSpaceToSection$default_dhhqki_k$(companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2628
- });
2629
- };
2630
- protoOf(ParkingApi).unAssignParkingSpaceToSection$suspendBridge_245gn0_k$ = function (companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion) {
2631
- var tmp = new $unAssignParkingSpaceToSection$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2632
- tmp.result_1 = Unit_instance;
2633
- tmp.exception_1 = null;
2634
- return tmp.doResume_5yljmg_k$();
2635
- };
2636
- protoOf(ParkingApi).updateParkingSpace_y6whl_k$ = function (companyId, parkingSpaceId, updateParkingSpaceCommand, $completion) {
2637
- var tmp = new $updateParkingSpaceCOROUTINE$(this, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
2670
+ var tmp = new $unAssignParkingSpaceToSectionOperationCOROUTINE$(client, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, $completion);
2638
2671
  tmp.result_1 = Unit_instance;
2639
2672
  tmp.exception_1 = null;
2640
2673
  return tmp.doResume_5yljmg_k$();
2674
+ }
2675
+ function $unAssignParkingSpaceToSectionOperationCOROUTINE$(client, companyId, parkingSpaceId, sectionId, unassignParkingSpaceCommand, resultContinuation) {
2676
+ CoroutineImpl.call(this, resultContinuation);
2677
+ this.client_1 = client;
2678
+ this.companyId_1 = companyId;
2679
+ this.parkingSpaceId_1 = parkingSpaceId;
2680
+ this.sectionId_1 = sectionId;
2681
+ this.unassignParkingSpaceCommand_1 = unassignParkingSpaceCommand;
2682
+ }
2683
+ protoOf($unAssignParkingSpaceToSectionOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2684
+ var suspendResult = this.result_1;
2685
+ $sm: do
2686
+ try {
2687
+ var tmp = this.state_1;
2688
+ switch (tmp) {
2689
+ case 0:
2690
+ this.exceptionState_1 = 2;
2691
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2692
+ var localVariableBody = this.unassignParkingSpaceCommand_1;
2693
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2694
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2695
+ var tmp0_method = RequestMethod_DELETE_getInstance();
2696
+ var tmp1_path = replace(replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}/assign/section/{sectionId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString()), '{sectionId}', this.sectionId_1.toString());
2697
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2698
+ this.state_1 = 1;
2699
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2700
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2701
+ return suspendResult;
2702
+ }
2703
+
2704
+ continue $sm;
2705
+ case 1:
2706
+ var this_0 = suspendResult;
2707
+ var tmp_0 = getKClass(Unit);
2708
+ var tmp_1 = null instanceof Unit;
2709
+ var tmp_2;
2710
+ try {
2711
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
2712
+ } catch ($p) {
2713
+ var tmp_3;
2714
+ if ($p instanceof Error) {
2715
+ var _unused_var__etf5q3 = $p;
2716
+ tmp_3 = null;
2717
+ } else {
2718
+ throw $p;
2719
+ }
2720
+ tmp_2 = tmp_3;
2721
+ }
2722
+
2723
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2724
+ case 2:
2725
+ throw this.exception_1;
2726
+ }
2727
+ } catch ($p_0) {
2728
+ var e = $p_0;
2729
+ if (this.exceptionState_1 === 2) {
2730
+ throw e;
2731
+ } else {
2732
+ this.state_1 = this.exceptionState_1;
2733
+ this.exception_1 = e;
2734
+ }
2735
+ }
2736
+ while (true);
2641
2737
  };
2642
- protoOf(ParkingApi).updateParkingSpace = function (companyId, parkingSpaceId, updateParkingSpaceCommand) {
2643
- var tmp = this;
2738
+ function updateParkingSpaceOperation(client, companyId, parkingSpaceId, updateParkingSpaceCommand) {
2644
2739
  return promisify(function ($completion) {
2645
- return tmp.updateParkingSpace_y6whl_k$(companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
2740
+ return updateParkingSpaceOperation_0(client, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
2646
2741
  });
2647
- };
2648
- protoOf(ParkingApi).updateParkingSpace$suspendBridge_f6l2ew_k$ = function (companyId, parkingSpaceId, updateParkingSpaceCommand, $completion) {
2649
- var tmp = new $updateParkingSpace$suspendBridgeCOROUTINE$(this, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
2742
+ }
2743
+ function updateParkingSpaceOperation_0(client, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion) {
2744
+ var tmp = new $updateParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, updateParkingSpaceCommand, $completion);
2650
2745
  tmp.result_1 = Unit_instance;
2651
2746
  tmp.exception_1 = null;
2652
2747
  return tmp.doResume_5yljmg_k$();
2653
- };
2654
- function ParkingApi() {
2655
2748
  }
2749
+ function $updateParkingSpaceOperationCOROUTINE$(client, companyId, parkingSpaceId, updateParkingSpaceCommand, resultContinuation) {
2750
+ CoroutineImpl.call(this, resultContinuation);
2751
+ this.client_1 = client;
2752
+ this.companyId_1 = companyId;
2753
+ this.parkingSpaceId_1 = parkingSpaceId;
2754
+ this.updateParkingSpaceCommand_1 = updateParkingSpaceCommand;
2755
+ }
2756
+ protoOf($updateParkingSpaceOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2757
+ var suspendResult = this.result_1;
2758
+ $sm: do
2759
+ try {
2760
+ var tmp = this.state_1;
2761
+ switch (tmp) {
2762
+ case 0:
2763
+ this.exceptionState_1 = 2;
2764
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2765
+ var localVariableBody = this.updateParkingSpaceCommand_1;
2766
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2767
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2768
+ var tmp0_method = RequestMethod_PUT_getInstance();
2769
+ var tmp1_path = replace(replace('/companies/{companyId}/parkingSpaces/{parkingSpaceId}', '{companyId}', this.companyId_1.toString()), '{parkingSpaceId}', this.parkingSpaceId_1.toString());
2770
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2771
+ this.state_1 = 1;
2772
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2773
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2774
+ return suspendResult;
2775
+ }
2776
+
2777
+ continue $sm;
2778
+ case 1:
2779
+ var this_0 = suspendResult;
2780
+ var tmp_0 = getKClass(ParkingSpace);
2781
+ var tmp_1 = null instanceof ParkingSpace;
2782
+ var tmp_2;
2783
+ try {
2784
+ tmp_2 = createKType(getKClass(ParkingSpace), arrayOf([]), false);
2785
+ } catch ($p) {
2786
+ var tmp_3;
2787
+ if ($p instanceof Error) {
2788
+ var _unused_var__etf5q3 = $p;
2789
+ tmp_3 = null;
2790
+ } else {
2791
+ throw $p;
2792
+ }
2793
+ tmp_2 = tmp_3;
2794
+ }
2795
+
2796
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2797
+ case 2:
2798
+ throw this.exception_1;
2799
+ }
2800
+ } catch ($p_0) {
2801
+ var e = $p_0;
2802
+ if (this.exceptionState_1 === 2) {
2803
+ throw e;
2804
+ } else {
2805
+ this.state_1 = this.exceptionState_1;
2806
+ this.exception_1 = e;
2807
+ }
2808
+ }
2809
+ while (true);
2810
+ };
2656
2811
  function Companion_0() {
2657
2812
  }
2658
2813
  var Companion_instance_1;
@@ -5177,6 +5332,22 @@ defineProp(ParkingSpaceOwnerType, 'Companion', Companion_getInstance_9, VOID, tr
5177
5332
  export {
5178
5333
  parkingApi as parkingApi,
5179
5334
  ParkingApi as ParkingApi,
5335
+ assignParkingSpaceToOrganizationOperation as assignParkingSpaceToOrganizationOperation,
5336
+ assignParkingSpaceToPersonOperation as assignParkingSpaceToPersonOperation,
5337
+ assignParkingSpaceToSectionOperation as assignParkingSpaceToSectionOperation,
5338
+ createParkingSpaceOperation as createParkingSpaceOperation,
5339
+ deleteParkingSpaceOperation as deleteParkingSpaceOperation,
5340
+ exportAssetsOperation as exportAssetsOperation,
5341
+ indexParkingSpaceOperation as indexParkingSpaceOperation,
5342
+ indexParkingSpacesUserOperation as indexParkingSpacesUserOperation,
5343
+ listVacantParkingSpacesOperation as listVacantParkingSpacesOperation,
5344
+ parkingSpaceAllocationOverviewOperation as parkingSpaceAllocationOverviewOperation,
5345
+ parkingSpaceVacancyOperation as parkingSpaceVacancyOperation,
5346
+ showParkingSpaceOperation as showParkingSpaceOperation,
5347
+ unAssignParkingSpaceToOrganizationOperation as unAssignParkingSpaceToOrganizationOperation,
5348
+ unAssignParkingSpaceToPersonOperation as unAssignParkingSpaceToPersonOperation,
5349
+ unAssignParkingSpaceToSectionOperation as unAssignParkingSpaceToSectionOperation,
5350
+ updateParkingSpaceOperation as updateParkingSpaceOperation,
5180
5351
  AssignParkingSpaceCommand as AssignParkingSpaceCommand,
5181
5352
  CreateParkingSpaceCommand as CreateParkingSpaceCommand,
5182
5353
  PagedListParkingSpace as PagedListParkingSpace,