@solibo/home-api 1.41.1 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/kotlin-kotlin-stdlib.mjs +0 -4
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +716 -2
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
protoOf180f3jzyo7rfj as protoOf,
|
|
5
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
6
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
8
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
9
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
10
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
7
13
|
listOf1jh22dvmctj1r as listOf,
|
|
8
14
|
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
9
15
|
replace3le3ie7l9k8aq as replace,
|
|
10
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
11
16
|
arrayOf1akklvh2at202 as arrayOf,
|
|
12
17
|
createKType31ecntyyaay3k as createKType,
|
|
13
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
14
|
-
await3n7kedgocftsv as await_0,
|
|
15
18
|
Unitkvevlwgzwiuc as Unit,
|
|
16
19
|
listOfvhqybd2zx248 as listOf_0,
|
|
17
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
18
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
19
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
21
21
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
22
22
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
35
35
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
36
36
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
37
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
37
38
|
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
38
39
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
39
40
|
OrganizationEmployee1n7v5908s0o57 as OrganizationEmployee,
|
|
@@ -43,7 +44,6 @@ import {
|
|
|
43
44
|
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
44
45
|
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
45
46
|
Organization12q9lomw4ny0l as Organization,
|
|
46
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
47
47
|
$serializer_getInstance1se14apkjzug7 as $serializer_getInstance,
|
|
48
48
|
$serializer_getInstancei1xl24gtrm2r as $serializer_getInstance_0,
|
|
49
49
|
Companion_getInstance25z09y6q6rzib as Companion_getInstance_0,
|
|
@@ -74,41 +74,41 @@ import {
|
|
|
74
74
|
var imul = Math.imul;
|
|
75
75
|
//endregion
|
|
76
76
|
//region block: pre-declaration
|
|
77
|
-
initMetadataForCoroutine($createOrganizationEmployeeCOROUTINE$, CoroutineImpl);
|
|
78
77
|
initMetadataForCoroutine($createOrganizationEmployee$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
79
|
-
initMetadataForCoroutine($deleteOrganizationCompanyContactCOROUTINE$, CoroutineImpl);
|
|
80
78
|
initMetadataForCoroutine($deleteOrganizationCompanyContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
81
|
-
initMetadataForCoroutine($deleteOrganizationEmployeeCOROUTINE$, CoroutineImpl);
|
|
82
79
|
initMetadataForCoroutine($deleteOrganizationEmployee$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
83
|
-
initMetadataForCoroutine($deleteOrganizationFromSAMCOROUTINE$, CoroutineImpl);
|
|
84
80
|
initMetadataForCoroutine($deleteOrganizationFromSAM$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
85
|
-
initMetadataForCoroutine($deleteOrganizationRoleCOROUTINE$, CoroutineImpl);
|
|
86
81
|
initMetadataForCoroutine($deleteOrganizationRole$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
87
|
-
initMetadataForCoroutine($deleteOrganizationSectionContactCOROUTINE$, CoroutineImpl);
|
|
88
82
|
initMetadataForCoroutine($deleteOrganizationSectionContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
89
|
-
initMetadataForCoroutine($indexOrganizationsCOROUTINE$, CoroutineImpl);
|
|
90
83
|
initMetadataForCoroutine($indexOrganizations$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
91
|
-
initMetadataForCoroutine($indexOrganizationsForEditCOROUTINE$, CoroutineImpl);
|
|
92
84
|
initMetadataForCoroutine($indexOrganizationsForEdit$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
93
|
-
initMetadataForCoroutine($massUpdateOrganizationCOROUTINE$, CoroutineImpl);
|
|
94
85
|
initMetadataForCoroutine($massUpdateOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForCoroutine($searchOrganizationsCOROUTINE$, CoroutineImpl);
|
|
96
86
|
initMetadataForCoroutine($searchOrganizations$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
97
|
-
initMetadataForCoroutine($showOrganizationCOROUTINE$, CoroutineImpl);
|
|
98
87
|
initMetadataForCoroutine($showOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
99
|
-
initMetadataForCoroutine($showOrganizationByOrganizationnummerCOROUTINE$, CoroutineImpl);
|
|
100
88
|
initMetadataForCoroutine($showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
101
|
-
initMetadataForCoroutine($updateOrganizationCOROUTINE$, CoroutineImpl);
|
|
102
89
|
initMetadataForCoroutine($updateOrganization$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
103
|
-
initMetadataForCoroutine($updateOrganizationCompanyContactCOROUTINE$, CoroutineImpl);
|
|
104
90
|
initMetadataForCoroutine($updateOrganizationCompanyContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
105
|
-
initMetadataForCoroutine($updateOrganizationEmployeeCOROUTINE$, CoroutineImpl);
|
|
106
91
|
initMetadataForCoroutine($updateOrganizationEmployee$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
107
|
-
initMetadataForCoroutine($updateOrganizationReservationsCOROUTINE$, CoroutineImpl);
|
|
108
92
|
initMetadataForCoroutine($updateOrganizationReservations$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
109
|
-
initMetadataForCoroutine($updateOrganizationSectionContactCOROUTINE$, CoroutineImpl);
|
|
110
93
|
initMetadataForCoroutine($updateOrganizationSectionContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
111
94
|
initMetadataForClass(OrganizationApi, 'OrganizationApi', create, ApiClient, VOID, [2, 3, 4, 5, 6, 1]);
|
|
95
|
+
initMetadataForCoroutine($createOrganizationEmployeeOperationCOROUTINE$, CoroutineImpl);
|
|
96
|
+
initMetadataForCoroutine($deleteOrganizationCompanyContactOperationCOROUTINE$, CoroutineImpl);
|
|
97
|
+
initMetadataForCoroutine($deleteOrganizationEmployeeOperationCOROUTINE$, CoroutineImpl);
|
|
98
|
+
initMetadataForCoroutine($deleteOrganizationFromSAMOperationCOROUTINE$, CoroutineImpl);
|
|
99
|
+
initMetadataForCoroutine($deleteOrganizationRoleOperationCOROUTINE$, CoroutineImpl);
|
|
100
|
+
initMetadataForCoroutine($deleteOrganizationSectionContactOperationCOROUTINE$, CoroutineImpl);
|
|
101
|
+
initMetadataForCoroutine($indexOrganizationsForEditOperationCOROUTINE$, CoroutineImpl);
|
|
102
|
+
initMetadataForCoroutine($indexOrganizationsOperationCOROUTINE$, CoroutineImpl);
|
|
103
|
+
initMetadataForCoroutine($massUpdateOrganizationOperationCOROUTINE$, CoroutineImpl);
|
|
104
|
+
initMetadataForCoroutine($searchOrganizationsOperationCOROUTINE$, CoroutineImpl);
|
|
105
|
+
initMetadataForCoroutine($showOrganizationByOrganizationnummerOperationCOROUTINE$, CoroutineImpl);
|
|
106
|
+
initMetadataForCoroutine($showOrganizationOperationCOROUTINE$, CoroutineImpl);
|
|
107
|
+
initMetadataForCoroutine($updateOrganizationCompanyContactOperationCOROUTINE$, CoroutineImpl);
|
|
108
|
+
initMetadataForCoroutine($updateOrganizationEmployeeOperationCOROUTINE$, CoroutineImpl);
|
|
109
|
+
initMetadataForCoroutine($updateOrganizationOperationCOROUTINE$, CoroutineImpl);
|
|
110
|
+
initMetadataForCoroutine($updateOrganizationReservationsOperationCOROUTINE$, CoroutineImpl);
|
|
111
|
+
initMetadataForCoroutine($updateOrganizationSectionContactOperationCOROUTINE$, CoroutineImpl);
|
|
112
112
|
initMetadataForCompanion(Companion);
|
|
113
113
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
114
114
|
initMetadataForClass(CreateEmployeeCommand, 'CreateEmployeeCommand', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_8});
|
|
@@ -164,67 +164,6 @@ function OrganizationApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
164
164
|
function createWithClient(baseUrl, httpClient) {
|
|
165
165
|
return OrganizationApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(OrganizationApi)));
|
|
166
166
|
}
|
|
167
|
-
function $createOrganizationEmployeeCOROUTINE$(_this__u8e3s4, organizationId, createEmployeeCommand, resultContinuation) {
|
|
168
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
169
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
170
|
-
this.organizationId_1 = organizationId;
|
|
171
|
-
this.createEmployeeCommand_1 = createEmployeeCommand;
|
|
172
|
-
}
|
|
173
|
-
protoOf($createOrganizationEmployeeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
174
|
-
var suspendResult = this.result_1;
|
|
175
|
-
$sm: do
|
|
176
|
-
try {
|
|
177
|
-
var tmp = this.state_1;
|
|
178
|
-
switch (tmp) {
|
|
179
|
-
case 0:
|
|
180
|
-
this.exceptionState_1 = 2;
|
|
181
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
182
|
-
var localVariableBody = this.createEmployeeCommand_1;
|
|
183
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
184
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
185
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
186
|
-
var tmp1_path = replace('/organizations/{organizationId}/employees', '{organizationId}', this.organizationId_1.toString());
|
|
187
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
188
|
-
this.state_1 = 1;
|
|
189
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
190
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
191
|
-
return suspendResult;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
continue $sm;
|
|
195
|
-
case 1:
|
|
196
|
-
var this_0 = suspendResult;
|
|
197
|
-
var tmp_0 = getKClass(OrganizationEmployee);
|
|
198
|
-
var tmp_1 = null instanceof OrganizationEmployee;
|
|
199
|
-
var tmp_2;
|
|
200
|
-
try {
|
|
201
|
-
tmp_2 = createKType(getKClass(OrganizationEmployee), arrayOf([]), false);
|
|
202
|
-
} catch ($p) {
|
|
203
|
-
var tmp_3;
|
|
204
|
-
if ($p instanceof Error) {
|
|
205
|
-
var _unused_var__etf5q3 = $p;
|
|
206
|
-
tmp_3 = null;
|
|
207
|
-
} else {
|
|
208
|
-
throw $p;
|
|
209
|
-
}
|
|
210
|
-
tmp_2 = tmp_3;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
214
|
-
case 2:
|
|
215
|
-
throw this.exception_1;
|
|
216
|
-
}
|
|
217
|
-
} catch ($p_0) {
|
|
218
|
-
var e = $p_0;
|
|
219
|
-
if (this.exceptionState_1 === 2) {
|
|
220
|
-
throw e;
|
|
221
|
-
} else {
|
|
222
|
-
this.state_1 = this.exceptionState_1;
|
|
223
|
-
this.exception_1 = e;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
while (true);
|
|
227
|
-
};
|
|
228
167
|
function $createOrganizationEmployee$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, createEmployeeCommand, resultContinuation) {
|
|
229
168
|
CoroutineImpl.call(this, resultContinuation);
|
|
230
169
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -279,68 +218,6 @@ protoOf($createOrganizationEmployee$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
279
218
|
}
|
|
280
219
|
while (true);
|
|
281
220
|
};
|
|
282
|
-
function $deleteOrganizationCompanyContactCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, resultContinuation) {
|
|
283
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
284
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
285
|
-
this.organizationId_1 = organizationId;
|
|
286
|
-
this.employeeId_1 = employeeId;
|
|
287
|
-
this.companyId_1 = companyId;
|
|
288
|
-
}
|
|
289
|
-
protoOf($deleteOrganizationCompanyContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
290
|
-
var suspendResult = this.result_1;
|
|
291
|
-
$sm: do
|
|
292
|
-
try {
|
|
293
|
-
var tmp = this.state_1;
|
|
294
|
-
switch (tmp) {
|
|
295
|
-
case 0:
|
|
296
|
-
this.exceptionState_1 = 2;
|
|
297
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
298
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
299
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
300
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
301
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
302
|
-
var tmp1_path = replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString());
|
|
303
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
304
|
-
this.state_1 = 1;
|
|
305
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
306
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
307
|
-
return suspendResult;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
continue $sm;
|
|
311
|
-
case 1:
|
|
312
|
-
var this_0 = suspendResult;
|
|
313
|
-
var tmp_0 = getKClass(Unit);
|
|
314
|
-
var tmp_1 = null instanceof Unit;
|
|
315
|
-
var tmp_2;
|
|
316
|
-
try {
|
|
317
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
318
|
-
} catch ($p) {
|
|
319
|
-
var tmp_3;
|
|
320
|
-
if ($p instanceof Error) {
|
|
321
|
-
var _unused_var__etf5q3 = $p;
|
|
322
|
-
tmp_3 = null;
|
|
323
|
-
} else {
|
|
324
|
-
throw $p;
|
|
325
|
-
}
|
|
326
|
-
tmp_2 = tmp_3;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
330
|
-
case 2:
|
|
331
|
-
throw this.exception_1;
|
|
332
|
-
}
|
|
333
|
-
} catch ($p_0) {
|
|
334
|
-
var e = $p_0;
|
|
335
|
-
if (this.exceptionState_1 === 2) {
|
|
336
|
-
throw e;
|
|
337
|
-
} else {
|
|
338
|
-
this.state_1 = this.exceptionState_1;
|
|
339
|
-
this.exception_1 = e;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
while (true);
|
|
343
|
-
};
|
|
344
221
|
function $deleteOrganizationCompanyContact$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, resultContinuation) {
|
|
345
222
|
CoroutineImpl.call(this, resultContinuation);
|
|
346
223
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -396,67 +273,6 @@ protoOf($deleteOrganizationCompanyContact$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
396
273
|
}
|
|
397
274
|
while (true);
|
|
398
275
|
};
|
|
399
|
-
function $deleteOrganizationEmployeeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, resultContinuation) {
|
|
400
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
401
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
402
|
-
this.organizationId_1 = organizationId;
|
|
403
|
-
this.employeeId_1 = employeeId;
|
|
404
|
-
}
|
|
405
|
-
protoOf($deleteOrganizationEmployeeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
406
|
-
var suspendResult = this.result_1;
|
|
407
|
-
$sm: do
|
|
408
|
-
try {
|
|
409
|
-
var tmp = this.state_1;
|
|
410
|
-
switch (tmp) {
|
|
411
|
-
case 0:
|
|
412
|
-
this.exceptionState_1 = 2;
|
|
413
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
414
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
415
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
416
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
417
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
418
|
-
var tmp1_path = replace(replace('/organizations/{organizationId}/employees/{employeeId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString());
|
|
419
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
420
|
-
this.state_1 = 1;
|
|
421
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
422
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
423
|
-
return suspendResult;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
continue $sm;
|
|
427
|
-
case 1:
|
|
428
|
-
var this_0 = suspendResult;
|
|
429
|
-
var tmp_0 = getKClass(Unit);
|
|
430
|
-
var tmp_1 = null instanceof Unit;
|
|
431
|
-
var tmp_2;
|
|
432
|
-
try {
|
|
433
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
434
|
-
} catch ($p) {
|
|
435
|
-
var tmp_3;
|
|
436
|
-
if ($p instanceof Error) {
|
|
437
|
-
var _unused_var__etf5q3 = $p;
|
|
438
|
-
tmp_3 = null;
|
|
439
|
-
} else {
|
|
440
|
-
throw $p;
|
|
441
|
-
}
|
|
442
|
-
tmp_2 = tmp_3;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
446
|
-
case 2:
|
|
447
|
-
throw this.exception_1;
|
|
448
|
-
}
|
|
449
|
-
} catch ($p_0) {
|
|
450
|
-
var e = $p_0;
|
|
451
|
-
if (this.exceptionState_1 === 2) {
|
|
452
|
-
throw e;
|
|
453
|
-
} else {
|
|
454
|
-
this.state_1 = this.exceptionState_1;
|
|
455
|
-
this.exception_1 = e;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
while (true);
|
|
459
|
-
};
|
|
460
276
|
function $deleteOrganizationEmployee$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, resultContinuation) {
|
|
461
277
|
CoroutineImpl.call(this, resultContinuation);
|
|
462
278
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -511,67 +327,6 @@ protoOf($deleteOrganizationEmployee$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
511
327
|
}
|
|
512
328
|
while (true);
|
|
513
329
|
};
|
|
514
|
-
function $deleteOrganizationFromSAMCOROUTINE$(_this__u8e3s4, companyId, organizationId, resultContinuation) {
|
|
515
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
516
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
517
|
-
this.companyId_1 = companyId;
|
|
518
|
-
this.organizationId_1 = organizationId;
|
|
519
|
-
}
|
|
520
|
-
protoOf($deleteOrganizationFromSAMCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
521
|
-
var suspendResult = this.result_1;
|
|
522
|
-
$sm: do
|
|
523
|
-
try {
|
|
524
|
-
var tmp = this.state_1;
|
|
525
|
-
switch (tmp) {
|
|
526
|
-
case 0:
|
|
527
|
-
this.exceptionState_1 = 2;
|
|
528
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
529
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
530
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
531
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
532
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
533
|
-
var tmp1_path = replace(replace('/companies/{companyId}/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{organizationId}', this.organizationId_1.toString());
|
|
534
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
535
|
-
this.state_1 = 1;
|
|
536
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
537
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
538
|
-
return suspendResult;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
continue $sm;
|
|
542
|
-
case 1:
|
|
543
|
-
var this_0 = suspendResult;
|
|
544
|
-
var tmp_0 = getKClass(Unit);
|
|
545
|
-
var tmp_1 = null instanceof Unit;
|
|
546
|
-
var tmp_2;
|
|
547
|
-
try {
|
|
548
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
549
|
-
} catch ($p) {
|
|
550
|
-
var tmp_3;
|
|
551
|
-
if ($p instanceof Error) {
|
|
552
|
-
var _unused_var__etf5q3 = $p;
|
|
553
|
-
tmp_3 = null;
|
|
554
|
-
} else {
|
|
555
|
-
throw $p;
|
|
556
|
-
}
|
|
557
|
-
tmp_2 = tmp_3;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
561
|
-
case 2:
|
|
562
|
-
throw this.exception_1;
|
|
563
|
-
}
|
|
564
|
-
} catch ($p_0) {
|
|
565
|
-
var e = $p_0;
|
|
566
|
-
if (this.exceptionState_1 === 2) {
|
|
567
|
-
throw e;
|
|
568
|
-
} else {
|
|
569
|
-
this.state_1 = this.exceptionState_1;
|
|
570
|
-
this.exception_1 = e;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
while (true);
|
|
574
|
-
};
|
|
575
330
|
function $deleteOrganizationFromSAM$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, organizationId, resultContinuation) {
|
|
576
331
|
CoroutineImpl.call(this, resultContinuation);
|
|
577
332
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -626,74 +381,13 @@ protoOf($deleteOrganizationFromSAM$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
626
381
|
}
|
|
627
382
|
while (true);
|
|
628
383
|
};
|
|
629
|
-
function $
|
|
384
|
+
function $deleteOrganizationRole$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, roleId, resultContinuation) {
|
|
630
385
|
CoroutineImpl.call(this, resultContinuation);
|
|
631
386
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
632
387
|
this.organizationId_1 = organizationId;
|
|
633
388
|
this.roleId_1 = roleId;
|
|
634
389
|
}
|
|
635
|
-
protoOf($
|
|
636
|
-
var suspendResult = this.result_1;
|
|
637
|
-
$sm: do
|
|
638
|
-
try {
|
|
639
|
-
var tmp = this.state_1;
|
|
640
|
-
switch (tmp) {
|
|
641
|
-
case 0:
|
|
642
|
-
this.exceptionState_1 = 2;
|
|
643
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
644
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
645
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
646
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
647
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
648
|
-
var tmp1_path = replace(replace('/organizations/{organizationId}/roles/{roleId}', '{organizationId}', this.organizationId_1.toString()), '{roleId}', this.roleId_1.toString());
|
|
649
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
650
|
-
this.state_1 = 1;
|
|
651
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
652
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
653
|
-
return suspendResult;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
continue $sm;
|
|
657
|
-
case 1:
|
|
658
|
-
var this_0 = suspendResult;
|
|
659
|
-
var tmp_0 = getKClass(Unit);
|
|
660
|
-
var tmp_1 = null instanceof Unit;
|
|
661
|
-
var tmp_2;
|
|
662
|
-
try {
|
|
663
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
664
|
-
} catch ($p) {
|
|
665
|
-
var tmp_3;
|
|
666
|
-
if ($p instanceof Error) {
|
|
667
|
-
var _unused_var__etf5q3 = $p;
|
|
668
|
-
tmp_3 = null;
|
|
669
|
-
} else {
|
|
670
|
-
throw $p;
|
|
671
|
-
}
|
|
672
|
-
tmp_2 = tmp_3;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
676
|
-
case 2:
|
|
677
|
-
throw this.exception_1;
|
|
678
|
-
}
|
|
679
|
-
} catch ($p_0) {
|
|
680
|
-
var e = $p_0;
|
|
681
|
-
if (this.exceptionState_1 === 2) {
|
|
682
|
-
throw e;
|
|
683
|
-
} else {
|
|
684
|
-
this.state_1 = this.exceptionState_1;
|
|
685
|
-
this.exception_1 = e;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
while (true);
|
|
689
|
-
};
|
|
690
|
-
function $deleteOrganizationRole$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, roleId, resultContinuation) {
|
|
691
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
692
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
693
|
-
this.organizationId_1 = organizationId;
|
|
694
|
-
this.roleId_1 = roleId;
|
|
695
|
-
}
|
|
696
|
-
protoOf($deleteOrganizationRole$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
390
|
+
protoOf($deleteOrganizationRole$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
697
391
|
var suspendResult = this.result_1;
|
|
698
392
|
$sm: do
|
|
699
393
|
try {
|
|
@@ -741,7 +435,7 @@ protoOf($deleteOrganizationRole$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
741
435
|
}
|
|
742
436
|
while (true);
|
|
743
437
|
};
|
|
744
|
-
function $
|
|
438
|
+
function $deleteOrganizationSectionContact$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, sectionId, resultContinuation) {
|
|
745
439
|
CoroutineImpl.call(this, resultContinuation);
|
|
746
440
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
747
441
|
this.organizationId_1 = organizationId;
|
|
@@ -749,53 +443,46 @@ function $deleteOrganizationSectionContactCOROUTINE$(_this__u8e3s4, organization
|
|
|
749
443
|
this.companyId_1 = companyId;
|
|
750
444
|
this.sectionId_1 = sectionId;
|
|
751
445
|
}
|
|
752
|
-
protoOf($
|
|
446
|
+
protoOf($deleteOrganizationSectionContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
753
447
|
var suspendResult = this.result_1;
|
|
754
448
|
$sm: do
|
|
755
449
|
try {
|
|
756
450
|
var tmp = this.state_1;
|
|
757
451
|
switch (tmp) {
|
|
758
452
|
case 0:
|
|
759
|
-
this.exceptionState_1 =
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
var tmp1_path = replace(replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}/sections/{sectionId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
766
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
767
|
-
this.state_1 = 1;
|
|
768
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
769
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
770
|
-
return suspendResult;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
continue $sm;
|
|
774
|
-
case 1:
|
|
775
|
-
var this_0 = suspendResult;
|
|
776
|
-
var tmp_0 = getKClass(Unit);
|
|
777
|
-
var tmp_1 = null instanceof Unit;
|
|
778
|
-
var tmp_2;
|
|
779
|
-
try {
|
|
780
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
781
|
-
} catch ($p) {
|
|
782
|
-
var tmp_3;
|
|
783
|
-
if ($p instanceof Error) {
|
|
784
|
-
var _unused_var__etf5q3 = $p;
|
|
785
|
-
tmp_3 = null;
|
|
786
|
-
} else {
|
|
787
|
-
throw $p;
|
|
453
|
+
this.exceptionState_1 = 4;
|
|
454
|
+
if (this._this__u8e3s4__1.deleteOrganizationSectionContact === protoOf(OrganizationApi).deleteOrganizationSectionContact) {
|
|
455
|
+
this.state_1 = 2;
|
|
456
|
+
suspendResult = this._this__u8e3s4__1.deleteOrganizationSectionContact_hbuwk5_k$(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1, this);
|
|
457
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
458
|
+
return suspendResult;
|
|
788
459
|
}
|
|
789
|
-
|
|
460
|
+
continue $sm;
|
|
461
|
+
} else {
|
|
462
|
+
this.state_1 = 1;
|
|
463
|
+
suspendResult = await_0(this._this__u8e3s4__1.deleteOrganizationSectionContact(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1), this);
|
|
464
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
|
+
return suspendResult;
|
|
466
|
+
}
|
|
467
|
+
continue $sm;
|
|
790
468
|
}
|
|
791
469
|
|
|
792
|
-
|
|
470
|
+
case 1:
|
|
471
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
472
|
+
this.state_1 = 3;
|
|
473
|
+
continue $sm;
|
|
793
474
|
case 2:
|
|
475
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
476
|
+
this.state_1 = 3;
|
|
477
|
+
continue $sm;
|
|
478
|
+
case 3:
|
|
479
|
+
return this.WHEN_RESULT0__1;
|
|
480
|
+
case 4:
|
|
794
481
|
throw this.exception_1;
|
|
795
482
|
}
|
|
796
|
-
} catch ($
|
|
797
|
-
var e = $
|
|
798
|
-
if (this.exceptionState_1 ===
|
|
483
|
+
} catch ($p) {
|
|
484
|
+
var e = $p;
|
|
485
|
+
if (this.exceptionState_1 === 4) {
|
|
799
486
|
throw e;
|
|
800
487
|
} else {
|
|
801
488
|
this.state_1 = this.exceptionState_1;
|
|
@@ -804,15 +491,16 @@ protoOf($deleteOrganizationSectionContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
804
491
|
}
|
|
805
492
|
while (true);
|
|
806
493
|
};
|
|
807
|
-
function $
|
|
494
|
+
function $indexOrganizations$suspendBridgeCOROUTINE$(_this__u8e3s4, search, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
808
495
|
CoroutineImpl.call(this, resultContinuation);
|
|
809
496
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
497
|
+
this.search_1 = search;
|
|
498
|
+
this.fields_1 = fields;
|
|
499
|
+
this.pageToken_1 = pageToken;
|
|
500
|
+
this.autoPaginate_1 = autoPaginate;
|
|
501
|
+
this.count_1 = count;
|
|
814
502
|
}
|
|
815
|
-
protoOf($
|
|
503
|
+
protoOf($indexOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
816
504
|
var suspendResult = this.result_1;
|
|
817
505
|
$sm: do
|
|
818
506
|
try {
|
|
@@ -820,16 +508,16 @@ protoOf($deleteOrganizationSectionContact$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
820
508
|
switch (tmp) {
|
|
821
509
|
case 0:
|
|
822
510
|
this.exceptionState_1 = 4;
|
|
823
|
-
if (this._this__u8e3s4__1.
|
|
511
|
+
if (this._this__u8e3s4__1.indexOrganizations === protoOf(OrganizationApi).indexOrganizations) {
|
|
824
512
|
this.state_1 = 2;
|
|
825
|
-
suspendResult = this._this__u8e3s4__1.
|
|
513
|
+
suspendResult = this._this__u8e3s4__1.indexOrganizations$default_p9zaz5_k$(this.search_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
826
514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
515
|
return suspendResult;
|
|
828
516
|
}
|
|
829
517
|
continue $sm;
|
|
830
518
|
} else {
|
|
831
519
|
this.state_1 = 1;
|
|
832
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
520
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexOrganizations(this.search_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
833
521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
834
522
|
return suspendResult;
|
|
835
523
|
}
|
|
@@ -860,98 +548,56 @@ protoOf($deleteOrganizationSectionContact$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
860
548
|
}
|
|
861
549
|
while (true);
|
|
862
550
|
};
|
|
863
|
-
function $
|
|
551
|
+
function $indexOrganizationsForEdit$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
864
552
|
CoroutineImpl.call(this, resultContinuation);
|
|
865
553
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
554
|
+
this.companyId_1 = companyId;
|
|
866
555
|
this.search_1 = search;
|
|
867
556
|
this.fields_1 = fields;
|
|
868
557
|
this.pageToken_1 = pageToken;
|
|
869
558
|
this.autoPaginate_1 = autoPaginate;
|
|
870
559
|
this.count_1 = count;
|
|
871
560
|
}
|
|
872
|
-
protoOf($
|
|
561
|
+
protoOf($indexOrganizationsForEdit$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
873
562
|
var suspendResult = this.result_1;
|
|
874
563
|
$sm: do
|
|
875
564
|
try {
|
|
876
565
|
var tmp = this.state_1;
|
|
877
566
|
switch (tmp) {
|
|
878
567
|
case 0:
|
|
879
|
-
this.exceptionState_1 =
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
else {
|
|
886
|
-
var value = listOf_0(this.search_1);
|
|
887
|
-
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
if (this.fields_1 == null)
|
|
891
|
-
null;
|
|
892
|
-
else {
|
|
893
|
-
var value_0 = listOf_0(this.fields_1);
|
|
894
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
if (this.pageToken_1 == null)
|
|
898
|
-
null;
|
|
899
|
-
else {
|
|
900
|
-
var tmp2 = 'pageToken';
|
|
901
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
902
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
if (this.autoPaginate_1 == null)
|
|
906
|
-
null;
|
|
907
|
-
else {
|
|
908
|
-
var tmp2_0 = 'autoPaginate';
|
|
909
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
910
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
if (this.count_1 == null)
|
|
914
|
-
null;
|
|
915
|
-
else {
|
|
916
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
917
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
921
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
922
|
-
var localVariableConfig = new RequestConfig(tmp5_method, '/organizations', localVariableHeaders, VOID, localVariableQuery, true);
|
|
923
|
-
this.state_1 = 1;
|
|
924
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
925
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
|
-
return suspendResult;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
continue $sm;
|
|
930
|
-
case 1:
|
|
931
|
-
var this_0 = suspendResult;
|
|
932
|
-
var tmp_0 = getKClass(PagedListOrganization);
|
|
933
|
-
var tmp_1 = null instanceof PagedListOrganization;
|
|
934
|
-
var tmp_2;
|
|
935
|
-
try {
|
|
936
|
-
tmp_2 = createKType(getKClass(PagedListOrganization), arrayOf([]), false);
|
|
937
|
-
} catch ($p) {
|
|
938
|
-
var tmp_3;
|
|
939
|
-
if ($p instanceof Error) {
|
|
940
|
-
var _unused_var__etf5q3 = $p;
|
|
941
|
-
tmp_3 = null;
|
|
942
|
-
} else {
|
|
943
|
-
throw $p;
|
|
568
|
+
this.exceptionState_1 = 4;
|
|
569
|
+
if (this._this__u8e3s4__1.indexOrganizationsForEdit === protoOf(OrganizationApi).indexOrganizationsForEdit) {
|
|
570
|
+
this.state_1 = 2;
|
|
571
|
+
suspendResult = this._this__u8e3s4__1.indexOrganizationsForEdit$default_cqx16y_k$(this.companyId_1, this.search_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
572
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
573
|
+
return suspendResult;
|
|
944
574
|
}
|
|
945
|
-
|
|
575
|
+
continue $sm;
|
|
576
|
+
} else {
|
|
577
|
+
this.state_1 = 1;
|
|
578
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexOrganizationsForEdit(this.companyId_1, this.search_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
579
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
580
|
+
return suspendResult;
|
|
581
|
+
}
|
|
582
|
+
continue $sm;
|
|
946
583
|
}
|
|
947
584
|
|
|
948
|
-
|
|
585
|
+
case 1:
|
|
586
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
587
|
+
this.state_1 = 3;
|
|
588
|
+
continue $sm;
|
|
949
589
|
case 2:
|
|
590
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
591
|
+
this.state_1 = 3;
|
|
592
|
+
continue $sm;
|
|
593
|
+
case 3:
|
|
594
|
+
return this.WHEN_RESULT0__1;
|
|
595
|
+
case 4:
|
|
950
596
|
throw this.exception_1;
|
|
951
597
|
}
|
|
952
|
-
} catch ($
|
|
953
|
-
var e = $
|
|
954
|
-
if (this.exceptionState_1 ===
|
|
598
|
+
} catch ($p) {
|
|
599
|
+
var e = $p;
|
|
600
|
+
if (this.exceptionState_1 === 4) {
|
|
955
601
|
throw e;
|
|
956
602
|
} else {
|
|
957
603
|
this.state_1 = this.exceptionState_1;
|
|
@@ -960,16 +606,13 @@ protoOf($indexOrganizationsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
960
606
|
}
|
|
961
607
|
while (true);
|
|
962
608
|
};
|
|
963
|
-
function $
|
|
609
|
+
function $massUpdateOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, massEditOrganizationCommand, resultContinuation) {
|
|
964
610
|
CoroutineImpl.call(this, resultContinuation);
|
|
965
611
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
966
|
-
this.
|
|
967
|
-
this.
|
|
968
|
-
this.pageToken_1 = pageToken;
|
|
969
|
-
this.autoPaginate_1 = autoPaginate;
|
|
970
|
-
this.count_1 = count;
|
|
612
|
+
this.companyId_1 = companyId;
|
|
613
|
+
this.massEditOrganizationCommand_1 = massEditOrganizationCommand;
|
|
971
614
|
}
|
|
972
|
-
protoOf($
|
|
615
|
+
protoOf($massUpdateOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
973
616
|
var suspendResult = this.result_1;
|
|
974
617
|
$sm: do
|
|
975
618
|
try {
|
|
@@ -977,16 +620,16 @@ protoOf($indexOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
977
620
|
switch (tmp) {
|
|
978
621
|
case 0:
|
|
979
622
|
this.exceptionState_1 = 4;
|
|
980
|
-
if (this._this__u8e3s4__1.
|
|
623
|
+
if (this._this__u8e3s4__1.massUpdateOrganization === protoOf(OrganizationApi).massUpdateOrganization) {
|
|
981
624
|
this.state_1 = 2;
|
|
982
|
-
suspendResult = this._this__u8e3s4__1.
|
|
625
|
+
suspendResult = this._this__u8e3s4__1.massUpdateOrganization_e9s6ij_k$(this.companyId_1, this.massEditOrganizationCommand_1, this);
|
|
983
626
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
984
627
|
return suspendResult;
|
|
985
628
|
}
|
|
986
629
|
continue $sm;
|
|
987
630
|
} else {
|
|
988
631
|
this.state_1 = 1;
|
|
989
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
632
|
+
suspendResult = await_0(this._this__u8e3s4__1.massUpdateOrganization(this.companyId_1, this.massEditOrganizationCommand_1), this);
|
|
990
633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
991
634
|
return suspendResult;
|
|
992
635
|
}
|
|
@@ -1017,100 +660,55 @@ protoOf($indexOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
1017
660
|
}
|
|
1018
661
|
while (true);
|
|
1019
662
|
};
|
|
1020
|
-
function $
|
|
663
|
+
function $searchOrganizations$suspendBridgeCOROUTINE$(_this__u8e3s4, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1021
664
|
CoroutineImpl.call(this, resultContinuation);
|
|
1022
665
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1023
|
-
this.
|
|
1024
|
-
this.search_1 = search;
|
|
666
|
+
this.query_1 = query;
|
|
1025
667
|
this.fields_1 = fields;
|
|
1026
668
|
this.pageToken_1 = pageToken;
|
|
1027
669
|
this.autoPaginate_1 = autoPaginate;
|
|
1028
670
|
this.count_1 = count;
|
|
1029
671
|
}
|
|
1030
|
-
protoOf($
|
|
672
|
+
protoOf($searchOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1031
673
|
var suspendResult = this.result_1;
|
|
1032
674
|
$sm: do
|
|
1033
675
|
try {
|
|
1034
676
|
var tmp = this.state_1;
|
|
1035
677
|
switch (tmp) {
|
|
1036
678
|
case 0:
|
|
1037
|
-
this.exceptionState_1 =
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
else {
|
|
1044
|
-
var value = listOf_0(this.search_1);
|
|
1045
|
-
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
if (this.fields_1 == null)
|
|
1049
|
-
null;
|
|
1050
|
-
else {
|
|
1051
|
-
var value_0 = listOf_0(this.fields_1);
|
|
1052
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
if (this.pageToken_1 == null)
|
|
1056
|
-
null;
|
|
1057
|
-
else {
|
|
1058
|
-
var tmp2 = 'pageToken';
|
|
1059
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
1060
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
if (this.autoPaginate_1 == null)
|
|
1064
|
-
null;
|
|
1065
|
-
else {
|
|
1066
|
-
var tmp2_0 = 'autoPaginate';
|
|
1067
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1068
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
if (this.count_1 == null)
|
|
1072
|
-
null;
|
|
1073
|
-
else {
|
|
1074
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
1075
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1079
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1080
|
-
var tmp6_path = replace('/companies/{companyId}/organizations', '{companyId}', this.companyId_1.toString());
|
|
1081
|
-
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1082
|
-
this.state_1 = 1;
|
|
1083
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1084
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
|
-
return suspendResult;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
continue $sm;
|
|
1089
|
-
case 1:
|
|
1090
|
-
var this_0 = suspendResult;
|
|
1091
|
-
var tmp_0 = getKClass(PagedListMassEditOrganization);
|
|
1092
|
-
var tmp_1 = null instanceof PagedListMassEditOrganization;
|
|
1093
|
-
var tmp_2;
|
|
1094
|
-
try {
|
|
1095
|
-
tmp_2 = createKType(getKClass(PagedListMassEditOrganization), arrayOf([]), false);
|
|
1096
|
-
} catch ($p) {
|
|
1097
|
-
var tmp_3;
|
|
1098
|
-
if ($p instanceof Error) {
|
|
1099
|
-
var _unused_var__etf5q3 = $p;
|
|
1100
|
-
tmp_3 = null;
|
|
1101
|
-
} else {
|
|
1102
|
-
throw $p;
|
|
679
|
+
this.exceptionState_1 = 4;
|
|
680
|
+
if (this._this__u8e3s4__1.searchOrganizations === protoOf(OrganizationApi).searchOrganizations) {
|
|
681
|
+
this.state_1 = 2;
|
|
682
|
+
suspendResult = this._this__u8e3s4__1.searchOrganizations$default_lb8k3f_k$(this.query_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
683
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
684
|
+
return suspendResult;
|
|
1103
685
|
}
|
|
1104
|
-
|
|
686
|
+
continue $sm;
|
|
687
|
+
} else {
|
|
688
|
+
this.state_1 = 1;
|
|
689
|
+
suspendResult = await_0(this._this__u8e3s4__1.searchOrganizations(this.query_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
690
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
691
|
+
return suspendResult;
|
|
692
|
+
}
|
|
693
|
+
continue $sm;
|
|
1105
694
|
}
|
|
1106
695
|
|
|
1107
|
-
|
|
696
|
+
case 1:
|
|
697
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
698
|
+
this.state_1 = 3;
|
|
699
|
+
continue $sm;
|
|
1108
700
|
case 2:
|
|
701
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
702
|
+
this.state_1 = 3;
|
|
703
|
+
continue $sm;
|
|
704
|
+
case 3:
|
|
705
|
+
return this.WHEN_RESULT0__1;
|
|
706
|
+
case 4:
|
|
1109
707
|
throw this.exception_1;
|
|
1110
708
|
}
|
|
1111
|
-
} catch ($
|
|
1112
|
-
var e = $
|
|
1113
|
-
if (this.exceptionState_1 ===
|
|
709
|
+
} catch ($p) {
|
|
710
|
+
var e = $p;
|
|
711
|
+
if (this.exceptionState_1 === 4) {
|
|
1114
712
|
throw e;
|
|
1115
713
|
} else {
|
|
1116
714
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1119,17 +717,13 @@ protoOf($indexOrganizationsForEditCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1119
717
|
}
|
|
1120
718
|
while (true);
|
|
1121
719
|
};
|
|
1122
|
-
function $
|
|
720
|
+
function $showOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, fields, resultContinuation) {
|
|
1123
721
|
CoroutineImpl.call(this, resultContinuation);
|
|
1124
722
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1125
|
-
this.
|
|
1126
|
-
this.search_1 = search;
|
|
723
|
+
this.organizationId_1 = organizationId;
|
|
1127
724
|
this.fields_1 = fields;
|
|
1128
|
-
this.pageToken_1 = pageToken;
|
|
1129
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1130
|
-
this.count_1 = count;
|
|
1131
725
|
}
|
|
1132
|
-
protoOf($
|
|
726
|
+
protoOf($showOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1133
727
|
var suspendResult = this.result_1;
|
|
1134
728
|
$sm: do
|
|
1135
729
|
try {
|
|
@@ -1137,16 +731,16 @@ protoOf($indexOrganizationsForEdit$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1137
731
|
switch (tmp) {
|
|
1138
732
|
case 0:
|
|
1139
733
|
this.exceptionState_1 = 4;
|
|
1140
|
-
if (this._this__u8e3s4__1.
|
|
734
|
+
if (this._this__u8e3s4__1.showOrganization === protoOf(OrganizationApi).showOrganization) {
|
|
1141
735
|
this.state_1 = 2;
|
|
1142
|
-
suspendResult = this._this__u8e3s4__1.
|
|
736
|
+
suspendResult = this._this__u8e3s4__1.showOrganization$default_kheag3_k$(this.organizationId_1, this.fields_1, this);
|
|
1143
737
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1144
738
|
return suspendResult;
|
|
1145
739
|
}
|
|
1146
740
|
continue $sm;
|
|
1147
741
|
} else {
|
|
1148
742
|
this.state_1 = 1;
|
|
1149
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
743
|
+
suspendResult = await_0(this._this__u8e3s4__1.showOrganization(this.organizationId_1, this.fields_1), this);
|
|
1150
744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1151
745
|
return suspendResult;
|
|
1152
746
|
}
|
|
@@ -1177,59 +771,105 @@ protoOf($indexOrganizationsForEdit$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1177
771
|
}
|
|
1178
772
|
while (true);
|
|
1179
773
|
};
|
|
1180
|
-
function $
|
|
774
|
+
function $showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationNumber, resultContinuation) {
|
|
1181
775
|
CoroutineImpl.call(this, resultContinuation);
|
|
1182
776
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1183
|
-
this.
|
|
1184
|
-
this.massEditOrganizationCommand_1 = massEditOrganizationCommand;
|
|
777
|
+
this.organizationNumber_1 = organizationNumber;
|
|
1185
778
|
}
|
|
1186
|
-
protoOf($
|
|
779
|
+
protoOf($showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1187
780
|
var suspendResult = this.result_1;
|
|
1188
781
|
$sm: do
|
|
1189
782
|
try {
|
|
1190
783
|
var tmp = this.state_1;
|
|
1191
784
|
switch (tmp) {
|
|
1192
785
|
case 0:
|
|
1193
|
-
this.exceptionState_1 =
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
786
|
+
this.exceptionState_1 = 4;
|
|
787
|
+
if (this._this__u8e3s4__1.showOrganizationByOrganizationnummer === protoOf(OrganizationApi).showOrganizationByOrganizationnummer) {
|
|
788
|
+
this.state_1 = 2;
|
|
789
|
+
suspendResult = this._this__u8e3s4__1.showOrganizationByOrganizationnummer_hp0cp2_k$(this.organizationNumber_1, this);
|
|
790
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
791
|
+
return suspendResult;
|
|
792
|
+
}
|
|
793
|
+
continue $sm;
|
|
794
|
+
} else {
|
|
795
|
+
this.state_1 = 1;
|
|
796
|
+
suspendResult = await_0(this._this__u8e3s4__1.showOrganizationByOrganizationnummer(this.organizationNumber_1), this);
|
|
797
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
798
|
+
return suspendResult;
|
|
799
|
+
}
|
|
800
|
+
continue $sm;
|
|
1205
801
|
}
|
|
1206
802
|
|
|
1207
|
-
continue $sm;
|
|
1208
803
|
case 1:
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
804
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
805
|
+
this.state_1 = 3;
|
|
806
|
+
continue $sm;
|
|
807
|
+
case 2:
|
|
808
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
809
|
+
this.state_1 = 3;
|
|
810
|
+
continue $sm;
|
|
811
|
+
case 3:
|
|
812
|
+
return this.WHEN_RESULT0__1;
|
|
813
|
+
case 4:
|
|
814
|
+
throw this.exception_1;
|
|
815
|
+
}
|
|
816
|
+
} catch ($p) {
|
|
817
|
+
var e = $p;
|
|
818
|
+
if (this.exceptionState_1 === 4) {
|
|
819
|
+
throw e;
|
|
820
|
+
} else {
|
|
821
|
+
this.state_1 = this.exceptionState_1;
|
|
822
|
+
this.exception_1 = e;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
while (true);
|
|
826
|
+
};
|
|
827
|
+
function $updateOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, updateOrganizationCommand, resultContinuation) {
|
|
828
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
829
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
830
|
+
this.organizationId_1 = organizationId;
|
|
831
|
+
this.updateOrganizationCommand_1 = updateOrganizationCommand;
|
|
832
|
+
}
|
|
833
|
+
protoOf($updateOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
834
|
+
var suspendResult = this.result_1;
|
|
835
|
+
$sm: do
|
|
836
|
+
try {
|
|
837
|
+
var tmp = this.state_1;
|
|
838
|
+
switch (tmp) {
|
|
839
|
+
case 0:
|
|
840
|
+
this.exceptionState_1 = 4;
|
|
841
|
+
if (this._this__u8e3s4__1.updateOrganization === protoOf(OrganizationApi).updateOrganization) {
|
|
842
|
+
this.state_1 = 2;
|
|
843
|
+
suspendResult = this._this__u8e3s4__1.updateOrganization_2q1z2e_k$(this.organizationId_1, this.updateOrganizationCommand_1, this);
|
|
844
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
|
+
return suspendResult;
|
|
1222
846
|
}
|
|
1223
|
-
|
|
847
|
+
continue $sm;
|
|
848
|
+
} else {
|
|
849
|
+
this.state_1 = 1;
|
|
850
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateOrganization(this.organizationId_1, this.updateOrganizationCommand_1), this);
|
|
851
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
852
|
+
return suspendResult;
|
|
853
|
+
}
|
|
854
|
+
continue $sm;
|
|
1224
855
|
}
|
|
1225
856
|
|
|
1226
|
-
|
|
857
|
+
case 1:
|
|
858
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
859
|
+
this.state_1 = 3;
|
|
860
|
+
continue $sm;
|
|
1227
861
|
case 2:
|
|
862
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
863
|
+
this.state_1 = 3;
|
|
864
|
+
continue $sm;
|
|
865
|
+
case 3:
|
|
866
|
+
return this.WHEN_RESULT0__1;
|
|
867
|
+
case 4:
|
|
1228
868
|
throw this.exception_1;
|
|
1229
869
|
}
|
|
1230
|
-
} catch ($
|
|
1231
|
-
var e = $
|
|
1232
|
-
if (this.exceptionState_1 ===
|
|
870
|
+
} catch ($p) {
|
|
871
|
+
var e = $p;
|
|
872
|
+
if (this.exceptionState_1 === 4) {
|
|
1233
873
|
throw e;
|
|
1234
874
|
} else {
|
|
1235
875
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1238,13 +878,14 @@ protoOf($massUpdateOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1238
878
|
}
|
|
1239
879
|
while (true);
|
|
1240
880
|
};
|
|
1241
|
-
function $
|
|
881
|
+
function $updateOrganizationCompanyContact$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, resultContinuation) {
|
|
1242
882
|
CoroutineImpl.call(this, resultContinuation);
|
|
1243
883
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
884
|
+
this.organizationId_1 = organizationId;
|
|
885
|
+
this.employeeId_1 = employeeId;
|
|
1244
886
|
this.companyId_1 = companyId;
|
|
1245
|
-
this.massEditOrganizationCommand_1 = massEditOrganizationCommand;
|
|
1246
887
|
}
|
|
1247
|
-
protoOf($
|
|
888
|
+
protoOf($updateOrganizationCompanyContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1248
889
|
var suspendResult = this.result_1;
|
|
1249
890
|
$sm: do
|
|
1250
891
|
try {
|
|
@@ -1252,16 +893,16 @@ protoOf($massUpdateOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
1252
893
|
switch (tmp) {
|
|
1253
894
|
case 0:
|
|
1254
895
|
this.exceptionState_1 = 4;
|
|
1255
|
-
if (this._this__u8e3s4__1.
|
|
896
|
+
if (this._this__u8e3s4__1.updateOrganizationCompanyContact === protoOf(OrganizationApi).updateOrganizationCompanyContact) {
|
|
1256
897
|
this.state_1 = 2;
|
|
1257
|
-
suspendResult = this._this__u8e3s4__1.
|
|
898
|
+
suspendResult = this._this__u8e3s4__1.updateOrganizationCompanyContact_p33qyn_k$(this.organizationId_1, this.employeeId_1, this.companyId_1, this);
|
|
1258
899
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1259
900
|
return suspendResult;
|
|
1260
901
|
}
|
|
1261
902
|
continue $sm;
|
|
1262
903
|
} else {
|
|
1263
904
|
this.state_1 = 1;
|
|
1264
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
905
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationCompanyContact(this.organizationId_1, this.employeeId_1, this.companyId_1), this);
|
|
1265
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1266
907
|
return suspendResult;
|
|
1267
908
|
}
|
|
@@ -1292,116 +933,14 @@ protoOf($massUpdateOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
1292
933
|
}
|
|
1293
934
|
while (true);
|
|
1294
935
|
};
|
|
1295
|
-
function $
|
|
936
|
+
function $updateOrganizationEmployee$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, updateEmployeeCommand, resultContinuation) {
|
|
1296
937
|
CoroutineImpl.call(this, resultContinuation);
|
|
1297
938
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1302
|
-
this.count_1 = count;
|
|
939
|
+
this.organizationId_1 = organizationId;
|
|
940
|
+
this.employeeId_1 = employeeId;
|
|
941
|
+
this.updateEmployeeCommand_1 = updateEmployeeCommand;
|
|
1303
942
|
}
|
|
1304
|
-
protoOf($
|
|
1305
|
-
var suspendResult = this.result_1;
|
|
1306
|
-
$sm: do
|
|
1307
|
-
try {
|
|
1308
|
-
var tmp = this.state_1;
|
|
1309
|
-
switch (tmp) {
|
|
1310
|
-
case 0:
|
|
1311
|
-
this.exceptionState_1 = 2;
|
|
1312
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1313
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1314
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1315
|
-
if (this.query_1 == null)
|
|
1316
|
-
null;
|
|
1317
|
-
else {
|
|
1318
|
-
var value = listOf_0(this.query_1);
|
|
1319
|
-
localVariableQuery.put_4fpzoq_k$('query', value);
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
if (this.fields_1 == null)
|
|
1323
|
-
null;
|
|
1324
|
-
else {
|
|
1325
|
-
var value_0 = listOf_0(this.fields_1);
|
|
1326
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
if (this.pageToken_1 == null)
|
|
1330
|
-
null;
|
|
1331
|
-
else {
|
|
1332
|
-
var tmp2 = 'pageToken';
|
|
1333
|
-
var value_1 = listOf_0(this.pageToken_1);
|
|
1334
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
if (this.autoPaginate_1 == null)
|
|
1338
|
-
null;
|
|
1339
|
-
else {
|
|
1340
|
-
var tmp2_0 = 'autoPaginate';
|
|
1341
|
-
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1342
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
if (this.count_1 == null)
|
|
1346
|
-
null;
|
|
1347
|
-
else {
|
|
1348
|
-
var value_3 = listOf_0('' + this.count_1);
|
|
1349
|
-
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1353
|
-
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1354
|
-
var localVariableConfig = new RequestConfig(tmp5_method, '/organizations/search', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1355
|
-
this.state_1 = 1;
|
|
1356
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1357
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1358
|
-
return suspendResult;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
continue $sm;
|
|
1362
|
-
case 1:
|
|
1363
|
-
var this_0 = suspendResult;
|
|
1364
|
-
var tmp_0 = getKClass(PagedListOrganization);
|
|
1365
|
-
var tmp_1 = null instanceof PagedListOrganization;
|
|
1366
|
-
var tmp_2;
|
|
1367
|
-
try {
|
|
1368
|
-
tmp_2 = createKType(getKClass(PagedListOrganization), arrayOf([]), false);
|
|
1369
|
-
} catch ($p) {
|
|
1370
|
-
var tmp_3;
|
|
1371
|
-
if ($p instanceof Error) {
|
|
1372
|
-
var _unused_var__etf5q3 = $p;
|
|
1373
|
-
tmp_3 = null;
|
|
1374
|
-
} else {
|
|
1375
|
-
throw $p;
|
|
1376
|
-
}
|
|
1377
|
-
tmp_2 = tmp_3;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1381
|
-
case 2:
|
|
1382
|
-
throw this.exception_1;
|
|
1383
|
-
}
|
|
1384
|
-
} catch ($p_0) {
|
|
1385
|
-
var e = $p_0;
|
|
1386
|
-
if (this.exceptionState_1 === 2) {
|
|
1387
|
-
throw e;
|
|
1388
|
-
} else {
|
|
1389
|
-
this.state_1 = this.exceptionState_1;
|
|
1390
|
-
this.exception_1 = e;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
while (true);
|
|
1394
|
-
};
|
|
1395
|
-
function $searchOrganizations$suspendBridgeCOROUTINE$(_this__u8e3s4, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1396
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1397
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1398
|
-
this.query_1 = query;
|
|
1399
|
-
this.fields_1 = fields;
|
|
1400
|
-
this.pageToken_1 = pageToken;
|
|
1401
|
-
this.autoPaginate_1 = autoPaginate;
|
|
1402
|
-
this.count_1 = count;
|
|
1403
|
-
}
|
|
1404
|
-
protoOf($searchOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
943
|
+
protoOf($updateOrganizationEmployee$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1405
944
|
var suspendResult = this.result_1;
|
|
1406
945
|
$sm: do
|
|
1407
946
|
try {
|
|
@@ -1409,16 +948,16 @@ protoOf($searchOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
1409
948
|
switch (tmp) {
|
|
1410
949
|
case 0:
|
|
1411
950
|
this.exceptionState_1 = 4;
|
|
1412
|
-
if (this._this__u8e3s4__1.
|
|
951
|
+
if (this._this__u8e3s4__1.updateOrganizationEmployee === protoOf(OrganizationApi).updateOrganizationEmployee) {
|
|
1413
952
|
this.state_1 = 2;
|
|
1414
|
-
suspendResult = this._this__u8e3s4__1.
|
|
953
|
+
suspendResult = this._this__u8e3s4__1.updateOrganizationEmployee_4uq1yf_k$(this.organizationId_1, this.employeeId_1, this.updateEmployeeCommand_1, this);
|
|
1415
954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1416
955
|
return suspendResult;
|
|
1417
956
|
}
|
|
1418
957
|
continue $sm;
|
|
1419
958
|
} else {
|
|
1420
959
|
this.state_1 = 1;
|
|
1421
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
960
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationEmployee(this.organizationId_1, this.employeeId_1, this.updateEmployeeCommand_1), this);
|
|
1422
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1423
962
|
return suspendResult;
|
|
1424
963
|
}
|
|
@@ -1449,81 +988,13 @@ protoOf($searchOrganizations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
1449
988
|
}
|
|
1450
989
|
while (true);
|
|
1451
990
|
};
|
|
1452
|
-
function $
|
|
1453
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1454
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1455
|
-
this.organizationId_1 = organizationId;
|
|
1456
|
-
this.fields_1 = fields;
|
|
1457
|
-
}
|
|
1458
|
-
protoOf($showOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1459
|
-
var suspendResult = this.result_1;
|
|
1460
|
-
$sm: do
|
|
1461
|
-
try {
|
|
1462
|
-
var tmp = this.state_1;
|
|
1463
|
-
switch (tmp) {
|
|
1464
|
-
case 0:
|
|
1465
|
-
this.exceptionState_1 = 2;
|
|
1466
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1467
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1468
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1469
|
-
if (this.fields_1 == null)
|
|
1470
|
-
null;
|
|
1471
|
-
else {
|
|
1472
|
-
var value = listOf_0(this.fields_1);
|
|
1473
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1477
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1478
|
-
var tmp2_path = replace('/organizations/{organizationId}', '{organizationId}', this.organizationId_1.toString());
|
|
1479
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1480
|
-
this.state_1 = 1;
|
|
1481
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1482
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1483
|
-
return suspendResult;
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
continue $sm;
|
|
1487
|
-
case 1:
|
|
1488
|
-
var this_0 = suspendResult;
|
|
1489
|
-
var tmp_0 = getKClass(Organization);
|
|
1490
|
-
var tmp_1 = null instanceof Organization;
|
|
1491
|
-
var tmp_2;
|
|
1492
|
-
try {
|
|
1493
|
-
tmp_2 = createKType(getKClass(Organization), arrayOf([]), false);
|
|
1494
|
-
} catch ($p) {
|
|
1495
|
-
var tmp_3;
|
|
1496
|
-
if ($p instanceof Error) {
|
|
1497
|
-
var _unused_var__etf5q3 = $p;
|
|
1498
|
-
tmp_3 = null;
|
|
1499
|
-
} else {
|
|
1500
|
-
throw $p;
|
|
1501
|
-
}
|
|
1502
|
-
tmp_2 = tmp_3;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1506
|
-
case 2:
|
|
1507
|
-
throw this.exception_1;
|
|
1508
|
-
}
|
|
1509
|
-
} catch ($p_0) {
|
|
1510
|
-
var e = $p_0;
|
|
1511
|
-
if (this.exceptionState_1 === 2) {
|
|
1512
|
-
throw e;
|
|
1513
|
-
} else {
|
|
1514
|
-
this.state_1 = this.exceptionState_1;
|
|
1515
|
-
this.exception_1 = e;
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
while (true);
|
|
1519
|
-
};
|
|
1520
|
-
function $showOrganization$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, fields, resultContinuation) {
|
|
991
|
+
function $updateOrganizationReservations$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, updateOrganizationReservationsCommand, resultContinuation) {
|
|
1521
992
|
CoroutineImpl.call(this, resultContinuation);
|
|
1522
993
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1523
994
|
this.organizationId_1 = organizationId;
|
|
1524
|
-
this.
|
|
995
|
+
this.updateOrganizationReservationsCommand_1 = updateOrganizationReservationsCommand;
|
|
1525
996
|
}
|
|
1526
|
-
protoOf($
|
|
997
|
+
protoOf($updateOrganizationReservations$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1527
998
|
var suspendResult = this.result_1;
|
|
1528
999
|
$sm: do
|
|
1529
1000
|
try {
|
|
@@ -1531,16 +1002,16 @@ protoOf($showOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1531
1002
|
switch (tmp) {
|
|
1532
1003
|
case 0:
|
|
1533
1004
|
this.exceptionState_1 = 4;
|
|
1534
|
-
if (this._this__u8e3s4__1.
|
|
1005
|
+
if (this._this__u8e3s4__1.updateOrganizationReservations === protoOf(OrganizationApi).updateOrganizationReservations) {
|
|
1535
1006
|
this.state_1 = 2;
|
|
1536
|
-
suspendResult = this._this__u8e3s4__1.
|
|
1007
|
+
suspendResult = this._this__u8e3s4__1.updateOrganizationReservations_cjvyaw_k$(this.organizationId_1, this.updateOrganizationReservationsCommand_1, this);
|
|
1537
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
1009
|
return suspendResult;
|
|
1539
1010
|
}
|
|
1540
1011
|
continue $sm;
|
|
1541
1012
|
} else {
|
|
1542
1013
|
this.state_1 = 1;
|
|
1543
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
1014
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationReservations(this.organizationId_1, this.updateOrganizationReservationsCommand_1), this);
|
|
1544
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1545
1016
|
return suspendResult;
|
|
1546
1017
|
}
|
|
@@ -1571,72 +1042,15 @@ protoOf($showOrganization$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
1571
1042
|
}
|
|
1572
1043
|
while (true);
|
|
1573
1044
|
};
|
|
1574
|
-
function $
|
|
1575
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1576
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1577
|
-
this.organizationNumber_1 = organizationNumber;
|
|
1578
|
-
}
|
|
1579
|
-
protoOf($showOrganizationByOrganizationnummerCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1580
|
-
var suspendResult = this.result_1;
|
|
1581
|
-
$sm: do
|
|
1582
|
-
try {
|
|
1583
|
-
var tmp = this.state_1;
|
|
1584
|
-
switch (tmp) {
|
|
1585
|
-
case 0:
|
|
1586
|
-
this.exceptionState_1 = 2;
|
|
1587
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1588
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1589
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1590
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1591
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1592
|
-
var tmp1_path = replace('/organizations/orgNr/{organizationNumber}', '{organizationNumber}', this.organizationNumber_1);
|
|
1593
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1594
|
-
this.state_1 = 1;
|
|
1595
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1596
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1597
|
-
return suspendResult;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
continue $sm;
|
|
1601
|
-
case 1:
|
|
1602
|
-
var this_0 = suspendResult;
|
|
1603
|
-
var tmp_0 = getKClass(Organization);
|
|
1604
|
-
var tmp_1 = null instanceof Organization;
|
|
1605
|
-
var tmp_2;
|
|
1606
|
-
try {
|
|
1607
|
-
tmp_2 = createKType(getKClass(Organization), arrayOf([]), false);
|
|
1608
|
-
} catch ($p) {
|
|
1609
|
-
var tmp_3;
|
|
1610
|
-
if ($p instanceof Error) {
|
|
1611
|
-
var _unused_var__etf5q3 = $p;
|
|
1612
|
-
tmp_3 = null;
|
|
1613
|
-
} else {
|
|
1614
|
-
throw $p;
|
|
1615
|
-
}
|
|
1616
|
-
tmp_2 = tmp_3;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1620
|
-
case 2:
|
|
1621
|
-
throw this.exception_1;
|
|
1622
|
-
}
|
|
1623
|
-
} catch ($p_0) {
|
|
1624
|
-
var e = $p_0;
|
|
1625
|
-
if (this.exceptionState_1 === 2) {
|
|
1626
|
-
throw e;
|
|
1627
|
-
} else {
|
|
1628
|
-
this.state_1 = this.exceptionState_1;
|
|
1629
|
-
this.exception_1 = e;
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
while (true);
|
|
1633
|
-
};
|
|
1634
|
-
function $showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationNumber, resultContinuation) {
|
|
1045
|
+
function $updateOrganizationSectionContact$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, sectionId, resultContinuation) {
|
|
1635
1046
|
CoroutineImpl.call(this, resultContinuation);
|
|
1636
1047
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1637
|
-
this.
|
|
1048
|
+
this.organizationId_1 = organizationId;
|
|
1049
|
+
this.employeeId_1 = employeeId;
|
|
1050
|
+
this.companyId_1 = companyId;
|
|
1051
|
+
this.sectionId_1 = sectionId;
|
|
1638
1052
|
}
|
|
1639
|
-
protoOf($
|
|
1053
|
+
protoOf($updateOrganizationSectionContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1640
1054
|
var suspendResult = this.result_1;
|
|
1641
1055
|
$sm: do
|
|
1642
1056
|
try {
|
|
@@ -1644,16 +1058,16 @@ protoOf($showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$).doResume_
|
|
|
1644
1058
|
switch (tmp) {
|
|
1645
1059
|
case 0:
|
|
1646
1060
|
this.exceptionState_1 = 4;
|
|
1647
|
-
if (this._this__u8e3s4__1.
|
|
1061
|
+
if (this._this__u8e3s4__1.updateOrganizationSectionContact === protoOf(OrganizationApi).updateOrganizationSectionContact) {
|
|
1648
1062
|
this.state_1 = 2;
|
|
1649
|
-
suspendResult = this._this__u8e3s4__1.
|
|
1063
|
+
suspendResult = this._this__u8e3s4__1.updateOrganizationSectionContact_j29c37_k$(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1, this);
|
|
1650
1064
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1651
1065
|
return suspendResult;
|
|
1652
1066
|
}
|
|
1653
1067
|
continue $sm;
|
|
1654
1068
|
} else {
|
|
1655
1069
|
this.state_1 = 1;
|
|
1656
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
1070
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationSectionContact(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1), this);
|
|
1657
1071
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1658
1072
|
return suspendResult;
|
|
1659
1073
|
}
|
|
@@ -1684,29 +1098,325 @@ protoOf($showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$).doResume_
|
|
|
1684
1098
|
}
|
|
1685
1099
|
while (true);
|
|
1686
1100
|
};
|
|
1687
|
-
function
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1101
|
+
protoOf(OrganizationApi).createOrganizationEmployee_peacaf_k$ = function (organizationId, createEmployeeCommand, $completion) {
|
|
1102
|
+
return createOrganizationEmployeeOperation_0(this, organizationId, createEmployeeCommand, $completion);
|
|
1103
|
+
};
|
|
1104
|
+
protoOf(OrganizationApi).createOrganizationEmployee = function (organizationId, createEmployeeCommand) {
|
|
1105
|
+
var tmp = this;
|
|
1106
|
+
return promisify(function ($completion) {
|
|
1107
|
+
return tmp.createOrganizationEmployee_peacaf_k$(organizationId, createEmployeeCommand, $completion);
|
|
1108
|
+
});
|
|
1109
|
+
};
|
|
1110
|
+
protoOf(OrganizationApi).createOrganizationEmployee$suspendBridge_xygymu_k$ = function (organizationId, createEmployeeCommand, $completion) {
|
|
1111
|
+
var tmp = new $createOrganizationEmployee$suspendBridgeCOROUTINE$(this, organizationId, createEmployeeCommand, $completion);
|
|
1112
|
+
tmp.result_1 = Unit_instance;
|
|
1113
|
+
tmp.exception_1 = null;
|
|
1114
|
+
return tmp.doResume_5yljmg_k$();
|
|
1115
|
+
};
|
|
1116
|
+
protoOf(OrganizationApi).deleteOrganizationCompanyContact_l4c65b_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
1117
|
+
return deleteOrganizationCompanyContactOperation_0(this, organizationId, employeeId, companyId, $completion);
|
|
1118
|
+
};
|
|
1119
|
+
protoOf(OrganizationApi).deleteOrganizationCompanyContact = function (organizationId, employeeId, companyId) {
|
|
1120
|
+
var tmp = this;
|
|
1121
|
+
return promisify(function ($completion) {
|
|
1122
|
+
return tmp.deleteOrganizationCompanyContact_l4c65b_k$(organizationId, employeeId, companyId, $completion);
|
|
1123
|
+
});
|
|
1124
|
+
};
|
|
1125
|
+
protoOf(OrganizationApi).deleteOrganizationCompanyContact$suspendBridge_7ikzcu_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
1126
|
+
var tmp = new $deleteOrganizationCompanyContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, $completion);
|
|
1127
|
+
tmp.result_1 = Unit_instance;
|
|
1128
|
+
tmp.exception_1 = null;
|
|
1129
|
+
return tmp.doResume_5yljmg_k$();
|
|
1130
|
+
};
|
|
1131
|
+
protoOf(OrganizationApi).deleteOrganizationEmployee_6rd1k_k$ = function (organizationId, employeeId, $completion) {
|
|
1132
|
+
return deleteOrganizationEmployeeOperation_0(this, organizationId, employeeId, $completion);
|
|
1133
|
+
};
|
|
1134
|
+
protoOf(OrganizationApi).deleteOrganizationEmployee = function (organizationId, employeeId) {
|
|
1135
|
+
var tmp = this;
|
|
1136
|
+
return promisify(function ($completion) {
|
|
1137
|
+
return tmp.deleteOrganizationEmployee_6rd1k_k$(organizationId, employeeId, $completion);
|
|
1138
|
+
});
|
|
1139
|
+
};
|
|
1140
|
+
protoOf(OrganizationApi).deleteOrganizationEmployee$suspendBridge_arq6q1_k$ = function (organizationId, employeeId, $completion) {
|
|
1141
|
+
var tmp = new $deleteOrganizationEmployee$suspendBridgeCOROUTINE$(this, organizationId, employeeId, $completion);
|
|
1142
|
+
tmp.result_1 = Unit_instance;
|
|
1143
|
+
tmp.exception_1 = null;
|
|
1144
|
+
return tmp.doResume_5yljmg_k$();
|
|
1145
|
+
};
|
|
1146
|
+
protoOf(OrganizationApi).deleteOrganizationFromSAM_4jpgtv_k$ = function (companyId, organizationId, $completion) {
|
|
1147
|
+
return deleteOrganizationFromSAMOperation_0(this, companyId, organizationId, $completion);
|
|
1148
|
+
};
|
|
1149
|
+
protoOf(OrganizationApi).deleteOrganizationFromSAM = function (companyId, organizationId) {
|
|
1150
|
+
var tmp = this;
|
|
1151
|
+
return promisify(function ($completion) {
|
|
1152
|
+
return tmp.deleteOrganizationFromSAM_4jpgtv_k$(companyId, organizationId, $completion);
|
|
1153
|
+
});
|
|
1154
|
+
};
|
|
1155
|
+
protoOf(OrganizationApi).deleteOrganizationFromSAM$suspendBridge_qjq19w_k$ = function (companyId, organizationId, $completion) {
|
|
1156
|
+
var tmp = new $deleteOrganizationFromSAM$suspendBridgeCOROUTINE$(this, companyId, organizationId, $completion);
|
|
1157
|
+
tmp.result_1 = Unit_instance;
|
|
1158
|
+
tmp.exception_1 = null;
|
|
1159
|
+
return tmp.doResume_5yljmg_k$();
|
|
1160
|
+
};
|
|
1161
|
+
protoOf(OrganizationApi).deleteOrganizationRole_qrbzww_k$ = function (organizationId, roleId, $completion) {
|
|
1162
|
+
return deleteOrganizationRoleOperation_0(this, organizationId, roleId, $completion);
|
|
1163
|
+
};
|
|
1164
|
+
protoOf(OrganizationApi).deleteOrganizationRole = function (organizationId, roleId) {
|
|
1165
|
+
var tmp = this;
|
|
1166
|
+
return promisify(function ($completion) {
|
|
1167
|
+
return tmp.deleteOrganizationRole_qrbzww_k$(organizationId, roleId, $completion);
|
|
1168
|
+
});
|
|
1169
|
+
};
|
|
1170
|
+
protoOf(OrganizationApi).deleteOrganizationRole$suspendBridge_mk3bn3_k$ = function (organizationId, roleId, $completion) {
|
|
1171
|
+
var tmp = new $deleteOrganizationRole$suspendBridgeCOROUTINE$(this, organizationId, roleId, $completion);
|
|
1172
|
+
tmp.result_1 = Unit_instance;
|
|
1173
|
+
tmp.exception_1 = null;
|
|
1174
|
+
return tmp.doResume_5yljmg_k$();
|
|
1175
|
+
};
|
|
1176
|
+
protoOf(OrganizationApi).deleteOrganizationSectionContact_hbuwk5_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
1177
|
+
return deleteOrganizationSectionContactOperation_0(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1178
|
+
};
|
|
1179
|
+
protoOf(OrganizationApi).deleteOrganizationSectionContact = function (organizationId, employeeId, companyId, sectionId) {
|
|
1180
|
+
var tmp = this;
|
|
1181
|
+
return promisify(function ($completion) {
|
|
1182
|
+
return tmp.deleteOrganizationSectionContact_hbuwk5_k$(organizationId, employeeId, companyId, sectionId, $completion);
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
protoOf(OrganizationApi).deleteOrganizationSectionContact$suspendBridge_xkslm2_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
1186
|
+
var tmp = new $deleteOrganizationSectionContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1187
|
+
tmp.result_1 = Unit_instance;
|
|
1188
|
+
tmp.exception_1 = null;
|
|
1189
|
+
return tmp.doResume_5yljmg_k$();
|
|
1190
|
+
};
|
|
1191
|
+
protoOf(OrganizationApi).indexOrganizations_r4cp57_k$ = function (search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1192
|
+
return indexOrganizationsOperation_0(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1193
|
+
};
|
|
1194
|
+
protoOf(OrganizationApi).indexOrganizations$default_p9zaz5_k$ = function (search, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1195
|
+
search = search === VOID ? null : search;
|
|
1196
|
+
fields = fields === VOID ? null : fields;
|
|
1197
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1198
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1199
|
+
count = count === VOID ? null : count;
|
|
1200
|
+
return $super === VOID ? this.indexOrganizations_r4cp57_k$(search, fields, pageToken, autoPaginate, count, $completion) : $super.indexOrganizations_r4cp57_k$.call(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1201
|
+
};
|
|
1202
|
+
protoOf(OrganizationApi).indexOrganizations = function (search, fields, pageToken, autoPaginate, count) {
|
|
1203
|
+
var tmp = this;
|
|
1204
|
+
return promisify(function ($completion) {
|
|
1205
|
+
return tmp.indexOrganizations$default_p9zaz5_k$(search, fields, pageToken, autoPaginate, count, $completion);
|
|
1206
|
+
});
|
|
1207
|
+
};
|
|
1208
|
+
protoOf(OrganizationApi).indexOrganizations$suspendBridge_b26uok_k$ = function (search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1209
|
+
var tmp = new $indexOrganizations$suspendBridgeCOROUTINE$(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1210
|
+
tmp.result_1 = Unit_instance;
|
|
1211
|
+
tmp.exception_1 = null;
|
|
1212
|
+
return tmp.doResume_5yljmg_k$();
|
|
1213
|
+
};
|
|
1214
|
+
protoOf(OrganizationApi).indexOrganizationsForEdit_lq17ne_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1215
|
+
return indexOrganizationsForEditOperation_0(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1216
|
+
};
|
|
1217
|
+
protoOf(OrganizationApi).indexOrganizationsForEdit$default_cqx16y_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1218
|
+
search = search === VOID ? null : search;
|
|
1219
|
+
fields = fields === VOID ? null : fields;
|
|
1220
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1221
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1222
|
+
count = count === VOID ? null : count;
|
|
1223
|
+
return $super === VOID ? this.indexOrganizationsForEdit_lq17ne_k$(companyId, search, fields, pageToken, autoPaginate, count, $completion) : $super.indexOrganizationsForEdit_lq17ne_k$.call(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1224
|
+
};
|
|
1225
|
+
protoOf(OrganizationApi).indexOrganizationsForEdit = function (companyId, search, fields, pageToken, autoPaginate, count) {
|
|
1226
|
+
var tmp = this;
|
|
1227
|
+
return promisify(function ($completion) {
|
|
1228
|
+
return tmp.indexOrganizationsForEdit$default_cqx16y_k$(companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
protoOf(OrganizationApi).indexOrganizationsForEdit$suspendBridge_l92fnr_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1232
|
+
var tmp = new $indexOrganizationsForEdit$suspendBridgeCOROUTINE$(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1233
|
+
tmp.result_1 = Unit_instance;
|
|
1234
|
+
tmp.exception_1 = null;
|
|
1235
|
+
return tmp.doResume_5yljmg_k$();
|
|
1236
|
+
};
|
|
1237
|
+
protoOf(OrganizationApi).massUpdateOrganization_e9s6ij_k$ = function (companyId, massEditOrganizationCommand, $completion) {
|
|
1238
|
+
return massUpdateOrganizationOperation_0(this, companyId, massEditOrganizationCommand, $completion);
|
|
1239
|
+
};
|
|
1240
|
+
protoOf(OrganizationApi).massUpdateOrganization = function (companyId, massEditOrganizationCommand) {
|
|
1241
|
+
var tmp = this;
|
|
1242
|
+
return promisify(function ($completion) {
|
|
1243
|
+
return tmp.massUpdateOrganization_e9s6ij_k$(companyId, massEditOrganizationCommand, $completion);
|
|
1244
|
+
});
|
|
1245
|
+
};
|
|
1246
|
+
protoOf(OrganizationApi).massUpdateOrganization$suspendBridge_nrz3oa_k$ = function (companyId, massEditOrganizationCommand, $completion) {
|
|
1247
|
+
var tmp = new $massUpdateOrganization$suspendBridgeCOROUTINE$(this, companyId, massEditOrganizationCommand, $completion);
|
|
1248
|
+
tmp.result_1 = Unit_instance;
|
|
1249
|
+
tmp.exception_1 = null;
|
|
1250
|
+
return tmp.doResume_5yljmg_k$();
|
|
1251
|
+
};
|
|
1252
|
+
protoOf(OrganizationApi).searchOrganizations_eie839_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
1253
|
+
return searchOrganizationsOperation_0(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1254
|
+
};
|
|
1255
|
+
protoOf(OrganizationApi).searchOrganizations$default_lb8k3f_k$ = function (query, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1256
|
+
query = query === VOID ? null : query;
|
|
1257
|
+
fields = fields === VOID ? null : fields;
|
|
1258
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1259
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1260
|
+
count = count === VOID ? null : count;
|
|
1261
|
+
return $super === VOID ? this.searchOrganizations_eie839_k$(query, fields, pageToken, autoPaginate, count, $completion) : $super.searchOrganizations_eie839_k$.call(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1262
|
+
};
|
|
1263
|
+
protoOf(OrganizationApi).searchOrganizations = function (query, fields, pageToken, autoPaginate, count) {
|
|
1264
|
+
var tmp = this;
|
|
1265
|
+
return promisify(function ($completion) {
|
|
1266
|
+
return tmp.searchOrganizations$default_lb8k3f_k$(query, fields, pageToken, autoPaginate, count, $completion);
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
protoOf(OrganizationApi).searchOrganizations$suspendBridge_amjl7u_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
1270
|
+
var tmp = new $searchOrganizations$suspendBridgeCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1271
|
+
tmp.result_1 = Unit_instance;
|
|
1272
|
+
tmp.exception_1 = null;
|
|
1273
|
+
return tmp.doResume_5yljmg_k$();
|
|
1274
|
+
};
|
|
1275
|
+
protoOf(OrganizationApi).showOrganization_qgulax_k$ = function (organizationId, fields, $completion) {
|
|
1276
|
+
return showOrganizationOperation_0(this, organizationId, fields, $completion);
|
|
1277
|
+
};
|
|
1278
|
+
protoOf(OrganizationApi).showOrganization$default_kheag3_k$ = function (organizationId, fields, $completion, $super) {
|
|
1279
|
+
fields = fields === VOID ? null : fields;
|
|
1280
|
+
return $super === VOID ? this.showOrganization_qgulax_k$(organizationId, fields, $completion) : $super.showOrganization_qgulax_k$.call(this, organizationId, fields, $completion);
|
|
1281
|
+
};
|
|
1282
|
+
protoOf(OrganizationApi).showOrganization = function (organizationId, fields) {
|
|
1283
|
+
var tmp = this;
|
|
1284
|
+
return promisify(function ($completion) {
|
|
1285
|
+
return tmp.showOrganization$default_kheag3_k$(organizationId, fields, $completion);
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
protoOf(OrganizationApi).showOrganization$suspendBridge_ta3a62_k$ = function (organizationId, fields, $completion) {
|
|
1289
|
+
var tmp = new $showOrganization$suspendBridgeCOROUTINE$(this, organizationId, fields, $completion);
|
|
1290
|
+
tmp.result_1 = Unit_instance;
|
|
1291
|
+
tmp.exception_1 = null;
|
|
1292
|
+
return tmp.doResume_5yljmg_k$();
|
|
1293
|
+
};
|
|
1294
|
+
protoOf(OrganizationApi).showOrganizationByOrganizationnummer_hp0cp2_k$ = function (organizationNumber, $completion) {
|
|
1295
|
+
return showOrganizationByOrganizationnummerOperation_0(this, organizationNumber, $completion);
|
|
1296
|
+
};
|
|
1297
|
+
protoOf(OrganizationApi).showOrganizationByOrganizationnummer = function (organizationNumber) {
|
|
1298
|
+
var tmp = this;
|
|
1299
|
+
return promisify(function ($completion) {
|
|
1300
|
+
return tmp.showOrganizationByOrganizationnummer_hp0cp2_k$(organizationNumber, $completion);
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
protoOf(OrganizationApi).showOrganizationByOrganizationnummer$suspendBridge_m4dgkb_k$ = function (organizationNumber, $completion) {
|
|
1304
|
+
var tmp = new $showOrganizationByOrganizationnummer$suspendBridgeCOROUTINE$(this, organizationNumber, $completion);
|
|
1305
|
+
tmp.result_1 = Unit_instance;
|
|
1306
|
+
tmp.exception_1 = null;
|
|
1307
|
+
return tmp.doResume_5yljmg_k$();
|
|
1308
|
+
};
|
|
1309
|
+
protoOf(OrganizationApi).updateOrganization_2q1z2e_k$ = function (organizationId, updateOrganizationCommand, $completion) {
|
|
1310
|
+
return updateOrganizationOperation_0(this, organizationId, updateOrganizationCommand, $completion);
|
|
1311
|
+
};
|
|
1312
|
+
protoOf(OrganizationApi).updateOrganization = function (organizationId, updateOrganizationCommand) {
|
|
1313
|
+
var tmp = this;
|
|
1314
|
+
return promisify(function ($completion) {
|
|
1315
|
+
return tmp.updateOrganization_2q1z2e_k$(organizationId, updateOrganizationCommand, $completion);
|
|
1316
|
+
});
|
|
1317
|
+
};
|
|
1318
|
+
protoOf(OrganizationApi).updateOrganization$suspendBridge_8a2i55_k$ = function (organizationId, updateOrganizationCommand, $completion) {
|
|
1319
|
+
var tmp = new $updateOrganization$suspendBridgeCOROUTINE$(this, organizationId, updateOrganizationCommand, $completion);
|
|
1320
|
+
tmp.result_1 = Unit_instance;
|
|
1321
|
+
tmp.exception_1 = null;
|
|
1322
|
+
return tmp.doResume_5yljmg_k$();
|
|
1323
|
+
};
|
|
1324
|
+
protoOf(OrganizationApi).updateOrganizationCompanyContact_p33qyn_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
1325
|
+
return updateOrganizationCompanyContactOperation_0(this, organizationId, employeeId, companyId, $completion);
|
|
1326
|
+
};
|
|
1327
|
+
protoOf(OrganizationApi).updateOrganizationCompanyContact = function (organizationId, employeeId, companyId) {
|
|
1328
|
+
var tmp = this;
|
|
1329
|
+
return promisify(function ($completion) {
|
|
1330
|
+
return tmp.updateOrganizationCompanyContact_p33qyn_k$(organizationId, employeeId, companyId, $completion);
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1333
|
+
protoOf(OrganizationApi).updateOrganizationCompanyContact$suspendBridge_3rrhsw_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
1334
|
+
var tmp = new $updateOrganizationCompanyContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, $completion);
|
|
1335
|
+
tmp.result_1 = Unit_instance;
|
|
1336
|
+
tmp.exception_1 = null;
|
|
1337
|
+
return tmp.doResume_5yljmg_k$();
|
|
1338
|
+
};
|
|
1339
|
+
protoOf(OrganizationApi).updateOrganizationEmployee_4uq1yf_k$ = function (organizationId, employeeId, updateEmployeeCommand, $completion) {
|
|
1340
|
+
return updateOrganizationEmployeeOperation_0(this, organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
1341
|
+
};
|
|
1342
|
+
protoOf(OrganizationApi).updateOrganizationEmployee = function (organizationId, employeeId, updateEmployeeCommand) {
|
|
1343
|
+
var tmp = this;
|
|
1344
|
+
return promisify(function ($completion) {
|
|
1345
|
+
return tmp.updateOrganizationEmployee_4uq1yf_k$(organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
1346
|
+
});
|
|
1347
|
+
};
|
|
1348
|
+
protoOf(OrganizationApi).updateOrganizationEmployee$suspendBridge_vt2xug_k$ = function (organizationId, employeeId, updateEmployeeCommand, $completion) {
|
|
1349
|
+
var tmp = new $updateOrganizationEmployee$suspendBridgeCOROUTINE$(this, organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
1350
|
+
tmp.result_1 = Unit_instance;
|
|
1351
|
+
tmp.exception_1 = null;
|
|
1352
|
+
return tmp.doResume_5yljmg_k$();
|
|
1353
|
+
};
|
|
1354
|
+
protoOf(OrganizationApi).updateOrganizationReservations_cjvyaw_k$ = function (organizationId, updateOrganizationReservationsCommand, $completion) {
|
|
1355
|
+
return updateOrganizationReservationsOperation_0(this, organizationId, updateOrganizationReservationsCommand, $completion);
|
|
1356
|
+
};
|
|
1357
|
+
protoOf(OrganizationApi).updateOrganizationReservations = function (organizationId, updateOrganizationReservationsCommand) {
|
|
1358
|
+
var tmp = this;
|
|
1359
|
+
return promisify(function ($completion) {
|
|
1360
|
+
return tmp.updateOrganizationReservations_cjvyaw_k$(organizationId, updateOrganizationReservationsCommand, $completion);
|
|
1361
|
+
});
|
|
1362
|
+
};
|
|
1363
|
+
protoOf(OrganizationApi).updateOrganizationReservations$suspendBridge_ze60y1_k$ = function (organizationId, updateOrganizationReservationsCommand, $completion) {
|
|
1364
|
+
var tmp = new $updateOrganizationReservations$suspendBridgeCOROUTINE$(this, organizationId, updateOrganizationReservationsCommand, $completion);
|
|
1365
|
+
tmp.result_1 = Unit_instance;
|
|
1366
|
+
tmp.exception_1 = null;
|
|
1367
|
+
return tmp.doResume_5yljmg_k$();
|
|
1368
|
+
};
|
|
1369
|
+
protoOf(OrganizationApi).updateOrganizationSectionContact_j29c37_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
1370
|
+
return updateOrganizationSectionContactOperation_0(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1371
|
+
};
|
|
1372
|
+
protoOf(OrganizationApi).updateOrganizationSectionContact = function (organizationId, employeeId, companyId, sectionId) {
|
|
1373
|
+
var tmp = this;
|
|
1374
|
+
return promisify(function ($completion) {
|
|
1375
|
+
return tmp.updateOrganizationSectionContact_j29c37_k$(organizationId, employeeId, companyId, sectionId, $completion);
|
|
1376
|
+
});
|
|
1377
|
+
};
|
|
1378
|
+
protoOf(OrganizationApi).updateOrganizationSectionContact$suspendBridge_t4rw4_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
1379
|
+
var tmp = new $updateOrganizationSectionContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1380
|
+
tmp.result_1 = Unit_instance;
|
|
1381
|
+
tmp.exception_1 = null;
|
|
1382
|
+
return tmp.doResume_5yljmg_k$();
|
|
1383
|
+
};
|
|
1384
|
+
function OrganizationApi() {
|
|
1385
|
+
}
|
|
1386
|
+
function createOrganizationEmployeeOperation(client, organizationId, createEmployeeCommand) {
|
|
1387
|
+
return promisify(function ($completion) {
|
|
1388
|
+
return createOrganizationEmployeeOperation_0(client, organizationId, createEmployeeCommand, $completion);
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
function createOrganizationEmployeeOperation_0(client, organizationId, createEmployeeCommand, $completion) {
|
|
1392
|
+
var tmp = new $createOrganizationEmployeeOperationCOROUTINE$(client, organizationId, createEmployeeCommand, $completion);
|
|
1393
|
+
tmp.result_1 = Unit_instance;
|
|
1394
|
+
tmp.exception_1 = null;
|
|
1395
|
+
return tmp.doResume_5yljmg_k$();
|
|
1396
|
+
}
|
|
1397
|
+
function $createOrganizationEmployeeOperationCOROUTINE$(client, organizationId, createEmployeeCommand, resultContinuation) {
|
|
1398
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1399
|
+
this.client_1 = client;
|
|
1400
|
+
this.organizationId_1 = organizationId;
|
|
1401
|
+
this.createEmployeeCommand_1 = createEmployeeCommand;
|
|
1402
|
+
}
|
|
1403
|
+
protoOf($createOrganizationEmployeeOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1404
|
+
var suspendResult = this.result_1;
|
|
1405
|
+
$sm: do
|
|
1406
|
+
try {
|
|
1407
|
+
var tmp = this.state_1;
|
|
1408
|
+
switch (tmp) {
|
|
1699
1409
|
case 0:
|
|
1700
1410
|
this.exceptionState_1 = 2;
|
|
1701
1411
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1702
|
-
var localVariableBody = this.
|
|
1412
|
+
var localVariableBody = this.createEmployeeCommand_1;
|
|
1703
1413
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1704
1414
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1705
|
-
var tmp0_method =
|
|
1706
|
-
var tmp1_path = replace('/organizations/{organizationId}', '{organizationId}', this.organizationId_1.toString());
|
|
1415
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1416
|
+
var tmp1_path = replace('/organizations/{organizationId}/employees', '{organizationId}', this.organizationId_1.toString());
|
|
1707
1417
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1708
1418
|
this.state_1 = 1;
|
|
1709
|
-
suspendResult = this.
|
|
1419
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1710
1420
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1711
1421
|
return suspendResult;
|
|
1712
1422
|
}
|
|
@@ -1714,11 +1424,11 @@ protoOf($updateOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1714
1424
|
continue $sm;
|
|
1715
1425
|
case 1:
|
|
1716
1426
|
var this_0 = suspendResult;
|
|
1717
|
-
var tmp_0 = getKClass(
|
|
1718
|
-
var tmp_1 = null instanceof
|
|
1427
|
+
var tmp_0 = getKClass(OrganizationEmployee);
|
|
1428
|
+
var tmp_1 = null instanceof OrganizationEmployee;
|
|
1719
1429
|
var tmp_2;
|
|
1720
1430
|
try {
|
|
1721
|
-
tmp_2 = createKType(getKClass(
|
|
1431
|
+
tmp_2 = createKType(getKClass(OrganizationEmployee), arrayOf([]), false);
|
|
1722
1432
|
} catch ($p) {
|
|
1723
1433
|
var tmp_3;
|
|
1724
1434
|
if ($p instanceof Error) {
|
|
@@ -1745,68 +1455,25 @@ protoOf($updateOrganizationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1745
1455
|
}
|
|
1746
1456
|
while (true);
|
|
1747
1457
|
};
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
this.updateOrganizationCommand_1 = updateOrganizationCommand;
|
|
1458
|
+
function deleteOrganizationCompanyContactOperation(client, organizationId, employeeId, companyId) {
|
|
1459
|
+
return promisify(function ($completion) {
|
|
1460
|
+
return deleteOrganizationCompanyContactOperation_0(client, organizationId, employeeId, companyId, $completion);
|
|
1461
|
+
});
|
|
1753
1462
|
}
|
|
1754
|
-
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
this.exceptionState_1 = 4;
|
|
1762
|
-
if (this._this__u8e3s4__1.updateOrganization === protoOf(OrganizationApi).updateOrganization) {
|
|
1763
|
-
this.state_1 = 2;
|
|
1764
|
-
suspendResult = this._this__u8e3s4__1.updateOrganization_2q1z2e_k$(this.organizationId_1, this.updateOrganizationCommand_1, this);
|
|
1765
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1766
|
-
return suspendResult;
|
|
1767
|
-
}
|
|
1768
|
-
continue $sm;
|
|
1769
|
-
} else {
|
|
1770
|
-
this.state_1 = 1;
|
|
1771
|
-
suspendResult = await_0(this._this__u8e3s4__1.updateOrganization(this.organizationId_1, this.updateOrganizationCommand_1), this);
|
|
1772
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1773
|
-
return suspendResult;
|
|
1774
|
-
}
|
|
1775
|
-
continue $sm;
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
case 1:
|
|
1779
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1780
|
-
this.state_1 = 3;
|
|
1781
|
-
continue $sm;
|
|
1782
|
-
case 2:
|
|
1783
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1784
|
-
this.state_1 = 3;
|
|
1785
|
-
continue $sm;
|
|
1786
|
-
case 3:
|
|
1787
|
-
return this.WHEN_RESULT0__1;
|
|
1788
|
-
case 4:
|
|
1789
|
-
throw this.exception_1;
|
|
1790
|
-
}
|
|
1791
|
-
} catch ($p) {
|
|
1792
|
-
var e = $p;
|
|
1793
|
-
if (this.exceptionState_1 === 4) {
|
|
1794
|
-
throw e;
|
|
1795
|
-
} else {
|
|
1796
|
-
this.state_1 = this.exceptionState_1;
|
|
1797
|
-
this.exception_1 = e;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
while (true);
|
|
1801
|
-
};
|
|
1802
|
-
function $updateOrganizationCompanyContactCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, resultContinuation) {
|
|
1463
|
+
function deleteOrganizationCompanyContactOperation_0(client, organizationId, employeeId, companyId, $completion) {
|
|
1464
|
+
var tmp = new $deleteOrganizationCompanyContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, $completion);
|
|
1465
|
+
tmp.result_1 = Unit_instance;
|
|
1466
|
+
tmp.exception_1 = null;
|
|
1467
|
+
return tmp.doResume_5yljmg_k$();
|
|
1468
|
+
}
|
|
1469
|
+
function $deleteOrganizationCompanyContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, resultContinuation) {
|
|
1803
1470
|
CoroutineImpl.call(this, resultContinuation);
|
|
1804
|
-
this.
|
|
1471
|
+
this.client_1 = client;
|
|
1805
1472
|
this.organizationId_1 = organizationId;
|
|
1806
1473
|
this.employeeId_1 = employeeId;
|
|
1807
1474
|
this.companyId_1 = companyId;
|
|
1808
1475
|
}
|
|
1809
|
-
protoOf($
|
|
1476
|
+
protoOf($deleteOrganizationCompanyContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1810
1477
|
var suspendResult = this.result_1;
|
|
1811
1478
|
$sm: do
|
|
1812
1479
|
try {
|
|
@@ -1818,11 +1485,11 @@ protoOf($updateOrganizationCompanyContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
1818
1485
|
var localVariableBody = EmptyContent_getInstance();
|
|
1819
1486
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1820
1487
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1821
|
-
var tmp0_method =
|
|
1488
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1822
1489
|
var tmp1_path = replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString());
|
|
1823
1490
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1824
1491
|
this.state_1 = 1;
|
|
1825
|
-
suspendResult = this.
|
|
1492
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1826
1493
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1827
1494
|
return suspendResult;
|
|
1828
1495
|
}
|
|
@@ -1837,77 +1504,22 @@ protoOf($updateOrganizationCompanyContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
1837
1504
|
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1838
1505
|
} catch ($p) {
|
|
1839
1506
|
var tmp_3;
|
|
1840
|
-
if ($p instanceof Error) {
|
|
1841
|
-
var _unused_var__etf5q3 = $p;
|
|
1842
|
-
tmp_3 = null;
|
|
1843
|
-
} else {
|
|
1844
|
-
throw $p;
|
|
1845
|
-
}
|
|
1846
|
-
tmp_2 = tmp_3;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1850
|
-
case 2:
|
|
1851
|
-
throw this.exception_1;
|
|
1852
|
-
}
|
|
1853
|
-
} catch ($p_0) {
|
|
1854
|
-
var e = $p_0;
|
|
1855
|
-
if (this.exceptionState_1 === 2) {
|
|
1856
|
-
throw e;
|
|
1857
|
-
} else {
|
|
1858
|
-
this.state_1 = this.exceptionState_1;
|
|
1859
|
-
this.exception_1 = e;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
while (true);
|
|
1863
|
-
};
|
|
1864
|
-
function $updateOrganizationCompanyContact$suspendBridgeCOROUTINE$(_this__u8e3s4, organizationId, employeeId, companyId, resultContinuation) {
|
|
1865
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1866
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1867
|
-
this.organizationId_1 = organizationId;
|
|
1868
|
-
this.employeeId_1 = employeeId;
|
|
1869
|
-
this.companyId_1 = companyId;
|
|
1870
|
-
}
|
|
1871
|
-
protoOf($updateOrganizationCompanyContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1872
|
-
var suspendResult = this.result_1;
|
|
1873
|
-
$sm: do
|
|
1874
|
-
try {
|
|
1875
|
-
var tmp = this.state_1;
|
|
1876
|
-
switch (tmp) {
|
|
1877
|
-
case 0:
|
|
1878
|
-
this.exceptionState_1 = 4;
|
|
1879
|
-
if (this._this__u8e3s4__1.updateOrganizationCompanyContact === protoOf(OrganizationApi).updateOrganizationCompanyContact) {
|
|
1880
|
-
this.state_1 = 2;
|
|
1881
|
-
suspendResult = this._this__u8e3s4__1.updateOrganizationCompanyContact_p33qyn_k$(this.organizationId_1, this.employeeId_1, this.companyId_1, this);
|
|
1882
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1883
|
-
return suspendResult;
|
|
1884
|
-
}
|
|
1885
|
-
continue $sm;
|
|
1886
|
-
} else {
|
|
1887
|
-
this.state_1 = 1;
|
|
1888
|
-
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationCompanyContact(this.organizationId_1, this.employeeId_1, this.companyId_1), this);
|
|
1889
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
|
-
return suspendResult;
|
|
1507
|
+
if ($p instanceof Error) {
|
|
1508
|
+
var _unused_var__etf5q3 = $p;
|
|
1509
|
+
tmp_3 = null;
|
|
1510
|
+
} else {
|
|
1511
|
+
throw $p;
|
|
1891
1512
|
}
|
|
1892
|
-
|
|
1513
|
+
tmp_2 = tmp_3;
|
|
1893
1514
|
}
|
|
1894
1515
|
|
|
1895
|
-
|
|
1896
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1897
|
-
this.state_1 = 3;
|
|
1898
|
-
continue $sm;
|
|
1516
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1899
1517
|
case 2:
|
|
1900
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1901
|
-
this.state_1 = 3;
|
|
1902
|
-
continue $sm;
|
|
1903
|
-
case 3:
|
|
1904
|
-
return this.WHEN_RESULT0__1;
|
|
1905
|
-
case 4:
|
|
1906
1518
|
throw this.exception_1;
|
|
1907
1519
|
}
|
|
1908
|
-
} catch ($
|
|
1909
|
-
var e = $
|
|
1910
|
-
if (this.exceptionState_1 ===
|
|
1520
|
+
} catch ($p_0) {
|
|
1521
|
+
var e = $p_0;
|
|
1522
|
+
if (this.exceptionState_1 === 2) {
|
|
1911
1523
|
throw e;
|
|
1912
1524
|
} else {
|
|
1913
1525
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1916,14 +1528,24 @@ protoOf($updateOrganizationCompanyContact$suspendBridgeCOROUTINE$).doResume_5ylj
|
|
|
1916
1528
|
}
|
|
1917
1529
|
while (true);
|
|
1918
1530
|
};
|
|
1919
|
-
function
|
|
1531
|
+
function deleteOrganizationEmployeeOperation(client, organizationId, employeeId) {
|
|
1532
|
+
return promisify(function ($completion) {
|
|
1533
|
+
return deleteOrganizationEmployeeOperation_0(client, organizationId, employeeId, $completion);
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
function deleteOrganizationEmployeeOperation_0(client, organizationId, employeeId, $completion) {
|
|
1537
|
+
var tmp = new $deleteOrganizationEmployeeOperationCOROUTINE$(client, organizationId, employeeId, $completion);
|
|
1538
|
+
tmp.result_1 = Unit_instance;
|
|
1539
|
+
tmp.exception_1 = null;
|
|
1540
|
+
return tmp.doResume_5yljmg_k$();
|
|
1541
|
+
}
|
|
1542
|
+
function $deleteOrganizationEmployeeOperationCOROUTINE$(client, organizationId, employeeId, resultContinuation) {
|
|
1920
1543
|
CoroutineImpl.call(this, resultContinuation);
|
|
1921
|
-
this.
|
|
1544
|
+
this.client_1 = client;
|
|
1922
1545
|
this.organizationId_1 = organizationId;
|
|
1923
1546
|
this.employeeId_1 = employeeId;
|
|
1924
|
-
this.updateEmployeeCommand_1 = updateEmployeeCommand;
|
|
1925
1547
|
}
|
|
1926
|
-
protoOf($
|
|
1548
|
+
protoOf($deleteOrganizationEmployeeOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1927
1549
|
var suspendResult = this.result_1;
|
|
1928
1550
|
$sm: do
|
|
1929
1551
|
try {
|
|
@@ -1932,14 +1554,14 @@ protoOf($updateOrganizationEmployeeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1932
1554
|
case 0:
|
|
1933
1555
|
this.exceptionState_1 = 2;
|
|
1934
1556
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1935
|
-
var localVariableBody =
|
|
1557
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1936
1558
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1937
1559
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1938
|
-
var tmp0_method =
|
|
1560
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1939
1561
|
var tmp1_path = replace(replace('/organizations/{organizationId}/employees/{employeeId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString());
|
|
1940
1562
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1941
1563
|
this.state_1 = 1;
|
|
1942
|
-
suspendResult = this.
|
|
1564
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1943
1565
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1944
1566
|
return suspendResult;
|
|
1945
1567
|
}
|
|
@@ -1947,11 +1569,11 @@ protoOf($updateOrganizationEmployeeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1947
1569
|
continue $sm;
|
|
1948
1570
|
case 1:
|
|
1949
1571
|
var this_0 = suspendResult;
|
|
1950
|
-
var tmp_0 = getKClass(
|
|
1951
|
-
var tmp_1 = null instanceof
|
|
1572
|
+
var tmp_0 = getKClass(Unit);
|
|
1573
|
+
var tmp_1 = null instanceof Unit;
|
|
1952
1574
|
var tmp_2;
|
|
1953
1575
|
try {
|
|
1954
|
-
tmp_2 = createKType(getKClass(
|
|
1576
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1955
1577
|
} catch ($p) {
|
|
1956
1578
|
var tmp_3;
|
|
1957
1579
|
if ($p instanceof Error) {
|
|
@@ -1978,53 +1600,70 @@ protoOf($updateOrganizationEmployeeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
1978
1600
|
}
|
|
1979
1601
|
while (true);
|
|
1980
1602
|
};
|
|
1981
|
-
function
|
|
1603
|
+
function deleteOrganizationFromSAMOperation(client, companyId, organizationId) {
|
|
1604
|
+
return promisify(function ($completion) {
|
|
1605
|
+
return deleteOrganizationFromSAMOperation_0(client, companyId, organizationId, $completion);
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
function deleteOrganizationFromSAMOperation_0(client, companyId, organizationId, $completion) {
|
|
1609
|
+
var tmp = new $deleteOrganizationFromSAMOperationCOROUTINE$(client, companyId, organizationId, $completion);
|
|
1610
|
+
tmp.result_1 = Unit_instance;
|
|
1611
|
+
tmp.exception_1 = null;
|
|
1612
|
+
return tmp.doResume_5yljmg_k$();
|
|
1613
|
+
}
|
|
1614
|
+
function $deleteOrganizationFromSAMOperationCOROUTINE$(client, companyId, organizationId, resultContinuation) {
|
|
1982
1615
|
CoroutineImpl.call(this, resultContinuation);
|
|
1983
|
-
this.
|
|
1616
|
+
this.client_1 = client;
|
|
1617
|
+
this.companyId_1 = companyId;
|
|
1984
1618
|
this.organizationId_1 = organizationId;
|
|
1985
|
-
this.employeeId_1 = employeeId;
|
|
1986
|
-
this.updateEmployeeCommand_1 = updateEmployeeCommand;
|
|
1987
1619
|
}
|
|
1988
|
-
protoOf($
|
|
1620
|
+
protoOf($deleteOrganizationFromSAMOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1989
1621
|
var suspendResult = this.result_1;
|
|
1990
1622
|
$sm: do
|
|
1991
1623
|
try {
|
|
1992
1624
|
var tmp = this.state_1;
|
|
1993
1625
|
switch (tmp) {
|
|
1994
1626
|
case 0:
|
|
1995
|
-
this.exceptionState_1 =
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
return suspendResult;
|
|
2008
|
-
}
|
|
2009
|
-
continue $sm;
|
|
1627
|
+
this.exceptionState_1 = 2;
|
|
1628
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1629
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1630
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1631
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1632
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1633
|
+
var tmp1_path = replace(replace('/companies/{companyId}/organizations/{organizationId}', '{companyId}', this.companyId_1.toString()), '{organizationId}', this.organizationId_1.toString());
|
|
1634
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1635
|
+
this.state_1 = 1;
|
|
1636
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1637
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1638
|
+
return suspendResult;
|
|
2010
1639
|
}
|
|
2011
1640
|
|
|
2012
|
-
case 1:
|
|
2013
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2014
|
-
this.state_1 = 3;
|
|
2015
1641
|
continue $sm;
|
|
1642
|
+
case 1:
|
|
1643
|
+
var this_0 = suspendResult;
|
|
1644
|
+
var tmp_0 = getKClass(Unit);
|
|
1645
|
+
var tmp_1 = null instanceof Unit;
|
|
1646
|
+
var tmp_2;
|
|
1647
|
+
try {
|
|
1648
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1649
|
+
} catch ($p) {
|
|
1650
|
+
var tmp_3;
|
|
1651
|
+
if ($p instanceof Error) {
|
|
1652
|
+
var _unused_var__etf5q3 = $p;
|
|
1653
|
+
tmp_3 = null;
|
|
1654
|
+
} else {
|
|
1655
|
+
throw $p;
|
|
1656
|
+
}
|
|
1657
|
+
tmp_2 = tmp_3;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2016
1661
|
case 2:
|
|
2017
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2018
|
-
this.state_1 = 3;
|
|
2019
|
-
continue $sm;
|
|
2020
|
-
case 3:
|
|
2021
|
-
return this.WHEN_RESULT0__1;
|
|
2022
|
-
case 4:
|
|
2023
1662
|
throw this.exception_1;
|
|
2024
1663
|
}
|
|
2025
|
-
} catch ($
|
|
2026
|
-
var e = $
|
|
2027
|
-
if (this.exceptionState_1 ===
|
|
1664
|
+
} catch ($p_0) {
|
|
1665
|
+
var e = $p_0;
|
|
1666
|
+
if (this.exceptionState_1 === 2) {
|
|
2028
1667
|
throw e;
|
|
2029
1668
|
} else {
|
|
2030
1669
|
this.state_1 = this.exceptionState_1;
|
|
@@ -2033,13 +1672,24 @@ protoOf($updateOrganizationEmployee$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
2033
1672
|
}
|
|
2034
1673
|
while (true);
|
|
2035
1674
|
};
|
|
2036
|
-
function
|
|
1675
|
+
function deleteOrganizationRoleOperation(client, organizationId, roleId) {
|
|
1676
|
+
return promisify(function ($completion) {
|
|
1677
|
+
return deleteOrganizationRoleOperation_0(client, organizationId, roleId, $completion);
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
function deleteOrganizationRoleOperation_0(client, organizationId, roleId, $completion) {
|
|
1681
|
+
var tmp = new $deleteOrganizationRoleOperationCOROUTINE$(client, organizationId, roleId, $completion);
|
|
1682
|
+
tmp.result_1 = Unit_instance;
|
|
1683
|
+
tmp.exception_1 = null;
|
|
1684
|
+
return tmp.doResume_5yljmg_k$();
|
|
1685
|
+
}
|
|
1686
|
+
function $deleteOrganizationRoleOperationCOROUTINE$(client, organizationId, roleId, resultContinuation) {
|
|
2037
1687
|
CoroutineImpl.call(this, resultContinuation);
|
|
2038
|
-
this.
|
|
1688
|
+
this.client_1 = client;
|
|
2039
1689
|
this.organizationId_1 = organizationId;
|
|
2040
|
-
this.
|
|
1690
|
+
this.roleId_1 = roleId;
|
|
2041
1691
|
}
|
|
2042
|
-
protoOf($
|
|
1692
|
+
protoOf($deleteOrganizationRoleOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2043
1693
|
var suspendResult = this.result_1;
|
|
2044
1694
|
$sm: do
|
|
2045
1695
|
try {
|
|
@@ -2048,14 +1698,14 @@ protoOf($updateOrganizationReservationsCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
2048
1698
|
case 0:
|
|
2049
1699
|
this.exceptionState_1 = 2;
|
|
2050
1700
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2051
|
-
var localVariableBody =
|
|
1701
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2052
1702
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2053
1703
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2054
|
-
var tmp0_method =
|
|
2055
|
-
var tmp1_path = replace('/organizations/{organizationId}/
|
|
1704
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1705
|
+
var tmp1_path = replace(replace('/organizations/{organizationId}/roles/{roleId}', '{organizationId}', this.organizationId_1.toString()), '{roleId}', this.roleId_1.toString());
|
|
2056
1706
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2057
1707
|
this.state_1 = 1;
|
|
2058
|
-
suspendResult = this.
|
|
1708
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2059
1709
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2060
1710
|
return suspendResult;
|
|
2061
1711
|
}
|
|
@@ -2063,11 +1713,11 @@ protoOf($updateOrganizationReservationsCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
2063
1713
|
continue $sm;
|
|
2064
1714
|
case 1:
|
|
2065
1715
|
var this_0 = suspendResult;
|
|
2066
|
-
var tmp_0 = getKClass(
|
|
2067
|
-
var tmp_1 = null instanceof
|
|
1716
|
+
var tmp_0 = getKClass(Unit);
|
|
1717
|
+
var tmp_1 = null instanceof Unit;
|
|
2068
1718
|
var tmp_2;
|
|
2069
1719
|
try {
|
|
2070
|
-
tmp_2 = createKType(getKClass(
|
|
1720
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2071
1721
|
} catch ($p) {
|
|
2072
1722
|
var tmp_3;
|
|
2073
1723
|
if ($p instanceof Error) {
|
|
@@ -2094,52 +1744,72 @@ protoOf($updateOrganizationReservationsCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
2094
1744
|
}
|
|
2095
1745
|
while (true);
|
|
2096
1746
|
};
|
|
2097
|
-
function
|
|
1747
|
+
function deleteOrganizationSectionContactOperation(client, organizationId, employeeId, companyId, sectionId) {
|
|
1748
|
+
return promisify(function ($completion) {
|
|
1749
|
+
return deleteOrganizationSectionContactOperation_0(client, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
function deleteOrganizationSectionContactOperation_0(client, organizationId, employeeId, companyId, sectionId, $completion) {
|
|
1753
|
+
var tmp = new $deleteOrganizationSectionContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, sectionId, $completion);
|
|
1754
|
+
tmp.result_1 = Unit_instance;
|
|
1755
|
+
tmp.exception_1 = null;
|
|
1756
|
+
return tmp.doResume_5yljmg_k$();
|
|
1757
|
+
}
|
|
1758
|
+
function $deleteOrganizationSectionContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, sectionId, resultContinuation) {
|
|
2098
1759
|
CoroutineImpl.call(this, resultContinuation);
|
|
2099
|
-
this.
|
|
1760
|
+
this.client_1 = client;
|
|
2100
1761
|
this.organizationId_1 = organizationId;
|
|
2101
|
-
this.
|
|
1762
|
+
this.employeeId_1 = employeeId;
|
|
1763
|
+
this.companyId_1 = companyId;
|
|
1764
|
+
this.sectionId_1 = sectionId;
|
|
2102
1765
|
}
|
|
2103
|
-
protoOf($
|
|
1766
|
+
protoOf($deleteOrganizationSectionContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2104
1767
|
var suspendResult = this.result_1;
|
|
2105
1768
|
$sm: do
|
|
2106
1769
|
try {
|
|
2107
1770
|
var tmp = this.state_1;
|
|
2108
1771
|
switch (tmp) {
|
|
2109
1772
|
case 0:
|
|
2110
|
-
this.exceptionState_1 =
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
return suspendResult;
|
|
2123
|
-
}
|
|
2124
|
-
continue $sm;
|
|
1773
|
+
this.exceptionState_1 = 2;
|
|
1774
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1775
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1776
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1777
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1778
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1779
|
+
var tmp1_path = replace(replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}/sections/{sectionId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
1780
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1781
|
+
this.state_1 = 1;
|
|
1782
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1783
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1784
|
+
return suspendResult;
|
|
2125
1785
|
}
|
|
2126
1786
|
|
|
2127
|
-
case 1:
|
|
2128
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2129
|
-
this.state_1 = 3;
|
|
2130
1787
|
continue $sm;
|
|
1788
|
+
case 1:
|
|
1789
|
+
var this_0 = suspendResult;
|
|
1790
|
+
var tmp_0 = getKClass(Unit);
|
|
1791
|
+
var tmp_1 = null instanceof Unit;
|
|
1792
|
+
var tmp_2;
|
|
1793
|
+
try {
|
|
1794
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1795
|
+
} catch ($p) {
|
|
1796
|
+
var tmp_3;
|
|
1797
|
+
if ($p instanceof Error) {
|
|
1798
|
+
var _unused_var__etf5q3 = $p;
|
|
1799
|
+
tmp_3 = null;
|
|
1800
|
+
} else {
|
|
1801
|
+
throw $p;
|
|
1802
|
+
}
|
|
1803
|
+
tmp_2 = tmp_3;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2131
1807
|
case 2:
|
|
2132
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2133
|
-
this.state_1 = 3;
|
|
2134
|
-
continue $sm;
|
|
2135
|
-
case 3:
|
|
2136
|
-
return this.WHEN_RESULT0__1;
|
|
2137
|
-
case 4:
|
|
2138
1808
|
throw this.exception_1;
|
|
2139
1809
|
}
|
|
2140
|
-
} catch ($
|
|
2141
|
-
var e = $
|
|
2142
|
-
if (this.exceptionState_1 ===
|
|
1810
|
+
} catch ($p_0) {
|
|
1811
|
+
var e = $p_0;
|
|
1812
|
+
if (this.exceptionState_1 === 2) {
|
|
2143
1813
|
throw e;
|
|
2144
1814
|
} else {
|
|
2145
1815
|
this.state_1 = this.exceptionState_1;
|
|
@@ -2148,15 +1818,33 @@ protoOf($updateOrganizationReservations$suspendBridgeCOROUTINE$).doResume_5yljmg
|
|
|
2148
1818
|
}
|
|
2149
1819
|
while (true);
|
|
2150
1820
|
};
|
|
2151
|
-
function
|
|
1821
|
+
function indexOrganizationsForEditOperation(client, companyId, search, fields, pageToken, autoPaginate, count) {
|
|
1822
|
+
return promisify(function ($completion) {
|
|
1823
|
+
return indexOrganizationsForEditOperation_0(client, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
function indexOrganizationsForEditOperation_0(client, companyId, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1827
|
+
search = search === VOID ? null : search;
|
|
1828
|
+
fields = fields === VOID ? null : fields;
|
|
1829
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1830
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1831
|
+
count = count === VOID ? null : count;
|
|
1832
|
+
var tmp = new $indexOrganizationsForEditOperationCOROUTINE$(client, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1833
|
+
tmp.result_1 = Unit_instance;
|
|
1834
|
+
tmp.exception_1 = null;
|
|
1835
|
+
return tmp.doResume_5yljmg_k$();
|
|
1836
|
+
}
|
|
1837
|
+
function $indexOrganizationsForEditOperationCOROUTINE$(client, companyId, search, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
2152
1838
|
CoroutineImpl.call(this, resultContinuation);
|
|
2153
|
-
this.
|
|
2154
|
-
this.organizationId_1 = organizationId;
|
|
2155
|
-
this.employeeId_1 = employeeId;
|
|
1839
|
+
this.client_1 = client;
|
|
2156
1840
|
this.companyId_1 = companyId;
|
|
2157
|
-
this.
|
|
1841
|
+
this.search_1 = search;
|
|
1842
|
+
this.fields_1 = fields;
|
|
1843
|
+
this.pageToken_1 = pageToken;
|
|
1844
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1845
|
+
this.count_1 = count;
|
|
2158
1846
|
}
|
|
2159
|
-
protoOf($
|
|
1847
|
+
protoOf($indexOrganizationsForEditOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2160
1848
|
var suspendResult = this.result_1;
|
|
2161
1849
|
$sm: do
|
|
2162
1850
|
try {
|
|
@@ -2167,12 +1855,49 @@ protoOf($updateOrganizationSectionContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
2167
1855
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2168
1856
|
var localVariableBody = EmptyContent_getInstance();
|
|
2169
1857
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1858
|
+
if (this.search_1 == null)
|
|
1859
|
+
null;
|
|
1860
|
+
else {
|
|
1861
|
+
var value = listOf_0(this.search_1);
|
|
1862
|
+
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
if (this.fields_1 == null)
|
|
1866
|
+
null;
|
|
1867
|
+
else {
|
|
1868
|
+
var value_0 = listOf_0(this.fields_1);
|
|
1869
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
if (this.pageToken_1 == null)
|
|
1873
|
+
null;
|
|
1874
|
+
else {
|
|
1875
|
+
var tmp2 = 'pageToken';
|
|
1876
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
1877
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
if (this.autoPaginate_1 == null)
|
|
1881
|
+
null;
|
|
1882
|
+
else {
|
|
1883
|
+
var tmp2_0 = 'autoPaginate';
|
|
1884
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
1885
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
if (this.count_1 == null)
|
|
1889
|
+
null;
|
|
1890
|
+
else {
|
|
1891
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
1892
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
2170
1895
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2171
|
-
var
|
|
2172
|
-
var
|
|
2173
|
-
var localVariableConfig = new RequestConfig(
|
|
1896
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
1897
|
+
var tmp6_path = replace('/companies/{companyId}/organizations', '{companyId}', this.companyId_1.toString());
|
|
1898
|
+
var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2174
1899
|
this.state_1 = 1;
|
|
2175
|
-
suspendResult = this.
|
|
1900
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2176
1901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2177
1902
|
return suspendResult;
|
|
2178
1903
|
}
|
|
@@ -2180,11 +1905,11 @@ protoOf($updateOrganizationSectionContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
2180
1905
|
continue $sm;
|
|
2181
1906
|
case 1:
|
|
2182
1907
|
var this_0 = suspendResult;
|
|
2183
|
-
var tmp_0 = getKClass(
|
|
2184
|
-
var tmp_1 = null instanceof
|
|
1908
|
+
var tmp_0 = getKClass(PagedListMassEditOrganization);
|
|
1909
|
+
var tmp_1 = null instanceof PagedListMassEditOrganization;
|
|
2185
1910
|
var tmp_2;
|
|
2186
1911
|
try {
|
|
2187
|
-
tmp_2 = createKType(getKClass(
|
|
1912
|
+
tmp_2 = createKType(getKClass(PagedListMassEditOrganization), arrayOf([]), false);
|
|
2188
1913
|
} catch ($p) {
|
|
2189
1914
|
var tmp_3;
|
|
2190
1915
|
if ($p instanceof Error) {
|
|
@@ -2211,398 +1936,825 @@ protoOf($updateOrganizationSectionContactCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
2211
1936
|
}
|
|
2212
1937
|
while (true);
|
|
2213
1938
|
};
|
|
2214
|
-
function
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
}
|
|
2222
|
-
protoOf($updateOrganizationSectionContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2223
|
-
var suspendResult = this.result_1;
|
|
2224
|
-
$sm: do
|
|
2225
|
-
try {
|
|
2226
|
-
var tmp = this.state_1;
|
|
2227
|
-
switch (tmp) {
|
|
2228
|
-
case 0:
|
|
2229
|
-
this.exceptionState_1 = 4;
|
|
2230
|
-
if (this._this__u8e3s4__1.updateOrganizationSectionContact === protoOf(OrganizationApi).updateOrganizationSectionContact) {
|
|
2231
|
-
this.state_1 = 2;
|
|
2232
|
-
suspendResult = this._this__u8e3s4__1.updateOrganizationSectionContact_j29c37_k$(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1, this);
|
|
2233
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
|
-
return suspendResult;
|
|
2235
|
-
}
|
|
2236
|
-
continue $sm;
|
|
2237
|
-
} else {
|
|
2238
|
-
this.state_1 = 1;
|
|
2239
|
-
suspendResult = await_0(this._this__u8e3s4__1.updateOrganizationSectionContact(this.organizationId_1, this.employeeId_1, this.companyId_1, this.sectionId_1), this);
|
|
2240
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2241
|
-
return suspendResult;
|
|
2242
|
-
}
|
|
2243
|
-
continue $sm;
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
case 1:
|
|
2247
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2248
|
-
this.state_1 = 3;
|
|
2249
|
-
continue $sm;
|
|
2250
|
-
case 2:
|
|
2251
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
2252
|
-
this.state_1 = 3;
|
|
2253
|
-
continue $sm;
|
|
2254
|
-
case 3:
|
|
2255
|
-
return this.WHEN_RESULT0__1;
|
|
2256
|
-
case 4:
|
|
2257
|
-
throw this.exception_1;
|
|
2258
|
-
}
|
|
2259
|
-
} catch ($p) {
|
|
2260
|
-
var e = $p;
|
|
2261
|
-
if (this.exceptionState_1 === 4) {
|
|
2262
|
-
throw e;
|
|
2263
|
-
} else {
|
|
2264
|
-
this.state_1 = this.exceptionState_1;
|
|
2265
|
-
this.exception_1 = e;
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
while (true);
|
|
2269
|
-
};
|
|
2270
|
-
protoOf(OrganizationApi).createOrganizationEmployee_peacaf_k$ = function (organizationId, createEmployeeCommand, $completion) {
|
|
2271
|
-
var tmp = new $createOrganizationEmployeeCOROUTINE$(this, organizationId, createEmployeeCommand, $completion);
|
|
2272
|
-
tmp.result_1 = Unit_instance;
|
|
2273
|
-
tmp.exception_1 = null;
|
|
2274
|
-
return tmp.doResume_5yljmg_k$();
|
|
2275
|
-
};
|
|
2276
|
-
protoOf(OrganizationApi).createOrganizationEmployee = function (organizationId, createEmployeeCommand) {
|
|
2277
|
-
var tmp = this;
|
|
2278
|
-
return promisify(function ($completion) {
|
|
2279
|
-
return tmp.createOrganizationEmployee_peacaf_k$(organizationId, createEmployeeCommand, $completion);
|
|
2280
|
-
});
|
|
2281
|
-
};
|
|
2282
|
-
protoOf(OrganizationApi).createOrganizationEmployee$suspendBridge_xygymu_k$ = function (organizationId, createEmployeeCommand, $completion) {
|
|
2283
|
-
var tmp = new $createOrganizationEmployee$suspendBridgeCOROUTINE$(this, organizationId, createEmployeeCommand, $completion);
|
|
2284
|
-
tmp.result_1 = Unit_instance;
|
|
2285
|
-
tmp.exception_1 = null;
|
|
2286
|
-
return tmp.doResume_5yljmg_k$();
|
|
2287
|
-
};
|
|
2288
|
-
protoOf(OrganizationApi).deleteOrganizationCompanyContact_l4c65b_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
2289
|
-
var tmp = new $deleteOrganizationCompanyContactCOROUTINE$(this, organizationId, employeeId, companyId, $completion);
|
|
2290
|
-
tmp.result_1 = Unit_instance;
|
|
2291
|
-
tmp.exception_1 = null;
|
|
2292
|
-
return tmp.doResume_5yljmg_k$();
|
|
2293
|
-
};
|
|
2294
|
-
protoOf(OrganizationApi).deleteOrganizationCompanyContact = function (organizationId, employeeId, companyId) {
|
|
2295
|
-
var tmp = this;
|
|
2296
|
-
return promisify(function ($completion) {
|
|
2297
|
-
return tmp.deleteOrganizationCompanyContact_l4c65b_k$(organizationId, employeeId, companyId, $completion);
|
|
2298
|
-
});
|
|
2299
|
-
};
|
|
2300
|
-
protoOf(OrganizationApi).deleteOrganizationCompanyContact$suspendBridge_7ikzcu_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
2301
|
-
var tmp = new $deleteOrganizationCompanyContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, $completion);
|
|
2302
|
-
tmp.result_1 = Unit_instance;
|
|
2303
|
-
tmp.exception_1 = null;
|
|
2304
|
-
return tmp.doResume_5yljmg_k$();
|
|
2305
|
-
};
|
|
2306
|
-
protoOf(OrganizationApi).deleteOrganizationEmployee_6rd1k_k$ = function (organizationId, employeeId, $completion) {
|
|
2307
|
-
var tmp = new $deleteOrganizationEmployeeCOROUTINE$(this, organizationId, employeeId, $completion);
|
|
2308
|
-
tmp.result_1 = Unit_instance;
|
|
2309
|
-
tmp.exception_1 = null;
|
|
2310
|
-
return tmp.doResume_5yljmg_k$();
|
|
2311
|
-
};
|
|
2312
|
-
protoOf(OrganizationApi).deleteOrganizationEmployee = function (organizationId, employeeId) {
|
|
2313
|
-
var tmp = this;
|
|
2314
|
-
return promisify(function ($completion) {
|
|
2315
|
-
return tmp.deleteOrganizationEmployee_6rd1k_k$(organizationId, employeeId, $completion);
|
|
2316
|
-
});
|
|
2317
|
-
};
|
|
2318
|
-
protoOf(OrganizationApi).deleteOrganizationEmployee$suspendBridge_arq6q1_k$ = function (organizationId, employeeId, $completion) {
|
|
2319
|
-
var tmp = new $deleteOrganizationEmployee$suspendBridgeCOROUTINE$(this, organizationId, employeeId, $completion);
|
|
2320
|
-
tmp.result_1 = Unit_instance;
|
|
2321
|
-
tmp.exception_1 = null;
|
|
2322
|
-
return tmp.doResume_5yljmg_k$();
|
|
2323
|
-
};
|
|
2324
|
-
protoOf(OrganizationApi).deleteOrganizationFromSAM_4jpgtv_k$ = function (companyId, organizationId, $completion) {
|
|
2325
|
-
var tmp = new $deleteOrganizationFromSAMCOROUTINE$(this, companyId, organizationId, $completion);
|
|
2326
|
-
tmp.result_1 = Unit_instance;
|
|
2327
|
-
tmp.exception_1 = null;
|
|
2328
|
-
return tmp.doResume_5yljmg_k$();
|
|
2329
|
-
};
|
|
2330
|
-
protoOf(OrganizationApi).deleteOrganizationFromSAM = function (companyId, organizationId) {
|
|
2331
|
-
var tmp = this;
|
|
2332
|
-
return promisify(function ($completion) {
|
|
2333
|
-
return tmp.deleteOrganizationFromSAM_4jpgtv_k$(companyId, organizationId, $completion);
|
|
2334
|
-
});
|
|
2335
|
-
};
|
|
2336
|
-
protoOf(OrganizationApi).deleteOrganizationFromSAM$suspendBridge_qjq19w_k$ = function (companyId, organizationId, $completion) {
|
|
2337
|
-
var tmp = new $deleteOrganizationFromSAM$suspendBridgeCOROUTINE$(this, companyId, organizationId, $completion);
|
|
2338
|
-
tmp.result_1 = Unit_instance;
|
|
2339
|
-
tmp.exception_1 = null;
|
|
2340
|
-
return tmp.doResume_5yljmg_k$();
|
|
2341
|
-
};
|
|
2342
|
-
protoOf(OrganizationApi).deleteOrganizationRole_qrbzww_k$ = function (organizationId, roleId, $completion) {
|
|
2343
|
-
var tmp = new $deleteOrganizationRoleCOROUTINE$(this, organizationId, roleId, $completion);
|
|
2344
|
-
tmp.result_1 = Unit_instance;
|
|
2345
|
-
tmp.exception_1 = null;
|
|
2346
|
-
return tmp.doResume_5yljmg_k$();
|
|
2347
|
-
};
|
|
2348
|
-
protoOf(OrganizationApi).deleteOrganizationRole = function (organizationId, roleId) {
|
|
2349
|
-
var tmp = this;
|
|
2350
|
-
return promisify(function ($completion) {
|
|
2351
|
-
return tmp.deleteOrganizationRole_qrbzww_k$(organizationId, roleId, $completion);
|
|
2352
|
-
});
|
|
2353
|
-
};
|
|
2354
|
-
protoOf(OrganizationApi).deleteOrganizationRole$suspendBridge_mk3bn3_k$ = function (organizationId, roleId, $completion) {
|
|
2355
|
-
var tmp = new $deleteOrganizationRole$suspendBridgeCOROUTINE$(this, organizationId, roleId, $completion);
|
|
2356
|
-
tmp.result_1 = Unit_instance;
|
|
2357
|
-
tmp.exception_1 = null;
|
|
2358
|
-
return tmp.doResume_5yljmg_k$();
|
|
2359
|
-
};
|
|
2360
|
-
protoOf(OrganizationApi).deleteOrganizationSectionContact_hbuwk5_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
2361
|
-
var tmp = new $deleteOrganizationSectionContactCOROUTINE$(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
2362
|
-
tmp.result_1 = Unit_instance;
|
|
2363
|
-
tmp.exception_1 = null;
|
|
2364
|
-
return tmp.doResume_5yljmg_k$();
|
|
2365
|
-
};
|
|
2366
|
-
protoOf(OrganizationApi).deleteOrganizationSectionContact = function (organizationId, employeeId, companyId, sectionId) {
|
|
2367
|
-
var tmp = this;
|
|
2368
|
-
return promisify(function ($completion) {
|
|
2369
|
-
return tmp.deleteOrganizationSectionContact_hbuwk5_k$(organizationId, employeeId, companyId, sectionId, $completion);
|
|
2370
|
-
});
|
|
2371
|
-
};
|
|
2372
|
-
protoOf(OrganizationApi).deleteOrganizationSectionContact$suspendBridge_xkslm2_k$ = function (organizationId, employeeId, companyId, sectionId, $completion) {
|
|
2373
|
-
var tmp = new $deleteOrganizationSectionContact$suspendBridgeCOROUTINE$(this, organizationId, employeeId, companyId, sectionId, $completion);
|
|
2374
|
-
tmp.result_1 = Unit_instance;
|
|
2375
|
-
tmp.exception_1 = null;
|
|
2376
|
-
return tmp.doResume_5yljmg_k$();
|
|
2377
|
-
};
|
|
2378
|
-
protoOf(OrganizationApi).indexOrganizations_r4cp57_k$ = function (search, fields, pageToken, autoPaginate, count, $completion) {
|
|
2379
|
-
var tmp = new $indexOrganizationsCOROUTINE$(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2380
|
-
tmp.result_1 = Unit_instance;
|
|
2381
|
-
tmp.exception_1 = null;
|
|
2382
|
-
return tmp.doResume_5yljmg_k$();
|
|
2383
|
-
};
|
|
2384
|
-
protoOf(OrganizationApi).indexOrganizations$default_p9zaz5_k$ = function (search, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2385
|
-
search = search === VOID ? null : search;
|
|
2386
|
-
fields = fields === VOID ? null : fields;
|
|
2387
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2388
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2389
|
-
count = count === VOID ? null : count;
|
|
2390
|
-
return $super === VOID ? this.indexOrganizations_r4cp57_k$(search, fields, pageToken, autoPaginate, count, $completion) : $super.indexOrganizations_r4cp57_k$.call(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2391
|
-
};
|
|
2392
|
-
protoOf(OrganizationApi).indexOrganizations = function (search, fields, pageToken, autoPaginate, count) {
|
|
2393
|
-
var tmp = this;
|
|
2394
|
-
return promisify(function ($completion) {
|
|
2395
|
-
return tmp.indexOrganizations$default_p9zaz5_k$(search, fields, pageToken, autoPaginate, count, $completion);
|
|
2396
|
-
});
|
|
2397
|
-
};
|
|
2398
|
-
protoOf(OrganizationApi).indexOrganizations$suspendBridge_b26uok_k$ = function (search, fields, pageToken, autoPaginate, count, $completion) {
|
|
2399
|
-
var tmp = new $indexOrganizations$suspendBridgeCOROUTINE$(this, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2400
|
-
tmp.result_1 = Unit_instance;
|
|
2401
|
-
tmp.exception_1 = null;
|
|
2402
|
-
return tmp.doResume_5yljmg_k$();
|
|
2403
|
-
};
|
|
2404
|
-
protoOf(OrganizationApi).indexOrganizationsForEdit_lq17ne_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
2405
|
-
var tmp = new $indexOrganizationsForEditCOROUTINE$(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2406
|
-
tmp.result_1 = Unit_instance;
|
|
2407
|
-
tmp.exception_1 = null;
|
|
2408
|
-
return tmp.doResume_5yljmg_k$();
|
|
2409
|
-
};
|
|
2410
|
-
protoOf(OrganizationApi).indexOrganizationsForEdit$default_cqx16y_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2411
|
-
search = search === VOID ? null : search;
|
|
2412
|
-
fields = fields === VOID ? null : fields;
|
|
2413
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
2414
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2415
|
-
count = count === VOID ? null : count;
|
|
2416
|
-
return $super === VOID ? this.indexOrganizationsForEdit_lq17ne_k$(companyId, search, fields, pageToken, autoPaginate, count, $completion) : $super.indexOrganizationsForEdit_lq17ne_k$.call(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2417
|
-
};
|
|
2418
|
-
protoOf(OrganizationApi).indexOrganizationsForEdit = function (companyId, search, fields, pageToken, autoPaginate, count) {
|
|
2419
|
-
var tmp = this;
|
|
2420
|
-
return promisify(function ($completion) {
|
|
2421
|
-
return tmp.indexOrganizationsForEdit$default_cqx16y_k$(companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2422
|
-
});
|
|
2423
|
-
};
|
|
2424
|
-
protoOf(OrganizationApi).indexOrganizationsForEdit$suspendBridge_l92fnr_k$ = function (companyId, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
2425
|
-
var tmp = new $indexOrganizationsForEdit$suspendBridgeCOROUTINE$(this, companyId, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2426
|
-
tmp.result_1 = Unit_instance;
|
|
2427
|
-
tmp.exception_1 = null;
|
|
2428
|
-
return tmp.doResume_5yljmg_k$();
|
|
2429
|
-
};
|
|
2430
|
-
protoOf(OrganizationApi).massUpdateOrganization_e9s6ij_k$ = function (companyId, massEditOrganizationCommand, $completion) {
|
|
2431
|
-
var tmp = new $massUpdateOrganizationCOROUTINE$(this, companyId, massEditOrganizationCommand, $completion);
|
|
2432
|
-
tmp.result_1 = Unit_instance;
|
|
2433
|
-
tmp.exception_1 = null;
|
|
2434
|
-
return tmp.doResume_5yljmg_k$();
|
|
2435
|
-
};
|
|
2436
|
-
protoOf(OrganizationApi).massUpdateOrganization = function (companyId, massEditOrganizationCommand) {
|
|
2437
|
-
var tmp = this;
|
|
2438
|
-
return promisify(function ($completion) {
|
|
2439
|
-
return tmp.massUpdateOrganization_e9s6ij_k$(companyId, massEditOrganizationCommand, $completion);
|
|
2440
|
-
});
|
|
2441
|
-
};
|
|
2442
|
-
protoOf(OrganizationApi).massUpdateOrganization$suspendBridge_nrz3oa_k$ = function (companyId, massEditOrganizationCommand, $completion) {
|
|
2443
|
-
var tmp = new $massUpdateOrganization$suspendBridgeCOROUTINE$(this, companyId, massEditOrganizationCommand, $completion);
|
|
2444
|
-
tmp.result_1 = Unit_instance;
|
|
2445
|
-
tmp.exception_1 = null;
|
|
2446
|
-
return tmp.doResume_5yljmg_k$();
|
|
2447
|
-
};
|
|
2448
|
-
protoOf(OrganizationApi).searchOrganizations_eie839_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
2449
|
-
var tmp = new $searchOrganizationsCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2450
|
-
tmp.result_1 = Unit_instance;
|
|
2451
|
-
tmp.exception_1 = null;
|
|
2452
|
-
return tmp.doResume_5yljmg_k$();
|
|
2453
|
-
};
|
|
2454
|
-
protoOf(OrganizationApi).searchOrganizations$default_lb8k3f_k$ = function (query, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
2455
|
-
query = query === VOID ? null : query;
|
|
1939
|
+
function indexOrganizationsOperation(client, search, fields, pageToken, autoPaginate, count) {
|
|
1940
|
+
return promisify(function ($completion) {
|
|
1941
|
+
return indexOrganizationsOperation_0(client, search, fields, pageToken, autoPaginate, count, $completion);
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
function indexOrganizationsOperation_0(client, search, fields, pageToken, autoPaginate, count, $completion) {
|
|
1945
|
+
search = search === VOID ? null : search;
|
|
2456
1946
|
fields = fields === VOID ? null : fields;
|
|
2457
1947
|
pageToken = pageToken === VOID ? null : pageToken;
|
|
2458
1948
|
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2459
1949
|
count = count === VOID ? null : count;
|
|
2460
|
-
|
|
2461
|
-
};
|
|
2462
|
-
protoOf(OrganizationApi).searchOrganizations = function (query, fields, pageToken, autoPaginate, count) {
|
|
2463
|
-
var tmp = this;
|
|
2464
|
-
return promisify(function ($completion) {
|
|
2465
|
-
return tmp.searchOrganizations$default_lb8k3f_k$(query, fields, pageToken, autoPaginate, count, $completion);
|
|
2466
|
-
});
|
|
2467
|
-
};
|
|
2468
|
-
protoOf(OrganizationApi).searchOrganizations$suspendBridge_amjl7u_k$ = function (query, fields, pageToken, autoPaginate, count, $completion) {
|
|
2469
|
-
var tmp = new $searchOrganizations$suspendBridgeCOROUTINE$(this, query, fields, pageToken, autoPaginate, count, $completion);
|
|
1950
|
+
var tmp = new $indexOrganizationsOperationCOROUTINE$(client, search, fields, pageToken, autoPaginate, count, $completion);
|
|
2470
1951
|
tmp.result_1 = Unit_instance;
|
|
2471
1952
|
tmp.exception_1 = null;
|
|
2472
1953
|
return tmp.doResume_5yljmg_k$();
|
|
1954
|
+
}
|
|
1955
|
+
function $indexOrganizationsOperationCOROUTINE$(client, search, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1956
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1957
|
+
this.client_1 = client;
|
|
1958
|
+
this.search_1 = search;
|
|
1959
|
+
this.fields_1 = fields;
|
|
1960
|
+
this.pageToken_1 = pageToken;
|
|
1961
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1962
|
+
this.count_1 = count;
|
|
1963
|
+
}
|
|
1964
|
+
protoOf($indexOrganizationsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1965
|
+
var suspendResult = this.result_1;
|
|
1966
|
+
$sm: do
|
|
1967
|
+
try {
|
|
1968
|
+
var tmp = this.state_1;
|
|
1969
|
+
switch (tmp) {
|
|
1970
|
+
case 0:
|
|
1971
|
+
this.exceptionState_1 = 2;
|
|
1972
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1973
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1974
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1975
|
+
if (this.search_1 == null)
|
|
1976
|
+
null;
|
|
1977
|
+
else {
|
|
1978
|
+
var value = listOf_0(this.search_1);
|
|
1979
|
+
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
if (this.fields_1 == null)
|
|
1983
|
+
null;
|
|
1984
|
+
else {
|
|
1985
|
+
var value_0 = listOf_0(this.fields_1);
|
|
1986
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
if (this.pageToken_1 == null)
|
|
1990
|
+
null;
|
|
1991
|
+
else {
|
|
1992
|
+
var tmp2 = 'pageToken';
|
|
1993
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
1994
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
if (this.autoPaginate_1 == null)
|
|
1998
|
+
null;
|
|
1999
|
+
else {
|
|
2000
|
+
var tmp2_0 = 'autoPaginate';
|
|
2001
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
2002
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
if (this.count_1 == null)
|
|
2006
|
+
null;
|
|
2007
|
+
else {
|
|
2008
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
2009
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2013
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
2014
|
+
var localVariableConfig = new RequestConfig(tmp5_method, '/organizations', localVariableHeaders, VOID, localVariableQuery, true);
|
|
2015
|
+
this.state_1 = 1;
|
|
2016
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2017
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2018
|
+
return suspendResult;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
continue $sm;
|
|
2022
|
+
case 1:
|
|
2023
|
+
var this_0 = suspendResult;
|
|
2024
|
+
var tmp_0 = getKClass(PagedListOrganization);
|
|
2025
|
+
var tmp_1 = null instanceof PagedListOrganization;
|
|
2026
|
+
var tmp_2;
|
|
2027
|
+
try {
|
|
2028
|
+
tmp_2 = createKType(getKClass(PagedListOrganization), arrayOf([]), false);
|
|
2029
|
+
} catch ($p) {
|
|
2030
|
+
var tmp_3;
|
|
2031
|
+
if ($p instanceof Error) {
|
|
2032
|
+
var _unused_var__etf5q3 = $p;
|
|
2033
|
+
tmp_3 = null;
|
|
2034
|
+
} else {
|
|
2035
|
+
throw $p;
|
|
2036
|
+
}
|
|
2037
|
+
tmp_2 = tmp_3;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2041
|
+
case 2:
|
|
2042
|
+
throw this.exception_1;
|
|
2043
|
+
}
|
|
2044
|
+
} catch ($p_0) {
|
|
2045
|
+
var e = $p_0;
|
|
2046
|
+
if (this.exceptionState_1 === 2) {
|
|
2047
|
+
throw e;
|
|
2048
|
+
} else {
|
|
2049
|
+
this.state_1 = this.exceptionState_1;
|
|
2050
|
+
this.exception_1 = e;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
while (true);
|
|
2473
2054
|
};
|
|
2474
|
-
|
|
2475
|
-
var tmp = new $showOrganizationCOROUTINE$(this, organizationId, fields, $completion);
|
|
2476
|
-
tmp.result_1 = Unit_instance;
|
|
2477
|
-
tmp.exception_1 = null;
|
|
2478
|
-
return tmp.doResume_5yljmg_k$();
|
|
2479
|
-
};
|
|
2480
|
-
protoOf(OrganizationApi).showOrganization$default_kheag3_k$ = function (organizationId, fields, $completion, $super) {
|
|
2481
|
-
fields = fields === VOID ? null : fields;
|
|
2482
|
-
return $super === VOID ? this.showOrganization_qgulax_k$(organizationId, fields, $completion) : $super.showOrganization_qgulax_k$.call(this, organizationId, fields, $completion);
|
|
2483
|
-
};
|
|
2484
|
-
protoOf(OrganizationApi).showOrganization = function (organizationId, fields) {
|
|
2485
|
-
var tmp = this;
|
|
2055
|
+
function massUpdateOrganizationOperation(client, companyId, massEditOrganizationCommand) {
|
|
2486
2056
|
return promisify(function ($completion) {
|
|
2487
|
-
return
|
|
2057
|
+
return massUpdateOrganizationOperation_0(client, companyId, massEditOrganizationCommand, $completion);
|
|
2488
2058
|
});
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
var tmp = new $
|
|
2492
|
-
tmp.result_1 = Unit_instance;
|
|
2493
|
-
tmp.exception_1 = null;
|
|
2494
|
-
return tmp.doResume_5yljmg_k$();
|
|
2495
|
-
};
|
|
2496
|
-
protoOf(OrganizationApi).showOrganizationByOrganizationnummer_hp0cp2_k$ = function (organizationNumber, $completion) {
|
|
2497
|
-
var tmp = new $showOrganizationByOrganizationnummerCOROUTINE$(this, organizationNumber, $completion);
|
|
2059
|
+
}
|
|
2060
|
+
function massUpdateOrganizationOperation_0(client, companyId, massEditOrganizationCommand, $completion) {
|
|
2061
|
+
var tmp = new $massUpdateOrganizationOperationCOROUTINE$(client, companyId, massEditOrganizationCommand, $completion);
|
|
2498
2062
|
tmp.result_1 = Unit_instance;
|
|
2499
2063
|
tmp.exception_1 = null;
|
|
2500
2064
|
return tmp.doResume_5yljmg_k$();
|
|
2065
|
+
}
|
|
2066
|
+
function $massUpdateOrganizationOperationCOROUTINE$(client, companyId, massEditOrganizationCommand, resultContinuation) {
|
|
2067
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2068
|
+
this.client_1 = client;
|
|
2069
|
+
this.companyId_1 = companyId;
|
|
2070
|
+
this.massEditOrganizationCommand_1 = massEditOrganizationCommand;
|
|
2071
|
+
}
|
|
2072
|
+
protoOf($massUpdateOrganizationOperationCOROUTINE$).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 = this.massEditOrganizationCommand_1;
|
|
2082
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2083
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2084
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2085
|
+
var tmp1_path = replace('/companies/{companyId}/organizations', '{companyId}', this.companyId_1.toString());
|
|
2086
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2087
|
+
this.state_1 = 1;
|
|
2088
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2089
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2090
|
+
return suspendResult;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
continue $sm;
|
|
2094
|
+
case 1:
|
|
2095
|
+
var this_0 = suspendResult;
|
|
2096
|
+
var tmp_0 = getKClass(Unit);
|
|
2097
|
+
var tmp_1 = null instanceof Unit;
|
|
2098
|
+
var tmp_2;
|
|
2099
|
+
try {
|
|
2100
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2101
|
+
} catch ($p) {
|
|
2102
|
+
var tmp_3;
|
|
2103
|
+
if ($p instanceof Error) {
|
|
2104
|
+
var _unused_var__etf5q3 = $p;
|
|
2105
|
+
tmp_3 = null;
|
|
2106
|
+
} else {
|
|
2107
|
+
throw $p;
|
|
2108
|
+
}
|
|
2109
|
+
tmp_2 = tmp_3;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2113
|
+
case 2:
|
|
2114
|
+
throw this.exception_1;
|
|
2115
|
+
}
|
|
2116
|
+
} catch ($p_0) {
|
|
2117
|
+
var e = $p_0;
|
|
2118
|
+
if (this.exceptionState_1 === 2) {
|
|
2119
|
+
throw e;
|
|
2120
|
+
} else {
|
|
2121
|
+
this.state_1 = this.exceptionState_1;
|
|
2122
|
+
this.exception_1 = e;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
while (true);
|
|
2501
2126
|
};
|
|
2502
|
-
|
|
2503
|
-
var tmp = this;
|
|
2127
|
+
function searchOrganizationsOperation(client, query, fields, pageToken, autoPaginate, count) {
|
|
2504
2128
|
return promisify(function ($completion) {
|
|
2505
|
-
return
|
|
2129
|
+
return searchOrganizationsOperation_0(client, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2506
2130
|
});
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
var tmp = new $updateOrganizationCOROUTINE$(this, organizationId, updateOrganizationCommand, $completion);
|
|
2131
|
+
}
|
|
2132
|
+
function searchOrganizationsOperation_0(client, query, fields, pageToken, autoPaginate, count, $completion) {
|
|
2133
|
+
query = query === VOID ? null : query;
|
|
2134
|
+
fields = fields === VOID ? null : fields;
|
|
2135
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
2136
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
2137
|
+
count = count === VOID ? null : count;
|
|
2138
|
+
var tmp = new $searchOrganizationsOperationCOROUTINE$(client, query, fields, pageToken, autoPaginate, count, $completion);
|
|
2516
2139
|
tmp.result_1 = Unit_instance;
|
|
2517
2140
|
tmp.exception_1 = null;
|
|
2518
2141
|
return tmp.doResume_5yljmg_k$();
|
|
2142
|
+
}
|
|
2143
|
+
function $searchOrganizationsOperationCOROUTINE$(client, query, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
2144
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2145
|
+
this.client_1 = client;
|
|
2146
|
+
this.query_1 = query;
|
|
2147
|
+
this.fields_1 = fields;
|
|
2148
|
+
this.pageToken_1 = pageToken;
|
|
2149
|
+
this.autoPaginate_1 = autoPaginate;
|
|
2150
|
+
this.count_1 = count;
|
|
2151
|
+
}
|
|
2152
|
+
protoOf($searchOrganizationsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2153
|
+
var suspendResult = this.result_1;
|
|
2154
|
+
$sm: do
|
|
2155
|
+
try {
|
|
2156
|
+
var tmp = this.state_1;
|
|
2157
|
+
switch (tmp) {
|
|
2158
|
+
case 0:
|
|
2159
|
+
this.exceptionState_1 = 2;
|
|
2160
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2161
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2162
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2163
|
+
if (this.query_1 == null)
|
|
2164
|
+
null;
|
|
2165
|
+
else {
|
|
2166
|
+
var value = listOf_0(this.query_1);
|
|
2167
|
+
localVariableQuery.put_4fpzoq_k$('query', value);
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
if (this.fields_1 == null)
|
|
2171
|
+
null;
|
|
2172
|
+
else {
|
|
2173
|
+
var value_0 = listOf_0(this.fields_1);
|
|
2174
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
if (this.pageToken_1 == null)
|
|
2178
|
+
null;
|
|
2179
|
+
else {
|
|
2180
|
+
var tmp2 = 'pageToken';
|
|
2181
|
+
var value_1 = listOf_0(this.pageToken_1);
|
|
2182
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_1);
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
if (this.autoPaginate_1 == null)
|
|
2186
|
+
null;
|
|
2187
|
+
else {
|
|
2188
|
+
var tmp2_0 = 'autoPaginate';
|
|
2189
|
+
var value_2 = listOf_0('' + this.autoPaginate_1);
|
|
2190
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
if (this.count_1 == null)
|
|
2194
|
+
null;
|
|
2195
|
+
else {
|
|
2196
|
+
var value_3 = listOf_0('' + this.count_1);
|
|
2197
|
+
localVariableQuery.put_4fpzoq_k$('count', value_3);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2201
|
+
var tmp5_method = RequestMethod_GET_getInstance();
|
|
2202
|
+
var localVariableConfig = new RequestConfig(tmp5_method, '/organizations/search', localVariableHeaders, VOID, localVariableQuery, true);
|
|
2203
|
+
this.state_1 = 1;
|
|
2204
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2205
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2206
|
+
return suspendResult;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
continue $sm;
|
|
2210
|
+
case 1:
|
|
2211
|
+
var this_0 = suspendResult;
|
|
2212
|
+
var tmp_0 = getKClass(PagedListOrganization);
|
|
2213
|
+
var tmp_1 = null instanceof PagedListOrganization;
|
|
2214
|
+
var tmp_2;
|
|
2215
|
+
try {
|
|
2216
|
+
tmp_2 = createKType(getKClass(PagedListOrganization), arrayOf([]), false);
|
|
2217
|
+
} catch ($p) {
|
|
2218
|
+
var tmp_3;
|
|
2219
|
+
if ($p instanceof Error) {
|
|
2220
|
+
var _unused_var__etf5q3 = $p;
|
|
2221
|
+
tmp_3 = null;
|
|
2222
|
+
} else {
|
|
2223
|
+
throw $p;
|
|
2224
|
+
}
|
|
2225
|
+
tmp_2 = tmp_3;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2229
|
+
case 2:
|
|
2230
|
+
throw this.exception_1;
|
|
2231
|
+
}
|
|
2232
|
+
} catch ($p_0) {
|
|
2233
|
+
var e = $p_0;
|
|
2234
|
+
if (this.exceptionState_1 === 2) {
|
|
2235
|
+
throw e;
|
|
2236
|
+
} else {
|
|
2237
|
+
this.state_1 = this.exceptionState_1;
|
|
2238
|
+
this.exception_1 = e;
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
while (true);
|
|
2519
2242
|
};
|
|
2520
|
-
|
|
2521
|
-
var tmp = this;
|
|
2243
|
+
function showOrganizationByOrganizationnummerOperation(client, organizationNumber) {
|
|
2522
2244
|
return promisify(function ($completion) {
|
|
2523
|
-
return
|
|
2245
|
+
return showOrganizationByOrganizationnummerOperation_0(client, organizationNumber, $completion);
|
|
2524
2246
|
});
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
var tmp = new $
|
|
2528
|
-
tmp.result_1 = Unit_instance;
|
|
2529
|
-
tmp.exception_1 = null;
|
|
2530
|
-
return tmp.doResume_5yljmg_k$();
|
|
2531
|
-
};
|
|
2532
|
-
protoOf(OrganizationApi).updateOrganizationCompanyContact_p33qyn_k$ = function (organizationId, employeeId, companyId, $completion) {
|
|
2533
|
-
var tmp = new $updateOrganizationCompanyContactCOROUTINE$(this, organizationId, employeeId, companyId, $completion);
|
|
2247
|
+
}
|
|
2248
|
+
function showOrganizationByOrganizationnummerOperation_0(client, organizationNumber, $completion) {
|
|
2249
|
+
var tmp = new $showOrganizationByOrganizationnummerOperationCOROUTINE$(client, organizationNumber, $completion);
|
|
2534
2250
|
tmp.result_1 = Unit_instance;
|
|
2535
2251
|
tmp.exception_1 = null;
|
|
2536
2252
|
return tmp.doResume_5yljmg_k$();
|
|
2253
|
+
}
|
|
2254
|
+
function $showOrganizationByOrganizationnummerOperationCOROUTINE$(client, organizationNumber, resultContinuation) {
|
|
2255
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2256
|
+
this.client_1 = client;
|
|
2257
|
+
this.organizationNumber_1 = organizationNumber;
|
|
2258
|
+
}
|
|
2259
|
+
protoOf($showOrganizationByOrganizationnummerOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2260
|
+
var suspendResult = this.result_1;
|
|
2261
|
+
$sm: do
|
|
2262
|
+
try {
|
|
2263
|
+
var tmp = this.state_1;
|
|
2264
|
+
switch (tmp) {
|
|
2265
|
+
case 0:
|
|
2266
|
+
this.exceptionState_1 = 2;
|
|
2267
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2268
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2269
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2270
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2271
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
2272
|
+
var tmp1_path = replace('/organizations/orgNr/{organizationNumber}', '{organizationNumber}', this.organizationNumber_1);
|
|
2273
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2274
|
+
this.state_1 = 1;
|
|
2275
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2276
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2277
|
+
return suspendResult;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
continue $sm;
|
|
2281
|
+
case 1:
|
|
2282
|
+
var this_0 = suspendResult;
|
|
2283
|
+
var tmp_0 = getKClass(Organization);
|
|
2284
|
+
var tmp_1 = null instanceof Organization;
|
|
2285
|
+
var tmp_2;
|
|
2286
|
+
try {
|
|
2287
|
+
tmp_2 = createKType(getKClass(Organization), arrayOf([]), false);
|
|
2288
|
+
} catch ($p) {
|
|
2289
|
+
var tmp_3;
|
|
2290
|
+
if ($p instanceof Error) {
|
|
2291
|
+
var _unused_var__etf5q3 = $p;
|
|
2292
|
+
tmp_3 = null;
|
|
2293
|
+
} else {
|
|
2294
|
+
throw $p;
|
|
2295
|
+
}
|
|
2296
|
+
tmp_2 = tmp_3;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2300
|
+
case 2:
|
|
2301
|
+
throw this.exception_1;
|
|
2302
|
+
}
|
|
2303
|
+
} catch ($p_0) {
|
|
2304
|
+
var e = $p_0;
|
|
2305
|
+
if (this.exceptionState_1 === 2) {
|
|
2306
|
+
throw e;
|
|
2307
|
+
} else {
|
|
2308
|
+
this.state_1 = this.exceptionState_1;
|
|
2309
|
+
this.exception_1 = e;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
while (true);
|
|
2537
2313
|
};
|
|
2538
|
-
|
|
2539
|
-
var tmp = this;
|
|
2314
|
+
function showOrganizationOperation(client, organizationId, fields) {
|
|
2540
2315
|
return promisify(function ($completion) {
|
|
2541
|
-
return
|
|
2316
|
+
return showOrganizationOperation_0(client, organizationId, fields, $completion);
|
|
2542
2317
|
});
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
tmp
|
|
2547
|
-
tmp.exception_1 = null;
|
|
2548
|
-
return tmp.doResume_5yljmg_k$();
|
|
2549
|
-
};
|
|
2550
|
-
protoOf(OrganizationApi).updateOrganizationEmployee_4uq1yf_k$ = function (organizationId, employeeId, updateEmployeeCommand, $completion) {
|
|
2551
|
-
var tmp = new $updateOrganizationEmployeeCOROUTINE$(this, organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
2318
|
+
}
|
|
2319
|
+
function showOrganizationOperation_0(client, organizationId, fields, $completion) {
|
|
2320
|
+
fields = fields === VOID ? null : fields;
|
|
2321
|
+
var tmp = new $showOrganizationOperationCOROUTINE$(client, organizationId, fields, $completion);
|
|
2552
2322
|
tmp.result_1 = Unit_instance;
|
|
2553
2323
|
tmp.exception_1 = null;
|
|
2554
2324
|
return tmp.doResume_5yljmg_k$();
|
|
2325
|
+
}
|
|
2326
|
+
function $showOrganizationOperationCOROUTINE$(client, organizationId, fields, resultContinuation) {
|
|
2327
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2328
|
+
this.client_1 = client;
|
|
2329
|
+
this.organizationId_1 = organizationId;
|
|
2330
|
+
this.fields_1 = fields;
|
|
2331
|
+
}
|
|
2332
|
+
protoOf($showOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2333
|
+
var suspendResult = this.result_1;
|
|
2334
|
+
$sm: do
|
|
2335
|
+
try {
|
|
2336
|
+
var tmp = this.state_1;
|
|
2337
|
+
switch (tmp) {
|
|
2338
|
+
case 0:
|
|
2339
|
+
this.exceptionState_1 = 2;
|
|
2340
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2341
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2342
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2343
|
+
if (this.fields_1 == null)
|
|
2344
|
+
null;
|
|
2345
|
+
else {
|
|
2346
|
+
var value = listOf_0(this.fields_1);
|
|
2347
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2351
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
2352
|
+
var tmp2_path = replace('/organizations/{organizationId}', '{organizationId}', this.organizationId_1.toString());
|
|
2353
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2354
|
+
this.state_1 = 1;
|
|
2355
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2356
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2357
|
+
return suspendResult;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
continue $sm;
|
|
2361
|
+
case 1:
|
|
2362
|
+
var this_0 = suspendResult;
|
|
2363
|
+
var tmp_0 = getKClass(Organization);
|
|
2364
|
+
var tmp_1 = null instanceof Organization;
|
|
2365
|
+
var tmp_2;
|
|
2366
|
+
try {
|
|
2367
|
+
tmp_2 = createKType(getKClass(Organization), arrayOf([]), false);
|
|
2368
|
+
} catch ($p) {
|
|
2369
|
+
var tmp_3;
|
|
2370
|
+
if ($p instanceof Error) {
|
|
2371
|
+
var _unused_var__etf5q3 = $p;
|
|
2372
|
+
tmp_3 = null;
|
|
2373
|
+
} else {
|
|
2374
|
+
throw $p;
|
|
2375
|
+
}
|
|
2376
|
+
tmp_2 = tmp_3;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2380
|
+
case 2:
|
|
2381
|
+
throw this.exception_1;
|
|
2382
|
+
}
|
|
2383
|
+
} catch ($p_0) {
|
|
2384
|
+
var e = $p_0;
|
|
2385
|
+
if (this.exceptionState_1 === 2) {
|
|
2386
|
+
throw e;
|
|
2387
|
+
} else {
|
|
2388
|
+
this.state_1 = this.exceptionState_1;
|
|
2389
|
+
this.exception_1 = e;
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
while (true);
|
|
2555
2393
|
};
|
|
2556
|
-
|
|
2557
|
-
var tmp = this;
|
|
2394
|
+
function updateOrganizationCompanyContactOperation(client, organizationId, employeeId, companyId) {
|
|
2558
2395
|
return promisify(function ($completion) {
|
|
2559
|
-
return
|
|
2396
|
+
return updateOrganizationCompanyContactOperation_0(client, organizationId, employeeId, companyId, $completion);
|
|
2560
2397
|
});
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
var tmp = new $
|
|
2398
|
+
}
|
|
2399
|
+
function updateOrganizationCompanyContactOperation_0(client, organizationId, employeeId, companyId, $completion) {
|
|
2400
|
+
var tmp = new $updateOrganizationCompanyContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, $completion);
|
|
2564
2401
|
tmp.result_1 = Unit_instance;
|
|
2565
2402
|
tmp.exception_1 = null;
|
|
2566
2403
|
return tmp.doResume_5yljmg_k$();
|
|
2404
|
+
}
|
|
2405
|
+
function $updateOrganizationCompanyContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, resultContinuation) {
|
|
2406
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2407
|
+
this.client_1 = client;
|
|
2408
|
+
this.organizationId_1 = organizationId;
|
|
2409
|
+
this.employeeId_1 = employeeId;
|
|
2410
|
+
this.companyId_1 = companyId;
|
|
2411
|
+
}
|
|
2412
|
+
protoOf($updateOrganizationCompanyContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2413
|
+
var suspendResult = this.result_1;
|
|
2414
|
+
$sm: do
|
|
2415
|
+
try {
|
|
2416
|
+
var tmp = this.state_1;
|
|
2417
|
+
switch (tmp) {
|
|
2418
|
+
case 0:
|
|
2419
|
+
this.exceptionState_1 = 2;
|
|
2420
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2421
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2422
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2423
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2424
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2425
|
+
var tmp1_path = replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString());
|
|
2426
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2427
|
+
this.state_1 = 1;
|
|
2428
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2429
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2430
|
+
return suspendResult;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
continue $sm;
|
|
2434
|
+
case 1:
|
|
2435
|
+
var this_0 = suspendResult;
|
|
2436
|
+
var tmp_0 = getKClass(Unit);
|
|
2437
|
+
var tmp_1 = null instanceof Unit;
|
|
2438
|
+
var tmp_2;
|
|
2439
|
+
try {
|
|
2440
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2441
|
+
} catch ($p) {
|
|
2442
|
+
var tmp_3;
|
|
2443
|
+
if ($p instanceof Error) {
|
|
2444
|
+
var _unused_var__etf5q3 = $p;
|
|
2445
|
+
tmp_3 = null;
|
|
2446
|
+
} else {
|
|
2447
|
+
throw $p;
|
|
2448
|
+
}
|
|
2449
|
+
tmp_2 = tmp_3;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2453
|
+
case 2:
|
|
2454
|
+
throw this.exception_1;
|
|
2455
|
+
}
|
|
2456
|
+
} catch ($p_0) {
|
|
2457
|
+
var e = $p_0;
|
|
2458
|
+
if (this.exceptionState_1 === 2) {
|
|
2459
|
+
throw e;
|
|
2460
|
+
} else {
|
|
2461
|
+
this.state_1 = this.exceptionState_1;
|
|
2462
|
+
this.exception_1 = e;
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
while (true);
|
|
2567
2466
|
};
|
|
2568
|
-
|
|
2569
|
-
|
|
2467
|
+
function updateOrganizationEmployeeOperation(client, organizationId, employeeId, updateEmployeeCommand) {
|
|
2468
|
+
return promisify(function ($completion) {
|
|
2469
|
+
return updateOrganizationEmployeeOperation_0(client, organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
function updateOrganizationEmployeeOperation_0(client, organizationId, employeeId, updateEmployeeCommand, $completion) {
|
|
2473
|
+
var tmp = new $updateOrganizationEmployeeOperationCOROUTINE$(client, organizationId, employeeId, updateEmployeeCommand, $completion);
|
|
2570
2474
|
tmp.result_1 = Unit_instance;
|
|
2571
2475
|
tmp.exception_1 = null;
|
|
2572
2476
|
return tmp.doResume_5yljmg_k$();
|
|
2477
|
+
}
|
|
2478
|
+
function $updateOrganizationEmployeeOperationCOROUTINE$(client, organizationId, employeeId, updateEmployeeCommand, resultContinuation) {
|
|
2479
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2480
|
+
this.client_1 = client;
|
|
2481
|
+
this.organizationId_1 = organizationId;
|
|
2482
|
+
this.employeeId_1 = employeeId;
|
|
2483
|
+
this.updateEmployeeCommand_1 = updateEmployeeCommand;
|
|
2484
|
+
}
|
|
2485
|
+
protoOf($updateOrganizationEmployeeOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2486
|
+
var suspendResult = this.result_1;
|
|
2487
|
+
$sm: do
|
|
2488
|
+
try {
|
|
2489
|
+
var tmp = this.state_1;
|
|
2490
|
+
switch (tmp) {
|
|
2491
|
+
case 0:
|
|
2492
|
+
this.exceptionState_1 = 2;
|
|
2493
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2494
|
+
var localVariableBody = this.updateEmployeeCommand_1;
|
|
2495
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2496
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2497
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2498
|
+
var tmp1_path = replace(replace('/organizations/{organizationId}/employees/{employeeId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString());
|
|
2499
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2500
|
+
this.state_1 = 1;
|
|
2501
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2502
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2503
|
+
return suspendResult;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
continue $sm;
|
|
2507
|
+
case 1:
|
|
2508
|
+
var this_0 = suspendResult;
|
|
2509
|
+
var tmp_0 = getKClass(OrganizationEmployee);
|
|
2510
|
+
var tmp_1 = null instanceof OrganizationEmployee;
|
|
2511
|
+
var tmp_2;
|
|
2512
|
+
try {
|
|
2513
|
+
tmp_2 = createKType(getKClass(OrganizationEmployee), arrayOf([]), false);
|
|
2514
|
+
} catch ($p) {
|
|
2515
|
+
var tmp_3;
|
|
2516
|
+
if ($p instanceof Error) {
|
|
2517
|
+
var _unused_var__etf5q3 = $p;
|
|
2518
|
+
tmp_3 = null;
|
|
2519
|
+
} else {
|
|
2520
|
+
throw $p;
|
|
2521
|
+
}
|
|
2522
|
+
tmp_2 = tmp_3;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2526
|
+
case 2:
|
|
2527
|
+
throw this.exception_1;
|
|
2528
|
+
}
|
|
2529
|
+
} catch ($p_0) {
|
|
2530
|
+
var e = $p_0;
|
|
2531
|
+
if (this.exceptionState_1 === 2) {
|
|
2532
|
+
throw e;
|
|
2533
|
+
} else {
|
|
2534
|
+
this.state_1 = this.exceptionState_1;
|
|
2535
|
+
this.exception_1 = e;
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
while (true);
|
|
2573
2539
|
};
|
|
2574
|
-
|
|
2575
|
-
var tmp = this;
|
|
2540
|
+
function updateOrganizationOperation(client, organizationId, updateOrganizationCommand) {
|
|
2576
2541
|
return promisify(function ($completion) {
|
|
2577
|
-
return
|
|
2542
|
+
return updateOrganizationOperation_0(client, organizationId, updateOrganizationCommand, $completion);
|
|
2578
2543
|
});
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
var tmp = new $
|
|
2544
|
+
}
|
|
2545
|
+
function updateOrganizationOperation_0(client, organizationId, updateOrganizationCommand, $completion) {
|
|
2546
|
+
var tmp = new $updateOrganizationOperationCOROUTINE$(client, organizationId, updateOrganizationCommand, $completion);
|
|
2582
2547
|
tmp.result_1 = Unit_instance;
|
|
2583
2548
|
tmp.exception_1 = null;
|
|
2584
2549
|
return tmp.doResume_5yljmg_k$();
|
|
2550
|
+
}
|
|
2551
|
+
function $updateOrganizationOperationCOROUTINE$(client, organizationId, updateOrganizationCommand, resultContinuation) {
|
|
2552
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2553
|
+
this.client_1 = client;
|
|
2554
|
+
this.organizationId_1 = organizationId;
|
|
2555
|
+
this.updateOrganizationCommand_1 = updateOrganizationCommand;
|
|
2556
|
+
}
|
|
2557
|
+
protoOf($updateOrganizationOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2558
|
+
var suspendResult = this.result_1;
|
|
2559
|
+
$sm: do
|
|
2560
|
+
try {
|
|
2561
|
+
var tmp = this.state_1;
|
|
2562
|
+
switch (tmp) {
|
|
2563
|
+
case 0:
|
|
2564
|
+
this.exceptionState_1 = 2;
|
|
2565
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2566
|
+
var localVariableBody = this.updateOrganizationCommand_1;
|
|
2567
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2568
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2569
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2570
|
+
var tmp1_path = replace('/organizations/{organizationId}', '{organizationId}', this.organizationId_1.toString());
|
|
2571
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2572
|
+
this.state_1 = 1;
|
|
2573
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2574
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2575
|
+
return suspendResult;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
continue $sm;
|
|
2579
|
+
case 1:
|
|
2580
|
+
var this_0 = suspendResult;
|
|
2581
|
+
var tmp_0 = getKClass(Unit);
|
|
2582
|
+
var tmp_1 = null instanceof Unit;
|
|
2583
|
+
var tmp_2;
|
|
2584
|
+
try {
|
|
2585
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2586
|
+
} catch ($p) {
|
|
2587
|
+
var tmp_3;
|
|
2588
|
+
if ($p instanceof Error) {
|
|
2589
|
+
var _unused_var__etf5q3 = $p;
|
|
2590
|
+
tmp_3 = null;
|
|
2591
|
+
} else {
|
|
2592
|
+
throw $p;
|
|
2593
|
+
}
|
|
2594
|
+
tmp_2 = tmp_3;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2598
|
+
case 2:
|
|
2599
|
+
throw this.exception_1;
|
|
2600
|
+
}
|
|
2601
|
+
} catch ($p_0) {
|
|
2602
|
+
var e = $p_0;
|
|
2603
|
+
if (this.exceptionState_1 === 2) {
|
|
2604
|
+
throw e;
|
|
2605
|
+
} else {
|
|
2606
|
+
this.state_1 = this.exceptionState_1;
|
|
2607
|
+
this.exception_1 = e;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
while (true);
|
|
2585
2611
|
};
|
|
2586
|
-
|
|
2587
|
-
|
|
2612
|
+
function updateOrganizationReservationsOperation(client, organizationId, updateOrganizationReservationsCommand) {
|
|
2613
|
+
return promisify(function ($completion) {
|
|
2614
|
+
return updateOrganizationReservationsOperation_0(client, organizationId, updateOrganizationReservationsCommand, $completion);
|
|
2615
|
+
});
|
|
2616
|
+
}
|
|
2617
|
+
function updateOrganizationReservationsOperation_0(client, organizationId, updateOrganizationReservationsCommand, $completion) {
|
|
2618
|
+
var tmp = new $updateOrganizationReservationsOperationCOROUTINE$(client, organizationId, updateOrganizationReservationsCommand, $completion);
|
|
2588
2619
|
tmp.result_1 = Unit_instance;
|
|
2589
2620
|
tmp.exception_1 = null;
|
|
2590
2621
|
return tmp.doResume_5yljmg_k$();
|
|
2622
|
+
}
|
|
2623
|
+
function $updateOrganizationReservationsOperationCOROUTINE$(client, organizationId, updateOrganizationReservationsCommand, resultContinuation) {
|
|
2624
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2625
|
+
this.client_1 = client;
|
|
2626
|
+
this.organizationId_1 = organizationId;
|
|
2627
|
+
this.updateOrganizationReservationsCommand_1 = updateOrganizationReservationsCommand;
|
|
2628
|
+
}
|
|
2629
|
+
protoOf($updateOrganizationReservationsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2630
|
+
var suspendResult = this.result_1;
|
|
2631
|
+
$sm: do
|
|
2632
|
+
try {
|
|
2633
|
+
var tmp = this.state_1;
|
|
2634
|
+
switch (tmp) {
|
|
2635
|
+
case 0:
|
|
2636
|
+
this.exceptionState_1 = 2;
|
|
2637
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2638
|
+
var localVariableBody = this.updateOrganizationReservationsCommand_1;
|
|
2639
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2640
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2641
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2642
|
+
var tmp1_path = replace('/organizations/{organizationId}/reservations', '{organizationId}', this.organizationId_1.toString());
|
|
2643
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2644
|
+
this.state_1 = 1;
|
|
2645
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2646
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2647
|
+
return suspendResult;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
continue $sm;
|
|
2651
|
+
case 1:
|
|
2652
|
+
var this_0 = suspendResult;
|
|
2653
|
+
var tmp_0 = getKClass(Organization);
|
|
2654
|
+
var tmp_1 = null instanceof Organization;
|
|
2655
|
+
var tmp_2;
|
|
2656
|
+
try {
|
|
2657
|
+
tmp_2 = createKType(getKClass(Organization), arrayOf([]), false);
|
|
2658
|
+
} catch ($p) {
|
|
2659
|
+
var tmp_3;
|
|
2660
|
+
if ($p instanceof Error) {
|
|
2661
|
+
var _unused_var__etf5q3 = $p;
|
|
2662
|
+
tmp_3 = null;
|
|
2663
|
+
} else {
|
|
2664
|
+
throw $p;
|
|
2665
|
+
}
|
|
2666
|
+
tmp_2 = tmp_3;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2670
|
+
case 2:
|
|
2671
|
+
throw this.exception_1;
|
|
2672
|
+
}
|
|
2673
|
+
} catch ($p_0) {
|
|
2674
|
+
var e = $p_0;
|
|
2675
|
+
if (this.exceptionState_1 === 2) {
|
|
2676
|
+
throw e;
|
|
2677
|
+
} else {
|
|
2678
|
+
this.state_1 = this.exceptionState_1;
|
|
2679
|
+
this.exception_1 = e;
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
while (true);
|
|
2591
2683
|
};
|
|
2592
|
-
|
|
2593
|
-
var tmp = this;
|
|
2684
|
+
function updateOrganizationSectionContactOperation(client, organizationId, employeeId, companyId, sectionId) {
|
|
2594
2685
|
return promisify(function ($completion) {
|
|
2595
|
-
return
|
|
2686
|
+
return updateOrganizationSectionContactOperation_0(client, organizationId, employeeId, companyId, sectionId, $completion);
|
|
2596
2687
|
});
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
var tmp = new $
|
|
2688
|
+
}
|
|
2689
|
+
function updateOrganizationSectionContactOperation_0(client, organizationId, employeeId, companyId, sectionId, $completion) {
|
|
2690
|
+
var tmp = new $updateOrganizationSectionContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, sectionId, $completion);
|
|
2600
2691
|
tmp.result_1 = Unit_instance;
|
|
2601
2692
|
tmp.exception_1 = null;
|
|
2602
2693
|
return tmp.doResume_5yljmg_k$();
|
|
2603
|
-
};
|
|
2604
|
-
function OrganizationApi() {
|
|
2605
2694
|
}
|
|
2695
|
+
function $updateOrganizationSectionContactOperationCOROUTINE$(client, organizationId, employeeId, companyId, sectionId, resultContinuation) {
|
|
2696
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2697
|
+
this.client_1 = client;
|
|
2698
|
+
this.organizationId_1 = organizationId;
|
|
2699
|
+
this.employeeId_1 = employeeId;
|
|
2700
|
+
this.companyId_1 = companyId;
|
|
2701
|
+
this.sectionId_1 = sectionId;
|
|
2702
|
+
}
|
|
2703
|
+
protoOf($updateOrganizationSectionContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2704
|
+
var suspendResult = this.result_1;
|
|
2705
|
+
$sm: do
|
|
2706
|
+
try {
|
|
2707
|
+
var tmp = this.state_1;
|
|
2708
|
+
switch (tmp) {
|
|
2709
|
+
case 0:
|
|
2710
|
+
this.exceptionState_1 = 2;
|
|
2711
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
2712
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
2713
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
2714
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
2715
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
2716
|
+
var tmp1_path = replace(replace(replace(replace('/organizations/{organizationId}/employees/{employeeId}/companies/{companyId}/sections/{sectionId}', '{organizationId}', this.organizationId_1.toString()), '{employeeId}', this.employeeId_1.toString()), '{companyId}', this.companyId_1.toString()), '{sectionId}', this.sectionId_1.toString());
|
|
2717
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
2718
|
+
this.state_1 = 1;
|
|
2719
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
2720
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2721
|
+
return suspendResult;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
continue $sm;
|
|
2725
|
+
case 1:
|
|
2726
|
+
var this_0 = suspendResult;
|
|
2727
|
+
var tmp_0 = getKClass(Unit);
|
|
2728
|
+
var tmp_1 = null instanceof Unit;
|
|
2729
|
+
var tmp_2;
|
|
2730
|
+
try {
|
|
2731
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2732
|
+
} catch ($p) {
|
|
2733
|
+
var tmp_3;
|
|
2734
|
+
if ($p instanceof Error) {
|
|
2735
|
+
var _unused_var__etf5q3 = $p;
|
|
2736
|
+
tmp_3 = null;
|
|
2737
|
+
} else {
|
|
2738
|
+
throw $p;
|
|
2739
|
+
}
|
|
2740
|
+
tmp_2 = tmp_3;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
2744
|
+
case 2:
|
|
2745
|
+
throw this.exception_1;
|
|
2746
|
+
}
|
|
2747
|
+
} catch ($p_0) {
|
|
2748
|
+
var e = $p_0;
|
|
2749
|
+
if (this.exceptionState_1 === 2) {
|
|
2750
|
+
throw e;
|
|
2751
|
+
} else {
|
|
2752
|
+
this.state_1 = this.exceptionState_1;
|
|
2753
|
+
this.exception_1 = e;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
while (true);
|
|
2757
|
+
};
|
|
2606
2758
|
function Companion() {
|
|
2607
2759
|
}
|
|
2608
2760
|
var Companion_instance;
|
|
@@ -4645,6 +4797,23 @@ OrganizationApi.createWithClient = createWithClient;
|
|
|
4645
4797
|
export {
|
|
4646
4798
|
organizationApi as organizationApi,
|
|
4647
4799
|
OrganizationApi as OrganizationApi,
|
|
4800
|
+
createOrganizationEmployeeOperation as createOrganizationEmployeeOperation,
|
|
4801
|
+
deleteOrganizationCompanyContactOperation as deleteOrganizationCompanyContactOperation,
|
|
4802
|
+
deleteOrganizationEmployeeOperation as deleteOrganizationEmployeeOperation,
|
|
4803
|
+
deleteOrganizationFromSAMOperation as deleteOrganizationFromSAMOperation,
|
|
4804
|
+
deleteOrganizationRoleOperation as deleteOrganizationRoleOperation,
|
|
4805
|
+
deleteOrganizationSectionContactOperation as deleteOrganizationSectionContactOperation,
|
|
4806
|
+
indexOrganizationsForEditOperation as indexOrganizationsForEditOperation,
|
|
4807
|
+
indexOrganizationsOperation as indexOrganizationsOperation,
|
|
4808
|
+
massUpdateOrganizationOperation as massUpdateOrganizationOperation,
|
|
4809
|
+
searchOrganizationsOperation as searchOrganizationsOperation,
|
|
4810
|
+
showOrganizationByOrganizationnummerOperation as showOrganizationByOrganizationnummerOperation,
|
|
4811
|
+
showOrganizationOperation as showOrganizationOperation,
|
|
4812
|
+
updateOrganizationCompanyContactOperation as updateOrganizationCompanyContactOperation,
|
|
4813
|
+
updateOrganizationEmployeeOperation as updateOrganizationEmployeeOperation,
|
|
4814
|
+
updateOrganizationOperation as updateOrganizationOperation,
|
|
4815
|
+
updateOrganizationReservationsOperation as updateOrganizationReservationsOperation,
|
|
4816
|
+
updateOrganizationSectionContactOperation as updateOrganizationSectionContactOperation,
|
|
4648
4817
|
CreateEmployeeCommand as CreateEmployeeCommand,
|
|
4649
4818
|
MassEditOrganization as MassEditOrganization,
|
|
4650
4819
|
MassEditOrganizationCommand as MassEditOrganizationCommand,
|