@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.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/kotlin-kotlin-stdlib.mjs +0 -4
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- 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
|
listOfvhqybd2zx248 as listOf_0,
|
|
18
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
19
16
|
replace3le3ie7l9k8aq as replace,
|
|
20
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
21
17
|
Unitkvevlwgzwiuc as Unit,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
19
|
+
createKType31ecntyyaay3k as createKType,
|
|
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
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
43
43
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
44
44
|
import {
|
|
45
|
-
Person2qfwnvdasq352 as Person,
|
|
46
45
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
47
46
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
48
47
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
48
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
49
49
|
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
50
50
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
51
51
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
@@ -54,13 +54,15 @@ import {
|
|
|
54
54
|
PagedListPersonsp0sz4pkar65 as PagedListPerson,
|
|
55
55
|
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
56
56
|
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
57
|
+
Person2qfwnvdasq352 as Person,
|
|
57
58
|
map1gud2hobp4wg5 as map,
|
|
58
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
59
59
|
$serializer_getInstance350sqkw87kuga as $serializer_getInstance,
|
|
60
60
|
$serializer_getInstance1se14apkjzug7 as $serializer_getInstance_0,
|
|
61
61
|
Companion_getInstancecsmssmjcrvz9 as Companion_getInstance_0,
|
|
62
62
|
$serializer_getInstanceo2hyuslo9wni as $serializer_getInstance_1,
|
|
63
63
|
} from './solibo-sdk-sdk-core.mjs';
|
|
64
|
+
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
65
|
+
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
64
66
|
import {
|
|
65
67
|
serializer1hwzc6m64v1op as serializer,
|
|
66
68
|
KSerializerzf77vz1967fq as KSerializer,
|
|
@@ -79,47 +81,45 @@ import {
|
|
|
79
81
|
createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
|
|
80
82
|
SerializerFactory1qv9hivitncuv as SerializerFactory,
|
|
81
83
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
82
|
-
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
83
|
-
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
84
84
|
//region block: imports
|
|
85
85
|
var imul = Math.imul;
|
|
86
86
|
//endregion
|
|
87
87
|
//region block: pre-declaration
|
|
88
|
-
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
89
|
-
initMetadataForCompanion(Companion_0, VOID, [KSerializer]);
|
|
90
|
-
initMetadataForClass(SearchPersonResponse, 'SearchPersonResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
91
|
-
initMetadataForClass(ShowPersonByPersonnummerResponse, 'ShowPersonByPersonnummerResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_2});
|
|
92
|
-
initMetadataForCoroutine($deletePersonFromCompanyCOROUTINE$, CoroutineImpl);
|
|
93
88
|
initMetadataForCoroutine($deletePersonFromCompany$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
94
|
-
initMetadataForCoroutine($deletePersonRoleCOROUTINE$, CoroutineImpl);
|
|
95
89
|
initMetadataForCoroutine($deletePersonRole$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
96
|
-
initMetadataForCoroutine($indexPersonsCOROUTINE$, CoroutineImpl);
|
|
97
90
|
initMetadataForCoroutine($indexPersons$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
98
|
-
initMetadataForCoroutine($indexPersonsForEditCOROUTINE$, CoroutineImpl);
|
|
99
91
|
initMetadataForCoroutine($indexPersonsForEdit$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
100
|
-
initMetadataForCoroutine($invitePersonToBoardCOROUTINE$, CoroutineImpl);
|
|
101
92
|
initMetadataForCoroutine($invitePersonToBoard$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
102
|
-
initMetadataForCoroutine($massUpdatePersonCOROUTINE$, CoroutineImpl);
|
|
103
93
|
initMetadataForCoroutine($massUpdatePerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
104
|
-
initMetadataForCoroutine($mergePersonsCOROUTINE$, CoroutineImpl);
|
|
105
94
|
initMetadataForCoroutine($mergePersons$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
106
|
-
initMetadataForCoroutine($searchPersonCOROUTINE$, CoroutineImpl);
|
|
107
95
|
initMetadataForCoroutine($searchPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
108
|
-
initMetadataForCoroutine($showPersonCOROUTINE$, CoroutineImpl);
|
|
109
96
|
initMetadataForCoroutine($showPerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
110
|
-
initMetadataForCoroutine($showPersonByEmailCOROUTINE$, CoroutineImpl);
|
|
111
97
|
initMetadataForCoroutine($showPersonByEmail$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
112
|
-
initMetadataForCoroutine($showPersonByMobilCOROUTINE$, CoroutineImpl);
|
|
113
98
|
initMetadataForCoroutine($showPersonByMobil$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
114
|
-
initMetadataForCoroutine($showPersonByPersonnummerCOROUTINE$, CoroutineImpl);
|
|
115
99
|
initMetadataForCoroutine($showPersonByPersonnummer$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
116
|
-
initMetadataForCoroutine($updatePersonCOROUTINE$, CoroutineImpl);
|
|
117
100
|
initMetadataForCoroutine($updatePerson$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
118
|
-
initMetadataForCoroutine($updatePersonReservationsCOROUTINE$, CoroutineImpl);
|
|
119
101
|
initMetadataForCoroutine($updatePersonReservations$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
120
|
-
initMetadataForCoroutine($updatePersonResidencyCOROUTINE$, CoroutineImpl);
|
|
121
102
|
initMetadataForCoroutine($updatePersonResidency$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
122
103
|
initMetadataForClass(PersonApi, 'PersonApi', create, ApiClient, VOID, [5, 2, 1, 4, 3]);
|
|
104
|
+
initMetadataForCoroutine($deletePersonFromCompanyOperationCOROUTINE$, CoroutineImpl);
|
|
105
|
+
initMetadataForCoroutine($deletePersonRoleOperationCOROUTINE$, CoroutineImpl);
|
|
106
|
+
initMetadataForCoroutine($indexPersonsForEditOperationCOROUTINE$, CoroutineImpl);
|
|
107
|
+
initMetadataForCoroutine($indexPersonsOperationCOROUTINE$, CoroutineImpl);
|
|
108
|
+
initMetadataForCoroutine($invitePersonToBoardOperationCOROUTINE$, CoroutineImpl);
|
|
109
|
+
initMetadataForCoroutine($massUpdatePersonOperationCOROUTINE$, CoroutineImpl);
|
|
110
|
+
initMetadataForCoroutine($mergePersonsOperationCOROUTINE$, CoroutineImpl);
|
|
111
|
+
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
112
|
+
initMetadataForClass(SearchPersonResponse, 'SearchPersonResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
113
|
+
initMetadataForCoroutine($searchPersonOperationCOROUTINE$, CoroutineImpl);
|
|
114
|
+
initMetadataForCoroutine($showPersonByEmailOperationCOROUTINE$, CoroutineImpl);
|
|
115
|
+
initMetadataForCoroutine($showPersonByMobilOperationCOROUTINE$, CoroutineImpl);
|
|
116
|
+
initMetadataForCompanion(Companion_0, VOID, [KSerializer]);
|
|
117
|
+
initMetadataForClass(ShowPersonByPersonnummerResponse, 'ShowPersonByPersonnummerResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_2});
|
|
118
|
+
initMetadataForCoroutine($showPersonByPersonnummerOperationCOROUTINE$, CoroutineImpl);
|
|
119
|
+
initMetadataForCoroutine($showPersonOperationCOROUTINE$, CoroutineImpl);
|
|
120
|
+
initMetadataForCoroutine($updatePersonOperationCOROUTINE$, CoroutineImpl);
|
|
121
|
+
initMetadataForCoroutine($updatePersonReservationsOperationCOROUTINE$, CoroutineImpl);
|
|
122
|
+
initMetadataForCoroutine($updatePersonResidencyOperationCOROUTINE$, CoroutineImpl);
|
|
123
123
|
initMetadataForCompanion(Companion_1);
|
|
124
124
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
125
125
|
initMetadataForClass(CreatePersonCommand, 'CreatePersonCommand', CreatePersonCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
@@ -184,66 +184,6 @@ function get_person(_this__u8e3s4) {
|
|
|
184
184
|
function _get_person_$lambda_mptaz9(arguments_0) {
|
|
185
185
|
return create(arguments_0.baseUrl_1, arguments_0.httpClientEngine_1, arguments_0.httpClientConfig_1);
|
|
186
186
|
}
|
|
187
|
-
function Companion() {
|
|
188
|
-
Companion_instance_0 = this;
|
|
189
|
-
var tmp = this;
|
|
190
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
191
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
192
|
-
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Person), arrayOf([]), false))]), false));
|
|
193
|
-
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
194
|
-
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
195
|
-
}
|
|
196
|
-
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
197
|
-
return this.descriptor_1;
|
|
198
|
-
};
|
|
199
|
-
protoOf(Companion).serialize_frwunw_k$ = function (encoder, value) {
|
|
200
|
-
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
201
|
-
};
|
|
202
|
-
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
203
|
-
return this.serialize_frwunw_k$(encoder, value instanceof SearchPersonResponse ? value : THROW_CCE());
|
|
204
|
-
};
|
|
205
|
-
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
206
|
-
return new SearchPersonResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
207
|
-
};
|
|
208
|
-
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
209
|
-
return Companion_getInstance_1();
|
|
210
|
-
};
|
|
211
|
-
var Companion_instance_0;
|
|
212
|
-
function Companion_getInstance_1() {
|
|
213
|
-
if (Companion_instance_0 == null)
|
|
214
|
-
new Companion();
|
|
215
|
-
return Companion_instance_0;
|
|
216
|
-
}
|
|
217
|
-
function Companion_0() {
|
|
218
|
-
Companion_instance_1 = this;
|
|
219
|
-
var tmp = this;
|
|
220
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
221
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
222
|
-
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(PersonnummerResult), arrayOf([]), false))]), false));
|
|
223
|
-
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
224
|
-
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
225
|
-
}
|
|
226
|
-
protoOf(Companion_0).get_descriptor_wjt6a0_k$ = function () {
|
|
227
|
-
return this.descriptor_1;
|
|
228
|
-
};
|
|
229
|
-
protoOf(Companion_0).serialize_uhl44x_k$ = function (encoder, value) {
|
|
230
|
-
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
231
|
-
};
|
|
232
|
-
protoOf(Companion_0).serialize_5ase3y_k$ = function (encoder, value) {
|
|
233
|
-
return this.serialize_uhl44x_k$(encoder, value instanceof ShowPersonByPersonnummerResponse ? value : THROW_CCE());
|
|
234
|
-
};
|
|
235
|
-
protoOf(Companion_0).deserialize_sy6x50_k$ = function (decoder) {
|
|
236
|
-
return new ShowPersonByPersonnummerResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
237
|
-
};
|
|
238
|
-
protoOf(Companion_0).serializer_9w0wvi_k$ = function () {
|
|
239
|
-
return Companion_getInstance_2();
|
|
240
|
-
};
|
|
241
|
-
var Companion_instance_1;
|
|
242
|
-
function Companion_getInstance_2() {
|
|
243
|
-
if (Companion_instance_1 == null)
|
|
244
|
-
new Companion_0();
|
|
245
|
-
return Companion_instance_1;
|
|
246
|
-
}
|
|
247
187
|
function PersonApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this) {
|
|
248
188
|
baseUrl = baseUrl === VOID ? 'https://home.solibo.no/api' : baseUrl;
|
|
249
189
|
httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
|
|
@@ -264,100 +204,6 @@ function PersonApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
264
204
|
function createWithClient(baseUrl, httpClient) {
|
|
265
205
|
return PersonApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(PersonApi)));
|
|
266
206
|
}
|
|
267
|
-
function SearchPersonResponse(value) {
|
|
268
|
-
Companion_getInstance_1();
|
|
269
|
-
this.value_1 = value;
|
|
270
|
-
}
|
|
271
|
-
function ShowPersonByPersonnummerResponse(value) {
|
|
272
|
-
Companion_getInstance_2();
|
|
273
|
-
this.value_1 = value;
|
|
274
|
-
}
|
|
275
|
-
function PersonApi$searchPerson$lambda($this$map) {
|
|
276
|
-
return $this$map.value_1;
|
|
277
|
-
}
|
|
278
|
-
function PersonApi$showPersonByPersonnummer$lambda($this$map) {
|
|
279
|
-
return $this$map.value_1;
|
|
280
|
-
}
|
|
281
|
-
function $deletePersonFromCompanyCOROUTINE$(_this__u8e3s4, companyId, residentType, residentId, removeBods, removeParkeringsplass, resultContinuation) {
|
|
282
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
283
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
284
|
-
this.companyId_1 = companyId;
|
|
285
|
-
this.residentType_1 = residentType;
|
|
286
|
-
this.residentId_1 = residentId;
|
|
287
|
-
this.removeBods_1 = removeBods;
|
|
288
|
-
this.removeParkeringsplass_1 = removeParkeringsplass;
|
|
289
|
-
}
|
|
290
|
-
protoOf($deletePersonFromCompanyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
291
|
-
var suspendResult = this.result_1;
|
|
292
|
-
$sm: do
|
|
293
|
-
try {
|
|
294
|
-
var tmp = this.state_1;
|
|
295
|
-
switch (tmp) {
|
|
296
|
-
case 0:
|
|
297
|
-
this.exceptionState_1 = 2;
|
|
298
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
299
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
300
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
301
|
-
if (this.removeBods_1 == null)
|
|
302
|
-
null;
|
|
303
|
-
else {
|
|
304
|
-
var tmp2 = 'removeBods';
|
|
305
|
-
var value = listOf_0('' + this.removeBods_1);
|
|
306
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
if (this.removeParkeringsplass_1 == null)
|
|
310
|
-
null;
|
|
311
|
-
else {
|
|
312
|
-
var tmp2_0 = 'removeParkeringsplass';
|
|
313
|
-
var value_0 = listOf_0('' + this.removeParkeringsplass_1);
|
|
314
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
318
|
-
var tmp2_method = RequestMethod_DELETE_getInstance();
|
|
319
|
-
var tmp3_path = replace(replace(replace('/companies/{companyId}/residents/{residentType}/{residentId}', '{companyId}', this.companyId_1.toString()), '{residentType}', this.residentType_1), '{residentId}', this.residentId_1.toString());
|
|
320
|
-
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
321
|
-
this.state_1 = 1;
|
|
322
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
323
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
324
|
-
return suspendResult;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
continue $sm;
|
|
328
|
-
case 1:
|
|
329
|
-
var this_0 = suspendResult;
|
|
330
|
-
var tmp_0 = getKClass(Unit);
|
|
331
|
-
var tmp_1 = null instanceof Unit;
|
|
332
|
-
var tmp_2;
|
|
333
|
-
try {
|
|
334
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
335
|
-
} catch ($p) {
|
|
336
|
-
var tmp_3;
|
|
337
|
-
if ($p instanceof Error) {
|
|
338
|
-
var _unused_var__etf5q3 = $p;
|
|
339
|
-
tmp_3 = null;
|
|
340
|
-
} else {
|
|
341
|
-
throw $p;
|
|
342
|
-
}
|
|
343
|
-
tmp_2 = tmp_3;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
347
|
-
case 2:
|
|
348
|
-
throw this.exception_1;
|
|
349
|
-
}
|
|
350
|
-
} catch ($p_0) {
|
|
351
|
-
var e = $p_0;
|
|
352
|
-
if (this.exceptionState_1 === 2) {
|
|
353
|
-
throw e;
|
|
354
|
-
} else {
|
|
355
|
-
this.state_1 = this.exceptionState_1;
|
|
356
|
-
this.exception_1 = e;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
while (true);
|
|
360
|
-
};
|
|
361
207
|
function $deletePersonFromCompany$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, residentType, residentId, removeBods, removeParkeringsplass, resultContinuation) {
|
|
362
208
|
CoroutineImpl.call(this, resultContinuation);
|
|
363
209
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -415,67 +261,6 @@ protoOf($deletePersonFromCompany$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
415
261
|
}
|
|
416
262
|
while (true);
|
|
417
263
|
};
|
|
418
|
-
function $deletePersonRoleCOROUTINE$(_this__u8e3s4, personId, roleId, resultContinuation) {
|
|
419
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
420
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
421
|
-
this.personId_1 = personId;
|
|
422
|
-
this.roleId_1 = roleId;
|
|
423
|
-
}
|
|
424
|
-
protoOf($deletePersonRoleCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
425
|
-
var suspendResult = this.result_1;
|
|
426
|
-
$sm: do
|
|
427
|
-
try {
|
|
428
|
-
var tmp = this.state_1;
|
|
429
|
-
switch (tmp) {
|
|
430
|
-
case 0:
|
|
431
|
-
this.exceptionState_1 = 2;
|
|
432
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
433
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
434
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
435
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
436
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
437
|
-
var tmp1_path = replace(replace('/persons/{personId}/roles/{roleId}', '{personId}', this.personId_1.toString()), '{roleId}', this.roleId_1.toString());
|
|
438
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
439
|
-
this.state_1 = 1;
|
|
440
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
441
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
442
|
-
return suspendResult;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
continue $sm;
|
|
446
|
-
case 1:
|
|
447
|
-
var this_0 = suspendResult;
|
|
448
|
-
var tmp_0 = getKClass(Unit);
|
|
449
|
-
var tmp_1 = null instanceof Unit;
|
|
450
|
-
var tmp_2;
|
|
451
|
-
try {
|
|
452
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
453
|
-
} catch ($p) {
|
|
454
|
-
var tmp_3;
|
|
455
|
-
if ($p instanceof Error) {
|
|
456
|
-
var _unused_var__etf5q3 = $p;
|
|
457
|
-
tmp_3 = null;
|
|
458
|
-
} else {
|
|
459
|
-
throw $p;
|
|
460
|
-
}
|
|
461
|
-
tmp_2 = tmp_3;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
465
|
-
case 2:
|
|
466
|
-
throw this.exception_1;
|
|
467
|
-
}
|
|
468
|
-
} catch ($p_0) {
|
|
469
|
-
var e = $p_0;
|
|
470
|
-
if (this.exceptionState_1 === 2) {
|
|
471
|
-
throw e;
|
|
472
|
-
} else {
|
|
473
|
-
this.state_1 = this.exceptionState_1;
|
|
474
|
-
this.exception_1 = e;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
while (true);
|
|
478
|
-
};
|
|
479
264
|
function $deletePersonRole$suspendBridgeCOROUTINE$(_this__u8e3s4, personId, roleId, resultContinuation) {
|
|
480
265
|
CoroutineImpl.call(this, resultContinuation);
|
|
481
266
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -530,7 +315,7 @@ protoOf($deletePersonRole$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
530
315
|
}
|
|
531
316
|
while (true);
|
|
532
317
|
};
|
|
533
|
-
function $
|
|
318
|
+
function $indexPersons$suspendBridgeCOROUTINE$(_this__u8e3s4, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
534
319
|
CoroutineImpl.call(this, resultContinuation);
|
|
535
320
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
536
321
|
this.query_1 = query;
|
|
@@ -539,107 +324,7 @@ function $indexPersonsCOROUTINE$(_this__u8e3s4, query, fields, pageToken, autoPa
|
|
|
539
324
|
this.autoPaginate_1 = autoPaginate;
|
|
540
325
|
this.count_1 = count;
|
|
541
326
|
}
|
|
542
|
-
protoOf($
|
|
543
|
-
var suspendResult = this.result_1;
|
|
544
|
-
$sm: do
|
|
545
|
-
try {
|
|
546
|
-
var tmp = this.state_1;
|
|
547
|
-
switch (tmp) {
|
|
548
|
-
case 0:
|
|
549
|
-
this.exceptionState_1 = 2;
|
|
550
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
551
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
552
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
553
|
-
if (this.query_1 == null)
|
|
554
|
-
null;
|
|
555
|
-
else {
|
|
556
|
-
var value = listOf_0(this.query_1);
|
|
557
|
-
localVariableQuery.put_4fpzoq_k$('query', value);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
if (this.fields_1 == null)
|
|
561
|
-
null;
|
|
562
|
-
else {
|
|
563
|
-
var value_0 = listOf_0(this.fields_1);
|
|
564
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
if (this.pageToken_1 == null)
|
|
568
|
-
null;
|
|
569
|
-
else {
|
|
570
|
-
var tmp2 = 'pageToken';
|
|
571
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
572
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
if (this.autoPaginate_1 == null)
|
|
576
|
-
null;
|
|
577
|
-
else {
|
|
578
|
-
var tmp2_0 = 'autoPaginate';
|
|
579
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
580
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
if (this.count_1 == null)
|
|
584
|
-
null;
|
|
585
|
-
else {
|
|
586
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
587
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
591
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
592
|
-
var localVariableConfig = new RequestConfig(tmp5_method, '/persons', localVariableHeaders, VOID, localVariableQuery, true);
|
|
593
|
-
this.state_1 = 1;
|
|
594
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
595
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
596
|
-
return suspendResult;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
continue $sm;
|
|
600
|
-
case 1:
|
|
601
|
-
var this_0 = suspendResult;
|
|
602
|
-
var tmp_0 = getKClass(PagedListPerson);
|
|
603
|
-
var tmp_1 = null instanceof PagedListPerson;
|
|
604
|
-
var tmp_2;
|
|
605
|
-
try {
|
|
606
|
-
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
607
|
-
} catch ($p) {
|
|
608
|
-
var tmp_3;
|
|
609
|
-
if ($p instanceof Error) {
|
|
610
|
-
var _unused_var__etf5q3 = $p;
|
|
611
|
-
tmp_3 = null;
|
|
612
|
-
} else {
|
|
613
|
-
throw $p;
|
|
614
|
-
}
|
|
615
|
-
tmp_2 = tmp_3;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
619
|
-
case 2:
|
|
620
|
-
throw this.exception_1;
|
|
621
|
-
}
|
|
622
|
-
} catch ($p_0) {
|
|
623
|
-
var e = $p_0;
|
|
624
|
-
if (this.exceptionState_1 === 2) {
|
|
625
|
-
throw e;
|
|
626
|
-
} else {
|
|
627
|
-
this.state_1 = this.exceptionState_1;
|
|
628
|
-
this.exception_1 = e;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
while (true);
|
|
632
|
-
};
|
|
633
|
-
function $indexPersons$suspendBridgeCOROUTINE$(_this__u8e3s4, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
634
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
635
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
636
|
-
this.query_1 = query;
|
|
637
|
-
this.fields_1 = fields;
|
|
638
|
-
this.pageToken_1 = pageToken;
|
|
639
|
-
this.autoPaginate_1 = autoPaginate;
|
|
640
|
-
this.count_1 = count;
|
|
641
|
-
}
|
|
642
|
-
protoOf($indexPersons$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
327
|
+
protoOf($indexPersons$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
643
328
|
var suspendResult = this.result_1;
|
|
644
329
|
$sm: do
|
|
645
330
|
try {
|
|
@@ -687,100 +372,6 @@ protoOf($indexPersons$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
687
372
|
}
|
|
688
373
|
while (true);
|
|
689
374
|
};
|
|
690
|
-
function $indexPersonsForEditCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
691
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
692
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
693
|
-
this.companyId_1 = companyId;
|
|
694
|
-
this.fields_1 = fields;
|
|
695
|
-
this.pageToken_1 = pageToken;
|
|
696
|
-
this.autoPaginate_1 = autoPaginate;
|
|
697
|
-
this.count_1 = count;
|
|
698
|
-
}
|
|
699
|
-
protoOf($indexPersonsForEditCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
700
|
-
var suspendResult = this.result_1;
|
|
701
|
-
$sm: do
|
|
702
|
-
try {
|
|
703
|
-
var tmp = this.state_1;
|
|
704
|
-
switch (tmp) {
|
|
705
|
-
case 0:
|
|
706
|
-
this.exceptionState_1 = 2;
|
|
707
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
708
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
709
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
710
|
-
if (this.fields_1 == null)
|
|
711
|
-
null;
|
|
712
|
-
else {
|
|
713
|
-
var value = listOf_0(this.fields_1);
|
|
714
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
if (this.pageToken_1 == null)
|
|
718
|
-
null;
|
|
719
|
-
else {
|
|
720
|
-
var tmp2 = 'pageToken';
|
|
721
|
-
var value_0 = listOf_0(this.pageToken_1);
|
|
722
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
if (this.autoPaginate_1 == null)
|
|
726
|
-
null;
|
|
727
|
-
else {
|
|
728
|
-
var tmp2_0 = 'autoPaginate';
|
|
729
|
-
var value_1 = listOf_0('' + this.autoPaginate_1);
|
|
730
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
if (this.count_1 == null)
|
|
734
|
-
null;
|
|
735
|
-
else {
|
|
736
|
-
var value_2 = listOf_0('' + this.count_1);
|
|
737
|
-
localVariableQuery.put_4fpzoq_k$('count', value_2);
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
741
|
-
var tmp4_method = RequestMethod_GET_getInstance();
|
|
742
|
-
var tmp5_path = replace('/companies/{companyId}/persons', '{companyId}', this.companyId_1.toString());
|
|
743
|
-
var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
744
|
-
this.state_1 = 1;
|
|
745
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
746
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
747
|
-
return suspendResult;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
continue $sm;
|
|
751
|
-
case 1:
|
|
752
|
-
var this_0 = suspendResult;
|
|
753
|
-
var tmp_0 = getKClass(PagedListPerson);
|
|
754
|
-
var tmp_1 = null instanceof PagedListPerson;
|
|
755
|
-
var tmp_2;
|
|
756
|
-
try {
|
|
757
|
-
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
758
|
-
} catch ($p) {
|
|
759
|
-
var tmp_3;
|
|
760
|
-
if ($p instanceof Error) {
|
|
761
|
-
var _unused_var__etf5q3 = $p;
|
|
762
|
-
tmp_3 = null;
|
|
763
|
-
} else {
|
|
764
|
-
throw $p;
|
|
765
|
-
}
|
|
766
|
-
tmp_2 = tmp_3;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
770
|
-
case 2:
|
|
771
|
-
throw this.exception_1;
|
|
772
|
-
}
|
|
773
|
-
} catch ($p_0) {
|
|
774
|
-
var e = $p_0;
|
|
775
|
-
if (this.exceptionState_1 === 2) {
|
|
776
|
-
throw e;
|
|
777
|
-
} else {
|
|
778
|
-
this.state_1 = this.exceptionState_1;
|
|
779
|
-
this.exception_1 = e;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
while (true);
|
|
783
|
-
};
|
|
784
375
|
function $indexPersonsForEdit$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
785
376
|
CoroutineImpl.call(this, resultContinuation);
|
|
786
377
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -838,67 +429,6 @@ protoOf($indexPersonsForEdit$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
838
429
|
}
|
|
839
430
|
while (true);
|
|
840
431
|
};
|
|
841
|
-
function $invitePersonToBoardCOROUTINE$(_this__u8e3s4, companyId, personId, resultContinuation) {
|
|
842
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
843
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
844
|
-
this.companyId_1 = companyId;
|
|
845
|
-
this.personId_1 = personId;
|
|
846
|
-
}
|
|
847
|
-
protoOf($invitePersonToBoardCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
848
|
-
var suspendResult = this.result_1;
|
|
849
|
-
$sm: do
|
|
850
|
-
try {
|
|
851
|
-
var tmp = this.state_1;
|
|
852
|
-
switch (tmp) {
|
|
853
|
-
case 0:
|
|
854
|
-
this.exceptionState_1 = 2;
|
|
855
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
856
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
857
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
858
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
859
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
860
|
-
var tmp1_path = replace(replace('/companies/{companyId}/persons/{personId}/inviteToBoard', '{companyId}', this.companyId_1.toString()), '{personId}', this.personId_1.toString());
|
|
861
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
862
|
-
this.state_1 = 1;
|
|
863
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
864
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
865
|
-
return suspendResult;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
continue $sm;
|
|
869
|
-
case 1:
|
|
870
|
-
var this_0 = suspendResult;
|
|
871
|
-
var tmp_0 = getKClass(Unit);
|
|
872
|
-
var tmp_1 = null instanceof Unit;
|
|
873
|
-
var tmp_2;
|
|
874
|
-
try {
|
|
875
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
876
|
-
} catch ($p) {
|
|
877
|
-
var tmp_3;
|
|
878
|
-
if ($p instanceof Error) {
|
|
879
|
-
var _unused_var__etf5q3 = $p;
|
|
880
|
-
tmp_3 = null;
|
|
881
|
-
} else {
|
|
882
|
-
throw $p;
|
|
883
|
-
}
|
|
884
|
-
tmp_2 = tmp_3;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
888
|
-
case 2:
|
|
889
|
-
throw this.exception_1;
|
|
890
|
-
}
|
|
891
|
-
} catch ($p_0) {
|
|
892
|
-
var e = $p_0;
|
|
893
|
-
if (this.exceptionState_1 === 2) {
|
|
894
|
-
throw e;
|
|
895
|
-
} else {
|
|
896
|
-
this.state_1 = this.exceptionState_1;
|
|
897
|
-
this.exception_1 = e;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
while (true);
|
|
901
|
-
};
|
|
902
432
|
function $invitePersonToBoard$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, personId, resultContinuation) {
|
|
903
433
|
CoroutineImpl.call(this, resultContinuation);
|
|
904
434
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -953,71 +483,12 @@ protoOf($invitePersonToBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
953
483
|
}
|
|
954
484
|
while (true);
|
|
955
485
|
};
|
|
956
|
-
function $
|
|
486
|
+
function $massUpdatePerson$suspendBridgeCOROUTINE$(_this__u8e3s4, massEditPersonCommand, resultContinuation) {
|
|
957
487
|
CoroutineImpl.call(this, resultContinuation);
|
|
958
488
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
959
489
|
this.massEditPersonCommand_1 = massEditPersonCommand;
|
|
960
490
|
}
|
|
961
|
-
protoOf($
|
|
962
|
-
var suspendResult = this.result_1;
|
|
963
|
-
$sm: do
|
|
964
|
-
try {
|
|
965
|
-
var tmp = this.state_1;
|
|
966
|
-
switch (tmp) {
|
|
967
|
-
case 0:
|
|
968
|
-
this.exceptionState_1 = 2;
|
|
969
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
970
|
-
var localVariableBody = this.massEditPersonCommand_1;
|
|
971
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
972
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
973
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
974
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/persons', localVariableHeaders, VOID, localVariableQuery, true);
|
|
975
|
-
this.state_1 = 1;
|
|
976
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
977
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
|
-
return suspendResult;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
continue $sm;
|
|
982
|
-
case 1:
|
|
983
|
-
var this_0 = suspendResult;
|
|
984
|
-
var tmp_0 = getKClass(Unit);
|
|
985
|
-
var tmp_1 = null instanceof Unit;
|
|
986
|
-
var tmp_2;
|
|
987
|
-
try {
|
|
988
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
989
|
-
} catch ($p) {
|
|
990
|
-
var tmp_3;
|
|
991
|
-
if ($p instanceof Error) {
|
|
992
|
-
var _unused_var__etf5q3 = $p;
|
|
993
|
-
tmp_3 = null;
|
|
994
|
-
} else {
|
|
995
|
-
throw $p;
|
|
996
|
-
}
|
|
997
|
-
tmp_2 = tmp_3;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1001
|
-
case 2:
|
|
1002
|
-
throw this.exception_1;
|
|
1003
|
-
}
|
|
1004
|
-
} catch ($p_0) {
|
|
1005
|
-
var e = $p_0;
|
|
1006
|
-
if (this.exceptionState_1 === 2) {
|
|
1007
|
-
throw e;
|
|
1008
|
-
} else {
|
|
1009
|
-
this.state_1 = this.exceptionState_1;
|
|
1010
|
-
this.exception_1 = e;
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
while (true);
|
|
1014
|
-
};
|
|
1015
|
-
function $massUpdatePerson$suspendBridgeCOROUTINE$(_this__u8e3s4, massEditPersonCommand, resultContinuation) {
|
|
1016
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1017
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1018
|
-
this.massEditPersonCommand_1 = massEditPersonCommand;
|
|
1019
|
-
}
|
|
1020
|
-
protoOf($massUpdatePerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
491
|
+
protoOf($massUpdatePerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1021
492
|
var suspendResult = this.result_1;
|
|
1022
493
|
$sm: do
|
|
1023
494
|
try {
|
|
@@ -1065,65 +536,6 @@ protoOf($massUpdatePerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1065
536
|
}
|
|
1066
537
|
while (true);
|
|
1067
538
|
};
|
|
1068
|
-
function $mergePersonsCOROUTINE$(_this__u8e3s4, mergePersonsCommand, resultContinuation) {
|
|
1069
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1070
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1071
|
-
this.mergePersonsCommand_1 = mergePersonsCommand;
|
|
1072
|
-
}
|
|
1073
|
-
protoOf($mergePersonsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1074
|
-
var suspendResult = this.result_1;
|
|
1075
|
-
$sm: do
|
|
1076
|
-
try {
|
|
1077
|
-
var tmp = this.state_1;
|
|
1078
|
-
switch (tmp) {
|
|
1079
|
-
case 0:
|
|
1080
|
-
this.exceptionState_1 = 2;
|
|
1081
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1082
|
-
var localVariableBody = this.mergePersonsCommand_1;
|
|
1083
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1084
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1085
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1086
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/merge', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1087
|
-
this.state_1 = 1;
|
|
1088
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1089
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1090
|
-
return suspendResult;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
continue $sm;
|
|
1094
|
-
case 1:
|
|
1095
|
-
var this_0 = suspendResult;
|
|
1096
|
-
var tmp_0 = getKClass(Person);
|
|
1097
|
-
var tmp_1 = null instanceof Person;
|
|
1098
|
-
var tmp_2;
|
|
1099
|
-
try {
|
|
1100
|
-
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
1101
|
-
} catch ($p) {
|
|
1102
|
-
var tmp_3;
|
|
1103
|
-
if ($p instanceof Error) {
|
|
1104
|
-
var _unused_var__etf5q3 = $p;
|
|
1105
|
-
tmp_3 = null;
|
|
1106
|
-
} else {
|
|
1107
|
-
throw $p;
|
|
1108
|
-
}
|
|
1109
|
-
tmp_2 = tmp_3;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1113
|
-
case 2:
|
|
1114
|
-
throw this.exception_1;
|
|
1115
|
-
}
|
|
1116
|
-
} catch ($p_0) {
|
|
1117
|
-
var e = $p_0;
|
|
1118
|
-
if (this.exceptionState_1 === 2) {
|
|
1119
|
-
throw e;
|
|
1120
|
-
} else {
|
|
1121
|
-
this.state_1 = this.exceptionState_1;
|
|
1122
|
-
this.exception_1 = e;
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
while (true);
|
|
1126
|
-
};
|
|
1127
539
|
function $mergePersons$suspendBridgeCOROUTINE$(_this__u8e3s4, mergePersonsCommand, resultContinuation) {
|
|
1128
540
|
CoroutineImpl.call(this, resultContinuation);
|
|
1129
541
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -1177,66 +589,6 @@ protoOf($mergePersons$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1177
589
|
}
|
|
1178
590
|
while (true);
|
|
1179
591
|
};
|
|
1180
|
-
function $searchPersonCOROUTINE$(_this__u8e3s4, searchPersonQueryCommand, resultContinuation) {
|
|
1181
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1182
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1183
|
-
this.searchPersonQueryCommand_1 = searchPersonQueryCommand;
|
|
1184
|
-
}
|
|
1185
|
-
protoOf($searchPersonCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1186
|
-
var suspendResult = this.result_1;
|
|
1187
|
-
$sm: do
|
|
1188
|
-
try {
|
|
1189
|
-
var tmp = this.state_1;
|
|
1190
|
-
switch (tmp) {
|
|
1191
|
-
case 0:
|
|
1192
|
-
this.exceptionState_1 = 2;
|
|
1193
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1194
|
-
var localVariableBody = this.searchPersonQueryCommand_1;
|
|
1195
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1196
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1197
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1198
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/search', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1199
|
-
this.state_1 = 1;
|
|
1200
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1201
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1202
|
-
return suspendResult;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
continue $sm;
|
|
1206
|
-
case 1:
|
|
1207
|
-
var this_0 = suspendResult;
|
|
1208
|
-
var tmp_0 = getKClass(SearchPersonResponse);
|
|
1209
|
-
var tmp_1 = null instanceof SearchPersonResponse;
|
|
1210
|
-
var tmp_2;
|
|
1211
|
-
try {
|
|
1212
|
-
tmp_2 = createKType(getKClass(SearchPersonResponse), arrayOf([]), false);
|
|
1213
|
-
} catch ($p) {
|
|
1214
|
-
var tmp_3;
|
|
1215
|
-
if ($p instanceof Error) {
|
|
1216
|
-
var _unused_var__etf5q3 = $p;
|
|
1217
|
-
tmp_3 = null;
|
|
1218
|
-
} else {
|
|
1219
|
-
throw $p;
|
|
1220
|
-
}
|
|
1221
|
-
tmp_2 = tmp_3;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1225
|
-
return map(ARGUMENT, PersonApi$searchPerson$lambda);
|
|
1226
|
-
case 2:
|
|
1227
|
-
throw this.exception_1;
|
|
1228
|
-
}
|
|
1229
|
-
} catch ($p_0) {
|
|
1230
|
-
var e = $p_0;
|
|
1231
|
-
if (this.exceptionState_1 === 2) {
|
|
1232
|
-
throw e;
|
|
1233
|
-
} else {
|
|
1234
|
-
this.state_1 = this.exceptionState_1;
|
|
1235
|
-
this.exception_1 = e;
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
while (true);
|
|
1239
|
-
};
|
|
1240
592
|
function $searchPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, searchPersonQueryCommand, resultContinuation) {
|
|
1241
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
1242
594
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -1290,66 +642,52 @@ protoOf($searchPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1290
642
|
}
|
|
1291
643
|
while (true);
|
|
1292
644
|
};
|
|
1293
|
-
function $
|
|
645
|
+
function $showPerson$suspendBridgeCOROUTINE$(_this__u8e3s4, personId, fields, resultContinuation) {
|
|
1294
646
|
CoroutineImpl.call(this, resultContinuation);
|
|
1295
647
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1296
648
|
this.personId_1 = personId;
|
|
1297
649
|
this.fields_1 = fields;
|
|
1298
650
|
}
|
|
1299
|
-
protoOf($
|
|
651
|
+
protoOf($showPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1300
652
|
var suspendResult = this.result_1;
|
|
1301
653
|
$sm: do
|
|
1302
654
|
try {
|
|
1303
655
|
var tmp = this.state_1;
|
|
1304
656
|
switch (tmp) {
|
|
1305
657
|
case 0:
|
|
1306
|
-
this.exceptionState_1 =
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
else {
|
|
1313
|
-
var value = listOf_0(this.fields_1);
|
|
1314
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1318
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1319
|
-
var tmp2_path = replace('/persons/{personId}', '{personId}', this.personId_1.toString());
|
|
1320
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1321
|
-
this.state_1 = 1;
|
|
1322
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1323
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1324
|
-
return suspendResult;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
continue $sm;
|
|
1328
|
-
case 1:
|
|
1329
|
-
var this_0 = suspendResult;
|
|
1330
|
-
var tmp_0 = getKClass(Person);
|
|
1331
|
-
var tmp_1 = null instanceof Person;
|
|
1332
|
-
var tmp_2;
|
|
1333
|
-
try {
|
|
1334
|
-
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
1335
|
-
} catch ($p) {
|
|
1336
|
-
var tmp_3;
|
|
1337
|
-
if ($p instanceof Error) {
|
|
1338
|
-
var _unused_var__etf5q3 = $p;
|
|
1339
|
-
tmp_3 = null;
|
|
1340
|
-
} else {
|
|
1341
|
-
throw $p;
|
|
658
|
+
this.exceptionState_1 = 4;
|
|
659
|
+
if (this._this__u8e3s4__1.showPerson === protoOf(PersonApi).showPerson) {
|
|
660
|
+
this.state_1 = 2;
|
|
661
|
+
suspendResult = this._this__u8e3s4__1.showPerson$default_724tbv_k$(this.personId_1, this.fields_1, this);
|
|
662
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
663
|
+
return suspendResult;
|
|
1342
664
|
}
|
|
1343
|
-
|
|
665
|
+
continue $sm;
|
|
666
|
+
} else {
|
|
667
|
+
this.state_1 = 1;
|
|
668
|
+
suspendResult = await_0(this._this__u8e3s4__1.showPerson(this.personId_1, this.fields_1), this);
|
|
669
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
670
|
+
return suspendResult;
|
|
671
|
+
}
|
|
672
|
+
continue $sm;
|
|
1344
673
|
}
|
|
1345
674
|
|
|
1346
|
-
|
|
675
|
+
case 1:
|
|
676
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
677
|
+
this.state_1 = 3;
|
|
678
|
+
continue $sm;
|
|
1347
679
|
case 2:
|
|
680
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
681
|
+
this.state_1 = 3;
|
|
682
|
+
continue $sm;
|
|
683
|
+
case 3:
|
|
684
|
+
return this.WHEN_RESULT0__1;
|
|
685
|
+
case 4:
|
|
1348
686
|
throw this.exception_1;
|
|
1349
687
|
}
|
|
1350
|
-
} catch ($
|
|
1351
|
-
var e = $
|
|
1352
|
-
if (this.exceptionState_1 ===
|
|
688
|
+
} catch ($p) {
|
|
689
|
+
var e = $p;
|
|
690
|
+
if (this.exceptionState_1 === 4) {
|
|
1353
691
|
throw e;
|
|
1354
692
|
} else {
|
|
1355
693
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1358,13 +696,13 @@ protoOf($showPersonCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1358
696
|
}
|
|
1359
697
|
while (true);
|
|
1360
698
|
};
|
|
1361
|
-
function $
|
|
699
|
+
function $showPersonByEmail$suspendBridgeCOROUTINE$(_this__u8e3s4, email, fields, resultContinuation) {
|
|
1362
700
|
CoroutineImpl.call(this, resultContinuation);
|
|
1363
701
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1364
|
-
this.
|
|
702
|
+
this.email_1 = email;
|
|
1365
703
|
this.fields_1 = fields;
|
|
1366
704
|
}
|
|
1367
|
-
protoOf($
|
|
705
|
+
protoOf($showPersonByEmail$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1368
706
|
var suspendResult = this.result_1;
|
|
1369
707
|
$sm: do
|
|
1370
708
|
try {
|
|
@@ -1372,16 +710,16 @@ protoOf($showPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1372
710
|
switch (tmp) {
|
|
1373
711
|
case 0:
|
|
1374
712
|
this.exceptionState_1 = 4;
|
|
1375
|
-
if (this._this__u8e3s4__1.
|
|
713
|
+
if (this._this__u8e3s4__1.showPersonByEmail === protoOf(PersonApi).showPersonByEmail) {
|
|
1376
714
|
this.state_1 = 2;
|
|
1377
|
-
suspendResult = this._this__u8e3s4__1.
|
|
715
|
+
suspendResult = this._this__u8e3s4__1.showPersonByEmail$default_ypueiu_k$(this.email_1, this.fields_1, this);
|
|
1378
716
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1379
717
|
return suspendResult;
|
|
1380
718
|
}
|
|
1381
719
|
continue $sm;
|
|
1382
720
|
} else {
|
|
1383
721
|
this.state_1 = 1;
|
|
1384
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
722
|
+
suspendResult = await_0(this._this__u8e3s4__1.showPersonByEmail(this.email_1, this.fields_1), this);
|
|
1385
723
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1386
724
|
return suspendResult;
|
|
1387
725
|
}
|
|
@@ -1412,81 +750,13 @@ protoOf($showPerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1412
750
|
}
|
|
1413
751
|
while (true);
|
|
1414
752
|
};
|
|
1415
|
-
function $
|
|
753
|
+
function $showPersonByMobil$suspendBridgeCOROUTINE$(_this__u8e3s4, mobile, fields, resultContinuation) {
|
|
1416
754
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
755
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1418
|
-
this.
|
|
756
|
+
this.mobile_1 = mobile;
|
|
1419
757
|
this.fields_1 = fields;
|
|
1420
758
|
}
|
|
1421
|
-
protoOf($
|
|
1422
|
-
var suspendResult = this.result_1;
|
|
1423
|
-
$sm: do
|
|
1424
|
-
try {
|
|
1425
|
-
var tmp = this.state_1;
|
|
1426
|
-
switch (tmp) {
|
|
1427
|
-
case 0:
|
|
1428
|
-
this.exceptionState_1 = 2;
|
|
1429
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1430
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1431
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1432
|
-
if (this.fields_1 == null)
|
|
1433
|
-
null;
|
|
1434
|
-
else {
|
|
1435
|
-
var value = listOf_0(this.fields_1);
|
|
1436
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1440
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1441
|
-
var tmp2_path = replace('/persons/byEmail/{email}', '{email}', this.email_1);
|
|
1442
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1443
|
-
this.state_1 = 1;
|
|
1444
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1445
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1446
|
-
return suspendResult;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
continue $sm;
|
|
1450
|
-
case 1:
|
|
1451
|
-
var this_0 = suspendResult;
|
|
1452
|
-
var tmp_0 = getKClass(Person);
|
|
1453
|
-
var tmp_1 = null instanceof Person;
|
|
1454
|
-
var tmp_2;
|
|
1455
|
-
try {
|
|
1456
|
-
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
1457
|
-
} catch ($p) {
|
|
1458
|
-
var tmp_3;
|
|
1459
|
-
if ($p instanceof Error) {
|
|
1460
|
-
var _unused_var__etf5q3 = $p;
|
|
1461
|
-
tmp_3 = null;
|
|
1462
|
-
} else {
|
|
1463
|
-
throw $p;
|
|
1464
|
-
}
|
|
1465
|
-
tmp_2 = tmp_3;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1469
|
-
case 2:
|
|
1470
|
-
throw this.exception_1;
|
|
1471
|
-
}
|
|
1472
|
-
} catch ($p_0) {
|
|
1473
|
-
var e = $p_0;
|
|
1474
|
-
if (this.exceptionState_1 === 2) {
|
|
1475
|
-
throw e;
|
|
1476
|
-
} else {
|
|
1477
|
-
this.state_1 = this.exceptionState_1;
|
|
1478
|
-
this.exception_1 = e;
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
while (true);
|
|
1482
|
-
};
|
|
1483
|
-
function $showPersonByEmail$suspendBridgeCOROUTINE$(_this__u8e3s4, email, fields, resultContinuation) {
|
|
1484
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1485
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1486
|
-
this.email_1 = email;
|
|
1487
|
-
this.fields_1 = fields;
|
|
1488
|
-
}
|
|
1489
|
-
protoOf($showPersonByEmail$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
759
|
+
protoOf($showPersonByMobil$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1490
760
|
var suspendResult = this.result_1;
|
|
1491
761
|
$sm: do
|
|
1492
762
|
try {
|
|
@@ -1494,16 +764,16 @@ protoOf($showPersonByEmail$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1494
764
|
switch (tmp) {
|
|
1495
765
|
case 0:
|
|
1496
766
|
this.exceptionState_1 = 4;
|
|
1497
|
-
if (this._this__u8e3s4__1.
|
|
767
|
+
if (this._this__u8e3s4__1.showPersonByMobil === protoOf(PersonApi).showPersonByMobil) {
|
|
1498
768
|
this.state_1 = 2;
|
|
1499
|
-
suspendResult = this._this__u8e3s4__1.
|
|
769
|
+
suspendResult = this._this__u8e3s4__1.showPersonByMobil$default_uz2jsj_k$(this.mobile_1, this.fields_1, this);
|
|
1500
770
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1501
771
|
return suspendResult;
|
|
1502
772
|
}
|
|
1503
773
|
continue $sm;
|
|
1504
774
|
} else {
|
|
1505
775
|
this.state_1 = 1;
|
|
1506
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
776
|
+
suspendResult = await_0(this._this__u8e3s4__1.showPersonByMobil(this.mobile_1, this.fields_1), this);
|
|
1507
777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1508
778
|
return suspendResult;
|
|
1509
779
|
}
|
|
@@ -1534,66 +804,51 @@ protoOf($showPersonByEmail$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1534
804
|
}
|
|
1535
805
|
while (true);
|
|
1536
806
|
};
|
|
1537
|
-
function $
|
|
807
|
+
function $showPersonByPersonnummer$suspendBridgeCOROUTINE$(_this__u8e3s4, genghisPersonnummerSearchCommand, resultContinuation) {
|
|
1538
808
|
CoroutineImpl.call(this, resultContinuation);
|
|
1539
809
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1540
|
-
this.
|
|
1541
|
-
this.fields_1 = fields;
|
|
810
|
+
this.genghisPersonnummerSearchCommand_1 = genghisPersonnummerSearchCommand;
|
|
1542
811
|
}
|
|
1543
|
-
protoOf($
|
|
812
|
+
protoOf($showPersonByPersonnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1544
813
|
var suspendResult = this.result_1;
|
|
1545
814
|
$sm: do
|
|
1546
815
|
try {
|
|
1547
816
|
var tmp = this.state_1;
|
|
1548
817
|
switch (tmp) {
|
|
1549
818
|
case 0:
|
|
1550
|
-
this.exceptionState_1 =
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
else {
|
|
1557
|
-
var value = listOf_0(this.fields_1);
|
|
1558
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1562
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1563
|
-
var tmp2_path = replace('/persons/byMobile/{mobile}', '{mobile}', this.mobile_1);
|
|
1564
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1565
|
-
this.state_1 = 1;
|
|
1566
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1567
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
|
-
return suspendResult;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
continue $sm;
|
|
1572
|
-
case 1:
|
|
1573
|
-
var this_0 = suspendResult;
|
|
1574
|
-
var tmp_0 = getKClass(Person);
|
|
1575
|
-
var tmp_1 = null instanceof Person;
|
|
1576
|
-
var tmp_2;
|
|
1577
|
-
try {
|
|
1578
|
-
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
1579
|
-
} catch ($p) {
|
|
1580
|
-
var tmp_3;
|
|
1581
|
-
if ($p instanceof Error) {
|
|
1582
|
-
var _unused_var__etf5q3 = $p;
|
|
1583
|
-
tmp_3 = null;
|
|
1584
|
-
} else {
|
|
1585
|
-
throw $p;
|
|
819
|
+
this.exceptionState_1 = 4;
|
|
820
|
+
if (this._this__u8e3s4__1.showPersonByPersonnummer === protoOf(PersonApi).showPersonByPersonnummer) {
|
|
821
|
+
this.state_1 = 2;
|
|
822
|
+
suspendResult = this._this__u8e3s4__1.showPersonByPersonnummer_863dqd_k$(this.genghisPersonnummerSearchCommand_1, this);
|
|
823
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
|
+
return suspendResult;
|
|
1586
825
|
}
|
|
1587
|
-
|
|
826
|
+
continue $sm;
|
|
827
|
+
} else {
|
|
828
|
+
this.state_1 = 1;
|
|
829
|
+
suspendResult = await_0(this._this__u8e3s4__1.showPersonByPersonnummer(this.genghisPersonnummerSearchCommand_1), this);
|
|
830
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
831
|
+
return suspendResult;
|
|
832
|
+
}
|
|
833
|
+
continue $sm;
|
|
1588
834
|
}
|
|
1589
835
|
|
|
1590
|
-
|
|
836
|
+
case 1:
|
|
837
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
838
|
+
this.state_1 = 3;
|
|
839
|
+
continue $sm;
|
|
1591
840
|
case 2:
|
|
841
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
842
|
+
this.state_1 = 3;
|
|
843
|
+
continue $sm;
|
|
844
|
+
case 3:
|
|
845
|
+
return this.WHEN_RESULT0__1;
|
|
846
|
+
case 4:
|
|
1592
847
|
throw this.exception_1;
|
|
1593
848
|
}
|
|
1594
|
-
} catch ($
|
|
1595
|
-
var e = $
|
|
1596
|
-
if (this.exceptionState_1 ===
|
|
849
|
+
} catch ($p) {
|
|
850
|
+
var e = $p;
|
|
851
|
+
if (this.exceptionState_1 === 4) {
|
|
1597
852
|
throw e;
|
|
1598
853
|
} else {
|
|
1599
854
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1602,13 +857,13 @@ protoOf($showPersonByMobilCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1602
857
|
}
|
|
1603
858
|
while (true);
|
|
1604
859
|
};
|
|
1605
|
-
function $
|
|
860
|
+
function $updatePerson$suspendBridgeCOROUTINE$(_this__u8e3s4, personId, updatePersonCommand, resultContinuation) {
|
|
1606
861
|
CoroutineImpl.call(this, resultContinuation);
|
|
1607
862
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
863
|
+
this.personId_1 = personId;
|
|
864
|
+
this.updatePersonCommand_1 = updatePersonCommand;
|
|
1610
865
|
}
|
|
1611
|
-
protoOf($
|
|
866
|
+
protoOf($updatePerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1612
867
|
var suspendResult = this.result_1;
|
|
1613
868
|
$sm: do
|
|
1614
869
|
try {
|
|
@@ -1616,16 +871,16 @@ protoOf($showPersonByMobil$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1616
871
|
switch (tmp) {
|
|
1617
872
|
case 0:
|
|
1618
873
|
this.exceptionState_1 = 4;
|
|
1619
|
-
if (this._this__u8e3s4__1.
|
|
874
|
+
if (this._this__u8e3s4__1.updatePerson === protoOf(PersonApi).updatePerson) {
|
|
1620
875
|
this.state_1 = 2;
|
|
1621
|
-
suspendResult = this._this__u8e3s4__1.
|
|
876
|
+
suspendResult = this._this__u8e3s4__1.updatePerson_2wky1i_k$(this.personId_1, this.updatePersonCommand_1, this);
|
|
1622
877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1623
878
|
return suspendResult;
|
|
1624
879
|
}
|
|
1625
880
|
continue $sm;
|
|
1626
881
|
} else {
|
|
1627
882
|
this.state_1 = 1;
|
|
1628
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
883
|
+
suspendResult = await_0(this._this__u8e3s4__1.updatePerson(this.personId_1, this.updatePersonCommand_1), this);
|
|
1629
884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1630
885
|
return suspendResult;
|
|
1631
886
|
}
|
|
@@ -1656,58 +911,52 @@ protoOf($showPersonByMobil$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1656
911
|
}
|
|
1657
912
|
while (true);
|
|
1658
913
|
};
|
|
1659
|
-
function $
|
|
914
|
+
function $updatePersonReservations$suspendBridgeCOROUTINE$(_this__u8e3s4, personId, updatePersonReservationsCommand, resultContinuation) {
|
|
1660
915
|
CoroutineImpl.call(this, resultContinuation);
|
|
1661
916
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1662
|
-
this.
|
|
917
|
+
this.personId_1 = personId;
|
|
918
|
+
this.updatePersonReservationsCommand_1 = updatePersonReservationsCommand;
|
|
1663
919
|
}
|
|
1664
|
-
protoOf($
|
|
920
|
+
protoOf($updatePersonReservations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1665
921
|
var suspendResult = this.result_1;
|
|
1666
922
|
$sm: do
|
|
1667
923
|
try {
|
|
1668
924
|
var tmp = this.state_1;
|
|
1669
925
|
switch (tmp) {
|
|
1670
926
|
case 0:
|
|
1671
|
-
this.exceptionState_1 =
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/personalIdentityNumber', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1678
|
-
this.state_1 = 1;
|
|
1679
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1680
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1681
|
-
return suspendResult;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
continue $sm;
|
|
1685
|
-
case 1:
|
|
1686
|
-
var this_0 = suspendResult;
|
|
1687
|
-
var tmp_0 = getKClass(ShowPersonByPersonnummerResponse);
|
|
1688
|
-
var tmp_1 = null instanceof ShowPersonByPersonnummerResponse;
|
|
1689
|
-
var tmp_2;
|
|
1690
|
-
try {
|
|
1691
|
-
tmp_2 = createKType(getKClass(ShowPersonByPersonnummerResponse), arrayOf([]), false);
|
|
1692
|
-
} catch ($p) {
|
|
1693
|
-
var tmp_3;
|
|
1694
|
-
if ($p instanceof Error) {
|
|
1695
|
-
var _unused_var__etf5q3 = $p;
|
|
1696
|
-
tmp_3 = null;
|
|
1697
|
-
} else {
|
|
1698
|
-
throw $p;
|
|
927
|
+
this.exceptionState_1 = 4;
|
|
928
|
+
if (this._this__u8e3s4__1.updatePersonReservations === protoOf(PersonApi).updatePersonReservations) {
|
|
929
|
+
this.state_1 = 2;
|
|
930
|
+
suspendResult = this._this__u8e3s4__1.updatePersonReservations_uameve_k$(this.personId_1, this.updatePersonReservationsCommand_1, this);
|
|
931
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
932
|
+
return suspendResult;
|
|
1699
933
|
}
|
|
1700
|
-
|
|
934
|
+
continue $sm;
|
|
935
|
+
} else {
|
|
936
|
+
this.state_1 = 1;
|
|
937
|
+
suspendResult = await_0(this._this__u8e3s4__1.updatePersonReservations(this.personId_1, this.updatePersonReservationsCommand_1), this);
|
|
938
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
939
|
+
return suspendResult;
|
|
940
|
+
}
|
|
941
|
+
continue $sm;
|
|
1701
942
|
}
|
|
1702
943
|
|
|
1703
|
-
|
|
1704
|
-
|
|
944
|
+
case 1:
|
|
945
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
946
|
+
this.state_1 = 3;
|
|
947
|
+
continue $sm;
|
|
1705
948
|
case 2:
|
|
949
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
950
|
+
this.state_1 = 3;
|
|
951
|
+
continue $sm;
|
|
952
|
+
case 3:
|
|
953
|
+
return this.WHEN_RESULT0__1;
|
|
954
|
+
case 4:
|
|
1706
955
|
throw this.exception_1;
|
|
1707
956
|
}
|
|
1708
|
-
} catch ($
|
|
1709
|
-
var e = $
|
|
1710
|
-
if (this.exceptionState_1 ===
|
|
957
|
+
} catch ($p) {
|
|
958
|
+
var e = $p;
|
|
959
|
+
if (this.exceptionState_1 === 4) {
|
|
1711
960
|
throw e;
|
|
1712
961
|
} else {
|
|
1713
962
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1716,12 +965,15 @@ protoOf($showPersonByPersonnummerCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1716
965
|
}
|
|
1717
966
|
while (true);
|
|
1718
967
|
};
|
|
1719
|
-
function $
|
|
968
|
+
function $updatePersonResidency$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, residentType, residentId, editResidencyCommand, resultContinuation) {
|
|
1720
969
|
CoroutineImpl.call(this, resultContinuation);
|
|
1721
970
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1722
|
-
this.
|
|
971
|
+
this.companyId_1 = companyId;
|
|
972
|
+
this.residentType_1 = residentType;
|
|
973
|
+
this.residentId_1 = residentId;
|
|
974
|
+
this.editResidencyCommand_1 = editResidencyCommand;
|
|
1723
975
|
}
|
|
1724
|
-
protoOf($
|
|
976
|
+
protoOf($updatePersonResidency$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1725
977
|
var suspendResult = this.result_1;
|
|
1726
978
|
$sm: do
|
|
1727
979
|
try {
|
|
@@ -1729,16 +981,16 @@ protoOf($showPersonByPersonnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1729
981
|
switch (tmp) {
|
|
1730
982
|
case 0:
|
|
1731
983
|
this.exceptionState_1 = 4;
|
|
1732
|
-
if (this._this__u8e3s4__1.
|
|
984
|
+
if (this._this__u8e3s4__1.updatePersonResidency === protoOf(PersonApi).updatePersonResidency) {
|
|
1733
985
|
this.state_1 = 2;
|
|
1734
|
-
suspendResult = this._this__u8e3s4__1.
|
|
986
|
+
suspendResult = this._this__u8e3s4__1.updatePersonResidency_vpa5m8_k$(this.companyId_1, this.residentType_1, this.residentId_1, this.editResidencyCommand_1, this);
|
|
1735
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1736
988
|
return suspendResult;
|
|
1737
989
|
}
|
|
1738
990
|
continue $sm;
|
|
1739
991
|
} else {
|
|
1740
992
|
this.state_1 = 1;
|
|
1741
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
993
|
+
suspendResult = await_0(this._this__u8e3s4__1.updatePersonResidency(this.companyId_1, this.residentType_1, this.residentId_1, this.editResidencyCommand_1), this);
|
|
1742
994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1743
995
|
return suspendResult;
|
|
1744
996
|
}
|
|
@@ -1769,41 +1021,629 @@ protoOf($showPersonByPersonnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1769
1021
|
}
|
|
1770
1022
|
while (true);
|
|
1771
1023
|
};
|
|
1772
|
-
function
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1024
|
+
protoOf(PersonApi).deletePersonFromCompany_6t2xg7_k$ = function (companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion) {
|
|
1025
|
+
return deletePersonFromCompanyOperation_0(this, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1026
|
+
};
|
|
1027
|
+
protoOf(PersonApi).deletePersonFromCompany$default_w5hhh0_k$ = function (companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion, $super) {
|
|
1028
|
+
removeBods = removeBods === VOID ? null : removeBods;
|
|
1029
|
+
removeParkeringsplass = removeParkeringsplass === VOID ? null : removeParkeringsplass;
|
|
1030
|
+
return $super === VOID ? this.deletePersonFromCompany_6t2xg7_k$(companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion) : $super.deletePersonFromCompany_6t2xg7_k$.call(this, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1031
|
+
};
|
|
1032
|
+
protoOf(PersonApi).deletePersonFromCompany = function (companyId, residentType, residentId, removeBods, removeParkeringsplass) {
|
|
1033
|
+
var tmp = this;
|
|
1034
|
+
return promisify(function ($completion) {
|
|
1035
|
+
return tmp.deletePersonFromCompany$default_w5hhh0_k$(companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1036
|
+
});
|
|
1037
|
+
};
|
|
1038
|
+
protoOf(PersonApi).deletePersonFromCompany$suspendBridge_3ozh2u_k$ = function (companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion) {
|
|
1039
|
+
var tmp = new $deletePersonFromCompany$suspendBridgeCOROUTINE$(this, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1040
|
+
tmp.result_1 = Unit_instance;
|
|
1041
|
+
tmp.exception_1 = null;
|
|
1042
|
+
return tmp.doResume_5yljmg_k$();
|
|
1043
|
+
};
|
|
1044
|
+
protoOf(PersonApi).deletePersonRole_ltu9de_k$ = function (personId, roleId, $completion) {
|
|
1045
|
+
return deletePersonRoleOperation_0(this, personId, roleId, $completion);
|
|
1046
|
+
};
|
|
1047
|
+
protoOf(PersonApi).deletePersonRole = function (personId, roleId) {
|
|
1048
|
+
var tmp = this;
|
|
1049
|
+
return promisify(function ($completion) {
|
|
1050
|
+
return tmp.deletePersonRole_ltu9de_k$(personId, roleId, $completion);
|
|
1051
|
+
});
|
|
1052
|
+
};
|
|
1053
|
+
protoOf(PersonApi).deletePersonRole$suspendBridge_5558t_k$ = function (personId, roleId, $completion) {
|
|
1054
|
+
var tmp = new $deletePersonRole$suspendBridgeCOROUTINE$(this, personId, roleId, $completion);
|
|
1055
|
+
tmp.result_1 = Unit_instance;
|
|
1056
|
+
tmp.exception_1 = null;
|
|
1057
|
+
return tmp.doResume_5yljmg_k$();
|
|
1058
|
+
};
|
|
1059
|
+
protoOf(PersonApi).indexPersons_p5ulaj_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
1060
|
+
return indexPersonsOperation_0(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1061
|
+
};
|
|
1062
|
+
protoOf(PersonApi).indexPersons$default_ufiec5_k$ = function (query, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1063
|
+
query = query === VOID ? null : query;
|
|
1064
|
+
fields = fields === VOID ? null : fields;
|
|
1065
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1066
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1067
|
+
count = count === VOID ? null : count;
|
|
1068
|
+
return $super === VOID ? this.indexPersons_p5ulaj_k$(query, fields, pageToken, autoPaginate, count, $completion) : $super.indexPersons_p5ulaj_k$.call(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1069
|
+
};
|
|
1070
|
+
protoOf(PersonApi).indexPersons = function (query, fields, pageToken, autoPaginate, count) {
|
|
1071
|
+
var tmp = this;
|
|
1072
|
+
return promisify(function ($completion) {
|
|
1073
|
+
return tmp.indexPersons$default_ufiec5_k$(query, fields, pageToken, autoPaginate, count, $completion);
|
|
1074
|
+
});
|
|
1075
|
+
};
|
|
1076
|
+
protoOf(PersonApi).indexPersons$suspendBridge_vawrdg_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
1077
|
+
var tmp = new $indexPersons$suspendBridgeCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1078
|
+
tmp.result_1 = Unit_instance;
|
|
1079
|
+
tmp.exception_1 = null;
|
|
1080
|
+
return tmp.doResume_5yljmg_k$();
|
|
1081
|
+
};
|
|
1082
|
+
protoOf(PersonApi).indexPersonsForEdit_ijm8v7_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
1083
|
+
return indexPersonsForEditOperation_0(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1084
|
+
};
|
|
1085
|
+
protoOf(PersonApi).indexPersonsForEdit$default_etocw8_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1086
|
+
fields = fields === VOID ? null : fields;
|
|
1087
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1088
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1089
|
+
count = count === VOID ? null : count;
|
|
1090
|
+
return $super === VOID ? this.indexPersonsForEdit_ijm8v7_k$(companyId, fields, pageToken, autoPaginate, count, $completion) : $super.indexPersonsForEdit_ijm8v7_k$.call(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1091
|
+
};
|
|
1092
|
+
protoOf(PersonApi).indexPersonsForEdit = function (companyId, fields, pageToken, autoPaginate, count) {
|
|
1093
|
+
var tmp = this;
|
|
1094
|
+
return promisify(function ($completion) {
|
|
1095
|
+
return tmp.indexPersonsForEdit$default_etocw8_k$(companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1096
|
+
});
|
|
1097
|
+
};
|
|
1098
|
+
protoOf(PersonApi).indexPersonsForEdit$suspendBridge_15jun6_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
1099
|
+
var tmp = new $indexPersonsForEdit$suspendBridgeCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1100
|
+
tmp.result_1 = Unit_instance;
|
|
1101
|
+
tmp.exception_1 = null;
|
|
1102
|
+
return tmp.doResume_5yljmg_k$();
|
|
1103
|
+
};
|
|
1104
|
+
protoOf(PersonApi).invitePersonToBoard_h9dyev_k$ = function (companyId, personId, $completion) {
|
|
1105
|
+
return invitePersonToBoardOperation_0(this, companyId, personId, $completion);
|
|
1106
|
+
};
|
|
1107
|
+
protoOf(PersonApi).invitePersonToBoard = function (companyId, personId) {
|
|
1108
|
+
var tmp = this;
|
|
1109
|
+
return promisify(function ($completion) {
|
|
1110
|
+
return tmp.invitePersonToBoard_h9dyev_k$(companyId, personId, $completion);
|
|
1111
|
+
});
|
|
1112
|
+
};
|
|
1113
|
+
protoOf(PersonApi).invitePersonToBoard$suspendBridge_z8ne5y_k$ = function (companyId, personId, $completion) {
|
|
1114
|
+
var tmp = new $invitePersonToBoard$suspendBridgeCOROUTINE$(this, companyId, personId, $completion);
|
|
1115
|
+
tmp.result_1 = Unit_instance;
|
|
1116
|
+
tmp.exception_1 = null;
|
|
1117
|
+
return tmp.doResume_5yljmg_k$();
|
|
1118
|
+
};
|
|
1119
|
+
protoOf(PersonApi).massUpdatePerson_fry8kl_k$ = function (massEditPersonCommand, $completion) {
|
|
1120
|
+
return massUpdatePersonOperation_0(this, massEditPersonCommand, $completion);
|
|
1121
|
+
};
|
|
1122
|
+
protoOf(PersonApi).massUpdatePerson = function (massEditPersonCommand) {
|
|
1123
|
+
var tmp = this;
|
|
1124
|
+
return promisify(function ($completion) {
|
|
1125
|
+
return tmp.massUpdatePerson_fry8kl_k$(massEditPersonCommand, $completion);
|
|
1126
|
+
});
|
|
1127
|
+
};
|
|
1128
|
+
protoOf(PersonApi).massUpdatePerson$suspendBridge_186n8k_k$ = function (massEditPersonCommand, $completion) {
|
|
1129
|
+
var tmp = new $massUpdatePerson$suspendBridgeCOROUTINE$(this, massEditPersonCommand, $completion);
|
|
1130
|
+
tmp.result_1 = Unit_instance;
|
|
1131
|
+
tmp.exception_1 = null;
|
|
1132
|
+
return tmp.doResume_5yljmg_k$();
|
|
1133
|
+
};
|
|
1134
|
+
protoOf(PersonApi).mergePersons_tiwq5e_k$ = function (mergePersonsCommand, $completion) {
|
|
1135
|
+
return mergePersonsOperation_0(this, mergePersonsCommand, $completion);
|
|
1136
|
+
};
|
|
1137
|
+
protoOf(PersonApi).mergePersons = function (mergePersonsCommand) {
|
|
1138
|
+
var tmp = this;
|
|
1139
|
+
return promisify(function ($completion) {
|
|
1140
|
+
return tmp.mergePersons_tiwq5e_k$(mergePersonsCommand, $completion);
|
|
1141
|
+
});
|
|
1142
|
+
};
|
|
1143
|
+
protoOf(PersonApi).mergePersons$suspendBridge_4paig1_k$ = function (mergePersonsCommand, $completion) {
|
|
1144
|
+
var tmp = new $mergePersons$suspendBridgeCOROUTINE$(this, mergePersonsCommand, $completion);
|
|
1145
|
+
tmp.result_1 = Unit_instance;
|
|
1146
|
+
tmp.exception_1 = null;
|
|
1147
|
+
return tmp.doResume_5yljmg_k$();
|
|
1148
|
+
};
|
|
1149
|
+
protoOf(PersonApi).searchPerson_gkezhy_k$ = function (searchPersonQueryCommand, $completion) {
|
|
1150
|
+
return searchPersonOperation_0(this, searchPersonQueryCommand, $completion);
|
|
1151
|
+
};
|
|
1152
|
+
protoOf(PersonApi).searchPerson = function (searchPersonQueryCommand) {
|
|
1153
|
+
var tmp = this;
|
|
1154
|
+
return promisify(function ($completion) {
|
|
1155
|
+
return tmp.searchPerson_gkezhy_k$(searchPersonQueryCommand, $completion);
|
|
1156
|
+
});
|
|
1157
|
+
};
|
|
1158
|
+
protoOf(PersonApi).searchPerson$suspendBridge_f4ymyf_k$ = function (searchPersonQueryCommand, $completion) {
|
|
1159
|
+
var tmp = new $searchPerson$suspendBridgeCOROUTINE$(this, searchPersonQueryCommand, $completion);
|
|
1160
|
+
tmp.result_1 = Unit_instance;
|
|
1161
|
+
tmp.exception_1 = null;
|
|
1162
|
+
return tmp.doResume_5yljmg_k$();
|
|
1163
|
+
};
|
|
1164
|
+
protoOf(PersonApi).showPerson_2y5r37_k$ = function (personId, fields, $completion) {
|
|
1165
|
+
return showPersonOperation_0(this, personId, fields, $completion);
|
|
1166
|
+
};
|
|
1167
|
+
protoOf(PersonApi).showPerson$default_724tbv_k$ = function (personId, fields, $completion, $super) {
|
|
1168
|
+
fields = fields === VOID ? null : fields;
|
|
1169
|
+
return $super === VOID ? this.showPerson_2y5r37_k$(personId, fields, $completion) : $super.showPerson_2y5r37_k$.call(this, personId, fields, $completion);
|
|
1170
|
+
};
|
|
1171
|
+
protoOf(PersonApi).showPerson = function (personId, fields) {
|
|
1172
|
+
var tmp = this;
|
|
1173
|
+
return promisify(function ($completion) {
|
|
1174
|
+
return tmp.showPerson$default_724tbv_k$(personId, fields, $completion);
|
|
1175
|
+
});
|
|
1176
|
+
};
|
|
1177
|
+
protoOf(PersonApi).showPerson$suspendBridge_n9y3lq_k$ = function (personId, fields, $completion) {
|
|
1178
|
+
var tmp = new $showPerson$suspendBridgeCOROUTINE$(this, personId, fields, $completion);
|
|
1179
|
+
tmp.result_1 = Unit_instance;
|
|
1180
|
+
tmp.exception_1 = null;
|
|
1181
|
+
return tmp.doResume_5yljmg_k$();
|
|
1182
|
+
};
|
|
1183
|
+
protoOf(PersonApi).showPersonByEmail_8rafeg_k$ = function (email, fields, $completion) {
|
|
1184
|
+
return showPersonByEmailOperation_0(this, email, fields, $completion);
|
|
1185
|
+
};
|
|
1186
|
+
protoOf(PersonApi).showPersonByEmail$default_ypueiu_k$ = function (email, fields, $completion, $super) {
|
|
1187
|
+
fields = fields === VOID ? null : fields;
|
|
1188
|
+
return $super === VOID ? this.showPersonByEmail_8rafeg_k$(email, fields, $completion) : $super.showPersonByEmail_8rafeg_k$.call(this, email, fields, $completion);
|
|
1189
|
+
};
|
|
1190
|
+
protoOf(PersonApi).showPersonByEmail = function (email, fields) {
|
|
1191
|
+
var tmp = this;
|
|
1192
|
+
return promisify(function ($completion) {
|
|
1193
|
+
return tmp.showPersonByEmail$default_ypueiu_k$(email, fields, $completion);
|
|
1194
|
+
});
|
|
1195
|
+
};
|
|
1196
|
+
protoOf(PersonApi).showPersonByEmail$suspendBridge_wwxdav_k$ = function (email, fields, $completion) {
|
|
1197
|
+
var tmp = new $showPersonByEmail$suspendBridgeCOROUTINE$(this, email, fields, $completion);
|
|
1198
|
+
tmp.result_1 = Unit_instance;
|
|
1199
|
+
tmp.exception_1 = null;
|
|
1200
|
+
return tmp.doResume_5yljmg_k$();
|
|
1201
|
+
};
|
|
1202
|
+
protoOf(PersonApi).showPersonByMobil_f3kdv3_k$ = function (mobile, fields, $completion) {
|
|
1203
|
+
return showPersonByMobilOperation_0(this, mobile, fields, $completion);
|
|
1204
|
+
};
|
|
1205
|
+
protoOf(PersonApi).showPersonByMobil$default_uz2jsj_k$ = function (mobile, fields, $completion, $super) {
|
|
1206
|
+
fields = fields === VOID ? null : fields;
|
|
1207
|
+
return $super === VOID ? this.showPersonByMobil_f3kdv3_k$(mobile, fields, $completion) : $super.showPersonByMobil_f3kdv3_k$.call(this, mobile, fields, $completion);
|
|
1208
|
+
};
|
|
1209
|
+
protoOf(PersonApi).showPersonByMobil = function (mobile, fields) {
|
|
1210
|
+
var tmp = this;
|
|
1211
|
+
return promisify(function ($completion) {
|
|
1212
|
+
return tmp.showPersonByMobil$default_uz2jsj_k$(mobile, fields, $completion);
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1215
|
+
protoOf(PersonApi).showPersonByMobil$suspendBridge_nw17f4_k$ = function (mobile, fields, $completion) {
|
|
1216
|
+
var tmp = new $showPersonByMobil$suspendBridgeCOROUTINE$(this, mobile, fields, $completion);
|
|
1217
|
+
tmp.result_1 = Unit_instance;
|
|
1218
|
+
tmp.exception_1 = null;
|
|
1219
|
+
return tmp.doResume_5yljmg_k$();
|
|
1220
|
+
};
|
|
1221
|
+
protoOf(PersonApi).showPersonByPersonnummer_863dqd_k$ = function (genghisPersonnummerSearchCommand, $completion) {
|
|
1222
|
+
return showPersonByPersonnummerOperation_0(this, genghisPersonnummerSearchCommand, $completion);
|
|
1223
|
+
};
|
|
1224
|
+
protoOf(PersonApi).showPersonByPersonnummer = function (genghisPersonnummerSearchCommand) {
|
|
1225
|
+
var tmp = this;
|
|
1226
|
+
return promisify(function ($completion) {
|
|
1227
|
+
return tmp.showPersonByPersonnummer_863dqd_k$(genghisPersonnummerSearchCommand, $completion);
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
protoOf(PersonApi).showPersonByPersonnummer$suspendBridge_xi6i9o_k$ = function (genghisPersonnummerSearchCommand, $completion) {
|
|
1231
|
+
var tmp = new $showPersonByPersonnummer$suspendBridgeCOROUTINE$(this, genghisPersonnummerSearchCommand, $completion);
|
|
1232
|
+
tmp.result_1 = Unit_instance;
|
|
1233
|
+
tmp.exception_1 = null;
|
|
1234
|
+
return tmp.doResume_5yljmg_k$();
|
|
1235
|
+
};
|
|
1236
|
+
protoOf(PersonApi).updatePerson_2wky1i_k$ = function (personId, updatePersonCommand, $completion) {
|
|
1237
|
+
return updatePersonOperation_0(this, personId, updatePersonCommand, $completion);
|
|
1238
|
+
};
|
|
1239
|
+
protoOf(PersonApi).updatePerson = function (personId, updatePersonCommand) {
|
|
1240
|
+
var tmp = this;
|
|
1241
|
+
return promisify(function ($completion) {
|
|
1242
|
+
return tmp.updatePerson_2wky1i_k$(personId, updatePersonCommand, $completion);
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
protoOf(PersonApi).updatePerson$suspendBridge_8ux74b_k$ = function (personId, updatePersonCommand, $completion) {
|
|
1246
|
+
var tmp = new $updatePerson$suspendBridgeCOROUTINE$(this, personId, updatePersonCommand, $completion);
|
|
1247
|
+
tmp.result_1 = Unit_instance;
|
|
1248
|
+
tmp.exception_1 = null;
|
|
1249
|
+
return tmp.doResume_5yljmg_k$();
|
|
1250
|
+
};
|
|
1251
|
+
protoOf(PersonApi).updatePersonReservations_uameve_k$ = function (personId, updatePersonReservationsCommand, $completion) {
|
|
1252
|
+
return updatePersonReservationsOperation_0(this, personId, updatePersonReservationsCommand, $completion);
|
|
1253
|
+
};
|
|
1254
|
+
protoOf(PersonApi).updatePersonReservations = function (personId, updatePersonReservationsCommand) {
|
|
1255
|
+
var tmp = this;
|
|
1256
|
+
return promisify(function ($completion) {
|
|
1257
|
+
return tmp.updatePersonReservations_uameve_k$(personId, updatePersonReservationsCommand, $completion);
|
|
1258
|
+
});
|
|
1259
|
+
};
|
|
1260
|
+
protoOf(PersonApi).updatePersonReservations$suspendBridge_b43lud_k$ = function (personId, updatePersonReservationsCommand, $completion) {
|
|
1261
|
+
var tmp = new $updatePersonReservations$suspendBridgeCOROUTINE$(this, personId, updatePersonReservationsCommand, $completion);
|
|
1262
|
+
tmp.result_1 = Unit_instance;
|
|
1263
|
+
tmp.exception_1 = null;
|
|
1264
|
+
return tmp.doResume_5yljmg_k$();
|
|
1265
|
+
};
|
|
1266
|
+
protoOf(PersonApi).updatePersonResidency_vpa5m8_k$ = function (companyId, residentType, residentId, editResidencyCommand, $completion) {
|
|
1267
|
+
return updatePersonResidencyOperation_0(this, companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
1268
|
+
};
|
|
1269
|
+
protoOf(PersonApi).updatePersonResidency = function (companyId, residentType, residentId, editResidencyCommand) {
|
|
1270
|
+
var tmp = this;
|
|
1271
|
+
return promisify(function ($completion) {
|
|
1272
|
+
return tmp.updatePersonResidency_vpa5m8_k$(companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
protoOf(PersonApi).updatePersonResidency$suspendBridge_ti773j_k$ = function (companyId, residentType, residentId, editResidencyCommand, $completion) {
|
|
1276
|
+
var tmp = new $updatePersonResidency$suspendBridgeCOROUTINE$(this, companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
1277
|
+
tmp.result_1 = Unit_instance;
|
|
1278
|
+
tmp.exception_1 = null;
|
|
1279
|
+
return tmp.doResume_5yljmg_k$();
|
|
1280
|
+
};
|
|
1281
|
+
function PersonApi() {
|
|
1282
|
+
}
|
|
1283
|
+
function deletePersonFromCompanyOperation(client, companyId, residentType, residentId, removeBods, removeParkeringsplass) {
|
|
1284
|
+
return promisify(function ($completion) {
|
|
1285
|
+
return deletePersonFromCompanyOperation_0(client, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
function deletePersonFromCompanyOperation_0(client, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion) {
|
|
1289
|
+
removeBods = removeBods === VOID ? null : removeBods;
|
|
1290
|
+
removeParkeringsplass = removeParkeringsplass === VOID ? null : removeParkeringsplass;
|
|
1291
|
+
var tmp = new $deletePersonFromCompanyOperationCOROUTINE$(client, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
1292
|
+
tmp.result_1 = Unit_instance;
|
|
1293
|
+
tmp.exception_1 = null;
|
|
1294
|
+
return tmp.doResume_5yljmg_k$();
|
|
1295
|
+
}
|
|
1296
|
+
function $deletePersonFromCompanyOperationCOROUTINE$(client, companyId, residentType, residentId, removeBods, removeParkeringsplass, resultContinuation) {
|
|
1297
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1298
|
+
this.client_1 = client;
|
|
1299
|
+
this.companyId_1 = companyId;
|
|
1300
|
+
this.residentType_1 = residentType;
|
|
1301
|
+
this.residentId_1 = residentId;
|
|
1302
|
+
this.removeBods_1 = removeBods;
|
|
1303
|
+
this.removeParkeringsplass_1 = removeParkeringsplass;
|
|
1304
|
+
}
|
|
1305
|
+
protoOf($deletePersonFromCompanyOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1306
|
+
var suspendResult = this.result_1;
|
|
1307
|
+
$sm: do
|
|
1308
|
+
try {
|
|
1309
|
+
var tmp = this.state_1;
|
|
1310
|
+
switch (tmp) {
|
|
1311
|
+
case 0:
|
|
1312
|
+
this.exceptionState_1 = 2;
|
|
1313
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1314
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1315
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1316
|
+
if (this.removeBods_1 == null)
|
|
1317
|
+
null;
|
|
1318
|
+
else {
|
|
1319
|
+
var tmp2 = 'removeBods';
|
|
1320
|
+
var value = listOf_0('' + this.removeBods_1);
|
|
1321
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
if (this.removeParkeringsplass_1 == null)
|
|
1325
|
+
null;
|
|
1326
|
+
else {
|
|
1327
|
+
var tmp2_0 = 'removeParkeringsplass';
|
|
1328
|
+
var value_0 = listOf_0('' + this.removeParkeringsplass_1);
|
|
1329
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_0);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1333
|
+
var tmp2_method = RequestMethod_DELETE_getInstance();
|
|
1334
|
+
var tmp3_path = replace(replace(replace('/companies/{companyId}/residents/{residentType}/{residentId}', '{companyId}', this.companyId_1.toString()), '{residentType}', this.residentType_1), '{residentId}', this.residentId_1.toString());
|
|
1335
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1336
|
+
this.state_1 = 1;
|
|
1337
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1338
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1339
|
+
return suspendResult;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
continue $sm;
|
|
1343
|
+
case 1:
|
|
1344
|
+
var this_0 = suspendResult;
|
|
1345
|
+
var tmp_0 = getKClass(Unit);
|
|
1346
|
+
var tmp_1 = null instanceof Unit;
|
|
1347
|
+
var tmp_2;
|
|
1348
|
+
try {
|
|
1349
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1350
|
+
} catch ($p) {
|
|
1351
|
+
var tmp_3;
|
|
1352
|
+
if ($p instanceof Error) {
|
|
1353
|
+
var _unused_var__etf5q3 = $p;
|
|
1354
|
+
tmp_3 = null;
|
|
1355
|
+
} else {
|
|
1356
|
+
throw $p;
|
|
1357
|
+
}
|
|
1358
|
+
tmp_2 = tmp_3;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1362
|
+
case 2:
|
|
1363
|
+
throw this.exception_1;
|
|
1364
|
+
}
|
|
1365
|
+
} catch ($p_0) {
|
|
1366
|
+
var e = $p_0;
|
|
1367
|
+
if (this.exceptionState_1 === 2) {
|
|
1368
|
+
throw e;
|
|
1369
|
+
} else {
|
|
1370
|
+
this.state_1 = this.exceptionState_1;
|
|
1371
|
+
this.exception_1 = e;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
while (true);
|
|
1375
|
+
};
|
|
1376
|
+
function deletePersonRoleOperation(client, personId, roleId) {
|
|
1377
|
+
return promisify(function ($completion) {
|
|
1378
|
+
return deletePersonRoleOperation_0(client, personId, roleId, $completion);
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
function deletePersonRoleOperation_0(client, personId, roleId, $completion) {
|
|
1382
|
+
var tmp = new $deletePersonRoleOperationCOROUTINE$(client, personId, roleId, $completion);
|
|
1383
|
+
tmp.result_1 = Unit_instance;
|
|
1384
|
+
tmp.exception_1 = null;
|
|
1385
|
+
return tmp.doResume_5yljmg_k$();
|
|
1386
|
+
}
|
|
1387
|
+
function $deletePersonRoleOperationCOROUTINE$(client, personId, roleId, resultContinuation) {
|
|
1388
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1389
|
+
this.client_1 = client;
|
|
1390
|
+
this.personId_1 = personId;
|
|
1391
|
+
this.roleId_1 = roleId;
|
|
1392
|
+
}
|
|
1393
|
+
protoOf($deletePersonRoleOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1394
|
+
var suspendResult = this.result_1;
|
|
1395
|
+
$sm: do
|
|
1396
|
+
try {
|
|
1397
|
+
var tmp = this.state_1;
|
|
1398
|
+
switch (tmp) {
|
|
1399
|
+
case 0:
|
|
1400
|
+
this.exceptionState_1 = 2;
|
|
1401
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1402
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1403
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1404
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1405
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1406
|
+
var tmp1_path = replace(replace('/persons/{personId}/roles/{roleId}', '{personId}', this.personId_1.toString()), '{roleId}', this.roleId_1.toString());
|
|
1407
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1408
|
+
this.state_1 = 1;
|
|
1409
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1410
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1411
|
+
return suspendResult;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
continue $sm;
|
|
1415
|
+
case 1:
|
|
1416
|
+
var this_0 = suspendResult;
|
|
1417
|
+
var tmp_0 = getKClass(Unit);
|
|
1418
|
+
var tmp_1 = null instanceof Unit;
|
|
1419
|
+
var tmp_2;
|
|
1420
|
+
try {
|
|
1421
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1422
|
+
} catch ($p) {
|
|
1423
|
+
var tmp_3;
|
|
1424
|
+
if ($p instanceof Error) {
|
|
1425
|
+
var _unused_var__etf5q3 = $p;
|
|
1426
|
+
tmp_3 = null;
|
|
1427
|
+
} else {
|
|
1428
|
+
throw $p;
|
|
1429
|
+
}
|
|
1430
|
+
tmp_2 = tmp_3;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1434
|
+
case 2:
|
|
1435
|
+
throw this.exception_1;
|
|
1436
|
+
}
|
|
1437
|
+
} catch ($p_0) {
|
|
1438
|
+
var e = $p_0;
|
|
1439
|
+
if (this.exceptionState_1 === 2) {
|
|
1440
|
+
throw e;
|
|
1441
|
+
} else {
|
|
1442
|
+
this.state_1 = this.exceptionState_1;
|
|
1443
|
+
this.exception_1 = e;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
while (true);
|
|
1447
|
+
};
|
|
1448
|
+
function indexPersonsForEditOperation(client, companyId, fields, pageToken, autoPaginate, count) {
|
|
1449
|
+
return promisify(function ($completion) {
|
|
1450
|
+
return indexPersonsForEditOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
function indexPersonsForEditOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
1454
|
+
fields = fields === VOID ? null : fields;
|
|
1455
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1456
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1457
|
+
count = count === VOID ? null : count;
|
|
1458
|
+
var tmp = new $indexPersonsForEditOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1459
|
+
tmp.result_1 = Unit_instance;
|
|
1460
|
+
tmp.exception_1 = null;
|
|
1461
|
+
return tmp.doResume_5yljmg_k$();
|
|
1462
|
+
}
|
|
1463
|
+
function $indexPersonsForEditOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1464
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1465
|
+
this.client_1 = client;
|
|
1466
|
+
this.companyId_1 = companyId;
|
|
1467
|
+
this.fields_1 = fields;
|
|
1468
|
+
this.pageToken_1 = pageToken;
|
|
1469
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1470
|
+
this.count_1 = count;
|
|
1471
|
+
}
|
|
1472
|
+
protoOf($indexPersonsForEditOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1473
|
+
var suspendResult = this.result_1;
|
|
1474
|
+
$sm: do
|
|
1475
|
+
try {
|
|
1476
|
+
var tmp = this.state_1;
|
|
1477
|
+
switch (tmp) {
|
|
1478
|
+
case 0:
|
|
1479
|
+
this.exceptionState_1 = 2;
|
|
1480
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1481
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1482
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1483
|
+
if (this.fields_1 == null)
|
|
1484
|
+
null;
|
|
1485
|
+
else {
|
|
1486
|
+
var value = listOf_0(this.fields_1);
|
|
1487
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
if (this.pageToken_1 == null)
|
|
1491
|
+
null;
|
|
1492
|
+
else {
|
|
1493
|
+
var tmp2 = 'pageToken';
|
|
1494
|
+
var value_0 = listOf_0(this.pageToken_1);
|
|
1495
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
if (this.autoPaginate_1 == null)
|
|
1499
|
+
null;
|
|
1500
|
+
else {
|
|
1501
|
+
var tmp2_0 = 'autoPaginate';
|
|
1502
|
+
var value_1 = listOf_0('' + this.autoPaginate_1);
|
|
1503
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
if (this.count_1 == null)
|
|
1507
|
+
null;
|
|
1508
|
+
else {
|
|
1509
|
+
var value_2 = listOf_0('' + this.count_1);
|
|
1510
|
+
localVariableQuery.put_4fpzoq_k$('count', value_2);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1514
|
+
var tmp4_method = RequestMethod_GET_getInstance();
|
|
1515
|
+
var tmp5_path = replace('/companies/{companyId}/persons', '{companyId}', this.companyId_1.toString());
|
|
1516
|
+
var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1517
|
+
this.state_1 = 1;
|
|
1518
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1519
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1520
|
+
return suspendResult;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
continue $sm;
|
|
1524
|
+
case 1:
|
|
1525
|
+
var this_0 = suspendResult;
|
|
1526
|
+
var tmp_0 = getKClass(PagedListPerson);
|
|
1527
|
+
var tmp_1 = null instanceof PagedListPerson;
|
|
1528
|
+
var tmp_2;
|
|
1529
|
+
try {
|
|
1530
|
+
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
1531
|
+
} catch ($p) {
|
|
1532
|
+
var tmp_3;
|
|
1533
|
+
if ($p instanceof Error) {
|
|
1534
|
+
var _unused_var__etf5q3 = $p;
|
|
1535
|
+
tmp_3 = null;
|
|
1536
|
+
} else {
|
|
1537
|
+
throw $p;
|
|
1538
|
+
}
|
|
1539
|
+
tmp_2 = tmp_3;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1543
|
+
case 2:
|
|
1544
|
+
throw this.exception_1;
|
|
1545
|
+
}
|
|
1546
|
+
} catch ($p_0) {
|
|
1547
|
+
var e = $p_0;
|
|
1548
|
+
if (this.exceptionState_1 === 2) {
|
|
1549
|
+
throw e;
|
|
1550
|
+
} else {
|
|
1551
|
+
this.state_1 = this.exceptionState_1;
|
|
1552
|
+
this.exception_1 = e;
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
while (true);
|
|
1556
|
+
};
|
|
1557
|
+
function indexPersonsOperation(client, query, fields, pageToken, autoPaginate, count) {
|
|
1558
|
+
return promisify(function ($completion) {
|
|
1559
|
+
return indexPersonsOperation_0(client, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
function indexPersonsOperation_0(client, query, fields, pageToken, autoPaginate, count, $completion) {
|
|
1563
|
+
query = query === VOID ? null : query;
|
|
1564
|
+
fields = fields === VOID ? null : fields;
|
|
1565
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1566
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1567
|
+
count = count === VOID ? null : count;
|
|
1568
|
+
var tmp = new $indexPersonsOperationCOROUTINE$(client, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1569
|
+
tmp.result_1 = Unit_instance;
|
|
1570
|
+
tmp.exception_1 = null;
|
|
1571
|
+
return tmp.doResume_5yljmg_k$();
|
|
1572
|
+
}
|
|
1573
|
+
function $indexPersonsOperationCOROUTINE$(client, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1574
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1575
|
+
this.client_1 = client;
|
|
1576
|
+
this.query_1 = query;
|
|
1577
|
+
this.fields_1 = fields;
|
|
1578
|
+
this.pageToken_1 = pageToken;
|
|
1579
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1580
|
+
this.count_1 = count;
|
|
1581
|
+
}
|
|
1582
|
+
protoOf($indexPersonsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1583
|
+
var suspendResult = this.result_1;
|
|
1584
|
+
$sm: do
|
|
1585
|
+
try {
|
|
1586
|
+
var tmp = this.state_1;
|
|
1587
|
+
switch (tmp) {
|
|
1588
|
+
case 0:
|
|
1589
|
+
this.exceptionState_1 = 2;
|
|
1590
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1591
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1592
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1593
|
+
if (this.query_1 == null)
|
|
1594
|
+
null;
|
|
1595
|
+
else {
|
|
1596
|
+
var value = listOf_0(this.query_1);
|
|
1597
|
+
localVariableQuery.put_4fpzoq_k$('query', value);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
if (this.fields_1 == null)
|
|
1601
|
+
null;
|
|
1602
|
+
else {
|
|
1603
|
+
var value_0 = listOf_0(this.fields_1);
|
|
1604
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
if (this.pageToken_1 == null)
|
|
1608
|
+
null;
|
|
1609
|
+
else {
|
|
1610
|
+
var tmp2 = 'pageToken';
|
|
1611
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
1612
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
if (this.autoPaginate_1 == null)
|
|
1616
|
+
null;
|
|
1617
|
+
else {
|
|
1618
|
+
var tmp2_0 = 'autoPaginate';
|
|
1619
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1620
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
if (this.count_1 == null)
|
|
1624
|
+
null;
|
|
1625
|
+
else {
|
|
1626
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
1627
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1631
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1632
|
+
var localVariableConfig = new RequestConfig(tmp5_method, '/persons', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1633
|
+
this.state_1 = 1;
|
|
1634
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1635
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1636
|
+
return suspendResult;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
continue $sm;
|
|
1640
|
+
case 1:
|
|
1641
|
+
var this_0 = suspendResult;
|
|
1642
|
+
var tmp_0 = getKClass(PagedListPerson);
|
|
1643
|
+
var tmp_1 = null instanceof PagedListPerson;
|
|
1644
|
+
var tmp_2;
|
|
1645
|
+
try {
|
|
1646
|
+
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
1807
1647
|
} catch ($p) {
|
|
1808
1648
|
var tmp_3;
|
|
1809
1649
|
if ($p instanceof Error) {
|
|
@@ -1830,52 +1670,70 @@ protoOf($updatePersonCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1830
1670
|
}
|
|
1831
1671
|
while (true);
|
|
1832
1672
|
};
|
|
1833
|
-
function
|
|
1673
|
+
function invitePersonToBoardOperation(client, companyId, personId) {
|
|
1674
|
+
return promisify(function ($completion) {
|
|
1675
|
+
return invitePersonToBoardOperation_0(client, companyId, personId, $completion);
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
function invitePersonToBoardOperation_0(client, companyId, personId, $completion) {
|
|
1679
|
+
var tmp = new $invitePersonToBoardOperationCOROUTINE$(client, companyId, personId, $completion);
|
|
1680
|
+
tmp.result_1 = Unit_instance;
|
|
1681
|
+
tmp.exception_1 = null;
|
|
1682
|
+
return tmp.doResume_5yljmg_k$();
|
|
1683
|
+
}
|
|
1684
|
+
function $invitePersonToBoardOperationCOROUTINE$(client, companyId, personId, resultContinuation) {
|
|
1834
1685
|
CoroutineImpl.call(this, resultContinuation);
|
|
1835
|
-
this.
|
|
1686
|
+
this.client_1 = client;
|
|
1687
|
+
this.companyId_1 = companyId;
|
|
1836
1688
|
this.personId_1 = personId;
|
|
1837
|
-
this.updatePersonCommand_1 = updatePersonCommand;
|
|
1838
1689
|
}
|
|
1839
|
-
protoOf($
|
|
1690
|
+
protoOf($invitePersonToBoardOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1840
1691
|
var suspendResult = this.result_1;
|
|
1841
1692
|
$sm: do
|
|
1842
1693
|
try {
|
|
1843
1694
|
var tmp = this.state_1;
|
|
1844
1695
|
switch (tmp) {
|
|
1845
1696
|
case 0:
|
|
1846
|
-
this.exceptionState_1 =
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
return suspendResult;
|
|
1859
|
-
}
|
|
1860
|
-
continue $sm;
|
|
1697
|
+
this.exceptionState_1 = 2;
|
|
1698
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1699
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1700
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1701
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1702
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1703
|
+
var tmp1_path = replace(replace('/companies/{companyId}/persons/{personId}/inviteToBoard', '{companyId}', this.companyId_1.toString()), '{personId}', this.personId_1.toString());
|
|
1704
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1705
|
+
this.state_1 = 1;
|
|
1706
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1707
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1708
|
+
return suspendResult;
|
|
1861
1709
|
}
|
|
1862
1710
|
|
|
1863
|
-
case 1:
|
|
1864
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1865
|
-
this.state_1 = 3;
|
|
1866
1711
|
continue $sm;
|
|
1712
|
+
case 1:
|
|
1713
|
+
var this_0 = suspendResult;
|
|
1714
|
+
var tmp_0 = getKClass(Unit);
|
|
1715
|
+
var tmp_1 = null instanceof Unit;
|
|
1716
|
+
var tmp_2;
|
|
1717
|
+
try {
|
|
1718
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1719
|
+
} catch ($p) {
|
|
1720
|
+
var tmp_3;
|
|
1721
|
+
if ($p instanceof Error) {
|
|
1722
|
+
var _unused_var__etf5q3 = $p;
|
|
1723
|
+
tmp_3 = null;
|
|
1724
|
+
} else {
|
|
1725
|
+
throw $p;
|
|
1726
|
+
}
|
|
1727
|
+
tmp_2 = tmp_3;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1867
1731
|
case 2:
|
|
1868
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1869
|
-
this.state_1 = 3;
|
|
1870
|
-
continue $sm;
|
|
1871
|
-
case 3:
|
|
1872
|
-
return this.WHEN_RESULT0__1;
|
|
1873
|
-
case 4:
|
|
1874
1732
|
throw this.exception_1;
|
|
1875
1733
|
}
|
|
1876
|
-
} catch ($
|
|
1877
|
-
var e = $
|
|
1878
|
-
if (this.exceptionState_1 ===
|
|
1734
|
+
} catch ($p_0) {
|
|
1735
|
+
var e = $p_0;
|
|
1736
|
+
if (this.exceptionState_1 === 2) {
|
|
1879
1737
|
throw e;
|
|
1880
1738
|
} else {
|
|
1881
1739
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1884,13 +1742,23 @@ protoOf($updatePerson$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1884
1742
|
}
|
|
1885
1743
|
while (true);
|
|
1886
1744
|
};
|
|
1887
|
-
function
|
|
1745
|
+
function massUpdatePersonOperation(client, massEditPersonCommand) {
|
|
1746
|
+
return promisify(function ($completion) {
|
|
1747
|
+
return massUpdatePersonOperation_0(client, massEditPersonCommand, $completion);
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
function massUpdatePersonOperation_0(client, massEditPersonCommand, $completion) {
|
|
1751
|
+
var tmp = new $massUpdatePersonOperationCOROUTINE$(client, massEditPersonCommand, $completion);
|
|
1752
|
+
tmp.result_1 = Unit_instance;
|
|
1753
|
+
tmp.exception_1 = null;
|
|
1754
|
+
return tmp.doResume_5yljmg_k$();
|
|
1755
|
+
}
|
|
1756
|
+
function $massUpdatePersonOperationCOROUTINE$(client, massEditPersonCommand, resultContinuation) {
|
|
1888
1757
|
CoroutineImpl.call(this, resultContinuation);
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
this.updatePersonReservationsCommand_1 = updatePersonReservationsCommand;
|
|
1758
|
+
this.client_1 = client;
|
|
1759
|
+
this.massEditPersonCommand_1 = massEditPersonCommand;
|
|
1892
1760
|
}
|
|
1893
|
-
protoOf($
|
|
1761
|
+
protoOf($massUpdatePersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1894
1762
|
var suspendResult = this.result_1;
|
|
1895
1763
|
$sm: do
|
|
1896
1764
|
try {
|
|
@@ -1899,14 +1767,13 @@ protoOf($updatePersonReservationsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1899
1767
|
case 0:
|
|
1900
1768
|
this.exceptionState_1 = 2;
|
|
1901
1769
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1902
|
-
var localVariableBody = this.
|
|
1770
|
+
var localVariableBody = this.massEditPersonCommand_1;
|
|
1903
1771
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1904
1772
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1905
1773
|
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1906
|
-
var
|
|
1907
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1774
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/persons', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1908
1775
|
this.state_1 = 1;
|
|
1909
|
-
suspendResult = this.
|
|
1776
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1910
1777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1911
1778
|
return suspendResult;
|
|
1912
1779
|
}
|
|
@@ -1914,11 +1781,11 @@ protoOf($updatePersonReservationsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1914
1781
|
continue $sm;
|
|
1915
1782
|
case 1:
|
|
1916
1783
|
var this_0 = suspendResult;
|
|
1917
|
-
var tmp_0 = getKClass(
|
|
1918
|
-
var tmp_1 = null instanceof
|
|
1784
|
+
var tmp_0 = getKClass(Unit);
|
|
1785
|
+
var tmp_1 = null instanceof Unit;
|
|
1919
1786
|
var tmp_2;
|
|
1920
1787
|
try {
|
|
1921
|
-
tmp_2 = createKType(getKClass(
|
|
1788
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1922
1789
|
} catch ($p) {
|
|
1923
1790
|
var tmp_3;
|
|
1924
1791
|
if ($p instanceof Error) {
|
|
@@ -1945,52 +1812,68 @@ protoOf($updatePersonReservationsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1945
1812
|
}
|
|
1946
1813
|
while (true);
|
|
1947
1814
|
};
|
|
1948
|
-
function
|
|
1815
|
+
function mergePersonsOperation(client, mergePersonsCommand) {
|
|
1816
|
+
return promisify(function ($completion) {
|
|
1817
|
+
return mergePersonsOperation_0(client, mergePersonsCommand, $completion);
|
|
1818
|
+
});
|
|
1819
|
+
}
|
|
1820
|
+
function mergePersonsOperation_0(client, mergePersonsCommand, $completion) {
|
|
1821
|
+
var tmp = new $mergePersonsOperationCOROUTINE$(client, mergePersonsCommand, $completion);
|
|
1822
|
+
tmp.result_1 = Unit_instance;
|
|
1823
|
+
tmp.exception_1 = null;
|
|
1824
|
+
return tmp.doResume_5yljmg_k$();
|
|
1825
|
+
}
|
|
1826
|
+
function $mergePersonsOperationCOROUTINE$(client, mergePersonsCommand, resultContinuation) {
|
|
1949
1827
|
CoroutineImpl.call(this, resultContinuation);
|
|
1950
|
-
this.
|
|
1951
|
-
this.
|
|
1952
|
-
this.updatePersonReservationsCommand_1 = updatePersonReservationsCommand;
|
|
1828
|
+
this.client_1 = client;
|
|
1829
|
+
this.mergePersonsCommand_1 = mergePersonsCommand;
|
|
1953
1830
|
}
|
|
1954
|
-
protoOf($
|
|
1831
|
+
protoOf($mergePersonsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1955
1832
|
var suspendResult = this.result_1;
|
|
1956
1833
|
$sm: do
|
|
1957
1834
|
try {
|
|
1958
1835
|
var tmp = this.state_1;
|
|
1959
1836
|
switch (tmp) {
|
|
1960
1837
|
case 0:
|
|
1961
|
-
this.exceptionState_1 =
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
suspendResult
|
|
1972
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1973
|
-
return suspendResult;
|
|
1974
|
-
}
|
|
1975
|
-
continue $sm;
|
|
1838
|
+
this.exceptionState_1 = 2;
|
|
1839
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1840
|
+
var localVariableBody = this.mergePersonsCommand_1;
|
|
1841
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1842
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1843
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1844
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/merge', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1845
|
+
this.state_1 = 1;
|
|
1846
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1847
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1848
|
+
return suspendResult;
|
|
1976
1849
|
}
|
|
1977
1850
|
|
|
1978
|
-
case 1:
|
|
1979
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1980
|
-
this.state_1 = 3;
|
|
1981
1851
|
continue $sm;
|
|
1852
|
+
case 1:
|
|
1853
|
+
var this_0 = suspendResult;
|
|
1854
|
+
var tmp_0 = getKClass(Person);
|
|
1855
|
+
var tmp_1 = null instanceof Person;
|
|
1856
|
+
var tmp_2;
|
|
1857
|
+
try {
|
|
1858
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
1859
|
+
} catch ($p) {
|
|
1860
|
+
var tmp_3;
|
|
1861
|
+
if ($p instanceof Error) {
|
|
1862
|
+
var _unused_var__etf5q3 = $p;
|
|
1863
|
+
tmp_3 = null;
|
|
1864
|
+
} else {
|
|
1865
|
+
throw $p;
|
|
1866
|
+
}
|
|
1867
|
+
tmp_2 = tmp_3;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1982
1871
|
case 2:
|
|
1983
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1984
|
-
this.state_1 = 3;
|
|
1985
|
-
continue $sm;
|
|
1986
|
-
case 3:
|
|
1987
|
-
return this.WHEN_RESULT0__1;
|
|
1988
|
-
case 4:
|
|
1989
1872
|
throw this.exception_1;
|
|
1990
1873
|
}
|
|
1991
|
-
} catch ($
|
|
1992
|
-
var e = $
|
|
1993
|
-
if (this.exceptionState_1 ===
|
|
1874
|
+
} catch ($p_0) {
|
|
1875
|
+
var e = $p_0;
|
|
1876
|
+
if (this.exceptionState_1 === 2) {
|
|
1994
1877
|
throw e;
|
|
1995
1878
|
} else {
|
|
1996
1879
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1999,15 +1882,60 @@ protoOf($updatePersonReservations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1999
1882
|
}
|
|
2000
1883
|
while (true);
|
|
2001
1884
|
};
|
|
2002
|
-
function
|
|
1885
|
+
function searchPersonOperation(client, searchPersonQueryCommand) {
|
|
1886
|
+
return promisify(function ($completion) {
|
|
1887
|
+
return searchPersonOperation_0(client, searchPersonQueryCommand, $completion);
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
function searchPersonOperation_0(client, searchPersonQueryCommand, $completion) {
|
|
1891
|
+
var tmp = new $searchPersonOperationCOROUTINE$(client, searchPersonQueryCommand, $completion);
|
|
1892
|
+
tmp.result_1 = Unit_instance;
|
|
1893
|
+
tmp.exception_1 = null;
|
|
1894
|
+
return tmp.doResume_5yljmg_k$();
|
|
1895
|
+
}
|
|
1896
|
+
function Companion() {
|
|
1897
|
+
Companion_instance_0 = this;
|
|
1898
|
+
var tmp = this;
|
|
1899
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1900
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1901
|
+
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Person), arrayOf([]), false))]), false));
|
|
1902
|
+
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
1903
|
+
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
1904
|
+
}
|
|
1905
|
+
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
1906
|
+
return this.descriptor_1;
|
|
1907
|
+
};
|
|
1908
|
+
protoOf(Companion).serialize_kqz00w_k$ = function (encoder, value) {
|
|
1909
|
+
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
1910
|
+
};
|
|
1911
|
+
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
1912
|
+
return this.serialize_kqz00w_k$(encoder, value instanceof SearchPersonResponse ? value : THROW_CCE());
|
|
1913
|
+
};
|
|
1914
|
+
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
1915
|
+
return new SearchPersonResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
1916
|
+
};
|
|
1917
|
+
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
1918
|
+
return Companion_getInstance_1();
|
|
1919
|
+
};
|
|
1920
|
+
var Companion_instance_0;
|
|
1921
|
+
function Companion_getInstance_1() {
|
|
1922
|
+
if (Companion_instance_0 == null)
|
|
1923
|
+
new Companion();
|
|
1924
|
+
return Companion_instance_0;
|
|
1925
|
+
}
|
|
1926
|
+
function SearchPersonResponse(value) {
|
|
1927
|
+
Companion_getInstance_1();
|
|
1928
|
+
this.value_1 = value;
|
|
1929
|
+
}
|
|
1930
|
+
function searchPersonOperation$lambda($this$map) {
|
|
1931
|
+
return $this$map.value_1;
|
|
1932
|
+
}
|
|
1933
|
+
function $searchPersonOperationCOROUTINE$(client, searchPersonQueryCommand, resultContinuation) {
|
|
2003
1934
|
CoroutineImpl.call(this, resultContinuation);
|
|
2004
|
-
this.
|
|
2005
|
-
this.
|
|
2006
|
-
this.residentType_1 = residentType;
|
|
2007
|
-
this.residentId_1 = residentId;
|
|
2008
|
-
this.editResidencyCommand_1 = editResidencyCommand;
|
|
1935
|
+
this.client_1 = client;
|
|
1936
|
+
this.searchPersonQueryCommand_1 = searchPersonQueryCommand;
|
|
2009
1937
|
}
|
|
2010
|
-
protoOf($
|
|
1938
|
+
protoOf($searchPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2011
1939
|
var suspendResult = this.result_1;
|
|
2012
1940
|
$sm: do
|
|
2013
1941
|
try {
|
|
@@ -2016,14 +1944,13 @@ protoOf($updatePersonResidencyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2016
1944
|
case 0:
|
|
2017
1945
|
this.exceptionState_1 = 2;
|
|
2018
1946
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2019
|
-
var localVariableBody = this.
|
|
1947
|
+
var localVariableBody = this.searchPersonQueryCommand_1;
|
|
2020
1948
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2021
1949
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2022
|
-
var tmp0_method =
|
|
2023
|
-
var
|
|
2024
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1950
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1951
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/search', localVariableHeaders, VOID, localVariableQuery, true);
|
|
2025
1952
|
this.state_1 = 1;
|
|
2026
|
-
suspendResult = this.
|
|
1953
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2027
1954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
1955
|
return suspendResult;
|
|
2029
1956
|
}
|
|
@@ -2031,11 +1958,11 @@ protoOf($updatePersonResidencyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2031
1958
|
continue $sm;
|
|
2032
1959
|
case 1:
|
|
2033
1960
|
var this_0 = suspendResult;
|
|
2034
|
-
var tmp_0 = getKClass(
|
|
2035
|
-
var tmp_1 = null instanceof
|
|
1961
|
+
var tmp_0 = getKClass(SearchPersonResponse);
|
|
1962
|
+
var tmp_1 = null instanceof SearchPersonResponse;
|
|
2036
1963
|
var tmp_2;
|
|
2037
1964
|
try {
|
|
2038
|
-
tmp_2 = createKType(getKClass(
|
|
1965
|
+
tmp_2 = createKType(getKClass(SearchPersonResponse), arrayOf([]), false);
|
|
2039
1966
|
} catch ($p) {
|
|
2040
1967
|
var tmp_3;
|
|
2041
1968
|
if ($p instanceof Error) {
|
|
@@ -2047,7 +1974,8 @@ protoOf($updatePersonResidencyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2047
1974
|
tmp_2 = tmp_3;
|
|
2048
1975
|
}
|
|
2049
1976
|
|
|
2050
|
-
|
|
1977
|
+
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1978
|
+
return map(ARGUMENT, searchPersonOperation$lambda);
|
|
2051
1979
|
case 2:
|
|
2052
1980
|
throw this.exception_1;
|
|
2053
1981
|
}
|
|
@@ -2062,366 +1990,572 @@ protoOf($updatePersonResidencyCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
2062
1990
|
}
|
|
2063
1991
|
while (true);
|
|
2064
1992
|
};
|
|
2065
|
-
function
|
|
1993
|
+
function showPersonByEmailOperation(client, email, fields) {
|
|
1994
|
+
return promisify(function ($completion) {
|
|
1995
|
+
return showPersonByEmailOperation_0(client, email, fields, $completion);
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
function showPersonByEmailOperation_0(client, email, fields, $completion) {
|
|
1999
|
+
fields = fields === VOID ? null : fields;
|
|
2000
|
+
var tmp = new $showPersonByEmailOperationCOROUTINE$(client, email, fields, $completion);
|
|
2001
|
+
tmp.result_1 = Unit_instance;
|
|
2002
|
+
tmp.exception_1 = null;
|
|
2003
|
+
return tmp.doResume_5yljmg_k$();
|
|
2004
|
+
}
|
|
2005
|
+
function $showPersonByEmailOperationCOROUTINE$(client, email, fields, resultContinuation) {
|
|
2066
2006
|
CoroutineImpl.call(this, resultContinuation);
|
|
2067
|
-
this.
|
|
2068
|
-
this.
|
|
2069
|
-
this.
|
|
2070
|
-
this.residentId_1 = residentId;
|
|
2071
|
-
this.editResidencyCommand_1 = editResidencyCommand;
|
|
2007
|
+
this.client_1 = client;
|
|
2008
|
+
this.email_1 = email;
|
|
2009
|
+
this.fields_1 = fields;
|
|
2072
2010
|
}
|
|
2073
|
-
protoOf($
|
|
2011
|
+
protoOf($showPersonByEmailOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2074
2012
|
var suspendResult = this.result_1;
|
|
2075
2013
|
$sm: do
|
|
2076
2014
|
try {
|
|
2077
2015
|
var tmp = this.state_1;
|
|
2078
2016
|
switch (tmp) {
|
|
2079
2017
|
case 0:
|
|
2080
|
-
this.exceptionState_1 =
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2018
|
+
this.exceptionState_1 = 2;
|
|
2019
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2020
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2021
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2022
|
+
if (this.fields_1 == null)
|
|
2023
|
+
null;
|
|
2024
|
+
else {
|
|
2025
|
+
var value = listOf_0(this.fields_1);
|
|
2026
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2030
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2031
|
+
var tmp2_path = replace('/persons/byEmail/{email}', '{email}', this.email_1);
|
|
2032
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2033
|
+
this.state_1 = 1;
|
|
2034
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2035
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2036
|
+
return suspendResult;
|
|
2095
2037
|
}
|
|
2096
2038
|
|
|
2097
|
-
case 1:
|
|
2098
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2099
|
-
this.state_1 = 3;
|
|
2100
|
-
continue $sm;
|
|
2101
|
-
case 2:
|
|
2102
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2103
|
-
this.state_1 = 3;
|
|
2104
2039
|
continue $sm;
|
|
2105
|
-
case
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
};
|
|
2138
|
-
protoOf(PersonApi).deletePersonFromCompany$suspendBridge_3ozh2u_k$ = function (companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion) {
|
|
2139
|
-
var tmp = new $deletePersonFromCompany$suspendBridgeCOROUTINE$(this, companyId, residentType, residentId, removeBods, removeParkeringsplass, $completion);
|
|
2140
|
-
tmp.result_1 = Unit_instance;
|
|
2141
|
-
tmp.exception_1 = null;
|
|
2142
|
-
return tmp.doResume_5yljmg_k$();
|
|
2143
|
-
};
|
|
2144
|
-
protoOf(PersonApi).deletePersonRole_ltu9de_k$ = function (personId, roleId, $completion) {
|
|
2145
|
-
var tmp = new $deletePersonRoleCOROUTINE$(this, personId, roleId, $completion);
|
|
2146
|
-
tmp.result_1 = Unit_instance;
|
|
2147
|
-
tmp.exception_1 = null;
|
|
2148
|
-
return tmp.doResume_5yljmg_k$();
|
|
2149
|
-
};
|
|
2150
|
-
protoOf(PersonApi).deletePersonRole = function (personId, roleId) {
|
|
2151
|
-
var tmp = this;
|
|
2152
|
-
return promisify(function ($completion) {
|
|
2153
|
-
return tmp.deletePersonRole_ltu9de_k$(personId, roleId, $completion);
|
|
2154
|
-
});
|
|
2155
|
-
};
|
|
2156
|
-
protoOf(PersonApi).deletePersonRole$suspendBridge_5558t_k$ = function (personId, roleId, $completion) {
|
|
2157
|
-
var tmp = new $deletePersonRole$suspendBridgeCOROUTINE$(this, personId, roleId, $completion);
|
|
2158
|
-
tmp.result_1 = Unit_instance;
|
|
2159
|
-
tmp.exception_1 = null;
|
|
2160
|
-
return tmp.doResume_5yljmg_k$();
|
|
2161
|
-
};
|
|
2162
|
-
protoOf(PersonApi).indexPersons_p5ulaj_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
2163
|
-
var tmp = new $indexPersonsCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2164
|
-
tmp.result_1 = Unit_instance;
|
|
2165
|
-
tmp.exception_1 = null;
|
|
2166
|
-
return tmp.doResume_5yljmg_k$();
|
|
2167
|
-
};
|
|
2168
|
-
protoOf(PersonApi).indexPersons$default_ufiec5_k$ = function (query, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2169
|
-
query = query === VOID ? null : query;
|
|
2170
|
-
fields = fields === VOID ? null : fields;
|
|
2171
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2172
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2173
|
-
count = count === VOID ? null : count;
|
|
2174
|
-
return $super === VOID ? this.indexPersons_p5ulaj_k$(query, fields, pageToken, autoPaginate, count, $completion) : $super.indexPersons_p5ulaj_k$.call(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2175
|
-
};
|
|
2176
|
-
protoOf(PersonApi).indexPersons = function (query, fields, pageToken, autoPaginate, count) {
|
|
2177
|
-
var tmp = this;
|
|
2178
|
-
return promisify(function ($completion) {
|
|
2179
|
-
return tmp.indexPersons$default_ufiec5_k$(query, fields, pageToken, autoPaginate, count, $completion);
|
|
2180
|
-
});
|
|
2181
|
-
};
|
|
2182
|
-
protoOf(PersonApi).indexPersons$suspendBridge_vawrdg_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
2183
|
-
var tmp = new $indexPersons$suspendBridgeCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2184
|
-
tmp.result_1 = Unit_instance;
|
|
2185
|
-
tmp.exception_1 = null;
|
|
2186
|
-
return tmp.doResume_5yljmg_k$();
|
|
2187
|
-
};
|
|
2188
|
-
protoOf(PersonApi).indexPersonsForEdit_ijm8v7_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
2189
|
-
var tmp = new $indexPersonsForEditCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
2190
|
-
tmp.result_1 = Unit_instance;
|
|
2191
|
-
tmp.exception_1 = null;
|
|
2192
|
-
return tmp.doResume_5yljmg_k$();
|
|
2193
|
-
};
|
|
2194
|
-
protoOf(PersonApi).indexPersonsForEdit$default_etocw8_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2195
|
-
fields = fields === VOID ? null : fields;
|
|
2196
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2197
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2198
|
-
count = count === VOID ? null : count;
|
|
2199
|
-
return $super === VOID ? this.indexPersonsForEdit_ijm8v7_k$(companyId, fields, pageToken, autoPaginate, count, $completion) : $super.indexPersonsForEdit_ijm8v7_k$.call(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
2200
|
-
};
|
|
2201
|
-
protoOf(PersonApi).indexPersonsForEdit = function (companyId, fields, pageToken, autoPaginate, count) {
|
|
2202
|
-
var tmp = this;
|
|
2203
|
-
return promisify(function ($completion) {
|
|
2204
|
-
return tmp.indexPersonsForEdit$default_etocw8_k$(companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
2205
|
-
});
|
|
2206
|
-
};
|
|
2207
|
-
protoOf(PersonApi).indexPersonsForEdit$suspendBridge_15jun6_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
2208
|
-
var tmp = new $indexPersonsForEdit$suspendBridgeCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
2209
|
-
tmp.result_1 = Unit_instance;
|
|
2210
|
-
tmp.exception_1 = null;
|
|
2211
|
-
return tmp.doResume_5yljmg_k$();
|
|
2212
|
-
};
|
|
2213
|
-
protoOf(PersonApi).invitePersonToBoard_h9dyev_k$ = function (companyId, personId, $completion) {
|
|
2214
|
-
var tmp = new $invitePersonToBoardCOROUTINE$(this, companyId, personId, $completion);
|
|
2215
|
-
tmp.result_1 = Unit_instance;
|
|
2216
|
-
tmp.exception_1 = null;
|
|
2217
|
-
return tmp.doResume_5yljmg_k$();
|
|
2218
|
-
};
|
|
2219
|
-
protoOf(PersonApi).invitePersonToBoard = function (companyId, personId) {
|
|
2220
|
-
var tmp = this;
|
|
2221
|
-
return promisify(function ($completion) {
|
|
2222
|
-
return tmp.invitePersonToBoard_h9dyev_k$(companyId, personId, $completion);
|
|
2223
|
-
});
|
|
2224
|
-
};
|
|
2225
|
-
protoOf(PersonApi).invitePersonToBoard$suspendBridge_z8ne5y_k$ = function (companyId, personId, $completion) {
|
|
2226
|
-
var tmp = new $invitePersonToBoard$suspendBridgeCOROUTINE$(this, companyId, personId, $completion);
|
|
2227
|
-
tmp.result_1 = Unit_instance;
|
|
2228
|
-
tmp.exception_1 = null;
|
|
2229
|
-
return tmp.doResume_5yljmg_k$();
|
|
2230
|
-
};
|
|
2231
|
-
protoOf(PersonApi).massUpdatePerson_fry8kl_k$ = function (massEditPersonCommand, $completion) {
|
|
2232
|
-
var tmp = new $massUpdatePersonCOROUTINE$(this, massEditPersonCommand, $completion);
|
|
2233
|
-
tmp.result_1 = Unit_instance;
|
|
2234
|
-
tmp.exception_1 = null;
|
|
2235
|
-
return tmp.doResume_5yljmg_k$();
|
|
2236
|
-
};
|
|
2237
|
-
protoOf(PersonApi).massUpdatePerson = function (massEditPersonCommand) {
|
|
2238
|
-
var tmp = this;
|
|
2239
|
-
return promisify(function ($completion) {
|
|
2240
|
-
return tmp.massUpdatePerson_fry8kl_k$(massEditPersonCommand, $completion);
|
|
2241
|
-
});
|
|
2242
|
-
};
|
|
2243
|
-
protoOf(PersonApi).massUpdatePerson$suspendBridge_186n8k_k$ = function (massEditPersonCommand, $completion) {
|
|
2244
|
-
var tmp = new $massUpdatePerson$suspendBridgeCOROUTINE$(this, massEditPersonCommand, $completion);
|
|
2245
|
-
tmp.result_1 = Unit_instance;
|
|
2246
|
-
tmp.exception_1 = null;
|
|
2247
|
-
return tmp.doResume_5yljmg_k$();
|
|
2248
|
-
};
|
|
2249
|
-
protoOf(PersonApi).mergePersons_tiwq5e_k$ = function (mergePersonsCommand, $completion) {
|
|
2250
|
-
var tmp = new $mergePersonsCOROUTINE$(this, mergePersonsCommand, $completion);
|
|
2251
|
-
tmp.result_1 = Unit_instance;
|
|
2252
|
-
tmp.exception_1 = null;
|
|
2253
|
-
return tmp.doResume_5yljmg_k$();
|
|
2254
|
-
};
|
|
2255
|
-
protoOf(PersonApi).mergePersons = function (mergePersonsCommand) {
|
|
2256
|
-
var tmp = this;
|
|
2257
|
-
return promisify(function ($completion) {
|
|
2258
|
-
return tmp.mergePersons_tiwq5e_k$(mergePersonsCommand, $completion);
|
|
2259
|
-
});
|
|
2260
|
-
};
|
|
2261
|
-
protoOf(PersonApi).mergePersons$suspendBridge_4paig1_k$ = function (mergePersonsCommand, $completion) {
|
|
2262
|
-
var tmp = new $mergePersons$suspendBridgeCOROUTINE$(this, mergePersonsCommand, $completion);
|
|
2263
|
-
tmp.result_1 = Unit_instance;
|
|
2264
|
-
tmp.exception_1 = null;
|
|
2265
|
-
return tmp.doResume_5yljmg_k$();
|
|
2266
|
-
};
|
|
2267
|
-
protoOf(PersonApi).searchPerson_gkezhy_k$ = function (searchPersonQueryCommand, $completion) {
|
|
2268
|
-
var tmp = new $searchPersonCOROUTINE$(this, searchPersonQueryCommand, $completion);
|
|
2269
|
-
tmp.result_1 = Unit_instance;
|
|
2270
|
-
tmp.exception_1 = null;
|
|
2271
|
-
return tmp.doResume_5yljmg_k$();
|
|
2040
|
+
case 1:
|
|
2041
|
+
var this_0 = suspendResult;
|
|
2042
|
+
var tmp_0 = getKClass(Person);
|
|
2043
|
+
var tmp_1 = null instanceof Person;
|
|
2044
|
+
var tmp_2;
|
|
2045
|
+
try {
|
|
2046
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
2047
|
+
} catch ($p) {
|
|
2048
|
+
var tmp_3;
|
|
2049
|
+
if ($p instanceof Error) {
|
|
2050
|
+
var _unused_var__etf5q3 = $p;
|
|
2051
|
+
tmp_3 = null;
|
|
2052
|
+
} else {
|
|
2053
|
+
throw $p;
|
|
2054
|
+
}
|
|
2055
|
+
tmp_2 = tmp_3;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2059
|
+
case 2:
|
|
2060
|
+
throw this.exception_1;
|
|
2061
|
+
}
|
|
2062
|
+
} catch ($p_0) {
|
|
2063
|
+
var e = $p_0;
|
|
2064
|
+
if (this.exceptionState_1 === 2) {
|
|
2065
|
+
throw e;
|
|
2066
|
+
} else {
|
|
2067
|
+
this.state_1 = this.exceptionState_1;
|
|
2068
|
+
this.exception_1 = e;
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
while (true);
|
|
2272
2072
|
};
|
|
2273
|
-
|
|
2274
|
-
var tmp = this;
|
|
2073
|
+
function showPersonByMobilOperation(client, mobile, fields) {
|
|
2275
2074
|
return promisify(function ($completion) {
|
|
2276
|
-
return
|
|
2075
|
+
return showPersonByMobilOperation_0(client, mobile, fields, $completion);
|
|
2277
2076
|
});
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
var tmp = new $searchPerson$suspendBridgeCOROUTINE$(this, searchPersonQueryCommand, $completion);
|
|
2281
|
-
tmp.result_1 = Unit_instance;
|
|
2282
|
-
tmp.exception_1 = null;
|
|
2283
|
-
return tmp.doResume_5yljmg_k$();
|
|
2284
|
-
};
|
|
2285
|
-
protoOf(PersonApi).showPerson_2y5r37_k$ = function (personId, fields, $completion) {
|
|
2286
|
-
var tmp = new $showPersonCOROUTINE$(this, personId, fields, $completion);
|
|
2287
|
-
tmp.result_1 = Unit_instance;
|
|
2288
|
-
tmp.exception_1 = null;
|
|
2289
|
-
return tmp.doResume_5yljmg_k$();
|
|
2290
|
-
};
|
|
2291
|
-
protoOf(PersonApi).showPerson$default_724tbv_k$ = function (personId, fields, $completion, $super) {
|
|
2077
|
+
}
|
|
2078
|
+
function showPersonByMobilOperation_0(client, mobile, fields, $completion) {
|
|
2292
2079
|
fields = fields === VOID ? null : fields;
|
|
2293
|
-
|
|
2294
|
-
};
|
|
2295
|
-
protoOf(PersonApi).showPerson = function (personId, fields) {
|
|
2296
|
-
var tmp = this;
|
|
2297
|
-
return promisify(function ($completion) {
|
|
2298
|
-
return tmp.showPerson$default_724tbv_k$(personId, fields, $completion);
|
|
2299
|
-
});
|
|
2300
|
-
};
|
|
2301
|
-
protoOf(PersonApi).showPerson$suspendBridge_n9y3lq_k$ = function (personId, fields, $completion) {
|
|
2302
|
-
var tmp = new $showPerson$suspendBridgeCOROUTINE$(this, personId, fields, $completion);
|
|
2303
|
-
tmp.result_1 = Unit_instance;
|
|
2304
|
-
tmp.exception_1 = null;
|
|
2305
|
-
return tmp.doResume_5yljmg_k$();
|
|
2306
|
-
};
|
|
2307
|
-
protoOf(PersonApi).showPersonByEmail_8rafeg_k$ = function (email, fields, $completion) {
|
|
2308
|
-
var tmp = new $showPersonByEmailCOROUTINE$(this, email, fields, $completion);
|
|
2080
|
+
var tmp = new $showPersonByMobilOperationCOROUTINE$(client, mobile, fields, $completion);
|
|
2309
2081
|
tmp.result_1 = Unit_instance;
|
|
2310
2082
|
tmp.exception_1 = null;
|
|
2311
2083
|
return tmp.doResume_5yljmg_k$();
|
|
2084
|
+
}
|
|
2085
|
+
function $showPersonByMobilOperationCOROUTINE$(client, mobile, fields, resultContinuation) {
|
|
2086
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2087
|
+
this.client_1 = client;
|
|
2088
|
+
this.mobile_1 = mobile;
|
|
2089
|
+
this.fields_1 = fields;
|
|
2090
|
+
}
|
|
2091
|
+
protoOf($showPersonByMobilOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2092
|
+
var suspendResult = this.result_1;
|
|
2093
|
+
$sm: do
|
|
2094
|
+
try {
|
|
2095
|
+
var tmp = this.state_1;
|
|
2096
|
+
switch (tmp) {
|
|
2097
|
+
case 0:
|
|
2098
|
+
this.exceptionState_1 = 2;
|
|
2099
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2100
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2101
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2102
|
+
if (this.fields_1 == null)
|
|
2103
|
+
null;
|
|
2104
|
+
else {
|
|
2105
|
+
var value = listOf_0(this.fields_1);
|
|
2106
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2110
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2111
|
+
var tmp2_path = replace('/persons/byMobile/{mobile}', '{mobile}', this.mobile_1);
|
|
2112
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2113
|
+
this.state_1 = 1;
|
|
2114
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2115
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2116
|
+
return suspendResult;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
continue $sm;
|
|
2120
|
+
case 1:
|
|
2121
|
+
var this_0 = suspendResult;
|
|
2122
|
+
var tmp_0 = getKClass(Person);
|
|
2123
|
+
var tmp_1 = null instanceof Person;
|
|
2124
|
+
var tmp_2;
|
|
2125
|
+
try {
|
|
2126
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
2127
|
+
} catch ($p) {
|
|
2128
|
+
var tmp_3;
|
|
2129
|
+
if ($p instanceof Error) {
|
|
2130
|
+
var _unused_var__etf5q3 = $p;
|
|
2131
|
+
tmp_3 = null;
|
|
2132
|
+
} else {
|
|
2133
|
+
throw $p;
|
|
2134
|
+
}
|
|
2135
|
+
tmp_2 = tmp_3;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2139
|
+
case 2:
|
|
2140
|
+
throw this.exception_1;
|
|
2141
|
+
}
|
|
2142
|
+
} catch ($p_0) {
|
|
2143
|
+
var e = $p_0;
|
|
2144
|
+
if (this.exceptionState_1 === 2) {
|
|
2145
|
+
throw e;
|
|
2146
|
+
} else {
|
|
2147
|
+
this.state_1 = this.exceptionState_1;
|
|
2148
|
+
this.exception_1 = e;
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
while (true);
|
|
2312
2152
|
};
|
|
2313
|
-
|
|
2314
|
-
fields = fields === VOID ? null : fields;
|
|
2315
|
-
return $super === VOID ? this.showPersonByEmail_8rafeg_k$(email, fields, $completion) : $super.showPersonByEmail_8rafeg_k$.call(this, email, fields, $completion);
|
|
2316
|
-
};
|
|
2317
|
-
protoOf(PersonApi).showPersonByEmail = function (email, fields) {
|
|
2318
|
-
var tmp = this;
|
|
2153
|
+
function showPersonByPersonnummerOperation(client, genghisPersonnummerSearchCommand) {
|
|
2319
2154
|
return promisify(function ($completion) {
|
|
2320
|
-
return
|
|
2155
|
+
return showPersonByPersonnummerOperation_0(client, genghisPersonnummerSearchCommand, $completion);
|
|
2321
2156
|
});
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
var tmp = new $
|
|
2157
|
+
}
|
|
2158
|
+
function showPersonByPersonnummerOperation_0(client, genghisPersonnummerSearchCommand, $completion) {
|
|
2159
|
+
var tmp = new $showPersonByPersonnummerOperationCOROUTINE$(client, genghisPersonnummerSearchCommand, $completion);
|
|
2325
2160
|
tmp.result_1 = Unit_instance;
|
|
2326
2161
|
tmp.exception_1 = null;
|
|
2327
2162
|
return tmp.doResume_5yljmg_k$();
|
|
2163
|
+
}
|
|
2164
|
+
function Companion_0() {
|
|
2165
|
+
Companion_instance_1 = this;
|
|
2166
|
+
var tmp = this;
|
|
2167
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
2168
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2169
|
+
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(PersonnummerResult), arrayOf([]), false))]), false));
|
|
2170
|
+
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
2171
|
+
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
2172
|
+
}
|
|
2173
|
+
protoOf(Companion_0).get_descriptor_wjt6a0_k$ = function () {
|
|
2174
|
+
return this.descriptor_1;
|
|
2328
2175
|
};
|
|
2329
|
-
protoOf(
|
|
2330
|
-
|
|
2331
|
-
tmp.result_1 = Unit_instance;
|
|
2332
|
-
tmp.exception_1 = null;
|
|
2333
|
-
return tmp.doResume_5yljmg_k$();
|
|
2176
|
+
protoOf(Companion_0).serialize_8kpzv9_k$ = function (encoder, value) {
|
|
2177
|
+
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
2334
2178
|
};
|
|
2335
|
-
protoOf(
|
|
2336
|
-
|
|
2337
|
-
return $super === VOID ? this.showPersonByMobil_f3kdv3_k$(mobile, fields, $completion) : $super.showPersonByMobil_f3kdv3_k$.call(this, mobile, fields, $completion);
|
|
2179
|
+
protoOf(Companion_0).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2180
|
+
return this.serialize_8kpzv9_k$(encoder, value instanceof ShowPersonByPersonnummerResponse ? value : THROW_CCE());
|
|
2338
2181
|
};
|
|
2339
|
-
protoOf(
|
|
2340
|
-
|
|
2341
|
-
return promisify(function ($completion) {
|
|
2342
|
-
return tmp.showPersonByMobil$default_uz2jsj_k$(mobile, fields, $completion);
|
|
2343
|
-
});
|
|
2182
|
+
protoOf(Companion_0).deserialize_sy6x50_k$ = function (decoder) {
|
|
2183
|
+
return new ShowPersonByPersonnummerResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
2344
2184
|
};
|
|
2345
|
-
protoOf(
|
|
2346
|
-
|
|
2347
|
-
tmp.result_1 = Unit_instance;
|
|
2348
|
-
tmp.exception_1 = null;
|
|
2349
|
-
return tmp.doResume_5yljmg_k$();
|
|
2185
|
+
protoOf(Companion_0).serializer_9w0wvi_k$ = function () {
|
|
2186
|
+
return Companion_getInstance_2();
|
|
2350
2187
|
};
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
return
|
|
2188
|
+
var Companion_instance_1;
|
|
2189
|
+
function Companion_getInstance_2() {
|
|
2190
|
+
if (Companion_instance_1 == null)
|
|
2191
|
+
new Companion_0();
|
|
2192
|
+
return Companion_instance_1;
|
|
2193
|
+
}
|
|
2194
|
+
function ShowPersonByPersonnummerResponse(value) {
|
|
2195
|
+
Companion_getInstance_2();
|
|
2196
|
+
this.value_1 = value;
|
|
2197
|
+
}
|
|
2198
|
+
function showPersonByPersonnummerOperation$lambda($this$map) {
|
|
2199
|
+
return $this$map.value_1;
|
|
2200
|
+
}
|
|
2201
|
+
function $showPersonByPersonnummerOperationCOROUTINE$(client, genghisPersonnummerSearchCommand, resultContinuation) {
|
|
2202
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2203
|
+
this.client_1 = client;
|
|
2204
|
+
this.genghisPersonnummerSearchCommand_1 = genghisPersonnummerSearchCommand;
|
|
2205
|
+
}
|
|
2206
|
+
protoOf($showPersonByPersonnummerOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2207
|
+
var suspendResult = this.result_1;
|
|
2208
|
+
$sm: do
|
|
2209
|
+
try {
|
|
2210
|
+
var tmp = this.state_1;
|
|
2211
|
+
switch (tmp) {
|
|
2212
|
+
case 0:
|
|
2213
|
+
this.exceptionState_1 = 2;
|
|
2214
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2215
|
+
var localVariableBody = this.genghisPersonnummerSearchCommand_1;
|
|
2216
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2217
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2218
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
2219
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/persons/personalIdentityNumber', localVariableHeaders, VOID, localVariableQuery, true);
|
|
2220
|
+
this.state_1 = 1;
|
|
2221
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2222
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2223
|
+
return suspendResult;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
continue $sm;
|
|
2227
|
+
case 1:
|
|
2228
|
+
var this_0 = suspendResult;
|
|
2229
|
+
var tmp_0 = getKClass(ShowPersonByPersonnummerResponse);
|
|
2230
|
+
var tmp_1 = null instanceof ShowPersonByPersonnummerResponse;
|
|
2231
|
+
var tmp_2;
|
|
2232
|
+
try {
|
|
2233
|
+
tmp_2 = createKType(getKClass(ShowPersonByPersonnummerResponse), arrayOf([]), false);
|
|
2234
|
+
} catch ($p) {
|
|
2235
|
+
var tmp_3;
|
|
2236
|
+
if ($p instanceof Error) {
|
|
2237
|
+
var _unused_var__etf5q3 = $p;
|
|
2238
|
+
tmp_3 = null;
|
|
2239
|
+
} else {
|
|
2240
|
+
throw $p;
|
|
2241
|
+
}
|
|
2242
|
+
tmp_2 = tmp_3;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2246
|
+
return map(ARGUMENT, showPersonByPersonnummerOperation$lambda);
|
|
2247
|
+
case 2:
|
|
2248
|
+
throw this.exception_1;
|
|
2249
|
+
}
|
|
2250
|
+
} catch ($p_0) {
|
|
2251
|
+
var e = $p_0;
|
|
2252
|
+
if (this.exceptionState_1 === 2) {
|
|
2253
|
+
throw e;
|
|
2254
|
+
} else {
|
|
2255
|
+
this.state_1 = this.exceptionState_1;
|
|
2256
|
+
this.exception_1 = e;
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
while (true);
|
|
2356
2260
|
};
|
|
2357
|
-
|
|
2358
|
-
var tmp = this;
|
|
2261
|
+
function showPersonOperation(client, personId, fields) {
|
|
2359
2262
|
return promisify(function ($completion) {
|
|
2360
|
-
return
|
|
2263
|
+
return showPersonOperation_0(client, personId, fields, $completion);
|
|
2361
2264
|
});
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
tmp
|
|
2366
|
-
tmp.exception_1 = null;
|
|
2367
|
-
return tmp.doResume_5yljmg_k$();
|
|
2368
|
-
};
|
|
2369
|
-
protoOf(PersonApi).updatePerson_2wky1i_k$ = function (personId, updatePersonCommand, $completion) {
|
|
2370
|
-
var tmp = new $updatePersonCOROUTINE$(this, personId, updatePersonCommand, $completion);
|
|
2265
|
+
}
|
|
2266
|
+
function showPersonOperation_0(client, personId, fields, $completion) {
|
|
2267
|
+
fields = fields === VOID ? null : fields;
|
|
2268
|
+
var tmp = new $showPersonOperationCOROUTINE$(client, personId, fields, $completion);
|
|
2371
2269
|
tmp.result_1 = Unit_instance;
|
|
2372
2270
|
tmp.exception_1 = null;
|
|
2373
2271
|
return tmp.doResume_5yljmg_k$();
|
|
2272
|
+
}
|
|
2273
|
+
function $showPersonOperationCOROUTINE$(client, personId, fields, resultContinuation) {
|
|
2274
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2275
|
+
this.client_1 = client;
|
|
2276
|
+
this.personId_1 = personId;
|
|
2277
|
+
this.fields_1 = fields;
|
|
2278
|
+
}
|
|
2279
|
+
protoOf($showPersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2280
|
+
var suspendResult = this.result_1;
|
|
2281
|
+
$sm: do
|
|
2282
|
+
try {
|
|
2283
|
+
var tmp = this.state_1;
|
|
2284
|
+
switch (tmp) {
|
|
2285
|
+
case 0:
|
|
2286
|
+
this.exceptionState_1 = 2;
|
|
2287
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2288
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2289
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2290
|
+
if (this.fields_1 == null)
|
|
2291
|
+
null;
|
|
2292
|
+
else {
|
|
2293
|
+
var value = listOf_0(this.fields_1);
|
|
2294
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2298
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2299
|
+
var tmp2_path = replace('/persons/{personId}', '{personId}', this.personId_1.toString());
|
|
2300
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2301
|
+
this.state_1 = 1;
|
|
2302
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2303
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2304
|
+
return suspendResult;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
continue $sm;
|
|
2308
|
+
case 1:
|
|
2309
|
+
var this_0 = suspendResult;
|
|
2310
|
+
var tmp_0 = getKClass(Person);
|
|
2311
|
+
var tmp_1 = null instanceof Person;
|
|
2312
|
+
var tmp_2;
|
|
2313
|
+
try {
|
|
2314
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
2315
|
+
} catch ($p) {
|
|
2316
|
+
var tmp_3;
|
|
2317
|
+
if ($p instanceof Error) {
|
|
2318
|
+
var _unused_var__etf5q3 = $p;
|
|
2319
|
+
tmp_3 = null;
|
|
2320
|
+
} else {
|
|
2321
|
+
throw $p;
|
|
2322
|
+
}
|
|
2323
|
+
tmp_2 = tmp_3;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2327
|
+
case 2:
|
|
2328
|
+
throw this.exception_1;
|
|
2329
|
+
}
|
|
2330
|
+
} catch ($p_0) {
|
|
2331
|
+
var e = $p_0;
|
|
2332
|
+
if (this.exceptionState_1 === 2) {
|
|
2333
|
+
throw e;
|
|
2334
|
+
} else {
|
|
2335
|
+
this.state_1 = this.exceptionState_1;
|
|
2336
|
+
this.exception_1 = e;
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
while (true);
|
|
2374
2340
|
};
|
|
2375
|
-
|
|
2376
|
-
var tmp = this;
|
|
2341
|
+
function updatePersonOperation(client, personId, updatePersonCommand) {
|
|
2377
2342
|
return promisify(function ($completion) {
|
|
2378
|
-
return
|
|
2343
|
+
return updatePersonOperation_0(client, personId, updatePersonCommand, $completion);
|
|
2379
2344
|
});
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
var tmp = new $
|
|
2383
|
-
tmp.result_1 = Unit_instance;
|
|
2384
|
-
tmp.exception_1 = null;
|
|
2385
|
-
return tmp.doResume_5yljmg_k$();
|
|
2386
|
-
};
|
|
2387
|
-
protoOf(PersonApi).updatePersonReservations_uameve_k$ = function (personId, updatePersonReservationsCommand, $completion) {
|
|
2388
|
-
var tmp = new $updatePersonReservationsCOROUTINE$(this, personId, updatePersonReservationsCommand, $completion);
|
|
2345
|
+
}
|
|
2346
|
+
function updatePersonOperation_0(client, personId, updatePersonCommand, $completion) {
|
|
2347
|
+
var tmp = new $updatePersonOperationCOROUTINE$(client, personId, updatePersonCommand, $completion);
|
|
2389
2348
|
tmp.result_1 = Unit_instance;
|
|
2390
2349
|
tmp.exception_1 = null;
|
|
2391
2350
|
return tmp.doResume_5yljmg_k$();
|
|
2351
|
+
}
|
|
2352
|
+
function $updatePersonOperationCOROUTINE$(client, personId, updatePersonCommand, resultContinuation) {
|
|
2353
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2354
|
+
this.client_1 = client;
|
|
2355
|
+
this.personId_1 = personId;
|
|
2356
|
+
this.updatePersonCommand_1 = updatePersonCommand;
|
|
2357
|
+
}
|
|
2358
|
+
protoOf($updatePersonOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2359
|
+
var suspendResult = this.result_1;
|
|
2360
|
+
$sm: do
|
|
2361
|
+
try {
|
|
2362
|
+
var tmp = this.state_1;
|
|
2363
|
+
switch (tmp) {
|
|
2364
|
+
case 0:
|
|
2365
|
+
this.exceptionState_1 = 2;
|
|
2366
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2367
|
+
var localVariableBody = this.updatePersonCommand_1;
|
|
2368
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2369
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2370
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2371
|
+
var tmp1_path = replace('/persons/{personId}', '{personId}', this.personId_1.toString());
|
|
2372
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2373
|
+
this.state_1 = 1;
|
|
2374
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2375
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2376
|
+
return suspendResult;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
continue $sm;
|
|
2380
|
+
case 1:
|
|
2381
|
+
var this_0 = suspendResult;
|
|
2382
|
+
var tmp_0 = getKClass(Person);
|
|
2383
|
+
var tmp_1 = null instanceof Person;
|
|
2384
|
+
var tmp_2;
|
|
2385
|
+
try {
|
|
2386
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
2387
|
+
} catch ($p) {
|
|
2388
|
+
var tmp_3;
|
|
2389
|
+
if ($p instanceof Error) {
|
|
2390
|
+
var _unused_var__etf5q3 = $p;
|
|
2391
|
+
tmp_3 = null;
|
|
2392
|
+
} else {
|
|
2393
|
+
throw $p;
|
|
2394
|
+
}
|
|
2395
|
+
tmp_2 = tmp_3;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2399
|
+
case 2:
|
|
2400
|
+
throw this.exception_1;
|
|
2401
|
+
}
|
|
2402
|
+
} catch ($p_0) {
|
|
2403
|
+
var e = $p_0;
|
|
2404
|
+
if (this.exceptionState_1 === 2) {
|
|
2405
|
+
throw e;
|
|
2406
|
+
} else {
|
|
2407
|
+
this.state_1 = this.exceptionState_1;
|
|
2408
|
+
this.exception_1 = e;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
while (true);
|
|
2392
2412
|
};
|
|
2393
|
-
|
|
2394
|
-
var tmp = this;
|
|
2413
|
+
function updatePersonReservationsOperation(client, personId, updatePersonReservationsCommand) {
|
|
2395
2414
|
return promisify(function ($completion) {
|
|
2396
|
-
return
|
|
2415
|
+
return updatePersonReservationsOperation_0(client, personId, updatePersonReservationsCommand, $completion);
|
|
2397
2416
|
});
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
var tmp = new $
|
|
2401
|
-
tmp.result_1 = Unit_instance;
|
|
2402
|
-
tmp.exception_1 = null;
|
|
2403
|
-
return tmp.doResume_5yljmg_k$();
|
|
2404
|
-
};
|
|
2405
|
-
protoOf(PersonApi).updatePersonResidency_vpa5m8_k$ = function (companyId, residentType, residentId, editResidencyCommand, $completion) {
|
|
2406
|
-
var tmp = new $updatePersonResidencyCOROUTINE$(this, companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
2417
|
+
}
|
|
2418
|
+
function updatePersonReservationsOperation_0(client, personId, updatePersonReservationsCommand, $completion) {
|
|
2419
|
+
var tmp = new $updatePersonReservationsOperationCOROUTINE$(client, personId, updatePersonReservationsCommand, $completion);
|
|
2407
2420
|
tmp.result_1 = Unit_instance;
|
|
2408
2421
|
tmp.exception_1 = null;
|
|
2409
2422
|
return tmp.doResume_5yljmg_k$();
|
|
2423
|
+
}
|
|
2424
|
+
function $updatePersonReservationsOperationCOROUTINE$(client, personId, updatePersonReservationsCommand, resultContinuation) {
|
|
2425
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2426
|
+
this.client_1 = client;
|
|
2427
|
+
this.personId_1 = personId;
|
|
2428
|
+
this.updatePersonReservationsCommand_1 = updatePersonReservationsCommand;
|
|
2429
|
+
}
|
|
2430
|
+
protoOf($updatePersonReservationsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2431
|
+
var suspendResult = this.result_1;
|
|
2432
|
+
$sm: do
|
|
2433
|
+
try {
|
|
2434
|
+
var tmp = this.state_1;
|
|
2435
|
+
switch (tmp) {
|
|
2436
|
+
case 0:
|
|
2437
|
+
this.exceptionState_1 = 2;
|
|
2438
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2439
|
+
var localVariableBody = this.updatePersonReservationsCommand_1;
|
|
2440
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2441
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2442
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2443
|
+
var tmp1_path = replace('/persons/{personId}/reservations', '{personId}', this.personId_1.toString());
|
|
2444
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2445
|
+
this.state_1 = 1;
|
|
2446
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2447
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2448
|
+
return suspendResult;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
continue $sm;
|
|
2452
|
+
case 1:
|
|
2453
|
+
var this_0 = suspendResult;
|
|
2454
|
+
var tmp_0 = getKClass(Person);
|
|
2455
|
+
var tmp_1 = null instanceof Person;
|
|
2456
|
+
var tmp_2;
|
|
2457
|
+
try {
|
|
2458
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
2459
|
+
} catch ($p) {
|
|
2460
|
+
var tmp_3;
|
|
2461
|
+
if ($p instanceof Error) {
|
|
2462
|
+
var _unused_var__etf5q3 = $p;
|
|
2463
|
+
tmp_3 = null;
|
|
2464
|
+
} else {
|
|
2465
|
+
throw $p;
|
|
2466
|
+
}
|
|
2467
|
+
tmp_2 = tmp_3;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2471
|
+
case 2:
|
|
2472
|
+
throw this.exception_1;
|
|
2473
|
+
}
|
|
2474
|
+
} catch ($p_0) {
|
|
2475
|
+
var e = $p_0;
|
|
2476
|
+
if (this.exceptionState_1 === 2) {
|
|
2477
|
+
throw e;
|
|
2478
|
+
} else {
|
|
2479
|
+
this.state_1 = this.exceptionState_1;
|
|
2480
|
+
this.exception_1 = e;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
while (true);
|
|
2410
2484
|
};
|
|
2411
|
-
|
|
2412
|
-
var tmp = this;
|
|
2485
|
+
function updatePersonResidencyOperation(client, companyId, residentType, residentId, editResidencyCommand) {
|
|
2413
2486
|
return promisify(function ($completion) {
|
|
2414
|
-
return
|
|
2487
|
+
return updatePersonResidencyOperation_0(client, companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
2415
2488
|
});
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
var tmp = new $
|
|
2489
|
+
}
|
|
2490
|
+
function updatePersonResidencyOperation_0(client, companyId, residentType, residentId, editResidencyCommand, $completion) {
|
|
2491
|
+
var tmp = new $updatePersonResidencyOperationCOROUTINE$(client, companyId, residentType, residentId, editResidencyCommand, $completion);
|
|
2419
2492
|
tmp.result_1 = Unit_instance;
|
|
2420
2493
|
tmp.exception_1 = null;
|
|
2421
2494
|
return tmp.doResume_5yljmg_k$();
|
|
2422
|
-
};
|
|
2423
|
-
function PersonApi() {
|
|
2424
2495
|
}
|
|
2496
|
+
function $updatePersonResidencyOperationCOROUTINE$(client, companyId, residentType, residentId, editResidencyCommand, resultContinuation) {
|
|
2497
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2498
|
+
this.client_1 = client;
|
|
2499
|
+
this.companyId_1 = companyId;
|
|
2500
|
+
this.residentType_1 = residentType;
|
|
2501
|
+
this.residentId_1 = residentId;
|
|
2502
|
+
this.editResidencyCommand_1 = editResidencyCommand;
|
|
2503
|
+
}
|
|
2504
|
+
protoOf($updatePersonResidencyOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2505
|
+
var suspendResult = this.result_1;
|
|
2506
|
+
$sm: do
|
|
2507
|
+
try {
|
|
2508
|
+
var tmp = this.state_1;
|
|
2509
|
+
switch (tmp) {
|
|
2510
|
+
case 0:
|
|
2511
|
+
this.exceptionState_1 = 2;
|
|
2512
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2513
|
+
var localVariableBody = this.editResidencyCommand_1;
|
|
2514
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2515
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2516
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2517
|
+
var tmp1_path = replace(replace(replace('/companies/{companyId}/residents/{residentType}/{residentId}/residency', '{companyId}', this.companyId_1.toString()), '{residentType}', this.residentType_1), '{residentId}', this.residentId_1.toString());
|
|
2518
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2519
|
+
this.state_1 = 1;
|
|
2520
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2521
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2522
|
+
return suspendResult;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
continue $sm;
|
|
2526
|
+
case 1:
|
|
2527
|
+
var this_0 = suspendResult;
|
|
2528
|
+
var tmp_0 = getKClass(Unit);
|
|
2529
|
+
var tmp_1 = null instanceof Unit;
|
|
2530
|
+
var tmp_2;
|
|
2531
|
+
try {
|
|
2532
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2533
|
+
} catch ($p) {
|
|
2534
|
+
var tmp_3;
|
|
2535
|
+
if ($p instanceof Error) {
|
|
2536
|
+
var _unused_var__etf5q3 = $p;
|
|
2537
|
+
tmp_3 = null;
|
|
2538
|
+
} else {
|
|
2539
|
+
throw $p;
|
|
2540
|
+
}
|
|
2541
|
+
tmp_2 = tmp_3;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2545
|
+
case 2:
|
|
2546
|
+
throw this.exception_1;
|
|
2547
|
+
}
|
|
2548
|
+
} catch ($p_0) {
|
|
2549
|
+
var e = $p_0;
|
|
2550
|
+
if (this.exceptionState_1 === 2) {
|
|
2551
|
+
throw e;
|
|
2552
|
+
} else {
|
|
2553
|
+
this.state_1 = this.exceptionState_1;
|
|
2554
|
+
this.exception_1 = e;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
while (true);
|
|
2558
|
+
};
|
|
2425
2559
|
function Companion_1() {
|
|
2426
2560
|
}
|
|
2427
2561
|
var Companion_instance_2;
|
|
@@ -6385,6 +6519,21 @@ defineProp(PersonStatus, 'Companion', Companion_getInstance_13, VOID, true);
|
|
|
6385
6519
|
export {
|
|
6386
6520
|
personApi as personApi,
|
|
6387
6521
|
PersonApi as PersonApi,
|
|
6522
|
+
deletePersonFromCompanyOperation as deletePersonFromCompanyOperation,
|
|
6523
|
+
deletePersonRoleOperation as deletePersonRoleOperation,
|
|
6524
|
+
indexPersonsForEditOperation as indexPersonsForEditOperation,
|
|
6525
|
+
indexPersonsOperation as indexPersonsOperation,
|
|
6526
|
+
invitePersonToBoardOperation as invitePersonToBoardOperation,
|
|
6527
|
+
massUpdatePersonOperation as massUpdatePersonOperation,
|
|
6528
|
+
mergePersonsOperation as mergePersonsOperation,
|
|
6529
|
+
searchPersonOperation as searchPersonOperation,
|
|
6530
|
+
showPersonByEmailOperation as showPersonByEmailOperation,
|
|
6531
|
+
showPersonByMobilOperation as showPersonByMobilOperation,
|
|
6532
|
+
showPersonByPersonnummerOperation as showPersonByPersonnummerOperation,
|
|
6533
|
+
showPersonOperation as showPersonOperation,
|
|
6534
|
+
updatePersonOperation as updatePersonOperation,
|
|
6535
|
+
updatePersonReservationsOperation as updatePersonReservationsOperation,
|
|
6536
|
+
updatePersonResidencyOperation as updatePersonResidencyOperation,
|
|
6388
6537
|
CreatePersonCommand as CreatePersonCommand,
|
|
6389
6538
|
EditResidencyCommand as EditResidencyCommand,
|
|
6390
6539
|
GenghisPersonnummerSearchCommand as GenghisPersonnummerSearchCommand,
|