@solibo/home-api 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.mjs +4 -8
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +2 -2
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +716 -2
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
protoOf180f3jzyo7rfj as protoOf,
|
|
5
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
6
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
8
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
9
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
10
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
7
13
|
listOf1jh22dvmctj1r as listOf,
|
|
8
14
|
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
9
15
|
replace3le3ie7l9k8aq as replace,
|
|
10
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
11
16
|
Unitkvevlwgzwiuc as Unit,
|
|
12
17
|
arrayOf1akklvh2at202 as arrayOf,
|
|
13
18
|
createKType31ecntyyaay3k as createKType,
|
|
14
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
15
|
-
await3n7kedgocftsv as await_0,
|
|
16
19
|
listOfvhqybd2zx248 as listOf_0,
|
|
17
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
18
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
19
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
21
21
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
22
22
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
44
44
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
45
45
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
46
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
46
47
|
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
47
48
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
48
49
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
@@ -51,7 +52,6 @@ import {
|
|
|
51
52
|
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
52
53
|
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
53
54
|
toMultiValue5gsdsvx60e2f as toMultiValue,
|
|
54
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
55
55
|
Companion_getInstance17vrvbsf9z29l as Companion_getInstance_0,
|
|
56
56
|
$serializer_getInstance2u6e9d36lcolu as $serializer_getInstance,
|
|
57
57
|
$serializer_getInstance2ubvlf5l752ie as $serializer_getInstance_0,
|
|
@@ -82,23 +82,23 @@ import {
|
|
|
82
82
|
var imul = Math.imul;
|
|
83
83
|
//endregion
|
|
84
84
|
//region block: pre-declaration
|
|
85
|
-
initMetadataForCoroutine($completeTaskCOROUTINE$, CoroutineImpl);
|
|
86
85
|
initMetadataForCoroutine($completeTask$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
87
|
-
initMetadataForCoroutine($createMultipleTasksCOROUTINE$, CoroutineImpl);
|
|
88
86
|
initMetadataForCoroutine($createMultipleTasks$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
89
|
-
initMetadataForCoroutine($createTaskCOROUTINE$, CoroutineImpl);
|
|
90
87
|
initMetadataForCoroutine($createTask$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
91
|
-
initMetadataForCoroutine($deleteTaskCOROUTINE$, CoroutineImpl);
|
|
92
88
|
initMetadataForCoroutine($deleteTask$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
93
|
-
initMetadataForCoroutine($indexTasksCOROUTINE$, CoroutineImpl);
|
|
94
89
|
initMetadataForCoroutine($indexTasks$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForCoroutine($indexTasksUserCOROUTINE$, CoroutineImpl);
|
|
96
90
|
initMetadataForCoroutine($indexTasksUser$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
97
|
-
initMetadataForCoroutine($unCompleteTaskCOROUTINE$, CoroutineImpl);
|
|
98
91
|
initMetadataForCoroutine($unCompleteTask$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
99
|
-
initMetadataForCoroutine($updateTaskCOROUTINE$, CoroutineImpl);
|
|
100
92
|
initMetadataForCoroutine($updateTask$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
101
93
|
initMetadataForClass(TaskApi, 'TaskApi', create, ApiClient, VOID, [3, 1, 2, 10]);
|
|
94
|
+
initMetadataForCoroutine($completeTaskOperationCOROUTINE$, CoroutineImpl);
|
|
95
|
+
initMetadataForCoroutine($createMultipleTasksOperationCOROUTINE$, CoroutineImpl);
|
|
96
|
+
initMetadataForCoroutine($createTaskOperationCOROUTINE$, CoroutineImpl);
|
|
97
|
+
initMetadataForCoroutine($deleteTaskOperationCOROUTINE$, CoroutineImpl);
|
|
98
|
+
initMetadataForCoroutine($indexTasksOperationCOROUTINE$, CoroutineImpl);
|
|
99
|
+
initMetadataForCoroutine($indexTasksUserOperationCOROUTINE$, CoroutineImpl);
|
|
100
|
+
initMetadataForCoroutine($unCompleteTaskOperationCOROUTINE$, CoroutineImpl);
|
|
101
|
+
initMetadataForCoroutine($updateTaskOperationCOROUTINE$, CoroutineImpl);
|
|
102
102
|
initMetadataForCompanion(Companion);
|
|
103
103
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
104
104
|
initMetadataForClass(BulkImportTaskCommand, 'BulkImportTaskCommand', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
@@ -164,68 +164,6 @@ function TaskApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
164
164
|
function createWithClient(baseUrl, httpClient) {
|
|
165
165
|
return TaskApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(TaskApi)));
|
|
166
166
|
}
|
|
167
|
-
function $completeTaskCOROUTINE$(_this__u8e3s4, companyId, taskId, completeTaskCommand, resultContinuation) {
|
|
168
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
169
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
170
|
-
this.companyId_1 = companyId;
|
|
171
|
-
this.taskId_1 = taskId;
|
|
172
|
-
this.completeTaskCommand_1 = completeTaskCommand;
|
|
173
|
-
}
|
|
174
|
-
protoOf($completeTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
175
|
-
var suspendResult = this.result_1;
|
|
176
|
-
$sm: do
|
|
177
|
-
try {
|
|
178
|
-
var tmp = this.state_1;
|
|
179
|
-
switch (tmp) {
|
|
180
|
-
case 0:
|
|
181
|
-
this.exceptionState_1 = 2;
|
|
182
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
183
|
-
var localVariableBody = this.completeTaskCommand_1;
|
|
184
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
185
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
186
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
187
|
-
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}/complete', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
188
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
189
|
-
this.state_1 = 1;
|
|
190
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
191
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
192
|
-
return suspendResult;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
continue $sm;
|
|
196
|
-
case 1:
|
|
197
|
-
var this_0 = suspendResult;
|
|
198
|
-
var tmp_0 = getKClass(Unit);
|
|
199
|
-
var tmp_1 = null instanceof Unit;
|
|
200
|
-
var tmp_2;
|
|
201
|
-
try {
|
|
202
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
203
|
-
} catch ($p) {
|
|
204
|
-
var tmp_3;
|
|
205
|
-
if ($p instanceof Error) {
|
|
206
|
-
var _unused_var__etf5q3 = $p;
|
|
207
|
-
tmp_3 = null;
|
|
208
|
-
} else {
|
|
209
|
-
throw $p;
|
|
210
|
-
}
|
|
211
|
-
tmp_2 = tmp_3;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
215
|
-
case 2:
|
|
216
|
-
throw this.exception_1;
|
|
217
|
-
}
|
|
218
|
-
} catch ($p_0) {
|
|
219
|
-
var e = $p_0;
|
|
220
|
-
if (this.exceptionState_1 === 2) {
|
|
221
|
-
throw e;
|
|
222
|
-
} else {
|
|
223
|
-
this.state_1 = this.exceptionState_1;
|
|
224
|
-
this.exception_1 = e;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
while (true);
|
|
228
|
-
};
|
|
229
167
|
function $completeTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, taskId, completeTaskCommand, resultContinuation) {
|
|
230
168
|
CoroutineImpl.call(this, resultContinuation);
|
|
231
169
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -281,65 +219,6 @@ protoOf($completeTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
281
219
|
}
|
|
282
220
|
while (true);
|
|
283
221
|
};
|
|
284
|
-
function $createMultipleTasksCOROUTINE$(_this__u8e3s4, bulkImportTasksCommand, resultContinuation) {
|
|
285
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
286
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
287
|
-
this.bulkImportTasksCommand_1 = bulkImportTasksCommand;
|
|
288
|
-
}
|
|
289
|
-
protoOf($createMultipleTasksCOROUTINE$).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 = this.bulkImportTasksCommand_1;
|
|
299
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
300
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
301
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
302
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/companies/tasks/bulkImport', localVariableHeaders, VOID, localVariableQuery, true);
|
|
303
|
-
this.state_1 = 1;
|
|
304
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
305
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
306
|
-
return suspendResult;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
continue $sm;
|
|
310
|
-
case 1:
|
|
311
|
-
var this_0 = suspendResult;
|
|
312
|
-
var tmp_0 = getKClass(BulkImportTasksResult);
|
|
313
|
-
var tmp_1 = null instanceof BulkImportTasksResult;
|
|
314
|
-
var tmp_2;
|
|
315
|
-
try {
|
|
316
|
-
tmp_2 = createKType(getKClass(BulkImportTasksResult), arrayOf([]), false);
|
|
317
|
-
} catch ($p) {
|
|
318
|
-
var tmp_3;
|
|
319
|
-
if ($p instanceof Error) {
|
|
320
|
-
var _unused_var__etf5q3 = $p;
|
|
321
|
-
tmp_3 = null;
|
|
322
|
-
} else {
|
|
323
|
-
throw $p;
|
|
324
|
-
}
|
|
325
|
-
tmp_2 = tmp_3;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
329
|
-
case 2:
|
|
330
|
-
throw this.exception_1;
|
|
331
|
-
}
|
|
332
|
-
} catch ($p_0) {
|
|
333
|
-
var e = $p_0;
|
|
334
|
-
if (this.exceptionState_1 === 2) {
|
|
335
|
-
throw e;
|
|
336
|
-
} else {
|
|
337
|
-
this.state_1 = this.exceptionState_1;
|
|
338
|
-
this.exception_1 = e;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
while (true);
|
|
342
|
-
};
|
|
343
222
|
function $createMultipleTasks$suspendBridgeCOROUTINE$(_this__u8e3s4, bulkImportTasksCommand, resultContinuation) {
|
|
344
223
|
CoroutineImpl.call(this, resultContinuation);
|
|
345
224
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -393,67 +272,6 @@ protoOf($createMultipleTasks$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
393
272
|
}
|
|
394
273
|
while (true);
|
|
395
274
|
};
|
|
396
|
-
function $createTaskCOROUTINE$(_this__u8e3s4, companyId, createTaskCommand, resultContinuation) {
|
|
397
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
398
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
399
|
-
this.companyId_1 = companyId;
|
|
400
|
-
this.createTaskCommand_1 = createTaskCommand;
|
|
401
|
-
}
|
|
402
|
-
protoOf($createTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
403
|
-
var suspendResult = this.result_1;
|
|
404
|
-
$sm: do
|
|
405
|
-
try {
|
|
406
|
-
var tmp = this.state_1;
|
|
407
|
-
switch (tmp) {
|
|
408
|
-
case 0:
|
|
409
|
-
this.exceptionState_1 = 2;
|
|
410
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
411
|
-
var localVariableBody = this.createTaskCommand_1;
|
|
412
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
413
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
414
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
415
|
-
var tmp1_path = replace('/companies/{companyId}/tasks', '{companyId}', this.companyId_1.toString());
|
|
416
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
417
|
-
this.state_1 = 1;
|
|
418
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
419
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
420
|
-
return suspendResult;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
continue $sm;
|
|
424
|
-
case 1:
|
|
425
|
-
var this_0 = suspendResult;
|
|
426
|
-
var tmp_0 = getKClass(Task);
|
|
427
|
-
var tmp_1 = null instanceof Task;
|
|
428
|
-
var tmp_2;
|
|
429
|
-
try {
|
|
430
|
-
tmp_2 = createKType(getKClass(Task), arrayOf([]), false);
|
|
431
|
-
} catch ($p) {
|
|
432
|
-
var tmp_3;
|
|
433
|
-
if ($p instanceof Error) {
|
|
434
|
-
var _unused_var__etf5q3 = $p;
|
|
435
|
-
tmp_3 = null;
|
|
436
|
-
} else {
|
|
437
|
-
throw $p;
|
|
438
|
-
}
|
|
439
|
-
tmp_2 = tmp_3;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
443
|
-
case 2:
|
|
444
|
-
throw this.exception_1;
|
|
445
|
-
}
|
|
446
|
-
} catch ($p_0) {
|
|
447
|
-
var e = $p_0;
|
|
448
|
-
if (this.exceptionState_1 === 2) {
|
|
449
|
-
throw e;
|
|
450
|
-
} else {
|
|
451
|
-
this.state_1 = this.exceptionState_1;
|
|
452
|
-
this.exception_1 = e;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
while (true);
|
|
456
|
-
};
|
|
457
275
|
function $createTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createTaskCommand, resultContinuation) {
|
|
458
276
|
CoroutineImpl.call(this, resultContinuation);
|
|
459
277
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -508,67 +326,6 @@ protoOf($createTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
508
326
|
}
|
|
509
327
|
while (true);
|
|
510
328
|
};
|
|
511
|
-
function $deleteTaskCOROUTINE$(_this__u8e3s4, companyId, taskId, resultContinuation) {
|
|
512
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
513
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
514
|
-
this.companyId_1 = companyId;
|
|
515
|
-
this.taskId_1 = taskId;
|
|
516
|
-
}
|
|
517
|
-
protoOf($deleteTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
518
|
-
var suspendResult = this.result_1;
|
|
519
|
-
$sm: do
|
|
520
|
-
try {
|
|
521
|
-
var tmp = this.state_1;
|
|
522
|
-
switch (tmp) {
|
|
523
|
-
case 0:
|
|
524
|
-
this.exceptionState_1 = 2;
|
|
525
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
526
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
527
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
528
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
529
|
-
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
530
|
-
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
531
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
532
|
-
this.state_1 = 1;
|
|
533
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
534
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
535
|
-
return suspendResult;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
continue $sm;
|
|
539
|
-
case 1:
|
|
540
|
-
var this_0 = suspendResult;
|
|
541
|
-
var tmp_0 = getKClass(Unit);
|
|
542
|
-
var tmp_1 = null instanceof Unit;
|
|
543
|
-
var tmp_2;
|
|
544
|
-
try {
|
|
545
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
546
|
-
} catch ($p) {
|
|
547
|
-
var tmp_3;
|
|
548
|
-
if ($p instanceof Error) {
|
|
549
|
-
var _unused_var__etf5q3 = $p;
|
|
550
|
-
tmp_3 = null;
|
|
551
|
-
} else {
|
|
552
|
-
throw $p;
|
|
553
|
-
}
|
|
554
|
-
tmp_2 = tmp_3;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
558
|
-
case 2:
|
|
559
|
-
throw this.exception_1;
|
|
560
|
-
}
|
|
561
|
-
} catch ($p_0) {
|
|
562
|
-
var e = $p_0;
|
|
563
|
-
if (this.exceptionState_1 === 2) {
|
|
564
|
-
throw e;
|
|
565
|
-
} else {
|
|
566
|
-
this.state_1 = this.exceptionState_1;
|
|
567
|
-
this.exception_1 = e;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
while (true);
|
|
571
|
-
};
|
|
572
329
|
function $deleteTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, taskId, resultContinuation) {
|
|
573
330
|
CoroutineImpl.call(this, resultContinuation);
|
|
574
331
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -623,7 +380,7 @@ protoOf($deleteTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
623
380
|
}
|
|
624
381
|
while (true);
|
|
625
382
|
};
|
|
626
|
-
function $
|
|
383
|
+
function $indexTasks$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
627
384
|
CoroutineImpl.call(this, resultContinuation);
|
|
628
385
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
629
386
|
this.companyId_1 = companyId;
|
|
@@ -637,22 +394,709 @@ function $indexTasksCOROUTINE$(_this__u8e3s4, companyId, search, completed, resp
|
|
|
637
394
|
this.autoPaginate_1 = autoPaginate;
|
|
638
395
|
this.count_1 = count;
|
|
639
396
|
}
|
|
640
|
-
protoOf($
|
|
397
|
+
protoOf($indexTasks$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
641
398
|
var suspendResult = this.result_1;
|
|
642
399
|
$sm: do
|
|
643
400
|
try {
|
|
644
401
|
var tmp = this.state_1;
|
|
645
402
|
switch (tmp) {
|
|
646
403
|
case 0:
|
|
647
|
-
this.exceptionState_1 =
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
404
|
+
this.exceptionState_1 = 4;
|
|
405
|
+
if (this._this__u8e3s4__1.indexTasks === protoOf(TaskApi).indexTasks) {
|
|
406
|
+
this.state_1 = 2;
|
|
407
|
+
suspendResult = this._this__u8e3s4__1.indexTasks$default_lxtpm0_k$(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
408
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
409
|
+
return suspendResult;
|
|
410
|
+
}
|
|
411
|
+
continue $sm;
|
|
412
|
+
} else {
|
|
413
|
+
this.state_1 = 1;
|
|
414
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexTasks(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
415
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
416
|
+
return suspendResult;
|
|
417
|
+
}
|
|
418
|
+
continue $sm;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
case 1:
|
|
422
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
423
|
+
this.state_1 = 3;
|
|
424
|
+
continue $sm;
|
|
425
|
+
case 2:
|
|
426
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
427
|
+
this.state_1 = 3;
|
|
428
|
+
continue $sm;
|
|
429
|
+
case 3:
|
|
430
|
+
return this.WHEN_RESULT0__1;
|
|
431
|
+
case 4:
|
|
432
|
+
throw this.exception_1;
|
|
433
|
+
}
|
|
434
|
+
} catch ($p) {
|
|
435
|
+
var e = $p;
|
|
436
|
+
if (this.exceptionState_1 === 4) {
|
|
437
|
+
throw e;
|
|
438
|
+
} else {
|
|
439
|
+
this.state_1 = this.exceptionState_1;
|
|
440
|
+
this.exception_1 = e;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
while (true);
|
|
444
|
+
};
|
|
445
|
+
function $indexTasksUser$suspendBridgeCOROUTINE$(_this__u8e3s4, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
446
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
447
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
448
|
+
this.search_1 = search;
|
|
449
|
+
this.companyIds_1 = companyIds;
|
|
450
|
+
this.completed_1 = completed;
|
|
451
|
+
this.responsibleId_1 = responsibleId;
|
|
452
|
+
this.dueDateFrom_1 = dueDateFrom;
|
|
453
|
+
this.dueDateTo_1 = dueDateTo;
|
|
454
|
+
this.fields_1 = fields;
|
|
455
|
+
this.pageToken_1 = pageToken;
|
|
456
|
+
this.autoPaginate_1 = autoPaginate;
|
|
457
|
+
this.count_1 = count;
|
|
458
|
+
}
|
|
459
|
+
protoOf($indexTasksUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
460
|
+
var suspendResult = this.result_1;
|
|
461
|
+
$sm: do
|
|
462
|
+
try {
|
|
463
|
+
var tmp = this.state_1;
|
|
464
|
+
switch (tmp) {
|
|
465
|
+
case 0:
|
|
466
|
+
this.exceptionState_1 = 4;
|
|
467
|
+
if (this._this__u8e3s4__1.indexTasksUser === protoOf(TaskApi).indexTasksUser) {
|
|
468
|
+
this.state_1 = 2;
|
|
469
|
+
suspendResult = this._this__u8e3s4__1.indexTasksUser$default_w8eger_k$(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
470
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
471
|
+
return suspendResult;
|
|
472
|
+
}
|
|
473
|
+
continue $sm;
|
|
474
|
+
} else {
|
|
475
|
+
this.state_1 = 1;
|
|
476
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexTasksUser(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
477
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
478
|
+
return suspendResult;
|
|
479
|
+
}
|
|
480
|
+
continue $sm;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
case 1:
|
|
484
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
485
|
+
this.state_1 = 3;
|
|
486
|
+
continue $sm;
|
|
487
|
+
case 2:
|
|
488
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
489
|
+
this.state_1 = 3;
|
|
490
|
+
continue $sm;
|
|
491
|
+
case 3:
|
|
492
|
+
return this.WHEN_RESULT0__1;
|
|
493
|
+
case 4:
|
|
494
|
+
throw this.exception_1;
|
|
495
|
+
}
|
|
496
|
+
} catch ($p) {
|
|
497
|
+
var e = $p;
|
|
498
|
+
if (this.exceptionState_1 === 4) {
|
|
499
|
+
throw e;
|
|
500
|
+
} else {
|
|
501
|
+
this.state_1 = this.exceptionState_1;
|
|
502
|
+
this.exception_1 = e;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
while (true);
|
|
506
|
+
};
|
|
507
|
+
function $unCompleteTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, taskId, resultContinuation) {
|
|
508
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
509
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
510
|
+
this.companyId_1 = companyId;
|
|
511
|
+
this.taskId_1 = taskId;
|
|
512
|
+
}
|
|
513
|
+
protoOf($unCompleteTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
514
|
+
var suspendResult = this.result_1;
|
|
515
|
+
$sm: do
|
|
516
|
+
try {
|
|
517
|
+
var tmp = this.state_1;
|
|
518
|
+
switch (tmp) {
|
|
519
|
+
case 0:
|
|
520
|
+
this.exceptionState_1 = 4;
|
|
521
|
+
if (this._this__u8e3s4__1.unCompleteTask === protoOf(TaskApi).unCompleteTask) {
|
|
522
|
+
this.state_1 = 2;
|
|
523
|
+
suspendResult = this._this__u8e3s4__1.unCompleteTask_fpvr83_k$(this.companyId_1, this.taskId_1, this);
|
|
524
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
525
|
+
return suspendResult;
|
|
526
|
+
}
|
|
527
|
+
continue $sm;
|
|
528
|
+
} else {
|
|
529
|
+
this.state_1 = 1;
|
|
530
|
+
suspendResult = await_0(this._this__u8e3s4__1.unCompleteTask(this.companyId_1, this.taskId_1), this);
|
|
531
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
532
|
+
return suspendResult;
|
|
533
|
+
}
|
|
534
|
+
continue $sm;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
case 1:
|
|
538
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
539
|
+
this.state_1 = 3;
|
|
540
|
+
continue $sm;
|
|
541
|
+
case 2:
|
|
542
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
543
|
+
this.state_1 = 3;
|
|
544
|
+
continue $sm;
|
|
545
|
+
case 3:
|
|
546
|
+
return this.WHEN_RESULT0__1;
|
|
547
|
+
case 4:
|
|
548
|
+
throw this.exception_1;
|
|
549
|
+
}
|
|
550
|
+
} catch ($p) {
|
|
551
|
+
var e = $p;
|
|
552
|
+
if (this.exceptionState_1 === 4) {
|
|
553
|
+
throw e;
|
|
554
|
+
} else {
|
|
555
|
+
this.state_1 = this.exceptionState_1;
|
|
556
|
+
this.exception_1 = e;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
while (true);
|
|
560
|
+
};
|
|
561
|
+
function $updateTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, taskId, updateTaskCommand, resultContinuation) {
|
|
562
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
563
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
564
|
+
this.companyId_1 = companyId;
|
|
565
|
+
this.taskId_1 = taskId;
|
|
566
|
+
this.updateTaskCommand_1 = updateTaskCommand;
|
|
567
|
+
}
|
|
568
|
+
protoOf($updateTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
569
|
+
var suspendResult = this.result_1;
|
|
570
|
+
$sm: do
|
|
571
|
+
try {
|
|
572
|
+
var tmp = this.state_1;
|
|
573
|
+
switch (tmp) {
|
|
574
|
+
case 0:
|
|
575
|
+
this.exceptionState_1 = 4;
|
|
576
|
+
if (this._this__u8e3s4__1.updateTask === protoOf(TaskApi).updateTask) {
|
|
577
|
+
this.state_1 = 2;
|
|
578
|
+
suspendResult = this._this__u8e3s4__1.updateTask_bd908y_k$(this.companyId_1, this.taskId_1, this.updateTaskCommand_1, this);
|
|
579
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
580
|
+
return suspendResult;
|
|
581
|
+
}
|
|
582
|
+
continue $sm;
|
|
583
|
+
} else {
|
|
584
|
+
this.state_1 = 1;
|
|
585
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateTask(this.companyId_1, this.taskId_1, this.updateTaskCommand_1), this);
|
|
586
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
587
|
+
return suspendResult;
|
|
588
|
+
}
|
|
589
|
+
continue $sm;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
case 1:
|
|
593
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
594
|
+
this.state_1 = 3;
|
|
595
|
+
continue $sm;
|
|
596
|
+
case 2:
|
|
597
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
598
|
+
this.state_1 = 3;
|
|
599
|
+
continue $sm;
|
|
600
|
+
case 3:
|
|
601
|
+
return this.WHEN_RESULT0__1;
|
|
602
|
+
case 4:
|
|
603
|
+
throw this.exception_1;
|
|
604
|
+
}
|
|
605
|
+
} catch ($p) {
|
|
606
|
+
var e = $p;
|
|
607
|
+
if (this.exceptionState_1 === 4) {
|
|
608
|
+
throw e;
|
|
609
|
+
} else {
|
|
610
|
+
this.state_1 = this.exceptionState_1;
|
|
611
|
+
this.exception_1 = e;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
while (true);
|
|
615
|
+
};
|
|
616
|
+
protoOf(TaskApi).completeTask_h9y8r2_k$ = function (companyId, taskId, completeTaskCommand, $completion) {
|
|
617
|
+
return completeTaskOperation_0(this, companyId, taskId, completeTaskCommand, $completion);
|
|
618
|
+
};
|
|
619
|
+
protoOf(TaskApi).completeTask = function (companyId, taskId, completeTaskCommand) {
|
|
620
|
+
var tmp = this;
|
|
621
|
+
return promisify(function ($completion) {
|
|
622
|
+
return tmp.completeTask_h9y8r2_k$(companyId, taskId, completeTaskCommand, $completion);
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
protoOf(TaskApi).completeTask$suspendBridge_l1mnpp_k$ = function (companyId, taskId, completeTaskCommand, $completion) {
|
|
626
|
+
var tmp = new $completeTask$suspendBridgeCOROUTINE$(this, companyId, taskId, completeTaskCommand, $completion);
|
|
627
|
+
tmp.result_1 = Unit_instance;
|
|
628
|
+
tmp.exception_1 = null;
|
|
629
|
+
return tmp.doResume_5yljmg_k$();
|
|
630
|
+
};
|
|
631
|
+
protoOf(TaskApi).createMultipleTasks_57v2km_k$ = function (bulkImportTasksCommand, $completion) {
|
|
632
|
+
return createMultipleTasksOperation_0(this, bulkImportTasksCommand, $completion);
|
|
633
|
+
};
|
|
634
|
+
protoOf(TaskApi).createMultipleTasks = function (bulkImportTasksCommand) {
|
|
635
|
+
var tmp = this;
|
|
636
|
+
return promisify(function ($completion) {
|
|
637
|
+
return tmp.createMultipleTasks_57v2km_k$(bulkImportTasksCommand, $completion);
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
protoOf(TaskApi).createMultipleTasks$suspendBridge_jthvuj_k$ = function (bulkImportTasksCommand, $completion) {
|
|
641
|
+
var tmp = new $createMultipleTasks$suspendBridgeCOROUTINE$(this, bulkImportTasksCommand, $completion);
|
|
642
|
+
tmp.result_1 = Unit_instance;
|
|
643
|
+
tmp.exception_1 = null;
|
|
644
|
+
return tmp.doResume_5yljmg_k$();
|
|
645
|
+
};
|
|
646
|
+
protoOf(TaskApi).createTask_8xm05i_k$ = function (companyId, createTaskCommand, $completion) {
|
|
647
|
+
return createTaskOperation_0(this, companyId, createTaskCommand, $completion);
|
|
648
|
+
};
|
|
649
|
+
protoOf(TaskApi).createTask = function (companyId, createTaskCommand) {
|
|
650
|
+
var tmp = this;
|
|
651
|
+
return promisify(function ($completion) {
|
|
652
|
+
return tmp.createTask_8xm05i_k$(companyId, createTaskCommand, $completion);
|
|
653
|
+
});
|
|
654
|
+
};
|
|
655
|
+
protoOf(TaskApi).createTask$suspendBridge_52oqjp_k$ = function (companyId, createTaskCommand, $completion) {
|
|
656
|
+
var tmp = new $createTask$suspendBridgeCOROUTINE$(this, companyId, createTaskCommand, $completion);
|
|
657
|
+
tmp.result_1 = Unit_instance;
|
|
658
|
+
tmp.exception_1 = null;
|
|
659
|
+
return tmp.doResume_5yljmg_k$();
|
|
660
|
+
};
|
|
661
|
+
protoOf(TaskApi).deleteTask_efker8_k$ = function (companyId, taskId, $completion) {
|
|
662
|
+
return deleteTaskOperation_0(this, companyId, taskId, $completion);
|
|
663
|
+
};
|
|
664
|
+
protoOf(TaskApi).deleteTask = function (companyId, taskId) {
|
|
665
|
+
var tmp = this;
|
|
666
|
+
return promisify(function ($completion) {
|
|
667
|
+
return tmp.deleteTask_efker8_k$(companyId, taskId, $completion);
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
protoOf(TaskApi).deleteTask$suspendBridge_n06igj_k$ = function (companyId, taskId, $completion) {
|
|
671
|
+
var tmp = new $deleteTask$suspendBridgeCOROUTINE$(this, companyId, taskId, $completion);
|
|
672
|
+
tmp.result_1 = Unit_instance;
|
|
673
|
+
tmp.exception_1 = null;
|
|
674
|
+
return tmp.doResume_5yljmg_k$();
|
|
675
|
+
};
|
|
676
|
+
protoOf(TaskApi).indexTasks_7wd1bs_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
677
|
+
return indexTasksOperation_0(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
678
|
+
};
|
|
679
|
+
protoOf(TaskApi).indexTasks$default_lxtpm0_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
680
|
+
search = search === VOID ? null : search;
|
|
681
|
+
completed = completed === VOID ? null : completed;
|
|
682
|
+
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
683
|
+
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
684
|
+
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
685
|
+
fields = fields === VOID ? null : fields;
|
|
686
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
687
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
688
|
+
count = count === VOID ? null : count;
|
|
689
|
+
return $super === VOID ? this.indexTasks_7wd1bs_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasks_7wd1bs_k$.call(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
690
|
+
};
|
|
691
|
+
protoOf(TaskApi).indexTasks = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
692
|
+
var tmp = this;
|
|
693
|
+
return promisify(function ($completion) {
|
|
694
|
+
return tmp.indexTasks$default_lxtpm0_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
protoOf(TaskApi).indexTasks$suspendBridge_4s2nux_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
698
|
+
var tmp = new $indexTasks$suspendBridgeCOROUTINE$(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
699
|
+
tmp.result_1 = Unit_instance;
|
|
700
|
+
tmp.exception_1 = null;
|
|
701
|
+
return tmp.doResume_5yljmg_k$();
|
|
702
|
+
};
|
|
703
|
+
protoOf(TaskApi).indexTasksUser_b2p3qm_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
704
|
+
return indexTasksUserOperation_0(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
705
|
+
};
|
|
706
|
+
protoOf(TaskApi).indexTasksUser$default_w8eger_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
707
|
+
search = search === VOID ? null : search;
|
|
708
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
709
|
+
completed = completed === VOID ? null : completed;
|
|
710
|
+
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
711
|
+
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
712
|
+
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
713
|
+
fields = fields === VOID ? null : fields;
|
|
714
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
715
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
716
|
+
count = count === VOID ? null : count;
|
|
717
|
+
return $super === VOID ? this.indexTasksUser_b2p3qm_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasksUser_b2p3qm_k$.call(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
718
|
+
};
|
|
719
|
+
protoOf(TaskApi).indexTasksUser = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
720
|
+
var tmp = this;
|
|
721
|
+
return promisify(function ($completion) {
|
|
722
|
+
return tmp.indexTasksUser$default_w8eger_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
723
|
+
});
|
|
724
|
+
};
|
|
725
|
+
protoOf(TaskApi).indexTasksUser$suspendBridge_hjpgrz_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
726
|
+
var tmp = new $indexTasksUser$suspendBridgeCOROUTINE$(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
727
|
+
tmp.result_1 = Unit_instance;
|
|
728
|
+
tmp.exception_1 = null;
|
|
729
|
+
return tmp.doResume_5yljmg_k$();
|
|
730
|
+
};
|
|
731
|
+
protoOf(TaskApi).unCompleteTask_fpvr83_k$ = function (companyId, taskId, $completion) {
|
|
732
|
+
return unCompleteTaskOperation_0(this, companyId, taskId, $completion);
|
|
733
|
+
};
|
|
734
|
+
protoOf(TaskApi).unCompleteTask = function (companyId, taskId) {
|
|
735
|
+
var tmp = this;
|
|
736
|
+
return promisify(function ($completion) {
|
|
737
|
+
return tmp.unCompleteTask_fpvr83_k$(companyId, taskId, $completion);
|
|
738
|
+
});
|
|
739
|
+
};
|
|
740
|
+
protoOf(TaskApi).unCompleteTask$suspendBridge_kmj5d8_k$ = function (companyId, taskId, $completion) {
|
|
741
|
+
var tmp = new $unCompleteTask$suspendBridgeCOROUTINE$(this, companyId, taskId, $completion);
|
|
742
|
+
tmp.result_1 = Unit_instance;
|
|
743
|
+
tmp.exception_1 = null;
|
|
744
|
+
return tmp.doResume_5yljmg_k$();
|
|
745
|
+
};
|
|
746
|
+
protoOf(TaskApi).updateTask_bd908y_k$ = function (companyId, taskId, updateTaskCommand, $completion) {
|
|
747
|
+
return updateTaskOperation_0(this, companyId, taskId, updateTaskCommand, $completion);
|
|
748
|
+
};
|
|
749
|
+
protoOf(TaskApi).updateTask = function (companyId, taskId, updateTaskCommand) {
|
|
750
|
+
var tmp = this;
|
|
751
|
+
return promisify(function ($completion) {
|
|
752
|
+
return tmp.updateTask_bd908y_k$(companyId, taskId, updateTaskCommand, $completion);
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
protoOf(TaskApi).updateTask$suspendBridge_1sx5j5_k$ = function (companyId, taskId, updateTaskCommand, $completion) {
|
|
756
|
+
var tmp = new $updateTask$suspendBridgeCOROUTINE$(this, companyId, taskId, updateTaskCommand, $completion);
|
|
757
|
+
tmp.result_1 = Unit_instance;
|
|
758
|
+
tmp.exception_1 = null;
|
|
759
|
+
return tmp.doResume_5yljmg_k$();
|
|
760
|
+
};
|
|
761
|
+
function TaskApi() {
|
|
762
|
+
}
|
|
763
|
+
function completeTaskOperation(client, companyId, taskId, completeTaskCommand) {
|
|
764
|
+
return promisify(function ($completion) {
|
|
765
|
+
return completeTaskOperation_0(client, companyId, taskId, completeTaskCommand, $completion);
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
function completeTaskOperation_0(client, companyId, taskId, completeTaskCommand, $completion) {
|
|
769
|
+
var tmp = new $completeTaskOperationCOROUTINE$(client, companyId, taskId, completeTaskCommand, $completion);
|
|
770
|
+
tmp.result_1 = Unit_instance;
|
|
771
|
+
tmp.exception_1 = null;
|
|
772
|
+
return tmp.doResume_5yljmg_k$();
|
|
773
|
+
}
|
|
774
|
+
function $completeTaskOperationCOROUTINE$(client, companyId, taskId, completeTaskCommand, resultContinuation) {
|
|
775
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
776
|
+
this.client_1 = client;
|
|
777
|
+
this.companyId_1 = companyId;
|
|
778
|
+
this.taskId_1 = taskId;
|
|
779
|
+
this.completeTaskCommand_1 = completeTaskCommand;
|
|
780
|
+
}
|
|
781
|
+
protoOf($completeTaskOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
782
|
+
var suspendResult = this.result_1;
|
|
783
|
+
$sm: do
|
|
784
|
+
try {
|
|
785
|
+
var tmp = this.state_1;
|
|
786
|
+
switch (tmp) {
|
|
787
|
+
case 0:
|
|
788
|
+
this.exceptionState_1 = 2;
|
|
789
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
790
|
+
var localVariableBody = this.completeTaskCommand_1;
|
|
791
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
792
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
793
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
794
|
+
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}/complete', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
795
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
796
|
+
this.state_1 = 1;
|
|
797
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
798
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
799
|
+
return suspendResult;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
continue $sm;
|
|
803
|
+
case 1:
|
|
804
|
+
var this_0 = suspendResult;
|
|
805
|
+
var tmp_0 = getKClass(Unit);
|
|
806
|
+
var tmp_1 = null instanceof Unit;
|
|
807
|
+
var tmp_2;
|
|
808
|
+
try {
|
|
809
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
810
|
+
} catch ($p) {
|
|
811
|
+
var tmp_3;
|
|
812
|
+
if ($p instanceof Error) {
|
|
813
|
+
var _unused_var__etf5q3 = $p;
|
|
814
|
+
tmp_3 = null;
|
|
815
|
+
} else {
|
|
816
|
+
throw $p;
|
|
817
|
+
}
|
|
818
|
+
tmp_2 = tmp_3;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
822
|
+
case 2:
|
|
823
|
+
throw this.exception_1;
|
|
824
|
+
}
|
|
825
|
+
} catch ($p_0) {
|
|
826
|
+
var e = $p_0;
|
|
827
|
+
if (this.exceptionState_1 === 2) {
|
|
828
|
+
throw e;
|
|
829
|
+
} else {
|
|
830
|
+
this.state_1 = this.exceptionState_1;
|
|
831
|
+
this.exception_1 = e;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
while (true);
|
|
835
|
+
};
|
|
836
|
+
function createMultipleTasksOperation(client, bulkImportTasksCommand) {
|
|
837
|
+
return promisify(function ($completion) {
|
|
838
|
+
return createMultipleTasksOperation_0(client, bulkImportTasksCommand, $completion);
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
function createMultipleTasksOperation_0(client, bulkImportTasksCommand, $completion) {
|
|
842
|
+
var tmp = new $createMultipleTasksOperationCOROUTINE$(client, bulkImportTasksCommand, $completion);
|
|
843
|
+
tmp.result_1 = Unit_instance;
|
|
844
|
+
tmp.exception_1 = null;
|
|
845
|
+
return tmp.doResume_5yljmg_k$();
|
|
846
|
+
}
|
|
847
|
+
function $createMultipleTasksOperationCOROUTINE$(client, bulkImportTasksCommand, resultContinuation) {
|
|
848
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
849
|
+
this.client_1 = client;
|
|
850
|
+
this.bulkImportTasksCommand_1 = bulkImportTasksCommand;
|
|
851
|
+
}
|
|
852
|
+
protoOf($createMultipleTasksOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
853
|
+
var suspendResult = this.result_1;
|
|
854
|
+
$sm: do
|
|
855
|
+
try {
|
|
856
|
+
var tmp = this.state_1;
|
|
857
|
+
switch (tmp) {
|
|
858
|
+
case 0:
|
|
859
|
+
this.exceptionState_1 = 2;
|
|
860
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
861
|
+
var localVariableBody = this.bulkImportTasksCommand_1;
|
|
862
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
863
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
864
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
865
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/companies/tasks/bulkImport', localVariableHeaders, VOID, localVariableQuery, true);
|
|
866
|
+
this.state_1 = 1;
|
|
867
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
868
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
869
|
+
return suspendResult;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
continue $sm;
|
|
873
|
+
case 1:
|
|
874
|
+
var this_0 = suspendResult;
|
|
875
|
+
var tmp_0 = getKClass(BulkImportTasksResult);
|
|
876
|
+
var tmp_1 = null instanceof BulkImportTasksResult;
|
|
877
|
+
var tmp_2;
|
|
878
|
+
try {
|
|
879
|
+
tmp_2 = createKType(getKClass(BulkImportTasksResult), arrayOf([]), false);
|
|
880
|
+
} catch ($p) {
|
|
881
|
+
var tmp_3;
|
|
882
|
+
if ($p instanceof Error) {
|
|
883
|
+
var _unused_var__etf5q3 = $p;
|
|
884
|
+
tmp_3 = null;
|
|
885
|
+
} else {
|
|
886
|
+
throw $p;
|
|
887
|
+
}
|
|
888
|
+
tmp_2 = tmp_3;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
892
|
+
case 2:
|
|
893
|
+
throw this.exception_1;
|
|
894
|
+
}
|
|
895
|
+
} catch ($p_0) {
|
|
896
|
+
var e = $p_0;
|
|
897
|
+
if (this.exceptionState_1 === 2) {
|
|
898
|
+
throw e;
|
|
899
|
+
} else {
|
|
900
|
+
this.state_1 = this.exceptionState_1;
|
|
901
|
+
this.exception_1 = e;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
while (true);
|
|
905
|
+
};
|
|
906
|
+
function createTaskOperation(client, companyId, createTaskCommand) {
|
|
907
|
+
return promisify(function ($completion) {
|
|
908
|
+
return createTaskOperation_0(client, companyId, createTaskCommand, $completion);
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
function createTaskOperation_0(client, companyId, createTaskCommand, $completion) {
|
|
912
|
+
var tmp = new $createTaskOperationCOROUTINE$(client, companyId, createTaskCommand, $completion);
|
|
913
|
+
tmp.result_1 = Unit_instance;
|
|
914
|
+
tmp.exception_1 = null;
|
|
915
|
+
return tmp.doResume_5yljmg_k$();
|
|
916
|
+
}
|
|
917
|
+
function $createTaskOperationCOROUTINE$(client, companyId, createTaskCommand, resultContinuation) {
|
|
918
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
919
|
+
this.client_1 = client;
|
|
920
|
+
this.companyId_1 = companyId;
|
|
921
|
+
this.createTaskCommand_1 = createTaskCommand;
|
|
922
|
+
}
|
|
923
|
+
protoOf($createTaskOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
924
|
+
var suspendResult = this.result_1;
|
|
925
|
+
$sm: do
|
|
926
|
+
try {
|
|
927
|
+
var tmp = this.state_1;
|
|
928
|
+
switch (tmp) {
|
|
929
|
+
case 0:
|
|
930
|
+
this.exceptionState_1 = 2;
|
|
931
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
932
|
+
var localVariableBody = this.createTaskCommand_1;
|
|
933
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
934
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
935
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
936
|
+
var tmp1_path = replace('/companies/{companyId}/tasks', '{companyId}', this.companyId_1.toString());
|
|
937
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
938
|
+
this.state_1 = 1;
|
|
939
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
940
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
941
|
+
return suspendResult;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
continue $sm;
|
|
945
|
+
case 1:
|
|
946
|
+
var this_0 = suspendResult;
|
|
947
|
+
var tmp_0 = getKClass(Task);
|
|
948
|
+
var tmp_1 = null instanceof Task;
|
|
949
|
+
var tmp_2;
|
|
950
|
+
try {
|
|
951
|
+
tmp_2 = createKType(getKClass(Task), arrayOf([]), false);
|
|
952
|
+
} catch ($p) {
|
|
953
|
+
var tmp_3;
|
|
954
|
+
if ($p instanceof Error) {
|
|
955
|
+
var _unused_var__etf5q3 = $p;
|
|
956
|
+
tmp_3 = null;
|
|
957
|
+
} else {
|
|
958
|
+
throw $p;
|
|
959
|
+
}
|
|
960
|
+
tmp_2 = tmp_3;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
964
|
+
case 2:
|
|
965
|
+
throw this.exception_1;
|
|
966
|
+
}
|
|
967
|
+
} catch ($p_0) {
|
|
968
|
+
var e = $p_0;
|
|
969
|
+
if (this.exceptionState_1 === 2) {
|
|
970
|
+
throw e;
|
|
971
|
+
} else {
|
|
972
|
+
this.state_1 = this.exceptionState_1;
|
|
973
|
+
this.exception_1 = e;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
while (true);
|
|
977
|
+
};
|
|
978
|
+
function deleteTaskOperation(client, companyId, taskId) {
|
|
979
|
+
return promisify(function ($completion) {
|
|
980
|
+
return deleteTaskOperation_0(client, companyId, taskId, $completion);
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
function deleteTaskOperation_0(client, companyId, taskId, $completion) {
|
|
984
|
+
var tmp = new $deleteTaskOperationCOROUTINE$(client, companyId, taskId, $completion);
|
|
985
|
+
tmp.result_1 = Unit_instance;
|
|
986
|
+
tmp.exception_1 = null;
|
|
987
|
+
return tmp.doResume_5yljmg_k$();
|
|
988
|
+
}
|
|
989
|
+
function $deleteTaskOperationCOROUTINE$(client, companyId, taskId, resultContinuation) {
|
|
990
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
991
|
+
this.client_1 = client;
|
|
992
|
+
this.companyId_1 = companyId;
|
|
993
|
+
this.taskId_1 = taskId;
|
|
994
|
+
}
|
|
995
|
+
protoOf($deleteTaskOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
996
|
+
var suspendResult = this.result_1;
|
|
997
|
+
$sm: do
|
|
998
|
+
try {
|
|
999
|
+
var tmp = this.state_1;
|
|
1000
|
+
switch (tmp) {
|
|
1001
|
+
case 0:
|
|
1002
|
+
this.exceptionState_1 = 2;
|
|
1003
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1004
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1005
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1006
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1007
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
1008
|
+
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
1009
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1010
|
+
this.state_1 = 1;
|
|
1011
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1012
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1013
|
+
return suspendResult;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
continue $sm;
|
|
1017
|
+
case 1:
|
|
1018
|
+
var this_0 = suspendResult;
|
|
1019
|
+
var tmp_0 = getKClass(Unit);
|
|
1020
|
+
var tmp_1 = null instanceof Unit;
|
|
1021
|
+
var tmp_2;
|
|
1022
|
+
try {
|
|
1023
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1024
|
+
} catch ($p) {
|
|
1025
|
+
var tmp_3;
|
|
1026
|
+
if ($p instanceof Error) {
|
|
1027
|
+
var _unused_var__etf5q3 = $p;
|
|
1028
|
+
tmp_3 = null;
|
|
1029
|
+
} else {
|
|
1030
|
+
throw $p;
|
|
1031
|
+
}
|
|
1032
|
+
tmp_2 = tmp_3;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1036
|
+
case 2:
|
|
1037
|
+
throw this.exception_1;
|
|
1038
|
+
}
|
|
1039
|
+
} catch ($p_0) {
|
|
1040
|
+
var e = $p_0;
|
|
1041
|
+
if (this.exceptionState_1 === 2) {
|
|
1042
|
+
throw e;
|
|
1043
|
+
} else {
|
|
1044
|
+
this.state_1 = this.exceptionState_1;
|
|
1045
|
+
this.exception_1 = e;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
while (true);
|
|
1049
|
+
};
|
|
1050
|
+
function indexTasksOperation(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
1051
|
+
return promisify(function ($completion) {
|
|
1052
|
+
return indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
function indexTasksOperation_0(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1056
|
+
search = search === VOID ? null : search;
|
|
1057
|
+
completed = completed === VOID ? null : completed;
|
|
1058
|
+
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
1059
|
+
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
1060
|
+
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
1061
|
+
fields = fields === VOID ? null : fields;
|
|
1062
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1063
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1064
|
+
count = count === VOID ? null : count;
|
|
1065
|
+
var tmp = new $indexTasksOperationCOROUTINE$(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1066
|
+
tmp.result_1 = Unit_instance;
|
|
1067
|
+
tmp.exception_1 = null;
|
|
1068
|
+
return tmp.doResume_5yljmg_k$();
|
|
1069
|
+
}
|
|
1070
|
+
function $indexTasksOperationCOROUTINE$(client, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1071
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1072
|
+
this.client_1 = client;
|
|
1073
|
+
this.companyId_1 = companyId;
|
|
1074
|
+
this.search_1 = search;
|
|
1075
|
+
this.completed_1 = completed;
|
|
1076
|
+
this.responsibleId_1 = responsibleId;
|
|
1077
|
+
this.dueDateFrom_1 = dueDateFrom;
|
|
1078
|
+
this.dueDateTo_1 = dueDateTo;
|
|
1079
|
+
this.fields_1 = fields;
|
|
1080
|
+
this.pageToken_1 = pageToken;
|
|
1081
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1082
|
+
this.count_1 = count;
|
|
1083
|
+
}
|
|
1084
|
+
protoOf($indexTasksOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1085
|
+
var suspendResult = this.result_1;
|
|
1086
|
+
$sm: do
|
|
1087
|
+
try {
|
|
1088
|
+
var tmp = this.state_1;
|
|
1089
|
+
switch (tmp) {
|
|
1090
|
+
case 0:
|
|
1091
|
+
this.exceptionState_1 = 2;
|
|
1092
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1093
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1094
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1095
|
+
if (this.search_1 == null)
|
|
1096
|
+
null;
|
|
1097
|
+
else {
|
|
1098
|
+
var value = listOf_0(this.search_1);
|
|
1099
|
+
localVariableQuery.put_4fpzoq_k$('search', value);
|
|
656
1100
|
}
|
|
657
1101
|
|
|
658
1102
|
if (this.completed_1 == null)
|
|
@@ -722,7 +1166,7 @@ protoOf($indexTasksCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
722
1166
|
var tmp10_path = replace('/companies/{companyId}/tasks', '{companyId}', this.companyId_1.toString());
|
|
723
1167
|
var localVariableConfig = new RequestConfig(tmp9_method, tmp10_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
724
1168
|
this.state_1 = 1;
|
|
725
|
-
suspendResult = this.
|
|
1169
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
726
1170
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
727
1171
|
return suspendResult;
|
|
728
1172
|
}
|
|
@@ -761,71 +1205,30 @@ protoOf($indexTasksCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
761
1205
|
}
|
|
762
1206
|
while (true);
|
|
763
1207
|
};
|
|
764
|
-
function
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
this.search_1 = search;
|
|
769
|
-
this.completed_1 = completed;
|
|
770
|
-
this.responsibleId_1 = responsibleId;
|
|
771
|
-
this.dueDateFrom_1 = dueDateFrom;
|
|
772
|
-
this.dueDateTo_1 = dueDateTo;
|
|
773
|
-
this.fields_1 = fields;
|
|
774
|
-
this.pageToken_1 = pageToken;
|
|
775
|
-
this.autoPaginate_1 = autoPaginate;
|
|
776
|
-
this.count_1 = count;
|
|
1208
|
+
function indexTasksUserOperation(client, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
1209
|
+
return promisify(function ($completion) {
|
|
1210
|
+
return indexTasksUserOperation_0(client, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1211
|
+
});
|
|
777
1212
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexTasks(this.companyId_1, this.search_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
796
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
797
|
-
return suspendResult;
|
|
798
|
-
}
|
|
799
|
-
continue $sm;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
case 1:
|
|
803
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
804
|
-
this.state_1 = 3;
|
|
805
|
-
continue $sm;
|
|
806
|
-
case 2:
|
|
807
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
808
|
-
this.state_1 = 3;
|
|
809
|
-
continue $sm;
|
|
810
|
-
case 3:
|
|
811
|
-
return this.WHEN_RESULT0__1;
|
|
812
|
-
case 4:
|
|
813
|
-
throw this.exception_1;
|
|
814
|
-
}
|
|
815
|
-
} catch ($p) {
|
|
816
|
-
var e = $p;
|
|
817
|
-
if (this.exceptionState_1 === 4) {
|
|
818
|
-
throw e;
|
|
819
|
-
} else {
|
|
820
|
-
this.state_1 = this.exceptionState_1;
|
|
821
|
-
this.exception_1 = e;
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
while (true);
|
|
825
|
-
};
|
|
826
|
-
function $indexTasksUserCOROUTINE$(_this__u8e3s4, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1213
|
+
function indexTasksUserOperation_0(client, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1214
|
+
search = search === VOID ? null : search;
|
|
1215
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
1216
|
+
completed = completed === VOID ? null : completed;
|
|
1217
|
+
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
1218
|
+
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
1219
|
+
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
1220
|
+
fields = fields === VOID ? null : fields;
|
|
1221
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1222
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1223
|
+
count = count === VOID ? null : count;
|
|
1224
|
+
var tmp = new $indexTasksUserOperationCOROUTINE$(client, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1225
|
+
tmp.result_1 = Unit_instance;
|
|
1226
|
+
tmp.exception_1 = null;
|
|
1227
|
+
return tmp.doResume_5yljmg_k$();
|
|
1228
|
+
}
|
|
1229
|
+
function $indexTasksUserOperationCOROUTINE$(client, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
827
1230
|
CoroutineImpl.call(this, resultContinuation);
|
|
828
|
-
this.
|
|
1231
|
+
this.client_1 = client;
|
|
829
1232
|
this.search_1 = search;
|
|
830
1233
|
this.companyIds_1 = companyIds;
|
|
831
1234
|
this.completed_1 = completed;
|
|
@@ -837,7 +1240,7 @@ function $indexTasksUserCOROUTINE$(_this__u8e3s4, search, companyIds, completed,
|
|
|
837
1240
|
this.autoPaginate_1 = autoPaginate;
|
|
838
1241
|
this.count_1 = count;
|
|
839
1242
|
}
|
|
840
|
-
protoOf($
|
|
1243
|
+
protoOf($indexTasksUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
841
1244
|
var suspendResult = this.result_1;
|
|
842
1245
|
$sm: do
|
|
843
1246
|
try {
|
|
@@ -930,7 +1333,7 @@ protoOf($indexTasksUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
930
1333
|
var tmp10_method = RequestMethod_GET_getInstance();
|
|
931
1334
|
var localVariableConfig = new RequestConfig(tmp10_method, '/companies/tasks', localVariableHeaders, VOID, localVariableQuery, true);
|
|
932
1335
|
this.state_1 = 1;
|
|
933
|
-
suspendResult = this.
|
|
1336
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
934
1337
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
1338
|
return suspendResult;
|
|
936
1339
|
}
|
|
@@ -957,187 +1360,10 @@ protoOf($indexTasksUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
957
1360
|
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
958
1361
|
case 2:
|
|
959
1362
|
throw this.exception_1;
|
|
960
|
-
}
|
|
961
|
-
} catch ($p_0) {
|
|
962
|
-
var e = $p_0;
|
|
963
|
-
if (this.exceptionState_1 === 2) {
|
|
964
|
-
throw e;
|
|
965
|
-
} else {
|
|
966
|
-
this.state_1 = this.exceptionState_1;
|
|
967
|
-
this.exception_1 = e;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
while (true);
|
|
971
|
-
};
|
|
972
|
-
function $indexTasksUser$suspendBridgeCOROUTINE$(_this__u8e3s4, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
973
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
974
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
975
|
-
this.search_1 = search;
|
|
976
|
-
this.companyIds_1 = companyIds;
|
|
977
|
-
this.completed_1 = completed;
|
|
978
|
-
this.responsibleId_1 = responsibleId;
|
|
979
|
-
this.dueDateFrom_1 = dueDateFrom;
|
|
980
|
-
this.dueDateTo_1 = dueDateTo;
|
|
981
|
-
this.fields_1 = fields;
|
|
982
|
-
this.pageToken_1 = pageToken;
|
|
983
|
-
this.autoPaginate_1 = autoPaginate;
|
|
984
|
-
this.count_1 = count;
|
|
985
|
-
}
|
|
986
|
-
protoOf($indexTasksUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
987
|
-
var suspendResult = this.result_1;
|
|
988
|
-
$sm: do
|
|
989
|
-
try {
|
|
990
|
-
var tmp = this.state_1;
|
|
991
|
-
switch (tmp) {
|
|
992
|
-
case 0:
|
|
993
|
-
this.exceptionState_1 = 4;
|
|
994
|
-
if (this._this__u8e3s4__1.indexTasksUser === protoOf(TaskApi).indexTasksUser) {
|
|
995
|
-
this.state_1 = 2;
|
|
996
|
-
suspendResult = this._this__u8e3s4__1.indexTasksUser$default_w8eger_k$(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
997
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
|
-
return suspendResult;
|
|
999
|
-
}
|
|
1000
|
-
continue $sm;
|
|
1001
|
-
} else {
|
|
1002
|
-
this.state_1 = 1;
|
|
1003
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexTasksUser(this.search_1, this.companyIds_1, this.completed_1, this.responsibleId_1, this.dueDateFrom_1, this.dueDateTo_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
1004
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1005
|
-
return suspendResult;
|
|
1006
|
-
}
|
|
1007
|
-
continue $sm;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
case 1:
|
|
1011
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1012
|
-
this.state_1 = 3;
|
|
1013
|
-
continue $sm;
|
|
1014
|
-
case 2:
|
|
1015
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1016
|
-
this.state_1 = 3;
|
|
1017
|
-
continue $sm;
|
|
1018
|
-
case 3:
|
|
1019
|
-
return this.WHEN_RESULT0__1;
|
|
1020
|
-
case 4:
|
|
1021
|
-
throw this.exception_1;
|
|
1022
|
-
}
|
|
1023
|
-
} catch ($p) {
|
|
1024
|
-
var e = $p;
|
|
1025
|
-
if (this.exceptionState_1 === 4) {
|
|
1026
|
-
throw e;
|
|
1027
|
-
} else {
|
|
1028
|
-
this.state_1 = this.exceptionState_1;
|
|
1029
|
-
this.exception_1 = e;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
while (true);
|
|
1033
|
-
};
|
|
1034
|
-
function $unCompleteTaskCOROUTINE$(_this__u8e3s4, companyId, taskId, resultContinuation) {
|
|
1035
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1036
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1037
|
-
this.companyId_1 = companyId;
|
|
1038
|
-
this.taskId_1 = taskId;
|
|
1039
|
-
}
|
|
1040
|
-
protoOf($unCompleteTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1041
|
-
var suspendResult = this.result_1;
|
|
1042
|
-
$sm: do
|
|
1043
|
-
try {
|
|
1044
|
-
var tmp = this.state_1;
|
|
1045
|
-
switch (tmp) {
|
|
1046
|
-
case 0:
|
|
1047
|
-
this.exceptionState_1 = 2;
|
|
1048
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1049
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
1050
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1051
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1052
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1053
|
-
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}/unComplete', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
1054
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1055
|
-
this.state_1 = 1;
|
|
1056
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1057
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1058
|
-
return suspendResult;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
continue $sm;
|
|
1062
|
-
case 1:
|
|
1063
|
-
var this_0 = suspendResult;
|
|
1064
|
-
var tmp_0 = getKClass(Unit);
|
|
1065
|
-
var tmp_1 = null instanceof Unit;
|
|
1066
|
-
var tmp_2;
|
|
1067
|
-
try {
|
|
1068
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1069
|
-
} catch ($p) {
|
|
1070
|
-
var tmp_3;
|
|
1071
|
-
if ($p instanceof Error) {
|
|
1072
|
-
var _unused_var__etf5q3 = $p;
|
|
1073
|
-
tmp_3 = null;
|
|
1074
|
-
} else {
|
|
1075
|
-
throw $p;
|
|
1076
|
-
}
|
|
1077
|
-
tmp_2 = tmp_3;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1081
|
-
case 2:
|
|
1082
|
-
throw this.exception_1;
|
|
1083
|
-
}
|
|
1084
|
-
} catch ($p_0) {
|
|
1085
|
-
var e = $p_0;
|
|
1086
|
-
if (this.exceptionState_1 === 2) {
|
|
1087
|
-
throw e;
|
|
1088
|
-
} else {
|
|
1089
|
-
this.state_1 = this.exceptionState_1;
|
|
1090
|
-
this.exception_1 = e;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
while (true);
|
|
1094
|
-
};
|
|
1095
|
-
function $unCompleteTask$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, taskId, resultContinuation) {
|
|
1096
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1097
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1098
|
-
this.companyId_1 = companyId;
|
|
1099
|
-
this.taskId_1 = taskId;
|
|
1100
|
-
}
|
|
1101
|
-
protoOf($unCompleteTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1102
|
-
var suspendResult = this.result_1;
|
|
1103
|
-
$sm: do
|
|
1104
|
-
try {
|
|
1105
|
-
var tmp = this.state_1;
|
|
1106
|
-
switch (tmp) {
|
|
1107
|
-
case 0:
|
|
1108
|
-
this.exceptionState_1 = 4;
|
|
1109
|
-
if (this._this__u8e3s4__1.unCompleteTask === protoOf(TaskApi).unCompleteTask) {
|
|
1110
|
-
this.state_1 = 2;
|
|
1111
|
-
suspendResult = this._this__u8e3s4__1.unCompleteTask_fpvr83_k$(this.companyId_1, this.taskId_1, this);
|
|
1112
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1113
|
-
return suspendResult;
|
|
1114
|
-
}
|
|
1115
|
-
continue $sm;
|
|
1116
|
-
} else {
|
|
1117
|
-
this.state_1 = 1;
|
|
1118
|
-
suspendResult = await_0(this._this__u8e3s4__1.unCompleteTask(this.companyId_1, this.taskId_1), this);
|
|
1119
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1120
|
-
return suspendResult;
|
|
1121
|
-
}
|
|
1122
|
-
continue $sm;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
case 1:
|
|
1126
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1127
|
-
this.state_1 = 3;
|
|
1128
|
-
continue $sm;
|
|
1129
|
-
case 2:
|
|
1130
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1131
|
-
this.state_1 = 3;
|
|
1132
|
-
continue $sm;
|
|
1133
|
-
case 3:
|
|
1134
|
-
return this.WHEN_RESULT0__1;
|
|
1135
|
-
case 4:
|
|
1136
|
-
throw this.exception_1;
|
|
1137
|
-
}
|
|
1138
|
-
} catch ($p) {
|
|
1139
|
-
var e = $p;
|
|
1140
|
-
if (this.exceptionState_1 === 4) {
|
|
1363
|
+
}
|
|
1364
|
+
} catch ($p_0) {
|
|
1365
|
+
var e = $p_0;
|
|
1366
|
+
if (this.exceptionState_1 === 2) {
|
|
1141
1367
|
throw e;
|
|
1142
1368
|
} else {
|
|
1143
1369
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1146,14 +1372,24 @@ protoOf($unCompleteTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
1146
1372
|
}
|
|
1147
1373
|
while (true);
|
|
1148
1374
|
};
|
|
1149
|
-
function
|
|
1375
|
+
function unCompleteTaskOperation(client, companyId, taskId) {
|
|
1376
|
+
return promisify(function ($completion) {
|
|
1377
|
+
return unCompleteTaskOperation_0(client, companyId, taskId, $completion);
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
function unCompleteTaskOperation_0(client, companyId, taskId, $completion) {
|
|
1381
|
+
var tmp = new $unCompleteTaskOperationCOROUTINE$(client, companyId, taskId, $completion);
|
|
1382
|
+
tmp.result_1 = Unit_instance;
|
|
1383
|
+
tmp.exception_1 = null;
|
|
1384
|
+
return tmp.doResume_5yljmg_k$();
|
|
1385
|
+
}
|
|
1386
|
+
function $unCompleteTaskOperationCOROUTINE$(client, companyId, taskId, resultContinuation) {
|
|
1150
1387
|
CoroutineImpl.call(this, resultContinuation);
|
|
1151
|
-
this.
|
|
1388
|
+
this.client_1 = client;
|
|
1152
1389
|
this.companyId_1 = companyId;
|
|
1153
1390
|
this.taskId_1 = taskId;
|
|
1154
|
-
this.updateTaskCommand_1 = updateTaskCommand;
|
|
1155
1391
|
}
|
|
1156
|
-
protoOf($
|
|
1392
|
+
protoOf($unCompleteTaskOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1157
1393
|
var suspendResult = this.result_1;
|
|
1158
1394
|
$sm: do
|
|
1159
1395
|
try {
|
|
@@ -1162,14 +1398,14 @@ protoOf($updateTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1162
1398
|
case 0:
|
|
1163
1399
|
this.exceptionState_1 = 2;
|
|
1164
1400
|
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1165
|
-
var localVariableBody =
|
|
1401
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1166
1402
|
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1167
1403
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1168
1404
|
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1169
|
-
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
1405
|
+
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}/unComplete', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
1170
1406
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1171
1407
|
this.state_1 = 1;
|
|
1172
|
-
suspendResult = this.
|
|
1408
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1173
1409
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1174
1410
|
return suspendResult;
|
|
1175
1411
|
}
|
|
@@ -1177,11 +1413,11 @@ protoOf($updateTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1177
1413
|
continue $sm;
|
|
1178
1414
|
case 1:
|
|
1179
1415
|
var this_0 = suspendResult;
|
|
1180
|
-
var tmp_0 = getKClass(
|
|
1181
|
-
var tmp_1 = null instanceof
|
|
1416
|
+
var tmp_0 = getKClass(Unit);
|
|
1417
|
+
var tmp_1 = null instanceof Unit;
|
|
1182
1418
|
var tmp_2;
|
|
1183
1419
|
try {
|
|
1184
|
-
tmp_2 = createKType(getKClass(
|
|
1420
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1185
1421
|
} catch ($p) {
|
|
1186
1422
|
var tmp_3;
|
|
1187
1423
|
if ($p instanceof Error) {
|
|
@@ -1208,53 +1444,71 @@ protoOf($updateTaskCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1208
1444
|
}
|
|
1209
1445
|
while (true);
|
|
1210
1446
|
};
|
|
1211
|
-
function
|
|
1447
|
+
function updateTaskOperation(client, companyId, taskId, updateTaskCommand) {
|
|
1448
|
+
return promisify(function ($completion) {
|
|
1449
|
+
return updateTaskOperation_0(client, companyId, taskId, updateTaskCommand, $completion);
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
function updateTaskOperation_0(client, companyId, taskId, updateTaskCommand, $completion) {
|
|
1453
|
+
var tmp = new $updateTaskOperationCOROUTINE$(client, companyId, taskId, updateTaskCommand, $completion);
|
|
1454
|
+
tmp.result_1 = Unit_instance;
|
|
1455
|
+
tmp.exception_1 = null;
|
|
1456
|
+
return tmp.doResume_5yljmg_k$();
|
|
1457
|
+
}
|
|
1458
|
+
function $updateTaskOperationCOROUTINE$(client, companyId, taskId, updateTaskCommand, resultContinuation) {
|
|
1212
1459
|
CoroutineImpl.call(this, resultContinuation);
|
|
1213
|
-
this.
|
|
1460
|
+
this.client_1 = client;
|
|
1214
1461
|
this.companyId_1 = companyId;
|
|
1215
1462
|
this.taskId_1 = taskId;
|
|
1216
1463
|
this.updateTaskCommand_1 = updateTaskCommand;
|
|
1217
1464
|
}
|
|
1218
|
-
protoOf($
|
|
1465
|
+
protoOf($updateTaskOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1219
1466
|
var suspendResult = this.result_1;
|
|
1220
1467
|
$sm: do
|
|
1221
1468
|
try {
|
|
1222
1469
|
var tmp = this.state_1;
|
|
1223
1470
|
switch (tmp) {
|
|
1224
1471
|
case 0:
|
|
1225
|
-
this.exceptionState_1 =
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
return suspendResult;
|
|
1238
|
-
}
|
|
1239
|
-
continue $sm;
|
|
1472
|
+
this.exceptionState_1 = 2;
|
|
1473
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1474
|
+
var localVariableBody = this.updateTaskCommand_1;
|
|
1475
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1476
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1477
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1478
|
+
var tmp1_path = replace(replace('/companies/{companyId}/tasks/{taskId}', '{companyId}', this.companyId_1.toString()), '{taskId}', this.taskId_1.toString());
|
|
1479
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1480
|
+
this.state_1 = 1;
|
|
1481
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1482
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1483
|
+
return suspendResult;
|
|
1240
1484
|
}
|
|
1241
1485
|
|
|
1242
|
-
case 1:
|
|
1243
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1244
|
-
this.state_1 = 3;
|
|
1245
1486
|
continue $sm;
|
|
1487
|
+
case 1:
|
|
1488
|
+
var this_0 = suspendResult;
|
|
1489
|
+
var tmp_0 = getKClass(Task);
|
|
1490
|
+
var tmp_1 = null instanceof Task;
|
|
1491
|
+
var tmp_2;
|
|
1492
|
+
try {
|
|
1493
|
+
tmp_2 = createKType(getKClass(Task), 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)));
|
|
1246
1506
|
case 2:
|
|
1247
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1248
|
-
this.state_1 = 3;
|
|
1249
|
-
continue $sm;
|
|
1250
|
-
case 3:
|
|
1251
|
-
return this.WHEN_RESULT0__1;
|
|
1252
|
-
case 4:
|
|
1253
1507
|
throw this.exception_1;
|
|
1254
1508
|
}
|
|
1255
|
-
} catch ($
|
|
1256
|
-
var e = $
|
|
1257
|
-
if (this.exceptionState_1 ===
|
|
1509
|
+
} catch ($p_0) {
|
|
1510
|
+
var e = $p_0;
|
|
1511
|
+
if (this.exceptionState_1 === 2) {
|
|
1258
1512
|
throw e;
|
|
1259
1513
|
} else {
|
|
1260
1514
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1263,177 +1517,6 @@ protoOf($updateTask$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1263
1517
|
}
|
|
1264
1518
|
while (true);
|
|
1265
1519
|
};
|
|
1266
|
-
protoOf(TaskApi).completeTask_h9y8r2_k$ = function (companyId, taskId, completeTaskCommand, $completion) {
|
|
1267
|
-
var tmp = new $completeTaskCOROUTINE$(this, companyId, taskId, completeTaskCommand, $completion);
|
|
1268
|
-
tmp.result_1 = Unit_instance;
|
|
1269
|
-
tmp.exception_1 = null;
|
|
1270
|
-
return tmp.doResume_5yljmg_k$();
|
|
1271
|
-
};
|
|
1272
|
-
protoOf(TaskApi).completeTask = function (companyId, taskId, completeTaskCommand) {
|
|
1273
|
-
var tmp = this;
|
|
1274
|
-
return promisify(function ($completion) {
|
|
1275
|
-
return tmp.completeTask_h9y8r2_k$(companyId, taskId, completeTaskCommand, $completion);
|
|
1276
|
-
});
|
|
1277
|
-
};
|
|
1278
|
-
protoOf(TaskApi).completeTask$suspendBridge_l1mnpp_k$ = function (companyId, taskId, completeTaskCommand, $completion) {
|
|
1279
|
-
var tmp = new $completeTask$suspendBridgeCOROUTINE$(this, companyId, taskId, completeTaskCommand, $completion);
|
|
1280
|
-
tmp.result_1 = Unit_instance;
|
|
1281
|
-
tmp.exception_1 = null;
|
|
1282
|
-
return tmp.doResume_5yljmg_k$();
|
|
1283
|
-
};
|
|
1284
|
-
protoOf(TaskApi).createMultipleTasks_57v2km_k$ = function (bulkImportTasksCommand, $completion) {
|
|
1285
|
-
var tmp = new $createMultipleTasksCOROUTINE$(this, bulkImportTasksCommand, $completion);
|
|
1286
|
-
tmp.result_1 = Unit_instance;
|
|
1287
|
-
tmp.exception_1 = null;
|
|
1288
|
-
return tmp.doResume_5yljmg_k$();
|
|
1289
|
-
};
|
|
1290
|
-
protoOf(TaskApi).createMultipleTasks = function (bulkImportTasksCommand) {
|
|
1291
|
-
var tmp = this;
|
|
1292
|
-
return promisify(function ($completion) {
|
|
1293
|
-
return tmp.createMultipleTasks_57v2km_k$(bulkImportTasksCommand, $completion);
|
|
1294
|
-
});
|
|
1295
|
-
};
|
|
1296
|
-
protoOf(TaskApi).createMultipleTasks$suspendBridge_jthvuj_k$ = function (bulkImportTasksCommand, $completion) {
|
|
1297
|
-
var tmp = new $createMultipleTasks$suspendBridgeCOROUTINE$(this, bulkImportTasksCommand, $completion);
|
|
1298
|
-
tmp.result_1 = Unit_instance;
|
|
1299
|
-
tmp.exception_1 = null;
|
|
1300
|
-
return tmp.doResume_5yljmg_k$();
|
|
1301
|
-
};
|
|
1302
|
-
protoOf(TaskApi).createTask_8xm05i_k$ = function (companyId, createTaskCommand, $completion) {
|
|
1303
|
-
var tmp = new $createTaskCOROUTINE$(this, companyId, createTaskCommand, $completion);
|
|
1304
|
-
tmp.result_1 = Unit_instance;
|
|
1305
|
-
tmp.exception_1 = null;
|
|
1306
|
-
return tmp.doResume_5yljmg_k$();
|
|
1307
|
-
};
|
|
1308
|
-
protoOf(TaskApi).createTask = function (companyId, createTaskCommand) {
|
|
1309
|
-
var tmp = this;
|
|
1310
|
-
return promisify(function ($completion) {
|
|
1311
|
-
return tmp.createTask_8xm05i_k$(companyId, createTaskCommand, $completion);
|
|
1312
|
-
});
|
|
1313
|
-
};
|
|
1314
|
-
protoOf(TaskApi).createTask$suspendBridge_52oqjp_k$ = function (companyId, createTaskCommand, $completion) {
|
|
1315
|
-
var tmp = new $createTask$suspendBridgeCOROUTINE$(this, companyId, createTaskCommand, $completion);
|
|
1316
|
-
tmp.result_1 = Unit_instance;
|
|
1317
|
-
tmp.exception_1 = null;
|
|
1318
|
-
return tmp.doResume_5yljmg_k$();
|
|
1319
|
-
};
|
|
1320
|
-
protoOf(TaskApi).deleteTask_efker8_k$ = function (companyId, taskId, $completion) {
|
|
1321
|
-
var tmp = new $deleteTaskCOROUTINE$(this, companyId, taskId, $completion);
|
|
1322
|
-
tmp.result_1 = Unit_instance;
|
|
1323
|
-
tmp.exception_1 = null;
|
|
1324
|
-
return tmp.doResume_5yljmg_k$();
|
|
1325
|
-
};
|
|
1326
|
-
protoOf(TaskApi).deleteTask = function (companyId, taskId) {
|
|
1327
|
-
var tmp = this;
|
|
1328
|
-
return promisify(function ($completion) {
|
|
1329
|
-
return tmp.deleteTask_efker8_k$(companyId, taskId, $completion);
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
protoOf(TaskApi).deleteTask$suspendBridge_n06igj_k$ = function (companyId, taskId, $completion) {
|
|
1333
|
-
var tmp = new $deleteTask$suspendBridgeCOROUTINE$(this, companyId, taskId, $completion);
|
|
1334
|
-
tmp.result_1 = Unit_instance;
|
|
1335
|
-
tmp.exception_1 = null;
|
|
1336
|
-
return tmp.doResume_5yljmg_k$();
|
|
1337
|
-
};
|
|
1338
|
-
protoOf(TaskApi).indexTasks_7wd1bs_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1339
|
-
var tmp = new $indexTasksCOROUTINE$(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1340
|
-
tmp.result_1 = Unit_instance;
|
|
1341
|
-
tmp.exception_1 = null;
|
|
1342
|
-
return tmp.doResume_5yljmg_k$();
|
|
1343
|
-
};
|
|
1344
|
-
protoOf(TaskApi).indexTasks$default_lxtpm0_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1345
|
-
search = search === VOID ? null : search;
|
|
1346
|
-
completed = completed === VOID ? null : completed;
|
|
1347
|
-
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
1348
|
-
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
1349
|
-
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
1350
|
-
fields = fields === VOID ? null : fields;
|
|
1351
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
1352
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1353
|
-
count = count === VOID ? null : count;
|
|
1354
|
-
return $super === VOID ? this.indexTasks_7wd1bs_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasks_7wd1bs_k$.call(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1355
|
-
};
|
|
1356
|
-
protoOf(TaskApi).indexTasks = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
1357
|
-
var tmp = this;
|
|
1358
|
-
return promisify(function ($completion) {
|
|
1359
|
-
return tmp.indexTasks$default_lxtpm0_k$(companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1360
|
-
});
|
|
1361
|
-
};
|
|
1362
|
-
protoOf(TaskApi).indexTasks$suspendBridge_4s2nux_k$ = function (companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1363
|
-
var tmp = new $indexTasks$suspendBridgeCOROUTINE$(this, companyId, search, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1364
|
-
tmp.result_1 = Unit_instance;
|
|
1365
|
-
tmp.exception_1 = null;
|
|
1366
|
-
return tmp.doResume_5yljmg_k$();
|
|
1367
|
-
};
|
|
1368
|
-
protoOf(TaskApi).indexTasksUser_b2p3qm_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1369
|
-
var tmp = new $indexTasksUserCOROUTINE$(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1370
|
-
tmp.result_1 = Unit_instance;
|
|
1371
|
-
tmp.exception_1 = null;
|
|
1372
|
-
return tmp.doResume_5yljmg_k$();
|
|
1373
|
-
};
|
|
1374
|
-
protoOf(TaskApi).indexTasksUser$default_w8eger_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1375
|
-
search = search === VOID ? null : search;
|
|
1376
|
-
companyIds = companyIds === VOID ? null : companyIds;
|
|
1377
|
-
completed = completed === VOID ? null : completed;
|
|
1378
|
-
responsibleId = responsibleId === VOID ? null : responsibleId;
|
|
1379
|
-
dueDateFrom = dueDateFrom === VOID ? null : dueDateFrom;
|
|
1380
|
-
dueDateTo = dueDateTo === VOID ? null : dueDateTo;
|
|
1381
|
-
fields = fields === VOID ? null : fields;
|
|
1382
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
1383
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1384
|
-
count = count === VOID ? null : count;
|
|
1385
|
-
return $super === VOID ? this.indexTasksUser_b2p3qm_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) : $super.indexTasksUser_b2p3qm_k$.call(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1386
|
-
};
|
|
1387
|
-
protoOf(TaskApi).indexTasksUser = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count) {
|
|
1388
|
-
var tmp = this;
|
|
1389
|
-
return promisify(function ($completion) {
|
|
1390
|
-
return tmp.indexTasksUser$default_w8eger_k$(search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1391
|
-
});
|
|
1392
|
-
};
|
|
1393
|
-
protoOf(TaskApi).indexTasksUser$suspendBridge_hjpgrz_k$ = function (search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion) {
|
|
1394
|
-
var tmp = new $indexTasksUser$suspendBridgeCOROUTINE$(this, search, companyIds, completed, responsibleId, dueDateFrom, dueDateTo, fields, pageToken, autoPaginate, count, $completion);
|
|
1395
|
-
tmp.result_1 = Unit_instance;
|
|
1396
|
-
tmp.exception_1 = null;
|
|
1397
|
-
return tmp.doResume_5yljmg_k$();
|
|
1398
|
-
};
|
|
1399
|
-
protoOf(TaskApi).unCompleteTask_fpvr83_k$ = function (companyId, taskId, $completion) {
|
|
1400
|
-
var tmp = new $unCompleteTaskCOROUTINE$(this, companyId, taskId, $completion);
|
|
1401
|
-
tmp.result_1 = Unit_instance;
|
|
1402
|
-
tmp.exception_1 = null;
|
|
1403
|
-
return tmp.doResume_5yljmg_k$();
|
|
1404
|
-
};
|
|
1405
|
-
protoOf(TaskApi).unCompleteTask = function (companyId, taskId) {
|
|
1406
|
-
var tmp = this;
|
|
1407
|
-
return promisify(function ($completion) {
|
|
1408
|
-
return tmp.unCompleteTask_fpvr83_k$(companyId, taskId, $completion);
|
|
1409
|
-
});
|
|
1410
|
-
};
|
|
1411
|
-
protoOf(TaskApi).unCompleteTask$suspendBridge_kmj5d8_k$ = function (companyId, taskId, $completion) {
|
|
1412
|
-
var tmp = new $unCompleteTask$suspendBridgeCOROUTINE$(this, companyId, taskId, $completion);
|
|
1413
|
-
tmp.result_1 = Unit_instance;
|
|
1414
|
-
tmp.exception_1 = null;
|
|
1415
|
-
return tmp.doResume_5yljmg_k$();
|
|
1416
|
-
};
|
|
1417
|
-
protoOf(TaskApi).updateTask_bd908y_k$ = function (companyId, taskId, updateTaskCommand, $completion) {
|
|
1418
|
-
var tmp = new $updateTaskCOROUTINE$(this, companyId, taskId, updateTaskCommand, $completion);
|
|
1419
|
-
tmp.result_1 = Unit_instance;
|
|
1420
|
-
tmp.exception_1 = null;
|
|
1421
|
-
return tmp.doResume_5yljmg_k$();
|
|
1422
|
-
};
|
|
1423
|
-
protoOf(TaskApi).updateTask = function (companyId, taskId, updateTaskCommand) {
|
|
1424
|
-
var tmp = this;
|
|
1425
|
-
return promisify(function ($completion) {
|
|
1426
|
-
return tmp.updateTask_bd908y_k$(companyId, taskId, updateTaskCommand, $completion);
|
|
1427
|
-
});
|
|
1428
|
-
};
|
|
1429
|
-
protoOf(TaskApi).updateTask$suspendBridge_1sx5j5_k$ = function (companyId, taskId, updateTaskCommand, $completion) {
|
|
1430
|
-
var tmp = new $updateTask$suspendBridgeCOROUTINE$(this, companyId, taskId, updateTaskCommand, $completion);
|
|
1431
|
-
tmp.result_1 = Unit_instance;
|
|
1432
|
-
tmp.exception_1 = null;
|
|
1433
|
-
return tmp.doResume_5yljmg_k$();
|
|
1434
|
-
};
|
|
1435
|
-
function TaskApi() {
|
|
1436
|
-
}
|
|
1437
1520
|
function Companion() {
|
|
1438
1521
|
}
|
|
1439
1522
|
var Companion_instance_0;
|
|
@@ -4271,6 +4354,14 @@ defineProp(PeriodicTaskIntervalMethod, 'Companion', Companion_getInstance_12, VO
|
|
|
4271
4354
|
export {
|
|
4272
4355
|
taskApi as taskApi,
|
|
4273
4356
|
TaskApi as TaskApi,
|
|
4357
|
+
completeTaskOperation as completeTaskOperation,
|
|
4358
|
+
createMultipleTasksOperation as createMultipleTasksOperation,
|
|
4359
|
+
createTaskOperation as createTaskOperation,
|
|
4360
|
+
deleteTaskOperation as deleteTaskOperation,
|
|
4361
|
+
indexTasksOperation as indexTasksOperation,
|
|
4362
|
+
indexTasksUserOperation as indexTasksUserOperation,
|
|
4363
|
+
unCompleteTaskOperation as unCompleteTaskOperation,
|
|
4364
|
+
updateTaskOperation as updateTaskOperation,
|
|
4274
4365
|
BulkImportTaskCommand as BulkImportTaskCommand,
|
|
4275
4366
|
BulkImportTaskItemResult as BulkImportTaskItemResult,
|
|
4276
4367
|
BulkImportTaskItemStatus as BulkImportTaskItemStatus,
|