@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
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
protoOf180f3jzyo7rfj as protoOf,
|
|
5
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
6
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,
|
|
7
13
|
listOf1jh22dvmctj1r as listOf,
|
|
8
14
|
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
9
15
|
replace3le3ie7l9k8aq as replace,
|
|
10
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
11
16
|
arrayOf1akklvh2at202 as arrayOf,
|
|
12
17
|
createKType31ecntyyaay3k as createKType,
|
|
13
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
14
|
-
await3n7kedgocftsv as await_0,
|
|
15
18
|
Unitkvevlwgzwiuc as Unit,
|
|
16
19
|
listOfvhqybd2zx248 as listOf_0,
|
|
17
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
18
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
19
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
21
21
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
22
22
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
27
27
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
28
28
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
29
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
29
30
|
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
30
31
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
31
32
|
Person2qfwnvdasq352 as Person,
|
|
@@ -35,7 +36,6 @@ import {
|
|
|
35
36
|
toMultiValue5gsdsvx60e2f as toMultiValue,
|
|
36
37
|
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
37
38
|
PagedListPersonsp0sz4pkar65 as PagedListPerson,
|
|
38
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
39
39
|
$serializer_getInstance1se14apkjzug7 as $serializer_getInstance,
|
|
40
40
|
$serializer_getInstance30spq8el0ek5z as $serializer_getInstance_0,
|
|
41
41
|
} from './solibo-sdk-sdk-core.mjs';
|
|
@@ -55,17 +55,17 @@ import {
|
|
|
55
55
|
var imul = Math.imul;
|
|
56
56
|
//endregion
|
|
57
57
|
//region block: pre-declaration
|
|
58
|
-
initMetadataForCoroutine($createPersonBoardCOROUTINE$, CoroutineImpl);
|
|
59
58
|
initMetadataForCoroutine($createPersonBoard$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
60
|
-
initMetadataForCoroutine($deletePersonBoardCOROUTINE$, CoroutineImpl);
|
|
61
59
|
initMetadataForCoroutine($deletePersonBoard$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
62
|
-
initMetadataForCoroutine($indexBoardCOROUTINE$, CoroutineImpl);
|
|
63
60
|
initMetadataForCoroutine($indexBoard$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
64
|
-
initMetadataForCoroutine($indexBoardMembersUserCOROUTINE$, CoroutineImpl);
|
|
65
61
|
initMetadataForCoroutine($indexBoardMembersUser$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
66
|
-
initMetadataForCoroutine($showBoardMemberPersonnummerCOROUTINE$, CoroutineImpl);
|
|
67
62
|
initMetadataForCoroutine($showBoardMemberPersonnummer$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
68
63
|
initMetadataForClass(BoardApi, 'BoardApi', create, ApiClient, VOID, [2, 7, 3]);
|
|
64
|
+
initMetadataForCoroutine($createPersonBoardOperationCOROUTINE$, CoroutineImpl);
|
|
65
|
+
initMetadataForCoroutine($deletePersonBoardOperationCOROUTINE$, CoroutineImpl);
|
|
66
|
+
initMetadataForCoroutine($indexBoardMembersUserOperationCOROUTINE$, CoroutineImpl);
|
|
67
|
+
initMetadataForCoroutine($indexBoardOperationCOROUTINE$, CoroutineImpl);
|
|
68
|
+
initMetadataForCoroutine($showBoardMemberPersonnummerOperationCOROUTINE$, CoroutineImpl);
|
|
69
69
|
initMetadataForCompanion(Companion);
|
|
70
70
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
71
71
|
initMetadataForClass(AddBoardmemberCommand, 'AddBoardmemberCommand', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
@@ -103,67 +103,6 @@ function BoardApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
103
103
|
function createWithClient(baseUrl, httpClient) {
|
|
104
104
|
return BoardApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(BoardApi)));
|
|
105
105
|
}
|
|
106
|
-
function $createPersonBoardCOROUTINE$(_this__u8e3s4, companyId, addBoardmemberCommand, resultContinuation) {
|
|
107
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
108
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
109
|
-
this.companyId_1 = companyId;
|
|
110
|
-
this.addBoardmemberCommand_1 = addBoardmemberCommand;
|
|
111
|
-
}
|
|
112
|
-
protoOf($createPersonBoardCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
113
|
-
var suspendResult = this.result_1;
|
|
114
|
-
$sm: do
|
|
115
|
-
try {
|
|
116
|
-
var tmp = this.state_1;
|
|
117
|
-
switch (tmp) {
|
|
118
|
-
case 0:
|
|
119
|
-
this.exceptionState_1 = 2;
|
|
120
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
121
|
-
var localVariableBody = this.addBoardmemberCommand_1;
|
|
122
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
123
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
124
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
125
|
-
var tmp1_path = replace('/companies/{companyId}/board', '{companyId}', this.companyId_1.toString());
|
|
126
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
127
|
-
this.state_1 = 1;
|
|
128
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
129
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
130
|
-
return suspendResult;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
continue $sm;
|
|
134
|
-
case 1:
|
|
135
|
-
var this_0 = suspendResult;
|
|
136
|
-
var tmp_0 = getKClass(Person);
|
|
137
|
-
var tmp_1 = null instanceof Person;
|
|
138
|
-
var tmp_2;
|
|
139
|
-
try {
|
|
140
|
-
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
141
|
-
} catch ($p) {
|
|
142
|
-
var tmp_3;
|
|
143
|
-
if ($p instanceof Error) {
|
|
144
|
-
var _unused_var__etf5q3 = $p;
|
|
145
|
-
tmp_3 = null;
|
|
146
|
-
} else {
|
|
147
|
-
throw $p;
|
|
148
|
-
}
|
|
149
|
-
tmp_2 = tmp_3;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
153
|
-
case 2:
|
|
154
|
-
throw this.exception_1;
|
|
155
|
-
}
|
|
156
|
-
} catch ($p_0) {
|
|
157
|
-
var e = $p_0;
|
|
158
|
-
if (this.exceptionState_1 === 2) {
|
|
159
|
-
throw e;
|
|
160
|
-
} else {
|
|
161
|
-
this.state_1 = this.exceptionState_1;
|
|
162
|
-
this.exception_1 = e;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
while (true);
|
|
166
|
-
};
|
|
167
106
|
function $createPersonBoard$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, addBoardmemberCommand, resultContinuation) {
|
|
168
107
|
CoroutineImpl.call(this, resultContinuation);
|
|
169
108
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -218,67 +157,6 @@ protoOf($createPersonBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
218
157
|
}
|
|
219
158
|
while (true);
|
|
220
159
|
};
|
|
221
|
-
function $deletePersonBoardCOROUTINE$(_this__u8e3s4, companyId, personId, resultContinuation) {
|
|
222
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
223
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
224
|
-
this.companyId_1 = companyId;
|
|
225
|
-
this.personId_1 = personId;
|
|
226
|
-
}
|
|
227
|
-
protoOf($deletePersonBoardCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
228
|
-
var suspendResult = this.result_1;
|
|
229
|
-
$sm: do
|
|
230
|
-
try {
|
|
231
|
-
var tmp = this.state_1;
|
|
232
|
-
switch (tmp) {
|
|
233
|
-
case 0:
|
|
234
|
-
this.exceptionState_1 = 2;
|
|
235
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
236
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
237
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
238
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
239
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
240
|
-
var tmp1_path = replace(replace('/companies/{companyId}/board/{personId}', '{companyId}', this.companyId_1.toString()), '{personId}', this.personId_1.toString());
|
|
241
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
242
|
-
this.state_1 = 1;
|
|
243
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
244
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
245
|
-
return suspendResult;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
continue $sm;
|
|
249
|
-
case 1:
|
|
250
|
-
var this_0 = suspendResult;
|
|
251
|
-
var tmp_0 = getKClass(Unit);
|
|
252
|
-
var tmp_1 = null instanceof Unit;
|
|
253
|
-
var tmp_2;
|
|
254
|
-
try {
|
|
255
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
256
|
-
} catch ($p) {
|
|
257
|
-
var tmp_3;
|
|
258
|
-
if ($p instanceof Error) {
|
|
259
|
-
var _unused_var__etf5q3 = $p;
|
|
260
|
-
tmp_3 = null;
|
|
261
|
-
} else {
|
|
262
|
-
throw $p;
|
|
263
|
-
}
|
|
264
|
-
tmp_2 = tmp_3;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
268
|
-
case 2:
|
|
269
|
-
throw this.exception_1;
|
|
270
|
-
}
|
|
271
|
-
} catch ($p_0) {
|
|
272
|
-
var e = $p_0;
|
|
273
|
-
if (this.exceptionState_1 === 2) {
|
|
274
|
-
throw e;
|
|
275
|
-
} else {
|
|
276
|
-
this.state_1 = this.exceptionState_1;
|
|
277
|
-
this.exception_1 = e;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
while (true);
|
|
281
|
-
};
|
|
282
160
|
function $deletePersonBoard$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, personId, resultContinuation) {
|
|
283
161
|
CoroutineImpl.call(this, resultContinuation);
|
|
284
162
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -333,7 +211,7 @@ protoOf($deletePersonBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
333
211
|
}
|
|
334
212
|
while (true);
|
|
335
213
|
};
|
|
336
|
-
function $
|
|
214
|
+
function $indexBoard$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, roleType, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
337
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
338
216
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
339
217
|
this.companyId_1 = companyId;
|
|
@@ -344,99 +222,46 @@ function $indexBoardCOROUTINE$(_this__u8e3s4, companyId, search, roleType, field
|
|
|
344
222
|
this.autoPaginate_1 = autoPaginate;
|
|
345
223
|
this.count_1 = count;
|
|
346
224
|
}
|
|
347
|
-
protoOf($
|
|
225
|
+
protoOf($indexBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
348
226
|
var suspendResult = this.result_1;
|
|
349
227
|
$sm: do
|
|
350
228
|
try {
|
|
351
229
|
var tmp = this.state_1;
|
|
352
230
|
switch (tmp) {
|
|
353
231
|
case 0:
|
|
354
|
-
this.exceptionState_1 =
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
else {
|
|
361
|
-
var value = listOf_0(this.search_1);
|
|
362
|
-
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
var tmp1_safe_receiver = this.roleType_1;
|
|
366
|
-
if (tmp1_safe_receiver == null)
|
|
367
|
-
null;
|
|
368
|
-
else {
|
|
369
|
-
var tmp2 = 'roleType';
|
|
370
|
-
var value_0 = toMultiValue(tmp1_safe_receiver, 'multi');
|
|
371
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if (this.fields_1 == null)
|
|
375
|
-
null;
|
|
376
|
-
else {
|
|
377
|
-
var value_1 = listOf_0(this.fields_1);
|
|
378
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_1);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
if (this.pageToken_1 == null)
|
|
382
|
-
null;
|
|
383
|
-
else {
|
|
384
|
-
var tmp2_0 = 'pageToken';
|
|
385
|
-
var value_2 = listOf_0(this.pageToken_1);
|
|
386
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
if (this.autoPaginate_1 == null)
|
|
390
|
-
null;
|
|
391
|
-
else {
|
|
392
|
-
var tmp2_1 = 'autoPaginate';
|
|
393
|
-
var value_3 = listOf_0('' + this.autoPaginate_1);
|
|
394
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
if (this.count_1 == null)
|
|
398
|
-
null;
|
|
399
|
-
else {
|
|
400
|
-
var value_4 = listOf_0('' + this.count_1);
|
|
401
|
-
localVariableQuery.put_4fpzoq_k$('count', value_4);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
405
|
-
var tmp6_method = RequestMethod_GET_getInstance();
|
|
406
|
-
var tmp7_path = replace('/companies/{companyId}/board', '{companyId}', this.companyId_1.toString());
|
|
407
|
-
var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
408
|
-
this.state_1 = 1;
|
|
409
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
410
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
411
|
-
return suspendResult;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
continue $sm;
|
|
415
|
-
case 1:
|
|
416
|
-
var this_0 = suspendResult;
|
|
417
|
-
var tmp_0 = getKClass(PagedListPerson);
|
|
418
|
-
var tmp_1 = null instanceof PagedListPerson;
|
|
419
|
-
var tmp_2;
|
|
420
|
-
try {
|
|
421
|
-
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
422
|
-
} catch ($p) {
|
|
423
|
-
var tmp_3;
|
|
424
|
-
if ($p instanceof Error) {
|
|
425
|
-
var _unused_var__etf5q3 = $p;
|
|
426
|
-
tmp_3 = null;
|
|
427
|
-
} else {
|
|
428
|
-
throw $p;
|
|
232
|
+
this.exceptionState_1 = 4;
|
|
233
|
+
if (this._this__u8e3s4__1.indexBoard === protoOf(BoardApi).indexBoard) {
|
|
234
|
+
this.state_1 = 2;
|
|
235
|
+
suspendResult = this._this__u8e3s4__1.indexBoard$default_wnerad_k$(this.companyId_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
236
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
237
|
+
return suspendResult;
|
|
429
238
|
}
|
|
430
|
-
|
|
239
|
+
continue $sm;
|
|
240
|
+
} else {
|
|
241
|
+
this.state_1 = 1;
|
|
242
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexBoard(this.companyId_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
243
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
244
|
+
return suspendResult;
|
|
245
|
+
}
|
|
246
|
+
continue $sm;
|
|
431
247
|
}
|
|
432
248
|
|
|
433
|
-
|
|
249
|
+
case 1:
|
|
250
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
251
|
+
this.state_1 = 3;
|
|
252
|
+
continue $sm;
|
|
434
253
|
case 2:
|
|
254
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
255
|
+
this.state_1 = 3;
|
|
256
|
+
continue $sm;
|
|
257
|
+
case 3:
|
|
258
|
+
return this.WHEN_RESULT0__1;
|
|
259
|
+
case 4:
|
|
435
260
|
throw this.exception_1;
|
|
436
261
|
}
|
|
437
|
-
} catch ($
|
|
438
|
-
var e = $
|
|
439
|
-
if (this.exceptionState_1 ===
|
|
262
|
+
} catch ($p) {
|
|
263
|
+
var e = $p;
|
|
264
|
+
if (this.exceptionState_1 === 4) {
|
|
440
265
|
throw e;
|
|
441
266
|
} else {
|
|
442
267
|
this.state_1 = this.exceptionState_1;
|
|
@@ -445,10 +270,10 @@ protoOf($indexBoardCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
445
270
|
}
|
|
446
271
|
while (true);
|
|
447
272
|
};
|
|
448
|
-
function $
|
|
273
|
+
function $indexBoardMembersUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, search, roleType, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
449
274
|
CoroutineImpl.call(this, resultContinuation);
|
|
450
275
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
451
|
-
this.
|
|
276
|
+
this.companyIds_1 = companyIds;
|
|
452
277
|
this.search_1 = search;
|
|
453
278
|
this.roleType_1 = roleType;
|
|
454
279
|
this.fields_1 = fields;
|
|
@@ -456,7 +281,7 @@ function $indexBoard$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, r
|
|
|
456
281
|
this.autoPaginate_1 = autoPaginate;
|
|
457
282
|
this.count_1 = count;
|
|
458
283
|
}
|
|
459
|
-
protoOf($
|
|
284
|
+
protoOf($indexBoardMembersUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
460
285
|
var suspendResult = this.result_1;
|
|
461
286
|
$sm: do
|
|
462
287
|
try {
|
|
@@ -464,16 +289,16 @@ protoOf($indexBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
464
289
|
switch (tmp) {
|
|
465
290
|
case 0:
|
|
466
291
|
this.exceptionState_1 = 4;
|
|
467
|
-
if (this._this__u8e3s4__1.
|
|
292
|
+
if (this._this__u8e3s4__1.indexBoardMembersUser === protoOf(BoardApi).indexBoardMembersUser) {
|
|
468
293
|
this.state_1 = 2;
|
|
469
|
-
suspendResult = this._this__u8e3s4__1.
|
|
294
|
+
suspendResult = this._this__u8e3s4__1.indexBoardMembersUser$default_b2607b_k$(this.companyIds_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
470
295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
471
296
|
return suspendResult;
|
|
472
297
|
}
|
|
473
298
|
continue $sm;
|
|
474
299
|
} else {
|
|
475
300
|
this.state_1 = 1;
|
|
476
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
301
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexBoardMembersUser(this.companyIds_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
477
302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
478
303
|
return suspendResult;
|
|
479
304
|
}
|
|
@@ -504,18 +329,335 @@ protoOf($indexBoard$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
504
329
|
}
|
|
505
330
|
while (true);
|
|
506
331
|
};
|
|
507
|
-
function $
|
|
332
|
+
function $showBoardMemberPersonnummer$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, personId, fields, resultContinuation) {
|
|
508
333
|
CoroutineImpl.call(this, resultContinuation);
|
|
509
334
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
335
|
+
this.companyId_1 = companyId;
|
|
336
|
+
this.personId_1 = personId;
|
|
337
|
+
this.fields_1 = fields;
|
|
338
|
+
}
|
|
339
|
+
protoOf($showBoardMemberPersonnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
340
|
+
var suspendResult = this.result_1;
|
|
341
|
+
$sm: do
|
|
342
|
+
try {
|
|
343
|
+
var tmp = this.state_1;
|
|
344
|
+
switch (tmp) {
|
|
345
|
+
case 0:
|
|
346
|
+
this.exceptionState_1 = 4;
|
|
347
|
+
if (this._this__u8e3s4__1.showBoardMemberPersonnummer === protoOf(BoardApi).showBoardMemberPersonnummer) {
|
|
348
|
+
this.state_1 = 2;
|
|
349
|
+
suspendResult = this._this__u8e3s4__1.showBoardMemberPersonnummer$default_4gyzk8_k$(this.companyId_1, this.personId_1, this.fields_1, this);
|
|
350
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
351
|
+
return suspendResult;
|
|
352
|
+
}
|
|
353
|
+
continue $sm;
|
|
354
|
+
} else {
|
|
355
|
+
this.state_1 = 1;
|
|
356
|
+
suspendResult = await_0(this._this__u8e3s4__1.showBoardMemberPersonnummer(this.companyId_1, this.personId_1, this.fields_1), this);
|
|
357
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
358
|
+
return suspendResult;
|
|
359
|
+
}
|
|
360
|
+
continue $sm;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
case 1:
|
|
364
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
365
|
+
this.state_1 = 3;
|
|
366
|
+
continue $sm;
|
|
367
|
+
case 2:
|
|
368
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
369
|
+
this.state_1 = 3;
|
|
370
|
+
continue $sm;
|
|
371
|
+
case 3:
|
|
372
|
+
return this.WHEN_RESULT0__1;
|
|
373
|
+
case 4:
|
|
374
|
+
throw this.exception_1;
|
|
375
|
+
}
|
|
376
|
+
} catch ($p) {
|
|
377
|
+
var e = $p;
|
|
378
|
+
if (this.exceptionState_1 === 4) {
|
|
379
|
+
throw e;
|
|
380
|
+
} else {
|
|
381
|
+
this.state_1 = this.exceptionState_1;
|
|
382
|
+
this.exception_1 = e;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
while (true);
|
|
386
|
+
};
|
|
387
|
+
protoOf(BoardApi).createPersonBoard_xsnxc_k$ = function (companyId, addBoardmemberCommand, $completion) {
|
|
388
|
+
return createPersonBoardOperation_0(this, companyId, addBoardmemberCommand, $completion);
|
|
389
|
+
};
|
|
390
|
+
protoOf(BoardApi).createPersonBoard = function (companyId, addBoardmemberCommand) {
|
|
391
|
+
var tmp = this;
|
|
392
|
+
return promisify(function ($completion) {
|
|
393
|
+
return tmp.createPersonBoard_xsnxc_k$(companyId, addBoardmemberCommand, $completion);
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
protoOf(BoardApi).createPersonBoard$suspendBridge_bptam9_k$ = function (companyId, addBoardmemberCommand, $completion) {
|
|
397
|
+
var tmp = new $createPersonBoard$suspendBridgeCOROUTINE$(this, companyId, addBoardmemberCommand, $completion);
|
|
398
|
+
tmp.result_1 = Unit_instance;
|
|
399
|
+
tmp.exception_1 = null;
|
|
400
|
+
return tmp.doResume_5yljmg_k$();
|
|
401
|
+
};
|
|
402
|
+
protoOf(BoardApi).deletePersonBoard_cmrkpq_k$ = function (companyId, personId, $completion) {
|
|
403
|
+
return deletePersonBoardOperation_0(this, companyId, personId, $completion);
|
|
404
|
+
};
|
|
405
|
+
protoOf(BoardApi).deletePersonBoard = function (companyId, personId) {
|
|
406
|
+
var tmp = this;
|
|
407
|
+
return promisify(function ($completion) {
|
|
408
|
+
return tmp.deletePersonBoard_cmrkpq_k$(companyId, personId, $completion);
|
|
409
|
+
});
|
|
410
|
+
};
|
|
411
|
+
protoOf(BoardApi).deletePersonBoard$suspendBridge_3llw0t_k$ = function (companyId, personId, $completion) {
|
|
412
|
+
var tmp = new $deletePersonBoard$suspendBridgeCOROUTINE$(this, companyId, personId, $completion);
|
|
413
|
+
tmp.result_1 = Unit_instance;
|
|
414
|
+
tmp.exception_1 = null;
|
|
415
|
+
return tmp.doResume_5yljmg_k$();
|
|
416
|
+
};
|
|
417
|
+
protoOf(BoardApi).indexBoard_5gyon5_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
418
|
+
return indexBoardOperation_0(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
419
|
+
};
|
|
420
|
+
protoOf(BoardApi).indexBoard$default_wnerad_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
421
|
+
search = search === VOID ? null : search;
|
|
422
|
+
roleType = roleType === VOID ? null : roleType;
|
|
423
|
+
fields = fields === VOID ? null : fields;
|
|
424
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
425
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
426
|
+
count = count === VOID ? null : count;
|
|
427
|
+
return $super === VOID ? this.indexBoard_5gyon5_k$(companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) : $super.indexBoard_5gyon5_k$.call(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
428
|
+
};
|
|
429
|
+
protoOf(BoardApi).indexBoard = function (companyId, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
430
|
+
var tmp = this;
|
|
431
|
+
return promisify(function ($completion) {
|
|
432
|
+
return tmp.indexBoard$default_wnerad_k$(companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
433
|
+
});
|
|
434
|
+
};
|
|
435
|
+
protoOf(BoardApi).indexBoard$suspendBridge_un538g_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
436
|
+
var tmp = new $indexBoard$suspendBridgeCOROUTINE$(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
437
|
+
tmp.result_1 = Unit_instance;
|
|
438
|
+
tmp.exception_1 = null;
|
|
439
|
+
return tmp.doResume_5yljmg_k$();
|
|
440
|
+
};
|
|
441
|
+
protoOf(BoardApi).indexBoardMembersUser_f3pdks_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
442
|
+
return indexBoardMembersUserOperation_0(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
443
|
+
};
|
|
444
|
+
protoOf(BoardApi).indexBoardMembersUser$default_b2607b_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
445
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
446
|
+
search = search === VOID ? null : search;
|
|
447
|
+
roleType = roleType === VOID ? null : roleType;
|
|
448
|
+
fields = fields === VOID ? null : fields;
|
|
449
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
450
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
451
|
+
count = count === VOID ? null : count;
|
|
452
|
+
return $super === VOID ? this.indexBoardMembersUser_f3pdks_k$(companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) : $super.indexBoardMembersUser_f3pdks_k$.call(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
453
|
+
};
|
|
454
|
+
protoOf(BoardApi).indexBoardMembersUser = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
455
|
+
var tmp = this;
|
|
456
|
+
return promisify(function ($completion) {
|
|
457
|
+
return tmp.indexBoardMembersUser$default_b2607b_k$(companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
458
|
+
});
|
|
459
|
+
};
|
|
460
|
+
protoOf(BoardApi).indexBoardMembersUser$suspendBridge_fx84ez_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
461
|
+
var tmp = new $indexBoardMembersUser$suspendBridgeCOROUTINE$(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
462
|
+
tmp.result_1 = Unit_instance;
|
|
463
|
+
tmp.exception_1 = null;
|
|
464
|
+
return tmp.doResume_5yljmg_k$();
|
|
465
|
+
};
|
|
466
|
+
protoOf(BoardApi).showBoardMemberPersonnummer_43teiz_k$ = function (companyId, personId, fields, $completion) {
|
|
467
|
+
return showBoardMemberPersonnummerOperation_0(this, companyId, personId, fields, $completion);
|
|
468
|
+
};
|
|
469
|
+
protoOf(BoardApi).showBoardMemberPersonnummer$default_4gyzk8_k$ = function (companyId, personId, fields, $completion, $super) {
|
|
470
|
+
fields = fields === VOID ? null : fields;
|
|
471
|
+
return $super === VOID ? this.showBoardMemberPersonnummer_43teiz_k$(companyId, personId, fields, $completion) : $super.showBoardMemberPersonnummer_43teiz_k$.call(this, companyId, personId, fields, $completion);
|
|
472
|
+
};
|
|
473
|
+
protoOf(BoardApi).showBoardMemberPersonnummer = function (companyId, personId, fields) {
|
|
474
|
+
var tmp = this;
|
|
475
|
+
return promisify(function ($completion) {
|
|
476
|
+
return tmp.showBoardMemberPersonnummer$default_4gyzk8_k$(companyId, personId, fields, $completion);
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
protoOf(BoardApi).showBoardMemberPersonnummer$suspendBridge_p5wdsm_k$ = function (companyId, personId, fields, $completion) {
|
|
480
|
+
var tmp = new $showBoardMemberPersonnummer$suspendBridgeCOROUTINE$(this, companyId, personId, fields, $completion);
|
|
481
|
+
tmp.result_1 = Unit_instance;
|
|
482
|
+
tmp.exception_1 = null;
|
|
483
|
+
return tmp.doResume_5yljmg_k$();
|
|
484
|
+
};
|
|
485
|
+
function BoardApi() {
|
|
486
|
+
}
|
|
487
|
+
function createPersonBoardOperation(client, companyId, addBoardmemberCommand) {
|
|
488
|
+
return promisify(function ($completion) {
|
|
489
|
+
return createPersonBoardOperation_0(client, companyId, addBoardmemberCommand, $completion);
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function createPersonBoardOperation_0(client, companyId, addBoardmemberCommand, $completion) {
|
|
493
|
+
var tmp = new $createPersonBoardOperationCOROUTINE$(client, companyId, addBoardmemberCommand, $completion);
|
|
494
|
+
tmp.result_1 = Unit_instance;
|
|
495
|
+
tmp.exception_1 = null;
|
|
496
|
+
return tmp.doResume_5yljmg_k$();
|
|
497
|
+
}
|
|
498
|
+
function $createPersonBoardOperationCOROUTINE$(client, companyId, addBoardmemberCommand, resultContinuation) {
|
|
499
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
500
|
+
this.client_1 = client;
|
|
501
|
+
this.companyId_1 = companyId;
|
|
502
|
+
this.addBoardmemberCommand_1 = addBoardmemberCommand;
|
|
503
|
+
}
|
|
504
|
+
protoOf($createPersonBoardOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
505
|
+
var suspendResult = this.result_1;
|
|
506
|
+
$sm: do
|
|
507
|
+
try {
|
|
508
|
+
var tmp = this.state_1;
|
|
509
|
+
switch (tmp) {
|
|
510
|
+
case 0:
|
|
511
|
+
this.exceptionState_1 = 2;
|
|
512
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
513
|
+
var localVariableBody = this.addBoardmemberCommand_1;
|
|
514
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
515
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
516
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
517
|
+
var tmp1_path = replace('/companies/{companyId}/board', '{companyId}', this.companyId_1.toString());
|
|
518
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
519
|
+
this.state_1 = 1;
|
|
520
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
521
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
522
|
+
return suspendResult;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
continue $sm;
|
|
526
|
+
case 1:
|
|
527
|
+
var this_0 = suspendResult;
|
|
528
|
+
var tmp_0 = getKClass(Person);
|
|
529
|
+
var tmp_1 = null instanceof Person;
|
|
530
|
+
var tmp_2;
|
|
531
|
+
try {
|
|
532
|
+
tmp_2 = createKType(getKClass(Person), arrayOf([]), false);
|
|
533
|
+
} catch ($p) {
|
|
534
|
+
var tmp_3;
|
|
535
|
+
if ($p instanceof Error) {
|
|
536
|
+
var _unused_var__etf5q3 = $p;
|
|
537
|
+
tmp_3 = null;
|
|
538
|
+
} else {
|
|
539
|
+
throw $p;
|
|
540
|
+
}
|
|
541
|
+
tmp_2 = tmp_3;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
545
|
+
case 2:
|
|
546
|
+
throw this.exception_1;
|
|
547
|
+
}
|
|
548
|
+
} catch ($p_0) {
|
|
549
|
+
var e = $p_0;
|
|
550
|
+
if (this.exceptionState_1 === 2) {
|
|
551
|
+
throw e;
|
|
552
|
+
} else {
|
|
553
|
+
this.state_1 = this.exceptionState_1;
|
|
554
|
+
this.exception_1 = e;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
while (true);
|
|
558
|
+
};
|
|
559
|
+
function deletePersonBoardOperation(client, companyId, personId) {
|
|
560
|
+
return promisify(function ($completion) {
|
|
561
|
+
return deletePersonBoardOperation_0(client, companyId, personId, $completion);
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function deletePersonBoardOperation_0(client, companyId, personId, $completion) {
|
|
565
|
+
var tmp = new $deletePersonBoardOperationCOROUTINE$(client, companyId, personId, $completion);
|
|
566
|
+
tmp.result_1 = Unit_instance;
|
|
567
|
+
tmp.exception_1 = null;
|
|
568
|
+
return tmp.doResume_5yljmg_k$();
|
|
569
|
+
}
|
|
570
|
+
function $deletePersonBoardOperationCOROUTINE$(client, companyId, personId, resultContinuation) {
|
|
571
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
572
|
+
this.client_1 = client;
|
|
573
|
+
this.companyId_1 = companyId;
|
|
574
|
+
this.personId_1 = personId;
|
|
575
|
+
}
|
|
576
|
+
protoOf($deletePersonBoardOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
577
|
+
var suspendResult = this.result_1;
|
|
578
|
+
$sm: do
|
|
579
|
+
try {
|
|
580
|
+
var tmp = this.state_1;
|
|
581
|
+
switch (tmp) {
|
|
582
|
+
case 0:
|
|
583
|
+
this.exceptionState_1 = 2;
|
|
584
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
585
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
586
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
587
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
588
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
589
|
+
var tmp1_path = replace(replace('/companies/{companyId}/board/{personId}', '{companyId}', this.companyId_1.toString()), '{personId}', this.personId_1.toString());
|
|
590
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
591
|
+
this.state_1 = 1;
|
|
592
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
593
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
594
|
+
return suspendResult;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
continue $sm;
|
|
598
|
+
case 1:
|
|
599
|
+
var this_0 = suspendResult;
|
|
600
|
+
var tmp_0 = getKClass(Unit);
|
|
601
|
+
var tmp_1 = null instanceof Unit;
|
|
602
|
+
var tmp_2;
|
|
603
|
+
try {
|
|
604
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
605
|
+
} catch ($p) {
|
|
606
|
+
var tmp_3;
|
|
607
|
+
if ($p instanceof Error) {
|
|
608
|
+
var _unused_var__etf5q3 = $p;
|
|
609
|
+
tmp_3 = null;
|
|
610
|
+
} else {
|
|
611
|
+
throw $p;
|
|
612
|
+
}
|
|
613
|
+
tmp_2 = tmp_3;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
617
|
+
case 2:
|
|
618
|
+
throw this.exception_1;
|
|
619
|
+
}
|
|
620
|
+
} catch ($p_0) {
|
|
621
|
+
var e = $p_0;
|
|
622
|
+
if (this.exceptionState_1 === 2) {
|
|
623
|
+
throw e;
|
|
624
|
+
} else {
|
|
625
|
+
this.state_1 = this.exceptionState_1;
|
|
626
|
+
this.exception_1 = e;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
while (true);
|
|
630
|
+
};
|
|
631
|
+
function indexBoardMembersUserOperation(client, companyIds, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
632
|
+
return promisify(function ($completion) {
|
|
633
|
+
return indexBoardMembersUserOperation_0(client, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
function indexBoardMembersUserOperation_0(client, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
637
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
638
|
+
search = search === VOID ? null : search;
|
|
639
|
+
roleType = roleType === VOID ? null : roleType;
|
|
640
|
+
fields = fields === VOID ? null : fields;
|
|
641
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
642
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
643
|
+
count = count === VOID ? null : count;
|
|
644
|
+
var tmp = new $indexBoardMembersUserOperationCOROUTINE$(client, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
645
|
+
tmp.result_1 = Unit_instance;
|
|
646
|
+
tmp.exception_1 = null;
|
|
647
|
+
return tmp.doResume_5yljmg_k$();
|
|
648
|
+
}
|
|
649
|
+
function $indexBoardMembersUserOperationCOROUTINE$(client, companyIds, search, roleType, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
650
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
651
|
+
this.client_1 = client;
|
|
652
|
+
this.companyIds_1 = companyIds;
|
|
653
|
+
this.search_1 = search;
|
|
654
|
+
this.roleType_1 = roleType;
|
|
513
655
|
this.fields_1 = fields;
|
|
514
656
|
this.pageToken_1 = pageToken;
|
|
515
657
|
this.autoPaginate_1 = autoPaginate;
|
|
516
658
|
this.count_1 = count;
|
|
517
659
|
}
|
|
518
|
-
protoOf($
|
|
660
|
+
protoOf($indexBoardMembersUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
519
661
|
var suspendResult = this.result_1;
|
|
520
662
|
$sm: do
|
|
521
663
|
try {
|
|
@@ -554,38 +696,167 @@ protoOf($indexBoardMembersUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
554
696
|
if (this.fields_1 == null)
|
|
555
697
|
null;
|
|
556
698
|
else {
|
|
557
|
-
var value_2 = listOf_0(this.fields_1);
|
|
558
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
699
|
+
var value_2 = listOf_0(this.fields_1);
|
|
700
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
if (this.pageToken_1 == null)
|
|
704
|
+
null;
|
|
705
|
+
else {
|
|
706
|
+
var tmp2_1 = 'pageToken';
|
|
707
|
+
var value_3 = listOf_0(this.pageToken_1);
|
|
708
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
if (this.autoPaginate_1 == null)
|
|
712
|
+
null;
|
|
713
|
+
else {
|
|
714
|
+
var tmp2_2 = 'autoPaginate';
|
|
715
|
+
var value_4 = listOf_0('' + this.autoPaginate_1);
|
|
716
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_2, value_4);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
if (this.count_1 == null)
|
|
720
|
+
null;
|
|
721
|
+
else {
|
|
722
|
+
var value_5 = listOf_0('' + this.count_1);
|
|
723
|
+
localVariableQuery.put_4fpzoq_k$('count', value_5);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
727
|
+
var tmp7_method = RequestMethod_GET_getInstance();
|
|
728
|
+
var localVariableConfig = new RequestConfig(tmp7_method, '/companies/boardMembers', localVariableHeaders, VOID, localVariableQuery, true);
|
|
729
|
+
this.state_1 = 1;
|
|
730
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
731
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
732
|
+
return suspendResult;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
continue $sm;
|
|
736
|
+
case 1:
|
|
737
|
+
var this_0 = suspendResult;
|
|
738
|
+
var tmp_0 = getKClass(PagedListPerson);
|
|
739
|
+
var tmp_1 = null instanceof PagedListPerson;
|
|
740
|
+
var tmp_2;
|
|
741
|
+
try {
|
|
742
|
+
tmp_2 = createKType(getKClass(PagedListPerson), arrayOf([]), false);
|
|
743
|
+
} catch ($p) {
|
|
744
|
+
var tmp_3;
|
|
745
|
+
if ($p instanceof Error) {
|
|
746
|
+
var _unused_var__etf5q3 = $p;
|
|
747
|
+
tmp_3 = null;
|
|
748
|
+
} else {
|
|
749
|
+
throw $p;
|
|
750
|
+
}
|
|
751
|
+
tmp_2 = tmp_3;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
755
|
+
case 2:
|
|
756
|
+
throw this.exception_1;
|
|
757
|
+
}
|
|
758
|
+
} catch ($p_0) {
|
|
759
|
+
var e = $p_0;
|
|
760
|
+
if (this.exceptionState_1 === 2) {
|
|
761
|
+
throw e;
|
|
762
|
+
} else {
|
|
763
|
+
this.state_1 = this.exceptionState_1;
|
|
764
|
+
this.exception_1 = e;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
while (true);
|
|
768
|
+
};
|
|
769
|
+
function indexBoardOperation(client, companyId, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
770
|
+
return promisify(function ($completion) {
|
|
771
|
+
return indexBoardOperation_0(client, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
function indexBoardOperation_0(client, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
775
|
+
search = search === VOID ? null : search;
|
|
776
|
+
roleType = roleType === VOID ? null : roleType;
|
|
777
|
+
fields = fields === VOID ? null : fields;
|
|
778
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
779
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
780
|
+
count = count === VOID ? null : count;
|
|
781
|
+
var tmp = new $indexBoardOperationCOROUTINE$(client, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
782
|
+
tmp.result_1 = Unit_instance;
|
|
783
|
+
tmp.exception_1 = null;
|
|
784
|
+
return tmp.doResume_5yljmg_k$();
|
|
785
|
+
}
|
|
786
|
+
function $indexBoardOperationCOROUTINE$(client, companyId, search, roleType, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
787
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
788
|
+
this.client_1 = client;
|
|
789
|
+
this.companyId_1 = companyId;
|
|
790
|
+
this.search_1 = search;
|
|
791
|
+
this.roleType_1 = roleType;
|
|
792
|
+
this.fields_1 = fields;
|
|
793
|
+
this.pageToken_1 = pageToken;
|
|
794
|
+
this.autoPaginate_1 = autoPaginate;
|
|
795
|
+
this.count_1 = count;
|
|
796
|
+
}
|
|
797
|
+
protoOf($indexBoardOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
798
|
+
var suspendResult = this.result_1;
|
|
799
|
+
$sm: do
|
|
800
|
+
try {
|
|
801
|
+
var tmp = this.state_1;
|
|
802
|
+
switch (tmp) {
|
|
803
|
+
case 0:
|
|
804
|
+
this.exceptionState_1 = 2;
|
|
805
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
806
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
807
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
808
|
+
if (this.search_1 == null)
|
|
809
|
+
null;
|
|
810
|
+
else {
|
|
811
|
+
var value = listOf_0(this.search_1);
|
|
812
|
+
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
var tmp1_safe_receiver = this.roleType_1;
|
|
816
|
+
if (tmp1_safe_receiver == null)
|
|
817
|
+
null;
|
|
818
|
+
else {
|
|
819
|
+
var tmp2 = 'roleType';
|
|
820
|
+
var value_0 = toMultiValue(tmp1_safe_receiver, 'multi');
|
|
821
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (this.fields_1 == null)
|
|
825
|
+
null;
|
|
826
|
+
else {
|
|
827
|
+
var value_1 = listOf_0(this.fields_1);
|
|
828
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_1);
|
|
559
829
|
}
|
|
560
830
|
|
|
561
831
|
if (this.pageToken_1 == null)
|
|
562
832
|
null;
|
|
563
833
|
else {
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
localVariableQuery.put_4fpzoq_k$(
|
|
834
|
+
var tmp2_0 = 'pageToken';
|
|
835
|
+
var value_2 = listOf_0(this.pageToken_1);
|
|
836
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
567
837
|
}
|
|
568
838
|
|
|
569
839
|
if (this.autoPaginate_1 == null)
|
|
570
840
|
null;
|
|
571
841
|
else {
|
|
572
|
-
var
|
|
573
|
-
var
|
|
574
|
-
localVariableQuery.put_4fpzoq_k$(
|
|
842
|
+
var tmp2_1 = 'autoPaginate';
|
|
843
|
+
var value_3 = listOf_0('' + this.autoPaginate_1);
|
|
844
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
|
|
575
845
|
}
|
|
576
846
|
|
|
577
847
|
if (this.count_1 == null)
|
|
578
848
|
null;
|
|
579
849
|
else {
|
|
580
|
-
var
|
|
581
|
-
localVariableQuery.put_4fpzoq_k$('count',
|
|
850
|
+
var value_4 = listOf_0('' + this.count_1);
|
|
851
|
+
localVariableQuery.put_4fpzoq_k$('count', value_4);
|
|
582
852
|
}
|
|
583
853
|
|
|
584
854
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
585
|
-
var
|
|
586
|
-
var
|
|
855
|
+
var tmp6_method = RequestMethod_GET_getInstance();
|
|
856
|
+
var tmp7_path = replace('/companies/{companyId}/board', '{companyId}', this.companyId_1.toString());
|
|
857
|
+
var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
587
858
|
this.state_1 = 1;
|
|
588
|
-
suspendResult = this.
|
|
859
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
589
860
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
590
861
|
return suspendResult;
|
|
591
862
|
}
|
|
@@ -624,73 +895,26 @@ protoOf($indexBoardMembersUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
624
895
|
}
|
|
625
896
|
while (true);
|
|
626
897
|
};
|
|
627
|
-
function
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
this.search_1 = search;
|
|
632
|
-
this.roleType_1 = roleType;
|
|
633
|
-
this.fields_1 = fields;
|
|
634
|
-
this.pageToken_1 = pageToken;
|
|
635
|
-
this.autoPaginate_1 = autoPaginate;
|
|
636
|
-
this.count_1 = count;
|
|
898
|
+
function showBoardMemberPersonnummerOperation(client, companyId, personId, fields) {
|
|
899
|
+
return promisify(function ($completion) {
|
|
900
|
+
return showBoardMemberPersonnummerOperation_0(client, companyId, personId, fields, $completion);
|
|
901
|
+
});
|
|
637
902
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
$
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
if (this._this__u8e3s4__1.indexBoardMembersUser === protoOf(BoardApi).indexBoardMembersUser) {
|
|
647
|
-
this.state_1 = 2;
|
|
648
|
-
suspendResult = this._this__u8e3s4__1.indexBoardMembersUser$default_b2607b_k$(this.companyIds_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
649
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
650
|
-
return suspendResult;
|
|
651
|
-
}
|
|
652
|
-
continue $sm;
|
|
653
|
-
} else {
|
|
654
|
-
this.state_1 = 1;
|
|
655
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexBoardMembersUser(this.companyIds_1, this.search_1, this.roleType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
656
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
657
|
-
return suspendResult;
|
|
658
|
-
}
|
|
659
|
-
continue $sm;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
case 1:
|
|
663
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
664
|
-
this.state_1 = 3;
|
|
665
|
-
continue $sm;
|
|
666
|
-
case 2:
|
|
667
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
668
|
-
this.state_1 = 3;
|
|
669
|
-
continue $sm;
|
|
670
|
-
case 3:
|
|
671
|
-
return this.WHEN_RESULT0__1;
|
|
672
|
-
case 4:
|
|
673
|
-
throw this.exception_1;
|
|
674
|
-
}
|
|
675
|
-
} catch ($p) {
|
|
676
|
-
var e = $p;
|
|
677
|
-
if (this.exceptionState_1 === 4) {
|
|
678
|
-
throw e;
|
|
679
|
-
} else {
|
|
680
|
-
this.state_1 = this.exceptionState_1;
|
|
681
|
-
this.exception_1 = e;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
while (true);
|
|
685
|
-
};
|
|
686
|
-
function $showBoardMemberPersonnummerCOROUTINE$(_this__u8e3s4, companyId, personId, fields, resultContinuation) {
|
|
903
|
+
function showBoardMemberPersonnummerOperation_0(client, companyId, personId, fields, $completion) {
|
|
904
|
+
fields = fields === VOID ? null : fields;
|
|
905
|
+
var tmp = new $showBoardMemberPersonnummerOperationCOROUTINE$(client, companyId, personId, fields, $completion);
|
|
906
|
+
tmp.result_1 = Unit_instance;
|
|
907
|
+
tmp.exception_1 = null;
|
|
908
|
+
return tmp.doResume_5yljmg_k$();
|
|
909
|
+
}
|
|
910
|
+
function $showBoardMemberPersonnummerOperationCOROUTINE$(client, companyId, personId, fields, resultContinuation) {
|
|
687
911
|
CoroutineImpl.call(this, resultContinuation);
|
|
688
|
-
this.
|
|
912
|
+
this.client_1 = client;
|
|
689
913
|
this.companyId_1 = companyId;
|
|
690
914
|
this.personId_1 = personId;
|
|
691
915
|
this.fields_1 = fields;
|
|
692
916
|
}
|
|
693
|
-
protoOf($
|
|
917
|
+
protoOf($showBoardMemberPersonnummerOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
694
918
|
var suspendResult = this.result_1;
|
|
695
919
|
$sm: do
|
|
696
920
|
try {
|
|
@@ -713,7 +937,7 @@ protoOf($showBoardMemberPersonnummerCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
713
937
|
var tmp2_path = replace(replace('/companies/{companyId}/board/{personId}/personalIdentityNumber', '{companyId}', this.companyId_1.toString()), '{personId}', this.personId_1.toString());
|
|
714
938
|
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
715
939
|
this.state_1 = 1;
|
|
716
|
-
suspendResult = this.
|
|
940
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
717
941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
942
|
return suspendResult;
|
|
719
943
|
}
|
|
@@ -752,176 +976,6 @@ protoOf($showBoardMemberPersonnummerCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
752
976
|
}
|
|
753
977
|
while (true);
|
|
754
978
|
};
|
|
755
|
-
function $showBoardMemberPersonnummer$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, personId, fields, resultContinuation) {
|
|
756
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
757
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
758
|
-
this.companyId_1 = companyId;
|
|
759
|
-
this.personId_1 = personId;
|
|
760
|
-
this.fields_1 = fields;
|
|
761
|
-
}
|
|
762
|
-
protoOf($showBoardMemberPersonnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
763
|
-
var suspendResult = this.result_1;
|
|
764
|
-
$sm: do
|
|
765
|
-
try {
|
|
766
|
-
var tmp = this.state_1;
|
|
767
|
-
switch (tmp) {
|
|
768
|
-
case 0:
|
|
769
|
-
this.exceptionState_1 = 4;
|
|
770
|
-
if (this._this__u8e3s4__1.showBoardMemberPersonnummer === protoOf(BoardApi).showBoardMemberPersonnummer) {
|
|
771
|
-
this.state_1 = 2;
|
|
772
|
-
suspendResult = this._this__u8e3s4__1.showBoardMemberPersonnummer$default_4gyzk8_k$(this.companyId_1, this.personId_1, this.fields_1, this);
|
|
773
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
774
|
-
return suspendResult;
|
|
775
|
-
}
|
|
776
|
-
continue $sm;
|
|
777
|
-
} else {
|
|
778
|
-
this.state_1 = 1;
|
|
779
|
-
suspendResult = await_0(this._this__u8e3s4__1.showBoardMemberPersonnummer(this.companyId_1, this.personId_1, this.fields_1), this);
|
|
780
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
781
|
-
return suspendResult;
|
|
782
|
-
}
|
|
783
|
-
continue $sm;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
case 1:
|
|
787
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
788
|
-
this.state_1 = 3;
|
|
789
|
-
continue $sm;
|
|
790
|
-
case 2:
|
|
791
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
792
|
-
this.state_1 = 3;
|
|
793
|
-
continue $sm;
|
|
794
|
-
case 3:
|
|
795
|
-
return this.WHEN_RESULT0__1;
|
|
796
|
-
case 4:
|
|
797
|
-
throw this.exception_1;
|
|
798
|
-
}
|
|
799
|
-
} catch ($p) {
|
|
800
|
-
var e = $p;
|
|
801
|
-
if (this.exceptionState_1 === 4) {
|
|
802
|
-
throw e;
|
|
803
|
-
} else {
|
|
804
|
-
this.state_1 = this.exceptionState_1;
|
|
805
|
-
this.exception_1 = e;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
while (true);
|
|
809
|
-
};
|
|
810
|
-
protoOf(BoardApi).createPersonBoard_xsnxc_k$ = function (companyId, addBoardmemberCommand, $completion) {
|
|
811
|
-
var tmp = new $createPersonBoardCOROUTINE$(this, companyId, addBoardmemberCommand, $completion);
|
|
812
|
-
tmp.result_1 = Unit_instance;
|
|
813
|
-
tmp.exception_1 = null;
|
|
814
|
-
return tmp.doResume_5yljmg_k$();
|
|
815
|
-
};
|
|
816
|
-
protoOf(BoardApi).createPersonBoard = function (companyId, addBoardmemberCommand) {
|
|
817
|
-
var tmp = this;
|
|
818
|
-
return promisify(function ($completion) {
|
|
819
|
-
return tmp.createPersonBoard_xsnxc_k$(companyId, addBoardmemberCommand, $completion);
|
|
820
|
-
});
|
|
821
|
-
};
|
|
822
|
-
protoOf(BoardApi).createPersonBoard$suspendBridge_bptam9_k$ = function (companyId, addBoardmemberCommand, $completion) {
|
|
823
|
-
var tmp = new $createPersonBoard$suspendBridgeCOROUTINE$(this, companyId, addBoardmemberCommand, $completion);
|
|
824
|
-
tmp.result_1 = Unit_instance;
|
|
825
|
-
tmp.exception_1 = null;
|
|
826
|
-
return tmp.doResume_5yljmg_k$();
|
|
827
|
-
};
|
|
828
|
-
protoOf(BoardApi).deletePersonBoard_cmrkpq_k$ = function (companyId, personId, $completion) {
|
|
829
|
-
var tmp = new $deletePersonBoardCOROUTINE$(this, companyId, personId, $completion);
|
|
830
|
-
tmp.result_1 = Unit_instance;
|
|
831
|
-
tmp.exception_1 = null;
|
|
832
|
-
return tmp.doResume_5yljmg_k$();
|
|
833
|
-
};
|
|
834
|
-
protoOf(BoardApi).deletePersonBoard = function (companyId, personId) {
|
|
835
|
-
var tmp = this;
|
|
836
|
-
return promisify(function ($completion) {
|
|
837
|
-
return tmp.deletePersonBoard_cmrkpq_k$(companyId, personId, $completion);
|
|
838
|
-
});
|
|
839
|
-
};
|
|
840
|
-
protoOf(BoardApi).deletePersonBoard$suspendBridge_3llw0t_k$ = function (companyId, personId, $completion) {
|
|
841
|
-
var tmp = new $deletePersonBoard$suspendBridgeCOROUTINE$(this, companyId, personId, $completion);
|
|
842
|
-
tmp.result_1 = Unit_instance;
|
|
843
|
-
tmp.exception_1 = null;
|
|
844
|
-
return tmp.doResume_5yljmg_k$();
|
|
845
|
-
};
|
|
846
|
-
protoOf(BoardApi).indexBoard_5gyon5_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
847
|
-
var tmp = new $indexBoardCOROUTINE$(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
848
|
-
tmp.result_1 = Unit_instance;
|
|
849
|
-
tmp.exception_1 = null;
|
|
850
|
-
return tmp.doResume_5yljmg_k$();
|
|
851
|
-
};
|
|
852
|
-
protoOf(BoardApi).indexBoard$default_wnerad_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
853
|
-
search = search === VOID ? null : search;
|
|
854
|
-
roleType = roleType === VOID ? null : roleType;
|
|
855
|
-
fields = fields === VOID ? null : fields;
|
|
856
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
857
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
858
|
-
count = count === VOID ? null : count;
|
|
859
|
-
return $super === VOID ? this.indexBoard_5gyon5_k$(companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) : $super.indexBoard_5gyon5_k$.call(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
860
|
-
};
|
|
861
|
-
protoOf(BoardApi).indexBoard = function (companyId, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
862
|
-
var tmp = this;
|
|
863
|
-
return promisify(function ($completion) {
|
|
864
|
-
return tmp.indexBoard$default_wnerad_k$(companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
865
|
-
});
|
|
866
|
-
};
|
|
867
|
-
protoOf(BoardApi).indexBoard$suspendBridge_un538g_k$ = function (companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
868
|
-
var tmp = new $indexBoard$suspendBridgeCOROUTINE$(this, companyId, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
869
|
-
tmp.result_1 = Unit_instance;
|
|
870
|
-
tmp.exception_1 = null;
|
|
871
|
-
return tmp.doResume_5yljmg_k$();
|
|
872
|
-
};
|
|
873
|
-
protoOf(BoardApi).indexBoardMembersUser_f3pdks_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
874
|
-
var tmp = new $indexBoardMembersUserCOROUTINE$(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
875
|
-
tmp.result_1 = Unit_instance;
|
|
876
|
-
tmp.exception_1 = null;
|
|
877
|
-
return tmp.doResume_5yljmg_k$();
|
|
878
|
-
};
|
|
879
|
-
protoOf(BoardApi).indexBoardMembersUser$default_b2607b_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
880
|
-
companyIds = companyIds === VOID ? null : companyIds;
|
|
881
|
-
search = search === VOID ? null : search;
|
|
882
|
-
roleType = roleType === VOID ? null : roleType;
|
|
883
|
-
fields = fields === VOID ? null : fields;
|
|
884
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
885
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
886
|
-
count = count === VOID ? null : count;
|
|
887
|
-
return $super === VOID ? this.indexBoardMembersUser_f3pdks_k$(companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) : $super.indexBoardMembersUser_f3pdks_k$.call(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
888
|
-
};
|
|
889
|
-
protoOf(BoardApi).indexBoardMembersUser = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count) {
|
|
890
|
-
var tmp = this;
|
|
891
|
-
return promisify(function ($completion) {
|
|
892
|
-
return tmp.indexBoardMembersUser$default_b2607b_k$(companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
893
|
-
});
|
|
894
|
-
};
|
|
895
|
-
protoOf(BoardApi).indexBoardMembersUser$suspendBridge_fx84ez_k$ = function (companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion) {
|
|
896
|
-
var tmp = new $indexBoardMembersUser$suspendBridgeCOROUTINE$(this, companyIds, search, roleType, fields, pageToken, autoPaginate, count, $completion);
|
|
897
|
-
tmp.result_1 = Unit_instance;
|
|
898
|
-
tmp.exception_1 = null;
|
|
899
|
-
return tmp.doResume_5yljmg_k$();
|
|
900
|
-
};
|
|
901
|
-
protoOf(BoardApi).showBoardMemberPersonnummer_43teiz_k$ = function (companyId, personId, fields, $completion) {
|
|
902
|
-
var tmp = new $showBoardMemberPersonnummerCOROUTINE$(this, companyId, personId, fields, $completion);
|
|
903
|
-
tmp.result_1 = Unit_instance;
|
|
904
|
-
tmp.exception_1 = null;
|
|
905
|
-
return tmp.doResume_5yljmg_k$();
|
|
906
|
-
};
|
|
907
|
-
protoOf(BoardApi).showBoardMemberPersonnummer$default_4gyzk8_k$ = function (companyId, personId, fields, $completion, $super) {
|
|
908
|
-
fields = fields === VOID ? null : fields;
|
|
909
|
-
return $super === VOID ? this.showBoardMemberPersonnummer_43teiz_k$(companyId, personId, fields, $completion) : $super.showBoardMemberPersonnummer_43teiz_k$.call(this, companyId, personId, fields, $completion);
|
|
910
|
-
};
|
|
911
|
-
protoOf(BoardApi).showBoardMemberPersonnummer = function (companyId, personId, fields) {
|
|
912
|
-
var tmp = this;
|
|
913
|
-
return promisify(function ($completion) {
|
|
914
|
-
return tmp.showBoardMemberPersonnummer$default_4gyzk8_k$(companyId, personId, fields, $completion);
|
|
915
|
-
});
|
|
916
|
-
};
|
|
917
|
-
protoOf(BoardApi).showBoardMemberPersonnummer$suspendBridge_p5wdsm_k$ = function (companyId, personId, fields, $completion) {
|
|
918
|
-
var tmp = new $showBoardMemberPersonnummer$suspendBridgeCOROUTINE$(this, companyId, personId, fields, $completion);
|
|
919
|
-
tmp.result_1 = Unit_instance;
|
|
920
|
-
tmp.exception_1 = null;
|
|
921
|
-
return tmp.doResume_5yljmg_k$();
|
|
922
|
-
};
|
|
923
|
-
function BoardApi() {
|
|
924
|
-
}
|
|
925
979
|
function Companion() {
|
|
926
980
|
}
|
|
927
981
|
var Companion_instance;
|
|
@@ -1216,6 +1270,11 @@ BoardApi.createWithClient = createWithClient;
|
|
|
1216
1270
|
export {
|
|
1217
1271
|
boardApi as boardApi,
|
|
1218
1272
|
BoardApi as BoardApi,
|
|
1273
|
+
createPersonBoardOperation as createPersonBoardOperation,
|
|
1274
|
+
deletePersonBoardOperation as deletePersonBoardOperation,
|
|
1275
|
+
indexBoardMembersUserOperation as indexBoardMembersUserOperation,
|
|
1276
|
+
indexBoardOperation as indexBoardOperation,
|
|
1277
|
+
showBoardMemberPersonnummerOperation as showBoardMemberPersonnummerOperation,
|
|
1219
1278
|
AddBoardmemberCommand as AddBoardmemberCommand,
|
|
1220
1279
|
BoardmemberPersonnummer as BoardmemberPersonnummer,
|
|
1221
1280
|
};
|