@solibo/home-api 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.mjs +4 -8
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +2 -2
- package/ktor-ktor-websockets.mjs +2 -2
- 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
|
Unitkvevlwgzwiuc as Unit,
|
|
12
17
|
arrayOf1akklvh2at202 as arrayOf,
|
|
13
18
|
createKType31ecntyyaay3k as createKType,
|
|
14
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
15
|
-
await3n7kedgocftsv as await_0,
|
|
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,
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
45
45
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
46
46
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
47
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
47
48
|
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
48
49
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
49
50
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
@@ -52,7 +53,6 @@ import {
|
|
|
52
53
|
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
53
54
|
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
54
55
|
toMultiValue5gsdsvx60e2f as toMultiValue,
|
|
55
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
56
56
|
$serializer_getInstance2u6e9d36lcolu as $serializer_getInstance,
|
|
57
57
|
$serializer_getInstance2ubvlf5l752ie as $serializer_getInstance_0,
|
|
58
58
|
Companion_getInstance3mpe8l1z1vmkn as Companion_getInstance_0,
|
|
@@ -82,35 +82,35 @@ import { LocalDateSerializer_getInstance3qg2c8779i3ej as LocalDateSerializer_get
|
|
|
82
82
|
var imul = Math.imul;
|
|
83
83
|
//endregion
|
|
84
84
|
//region block: pre-declaration
|
|
85
|
-
initMetadataForCoroutine($completeThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
86
85
|
initMetadataForCoroutine($completeThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
87
|
-
initMetadataForCoroutine($createThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
88
86
|
initMetadataForCoroutine($createThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
89
|
-
initMetadataForCoroutine($getThirdPartyInformationAccountsCOROUTINE$, CoroutineImpl);
|
|
90
87
|
initMetadataForCoroutine($getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
91
|
-
initMetadataForCoroutine($indexThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
92
88
|
initMetadataForCoroutine($indexThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
93
|
-
initMetadataForCoroutine($indexThirdPartyInformationDialogCOROUTINE$, CoroutineImpl);
|
|
94
89
|
initMetadataForCoroutine($indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForCoroutine($indexThirdPartyInformationLetterByDialogYearCOROUTINE$, CoroutineImpl);
|
|
96
90
|
initMetadataForCoroutine($indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
97
|
-
initMetadataForCoroutine($overrideThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
98
91
|
initMetadataForCoroutine($overrideThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
99
|
-
initMetadataForCoroutine($reOpenThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
100
92
|
initMetadataForCoroutine($reOpenThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
101
|
-
initMetadataForCoroutine($sendThirdPartyInformationToSkatteetatenCOROUTINE$, CoroutineImpl);
|
|
102
93
|
initMetadataForCoroutine($sendThirdPartyInformationToSkatteetaten$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
103
|
-
initMetadataForCoroutine($sendThirdPartyInformationWithDigiPostCOROUTINE$, CoroutineImpl);
|
|
104
94
|
initMetadataForCoroutine($sendThirdPartyInformationWithDigiPost$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
105
|
-
initMetadataForCoroutine($showThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
106
95
|
initMetadataForCoroutine($showThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
107
|
-
initMetadataForCoroutine($showThirdPartyInformationLetterCOROUTINE$, CoroutineImpl);
|
|
108
96
|
initMetadataForCoroutine($showThirdPartyInformationLetter$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
109
|
-
initMetadataForCoroutine($showThirdPartyInformationLetterByDialogYearCOROUTINE$, CoroutineImpl);
|
|
110
97
|
initMetadataForCoroutine($showThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
111
|
-
initMetadataForCoroutine($updateThirdPartyInformationCOROUTINE$, CoroutineImpl);
|
|
112
98
|
initMetadataForCoroutine($updateThirdPartyInformation$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
113
99
|
initMetadataForClass(ThirdPartyInformationApi, 'ThirdPartyInformationApi', create, ApiClient, VOID, [2, 3, 6, 8]);
|
|
100
|
+
initMetadataForCoroutine($completeThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
101
|
+
initMetadataForCoroutine($createThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
102
|
+
initMetadataForCoroutine($getThirdPartyInformationAccountsOperationCOROUTINE$, CoroutineImpl);
|
|
103
|
+
initMetadataForCoroutine($indexThirdPartyInformationDialogOperationCOROUTINE$, CoroutineImpl);
|
|
104
|
+
initMetadataForCoroutine($indexThirdPartyInformationLetterByDialogYearOperationCOROUTINE$, CoroutineImpl);
|
|
105
|
+
initMetadataForCoroutine($indexThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
106
|
+
initMetadataForCoroutine($overrideThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
107
|
+
initMetadataForCoroutine($reOpenThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
108
|
+
initMetadataForCoroutine($sendThirdPartyInformationToSkatteetatenOperationCOROUTINE$, CoroutineImpl);
|
|
109
|
+
initMetadataForCoroutine($sendThirdPartyInformationWithDigiPostOperationCOROUTINE$, CoroutineImpl);
|
|
110
|
+
initMetadataForCoroutine($showThirdPartyInformationLetterByDialogYearOperationCOROUTINE$, CoroutineImpl);
|
|
111
|
+
initMetadataForCoroutine($showThirdPartyInformationLetterOperationCOROUTINE$, CoroutineImpl);
|
|
112
|
+
initMetadataForCoroutine($showThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
113
|
+
initMetadataForCoroutine($updateThirdPartyInformationOperationCOROUTINE$, CoroutineImpl);
|
|
114
114
|
initMetadataForCompanion(Companion);
|
|
115
115
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
116
116
|
initMetadataForClass(Avvik, 'Avvik', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
@@ -298,67 +298,6 @@ function ThirdPartyInformationApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
298
298
|
function createWithClient(baseUrl, httpClient) {
|
|
299
299
|
return ThirdPartyInformationApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(ThirdPartyInformationApi)));
|
|
300
300
|
}
|
|
301
|
-
function $completeThirdPartyInformationCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, resultContinuation) {
|
|
302
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
303
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
304
|
-
this.companyId_1 = companyId;
|
|
305
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
306
|
-
}
|
|
307
|
-
protoOf($completeThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
308
|
-
var suspendResult = this.result_1;
|
|
309
|
-
$sm: do
|
|
310
|
-
try {
|
|
311
|
-
var tmp = this.state_1;
|
|
312
|
-
switch (tmp) {
|
|
313
|
-
case 0:
|
|
314
|
-
this.exceptionState_1 = 2;
|
|
315
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
316
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
317
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
318
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
319
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
320
|
-
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/complete', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
321
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
322
|
-
this.state_1 = 1;
|
|
323
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
324
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
325
|
-
return suspendResult;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
continue $sm;
|
|
329
|
-
case 1:
|
|
330
|
-
var this_0 = suspendResult;
|
|
331
|
-
var tmp_0 = getKClass(Unit);
|
|
332
|
-
var tmp_1 = null instanceof Unit;
|
|
333
|
-
var tmp_2;
|
|
334
|
-
try {
|
|
335
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
336
|
-
} catch ($p) {
|
|
337
|
-
var tmp_3;
|
|
338
|
-
if ($p instanceof Error) {
|
|
339
|
-
var _unused_var__etf5q3 = $p;
|
|
340
|
-
tmp_3 = null;
|
|
341
|
-
} else {
|
|
342
|
-
throw $p;
|
|
343
|
-
}
|
|
344
|
-
tmp_2 = tmp_3;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
348
|
-
case 2:
|
|
349
|
-
throw this.exception_1;
|
|
350
|
-
}
|
|
351
|
-
} catch ($p_0) {
|
|
352
|
-
var e = $p_0;
|
|
353
|
-
if (this.exceptionState_1 === 2) {
|
|
354
|
-
throw e;
|
|
355
|
-
} else {
|
|
356
|
-
this.state_1 = this.exceptionState_1;
|
|
357
|
-
this.exception_1 = e;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
while (true);
|
|
361
|
-
};
|
|
362
301
|
function $completeThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, resultContinuation) {
|
|
363
302
|
CoroutineImpl.call(this, resultContinuation);
|
|
364
303
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -413,67 +352,53 @@ protoOf($completeThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_
|
|
|
413
352
|
}
|
|
414
353
|
while (true);
|
|
415
354
|
};
|
|
416
|
-
function $
|
|
355
|
+
function $createThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, generateThirdPartyInformationCommand, year, resultContinuation) {
|
|
417
356
|
CoroutineImpl.call(this, resultContinuation);
|
|
418
357
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
419
358
|
this.companyId_1 = companyId;
|
|
420
359
|
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
421
360
|
this.year_1 = year;
|
|
422
361
|
}
|
|
423
|
-
protoOf($
|
|
362
|
+
protoOf($createThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
424
363
|
var suspendResult = this.result_1;
|
|
425
364
|
$sm: do
|
|
426
365
|
try {
|
|
427
366
|
var tmp = this.state_1;
|
|
428
367
|
switch (tmp) {
|
|
429
368
|
case 0:
|
|
430
|
-
this.exceptionState_1 =
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
else {
|
|
437
|
-
var value = listOf_0(this.year_1.toString());
|
|
438
|
-
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
442
|
-
var tmp1_method = RequestMethod_POST_getInstance();
|
|
443
|
-
var tmp2_path = replace('/companies/{companyId}/thirdPartyInformation', '{companyId}', this.companyId_1.toString());
|
|
444
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
445
|
-
this.state_1 = 1;
|
|
446
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
447
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
448
|
-
return suspendResult;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
continue $sm;
|
|
452
|
-
case 1:
|
|
453
|
-
var this_0 = suspendResult;
|
|
454
|
-
var tmp_0 = getKClass(ThirdPartyInformation);
|
|
455
|
-
var tmp_1 = null instanceof ThirdPartyInformation;
|
|
456
|
-
var tmp_2;
|
|
457
|
-
try {
|
|
458
|
-
tmp_2 = createKType(getKClass(ThirdPartyInformation), arrayOf([]), false);
|
|
459
|
-
} catch ($p) {
|
|
460
|
-
var tmp_3;
|
|
461
|
-
if ($p instanceof Error) {
|
|
462
|
-
var _unused_var__etf5q3 = $p;
|
|
463
|
-
tmp_3 = null;
|
|
464
|
-
} else {
|
|
465
|
-
throw $p;
|
|
369
|
+
this.exceptionState_1 = 4;
|
|
370
|
+
if (this._this__u8e3s4__1.createThirdPartyInformation === protoOf(ThirdPartyInformationApi).createThirdPartyInformation) {
|
|
371
|
+
this.state_1 = 2;
|
|
372
|
+
suspendResult = this._this__u8e3s4__1.createThirdPartyInformation$default_g2qcis_k$(this.companyId_1, this.generateThirdPartyInformationCommand_1, this.year_1, this);
|
|
373
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
374
|
+
return suspendResult;
|
|
466
375
|
}
|
|
467
|
-
|
|
376
|
+
continue $sm;
|
|
377
|
+
} else {
|
|
378
|
+
this.state_1 = 1;
|
|
379
|
+
suspendResult = await_0(this._this__u8e3s4__1.createThirdPartyInformation(this.companyId_1, this.generateThirdPartyInformationCommand_1, this.year_1), this);
|
|
380
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
381
|
+
return suspendResult;
|
|
382
|
+
}
|
|
383
|
+
continue $sm;
|
|
468
384
|
}
|
|
469
385
|
|
|
470
|
-
|
|
386
|
+
case 1:
|
|
387
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
388
|
+
this.state_1 = 3;
|
|
389
|
+
continue $sm;
|
|
471
390
|
case 2:
|
|
391
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
392
|
+
this.state_1 = 3;
|
|
393
|
+
continue $sm;
|
|
394
|
+
case 3:
|
|
395
|
+
return this.WHEN_RESULT0__1;
|
|
396
|
+
case 4:
|
|
472
397
|
throw this.exception_1;
|
|
473
398
|
}
|
|
474
|
-
} catch ($
|
|
475
|
-
var e = $
|
|
476
|
-
if (this.exceptionState_1 ===
|
|
399
|
+
} catch ($p) {
|
|
400
|
+
var e = $p;
|
|
401
|
+
if (this.exceptionState_1 === 4) {
|
|
477
402
|
throw e;
|
|
478
403
|
} else {
|
|
479
404
|
this.state_1 = this.exceptionState_1;
|
|
@@ -482,14 +407,14 @@ protoOf($createThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
482
407
|
}
|
|
483
408
|
while (true);
|
|
484
409
|
};
|
|
485
|
-
function $
|
|
410
|
+
function $getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, fields, resultContinuation) {
|
|
486
411
|
CoroutineImpl.call(this, resultContinuation);
|
|
487
412
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
488
413
|
this.companyId_1 = companyId;
|
|
489
|
-
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
490
414
|
this.year_1 = year;
|
|
415
|
+
this.fields_1 = fields;
|
|
491
416
|
}
|
|
492
|
-
protoOf($
|
|
417
|
+
protoOf($getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
493
418
|
var suspendResult = this.result_1;
|
|
494
419
|
$sm: do
|
|
495
420
|
try {
|
|
@@ -497,16 +422,16 @@ protoOf($createThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
497
422
|
switch (tmp) {
|
|
498
423
|
case 0:
|
|
499
424
|
this.exceptionState_1 = 4;
|
|
500
|
-
if (this._this__u8e3s4__1.
|
|
425
|
+
if (this._this__u8e3s4__1.getThirdPartyInformationAccounts === protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts) {
|
|
501
426
|
this.state_1 = 2;
|
|
502
|
-
suspendResult = this._this__u8e3s4__1.
|
|
427
|
+
suspendResult = this._this__u8e3s4__1.getThirdPartyInformationAccounts$default_9nhsv6_k$(this.companyId_1, this.year_1, this.fields_1, this);
|
|
503
428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
504
429
|
return suspendResult;
|
|
505
430
|
}
|
|
506
431
|
continue $sm;
|
|
507
432
|
} else {
|
|
508
433
|
this.state_1 = 1;
|
|
509
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
434
|
+
suspendResult = await_0(this._this__u8e3s4__1.getThirdPartyInformationAccounts(this.companyId_1, this.year_1, this.fields_1), this);
|
|
510
435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
511
436
|
return suspendResult;
|
|
512
437
|
}
|
|
@@ -537,74 +462,56 @@ protoOf($createThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
537
462
|
}
|
|
538
463
|
while (true);
|
|
539
464
|
};
|
|
540
|
-
function $
|
|
465
|
+
function $indexThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
541
466
|
CoroutineImpl.call(this, resultContinuation);
|
|
542
467
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
543
468
|
this.companyId_1 = companyId;
|
|
544
469
|
this.year_1 = year;
|
|
545
470
|
this.fields_1 = fields;
|
|
471
|
+
this.pageToken_1 = pageToken;
|
|
472
|
+
this.autoPaginate_1 = autoPaginate;
|
|
473
|
+
this.count_1 = count;
|
|
546
474
|
}
|
|
547
|
-
protoOf($
|
|
475
|
+
protoOf($indexThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
548
476
|
var suspendResult = this.result_1;
|
|
549
477
|
$sm: do
|
|
550
478
|
try {
|
|
551
479
|
var tmp = this.state_1;
|
|
552
480
|
switch (tmp) {
|
|
553
481
|
case 0:
|
|
554
|
-
this.exceptionState_1 =
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
else {
|
|
561
|
-
var value = listOf_0(this.year_1.toString());
|
|
562
|
-
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
if (this.fields_1 == null)
|
|
566
|
-
null;
|
|
567
|
-
else {
|
|
568
|
-
var value_0 = listOf_0(this.fields_1);
|
|
569
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
573
|
-
var tmp2_method = RequestMethod_GET_getInstance();
|
|
574
|
-
var tmp3_path = replace('/companies/{companyId}/thirdPartyInformation/accounts', '{companyId}', this.companyId_1.toString());
|
|
575
|
-
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
576
|
-
this.state_1 = 1;
|
|
577
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
578
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
579
|
-
return suspendResult;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
continue $sm;
|
|
583
|
-
case 1:
|
|
584
|
-
var this_0 = suspendResult;
|
|
585
|
-
var tmp_0 = getKClass(GenerateThirdPartyInformationCommand);
|
|
586
|
-
var tmp_1 = null instanceof GenerateThirdPartyInformationCommand;
|
|
587
|
-
var tmp_2;
|
|
588
|
-
try {
|
|
589
|
-
tmp_2 = createKType(getKClass(GenerateThirdPartyInformationCommand), arrayOf([]), false);
|
|
590
|
-
} catch ($p) {
|
|
591
|
-
var tmp_3;
|
|
592
|
-
if ($p instanceof Error) {
|
|
593
|
-
var _unused_var__etf5q3 = $p;
|
|
594
|
-
tmp_3 = null;
|
|
595
|
-
} else {
|
|
596
|
-
throw $p;
|
|
482
|
+
this.exceptionState_1 = 4;
|
|
483
|
+
if (this._this__u8e3s4__1.indexThirdPartyInformation === protoOf(ThirdPartyInformationApi).indexThirdPartyInformation) {
|
|
484
|
+
this.state_1 = 2;
|
|
485
|
+
suspendResult = this._this__u8e3s4__1.indexThirdPartyInformation$default_wuwdzv_k$(this.companyId_1, this.year_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
486
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
487
|
+
return suspendResult;
|
|
597
488
|
}
|
|
598
|
-
|
|
489
|
+
continue $sm;
|
|
490
|
+
} else {
|
|
491
|
+
this.state_1 = 1;
|
|
492
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexThirdPartyInformation(this.companyId_1, this.year_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
493
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
494
|
+
return suspendResult;
|
|
495
|
+
}
|
|
496
|
+
continue $sm;
|
|
599
497
|
}
|
|
600
498
|
|
|
601
|
-
|
|
499
|
+
case 1:
|
|
500
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
501
|
+
this.state_1 = 3;
|
|
502
|
+
continue $sm;
|
|
602
503
|
case 2:
|
|
504
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
505
|
+
this.state_1 = 3;
|
|
506
|
+
continue $sm;
|
|
507
|
+
case 3:
|
|
508
|
+
return this.WHEN_RESULT0__1;
|
|
509
|
+
case 4:
|
|
603
510
|
throw this.exception_1;
|
|
604
511
|
}
|
|
605
|
-
} catch ($
|
|
606
|
-
var e = $
|
|
607
|
-
if (this.exceptionState_1 ===
|
|
512
|
+
} catch ($p) {
|
|
513
|
+
var e = $p;
|
|
514
|
+
if (this.exceptionState_1 === 4) {
|
|
608
515
|
throw e;
|
|
609
516
|
} else {
|
|
610
517
|
this.state_1 = this.exceptionState_1;
|
|
@@ -613,14 +520,14 @@ protoOf($getThirdPartyInformationAccountsCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
613
520
|
}
|
|
614
521
|
while (true);
|
|
615
522
|
};
|
|
616
|
-
function $
|
|
523
|
+
function $indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, fields, resultContinuation) {
|
|
617
524
|
CoroutineImpl.call(this, resultContinuation);
|
|
618
525
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
619
526
|
this.companyId_1 = companyId;
|
|
620
527
|
this.year_1 = year;
|
|
621
528
|
this.fields_1 = fields;
|
|
622
529
|
}
|
|
623
|
-
protoOf($
|
|
530
|
+
protoOf($indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
624
531
|
var suspendResult = this.result_1;
|
|
625
532
|
$sm: do
|
|
626
533
|
try {
|
|
@@ -628,16 +535,16 @@ protoOf($getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
628
535
|
switch (tmp) {
|
|
629
536
|
case 0:
|
|
630
537
|
this.exceptionState_1 = 4;
|
|
631
|
-
if (this._this__u8e3s4__1.
|
|
538
|
+
if (this._this__u8e3s4__1.indexThirdPartyInformationDialog === protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog) {
|
|
632
539
|
this.state_1 = 2;
|
|
633
|
-
suspendResult = this._this__u8e3s4__1.
|
|
540
|
+
suspendResult = this._this__u8e3s4__1.indexThirdPartyInformationDialog$default_l0qb36_k$(this.companyId_1, this.year_1, this.fields_1, this);
|
|
634
541
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
635
542
|
return suspendResult;
|
|
636
543
|
}
|
|
637
544
|
continue $sm;
|
|
638
545
|
} else {
|
|
639
546
|
this.state_1 = 1;
|
|
640
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
547
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexThirdPartyInformationDialog(this.companyId_1, this.year_1, this.fields_1), this);
|
|
641
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
642
549
|
return suspendResult;
|
|
643
550
|
}
|
|
@@ -668,100 +575,58 @@ protoOf($getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
668
575
|
}
|
|
669
576
|
while (true);
|
|
670
577
|
};
|
|
671
|
-
function $
|
|
578
|
+
function $indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
672
579
|
CoroutineImpl.call(this, resultContinuation);
|
|
673
580
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
674
581
|
this.companyId_1 = companyId;
|
|
675
|
-
this.
|
|
582
|
+
this.sectionId_1 = sectionId;
|
|
583
|
+
this.personId_1 = personId;
|
|
584
|
+
this.redirect_1 = redirect;
|
|
676
585
|
this.fields_1 = fields;
|
|
677
586
|
this.pageToken_1 = pageToken;
|
|
678
587
|
this.autoPaginate_1 = autoPaginate;
|
|
679
588
|
this.count_1 = count;
|
|
680
589
|
}
|
|
681
|
-
protoOf($
|
|
590
|
+
protoOf($indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
682
591
|
var suspendResult = this.result_1;
|
|
683
592
|
$sm: do
|
|
684
593
|
try {
|
|
685
594
|
var tmp = this.state_1;
|
|
686
595
|
switch (tmp) {
|
|
687
596
|
case 0:
|
|
688
|
-
this.exceptionState_1 =
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
else {
|
|
695
|
-
var value = listOf_0(this.year_1.toString());
|
|
696
|
-
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (this.fields_1 == null)
|
|
700
|
-
null;
|
|
701
|
-
else {
|
|
702
|
-
var value_0 = listOf_0(this.fields_1);
|
|
703
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
if (this.pageToken_1 == null)
|
|
707
|
-
null;
|
|
708
|
-
else {
|
|
709
|
-
var tmp2 = 'pageToken';
|
|
710
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
711
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
if (this.autoPaginate_1 == null)
|
|
715
|
-
null;
|
|
716
|
-
else {
|
|
717
|
-
var tmp2_0 = 'autoPaginate';
|
|
718
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
719
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
if (this.count_1 == null)
|
|
723
|
-
null;
|
|
724
|
-
else {
|
|
725
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
726
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
730
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
731
|
-
var tmp6_path = replace('/companies/{companyId}/thirdPartyInformation', '{companyId}', this.companyId_1.toString());
|
|
732
|
-
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
733
|
-
this.state_1 = 1;
|
|
734
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
735
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
736
|
-
return suspendResult;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
continue $sm;
|
|
740
|
-
case 1:
|
|
741
|
-
var this_0 = suspendResult;
|
|
742
|
-
var tmp_0 = getKClass(PagedListThirdPartyInformationYear);
|
|
743
|
-
var tmp_1 = null instanceof PagedListThirdPartyInformationYear;
|
|
744
|
-
var tmp_2;
|
|
745
|
-
try {
|
|
746
|
-
tmp_2 = createKType(getKClass(PagedListThirdPartyInformationYear), arrayOf([]), false);
|
|
747
|
-
} catch ($p) {
|
|
748
|
-
var tmp_3;
|
|
749
|
-
if ($p instanceof Error) {
|
|
750
|
-
var _unused_var__etf5q3 = $p;
|
|
751
|
-
tmp_3 = null;
|
|
752
|
-
} else {
|
|
753
|
-
throw $p;
|
|
597
|
+
this.exceptionState_1 = 4;
|
|
598
|
+
if (this._this__u8e3s4__1.indexThirdPartyInformationLetterByDialogYear === protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear) {
|
|
599
|
+
this.state_1 = 2;
|
|
600
|
+
suspendResult = this._this__u8e3s4__1.indexThirdPartyInformationLetterByDialogYear$default_qkknvm_k$(this.companyId_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
601
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
602
|
+
return suspendResult;
|
|
754
603
|
}
|
|
755
|
-
|
|
604
|
+
continue $sm;
|
|
605
|
+
} else {
|
|
606
|
+
this.state_1 = 1;
|
|
607
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexThirdPartyInformationLetterByDialogYear(this.companyId_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
608
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
|
+
return suspendResult;
|
|
610
|
+
}
|
|
611
|
+
continue $sm;
|
|
756
612
|
}
|
|
757
613
|
|
|
758
|
-
|
|
614
|
+
case 1:
|
|
615
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
616
|
+
this.state_1 = 3;
|
|
617
|
+
continue $sm;
|
|
759
618
|
case 2:
|
|
619
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
620
|
+
this.state_1 = 3;
|
|
621
|
+
continue $sm;
|
|
622
|
+
case 3:
|
|
623
|
+
return this.WHEN_RESULT0__1;
|
|
624
|
+
case 4:
|
|
760
625
|
throw this.exception_1;
|
|
761
626
|
}
|
|
762
|
-
} catch ($
|
|
763
|
-
var e = $
|
|
764
|
-
if (this.exceptionState_1 ===
|
|
627
|
+
} catch ($p) {
|
|
628
|
+
var e = $p;
|
|
629
|
+
if (this.exceptionState_1 === 4) {
|
|
765
630
|
throw e;
|
|
766
631
|
} else {
|
|
767
632
|
this.state_1 = this.exceptionState_1;
|
|
@@ -770,17 +635,14 @@ protoOf($indexThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
770
635
|
}
|
|
771
636
|
while (true);
|
|
772
637
|
};
|
|
773
|
-
function $
|
|
638
|
+
function $overrideThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, resultContinuation) {
|
|
774
639
|
CoroutineImpl.call(this, resultContinuation);
|
|
775
640
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
776
641
|
this.companyId_1 = companyId;
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.pageToken_1 = pageToken;
|
|
780
|
-
this.autoPaginate_1 = autoPaginate;
|
|
781
|
-
this.count_1 = count;
|
|
642
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
643
|
+
this.overrideThirdPartyInformationResultCommand_1 = overrideThirdPartyInformationResultCommand;
|
|
782
644
|
}
|
|
783
|
-
protoOf($
|
|
645
|
+
protoOf($overrideThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
784
646
|
var suspendResult = this.result_1;
|
|
785
647
|
$sm: do
|
|
786
648
|
try {
|
|
@@ -788,16 +650,16 @@ protoOf($indexThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
788
650
|
switch (tmp) {
|
|
789
651
|
case 0:
|
|
790
652
|
this.exceptionState_1 = 4;
|
|
791
|
-
if (this._this__u8e3s4__1.
|
|
653
|
+
if (this._this__u8e3s4__1.overrideThirdPartyInformation === protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation) {
|
|
792
654
|
this.state_1 = 2;
|
|
793
|
-
suspendResult = this._this__u8e3s4__1.
|
|
655
|
+
suspendResult = this._this__u8e3s4__1.overrideThirdPartyInformation_hzic5j_k$(this.companyId_1, this.thirdPartyInformationId_1, this.overrideThirdPartyInformationResultCommand_1, this);
|
|
794
656
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
795
657
|
return suspendResult;
|
|
796
658
|
}
|
|
797
659
|
continue $sm;
|
|
798
660
|
} else {
|
|
799
661
|
this.state_1 = 1;
|
|
800
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
662
|
+
suspendResult = await_0(this._this__u8e3s4__1.overrideThirdPartyInformation(this.companyId_1, this.thirdPartyInformationId_1, this.overrideThirdPartyInformationResultCommand_1), this);
|
|
801
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
802
664
|
return suspendResult;
|
|
803
665
|
}
|
|
@@ -828,67 +690,107 @@ protoOf($indexThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
828
690
|
}
|
|
829
691
|
while (true);
|
|
830
692
|
};
|
|
831
|
-
function $
|
|
693
|
+
function $reOpenThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, resultContinuation) {
|
|
832
694
|
CoroutineImpl.call(this, resultContinuation);
|
|
833
695
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
834
696
|
this.companyId_1 = companyId;
|
|
835
|
-
this.
|
|
836
|
-
this.fields_1 = fields;
|
|
697
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
837
698
|
}
|
|
838
|
-
protoOf($
|
|
699
|
+
protoOf($reOpenThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
839
700
|
var suspendResult = this.result_1;
|
|
840
701
|
$sm: do
|
|
841
702
|
try {
|
|
842
703
|
var tmp = this.state_1;
|
|
843
704
|
switch (tmp) {
|
|
844
705
|
case 0:
|
|
845
|
-
this.exceptionState_1 =
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
this.state_1 = 1;
|
|
861
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
862
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
863
|
-
return suspendResult;
|
|
706
|
+
this.exceptionState_1 = 4;
|
|
707
|
+
if (this._this__u8e3s4__1.reOpenThirdPartyInformation === protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation) {
|
|
708
|
+
this.state_1 = 2;
|
|
709
|
+
suspendResult = this._this__u8e3s4__1.reOpenThirdPartyInformation_ru8d3g_k$(this.companyId_1, this.thirdPartyInformationId_1, this);
|
|
710
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
711
|
+
return suspendResult;
|
|
712
|
+
}
|
|
713
|
+
continue $sm;
|
|
714
|
+
} else {
|
|
715
|
+
this.state_1 = 1;
|
|
716
|
+
suspendResult = await_0(this._this__u8e3s4__1.reOpenThirdPartyInformation(this.companyId_1, this.thirdPartyInformationId_1), this);
|
|
717
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
|
+
return suspendResult;
|
|
719
|
+
}
|
|
720
|
+
continue $sm;
|
|
864
721
|
}
|
|
865
722
|
|
|
866
|
-
continue $sm;
|
|
867
723
|
case 1:
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
724
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
725
|
+
this.state_1 = 3;
|
|
726
|
+
continue $sm;
|
|
727
|
+
case 2:
|
|
728
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
729
|
+
this.state_1 = 3;
|
|
730
|
+
continue $sm;
|
|
731
|
+
case 3:
|
|
732
|
+
return this.WHEN_RESULT0__1;
|
|
733
|
+
case 4:
|
|
734
|
+
throw this.exception_1;
|
|
735
|
+
}
|
|
736
|
+
} catch ($p) {
|
|
737
|
+
var e = $p;
|
|
738
|
+
if (this.exceptionState_1 === 4) {
|
|
739
|
+
throw e;
|
|
740
|
+
} else {
|
|
741
|
+
this.state_1 = this.exceptionState_1;
|
|
742
|
+
this.exception_1 = e;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
while (true);
|
|
746
|
+
};
|
|
747
|
+
function $sendThirdPartyInformationToSkatteetaten$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, autoPublish, resultContinuation) {
|
|
748
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
749
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
750
|
+
this.companyId_1 = companyId;
|
|
751
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
752
|
+
this.autoPublish_1 = autoPublish;
|
|
753
|
+
}
|
|
754
|
+
protoOf($sendThirdPartyInformationToSkatteetaten$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
755
|
+
var suspendResult = this.result_1;
|
|
756
|
+
$sm: do
|
|
757
|
+
try {
|
|
758
|
+
var tmp = this.state_1;
|
|
759
|
+
switch (tmp) {
|
|
760
|
+
case 0:
|
|
761
|
+
this.exceptionState_1 = 4;
|
|
762
|
+
if (this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten === protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten) {
|
|
763
|
+
this.state_1 = 2;
|
|
764
|
+
suspendResult = this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten$default_wtca3n_k$(this.companyId_1, this.thirdPartyInformationId_1, this.autoPublish_1, this);
|
|
765
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
766
|
+
return suspendResult;
|
|
881
767
|
}
|
|
882
|
-
|
|
768
|
+
continue $sm;
|
|
769
|
+
} else {
|
|
770
|
+
this.state_1 = 1;
|
|
771
|
+
suspendResult = await_0(this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten(this.companyId_1, this.thirdPartyInformationId_1, this.autoPublish_1), this);
|
|
772
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
773
|
+
return suspendResult;
|
|
774
|
+
}
|
|
775
|
+
continue $sm;
|
|
883
776
|
}
|
|
884
777
|
|
|
885
|
-
|
|
778
|
+
case 1:
|
|
779
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
780
|
+
this.state_1 = 3;
|
|
781
|
+
continue $sm;
|
|
886
782
|
case 2:
|
|
783
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
784
|
+
this.state_1 = 3;
|
|
785
|
+
continue $sm;
|
|
786
|
+
case 3:
|
|
787
|
+
return this.WHEN_RESULT0__1;
|
|
788
|
+
case 4:
|
|
887
789
|
throw this.exception_1;
|
|
888
790
|
}
|
|
889
|
-
} catch ($
|
|
890
|
-
var e = $
|
|
891
|
-
if (this.exceptionState_1 ===
|
|
791
|
+
} catch ($p) {
|
|
792
|
+
var e = $p;
|
|
793
|
+
if (this.exceptionState_1 === 4) {
|
|
892
794
|
throw e;
|
|
893
795
|
} else {
|
|
894
796
|
this.state_1 = this.exceptionState_1;
|
|
@@ -897,14 +799,14 @@ protoOf($indexThirdPartyInformationDialogCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
897
799
|
}
|
|
898
800
|
while (true);
|
|
899
801
|
};
|
|
900
|
-
function $
|
|
802
|
+
function $sendThirdPartyInformationWithDigiPost$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, publishTo, resultContinuation) {
|
|
901
803
|
CoroutineImpl.call(this, resultContinuation);
|
|
902
804
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
903
805
|
this.companyId_1 = companyId;
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
806
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
807
|
+
this.publishTo_1 = publishTo;
|
|
906
808
|
}
|
|
907
|
-
protoOf($
|
|
809
|
+
protoOf($sendThirdPartyInformationWithDigiPost$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
908
810
|
var suspendResult = this.result_1;
|
|
909
811
|
$sm: do
|
|
910
812
|
try {
|
|
@@ -912,16 +814,16 @@ protoOf($indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
912
814
|
switch (tmp) {
|
|
913
815
|
case 0:
|
|
914
816
|
this.exceptionState_1 = 4;
|
|
915
|
-
if (this._this__u8e3s4__1.
|
|
817
|
+
if (this._this__u8e3s4__1.sendThirdPartyInformationWithDigiPost === protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost) {
|
|
916
818
|
this.state_1 = 2;
|
|
917
|
-
suspendResult = this._this__u8e3s4__1.
|
|
819
|
+
suspendResult = this._this__u8e3s4__1.sendThirdPartyInformationWithDigiPost$default_e26luz_k$(this.companyId_1, this.thirdPartyInformationId_1, this.publishTo_1, this);
|
|
918
820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
919
821
|
return suspendResult;
|
|
920
822
|
}
|
|
921
823
|
continue $sm;
|
|
922
824
|
} else {
|
|
923
825
|
this.state_1 = 1;
|
|
924
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
826
|
+
suspendResult = await_0(this._this__u8e3s4__1.sendThirdPartyInformationWithDigiPost(this.companyId_1, this.thirdPartyInformationId_1, this.publishTo_1), this);
|
|
925
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
828
|
return suspendResult;
|
|
927
829
|
}
|
|
@@ -952,103 +854,53 @@ protoOf($indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
952
854
|
}
|
|
953
855
|
while (true);
|
|
954
856
|
};
|
|
955
|
-
function $
|
|
857
|
+
function $showThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, fields, resultContinuation) {
|
|
956
858
|
CoroutineImpl.call(this, resultContinuation);
|
|
957
859
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
958
860
|
this.companyId_1 = companyId;
|
|
959
|
-
this.
|
|
960
|
-
this.personId_1 = personId;
|
|
961
|
-
this.redirect_1 = redirect;
|
|
861
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
962
862
|
this.fields_1 = fields;
|
|
963
|
-
this.pageToken_1 = pageToken;
|
|
964
|
-
this.autoPaginate_1 = autoPaginate;
|
|
965
|
-
this.count_1 = count;
|
|
966
863
|
}
|
|
967
|
-
protoOf($
|
|
864
|
+
protoOf($showThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
968
865
|
var suspendResult = this.result_1;
|
|
969
866
|
$sm: do
|
|
970
867
|
try {
|
|
971
868
|
var tmp = this.state_1;
|
|
972
869
|
switch (tmp) {
|
|
973
870
|
case 0:
|
|
974
|
-
this.exceptionState_1 =
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
else {
|
|
981
|
-
var tmp2 = 'redirect';
|
|
982
|
-
var value = listOf_0('' + this.redirect_1);
|
|
983
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
if (this.fields_1 == null)
|
|
987
|
-
null;
|
|
988
|
-
else {
|
|
989
|
-
var value_0 = listOf_0(this.fields_1);
|
|
990
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
if (this.pageToken_1 == null)
|
|
994
|
-
null;
|
|
995
|
-
else {
|
|
996
|
-
var tmp2_0 = 'pageToken';
|
|
997
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
998
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
if (this.autoPaginate_1 == null)
|
|
1002
|
-
null;
|
|
1003
|
-
else {
|
|
1004
|
-
var tmp2_1 = 'autoPaginate';
|
|
1005
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1006
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
if (this.count_1 == null)
|
|
1010
|
-
null;
|
|
1011
|
-
else {
|
|
1012
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
1013
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1017
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1018
|
-
var tmp6_path = replace(replace(replace('/companies/{companyId}/thirdPartyInformation/dialog/letters/sections/{sectionId}/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{sectionId}', this.sectionId_1.toString()), '{personId}', this.personId_1.toString());
|
|
1019
|
-
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1020
|
-
this.state_1 = 1;
|
|
1021
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1022
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1023
|
-
return suspendResult;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
continue $sm;
|
|
1027
|
-
case 1:
|
|
1028
|
-
var this_0 = suspendResult;
|
|
1029
|
-
var tmp_0 = getKClass(PagedListThreePOYear);
|
|
1030
|
-
var tmp_1 = null instanceof PagedListThreePOYear;
|
|
1031
|
-
var tmp_2;
|
|
1032
|
-
try {
|
|
1033
|
-
tmp_2 = createKType(getKClass(PagedListThreePOYear), arrayOf([]), false);
|
|
1034
|
-
} catch ($p) {
|
|
1035
|
-
var tmp_3;
|
|
1036
|
-
if ($p instanceof Error) {
|
|
1037
|
-
var _unused_var__etf5q3 = $p;
|
|
1038
|
-
tmp_3 = null;
|
|
1039
|
-
} else {
|
|
1040
|
-
throw $p;
|
|
871
|
+
this.exceptionState_1 = 4;
|
|
872
|
+
if (this._this__u8e3s4__1.showThirdPartyInformation === protoOf(ThirdPartyInformationApi).showThirdPartyInformation) {
|
|
873
|
+
this.state_1 = 2;
|
|
874
|
+
suspendResult = this._this__u8e3s4__1.showThirdPartyInformation$default_qwjk8h_k$(this.companyId_1, this.thirdPartyInformationId_1, this.fields_1, this);
|
|
875
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
|
+
return suspendResult;
|
|
1041
877
|
}
|
|
1042
|
-
|
|
878
|
+
continue $sm;
|
|
879
|
+
} else {
|
|
880
|
+
this.state_1 = 1;
|
|
881
|
+
suspendResult = await_0(this._this__u8e3s4__1.showThirdPartyInformation(this.companyId_1, this.thirdPartyInformationId_1, this.fields_1), this);
|
|
882
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
883
|
+
return suspendResult;
|
|
884
|
+
}
|
|
885
|
+
continue $sm;
|
|
1043
886
|
}
|
|
1044
887
|
|
|
1045
|
-
|
|
888
|
+
case 1:
|
|
889
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
890
|
+
this.state_1 = 3;
|
|
891
|
+
continue $sm;
|
|
1046
892
|
case 2:
|
|
893
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
894
|
+
this.state_1 = 3;
|
|
895
|
+
continue $sm;
|
|
896
|
+
case 3:
|
|
897
|
+
return this.WHEN_RESULT0__1;
|
|
898
|
+
case 4:
|
|
1047
899
|
throw this.exception_1;
|
|
1048
900
|
}
|
|
1049
|
-
} catch ($
|
|
1050
|
-
var e = $
|
|
1051
|
-
if (this.exceptionState_1 ===
|
|
901
|
+
} catch ($p) {
|
|
902
|
+
var e = $p;
|
|
903
|
+
if (this.exceptionState_1 === 4) {
|
|
1052
904
|
throw e;
|
|
1053
905
|
} else {
|
|
1054
906
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1057,19 +909,17 @@ protoOf($indexThirdPartyInformationLetterByDialogYearCOROUTINE$).doResume_5yljmg
|
|
|
1057
909
|
}
|
|
1058
910
|
while (true);
|
|
1059
911
|
};
|
|
1060
|
-
function $
|
|
912
|
+
function $showThirdPartyInformationLetter$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, resultContinuation) {
|
|
1061
913
|
CoroutineImpl.call(this, resultContinuation);
|
|
1062
914
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1063
915
|
this.companyId_1 = companyId;
|
|
916
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1064
917
|
this.sectionId_1 = sectionId;
|
|
1065
918
|
this.personId_1 = personId;
|
|
1066
919
|
this.redirect_1 = redirect;
|
|
1067
920
|
this.fields_1 = fields;
|
|
1068
|
-
this.pageToken_1 = pageToken;
|
|
1069
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1070
|
-
this.count_1 = count;
|
|
1071
921
|
}
|
|
1072
|
-
protoOf($
|
|
922
|
+
protoOf($showThirdPartyInformationLetter$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1073
923
|
var suspendResult = this.result_1;
|
|
1074
924
|
$sm: do
|
|
1075
925
|
try {
|
|
@@ -1077,16 +927,16 @@ protoOf($indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$).d
|
|
|
1077
927
|
switch (tmp) {
|
|
1078
928
|
case 0:
|
|
1079
929
|
this.exceptionState_1 = 4;
|
|
1080
|
-
if (this._this__u8e3s4__1.
|
|
930
|
+
if (this._this__u8e3s4__1.showThirdPartyInformationLetter === protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter) {
|
|
1081
931
|
this.state_1 = 2;
|
|
1082
|
-
suspendResult = this._this__u8e3s4__1.
|
|
932
|
+
suspendResult = this._this__u8e3s4__1.showThirdPartyInformationLetter$default_9wkcqc_k$(this.companyId_1, this.thirdPartyInformationId_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1, this);
|
|
1083
933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1084
934
|
return suspendResult;
|
|
1085
935
|
}
|
|
1086
936
|
continue $sm;
|
|
1087
937
|
} else {
|
|
1088
938
|
this.state_1 = 1;
|
|
1089
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
939
|
+
suspendResult = await_0(this._this__u8e3s4__1.showThirdPartyInformationLetter(this.companyId_1, this.thirdPartyInformationId_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1), this);
|
|
1090
940
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1091
941
|
return suspendResult;
|
|
1092
942
|
}
|
|
@@ -1117,76 +967,17 @@ protoOf($indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$).d
|
|
|
1117
967
|
}
|
|
1118
968
|
while (true);
|
|
1119
969
|
};
|
|
1120
|
-
function $
|
|
1121
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1122
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1123
|
-
this.companyId_1 = companyId;
|
|
1124
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1125
|
-
this.overrideThirdPartyInformationResultCommand_1 = overrideThirdPartyInformationResultCommand;
|
|
1126
|
-
}
|
|
1127
|
-
protoOf($overrideThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1128
|
-
var suspendResult = this.result_1;
|
|
1129
|
-
$sm: do
|
|
1130
|
-
try {
|
|
1131
|
-
var tmp = this.state_1;
|
|
1132
|
-
switch (tmp) {
|
|
1133
|
-
case 0:
|
|
1134
|
-
this.exceptionState_1 = 2;
|
|
1135
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1136
|
-
var localVariableBody = this.overrideThirdPartyInformationResultCommand_1;
|
|
1137
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1138
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1139
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1140
|
-
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/override', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
1141
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1142
|
-
this.state_1 = 1;
|
|
1143
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1144
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
|
-
return suspendResult;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
continue $sm;
|
|
1149
|
-
case 1:
|
|
1150
|
-
var this_0 = suspendResult;
|
|
1151
|
-
var tmp_0 = getKClass(ThirdPartyInformation);
|
|
1152
|
-
var tmp_1 = null instanceof ThirdPartyInformation;
|
|
1153
|
-
var tmp_2;
|
|
1154
|
-
try {
|
|
1155
|
-
tmp_2 = createKType(getKClass(ThirdPartyInformation), arrayOf([]), false);
|
|
1156
|
-
} catch ($p) {
|
|
1157
|
-
var tmp_3;
|
|
1158
|
-
if ($p instanceof Error) {
|
|
1159
|
-
var _unused_var__etf5q3 = $p;
|
|
1160
|
-
tmp_3 = null;
|
|
1161
|
-
} else {
|
|
1162
|
-
throw $p;
|
|
1163
|
-
}
|
|
1164
|
-
tmp_2 = tmp_3;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1168
|
-
case 2:
|
|
1169
|
-
throw this.exception_1;
|
|
1170
|
-
}
|
|
1171
|
-
} catch ($p_0) {
|
|
1172
|
-
var e = $p_0;
|
|
1173
|
-
if (this.exceptionState_1 === 2) {
|
|
1174
|
-
throw e;
|
|
1175
|
-
} else {
|
|
1176
|
-
this.state_1 = this.exceptionState_1;
|
|
1177
|
-
this.exception_1 = e;
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
while (true);
|
|
1181
|
-
};
|
|
1182
|
-
function $overrideThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, resultContinuation) {
|
|
970
|
+
function $showThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, sectionId, personId, redirect, fields, resultContinuation) {
|
|
1183
971
|
CoroutineImpl.call(this, resultContinuation);
|
|
1184
972
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1185
973
|
this.companyId_1 = companyId;
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
974
|
+
this.year_1 = year;
|
|
975
|
+
this.sectionId_1 = sectionId;
|
|
976
|
+
this.personId_1 = personId;
|
|
977
|
+
this.redirect_1 = redirect;
|
|
978
|
+
this.fields_1 = fields;
|
|
1188
979
|
}
|
|
1189
|
-
protoOf($
|
|
980
|
+
protoOf($showThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1190
981
|
var suspendResult = this.result_1;
|
|
1191
982
|
$sm: do
|
|
1192
983
|
try {
|
|
@@ -1194,16 +985,16 @@ protoOf($overrideThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_
|
|
|
1194
985
|
switch (tmp) {
|
|
1195
986
|
case 0:
|
|
1196
987
|
this.exceptionState_1 = 4;
|
|
1197
|
-
if (this._this__u8e3s4__1.
|
|
988
|
+
if (this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear === protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear) {
|
|
1198
989
|
this.state_1 = 2;
|
|
1199
|
-
suspendResult = this._this__u8e3s4__1.
|
|
990
|
+
suspendResult = this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear$default_bn5pgm_k$(this.companyId_1, this.year_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1, this);
|
|
1200
991
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1201
992
|
return suspendResult;
|
|
1202
993
|
}
|
|
1203
994
|
continue $sm;
|
|
1204
995
|
} else {
|
|
1205
996
|
this.state_1 = 1;
|
|
1206
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
997
|
+
suspendResult = await_0(this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear(this.companyId_1, this.year_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1), this);
|
|
1207
998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1208
999
|
return suspendResult;
|
|
1209
1000
|
}
|
|
@@ -1234,74 +1025,14 @@ protoOf($overrideThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_
|
|
|
1234
1025
|
}
|
|
1235
1026
|
while (true);
|
|
1236
1027
|
};
|
|
1237
|
-
function $
|
|
1238
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1239
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1240
|
-
this.companyId_1 = companyId;
|
|
1241
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1242
|
-
}
|
|
1243
|
-
protoOf($reOpenThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1244
|
-
var suspendResult = this.result_1;
|
|
1245
|
-
$sm: do
|
|
1246
|
-
try {
|
|
1247
|
-
var tmp = this.state_1;
|
|
1248
|
-
switch (tmp) {
|
|
1249
|
-
case 0:
|
|
1250
|
-
this.exceptionState_1 = 2;
|
|
1251
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1252
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1253
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1254
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1255
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1256
|
-
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/reOpen', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
1257
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1258
|
-
this.state_1 = 1;
|
|
1259
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1260
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1261
|
-
return suspendResult;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
continue $sm;
|
|
1265
|
-
case 1:
|
|
1266
|
-
var this_0 = suspendResult;
|
|
1267
|
-
var tmp_0 = getKClass(Unit);
|
|
1268
|
-
var tmp_1 = null instanceof Unit;
|
|
1269
|
-
var tmp_2;
|
|
1270
|
-
try {
|
|
1271
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1272
|
-
} catch ($p) {
|
|
1273
|
-
var tmp_3;
|
|
1274
|
-
if ($p instanceof Error) {
|
|
1275
|
-
var _unused_var__etf5q3 = $p;
|
|
1276
|
-
tmp_3 = null;
|
|
1277
|
-
} else {
|
|
1278
|
-
throw $p;
|
|
1279
|
-
}
|
|
1280
|
-
tmp_2 = tmp_3;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1284
|
-
case 2:
|
|
1285
|
-
throw this.exception_1;
|
|
1286
|
-
}
|
|
1287
|
-
} catch ($p_0) {
|
|
1288
|
-
var e = $p_0;
|
|
1289
|
-
if (this.exceptionState_1 === 2) {
|
|
1290
|
-
throw e;
|
|
1291
|
-
} else {
|
|
1292
|
-
this.state_1 = this.exceptionState_1;
|
|
1293
|
-
this.exception_1 = e;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
while (true);
|
|
1297
|
-
};
|
|
1298
|
-
function $reOpenThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, resultContinuation) {
|
|
1028
|
+
function $updateThirdPartyInformation$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, resultContinuation) {
|
|
1299
1029
|
CoroutineImpl.call(this, resultContinuation);
|
|
1300
1030
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1301
1031
|
this.companyId_1 = companyId;
|
|
1302
1032
|
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1033
|
+
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
1303
1034
|
}
|
|
1304
|
-
protoOf($
|
|
1035
|
+
protoOf($updateThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1305
1036
|
var suspendResult = this.result_1;
|
|
1306
1037
|
$sm: do
|
|
1307
1038
|
try {
|
|
@@ -1309,16 +1040,16 @@ protoOf($reOpenThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
1309
1040
|
switch (tmp) {
|
|
1310
1041
|
case 0:
|
|
1311
1042
|
this.exceptionState_1 = 4;
|
|
1312
|
-
if (this._this__u8e3s4__1.
|
|
1043
|
+
if (this._this__u8e3s4__1.updateThirdPartyInformation === protoOf(ThirdPartyInformationApi).updateThirdPartyInformation) {
|
|
1313
1044
|
this.state_1 = 2;
|
|
1314
|
-
suspendResult = this._this__u8e3s4__1.
|
|
1045
|
+
suspendResult = this._this__u8e3s4__1.updateThirdPartyInformation_p9tbxe_k$(this.companyId_1, this.thirdPartyInformationId_1, this.generateThirdPartyInformationCommand_1, this);
|
|
1315
1046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1316
1047
|
return suspendResult;
|
|
1317
1048
|
}
|
|
1318
1049
|
continue $sm;
|
|
1319
1050
|
} else {
|
|
1320
1051
|
this.state_1 = 1;
|
|
1321
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
1052
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateThirdPartyInformation(this.companyId_1, this.thirdPartyInformationId_1, this.generateThirdPartyInformationCommand_1), this);
|
|
1322
1053
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1323
1054
|
return suspendResult;
|
|
1324
1055
|
}
|
|
@@ -1349,14 +1080,287 @@ protoOf($reOpenThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
1349
1080
|
}
|
|
1350
1081
|
while (true);
|
|
1351
1082
|
};
|
|
1352
|
-
function
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1083
|
+
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation_x2o5gw_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
1084
|
+
return completeThirdPartyInformationOperation_0(this, companyId, thirdPartyInformationId, $completion);
|
|
1085
|
+
};
|
|
1086
|
+
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation = function (companyId, thirdPartyInformationId) {
|
|
1087
|
+
var tmp = this;
|
|
1088
|
+
return promisify(function ($completion) {
|
|
1089
|
+
return tmp.completeThirdPartyInformation_x2o5gw_k$(companyId, thirdPartyInformationId, $completion);
|
|
1090
|
+
});
|
|
1091
|
+
};
|
|
1092
|
+
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation$suspendBridge_91u4jz_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
1093
|
+
var tmp = new $completeThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
1094
|
+
tmp.result_1 = Unit_instance;
|
|
1095
|
+
tmp.exception_1 = null;
|
|
1096
|
+
return tmp.doResume_5yljmg_k$();
|
|
1097
|
+
};
|
|
1098
|
+
protoOf(ThirdPartyInformationApi).createThirdPartyInformation_utjjai_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion) {
|
|
1099
|
+
return createThirdPartyInformationOperation_0(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1100
|
+
};
|
|
1101
|
+
protoOf(ThirdPartyInformationApi).createThirdPartyInformation$default_g2qcis_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion, $super) {
|
|
1102
|
+
year = year === VOID ? null : year;
|
|
1103
|
+
return $super === VOID ? this.createThirdPartyInformation_utjjai_k$(companyId, generateThirdPartyInformationCommand, year, $completion) : $super.createThirdPartyInformation_utjjai_k$.call(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1104
|
+
};
|
|
1105
|
+
protoOf(ThirdPartyInformationApi).createThirdPartyInformation = function (companyId, generateThirdPartyInformationCommand, year) {
|
|
1106
|
+
var tmp = this;
|
|
1107
|
+
return promisify(function ($completion) {
|
|
1108
|
+
return tmp.createThirdPartyInformation$default_g2qcis_k$(companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1109
|
+
});
|
|
1110
|
+
};
|
|
1111
|
+
protoOf(ThirdPartyInformationApi).createThirdPartyInformation$suspendBridge_xiklkl_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion) {
|
|
1112
|
+
var tmp = new $createThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1113
|
+
tmp.result_1 = Unit_instance;
|
|
1114
|
+
tmp.exception_1 = null;
|
|
1115
|
+
return tmp.doResume_5yljmg_k$();
|
|
1116
|
+
};
|
|
1117
|
+
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts_4r6rud_k$ = function (companyId, year, fields, $completion) {
|
|
1118
|
+
return getThirdPartyInformationAccountsOperation_0(this, companyId, year, fields, $completion);
|
|
1119
|
+
};
|
|
1120
|
+
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts$default_9nhsv6_k$ = function (companyId, year, fields, $completion, $super) {
|
|
1121
|
+
year = year === VOID ? null : year;
|
|
1122
|
+
fields = fields === VOID ? null : fields;
|
|
1123
|
+
return $super === VOID ? this.getThirdPartyInformationAccounts_4r6rud_k$(companyId, year, fields, $completion) : $super.getThirdPartyInformationAccounts_4r6rud_k$.call(this, companyId, year, fields, $completion);
|
|
1124
|
+
};
|
|
1125
|
+
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts = function (companyId, year, fields) {
|
|
1126
|
+
var tmp = this;
|
|
1127
|
+
return promisify(function ($completion) {
|
|
1128
|
+
return tmp.getThirdPartyInformationAccounts$default_9nhsv6_k$(companyId, year, fields, $completion);
|
|
1129
|
+
});
|
|
1130
|
+
};
|
|
1131
|
+
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts$suspendBridge_3i30ks_k$ = function (companyId, year, fields, $completion) {
|
|
1132
|
+
var tmp = new $getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$(this, companyId, year, fields, $completion);
|
|
1133
|
+
tmp.result_1 = Unit_instance;
|
|
1134
|
+
tmp.exception_1 = null;
|
|
1135
|
+
return tmp.doResume_5yljmg_k$();
|
|
1136
|
+
};
|
|
1137
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation_wntdn3_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1138
|
+
return indexThirdPartyInformationOperation_0(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1139
|
+
};
|
|
1140
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation$default_wuwdzv_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1141
|
+
year = year === VOID ? null : year;
|
|
1142
|
+
fields = fields === VOID ? null : fields;
|
|
1143
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1144
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1145
|
+
count = count === VOID ? null : count;
|
|
1146
|
+
return $super === VOID ? this.indexThirdPartyInformation_wntdn3_k$(companyId, year, fields, pageToken, autoPaginate, count, $completion) : $super.indexThirdPartyInformation_wntdn3_k$.call(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1147
|
+
};
|
|
1148
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation = function (companyId, year, fields, pageToken, autoPaginate, count) {
|
|
1149
|
+
var tmp = this;
|
|
1150
|
+
return promisify(function ($completion) {
|
|
1151
|
+
return tmp.indexThirdPartyInformation$default_wuwdzv_k$(companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1152
|
+
});
|
|
1153
|
+
};
|
|
1154
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation$suspendBridge_x1sf3k_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1155
|
+
var tmp = new $indexThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1156
|
+
tmp.result_1 = Unit_instance;
|
|
1157
|
+
tmp.exception_1 = null;
|
|
1158
|
+
return tmp.doResume_5yljmg_k$();
|
|
1159
|
+
};
|
|
1160
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog_1eonfg_k$ = function (companyId, year, fields, $completion) {
|
|
1161
|
+
return indexThirdPartyInformationDialogOperation_0(this, companyId, year, fields, $completion);
|
|
1162
|
+
};
|
|
1163
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog$default_l0qb36_k$ = function (companyId, year, fields, $completion, $super) {
|
|
1164
|
+
fields = fields === VOID ? null : fields;
|
|
1165
|
+
return $super === VOID ? this.indexThirdPartyInformationDialog_1eonfg_k$(companyId, year, fields, $completion) : $super.indexThirdPartyInformationDialog_1eonfg_k$.call(this, companyId, year, fields, $completion);
|
|
1166
|
+
};
|
|
1167
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog = function (companyId, year, fields) {
|
|
1168
|
+
var tmp = this;
|
|
1169
|
+
return promisify(function ($completion) {
|
|
1170
|
+
return tmp.indexThirdPartyInformationDialog$default_l0qb36_k$(companyId, year, fields, $completion);
|
|
1171
|
+
});
|
|
1172
|
+
};
|
|
1173
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog$suspendBridge_rj5r25_k$ = function (companyId, year, fields, $completion) {
|
|
1174
|
+
var tmp = new $indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$(this, companyId, year, fields, $completion);
|
|
1175
|
+
tmp.result_1 = Unit_instance;
|
|
1176
|
+
tmp.exception_1 = null;
|
|
1177
|
+
return tmp.doResume_5yljmg_k$();
|
|
1178
|
+
};
|
|
1179
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) {
|
|
1180
|
+
return indexThirdPartyInformationLetterByDialogYearOperation_0(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1181
|
+
};
|
|
1182
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear$default_qkknvm_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1183
|
+
redirect = redirect === VOID ? null : redirect;
|
|
1184
|
+
fields = fields === VOID ? null : fields;
|
|
1185
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1186
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1187
|
+
count = count === VOID ? null : count;
|
|
1188
|
+
return $super === VOID ? this.indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$(companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) : $super.indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$.call(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1189
|
+
};
|
|
1190
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count) {
|
|
1191
|
+
var tmp = this;
|
|
1192
|
+
return promisify(function ($completion) {
|
|
1193
|
+
return tmp.indexThirdPartyInformationLetterByDialogYear$default_qkknvm_k$(companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1194
|
+
});
|
|
1195
|
+
};
|
|
1196
|
+
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear$suspendBridge_6w0r3n_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) {
|
|
1197
|
+
var tmp = new $indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1198
|
+
tmp.result_1 = Unit_instance;
|
|
1199
|
+
tmp.exception_1 = null;
|
|
1200
|
+
return tmp.doResume_5yljmg_k$();
|
|
1201
|
+
};
|
|
1202
|
+
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation_hzic5j_k$ = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion) {
|
|
1203
|
+
return overrideThirdPartyInformationOperation_0(this, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
1204
|
+
};
|
|
1205
|
+
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand) {
|
|
1206
|
+
var tmp = this;
|
|
1207
|
+
return promisify(function ($completion) {
|
|
1208
|
+
return tmp.overrideThirdPartyInformation_hzic5j_k$(companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1211
|
+
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation$suspendBridge_d5pvi2_k$ = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion) {
|
|
1212
|
+
var tmp = new $overrideThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
1213
|
+
tmp.result_1 = Unit_instance;
|
|
1214
|
+
tmp.exception_1 = null;
|
|
1215
|
+
return tmp.doResume_5yljmg_k$();
|
|
1216
|
+
};
|
|
1217
|
+
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation_ru8d3g_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
1218
|
+
return reOpenThirdPartyInformationOperation_0(this, companyId, thirdPartyInformationId, $completion);
|
|
1219
|
+
};
|
|
1220
|
+
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation = function (companyId, thirdPartyInformationId) {
|
|
1221
|
+
var tmp = this;
|
|
1222
|
+
return promisify(function ($completion) {
|
|
1223
|
+
return tmp.reOpenThirdPartyInformation_ru8d3g_k$(companyId, thirdPartyInformationId, $completion);
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1226
|
+
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation$suspendBridge_gjyxo3_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
1227
|
+
var tmp = new $reOpenThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
1228
|
+
tmp.result_1 = Unit_instance;
|
|
1229
|
+
tmp.exception_1 = null;
|
|
1230
|
+
return tmp.doResume_5yljmg_k$();
|
|
1231
|
+
};
|
|
1232
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten_j8emq5_k$ = function (companyId, thirdPartyInformationId, autoPublish, $completion) {
|
|
1233
|
+
return sendThirdPartyInformationToSkatteetatenOperation_0(this, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
1234
|
+
};
|
|
1235
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten$default_wtca3n_k$ = function (companyId, thirdPartyInformationId, autoPublish, $completion, $super) {
|
|
1236
|
+
autoPublish = autoPublish === VOID ? null : autoPublish;
|
|
1237
|
+
return $super === VOID ? this.sendThirdPartyInformationToSkatteetaten_j8emq5_k$(companyId, thirdPartyInformationId, autoPublish, $completion) : $super.sendThirdPartyInformationToSkatteetaten_j8emq5_k$.call(this, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
1238
|
+
};
|
|
1239
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten = function (companyId, thirdPartyInformationId, autoPublish) {
|
|
1240
|
+
var tmp = this;
|
|
1241
|
+
return promisify(function ($completion) {
|
|
1242
|
+
return tmp.sendThirdPartyInformationToSkatteetaten$default_wtca3n_k$(companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten$suspendBridge_i2req4_k$ = function (companyId, thirdPartyInformationId, autoPublish, $completion) {
|
|
1246
|
+
var tmp = new $sendThirdPartyInformationToSkatteetaten$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
1247
|
+
tmp.result_1 = Unit_instance;
|
|
1248
|
+
tmp.exception_1 = null;
|
|
1249
|
+
return tmp.doResume_5yljmg_k$();
|
|
1250
|
+
};
|
|
1251
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost_kvfi7v_k$ = function (companyId, thirdPartyInformationId, publishTo, $completion) {
|
|
1252
|
+
return sendThirdPartyInformationWithDigiPostOperation_0(this, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
1253
|
+
};
|
|
1254
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost$default_e26luz_k$ = function (companyId, thirdPartyInformationId, publishTo, $completion, $super) {
|
|
1255
|
+
publishTo = publishTo === VOID ? null : publishTo;
|
|
1256
|
+
return $super === VOID ? this.sendThirdPartyInformationWithDigiPost_kvfi7v_k$(companyId, thirdPartyInformationId, publishTo, $completion) : $super.sendThirdPartyInformationWithDigiPost_kvfi7v_k$.call(this, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
1257
|
+
};
|
|
1258
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost = function (companyId, thirdPartyInformationId, publishTo) {
|
|
1259
|
+
var tmp = this;
|
|
1260
|
+
return promisify(function ($completion) {
|
|
1261
|
+
return tmp.sendThirdPartyInformationWithDigiPost$default_e26luz_k$(companyId, thirdPartyInformationId, publishTo, $completion);
|
|
1262
|
+
});
|
|
1263
|
+
};
|
|
1264
|
+
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost$suspendBridge_frer38_k$ = function (companyId, thirdPartyInformationId, publishTo, $completion) {
|
|
1265
|
+
var tmp = new $sendThirdPartyInformationWithDigiPost$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
1266
|
+
tmp.result_1 = Unit_instance;
|
|
1267
|
+
tmp.exception_1 = null;
|
|
1268
|
+
return tmp.doResume_5yljmg_k$();
|
|
1269
|
+
};
|
|
1270
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformation_qb668z_k$ = function (companyId, thirdPartyInformationId, fields, $completion) {
|
|
1271
|
+
return showThirdPartyInformationOperation_0(this, companyId, thirdPartyInformationId, fields, $completion);
|
|
1272
|
+
};
|
|
1273
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformation$default_qwjk8h_k$ = function (companyId, thirdPartyInformationId, fields, $completion, $super) {
|
|
1274
|
+
fields = fields === VOID ? null : fields;
|
|
1275
|
+
return $super === VOID ? this.showThirdPartyInformation_qb668z_k$(companyId, thirdPartyInformationId, fields, $completion) : $super.showThirdPartyInformation_qb668z_k$.call(this, companyId, thirdPartyInformationId, fields, $completion);
|
|
1276
|
+
};
|
|
1277
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformation = function (companyId, thirdPartyInformationId, fields) {
|
|
1278
|
+
var tmp = this;
|
|
1279
|
+
return promisify(function ($completion) {
|
|
1280
|
+
return tmp.showThirdPartyInformation$default_qwjk8h_k$(companyId, thirdPartyInformationId, fields, $completion);
|
|
1281
|
+
});
|
|
1282
|
+
};
|
|
1283
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformation$suspendBridge_jxol32_k$ = function (companyId, thirdPartyInformationId, fields, $completion) {
|
|
1284
|
+
var tmp = new $showThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, fields, $completion);
|
|
1285
|
+
tmp.result_1 = Unit_instance;
|
|
1286
|
+
tmp.exception_1 = null;
|
|
1287
|
+
return tmp.doResume_5yljmg_k$();
|
|
1288
|
+
};
|
|
1289
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter_n69scb_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) {
|
|
1290
|
+
return showThirdPartyInformationLetterOperation_0(this, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
1291
|
+
};
|
|
1292
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter$default_9wkcqc_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion, $super) {
|
|
1293
|
+
redirect = redirect === VOID ? null : redirect;
|
|
1294
|
+
fields = fields === VOID ? null : fields;
|
|
1295
|
+
return $super === VOID ? this.showThirdPartyInformationLetter_n69scb_k$(companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) : $super.showThirdPartyInformationLetter_n69scb_k$.call(this, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
1296
|
+
};
|
|
1297
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields) {
|
|
1298
|
+
var tmp = this;
|
|
1299
|
+
return promisify(function ($completion) {
|
|
1300
|
+
return tmp.showThirdPartyInformationLetter$default_9wkcqc_k$(companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter$suspendBridge_gsyqmy_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) {
|
|
1304
|
+
var tmp = new $showThirdPartyInformationLetter$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
1305
|
+
tmp.result_1 = Unit_instance;
|
|
1306
|
+
tmp.exception_1 = null;
|
|
1307
|
+
return tmp.doResume_5yljmg_k$();
|
|
1308
|
+
};
|
|
1309
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear_q1ou5z_k$ = function (companyId, year, sectionId, personId, redirect, fields, $completion) {
|
|
1310
|
+
return showThirdPartyInformationLetterByDialogYearOperation_0(this, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
1311
|
+
};
|
|
1312
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear$default_bn5pgm_k$ = function (companyId, year, sectionId, personId, redirect, fields, $completion, $super) {
|
|
1313
|
+
redirect = redirect === VOID ? null : redirect;
|
|
1314
|
+
fields = fields === VOID ? null : fields;
|
|
1315
|
+
return $super === VOID ? this.showThirdPartyInformationLetterByDialogYear_q1ou5z_k$(companyId, year, sectionId, personId, redirect, fields, $completion) : $super.showThirdPartyInformationLetterByDialogYear_q1ou5z_k$.call(this, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
1316
|
+
};
|
|
1317
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear = function (companyId, year, sectionId, personId, redirect, fields) {
|
|
1318
|
+
var tmp = this;
|
|
1319
|
+
return promisify(function ($completion) {
|
|
1320
|
+
return tmp.showThirdPartyInformationLetterByDialogYear$default_bn5pgm_k$(companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
1321
|
+
});
|
|
1322
|
+
};
|
|
1323
|
+
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear$suspendBridge_cscivs_k$ = function (companyId, year, sectionId, personId, redirect, fields, $completion) {
|
|
1324
|
+
var tmp = new $showThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$(this, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
1325
|
+
tmp.result_1 = Unit_instance;
|
|
1326
|
+
tmp.exception_1 = null;
|
|
1327
|
+
return tmp.doResume_5yljmg_k$();
|
|
1328
|
+
};
|
|
1329
|
+
protoOf(ThirdPartyInformationApi).updateThirdPartyInformation_p9tbxe_k$ = function (companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion) {
|
|
1330
|
+
return updateThirdPartyInformationOperation_0(this, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
1331
|
+
};
|
|
1332
|
+
protoOf(ThirdPartyInformationApi).updateThirdPartyInformation = function (companyId, thirdPartyInformationId, generateThirdPartyInformationCommand) {
|
|
1333
|
+
var tmp = this;
|
|
1334
|
+
return promisify(function ($completion) {
|
|
1335
|
+
return tmp.updateThirdPartyInformation_p9tbxe_k$(companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
protoOf(ThirdPartyInformationApi).updateThirdPartyInformation$suspendBridge_zatb6r_k$ = function (companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion) {
|
|
1339
|
+
var tmp = new $updateThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
1340
|
+
tmp.result_1 = Unit_instance;
|
|
1341
|
+
tmp.exception_1 = null;
|
|
1342
|
+
return tmp.doResume_5yljmg_k$();
|
|
1343
|
+
};
|
|
1344
|
+
function ThirdPartyInformationApi() {
|
|
1345
|
+
}
|
|
1346
|
+
function completeThirdPartyInformationOperation(client, companyId, thirdPartyInformationId) {
|
|
1347
|
+
return promisify(function ($completion) {
|
|
1348
|
+
return completeThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, $completion);
|
|
1349
|
+
});
|
|
1358
1350
|
}
|
|
1359
|
-
|
|
1351
|
+
function completeThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, $completion) {
|
|
1352
|
+
var tmp = new $completeThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, $completion);
|
|
1353
|
+
tmp.result_1 = Unit_instance;
|
|
1354
|
+
tmp.exception_1 = null;
|
|
1355
|
+
return tmp.doResume_5yljmg_k$();
|
|
1356
|
+
}
|
|
1357
|
+
function $completeThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, resultContinuation) {
|
|
1358
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1359
|
+
this.client_1 = client;
|
|
1360
|
+
this.companyId_1 = companyId;
|
|
1361
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1362
|
+
}
|
|
1363
|
+
protoOf($completeThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1360
1364
|
var suspendResult = this.result_1;
|
|
1361
1365
|
$sm: do
|
|
1362
1366
|
try {
|
|
@@ -1367,20 +1371,12 @@ protoOf($sendThirdPartyInformationToSkatteetatenCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1367
1371
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1368
1372
|
var localVariableBody = EmptyContent_getInstance();
|
|
1369
1373
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1370
|
-
if (this.autoPublish_1 == null)
|
|
1371
|
-
null;
|
|
1372
|
-
else {
|
|
1373
|
-
var tmp2 = 'autoPublish';
|
|
1374
|
-
var value = listOf_0('' + this.autoPublish_1);
|
|
1375
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
1374
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1379
|
-
var
|
|
1380
|
-
var
|
|
1381
|
-
var localVariableConfig = new RequestConfig(
|
|
1375
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1376
|
+
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/complete', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
1377
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1382
1378
|
this.state_1 = 1;
|
|
1383
|
-
suspendResult = this.
|
|
1379
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1384
1380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1385
1381
|
return suspendResult;
|
|
1386
1382
|
}
|
|
@@ -1419,69 +1415,26 @@ protoOf($sendThirdPartyInformationToSkatteetatenCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1419
1415
|
}
|
|
1420
1416
|
while (true);
|
|
1421
1417
|
};
|
|
1422
|
-
function
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1427
|
-
this.autoPublish_1 = autoPublish;
|
|
1418
|
+
function createThirdPartyInformationOperation(client, companyId, generateThirdPartyInformationCommand, year) {
|
|
1419
|
+
return promisify(function ($completion) {
|
|
1420
|
+
return createThirdPartyInformationOperation_0(client, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1421
|
+
});
|
|
1428
1422
|
}
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
$
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
if (this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten === protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten) {
|
|
1438
|
-
this.state_1 = 2;
|
|
1439
|
-
suspendResult = this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten$default_wtca3n_k$(this.companyId_1, this.thirdPartyInformationId_1, this.autoPublish_1, this);
|
|
1440
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1441
|
-
return suspendResult;
|
|
1442
|
-
}
|
|
1443
|
-
continue $sm;
|
|
1444
|
-
} else {
|
|
1445
|
-
this.state_1 = 1;
|
|
1446
|
-
suspendResult = await_0(this._this__u8e3s4__1.sendThirdPartyInformationToSkatteetaten(this.companyId_1, this.thirdPartyInformationId_1, this.autoPublish_1), this);
|
|
1447
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1448
|
-
return suspendResult;
|
|
1449
|
-
}
|
|
1450
|
-
continue $sm;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
case 1:
|
|
1454
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1455
|
-
this.state_1 = 3;
|
|
1456
|
-
continue $sm;
|
|
1457
|
-
case 2:
|
|
1458
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1459
|
-
this.state_1 = 3;
|
|
1460
|
-
continue $sm;
|
|
1461
|
-
case 3:
|
|
1462
|
-
return this.WHEN_RESULT0__1;
|
|
1463
|
-
case 4:
|
|
1464
|
-
throw this.exception_1;
|
|
1465
|
-
}
|
|
1466
|
-
} catch ($p) {
|
|
1467
|
-
var e = $p;
|
|
1468
|
-
if (this.exceptionState_1 === 4) {
|
|
1469
|
-
throw e;
|
|
1470
|
-
} else {
|
|
1471
|
-
this.state_1 = this.exceptionState_1;
|
|
1472
|
-
this.exception_1 = e;
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
while (true);
|
|
1476
|
-
};
|
|
1477
|
-
function $sendThirdPartyInformationWithDigiPostCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, publishTo, resultContinuation) {
|
|
1423
|
+
function createThirdPartyInformationOperation_0(client, companyId, generateThirdPartyInformationCommand, year, $completion) {
|
|
1424
|
+
year = year === VOID ? null : year;
|
|
1425
|
+
var tmp = new $createThirdPartyInformationOperationCOROUTINE$(client, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
1426
|
+
tmp.result_1 = Unit_instance;
|
|
1427
|
+
tmp.exception_1 = null;
|
|
1428
|
+
return tmp.doResume_5yljmg_k$();
|
|
1429
|
+
}
|
|
1430
|
+
function $createThirdPartyInformationOperationCOROUTINE$(client, companyId, generateThirdPartyInformationCommand, year, resultContinuation) {
|
|
1478
1431
|
CoroutineImpl.call(this, resultContinuation);
|
|
1479
|
-
this.
|
|
1432
|
+
this.client_1 = client;
|
|
1480
1433
|
this.companyId_1 = companyId;
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1434
|
+
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
1435
|
+
this.year_1 = year;
|
|
1483
1436
|
}
|
|
1484
|
-
protoOf($
|
|
1437
|
+
protoOf($createThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1485
1438
|
var suspendResult = this.result_1;
|
|
1486
1439
|
$sm: do
|
|
1487
1440
|
try {
|
|
@@ -1490,23 +1443,21 @@ protoOf($sendThirdPartyInformationWithDigiPostCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
1490
1443
|
case 0:
|
|
1491
1444
|
this.exceptionState_1 = 2;
|
|
1492
1445
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1493
|
-
var localVariableBody =
|
|
1446
|
+
var localVariableBody = this.generateThirdPartyInformationCommand_1;
|
|
1494
1447
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1495
|
-
|
|
1496
|
-
if (tmp0_safe_receiver == null)
|
|
1448
|
+
if (this.year_1 == null)
|
|
1497
1449
|
null;
|
|
1498
1450
|
else {
|
|
1499
|
-
var
|
|
1500
|
-
|
|
1501
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1451
|
+
var value = listOf_0(this.year_1.toString());
|
|
1452
|
+
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
1502
1453
|
}
|
|
1503
1454
|
|
|
1504
1455
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1505
1456
|
var tmp1_method = RequestMethod_POST_getInstance();
|
|
1506
|
-
var tmp2_path = replace(
|
|
1457
|
+
var tmp2_path = replace('/companies/{companyId}/thirdPartyInformation', '{companyId}', this.companyId_1.toString());
|
|
1507
1458
|
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1508
1459
|
this.state_1 = 1;
|
|
1509
|
-
suspendResult = this.
|
|
1460
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1510
1461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1511
1462
|
return suspendResult;
|
|
1512
1463
|
}
|
|
@@ -1514,11 +1465,11 @@ protoOf($sendThirdPartyInformationWithDigiPostCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
1514
1465
|
continue $sm;
|
|
1515
1466
|
case 1:
|
|
1516
1467
|
var this_0 = suspendResult;
|
|
1517
|
-
var tmp_0 = getKClass(
|
|
1518
|
-
var tmp_1 = null instanceof
|
|
1468
|
+
var tmp_0 = getKClass(ThirdPartyInformation);
|
|
1469
|
+
var tmp_1 = null instanceof ThirdPartyInformation;
|
|
1519
1470
|
var tmp_2;
|
|
1520
1471
|
try {
|
|
1521
|
-
tmp_2 = createKType(getKClass(
|
|
1472
|
+
tmp_2 = createKType(getKClass(ThirdPartyInformation), arrayOf([]), false);
|
|
1522
1473
|
} catch ($p) {
|
|
1523
1474
|
var tmp_3;
|
|
1524
1475
|
if ($p instanceof Error) {
|
|
@@ -1545,69 +1496,27 @@ protoOf($sendThirdPartyInformationWithDigiPostCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
1545
1496
|
}
|
|
1546
1497
|
while (true);
|
|
1547
1498
|
};
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1553
|
-
this.publishTo_1 = publishTo;
|
|
1499
|
+
function getThirdPartyInformationAccountsOperation(client, companyId, year, fields) {
|
|
1500
|
+
return promisify(function ($completion) {
|
|
1501
|
+
return getThirdPartyInformationAccountsOperation_0(client, companyId, year, fields, $completion);
|
|
1502
|
+
});
|
|
1554
1503
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
this.state_1 = 2;
|
|
1565
|
-
suspendResult = this._this__u8e3s4__1.sendThirdPartyInformationWithDigiPost$default_e26luz_k$(this.companyId_1, this.thirdPartyInformationId_1, this.publishTo_1, this);
|
|
1566
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1567
|
-
return suspendResult;
|
|
1568
|
-
}
|
|
1569
|
-
continue $sm;
|
|
1570
|
-
} else {
|
|
1571
|
-
this.state_1 = 1;
|
|
1572
|
-
suspendResult = await_0(this._this__u8e3s4__1.sendThirdPartyInformationWithDigiPost(this.companyId_1, this.thirdPartyInformationId_1, this.publishTo_1), this);
|
|
1573
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1574
|
-
return suspendResult;
|
|
1575
|
-
}
|
|
1576
|
-
continue $sm;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
case 1:
|
|
1580
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1581
|
-
this.state_1 = 3;
|
|
1582
|
-
continue $sm;
|
|
1583
|
-
case 2:
|
|
1584
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1585
|
-
this.state_1 = 3;
|
|
1586
|
-
continue $sm;
|
|
1587
|
-
case 3:
|
|
1588
|
-
return this.WHEN_RESULT0__1;
|
|
1589
|
-
case 4:
|
|
1590
|
-
throw this.exception_1;
|
|
1591
|
-
}
|
|
1592
|
-
} catch ($p) {
|
|
1593
|
-
var e = $p;
|
|
1594
|
-
if (this.exceptionState_1 === 4) {
|
|
1595
|
-
throw e;
|
|
1596
|
-
} else {
|
|
1597
|
-
this.state_1 = this.exceptionState_1;
|
|
1598
|
-
this.exception_1 = e;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
while (true);
|
|
1602
|
-
};
|
|
1603
|
-
function $showThirdPartyInformationCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, fields, resultContinuation) {
|
|
1504
|
+
function getThirdPartyInformationAccountsOperation_0(client, companyId, year, fields, $completion) {
|
|
1505
|
+
year = year === VOID ? null : year;
|
|
1506
|
+
fields = fields === VOID ? null : fields;
|
|
1507
|
+
var tmp = new $getThirdPartyInformationAccountsOperationCOROUTINE$(client, companyId, year, fields, $completion);
|
|
1508
|
+
tmp.result_1 = Unit_instance;
|
|
1509
|
+
tmp.exception_1 = null;
|
|
1510
|
+
return tmp.doResume_5yljmg_k$();
|
|
1511
|
+
}
|
|
1512
|
+
function $getThirdPartyInformationAccountsOperationCOROUTINE$(client, companyId, year, fields, resultContinuation) {
|
|
1604
1513
|
CoroutineImpl.call(this, resultContinuation);
|
|
1605
|
-
this.
|
|
1514
|
+
this.client_1 = client;
|
|
1606
1515
|
this.companyId_1 = companyId;
|
|
1607
|
-
this.
|
|
1516
|
+
this.year_1 = year;
|
|
1608
1517
|
this.fields_1 = fields;
|
|
1609
1518
|
}
|
|
1610
|
-
protoOf($
|
|
1519
|
+
protoOf($getThirdPartyInformationAccountsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1611
1520
|
var suspendResult = this.result_1;
|
|
1612
1521
|
$sm: do
|
|
1613
1522
|
try {
|
|
@@ -1618,19 +1527,26 @@ protoOf($showThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1618
1527
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1619
1528
|
var localVariableBody = EmptyContent_getInstance();
|
|
1620
1529
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1530
|
+
if (this.year_1 == null)
|
|
1531
|
+
null;
|
|
1532
|
+
else {
|
|
1533
|
+
var value = listOf_0(this.year_1.toString());
|
|
1534
|
+
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1621
1537
|
if (this.fields_1 == null)
|
|
1622
1538
|
null;
|
|
1623
1539
|
else {
|
|
1624
|
-
var
|
|
1625
|
-
localVariableQuery.put_4fpzoq_k$('fields',
|
|
1540
|
+
var value_0 = listOf_0(this.fields_1);
|
|
1541
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1626
1542
|
}
|
|
1627
1543
|
|
|
1628
1544
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1629
|
-
var
|
|
1630
|
-
var
|
|
1631
|
-
var localVariableConfig = new RequestConfig(
|
|
1545
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
1546
|
+
var tmp3_path = replace('/companies/{companyId}/thirdPartyInformation/accounts', '{companyId}', this.companyId_1.toString());
|
|
1547
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1632
1548
|
this.state_1 = 1;
|
|
1633
|
-
suspendResult = this.
|
|
1549
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1634
1550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1635
1551
|
return suspendResult;
|
|
1636
1552
|
}
|
|
@@ -1638,11 +1554,11 @@ protoOf($showThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1638
1554
|
continue $sm;
|
|
1639
1555
|
case 1:
|
|
1640
1556
|
var this_0 = suspendResult;
|
|
1641
|
-
var tmp_0 = getKClass(
|
|
1642
|
-
var tmp_1 = null instanceof
|
|
1557
|
+
var tmp_0 = getKClass(GenerateThirdPartyInformationCommand);
|
|
1558
|
+
var tmp_1 = null instanceof GenerateThirdPartyInformationCommand;
|
|
1643
1559
|
var tmp_2;
|
|
1644
1560
|
try {
|
|
1645
|
-
tmp_2 = createKType(getKClass(
|
|
1561
|
+
tmp_2 = createKType(getKClass(GenerateThirdPartyInformationCommand), arrayOf([]), false);
|
|
1646
1562
|
} catch ($p) {
|
|
1647
1563
|
var tmp_3;
|
|
1648
1564
|
if ($p instanceof Error) {
|
|
@@ -1669,53 +1585,79 @@ protoOf($showThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1669
1585
|
}
|
|
1670
1586
|
while (true);
|
|
1671
1587
|
};
|
|
1672
|
-
function
|
|
1588
|
+
function indexThirdPartyInformationDialogOperation(client, companyId, year, fields) {
|
|
1589
|
+
return promisify(function ($completion) {
|
|
1590
|
+
return indexThirdPartyInformationDialogOperation_0(client, companyId, year, fields, $completion);
|
|
1591
|
+
});
|
|
1592
|
+
}
|
|
1593
|
+
function indexThirdPartyInformationDialogOperation_0(client, companyId, year, fields, $completion) {
|
|
1594
|
+
fields = fields === VOID ? null : fields;
|
|
1595
|
+
var tmp = new $indexThirdPartyInformationDialogOperationCOROUTINE$(client, companyId, year, fields, $completion);
|
|
1596
|
+
tmp.result_1 = Unit_instance;
|
|
1597
|
+
tmp.exception_1 = null;
|
|
1598
|
+
return tmp.doResume_5yljmg_k$();
|
|
1599
|
+
}
|
|
1600
|
+
function $indexThirdPartyInformationDialogOperationCOROUTINE$(client, companyId, year, fields, resultContinuation) {
|
|
1673
1601
|
CoroutineImpl.call(this, resultContinuation);
|
|
1674
|
-
this.
|
|
1602
|
+
this.client_1 = client;
|
|
1675
1603
|
this.companyId_1 = companyId;
|
|
1676
|
-
this.
|
|
1604
|
+
this.year_1 = year;
|
|
1677
1605
|
this.fields_1 = fields;
|
|
1678
1606
|
}
|
|
1679
|
-
protoOf($
|
|
1607
|
+
protoOf($indexThirdPartyInformationDialogOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1680
1608
|
var suspendResult = this.result_1;
|
|
1681
1609
|
$sm: do
|
|
1682
1610
|
try {
|
|
1683
1611
|
var tmp = this.state_1;
|
|
1684
1612
|
switch (tmp) {
|
|
1685
1613
|
case 0:
|
|
1686
|
-
this.exceptionState_1 =
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1614
|
+
this.exceptionState_1 = 2;
|
|
1615
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1616
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1617
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1618
|
+
if (this.fields_1 == null)
|
|
1619
|
+
null;
|
|
1620
|
+
else {
|
|
1621
|
+
var value = listOf_0(this.fields_1);
|
|
1622
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1626
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1627
|
+
var tmp2_path = replace(replace('/companies/{companyId}/thirdPartyInformation/dialog/{year}', '{companyId}', this.companyId_1.toString()), '{year}', '' + this.year_1);
|
|
1628
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1629
|
+
this.state_1 = 1;
|
|
1630
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1631
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1632
|
+
return suspendResult;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
continue $sm;
|
|
1636
|
+
case 1:
|
|
1637
|
+
var this_0 = suspendResult;
|
|
1638
|
+
var tmp_0 = getKClass(ThreePODialog);
|
|
1639
|
+
var tmp_1 = null instanceof ThreePODialog;
|
|
1640
|
+
var tmp_2;
|
|
1641
|
+
try {
|
|
1642
|
+
tmp_2 = createKType(getKClass(ThreePODialog), arrayOf([]), false);
|
|
1643
|
+
} catch ($p) {
|
|
1644
|
+
var tmp_3;
|
|
1645
|
+
if ($p instanceof Error) {
|
|
1646
|
+
var _unused_var__etf5q3 = $p;
|
|
1647
|
+
tmp_3 = null;
|
|
1648
|
+
} else {
|
|
1649
|
+
throw $p;
|
|
1699
1650
|
}
|
|
1700
|
-
|
|
1651
|
+
tmp_2 = tmp_3;
|
|
1701
1652
|
}
|
|
1702
1653
|
|
|
1703
|
-
|
|
1704
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1705
|
-
this.state_1 = 3;
|
|
1706
|
-
continue $sm;
|
|
1654
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1707
1655
|
case 2:
|
|
1708
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1709
|
-
this.state_1 = 3;
|
|
1710
|
-
continue $sm;
|
|
1711
|
-
case 3:
|
|
1712
|
-
return this.WHEN_RESULT0__1;
|
|
1713
|
-
case 4:
|
|
1714
1656
|
throw this.exception_1;
|
|
1715
1657
|
}
|
|
1716
|
-
} catch ($
|
|
1717
|
-
var e = $
|
|
1718
|
-
if (this.exceptionState_1 ===
|
|
1658
|
+
} catch ($p_0) {
|
|
1659
|
+
var e = $p_0;
|
|
1660
|
+
if (this.exceptionState_1 === 2) {
|
|
1719
1661
|
throw e;
|
|
1720
1662
|
} else {
|
|
1721
1663
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1724,17 +1666,35 @@ protoOf($showThirdPartyInformation$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1724
1666
|
}
|
|
1725
1667
|
while (true);
|
|
1726
1668
|
};
|
|
1727
|
-
function
|
|
1669
|
+
function indexThirdPartyInformationLetterByDialogYearOperation(client, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count) {
|
|
1670
|
+
return promisify(function ($completion) {
|
|
1671
|
+
return indexThirdPartyInformationLetterByDialogYearOperation_0(client, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
function indexThirdPartyInformationLetterByDialogYearOperation_0(client, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) {
|
|
1675
|
+
redirect = redirect === VOID ? null : redirect;
|
|
1676
|
+
fields = fields === VOID ? null : fields;
|
|
1677
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1678
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1679
|
+
count = count === VOID ? null : count;
|
|
1680
|
+
var tmp = new $indexThirdPartyInformationLetterByDialogYearOperationCOROUTINE$(client, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
1681
|
+
tmp.result_1 = Unit_instance;
|
|
1682
|
+
tmp.exception_1 = null;
|
|
1683
|
+
return tmp.doResume_5yljmg_k$();
|
|
1684
|
+
}
|
|
1685
|
+
function $indexThirdPartyInformationLetterByDialogYearOperationCOROUTINE$(client, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1728
1686
|
CoroutineImpl.call(this, resultContinuation);
|
|
1729
|
-
this.
|
|
1687
|
+
this.client_1 = client;
|
|
1730
1688
|
this.companyId_1 = companyId;
|
|
1731
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1732
1689
|
this.sectionId_1 = sectionId;
|
|
1733
1690
|
this.personId_1 = personId;
|
|
1734
1691
|
this.redirect_1 = redirect;
|
|
1735
1692
|
this.fields_1 = fields;
|
|
1693
|
+
this.pageToken_1 = pageToken;
|
|
1694
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1695
|
+
this.count_1 = count;
|
|
1736
1696
|
}
|
|
1737
|
-
protoOf($
|
|
1697
|
+
protoOf($indexThirdPartyInformationLetterByDialogYearOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1738
1698
|
var suspendResult = this.result_1;
|
|
1739
1699
|
$sm: do
|
|
1740
1700
|
try {
|
|
@@ -1760,12 +1720,35 @@ protoOf($showThirdPartyInformationLetterCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1760
1720
|
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1761
1721
|
}
|
|
1762
1722
|
|
|
1723
|
+
if (this.pageToken_1 == null)
|
|
1724
|
+
null;
|
|
1725
|
+
else {
|
|
1726
|
+
var tmp2_0 = 'pageToken';
|
|
1727
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
1728
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
if (this.autoPaginate_1 == null)
|
|
1732
|
+
null;
|
|
1733
|
+
else {
|
|
1734
|
+
var tmp2_1 = 'autoPaginate';
|
|
1735
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1736
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
if (this.count_1 == null)
|
|
1740
|
+
null;
|
|
1741
|
+
else {
|
|
1742
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
1743
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1763
1746
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1764
|
-
var
|
|
1765
|
-
var
|
|
1766
|
-
var localVariableConfig = new RequestConfig(
|
|
1747
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1748
|
+
var tmp6_path = replace(replace(replace('/companies/{companyId}/thirdPartyInformation/dialog/letters/sections/{sectionId}/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{sectionId}', this.sectionId_1.toString()), '{personId}', this.personId_1.toString());
|
|
1749
|
+
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1767
1750
|
this.state_1 = 1;
|
|
1768
|
-
suspendResult = this.
|
|
1751
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1769
1752
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1770
1753
|
return suspendResult;
|
|
1771
1754
|
}
|
|
@@ -1773,11 +1756,11 @@ protoOf($showThirdPartyInformationLetterCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1773
1756
|
continue $sm;
|
|
1774
1757
|
case 1:
|
|
1775
1758
|
var this_0 = suspendResult;
|
|
1776
|
-
var tmp_0 = getKClass(
|
|
1777
|
-
var tmp_1 = null instanceof
|
|
1759
|
+
var tmp_0 = getKClass(PagedListThreePOYear);
|
|
1760
|
+
var tmp_1 = null instanceof PagedListThreePOYear;
|
|
1778
1761
|
var tmp_2;
|
|
1779
1762
|
try {
|
|
1780
|
-
tmp_2 = createKType(getKClass(
|
|
1763
|
+
tmp_2 = createKType(getKClass(PagedListThreePOYear), arrayOf([]), false);
|
|
1781
1764
|
} catch ($p) {
|
|
1782
1765
|
var tmp_3;
|
|
1783
1766
|
if ($p instanceof Error) {
|
|
@@ -1804,75 +1787,33 @@ protoOf($showThirdPartyInformationLetterCOROUTINE$).doResume_5yljmg_k$ = functio
|
|
|
1804
1787
|
}
|
|
1805
1788
|
while (true);
|
|
1806
1789
|
};
|
|
1807
|
-
function
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
1812
|
-
this.sectionId_1 = sectionId;
|
|
1813
|
-
this.personId_1 = personId;
|
|
1814
|
-
this.redirect_1 = redirect;
|
|
1815
|
-
this.fields_1 = fields;
|
|
1790
|
+
function indexThirdPartyInformationOperation(client, companyId, year, fields, pageToken, autoPaginate, count) {
|
|
1791
|
+
return promisify(function ($completion) {
|
|
1792
|
+
return indexThirdPartyInformationOperation_0(client, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1793
|
+
});
|
|
1816
1794
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
return suspendResult;
|
|
1830
|
-
}
|
|
1831
|
-
continue $sm;
|
|
1832
|
-
} else {
|
|
1833
|
-
this.state_1 = 1;
|
|
1834
|
-
suspendResult = await_0(this._this__u8e3s4__1.showThirdPartyInformationLetter(this.companyId_1, this.thirdPartyInformationId_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1), this);
|
|
1835
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1836
|
-
return suspendResult;
|
|
1837
|
-
}
|
|
1838
|
-
continue $sm;
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
case 1:
|
|
1842
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1843
|
-
this.state_1 = 3;
|
|
1844
|
-
continue $sm;
|
|
1845
|
-
case 2:
|
|
1846
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1847
|
-
this.state_1 = 3;
|
|
1848
|
-
continue $sm;
|
|
1849
|
-
case 3:
|
|
1850
|
-
return this.WHEN_RESULT0__1;
|
|
1851
|
-
case 4:
|
|
1852
|
-
throw this.exception_1;
|
|
1853
|
-
}
|
|
1854
|
-
} catch ($p) {
|
|
1855
|
-
var e = $p;
|
|
1856
|
-
if (this.exceptionState_1 === 4) {
|
|
1857
|
-
throw e;
|
|
1858
|
-
} else {
|
|
1859
|
-
this.state_1 = this.exceptionState_1;
|
|
1860
|
-
this.exception_1 = e;
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
while (true);
|
|
1864
|
-
};
|
|
1865
|
-
function $showThirdPartyInformationLetterByDialogYearCOROUTINE$(_this__u8e3s4, companyId, year, sectionId, personId, redirect, fields, resultContinuation) {
|
|
1795
|
+
function indexThirdPartyInformationOperation_0(client, companyId, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1796
|
+
year = year === VOID ? null : year;
|
|
1797
|
+
fields = fields === VOID ? null : fields;
|
|
1798
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1799
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1800
|
+
count = count === VOID ? null : count;
|
|
1801
|
+
var tmp = new $indexThirdPartyInformationOperationCOROUTINE$(client, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1802
|
+
tmp.result_1 = Unit_instance;
|
|
1803
|
+
tmp.exception_1 = null;
|
|
1804
|
+
return tmp.doResume_5yljmg_k$();
|
|
1805
|
+
}
|
|
1806
|
+
function $indexThirdPartyInformationOperationCOROUTINE$(client, companyId, year, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1866
1807
|
CoroutineImpl.call(this, resultContinuation);
|
|
1867
|
-
this.
|
|
1808
|
+
this.client_1 = client;
|
|
1868
1809
|
this.companyId_1 = companyId;
|
|
1869
1810
|
this.year_1 = year;
|
|
1870
|
-
this.sectionId_1 = sectionId;
|
|
1871
|
-
this.personId_1 = personId;
|
|
1872
|
-
this.redirect_1 = redirect;
|
|
1873
1811
|
this.fields_1 = fields;
|
|
1812
|
+
this.pageToken_1 = pageToken;
|
|
1813
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1814
|
+
this.count_1 = count;
|
|
1874
1815
|
}
|
|
1875
|
-
protoOf($
|
|
1816
|
+
protoOf($indexThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1876
1817
|
var suspendResult = this.result_1;
|
|
1877
1818
|
$sm: do
|
|
1878
1819
|
try {
|
|
@@ -1883,12 +1824,11 @@ protoOf($showThirdPartyInformationLetterByDialogYearCOROUTINE$).doResume_5yljmg_
|
|
|
1883
1824
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1884
1825
|
var localVariableBody = EmptyContent_getInstance();
|
|
1885
1826
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1886
|
-
if (this.
|
|
1827
|
+
if (this.year_1 == null)
|
|
1887
1828
|
null;
|
|
1888
1829
|
else {
|
|
1889
|
-
var
|
|
1890
|
-
|
|
1891
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1830
|
+
var value = listOf_0(this.year_1.toString());
|
|
1831
|
+
localVariableQuery.put_4fpzoq_k$('year', value);
|
|
1892
1832
|
}
|
|
1893
1833
|
|
|
1894
1834
|
if (this.fields_1 == null)
|
|
@@ -1898,12 +1838,35 @@ protoOf($showThirdPartyInformationLetterByDialogYearCOROUTINE$).doResume_5yljmg_
|
|
|
1898
1838
|
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1899
1839
|
}
|
|
1900
1840
|
|
|
1841
|
+
if (this.pageToken_1 == null)
|
|
1842
|
+
null;
|
|
1843
|
+
else {
|
|
1844
|
+
var tmp2 = 'pageToken';
|
|
1845
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
1846
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
if (this.autoPaginate_1 == null)
|
|
1850
|
+
null;
|
|
1851
|
+
else {
|
|
1852
|
+
var tmp2_0 = 'autoPaginate';
|
|
1853
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1854
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
if (this.count_1 == null)
|
|
1858
|
+
null;
|
|
1859
|
+
else {
|
|
1860
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
1861
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1901
1864
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1902
|
-
var
|
|
1903
|
-
var
|
|
1904
|
-
var localVariableConfig = new RequestConfig(
|
|
1865
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1866
|
+
var tmp6_path = replace('/companies/{companyId}/thirdPartyInformation', '{companyId}', this.companyId_1.toString());
|
|
1867
|
+
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1905
1868
|
this.state_1 = 1;
|
|
1906
|
-
suspendResult = this.
|
|
1869
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1907
1870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1908
1871
|
return suspendResult;
|
|
1909
1872
|
}
|
|
@@ -1911,11 +1874,11 @@ protoOf($showThirdPartyInformationLetterByDialogYearCOROUTINE$).doResume_5yljmg_
|
|
|
1911
1874
|
continue $sm;
|
|
1912
1875
|
case 1:
|
|
1913
1876
|
var this_0 = suspendResult;
|
|
1914
|
-
var tmp_0 = getKClass(
|
|
1915
|
-
var tmp_1 = null instanceof
|
|
1877
|
+
var tmp_0 = getKClass(PagedListThirdPartyInformationYear);
|
|
1878
|
+
var tmp_1 = null instanceof PagedListThirdPartyInformationYear;
|
|
1916
1879
|
var tmp_2;
|
|
1917
1880
|
try {
|
|
1918
|
-
tmp_2 = createKType(getKClass(
|
|
1881
|
+
tmp_2 = createKType(getKClass(PagedListThirdPartyInformationYear), arrayOf([]), false);
|
|
1919
1882
|
} catch ($p) {
|
|
1920
1883
|
var tmp_3;
|
|
1921
1884
|
if ($p instanceof Error) {
|
|
@@ -1942,72 +1905,25 @@ protoOf($showThirdPartyInformationLetterByDialogYearCOROUTINE$).doResume_5yljmg_
|
|
|
1942
1905
|
}
|
|
1943
1906
|
while (true);
|
|
1944
1907
|
};
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
this.year_1 = year;
|
|
1950
|
-
this.sectionId_1 = sectionId;
|
|
1951
|
-
this.personId_1 = personId;
|
|
1952
|
-
this.redirect_1 = redirect;
|
|
1953
|
-
this.fields_1 = fields;
|
|
1908
|
+
function overrideThirdPartyInformationOperation(client, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand) {
|
|
1909
|
+
return promisify(function ($completion) {
|
|
1910
|
+
return overrideThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
1911
|
+
});
|
|
1954
1912
|
}
|
|
1955
|
-
|
|
1956
|
-
var
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
this.exceptionState_1 = 4;
|
|
1963
|
-
if (this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear === protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear) {
|
|
1964
|
-
this.state_1 = 2;
|
|
1965
|
-
suspendResult = this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear$default_bn5pgm_k$(this.companyId_1, this.year_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1, this);
|
|
1966
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1967
|
-
return suspendResult;
|
|
1968
|
-
}
|
|
1969
|
-
continue $sm;
|
|
1970
|
-
} else {
|
|
1971
|
-
this.state_1 = 1;
|
|
1972
|
-
suspendResult = await_0(this._this__u8e3s4__1.showThirdPartyInformationLetterByDialogYear(this.companyId_1, this.year_1, this.sectionId_1, this.personId_1, this.redirect_1, this.fields_1), this);
|
|
1973
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1974
|
-
return suspendResult;
|
|
1975
|
-
}
|
|
1976
|
-
continue $sm;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
case 1:
|
|
1980
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1981
|
-
this.state_1 = 3;
|
|
1982
|
-
continue $sm;
|
|
1983
|
-
case 2:
|
|
1984
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1985
|
-
this.state_1 = 3;
|
|
1986
|
-
continue $sm;
|
|
1987
|
-
case 3:
|
|
1988
|
-
return this.WHEN_RESULT0__1;
|
|
1989
|
-
case 4:
|
|
1990
|
-
throw this.exception_1;
|
|
1991
|
-
}
|
|
1992
|
-
} catch ($p) {
|
|
1993
|
-
var e = $p;
|
|
1994
|
-
if (this.exceptionState_1 === 4) {
|
|
1995
|
-
throw e;
|
|
1996
|
-
} else {
|
|
1997
|
-
this.state_1 = this.exceptionState_1;
|
|
1998
|
-
this.exception_1 = e;
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
while (true);
|
|
2002
|
-
};
|
|
2003
|
-
function $updateThirdPartyInformationCOROUTINE$(_this__u8e3s4, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, resultContinuation) {
|
|
1913
|
+
function overrideThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion) {
|
|
1914
|
+
var tmp = new $overrideThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
1915
|
+
tmp.result_1 = Unit_instance;
|
|
1916
|
+
tmp.exception_1 = null;
|
|
1917
|
+
return tmp.doResume_5yljmg_k$();
|
|
1918
|
+
}
|
|
1919
|
+
function $overrideThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, resultContinuation) {
|
|
2004
1920
|
CoroutineImpl.call(this, resultContinuation);
|
|
2005
|
-
this.
|
|
1921
|
+
this.client_1 = client;
|
|
2006
1922
|
this.companyId_1 = companyId;
|
|
2007
1923
|
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2008
|
-
this.
|
|
1924
|
+
this.overrideThirdPartyInformationResultCommand_1 = overrideThirdPartyInformationResultCommand;
|
|
2009
1925
|
}
|
|
2010
|
-
protoOf($
|
|
1926
|
+
protoOf($overrideThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2011
1927
|
var suspendResult = this.result_1;
|
|
2012
1928
|
$sm: do
|
|
2013
1929
|
try {
|
|
@@ -2016,14 +1932,14 @@ protoOf($updateThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
2016
1932
|
case 0:
|
|
2017
1933
|
this.exceptionState_1 = 2;
|
|
2018
1934
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2019
|
-
var localVariableBody = this.
|
|
1935
|
+
var localVariableBody = this.overrideThirdPartyInformationResultCommand_1;
|
|
2020
1936
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2021
1937
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2022
1938
|
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2023
|
-
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
1939
|
+
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/override', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2024
1940
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2025
1941
|
this.state_1 = 1;
|
|
2026
|
-
suspendResult = this.
|
|
1942
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2027
1943
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
1944
|
return suspendResult;
|
|
2029
1945
|
}
|
|
@@ -2062,366 +1978,583 @@ protoOf($updateThirdPartyInformationCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
2062
1978
|
}
|
|
2063
1979
|
while (true);
|
|
2064
1980
|
};
|
|
2065
|
-
function
|
|
1981
|
+
function reOpenThirdPartyInformationOperation(client, companyId, thirdPartyInformationId) {
|
|
1982
|
+
return promisify(function ($completion) {
|
|
1983
|
+
return reOpenThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, $completion);
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
function reOpenThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, $completion) {
|
|
1987
|
+
var tmp = new $reOpenThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, $completion);
|
|
1988
|
+
tmp.result_1 = Unit_instance;
|
|
1989
|
+
tmp.exception_1 = null;
|
|
1990
|
+
return tmp.doResume_5yljmg_k$();
|
|
1991
|
+
}
|
|
1992
|
+
function $reOpenThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, resultContinuation) {
|
|
2066
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
2067
|
-
this.
|
|
1994
|
+
this.client_1 = client;
|
|
2068
1995
|
this.companyId_1 = companyId;
|
|
2069
1996
|
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2070
|
-
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
2071
1997
|
}
|
|
2072
|
-
protoOf($
|
|
1998
|
+
protoOf($reOpenThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2073
1999
|
var suspendResult = this.result_1;
|
|
2074
2000
|
$sm: do
|
|
2075
2001
|
try {
|
|
2076
2002
|
var tmp = this.state_1;
|
|
2077
2003
|
switch (tmp) {
|
|
2078
2004
|
case 0:
|
|
2079
|
-
this.exceptionState_1 =
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
return suspendResult;
|
|
2092
|
-
}
|
|
2093
|
-
continue $sm;
|
|
2005
|
+
this.exceptionState_1 = 2;
|
|
2006
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2007
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2008
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2009
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2010
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
2011
|
+
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/reOpen', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2012
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2013
|
+
this.state_1 = 1;
|
|
2014
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2015
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2016
|
+
return suspendResult;
|
|
2094
2017
|
}
|
|
2095
2018
|
|
|
2096
|
-
case 1:
|
|
2097
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2098
|
-
this.state_1 = 3;
|
|
2099
2019
|
continue $sm;
|
|
2020
|
+
case 1:
|
|
2021
|
+
var this_0 = suspendResult;
|
|
2022
|
+
var tmp_0 = getKClass(Unit);
|
|
2023
|
+
var tmp_1 = null instanceof Unit;
|
|
2024
|
+
var tmp_2;
|
|
2025
|
+
try {
|
|
2026
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2027
|
+
} catch ($p) {
|
|
2028
|
+
var tmp_3;
|
|
2029
|
+
if ($p instanceof Error) {
|
|
2030
|
+
var _unused_var__etf5q3 = $p;
|
|
2031
|
+
tmp_3 = null;
|
|
2032
|
+
} else {
|
|
2033
|
+
throw $p;
|
|
2034
|
+
}
|
|
2035
|
+
tmp_2 = tmp_3;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2100
2039
|
case 2:
|
|
2101
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2102
|
-
this.state_1 = 3;
|
|
2103
|
-
continue $sm;
|
|
2104
|
-
case 3:
|
|
2105
|
-
return this.WHEN_RESULT0__1;
|
|
2106
|
-
case 4:
|
|
2107
2040
|
throw this.exception_1;
|
|
2108
2041
|
}
|
|
2109
|
-
} catch ($
|
|
2110
|
-
var e = $
|
|
2111
|
-
if (this.exceptionState_1 ===
|
|
2112
|
-
throw e;
|
|
2113
|
-
} else {
|
|
2114
|
-
this.state_1 = this.exceptionState_1;
|
|
2115
|
-
this.exception_1 = e;
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
|
-
while (true);
|
|
2119
|
-
};
|
|
2120
|
-
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation_x2o5gw_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
2121
|
-
var tmp = new $completeThirdPartyInformationCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
2122
|
-
tmp.result_1 = Unit_instance;
|
|
2123
|
-
tmp.exception_1 = null;
|
|
2124
|
-
return tmp.doResume_5yljmg_k$();
|
|
2125
|
-
};
|
|
2126
|
-
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation = function (companyId, thirdPartyInformationId) {
|
|
2127
|
-
var tmp = this;
|
|
2128
|
-
return promisify(function ($completion) {
|
|
2129
|
-
return tmp.completeThirdPartyInformation_x2o5gw_k$(companyId, thirdPartyInformationId, $completion);
|
|
2130
|
-
});
|
|
2131
|
-
};
|
|
2132
|
-
protoOf(ThirdPartyInformationApi).completeThirdPartyInformation$suspendBridge_91u4jz_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
2133
|
-
var tmp = new $completeThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
2134
|
-
tmp.result_1 = Unit_instance;
|
|
2135
|
-
tmp.exception_1 = null;
|
|
2136
|
-
return tmp.doResume_5yljmg_k$();
|
|
2137
|
-
};
|
|
2138
|
-
protoOf(ThirdPartyInformationApi).createThirdPartyInformation_utjjai_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion) {
|
|
2139
|
-
var tmp = new $createThirdPartyInformationCOROUTINE$(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
2140
|
-
tmp.result_1 = Unit_instance;
|
|
2141
|
-
tmp.exception_1 = null;
|
|
2142
|
-
return tmp.doResume_5yljmg_k$();
|
|
2143
|
-
};
|
|
2144
|
-
protoOf(ThirdPartyInformationApi).createThirdPartyInformation$default_g2qcis_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion, $super) {
|
|
2145
|
-
year = year === VOID ? null : year;
|
|
2146
|
-
return $super === VOID ? this.createThirdPartyInformation_utjjai_k$(companyId, generateThirdPartyInformationCommand, year, $completion) : $super.createThirdPartyInformation_utjjai_k$.call(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
2147
|
-
};
|
|
2148
|
-
protoOf(ThirdPartyInformationApi).createThirdPartyInformation = function (companyId, generateThirdPartyInformationCommand, year) {
|
|
2149
|
-
var tmp = this;
|
|
2150
|
-
return promisify(function ($completion) {
|
|
2151
|
-
return tmp.createThirdPartyInformation$default_g2qcis_k$(companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
2152
|
-
});
|
|
2153
|
-
};
|
|
2154
|
-
protoOf(ThirdPartyInformationApi).createThirdPartyInformation$suspendBridge_xiklkl_k$ = function (companyId, generateThirdPartyInformationCommand, year, $completion) {
|
|
2155
|
-
var tmp = new $createThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, generateThirdPartyInformationCommand, year, $completion);
|
|
2156
|
-
tmp.result_1 = Unit_instance;
|
|
2157
|
-
tmp.exception_1 = null;
|
|
2158
|
-
return tmp.doResume_5yljmg_k$();
|
|
2159
|
-
};
|
|
2160
|
-
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts_4r6rud_k$ = function (companyId, year, fields, $completion) {
|
|
2161
|
-
var tmp = new $getThirdPartyInformationAccountsCOROUTINE$(this, companyId, year, fields, $completion);
|
|
2162
|
-
tmp.result_1 = Unit_instance;
|
|
2163
|
-
tmp.exception_1 = null;
|
|
2164
|
-
return tmp.doResume_5yljmg_k$();
|
|
2165
|
-
};
|
|
2166
|
-
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts$default_9nhsv6_k$ = function (companyId, year, fields, $completion, $super) {
|
|
2167
|
-
year = year === VOID ? null : year;
|
|
2168
|
-
fields = fields === VOID ? null : fields;
|
|
2169
|
-
return $super === VOID ? this.getThirdPartyInformationAccounts_4r6rud_k$(companyId, year, fields, $completion) : $super.getThirdPartyInformationAccounts_4r6rud_k$.call(this, companyId, year, fields, $completion);
|
|
2170
|
-
};
|
|
2171
|
-
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts = function (companyId, year, fields) {
|
|
2172
|
-
var tmp = this;
|
|
2173
|
-
return promisify(function ($completion) {
|
|
2174
|
-
return tmp.getThirdPartyInformationAccounts$default_9nhsv6_k$(companyId, year, fields, $completion);
|
|
2175
|
-
});
|
|
2176
|
-
};
|
|
2177
|
-
protoOf(ThirdPartyInformationApi).getThirdPartyInformationAccounts$suspendBridge_3i30ks_k$ = function (companyId, year, fields, $completion) {
|
|
2178
|
-
var tmp = new $getThirdPartyInformationAccounts$suspendBridgeCOROUTINE$(this, companyId, year, fields, $completion);
|
|
2179
|
-
tmp.result_1 = Unit_instance;
|
|
2180
|
-
tmp.exception_1 = null;
|
|
2181
|
-
return tmp.doResume_5yljmg_k$();
|
|
2182
|
-
};
|
|
2183
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation_wntdn3_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
2184
|
-
var tmp = new $indexThirdPartyInformationCOROUTINE$(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
2185
|
-
tmp.result_1 = Unit_instance;
|
|
2186
|
-
tmp.exception_1 = null;
|
|
2187
|
-
return tmp.doResume_5yljmg_k$();
|
|
2188
|
-
};
|
|
2189
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation$default_wuwdzv_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2190
|
-
year = year === VOID ? null : year;
|
|
2191
|
-
fields = fields === VOID ? null : fields;
|
|
2192
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2193
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2194
|
-
count = count === VOID ? null : count;
|
|
2195
|
-
return $super === VOID ? this.indexThirdPartyInformation_wntdn3_k$(companyId, year, fields, pageToken, autoPaginate, count, $completion) : $super.indexThirdPartyInformation_wntdn3_k$.call(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
2196
|
-
};
|
|
2197
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation = function (companyId, year, fields, pageToken, autoPaginate, count) {
|
|
2198
|
-
var tmp = this;
|
|
2199
|
-
return promisify(function ($completion) {
|
|
2200
|
-
return tmp.indexThirdPartyInformation$default_wuwdzv_k$(companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
2201
|
-
});
|
|
2202
|
-
};
|
|
2203
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformation$suspendBridge_x1sf3k_k$ = function (companyId, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
2204
|
-
var tmp = new $indexThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, year, fields, pageToken, autoPaginate, count, $completion);
|
|
2205
|
-
tmp.result_1 = Unit_instance;
|
|
2206
|
-
tmp.exception_1 = null;
|
|
2207
|
-
return tmp.doResume_5yljmg_k$();
|
|
2208
|
-
};
|
|
2209
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog_1eonfg_k$ = function (companyId, year, fields, $completion) {
|
|
2210
|
-
var tmp = new $indexThirdPartyInformationDialogCOROUTINE$(this, companyId, year, fields, $completion);
|
|
2211
|
-
tmp.result_1 = Unit_instance;
|
|
2212
|
-
tmp.exception_1 = null;
|
|
2213
|
-
return tmp.doResume_5yljmg_k$();
|
|
2214
|
-
};
|
|
2215
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog$default_l0qb36_k$ = function (companyId, year, fields, $completion, $super) {
|
|
2216
|
-
fields = fields === VOID ? null : fields;
|
|
2217
|
-
return $super === VOID ? this.indexThirdPartyInformationDialog_1eonfg_k$(companyId, year, fields, $completion) : $super.indexThirdPartyInformationDialog_1eonfg_k$.call(this, companyId, year, fields, $completion);
|
|
2218
|
-
};
|
|
2219
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog = function (companyId, year, fields) {
|
|
2220
|
-
var tmp = this;
|
|
2221
|
-
return promisify(function ($completion) {
|
|
2222
|
-
return tmp.indexThirdPartyInformationDialog$default_l0qb36_k$(companyId, year, fields, $completion);
|
|
2223
|
-
});
|
|
2224
|
-
};
|
|
2225
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationDialog$suspendBridge_rj5r25_k$ = function (companyId, year, fields, $completion) {
|
|
2226
|
-
var tmp = new $indexThirdPartyInformationDialog$suspendBridgeCOROUTINE$(this, companyId, year, fields, $completion);
|
|
2227
|
-
tmp.result_1 = Unit_instance;
|
|
2228
|
-
tmp.exception_1 = null;
|
|
2229
|
-
return tmp.doResume_5yljmg_k$();
|
|
2230
|
-
};
|
|
2231
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) {
|
|
2232
|
-
var tmp = new $indexThirdPartyInformationLetterByDialogYearCOROUTINE$(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
2233
|
-
tmp.result_1 = Unit_instance;
|
|
2234
|
-
tmp.exception_1 = null;
|
|
2235
|
-
return tmp.doResume_5yljmg_k$();
|
|
2236
|
-
};
|
|
2237
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear$default_qkknvm_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2238
|
-
redirect = redirect === VOID ? null : redirect;
|
|
2239
|
-
fields = fields === VOID ? null : fields;
|
|
2240
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2241
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2242
|
-
count = count === VOID ? null : count;
|
|
2243
|
-
return $super === VOID ? this.indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$(companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) : $super.indexThirdPartyInformationLetterByDialogYear_vq4x3o_k$.call(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
2244
|
-
};
|
|
2245
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count) {
|
|
2246
|
-
var tmp = this;
|
|
2247
|
-
return promisify(function ($completion) {
|
|
2248
|
-
return tmp.indexThirdPartyInformationLetterByDialogYear$default_qkknvm_k$(companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
2249
|
-
});
|
|
2250
|
-
};
|
|
2251
|
-
protoOf(ThirdPartyInformationApi).indexThirdPartyInformationLetterByDialogYear$suspendBridge_6w0r3n_k$ = function (companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion) {
|
|
2252
|
-
var tmp = new $indexThirdPartyInformationLetterByDialogYear$suspendBridgeCOROUTINE$(this, companyId, sectionId, personId, redirect, fields, pageToken, autoPaginate, count, $completion);
|
|
2253
|
-
tmp.result_1 = Unit_instance;
|
|
2254
|
-
tmp.exception_1 = null;
|
|
2255
|
-
return tmp.doResume_5yljmg_k$();
|
|
2256
|
-
};
|
|
2257
|
-
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation_hzic5j_k$ = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion) {
|
|
2258
|
-
var tmp = new $overrideThirdPartyInformationCOROUTINE$(this, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
2259
|
-
tmp.result_1 = Unit_instance;
|
|
2260
|
-
tmp.exception_1 = null;
|
|
2261
|
-
return tmp.doResume_5yljmg_k$();
|
|
2262
|
-
};
|
|
2263
|
-
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand) {
|
|
2264
|
-
var tmp = this;
|
|
2265
|
-
return promisify(function ($completion) {
|
|
2266
|
-
return tmp.overrideThirdPartyInformation_hzic5j_k$(companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
2267
|
-
});
|
|
2268
|
-
};
|
|
2269
|
-
protoOf(ThirdPartyInformationApi).overrideThirdPartyInformation$suspendBridge_d5pvi2_k$ = function (companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion) {
|
|
2270
|
-
var tmp = new $overrideThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, overrideThirdPartyInformationResultCommand, $completion);
|
|
2271
|
-
tmp.result_1 = Unit_instance;
|
|
2272
|
-
tmp.exception_1 = null;
|
|
2273
|
-
return tmp.doResume_5yljmg_k$();
|
|
2274
|
-
};
|
|
2275
|
-
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation_ru8d3g_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
2276
|
-
var tmp = new $reOpenThirdPartyInformationCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
2277
|
-
tmp.result_1 = Unit_instance;
|
|
2278
|
-
tmp.exception_1 = null;
|
|
2279
|
-
return tmp.doResume_5yljmg_k$();
|
|
2280
|
-
};
|
|
2281
|
-
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation = function (companyId, thirdPartyInformationId) {
|
|
2282
|
-
var tmp = this;
|
|
2283
|
-
return promisify(function ($completion) {
|
|
2284
|
-
return tmp.reOpenThirdPartyInformation_ru8d3g_k$(companyId, thirdPartyInformationId, $completion);
|
|
2285
|
-
});
|
|
2286
|
-
};
|
|
2287
|
-
protoOf(ThirdPartyInformationApi).reOpenThirdPartyInformation$suspendBridge_gjyxo3_k$ = function (companyId, thirdPartyInformationId, $completion) {
|
|
2288
|
-
var tmp = new $reOpenThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, $completion);
|
|
2289
|
-
tmp.result_1 = Unit_instance;
|
|
2290
|
-
tmp.exception_1 = null;
|
|
2291
|
-
return tmp.doResume_5yljmg_k$();
|
|
2292
|
-
};
|
|
2293
|
-
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten_j8emq5_k$ = function (companyId, thirdPartyInformationId, autoPublish, $completion) {
|
|
2294
|
-
var tmp = new $sendThirdPartyInformationToSkatteetatenCOROUTINE$(this, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
2295
|
-
tmp.result_1 = Unit_instance;
|
|
2296
|
-
tmp.exception_1 = null;
|
|
2297
|
-
return tmp.doResume_5yljmg_k$();
|
|
2298
|
-
};
|
|
2299
|
-
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationToSkatteetaten$default_wtca3n_k$ = function (companyId, thirdPartyInformationId, autoPublish, $completion, $super) {
|
|
2300
|
-
autoPublish = autoPublish === VOID ? null : autoPublish;
|
|
2301
|
-
return $super === VOID ? this.sendThirdPartyInformationToSkatteetaten_j8emq5_k$(companyId, thirdPartyInformationId, autoPublish, $completion) : $super.sendThirdPartyInformationToSkatteetaten_j8emq5_k$.call(this, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
2042
|
+
} catch ($p_0) {
|
|
2043
|
+
var e = $p_0;
|
|
2044
|
+
if (this.exceptionState_1 === 2) {
|
|
2045
|
+
throw e;
|
|
2046
|
+
} else {
|
|
2047
|
+
this.state_1 = this.exceptionState_1;
|
|
2048
|
+
this.exception_1 = e;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
while (true);
|
|
2302
2052
|
};
|
|
2303
|
-
|
|
2304
|
-
var tmp = this;
|
|
2053
|
+
function sendThirdPartyInformationToSkatteetatenOperation(client, companyId, thirdPartyInformationId, autoPublish) {
|
|
2305
2054
|
return promisify(function ($completion) {
|
|
2306
|
-
return
|
|
2055
|
+
return sendThirdPartyInformationToSkatteetatenOperation_0(client, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
2307
2056
|
});
|
|
2308
|
-
}
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
tmp
|
|
2312
|
-
tmp.exception_1 = null;
|
|
2313
|
-
return tmp.doResume_5yljmg_k$();
|
|
2314
|
-
};
|
|
2315
|
-
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost_kvfi7v_k$ = function (companyId, thirdPartyInformationId, publishTo, $completion) {
|
|
2316
|
-
var tmp = new $sendThirdPartyInformationWithDigiPostCOROUTINE$(this, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
2057
|
+
}
|
|
2058
|
+
function sendThirdPartyInformationToSkatteetatenOperation_0(client, companyId, thirdPartyInformationId, autoPublish, $completion) {
|
|
2059
|
+
autoPublish = autoPublish === VOID ? null : autoPublish;
|
|
2060
|
+
var tmp = new $sendThirdPartyInformationToSkatteetatenOperationCOROUTINE$(client, companyId, thirdPartyInformationId, autoPublish, $completion);
|
|
2317
2061
|
tmp.result_1 = Unit_instance;
|
|
2318
2062
|
tmp.exception_1 = null;
|
|
2319
2063
|
return tmp.doResume_5yljmg_k$();
|
|
2064
|
+
}
|
|
2065
|
+
function $sendThirdPartyInformationToSkatteetatenOperationCOROUTINE$(client, companyId, thirdPartyInformationId, autoPublish, resultContinuation) {
|
|
2066
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2067
|
+
this.client_1 = client;
|
|
2068
|
+
this.companyId_1 = companyId;
|
|
2069
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2070
|
+
this.autoPublish_1 = autoPublish;
|
|
2071
|
+
}
|
|
2072
|
+
protoOf($sendThirdPartyInformationToSkatteetatenOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2073
|
+
var suspendResult = this.result_1;
|
|
2074
|
+
$sm: do
|
|
2075
|
+
try {
|
|
2076
|
+
var tmp = this.state_1;
|
|
2077
|
+
switch (tmp) {
|
|
2078
|
+
case 0:
|
|
2079
|
+
this.exceptionState_1 = 2;
|
|
2080
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2081
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2082
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2083
|
+
if (this.autoPublish_1 == null)
|
|
2084
|
+
null;
|
|
2085
|
+
else {
|
|
2086
|
+
var tmp2 = 'autoPublish';
|
|
2087
|
+
var value = listOf_0('' + this.autoPublish_1);
|
|
2088
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2092
|
+
var tmp1_method = RequestMethod_POST_getInstance();
|
|
2093
|
+
var tmp2_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/publish', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2094
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2095
|
+
this.state_1 = 1;
|
|
2096
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2097
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2098
|
+
return suspendResult;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
continue $sm;
|
|
2102
|
+
case 1:
|
|
2103
|
+
var this_0 = suspendResult;
|
|
2104
|
+
var tmp_0 = getKClass(Unit);
|
|
2105
|
+
var tmp_1 = null instanceof Unit;
|
|
2106
|
+
var tmp_2;
|
|
2107
|
+
try {
|
|
2108
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2109
|
+
} catch ($p) {
|
|
2110
|
+
var tmp_3;
|
|
2111
|
+
if ($p instanceof Error) {
|
|
2112
|
+
var _unused_var__etf5q3 = $p;
|
|
2113
|
+
tmp_3 = null;
|
|
2114
|
+
} else {
|
|
2115
|
+
throw $p;
|
|
2116
|
+
}
|
|
2117
|
+
tmp_2 = tmp_3;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2121
|
+
case 2:
|
|
2122
|
+
throw this.exception_1;
|
|
2123
|
+
}
|
|
2124
|
+
} catch ($p_0) {
|
|
2125
|
+
var e = $p_0;
|
|
2126
|
+
if (this.exceptionState_1 === 2) {
|
|
2127
|
+
throw e;
|
|
2128
|
+
} else {
|
|
2129
|
+
this.state_1 = this.exceptionState_1;
|
|
2130
|
+
this.exception_1 = e;
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
while (true);
|
|
2320
2134
|
};
|
|
2321
|
-
|
|
2322
|
-
publishTo = publishTo === VOID ? null : publishTo;
|
|
2323
|
-
return $super === VOID ? this.sendThirdPartyInformationWithDigiPost_kvfi7v_k$(companyId, thirdPartyInformationId, publishTo, $completion) : $super.sendThirdPartyInformationWithDigiPost_kvfi7v_k$.call(this, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
2324
|
-
};
|
|
2325
|
-
protoOf(ThirdPartyInformationApi).sendThirdPartyInformationWithDigiPost = function (companyId, thirdPartyInformationId, publishTo) {
|
|
2326
|
-
var tmp = this;
|
|
2135
|
+
function sendThirdPartyInformationWithDigiPostOperation(client, companyId, thirdPartyInformationId, publishTo) {
|
|
2327
2136
|
return promisify(function ($completion) {
|
|
2328
|
-
return
|
|
2137
|
+
return sendThirdPartyInformationWithDigiPostOperation_0(client, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
2329
2138
|
});
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
|
|
2139
|
+
}
|
|
2140
|
+
function sendThirdPartyInformationWithDigiPostOperation_0(client, companyId, thirdPartyInformationId, publishTo, $completion) {
|
|
2141
|
+
publishTo = publishTo === VOID ? null : publishTo;
|
|
2142
|
+
var tmp = new $sendThirdPartyInformationWithDigiPostOperationCOROUTINE$(client, companyId, thirdPartyInformationId, publishTo, $completion);
|
|
2333
2143
|
tmp.result_1 = Unit_instance;
|
|
2334
2144
|
tmp.exception_1 = null;
|
|
2335
2145
|
return tmp.doResume_5yljmg_k$();
|
|
2146
|
+
}
|
|
2147
|
+
function $sendThirdPartyInformationWithDigiPostOperationCOROUTINE$(client, companyId, thirdPartyInformationId, publishTo, resultContinuation) {
|
|
2148
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2149
|
+
this.client_1 = client;
|
|
2150
|
+
this.companyId_1 = companyId;
|
|
2151
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2152
|
+
this.publishTo_1 = publishTo;
|
|
2153
|
+
}
|
|
2154
|
+
protoOf($sendThirdPartyInformationWithDigiPostOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2155
|
+
var suspendResult = this.result_1;
|
|
2156
|
+
$sm: do
|
|
2157
|
+
try {
|
|
2158
|
+
var tmp = this.state_1;
|
|
2159
|
+
switch (tmp) {
|
|
2160
|
+
case 0:
|
|
2161
|
+
this.exceptionState_1 = 2;
|
|
2162
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2163
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2164
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2165
|
+
var tmp0_safe_receiver = this.publishTo_1;
|
|
2166
|
+
if (tmp0_safe_receiver == null)
|
|
2167
|
+
null;
|
|
2168
|
+
else {
|
|
2169
|
+
var tmp2 = 'publishTo';
|
|
2170
|
+
var value = toMultiValue(tmp0_safe_receiver, 'multi');
|
|
2171
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2175
|
+
var tmp1_method = RequestMethod_POST_getInstance();
|
|
2176
|
+
var tmp2_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/sendLetter', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2177
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2178
|
+
this.state_1 = 1;
|
|
2179
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2180
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2181
|
+
return suspendResult;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
continue $sm;
|
|
2185
|
+
case 1:
|
|
2186
|
+
var this_0 = suspendResult;
|
|
2187
|
+
var tmp_0 = getKClass(Unit);
|
|
2188
|
+
var tmp_1 = null instanceof Unit;
|
|
2189
|
+
var tmp_2;
|
|
2190
|
+
try {
|
|
2191
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2192
|
+
} catch ($p) {
|
|
2193
|
+
var tmp_3;
|
|
2194
|
+
if ($p instanceof Error) {
|
|
2195
|
+
var _unused_var__etf5q3 = $p;
|
|
2196
|
+
tmp_3 = null;
|
|
2197
|
+
} else {
|
|
2198
|
+
throw $p;
|
|
2199
|
+
}
|
|
2200
|
+
tmp_2 = tmp_3;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2204
|
+
case 2:
|
|
2205
|
+
throw this.exception_1;
|
|
2206
|
+
}
|
|
2207
|
+
} catch ($p_0) {
|
|
2208
|
+
var e = $p_0;
|
|
2209
|
+
if (this.exceptionState_1 === 2) {
|
|
2210
|
+
throw e;
|
|
2211
|
+
} else {
|
|
2212
|
+
this.state_1 = this.exceptionState_1;
|
|
2213
|
+
this.exception_1 = e;
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
while (true);
|
|
2336
2217
|
};
|
|
2337
|
-
|
|
2338
|
-
|
|
2218
|
+
function showThirdPartyInformationLetterByDialogYearOperation(client, companyId, year, sectionId, personId, redirect, fields) {
|
|
2219
|
+
return promisify(function ($completion) {
|
|
2220
|
+
return showThirdPartyInformationLetterByDialogYearOperation_0(client, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
function showThirdPartyInformationLetterByDialogYearOperation_0(client, companyId, year, sectionId, personId, redirect, fields, $completion) {
|
|
2224
|
+
redirect = redirect === VOID ? null : redirect;
|
|
2225
|
+
fields = fields === VOID ? null : fields;
|
|
2226
|
+
var tmp = new $showThirdPartyInformationLetterByDialogYearOperationCOROUTINE$(client, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
2339
2227
|
tmp.result_1 = Unit_instance;
|
|
2340
2228
|
tmp.exception_1 = null;
|
|
2341
2229
|
return tmp.doResume_5yljmg_k$();
|
|
2230
|
+
}
|
|
2231
|
+
function $showThirdPartyInformationLetterByDialogYearOperationCOROUTINE$(client, companyId, year, sectionId, personId, redirect, fields, resultContinuation) {
|
|
2232
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2233
|
+
this.client_1 = client;
|
|
2234
|
+
this.companyId_1 = companyId;
|
|
2235
|
+
this.year_1 = year;
|
|
2236
|
+
this.sectionId_1 = sectionId;
|
|
2237
|
+
this.personId_1 = personId;
|
|
2238
|
+
this.redirect_1 = redirect;
|
|
2239
|
+
this.fields_1 = fields;
|
|
2240
|
+
}
|
|
2241
|
+
protoOf($showThirdPartyInformationLetterByDialogYearOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2242
|
+
var suspendResult = this.result_1;
|
|
2243
|
+
$sm: do
|
|
2244
|
+
try {
|
|
2245
|
+
var tmp = this.state_1;
|
|
2246
|
+
switch (tmp) {
|
|
2247
|
+
case 0:
|
|
2248
|
+
this.exceptionState_1 = 2;
|
|
2249
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2250
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2251
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2252
|
+
if (this.redirect_1 == null)
|
|
2253
|
+
null;
|
|
2254
|
+
else {
|
|
2255
|
+
var tmp2 = 'redirect';
|
|
2256
|
+
var value = listOf_0('' + this.redirect_1);
|
|
2257
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
if (this.fields_1 == null)
|
|
2261
|
+
null;
|
|
2262
|
+
else {
|
|
2263
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2264
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2268
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
2269
|
+
var tmp3_path = replace(replace(replace(replace('/companies/{companyId}/thirdPartyInformation/dialog/{year}/letters/sections/{sectionId}/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{year}', this.year_1), '{sectionId}', this.sectionId_1.toString()), '{personId}', this.personId_1.toString());
|
|
2270
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2271
|
+
this.state_1 = 1;
|
|
2272
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2273
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2274
|
+
return suspendResult;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
continue $sm;
|
|
2278
|
+
case 1:
|
|
2279
|
+
var this_0 = suspendResult;
|
|
2280
|
+
var tmp_0 = getKClass(FilesDownload);
|
|
2281
|
+
var tmp_1 = null instanceof FilesDownload;
|
|
2282
|
+
var tmp_2;
|
|
2283
|
+
try {
|
|
2284
|
+
tmp_2 = createKType(getKClass(FilesDownload), arrayOf([]), false);
|
|
2285
|
+
} catch ($p) {
|
|
2286
|
+
var tmp_3;
|
|
2287
|
+
if ($p instanceof Error) {
|
|
2288
|
+
var _unused_var__etf5q3 = $p;
|
|
2289
|
+
tmp_3 = null;
|
|
2290
|
+
} else {
|
|
2291
|
+
throw $p;
|
|
2292
|
+
}
|
|
2293
|
+
tmp_2 = tmp_3;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2297
|
+
case 2:
|
|
2298
|
+
throw this.exception_1;
|
|
2299
|
+
}
|
|
2300
|
+
} catch ($p_0) {
|
|
2301
|
+
var e = $p_0;
|
|
2302
|
+
if (this.exceptionState_1 === 2) {
|
|
2303
|
+
throw e;
|
|
2304
|
+
} else {
|
|
2305
|
+
this.state_1 = this.exceptionState_1;
|
|
2306
|
+
this.exception_1 = e;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
while (true);
|
|
2342
2310
|
};
|
|
2343
|
-
|
|
2344
|
-
fields = fields === VOID ? null : fields;
|
|
2345
|
-
return $super === VOID ? this.showThirdPartyInformation_qb668z_k$(companyId, thirdPartyInformationId, fields, $completion) : $super.showThirdPartyInformation_qb668z_k$.call(this, companyId, thirdPartyInformationId, fields, $completion);
|
|
2346
|
-
};
|
|
2347
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformation = function (companyId, thirdPartyInformationId, fields) {
|
|
2348
|
-
var tmp = this;
|
|
2311
|
+
function showThirdPartyInformationLetterOperation(client, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields) {
|
|
2349
2312
|
return promisify(function ($completion) {
|
|
2350
|
-
return
|
|
2313
|
+
return showThirdPartyInformationLetterOperation_0(client, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
2351
2314
|
});
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
var tmp = new $showThirdPartyInformation$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, fields, $completion);
|
|
2355
|
-
tmp.result_1 = Unit_instance;
|
|
2356
|
-
tmp.exception_1 = null;
|
|
2357
|
-
return tmp.doResume_5yljmg_k$();
|
|
2358
|
-
};
|
|
2359
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter_n69scb_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) {
|
|
2360
|
-
var tmp = new $showThirdPartyInformationLetterCOROUTINE$(this, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
2361
|
-
tmp.result_1 = Unit_instance;
|
|
2362
|
-
tmp.exception_1 = null;
|
|
2363
|
-
return tmp.doResume_5yljmg_k$();
|
|
2364
|
-
};
|
|
2365
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter$default_9wkcqc_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion, $super) {
|
|
2315
|
+
}
|
|
2316
|
+
function showThirdPartyInformationLetterOperation_0(client, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) {
|
|
2366
2317
|
redirect = redirect === VOID ? null : redirect;
|
|
2367
2318
|
fields = fields === VOID ? null : fields;
|
|
2368
|
-
|
|
2369
|
-
};
|
|
2370
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields) {
|
|
2371
|
-
var tmp = this;
|
|
2372
|
-
return promisify(function ($completion) {
|
|
2373
|
-
return tmp.showThirdPartyInformationLetter$default_9wkcqc_k$(companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
2374
|
-
});
|
|
2375
|
-
};
|
|
2376
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetter$suspendBridge_gsyqmy_k$ = function (companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion) {
|
|
2377
|
-
var tmp = new $showThirdPartyInformationLetter$suspendBridgeCOROUTINE$(this, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
2378
|
-
tmp.result_1 = Unit_instance;
|
|
2379
|
-
tmp.exception_1 = null;
|
|
2380
|
-
return tmp.doResume_5yljmg_k$();
|
|
2381
|
-
};
|
|
2382
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear_q1ou5z_k$ = function (companyId, year, sectionId, personId, redirect, fields, $completion) {
|
|
2383
|
-
var tmp = new $showThirdPartyInformationLetterByDialogYearCOROUTINE$(this, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
2319
|
+
var tmp = new $showThirdPartyInformationLetterOperationCOROUTINE$(client, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, $completion);
|
|
2384
2320
|
tmp.result_1 = Unit_instance;
|
|
2385
2321
|
tmp.exception_1 = null;
|
|
2386
2322
|
return tmp.doResume_5yljmg_k$();
|
|
2323
|
+
}
|
|
2324
|
+
function $showThirdPartyInformationLetterOperationCOROUTINE$(client, companyId, thirdPartyInformationId, sectionId, personId, redirect, fields, resultContinuation) {
|
|
2325
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2326
|
+
this.client_1 = client;
|
|
2327
|
+
this.companyId_1 = companyId;
|
|
2328
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2329
|
+
this.sectionId_1 = sectionId;
|
|
2330
|
+
this.personId_1 = personId;
|
|
2331
|
+
this.redirect_1 = redirect;
|
|
2332
|
+
this.fields_1 = fields;
|
|
2333
|
+
}
|
|
2334
|
+
protoOf($showThirdPartyInformationLetterOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2335
|
+
var suspendResult = this.result_1;
|
|
2336
|
+
$sm: do
|
|
2337
|
+
try {
|
|
2338
|
+
var tmp = this.state_1;
|
|
2339
|
+
switch (tmp) {
|
|
2340
|
+
case 0:
|
|
2341
|
+
this.exceptionState_1 = 2;
|
|
2342
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2343
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2344
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2345
|
+
if (this.redirect_1 == null)
|
|
2346
|
+
null;
|
|
2347
|
+
else {
|
|
2348
|
+
var tmp2 = 'redirect';
|
|
2349
|
+
var value = listOf_0('' + this.redirect_1);
|
|
2350
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
if (this.fields_1 == null)
|
|
2354
|
+
null;
|
|
2355
|
+
else {
|
|
2356
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2357
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2361
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
2362
|
+
var tmp3_path = replace(replace(replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}/letters/sections/{sectionId}/persons/{personId}', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString()), '{sectionId}', this.sectionId_1.toString()), '{personId}', this.personId_1.toString());
|
|
2363
|
+
var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2364
|
+
this.state_1 = 1;
|
|
2365
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2366
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2367
|
+
return suspendResult;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
continue $sm;
|
|
2371
|
+
case 1:
|
|
2372
|
+
var this_0 = suspendResult;
|
|
2373
|
+
var tmp_0 = getKClass(FilesDownload);
|
|
2374
|
+
var tmp_1 = null instanceof FilesDownload;
|
|
2375
|
+
var tmp_2;
|
|
2376
|
+
try {
|
|
2377
|
+
tmp_2 = createKType(getKClass(FilesDownload), arrayOf([]), false);
|
|
2378
|
+
} catch ($p) {
|
|
2379
|
+
var tmp_3;
|
|
2380
|
+
if ($p instanceof Error) {
|
|
2381
|
+
var _unused_var__etf5q3 = $p;
|
|
2382
|
+
tmp_3 = null;
|
|
2383
|
+
} else {
|
|
2384
|
+
throw $p;
|
|
2385
|
+
}
|
|
2386
|
+
tmp_2 = tmp_3;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2390
|
+
case 2:
|
|
2391
|
+
throw this.exception_1;
|
|
2392
|
+
}
|
|
2393
|
+
} catch ($p_0) {
|
|
2394
|
+
var e = $p_0;
|
|
2395
|
+
if (this.exceptionState_1 === 2) {
|
|
2396
|
+
throw e;
|
|
2397
|
+
} else {
|
|
2398
|
+
this.state_1 = this.exceptionState_1;
|
|
2399
|
+
this.exception_1 = e;
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
while (true);
|
|
2387
2403
|
};
|
|
2388
|
-
|
|
2389
|
-
redirect = redirect === VOID ? null : redirect;
|
|
2390
|
-
fields = fields === VOID ? null : fields;
|
|
2391
|
-
return $super === VOID ? this.showThirdPartyInformationLetterByDialogYear_q1ou5z_k$(companyId, year, sectionId, personId, redirect, fields, $completion) : $super.showThirdPartyInformationLetterByDialogYear_q1ou5z_k$.call(this, companyId, year, sectionId, personId, redirect, fields, $completion);
|
|
2392
|
-
};
|
|
2393
|
-
protoOf(ThirdPartyInformationApi).showThirdPartyInformationLetterByDialogYear = function (companyId, year, sectionId, personId, redirect, fields) {
|
|
2394
|
-
var tmp = this;
|
|
2404
|
+
function showThirdPartyInformationOperation(client, companyId, thirdPartyInformationId, fields) {
|
|
2395
2405
|
return promisify(function ($completion) {
|
|
2396
|
-
return
|
|
2406
|
+
return showThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, fields, $completion);
|
|
2397
2407
|
});
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
tmp
|
|
2402
|
-
tmp.exception_1 = null;
|
|
2403
|
-
return tmp.doResume_5yljmg_k$();
|
|
2404
|
-
};
|
|
2405
|
-
protoOf(ThirdPartyInformationApi).updateThirdPartyInformation_p9tbxe_k$ = function (companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion) {
|
|
2406
|
-
var tmp = new $updateThirdPartyInformationCOROUTINE$(this, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
2408
|
+
}
|
|
2409
|
+
function showThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, fields, $completion) {
|
|
2410
|
+
fields = fields === VOID ? null : fields;
|
|
2411
|
+
var tmp = new $showThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, fields, $completion);
|
|
2407
2412
|
tmp.result_1 = Unit_instance;
|
|
2408
2413
|
tmp.exception_1 = null;
|
|
2409
2414
|
return tmp.doResume_5yljmg_k$();
|
|
2415
|
+
}
|
|
2416
|
+
function $showThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, fields, resultContinuation) {
|
|
2417
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2418
|
+
this.client_1 = client;
|
|
2419
|
+
this.companyId_1 = companyId;
|
|
2420
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2421
|
+
this.fields_1 = fields;
|
|
2422
|
+
}
|
|
2423
|
+
protoOf($showThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2424
|
+
var suspendResult = this.result_1;
|
|
2425
|
+
$sm: do
|
|
2426
|
+
try {
|
|
2427
|
+
var tmp = this.state_1;
|
|
2428
|
+
switch (tmp) {
|
|
2429
|
+
case 0:
|
|
2430
|
+
this.exceptionState_1 = 2;
|
|
2431
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2432
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2433
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2434
|
+
if (this.fields_1 == null)
|
|
2435
|
+
null;
|
|
2436
|
+
else {
|
|
2437
|
+
var value = listOf_0(this.fields_1);
|
|
2438
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2442
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2443
|
+
var tmp2_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2444
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2445
|
+
this.state_1 = 1;
|
|
2446
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_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(ThirdPartyInformation);
|
|
2455
|
+
var tmp_1 = null instanceof ThirdPartyInformation;
|
|
2456
|
+
var tmp_2;
|
|
2457
|
+
try {
|
|
2458
|
+
tmp_2 = createKType(getKClass(ThirdPartyInformation), 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 updateThirdPartyInformationOperation(client, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand) {
|
|
2413
2486
|
return promisify(function ($completion) {
|
|
2414
|
-
return
|
|
2487
|
+
return updateThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
2415
2488
|
});
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
var tmp = new $
|
|
2489
|
+
}
|
|
2490
|
+
function updateThirdPartyInformationOperation_0(client, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion) {
|
|
2491
|
+
var tmp = new $updateThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, $completion);
|
|
2419
2492
|
tmp.result_1 = Unit_instance;
|
|
2420
2493
|
tmp.exception_1 = null;
|
|
2421
2494
|
return tmp.doResume_5yljmg_k$();
|
|
2422
|
-
};
|
|
2423
|
-
function ThirdPartyInformationApi() {
|
|
2424
2495
|
}
|
|
2496
|
+
function $updateThirdPartyInformationOperationCOROUTINE$(client, companyId, thirdPartyInformationId, generateThirdPartyInformationCommand, resultContinuation) {
|
|
2497
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2498
|
+
this.client_1 = client;
|
|
2499
|
+
this.companyId_1 = companyId;
|
|
2500
|
+
this.thirdPartyInformationId_1 = thirdPartyInformationId;
|
|
2501
|
+
this.generateThirdPartyInformationCommand_1 = generateThirdPartyInformationCommand;
|
|
2502
|
+
}
|
|
2503
|
+
protoOf($updateThirdPartyInformationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2504
|
+
var suspendResult = this.result_1;
|
|
2505
|
+
$sm: do
|
|
2506
|
+
try {
|
|
2507
|
+
var tmp = this.state_1;
|
|
2508
|
+
switch (tmp) {
|
|
2509
|
+
case 0:
|
|
2510
|
+
this.exceptionState_1 = 2;
|
|
2511
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2512
|
+
var localVariableBody = this.generateThirdPartyInformationCommand_1;
|
|
2513
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2514
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2515
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2516
|
+
var tmp1_path = replace(replace('/companies/{companyId}/thirdPartyInformation/{thirdPartyInformationId}', '{companyId}', this.companyId_1.toString()), '{thirdPartyInformationId}', this.thirdPartyInformationId_1.toString());
|
|
2517
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2518
|
+
this.state_1 = 1;
|
|
2519
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2520
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2521
|
+
return suspendResult;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
continue $sm;
|
|
2525
|
+
case 1:
|
|
2526
|
+
var this_0 = suspendResult;
|
|
2527
|
+
var tmp_0 = getKClass(ThirdPartyInformation);
|
|
2528
|
+
var tmp_1 = null instanceof ThirdPartyInformation;
|
|
2529
|
+
var tmp_2;
|
|
2530
|
+
try {
|
|
2531
|
+
tmp_2 = createKType(getKClass(ThirdPartyInformation), arrayOf([]), false);
|
|
2532
|
+
} catch ($p) {
|
|
2533
|
+
var tmp_3;
|
|
2534
|
+
if ($p instanceof Error) {
|
|
2535
|
+
var _unused_var__etf5q3 = $p;
|
|
2536
|
+
tmp_3 = null;
|
|
2537
|
+
} else {
|
|
2538
|
+
throw $p;
|
|
2539
|
+
}
|
|
2540
|
+
tmp_2 = tmp_3;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2544
|
+
case 2:
|
|
2545
|
+
throw this.exception_1;
|
|
2546
|
+
}
|
|
2547
|
+
} catch ($p_0) {
|
|
2548
|
+
var e = $p_0;
|
|
2549
|
+
if (this.exceptionState_1 === 2) {
|
|
2550
|
+
throw e;
|
|
2551
|
+
} else {
|
|
2552
|
+
this.state_1 = this.exceptionState_1;
|
|
2553
|
+
this.exception_1 = e;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
while (true);
|
|
2557
|
+
};
|
|
2425
2558
|
function Companion() {
|
|
2426
2559
|
}
|
|
2427
2560
|
var Companion_instance_0;
|
|
@@ -12458,6 +12591,20 @@ defineProp(TransmissionDialogType, 'Companion', Companion_getInstance_52, VOID,
|
|
|
12458
12591
|
export {
|
|
12459
12592
|
thirdPartyApi as thirdPartyApi,
|
|
12460
12593
|
ThirdPartyInformationApi as ThirdPartyInformationApi,
|
|
12594
|
+
completeThirdPartyInformationOperation as completeThirdPartyInformationOperation,
|
|
12595
|
+
createThirdPartyInformationOperation as createThirdPartyInformationOperation,
|
|
12596
|
+
getThirdPartyInformationAccountsOperation as getThirdPartyInformationAccountsOperation,
|
|
12597
|
+
indexThirdPartyInformationDialogOperation as indexThirdPartyInformationDialogOperation,
|
|
12598
|
+
indexThirdPartyInformationLetterByDialogYearOperation as indexThirdPartyInformationLetterByDialogYearOperation,
|
|
12599
|
+
indexThirdPartyInformationOperation as indexThirdPartyInformationOperation,
|
|
12600
|
+
overrideThirdPartyInformationOperation as overrideThirdPartyInformationOperation,
|
|
12601
|
+
reOpenThirdPartyInformationOperation as reOpenThirdPartyInformationOperation,
|
|
12602
|
+
sendThirdPartyInformationToSkatteetatenOperation as sendThirdPartyInformationToSkatteetatenOperation,
|
|
12603
|
+
sendThirdPartyInformationWithDigiPostOperation as sendThirdPartyInformationWithDigiPostOperation,
|
|
12604
|
+
showThirdPartyInformationLetterByDialogYearOperation as showThirdPartyInformationLetterByDialogYearOperation,
|
|
12605
|
+
showThirdPartyInformationLetterOperation as showThirdPartyInformationLetterOperation,
|
|
12606
|
+
showThirdPartyInformationOperation as showThirdPartyInformationOperation,
|
|
12607
|
+
updateThirdPartyInformationOperation as updateThirdPartyInformationOperation,
|
|
12461
12608
|
Avvik as Avvik,
|
|
12462
12609
|
Avviksliste as Avviksliste,
|
|
12463
12610
|
FilesDownload as FilesDownload,
|