@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
|
-
|
|
8
|
-
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
9
|
-
listOfvhqybd2zx248 as listOf_0,
|
|
10
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
11
|
-
replace3le3ie7l9k8aq as replace,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
12
8
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
13
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
14
|
-
createKType31ecntyyaay3k as createKType,
|
|
15
9
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
16
|
-
await3n7kedgocftsv as await_0,
|
|
17
10
|
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
18
12
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
|
+
listOf1jh22dvmctj1r as listOf,
|
|
14
|
+
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
15
|
+
replace3le3ie7l9k8aq as replace,
|
|
19
16
|
Unitkvevlwgzwiuc as Unit,
|
|
17
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
18
|
+
createKType31ecntyyaay3k as createKType,
|
|
19
|
+
listOfvhqybd2zx248 as listOf_0,
|
|
20
20
|
LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
21
21
|
lazy1261dae0bgscp as lazy,
|
|
22
22
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
45
45
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
46
46
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
47
|
-
|
|
47
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
48
|
+
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
48
49
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
49
50
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
50
51
|
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
51
|
-
|
|
52
|
-
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
52
|
+
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
53
53
|
Base64ByteArray15zeye4j39p4v as Base64ByteArray,
|
|
54
54
|
toMultiValue5gsdsvx60e2f as toMultiValue,
|
|
55
55
|
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
@@ -83,28 +83,28 @@ import {
|
|
|
83
83
|
var imul = Math.imul;
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: pre-declaration
|
|
86
|
-
initMetadataForCoroutine($listCompanyBankAccountTransactionsCOROUTINE$, CoroutineImpl);
|
|
87
86
|
initMetadataForCoroutine($listCompanyBankAccountTransactions$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
88
|
-
initMetadataForCoroutine($listCompanyBankAccountsCOROUTINE$, CoroutineImpl);
|
|
89
87
|
initMetadataForCoroutine($listCompanyBankAccounts$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
90
88
|
initMetadataForClass(BankAccountsApi, 'BankAccountsApi', create, ApiClient, VOID, [9, 5, 3]);
|
|
91
|
-
initMetadataForCoroutine($deleteEconomicReportCOROUTINE$, CoroutineImpl);
|
|
92
89
|
initMetadataForCoroutine($deleteEconomicReport$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
93
|
-
initMetadataForCoroutine($indexCompaniesEconomyStatusCOROUTINE$, CoroutineImpl);
|
|
94
90
|
initMetadataForCoroutine($indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForCoroutine($indexEconomicReportCOROUTINE$, CoroutineImpl);
|
|
96
91
|
initMetadataForCoroutine($indexEconomicReport$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
97
|
-
initMetadataForCoroutine($indexEconomicReportsUserCOROUTINE$, CoroutineImpl);
|
|
98
92
|
initMetadataForCoroutine($indexEconomicReportsUser$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
99
|
-
initMetadataForCoroutine($indexEconomyStatusCOROUTINE$, CoroutineImpl);
|
|
100
93
|
initMetadataForCoroutine($indexEconomyStatus$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
101
|
-
initMetadataForCoroutine($orderEconomicReportCOROUTINE$, CoroutineImpl);
|
|
102
94
|
initMetadataForCoroutine($orderEconomicReport$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
103
|
-
initMetadataForCoroutine($putEconomicReportFileCOROUTINE$, CoroutineImpl);
|
|
104
95
|
initMetadataForCoroutine($putEconomicReportFile$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
105
|
-
initMetadataForCoroutine($showEconomicReportCOROUTINE$, CoroutineImpl);
|
|
106
96
|
initMetadataForCoroutine($showEconomicReport$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
107
97
|
initMetadataForClass(EconomyApi, 'EconomyApi', create_0, ApiClient, VOID, [2, 0, 7, 4, 3]);
|
|
98
|
+
initMetadataForCoroutine($deleteEconomicReportOperationCOROUTINE$, CoroutineImpl);
|
|
99
|
+
initMetadataForCoroutine($indexCompaniesEconomyStatusOperationCOROUTINE$, CoroutineImpl);
|
|
100
|
+
initMetadataForCoroutine($indexEconomicReportOperationCOROUTINE$, CoroutineImpl);
|
|
101
|
+
initMetadataForCoroutine($indexEconomicReportsUserOperationCOROUTINE$, CoroutineImpl);
|
|
102
|
+
initMetadataForCoroutine($indexEconomyStatusOperationCOROUTINE$, CoroutineImpl);
|
|
103
|
+
initMetadataForCoroutine($listCompanyBankAccountTransactionsOperationCOROUTINE$, CoroutineImpl);
|
|
104
|
+
initMetadataForCoroutine($listCompanyBankAccountsOperationCOROUTINE$, CoroutineImpl);
|
|
105
|
+
initMetadataForCoroutine($orderEconomicReportOperationCOROUTINE$, CoroutineImpl);
|
|
106
|
+
initMetadataForCoroutine($putEconomicReportFileOperationCOROUTINE$, CoroutineImpl);
|
|
107
|
+
initMetadataForCoroutine($showEconomicReportOperationCOROUTINE$, CoroutineImpl);
|
|
108
108
|
initMetadataForCompanion(Companion);
|
|
109
109
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
110
110
|
initMetadataForClass(AccountList, 'AccountList', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
@@ -177,125 +177,6 @@ function BankAccountsApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
177
177
|
function createWithClient(baseUrl, httpClient) {
|
|
178
178
|
return BankAccountsApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(BankAccountsApi)));
|
|
179
179
|
}
|
|
180
|
-
function $listCompanyBankAccountTransactionsCOROUTINE$(_this__u8e3s4, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
181
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
182
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
183
|
-
this.companyId_1 = companyId;
|
|
184
|
-
this.account_1 = account;
|
|
185
|
-
this.parent_1 = parent;
|
|
186
|
-
this.from_1 = from;
|
|
187
|
-
this.to_1 = to;
|
|
188
|
-
this.fields_1 = fields;
|
|
189
|
-
this.pageToken_1 = pageToken;
|
|
190
|
-
this.autoPaginate_1 = autoPaginate;
|
|
191
|
-
this.count_1 = count;
|
|
192
|
-
}
|
|
193
|
-
protoOf($listCompanyBankAccountTransactionsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
194
|
-
var suspendResult = this.result_1;
|
|
195
|
-
$sm: do
|
|
196
|
-
try {
|
|
197
|
-
var tmp = this.state_1;
|
|
198
|
-
switch (tmp) {
|
|
199
|
-
case 0:
|
|
200
|
-
this.exceptionState_1 = 2;
|
|
201
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
202
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
203
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
204
|
-
if (this.parent_1 == null)
|
|
205
|
-
null;
|
|
206
|
-
else {
|
|
207
|
-
var value = listOf_0(this.parent_1);
|
|
208
|
-
localVariableQuery.put_4fpzoq_k$('parent', value);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (this.from_1 == null)
|
|
212
|
-
null;
|
|
213
|
-
else {
|
|
214
|
-
var value_0 = listOf_0(this.from_1);
|
|
215
|
-
localVariableQuery.put_4fpzoq_k$('from', value_0);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if (this.to_1 == null)
|
|
219
|
-
null;
|
|
220
|
-
else {
|
|
221
|
-
var value_1 = listOf_0(this.to_1);
|
|
222
|
-
localVariableQuery.put_4fpzoq_k$('to', value_1);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (this.fields_1 == null)
|
|
226
|
-
null;
|
|
227
|
-
else {
|
|
228
|
-
var value_2 = listOf_0(this.fields_1);
|
|
229
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
if (this.pageToken_1 == null)
|
|
233
|
-
null;
|
|
234
|
-
else {
|
|
235
|
-
var tmp2 = 'pageToken';
|
|
236
|
-
var value_3 = listOf_0(this.pageToken_1);
|
|
237
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_3);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (this.autoPaginate_1 == null)
|
|
241
|
-
null;
|
|
242
|
-
else {
|
|
243
|
-
var tmp2_0 = 'autoPaginate';
|
|
244
|
-
var value_4 = listOf_0('' + this.autoPaginate_1);
|
|
245
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_4);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (this.count_1 == null)
|
|
249
|
-
null;
|
|
250
|
-
else {
|
|
251
|
-
var value_5 = listOf_0('' + this.count_1);
|
|
252
|
-
localVariableQuery.put_4fpzoq_k$('count', value_5);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
256
|
-
var tmp7_method = RequestMethod_GET_getInstance();
|
|
257
|
-
var tmp8_path = replace(replace('/companies/{companyId}/bankAccounts/{account}/transactions', '{companyId}', this.companyId_1.toString()), '{account}', this.account_1);
|
|
258
|
-
var localVariableConfig = new RequestConfig(tmp7_method, tmp8_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
259
|
-
this.state_1 = 1;
|
|
260
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
261
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
262
|
-
return suspendResult;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
continue $sm;
|
|
266
|
-
case 1:
|
|
267
|
-
var this_0 = suspendResult;
|
|
268
|
-
var tmp_0 = getKClass(PagedListBankMovement);
|
|
269
|
-
var tmp_1 = null instanceof PagedListBankMovement;
|
|
270
|
-
var tmp_2;
|
|
271
|
-
try {
|
|
272
|
-
tmp_2 = createKType(getKClass(PagedListBankMovement), arrayOf([]), false);
|
|
273
|
-
} catch ($p) {
|
|
274
|
-
var tmp_3;
|
|
275
|
-
if ($p instanceof Error) {
|
|
276
|
-
var _unused_var__etf5q3 = $p;
|
|
277
|
-
tmp_3 = null;
|
|
278
|
-
} else {
|
|
279
|
-
throw $p;
|
|
280
|
-
}
|
|
281
|
-
tmp_2 = tmp_3;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
285
|
-
case 2:
|
|
286
|
-
throw this.exception_1;
|
|
287
|
-
}
|
|
288
|
-
} catch ($p_0) {
|
|
289
|
-
var e = $p_0;
|
|
290
|
-
if (this.exceptionState_1 === 2) {
|
|
291
|
-
throw e;
|
|
292
|
-
} else {
|
|
293
|
-
this.state_1 = this.exceptionState_1;
|
|
294
|
-
this.exception_1 = e;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
while (true);
|
|
298
|
-
};
|
|
299
180
|
function $listCompanyBankAccountTransactions$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
300
181
|
CoroutineImpl.call(this, resultContinuation);
|
|
301
182
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -357,100 +238,6 @@ protoOf($listCompanyBankAccountTransactions$suspendBridgeCOROUTINE$).doResume_5y
|
|
|
357
238
|
}
|
|
358
239
|
while (true);
|
|
359
240
|
};
|
|
360
|
-
function $listCompanyBankAccountsCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
361
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
362
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
363
|
-
this.companyId_1 = companyId;
|
|
364
|
-
this.fields_1 = fields;
|
|
365
|
-
this.pageToken_1 = pageToken;
|
|
366
|
-
this.autoPaginate_1 = autoPaginate;
|
|
367
|
-
this.count_1 = count;
|
|
368
|
-
}
|
|
369
|
-
protoOf($listCompanyBankAccountsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
370
|
-
var suspendResult = this.result_1;
|
|
371
|
-
$sm: do
|
|
372
|
-
try {
|
|
373
|
-
var tmp = this.state_1;
|
|
374
|
-
switch (tmp) {
|
|
375
|
-
case 0:
|
|
376
|
-
this.exceptionState_1 = 2;
|
|
377
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
378
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
379
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
380
|
-
if (this.fields_1 == null)
|
|
381
|
-
null;
|
|
382
|
-
else {
|
|
383
|
-
var value = listOf_0(this.fields_1);
|
|
384
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
if (this.pageToken_1 == null)
|
|
388
|
-
null;
|
|
389
|
-
else {
|
|
390
|
-
var tmp2 = 'pageToken';
|
|
391
|
-
var value_0 = listOf_0(this.pageToken_1);
|
|
392
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
if (this.autoPaginate_1 == null)
|
|
396
|
-
null;
|
|
397
|
-
else {
|
|
398
|
-
var tmp2_0 = 'autoPaginate';
|
|
399
|
-
var value_1 = listOf_0('' + this.autoPaginate_1);
|
|
400
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
if (this.count_1 == null)
|
|
404
|
-
null;
|
|
405
|
-
else {
|
|
406
|
-
var value_2 = listOf_0('' + this.count_1);
|
|
407
|
-
localVariableQuery.put_4fpzoq_k$('count', value_2);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
411
|
-
var tmp4_method = RequestMethod_GET_getInstance();
|
|
412
|
-
var tmp5_path = replace('/companies/{companyId}/bankAccounts', '{companyId}', this.companyId_1.toString());
|
|
413
|
-
var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
414
|
-
this.state_1 = 1;
|
|
415
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
416
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
417
|
-
return suspendResult;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
continue $sm;
|
|
421
|
-
case 1:
|
|
422
|
-
var this_0 = suspendResult;
|
|
423
|
-
var tmp_0 = getKClass(PagedListBankAccount);
|
|
424
|
-
var tmp_1 = null instanceof PagedListBankAccount;
|
|
425
|
-
var tmp_2;
|
|
426
|
-
try {
|
|
427
|
-
tmp_2 = createKType(getKClass(PagedListBankAccount), arrayOf([]), false);
|
|
428
|
-
} catch ($p) {
|
|
429
|
-
var tmp_3;
|
|
430
|
-
if ($p instanceof Error) {
|
|
431
|
-
var _unused_var__etf5q3 = $p;
|
|
432
|
-
tmp_3 = null;
|
|
433
|
-
} else {
|
|
434
|
-
throw $p;
|
|
435
|
-
}
|
|
436
|
-
tmp_2 = tmp_3;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
440
|
-
case 2:
|
|
441
|
-
throw this.exception_1;
|
|
442
|
-
}
|
|
443
|
-
} catch ($p_0) {
|
|
444
|
-
var e = $p_0;
|
|
445
|
-
if (this.exceptionState_1 === 2) {
|
|
446
|
-
throw e;
|
|
447
|
-
} else {
|
|
448
|
-
this.state_1 = this.exceptionState_1;
|
|
449
|
-
this.exception_1 = e;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
while (true);
|
|
453
|
-
};
|
|
454
241
|
function $listCompanyBankAccounts$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
455
242
|
CoroutineImpl.call(this, resultContinuation);
|
|
456
243
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -509,10 +296,7 @@ protoOf($listCompanyBankAccounts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
509
296
|
while (true);
|
|
510
297
|
};
|
|
511
298
|
protoOf(BankAccountsApi).listCompanyBankAccountTransactions_fb8u5x_k$ = function (companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion) {
|
|
512
|
-
|
|
513
|
-
tmp.result_1 = Unit_instance;
|
|
514
|
-
tmp.exception_1 = null;
|
|
515
|
-
return tmp.doResume_5yljmg_k$();
|
|
299
|
+
return listCompanyBankAccountTransactionsOperation_0(this, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion);
|
|
516
300
|
};
|
|
517
301
|
protoOf(BankAccountsApi).listCompanyBankAccountTransactions$default_cdm58b_k$ = function (companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
518
302
|
from = from === VOID ? null : from;
|
|
@@ -536,10 +320,7 @@ protoOf(BankAccountsApi).listCompanyBankAccountTransactions$suspendBridge_5lsuh6
|
|
|
536
320
|
return tmp.doResume_5yljmg_k$();
|
|
537
321
|
};
|
|
538
322
|
protoOf(BankAccountsApi).listCompanyBankAccounts_bv0r2h_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
539
|
-
|
|
540
|
-
tmp.result_1 = Unit_instance;
|
|
541
|
-
tmp.exception_1 = null;
|
|
542
|
-
return tmp.doResume_5yljmg_k$();
|
|
323
|
+
return listCompanyBankAccountsOperation_0(this, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
543
324
|
};
|
|
544
325
|
protoOf(BankAccountsApi).listCompanyBankAccounts$default_nl4pp1_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
545
326
|
fields = fields === VOID ? null : fields;
|
|
@@ -582,59 +363,52 @@ function EconomyApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
582
363
|
function createWithClient_0(baseUrl, httpClient) {
|
|
583
364
|
return EconomyApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(EconomyApi)));
|
|
584
365
|
}
|
|
585
|
-
function $
|
|
366
|
+
function $deleteEconomicReport$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, reportId, resultContinuation) {
|
|
586
367
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
368
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
588
369
|
this.companyId_1 = companyId;
|
|
589
370
|
this.reportId_1 = reportId;
|
|
590
371
|
}
|
|
591
|
-
protoOf($
|
|
372
|
+
protoOf($deleteEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
592
373
|
var suspendResult = this.result_1;
|
|
593
374
|
$sm: do
|
|
594
375
|
try {
|
|
595
376
|
var tmp = this.state_1;
|
|
596
377
|
switch (tmp) {
|
|
597
378
|
case 0:
|
|
598
|
-
this.exceptionState_1 =
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
var tmp1_path = replace(replace('/companies/{companyId}/economy/economicReports/{reportId}', '{companyId}', this.companyId_1.toString()), '{reportId}', this.reportId_1.toString());
|
|
605
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
606
|
-
this.state_1 = 1;
|
|
607
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
608
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
|
-
return suspendResult;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
continue $sm;
|
|
613
|
-
case 1:
|
|
614
|
-
var this_0 = suspendResult;
|
|
615
|
-
var tmp_0 = getKClass(Unit);
|
|
616
|
-
var tmp_1 = null instanceof Unit;
|
|
617
|
-
var tmp_2;
|
|
618
|
-
try {
|
|
619
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
620
|
-
} catch ($p) {
|
|
621
|
-
var tmp_3;
|
|
622
|
-
if ($p instanceof Error) {
|
|
623
|
-
var _unused_var__etf5q3 = $p;
|
|
624
|
-
tmp_3 = null;
|
|
625
|
-
} else {
|
|
626
|
-
throw $p;
|
|
379
|
+
this.exceptionState_1 = 4;
|
|
380
|
+
if (this._this__u8e3s4__1.deleteEconomicReport === protoOf(EconomyApi).deleteEconomicReport) {
|
|
381
|
+
this.state_1 = 2;
|
|
382
|
+
suspendResult = this._this__u8e3s4__1.deleteEconomicReport_y5e3jk_k$(this.companyId_1, this.reportId_1, this);
|
|
383
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
384
|
+
return suspendResult;
|
|
627
385
|
}
|
|
628
|
-
|
|
386
|
+
continue $sm;
|
|
387
|
+
} else {
|
|
388
|
+
this.state_1 = 1;
|
|
389
|
+
suspendResult = await_0(this._this__u8e3s4__1.deleteEconomicReport(this.companyId_1, this.reportId_1), this);
|
|
390
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
391
|
+
return suspendResult;
|
|
392
|
+
}
|
|
393
|
+
continue $sm;
|
|
629
394
|
}
|
|
630
395
|
|
|
631
|
-
|
|
396
|
+
case 1:
|
|
397
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
398
|
+
this.state_1 = 3;
|
|
399
|
+
continue $sm;
|
|
632
400
|
case 2:
|
|
401
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
402
|
+
this.state_1 = 3;
|
|
403
|
+
continue $sm;
|
|
404
|
+
case 3:
|
|
405
|
+
return this.WHEN_RESULT0__1;
|
|
406
|
+
case 4:
|
|
633
407
|
throw this.exception_1;
|
|
634
408
|
}
|
|
635
|
-
} catch ($
|
|
636
|
-
var e = $
|
|
637
|
-
if (this.exceptionState_1 ===
|
|
409
|
+
} catch ($p) {
|
|
410
|
+
var e = $p;
|
|
411
|
+
if (this.exceptionState_1 === 4) {
|
|
638
412
|
throw e;
|
|
639
413
|
} else {
|
|
640
414
|
this.state_1 = this.exceptionState_1;
|
|
@@ -643,13 +417,11 @@ protoOf($deleteEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
643
417
|
}
|
|
644
418
|
while (true);
|
|
645
419
|
};
|
|
646
|
-
function $
|
|
420
|
+
function $indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
647
421
|
CoroutineImpl.call(this, resultContinuation);
|
|
648
422
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
649
|
-
this.companyId_1 = companyId;
|
|
650
|
-
this.reportId_1 = reportId;
|
|
651
423
|
}
|
|
652
|
-
protoOf($
|
|
424
|
+
protoOf($indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
653
425
|
var suspendResult = this.result_1;
|
|
654
426
|
$sm: do
|
|
655
427
|
try {
|
|
@@ -657,16 +429,16 @@ protoOf($deleteEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = func
|
|
|
657
429
|
switch (tmp) {
|
|
658
430
|
case 0:
|
|
659
431
|
this.exceptionState_1 = 4;
|
|
660
|
-
if (this._this__u8e3s4__1.
|
|
432
|
+
if (this._this__u8e3s4__1.indexCompaniesEconomyStatus === protoOf(EconomyApi).indexCompaniesEconomyStatus) {
|
|
661
433
|
this.state_1 = 2;
|
|
662
|
-
suspendResult = this._this__u8e3s4__1.
|
|
434
|
+
suspendResult = this._this__u8e3s4__1.indexCompaniesEconomyStatus_7qd8zb_k$(this);
|
|
663
435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
436
|
return suspendResult;
|
|
665
437
|
}
|
|
666
438
|
continue $sm;
|
|
667
439
|
} else {
|
|
668
440
|
this.state_1 = 1;
|
|
669
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
441
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexCompaniesEconomyStatus(), this);
|
|
670
442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
671
443
|
return suspendResult;
|
|
672
444
|
}
|
|
@@ -697,56 +469,52 @@ protoOf($deleteEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = func
|
|
|
697
469
|
}
|
|
698
470
|
while (true);
|
|
699
471
|
};
|
|
700
|
-
function $
|
|
472
|
+
function $indexEconomicReport$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, resultContinuation) {
|
|
701
473
|
CoroutineImpl.call(this, resultContinuation);
|
|
702
474
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
475
|
+
this.companyId_1 = companyId;
|
|
476
|
+
this.fields_1 = fields;
|
|
703
477
|
}
|
|
704
|
-
protoOf($
|
|
478
|
+
protoOf($indexEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
705
479
|
var suspendResult = this.result_1;
|
|
706
480
|
$sm: do
|
|
707
481
|
try {
|
|
708
482
|
var tmp = this.state_1;
|
|
709
483
|
switch (tmp) {
|
|
710
484
|
case 0:
|
|
711
|
-
this.exceptionState_1 =
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/companies/economy/status', localVariableHeaders, VOID, localVariableQuery, true);
|
|
718
|
-
this.state_1 = 1;
|
|
719
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
720
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
721
|
-
return suspendResult;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
continue $sm;
|
|
725
|
-
case 1:
|
|
726
|
-
var this_0 = suspendResult;
|
|
727
|
-
var tmp_0 = getKClass(Base64ByteArray);
|
|
728
|
-
var tmp_1 = null instanceof Base64ByteArray;
|
|
729
|
-
var tmp_2;
|
|
730
|
-
try {
|
|
731
|
-
tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
|
|
732
|
-
} catch ($p) {
|
|
733
|
-
var tmp_3;
|
|
734
|
-
if ($p instanceof Error) {
|
|
735
|
-
var _unused_var__etf5q3 = $p;
|
|
736
|
-
tmp_3 = null;
|
|
737
|
-
} else {
|
|
738
|
-
throw $p;
|
|
485
|
+
this.exceptionState_1 = 4;
|
|
486
|
+
if (this._this__u8e3s4__1.indexEconomicReport === protoOf(EconomyApi).indexEconomicReport) {
|
|
487
|
+
this.state_1 = 2;
|
|
488
|
+
suspendResult = this._this__u8e3s4__1.indexEconomicReport$default_a0yzpm_k$(this.companyId_1, this.fields_1, this);
|
|
489
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
490
|
+
return suspendResult;
|
|
739
491
|
}
|
|
740
|
-
|
|
492
|
+
continue $sm;
|
|
493
|
+
} else {
|
|
494
|
+
this.state_1 = 1;
|
|
495
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexEconomicReport(this.companyId_1, this.fields_1), this);
|
|
496
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
497
|
+
return suspendResult;
|
|
498
|
+
}
|
|
499
|
+
continue $sm;
|
|
741
500
|
}
|
|
742
501
|
|
|
743
|
-
|
|
502
|
+
case 1:
|
|
503
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
504
|
+
this.state_1 = 3;
|
|
505
|
+
continue $sm;
|
|
744
506
|
case 2:
|
|
507
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
508
|
+
this.state_1 = 3;
|
|
509
|
+
continue $sm;
|
|
510
|
+
case 3:
|
|
511
|
+
return this.WHEN_RESULT0__1;
|
|
512
|
+
case 4:
|
|
745
513
|
throw this.exception_1;
|
|
746
514
|
}
|
|
747
|
-
} catch ($
|
|
748
|
-
var e = $
|
|
749
|
-
if (this.exceptionState_1 ===
|
|
515
|
+
} catch ($p) {
|
|
516
|
+
var e = $p;
|
|
517
|
+
if (this.exceptionState_1 === 4) {
|
|
750
518
|
throw e;
|
|
751
519
|
} else {
|
|
752
520
|
this.state_1 = this.exceptionState_1;
|
|
@@ -755,11 +523,18 @@ protoOf($indexCompaniesEconomyStatusCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
755
523
|
}
|
|
756
524
|
while (true);
|
|
757
525
|
};
|
|
758
|
-
function $
|
|
526
|
+
function $indexEconomicReportsUser$suspendBridgeCOROUTINE$(_this__u8e3s4, companyIds, status, year, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
759
527
|
CoroutineImpl.call(this, resultContinuation);
|
|
760
528
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
529
|
+
this.companyIds_1 = companyIds;
|
|
530
|
+
this.status_1 = status;
|
|
531
|
+
this.year_1 = year;
|
|
532
|
+
this.fields_1 = fields;
|
|
533
|
+
this.pageToken_1 = pageToken;
|
|
534
|
+
this.autoPaginate_1 = autoPaginate;
|
|
535
|
+
this.count_1 = count;
|
|
761
536
|
}
|
|
762
|
-
protoOf($
|
|
537
|
+
protoOf($indexEconomicReportsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
763
538
|
var suspendResult = this.result_1;
|
|
764
539
|
$sm: do
|
|
765
540
|
try {
|
|
@@ -767,16 +542,16 @@ protoOf($indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
767
542
|
switch (tmp) {
|
|
768
543
|
case 0:
|
|
769
544
|
this.exceptionState_1 = 4;
|
|
770
|
-
if (this._this__u8e3s4__1.
|
|
545
|
+
if (this._this__u8e3s4__1.indexEconomicReportsUser === protoOf(EconomyApi).indexEconomicReportsUser) {
|
|
771
546
|
this.state_1 = 2;
|
|
772
|
-
suspendResult = this._this__u8e3s4__1.
|
|
547
|
+
suspendResult = this._this__u8e3s4__1.indexEconomicReportsUser$default_i4fpmn_k$(this.companyIds_1, this.status_1, this.year_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
773
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
774
549
|
return suspendResult;
|
|
775
550
|
}
|
|
776
551
|
continue $sm;
|
|
777
552
|
} else {
|
|
778
553
|
this.state_1 = 1;
|
|
779
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
554
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexEconomicReportsUser(this.companyIds_1, this.status_1, this.year_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
780
555
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
781
556
|
return suspendResult;
|
|
782
557
|
}
|
|
@@ -807,66 +582,52 @@ protoOf($indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$).doResume_5yljmg_k$
|
|
|
807
582
|
}
|
|
808
583
|
while (true);
|
|
809
584
|
};
|
|
810
|
-
function $
|
|
585
|
+
function $indexEconomyStatus$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, resultContinuation) {
|
|
811
586
|
CoroutineImpl.call(this, resultContinuation);
|
|
812
587
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
813
588
|
this.companyId_1 = companyId;
|
|
814
589
|
this.fields_1 = fields;
|
|
815
590
|
}
|
|
816
|
-
protoOf($
|
|
591
|
+
protoOf($indexEconomyStatus$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
817
592
|
var suspendResult = this.result_1;
|
|
818
593
|
$sm: do
|
|
819
594
|
try {
|
|
820
595
|
var tmp = this.state_1;
|
|
821
596
|
switch (tmp) {
|
|
822
597
|
case 0:
|
|
823
|
-
this.exceptionState_1 =
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
else {
|
|
830
|
-
var value = listOf_0(this.fields_1);
|
|
831
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
835
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
836
|
-
var tmp2_path = replace('/companies/{companyId}/economy/economicReports', '{companyId}', this.companyId_1.toString());
|
|
837
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
838
|
-
this.state_1 = 1;
|
|
839
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
840
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
841
|
-
return suspendResult;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
continue $sm;
|
|
845
|
-
case 1:
|
|
846
|
-
var this_0 = suspendResult;
|
|
847
|
-
var tmp_0 = getKClass(EconomicReportResponse);
|
|
848
|
-
var tmp_1 = null instanceof EconomicReportResponse;
|
|
849
|
-
var tmp_2;
|
|
850
|
-
try {
|
|
851
|
-
tmp_2 = createKType(getKClass(EconomicReportResponse), arrayOf([]), false);
|
|
852
|
-
} catch ($p) {
|
|
853
|
-
var tmp_3;
|
|
854
|
-
if ($p instanceof Error) {
|
|
855
|
-
var _unused_var__etf5q3 = $p;
|
|
856
|
-
tmp_3 = null;
|
|
857
|
-
} else {
|
|
858
|
-
throw $p;
|
|
598
|
+
this.exceptionState_1 = 4;
|
|
599
|
+
if (this._this__u8e3s4__1.indexEconomyStatus === protoOf(EconomyApi).indexEconomyStatus) {
|
|
600
|
+
this.state_1 = 2;
|
|
601
|
+
suspendResult = this._this__u8e3s4__1.indexEconomyStatus$default_1cj90e_k$(this.companyId_1, this.fields_1, this);
|
|
602
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
603
|
+
return suspendResult;
|
|
859
604
|
}
|
|
860
|
-
|
|
605
|
+
continue $sm;
|
|
606
|
+
} else {
|
|
607
|
+
this.state_1 = 1;
|
|
608
|
+
suspendResult = await_0(this._this__u8e3s4__1.indexEconomyStatus(this.companyId_1, this.fields_1), this);
|
|
609
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
|
+
return suspendResult;
|
|
611
|
+
}
|
|
612
|
+
continue $sm;
|
|
861
613
|
}
|
|
862
614
|
|
|
863
|
-
|
|
615
|
+
case 1:
|
|
616
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
617
|
+
this.state_1 = 3;
|
|
618
|
+
continue $sm;
|
|
864
619
|
case 2:
|
|
620
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
621
|
+
this.state_1 = 3;
|
|
622
|
+
continue $sm;
|
|
623
|
+
case 3:
|
|
624
|
+
return this.WHEN_RESULT0__1;
|
|
625
|
+
case 4:
|
|
865
626
|
throw this.exception_1;
|
|
866
627
|
}
|
|
867
|
-
} catch ($
|
|
868
|
-
var e = $
|
|
869
|
-
if (this.exceptionState_1 ===
|
|
628
|
+
} catch ($p) {
|
|
629
|
+
var e = $p;
|
|
630
|
+
if (this.exceptionState_1 === 4) {
|
|
870
631
|
throw e;
|
|
871
632
|
} else {
|
|
872
633
|
this.state_1 = this.exceptionState_1;
|
|
@@ -875,13 +636,13 @@ protoOf($indexEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
875
636
|
}
|
|
876
637
|
while (true);
|
|
877
638
|
};
|
|
878
|
-
function $
|
|
639
|
+
function $orderEconomicReport$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, orderEconomicReportCommand, resultContinuation) {
|
|
879
640
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
641
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
881
642
|
this.companyId_1 = companyId;
|
|
882
|
-
this.
|
|
643
|
+
this.orderEconomicReportCommand_1 = orderEconomicReportCommand;
|
|
883
644
|
}
|
|
884
|
-
protoOf($
|
|
645
|
+
protoOf($orderEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
885
646
|
var suspendResult = this.result_1;
|
|
886
647
|
$sm: do
|
|
887
648
|
try {
|
|
@@ -889,16 +650,16 @@ protoOf($indexEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
889
650
|
switch (tmp) {
|
|
890
651
|
case 0:
|
|
891
652
|
this.exceptionState_1 = 4;
|
|
892
|
-
if (this._this__u8e3s4__1.
|
|
653
|
+
if (this._this__u8e3s4__1.orderEconomicReport === protoOf(EconomyApi).orderEconomicReport) {
|
|
893
654
|
this.state_1 = 2;
|
|
894
|
-
suspendResult = this._this__u8e3s4__1.
|
|
655
|
+
suspendResult = this._this__u8e3s4__1.orderEconomicReport_sl4pt0_k$(this.companyId_1, this.orderEconomicReportCommand_1, this);
|
|
895
656
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
896
657
|
return suspendResult;
|
|
897
658
|
}
|
|
898
659
|
continue $sm;
|
|
899
660
|
} else {
|
|
900
661
|
this.state_1 = 1;
|
|
901
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
662
|
+
suspendResult = await_0(this._this__u8e3s4__1.orderEconomicReport(this.companyId_1, this.orderEconomicReportCommand_1), this);
|
|
902
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
903
664
|
return suspendResult;
|
|
904
665
|
}
|
|
@@ -929,40 +690,534 @@ protoOf($indexEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
|
|
|
929
690
|
}
|
|
930
691
|
while (true);
|
|
931
692
|
};
|
|
932
|
-
function $
|
|
693
|
+
function $putEconomicReportFile$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, reportId, economicReportType, documentId, resultContinuation) {
|
|
933
694
|
CoroutineImpl.call(this, resultContinuation);
|
|
934
695
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
939
|
-
this.pageToken_1 = pageToken;
|
|
940
|
-
this.autoPaginate_1 = autoPaginate;
|
|
941
|
-
this.count_1 = count;
|
|
696
|
+
this.companyId_1 = companyId;
|
|
697
|
+
this.reportId_1 = reportId;
|
|
698
|
+
this.economicReportType_1 = economicReportType;
|
|
699
|
+
this.documentId_1 = documentId;
|
|
942
700
|
}
|
|
943
|
-
protoOf($
|
|
701
|
+
protoOf($putEconomicReportFile$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
944
702
|
var suspendResult = this.result_1;
|
|
945
703
|
$sm: do
|
|
946
704
|
try {
|
|
947
705
|
var tmp = this.state_1;
|
|
948
706
|
switch (tmp) {
|
|
949
707
|
case 0:
|
|
950
|
-
this.exceptionState_1 =
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
708
|
+
this.exceptionState_1 = 4;
|
|
709
|
+
if (this._this__u8e3s4__1.putEconomicReportFile === protoOf(EconomyApi).putEconomicReportFile) {
|
|
710
|
+
this.state_1 = 2;
|
|
711
|
+
suspendResult = this._this__u8e3s4__1.putEconomicReportFile_hvdf1i_k$(this.companyId_1, this.reportId_1, this.economicReportType_1, this.documentId_1, this);
|
|
712
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
713
|
+
return suspendResult;
|
|
714
|
+
}
|
|
715
|
+
continue $sm;
|
|
716
|
+
} else {
|
|
717
|
+
this.state_1 = 1;
|
|
718
|
+
suspendResult = await_0(this._this__u8e3s4__1.putEconomicReportFile(this.companyId_1, this.reportId_1, this.economicReportType_1, this.documentId_1), this);
|
|
719
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
720
|
+
return suspendResult;
|
|
721
|
+
}
|
|
722
|
+
continue $sm;
|
|
961
723
|
}
|
|
962
724
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
725
|
+
case 1:
|
|
726
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
727
|
+
this.state_1 = 3;
|
|
728
|
+
continue $sm;
|
|
729
|
+
case 2:
|
|
730
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
731
|
+
this.state_1 = 3;
|
|
732
|
+
continue $sm;
|
|
733
|
+
case 3:
|
|
734
|
+
return this.WHEN_RESULT0__1;
|
|
735
|
+
case 4:
|
|
736
|
+
throw this.exception_1;
|
|
737
|
+
}
|
|
738
|
+
} catch ($p) {
|
|
739
|
+
var e = $p;
|
|
740
|
+
if (this.exceptionState_1 === 4) {
|
|
741
|
+
throw e;
|
|
742
|
+
} else {
|
|
743
|
+
this.state_1 = this.exceptionState_1;
|
|
744
|
+
this.exception_1 = e;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
while (true);
|
|
748
|
+
};
|
|
749
|
+
function $showEconomicReport$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, reportId, fields, resultContinuation) {
|
|
750
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
751
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
752
|
+
this.companyId_1 = companyId;
|
|
753
|
+
this.reportId_1 = reportId;
|
|
754
|
+
this.fields_1 = fields;
|
|
755
|
+
}
|
|
756
|
+
protoOf($showEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
757
|
+
var suspendResult = this.result_1;
|
|
758
|
+
$sm: do
|
|
759
|
+
try {
|
|
760
|
+
var tmp = this.state_1;
|
|
761
|
+
switch (tmp) {
|
|
762
|
+
case 0:
|
|
763
|
+
this.exceptionState_1 = 4;
|
|
764
|
+
if (this._this__u8e3s4__1.showEconomicReport === protoOf(EconomyApi).showEconomicReport) {
|
|
765
|
+
this.state_1 = 2;
|
|
766
|
+
suspendResult = this._this__u8e3s4__1.showEconomicReport$default_jsfgvg_k$(this.companyId_1, this.reportId_1, this.fields_1, this);
|
|
767
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
768
|
+
return suspendResult;
|
|
769
|
+
}
|
|
770
|
+
continue $sm;
|
|
771
|
+
} else {
|
|
772
|
+
this.state_1 = 1;
|
|
773
|
+
suspendResult = await_0(this._this__u8e3s4__1.showEconomicReport(this.companyId_1, this.reportId_1, this.fields_1), this);
|
|
774
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
775
|
+
return suspendResult;
|
|
776
|
+
}
|
|
777
|
+
continue $sm;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
case 1:
|
|
781
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
782
|
+
this.state_1 = 3;
|
|
783
|
+
continue $sm;
|
|
784
|
+
case 2:
|
|
785
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
786
|
+
this.state_1 = 3;
|
|
787
|
+
continue $sm;
|
|
788
|
+
case 3:
|
|
789
|
+
return this.WHEN_RESULT0__1;
|
|
790
|
+
case 4:
|
|
791
|
+
throw this.exception_1;
|
|
792
|
+
}
|
|
793
|
+
} catch ($p) {
|
|
794
|
+
var e = $p;
|
|
795
|
+
if (this.exceptionState_1 === 4) {
|
|
796
|
+
throw e;
|
|
797
|
+
} else {
|
|
798
|
+
this.state_1 = this.exceptionState_1;
|
|
799
|
+
this.exception_1 = e;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
while (true);
|
|
803
|
+
};
|
|
804
|
+
protoOf(EconomyApi).deleteEconomicReport_y5e3jk_k$ = function (companyId, reportId, $completion) {
|
|
805
|
+
return deleteEconomicReportOperation_0(this, companyId, reportId, $completion);
|
|
806
|
+
};
|
|
807
|
+
protoOf(EconomyApi).deleteEconomicReport = function (companyId, reportId) {
|
|
808
|
+
var tmp = this;
|
|
809
|
+
return promisify(function ($completion) {
|
|
810
|
+
return tmp.deleteEconomicReport_y5e3jk_k$(companyId, reportId, $completion);
|
|
811
|
+
});
|
|
812
|
+
};
|
|
813
|
+
protoOf(EconomyApi).deleteEconomicReport$suspendBridge_1dti6p_k$ = function (companyId, reportId, $completion) {
|
|
814
|
+
var tmp = new $deleteEconomicReport$suspendBridgeCOROUTINE$(this, companyId, reportId, $completion);
|
|
815
|
+
tmp.result_1 = Unit_instance;
|
|
816
|
+
tmp.exception_1 = null;
|
|
817
|
+
return tmp.doResume_5yljmg_k$();
|
|
818
|
+
};
|
|
819
|
+
protoOf(EconomyApi).indexCompaniesEconomyStatus_7qd8zb_k$ = function ($completion) {
|
|
820
|
+
return indexCompaniesEconomyStatusOperation_0(this, $completion);
|
|
821
|
+
};
|
|
822
|
+
protoOf(EconomyApi).indexCompaniesEconomyStatus = function () {
|
|
823
|
+
var tmp = this;
|
|
824
|
+
return promisify(function ($completion) {
|
|
825
|
+
return tmp.indexCompaniesEconomyStatus_7qd8zb_k$($completion);
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
protoOf(EconomyApi).indexCompaniesEconomyStatus$suspendBridge_2m1rfa_k$ = function ($completion) {
|
|
829
|
+
var tmp = new $indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$(this, $completion);
|
|
830
|
+
tmp.result_1 = Unit_instance;
|
|
831
|
+
tmp.exception_1 = null;
|
|
832
|
+
return tmp.doResume_5yljmg_k$();
|
|
833
|
+
};
|
|
834
|
+
protoOf(EconomyApi).indexEconomicReport_1xxx2z_k$ = function (companyId, fields, $completion) {
|
|
835
|
+
return indexEconomicReportOperation_0(this, companyId, fields, $completion);
|
|
836
|
+
};
|
|
837
|
+
protoOf(EconomyApi).indexEconomicReport$default_a0yzpm_k$ = function (companyId, fields, $completion, $super) {
|
|
838
|
+
fields = fields === VOID ? null : fields;
|
|
839
|
+
return $super === VOID ? this.indexEconomicReport_1xxx2z_k$(companyId, fields, $completion) : $super.indexEconomicReport_1xxx2z_k$.call(this, companyId, fields, $completion);
|
|
840
|
+
};
|
|
841
|
+
protoOf(EconomyApi).indexEconomicReport = function (companyId, fields) {
|
|
842
|
+
var tmp = this;
|
|
843
|
+
return promisify(function ($completion) {
|
|
844
|
+
return tmp.indexEconomicReport$default_a0yzpm_k$(companyId, fields, $completion);
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
protoOf(EconomyApi).indexEconomicReport$suspendBridge_m9ysbo_k$ = function (companyId, fields, $completion) {
|
|
848
|
+
var tmp = new $indexEconomicReport$suspendBridgeCOROUTINE$(this, companyId, fields, $completion);
|
|
849
|
+
tmp.result_1 = Unit_instance;
|
|
850
|
+
tmp.exception_1 = null;
|
|
851
|
+
return tmp.doResume_5yljmg_k$();
|
|
852
|
+
};
|
|
853
|
+
protoOf(EconomyApi).indexEconomicReportsUser_t7at12_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
854
|
+
return indexEconomicReportsUserOperation_0(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
855
|
+
};
|
|
856
|
+
protoOf(EconomyApi).indexEconomicReportsUser$default_i4fpmn_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
857
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
858
|
+
status = status === VOID ? null : status;
|
|
859
|
+
year = year === VOID ? null : year;
|
|
860
|
+
fields = fields === VOID ? null : fields;
|
|
861
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
862
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
863
|
+
count = count === VOID ? null : count;
|
|
864
|
+
return $super === VOID ? this.indexEconomicReportsUser_t7at12_k$(companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) : $super.indexEconomicReportsUser_t7at12_k$.call(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
865
|
+
};
|
|
866
|
+
protoOf(EconomyApi).indexEconomicReportsUser = function (companyIds, status, year, fields, pageToken, autoPaginate, count) {
|
|
867
|
+
var tmp = this;
|
|
868
|
+
return promisify(function ($completion) {
|
|
869
|
+
return tmp.indexEconomicReportsUser$default_i4fpmn_k$(companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
870
|
+
});
|
|
871
|
+
};
|
|
872
|
+
protoOf(EconomyApi).indexEconomicReportsUser$suspendBridge_r01445_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
873
|
+
var tmp = new $indexEconomicReportsUser$suspendBridgeCOROUTINE$(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
874
|
+
tmp.result_1 = Unit_instance;
|
|
875
|
+
tmp.exception_1 = null;
|
|
876
|
+
return tmp.doResume_5yljmg_k$();
|
|
877
|
+
};
|
|
878
|
+
protoOf(EconomyApi).indexEconomyStatus_8q1p1t_k$ = function (companyId, fields, $completion) {
|
|
879
|
+
return indexEconomyStatusOperation_0(this, companyId, fields, $completion);
|
|
880
|
+
};
|
|
881
|
+
protoOf(EconomyApi).indexEconomyStatus$default_1cj90e_k$ = function (companyId, fields, $completion, $super) {
|
|
882
|
+
fields = fields === VOID ? null : fields;
|
|
883
|
+
return $super === VOID ? this.indexEconomyStatus_8q1p1t_k$(companyId, fields, $completion) : $super.indexEconomyStatus_8q1p1t_k$.call(this, companyId, fields, $completion);
|
|
884
|
+
};
|
|
885
|
+
protoOf(EconomyApi).indexEconomyStatus = function (companyId, fields) {
|
|
886
|
+
var tmp = this;
|
|
887
|
+
return promisify(function ($completion) {
|
|
888
|
+
return tmp.indexEconomyStatus$default_1cj90e_k$(companyId, fields, $completion);
|
|
889
|
+
});
|
|
890
|
+
};
|
|
891
|
+
protoOf(EconomyApi).indexEconomyStatus$suspendBridge_l04u40_k$ = function (companyId, fields, $completion) {
|
|
892
|
+
var tmp = new $indexEconomyStatus$suspendBridgeCOROUTINE$(this, companyId, fields, $completion);
|
|
893
|
+
tmp.result_1 = Unit_instance;
|
|
894
|
+
tmp.exception_1 = null;
|
|
895
|
+
return tmp.doResume_5yljmg_k$();
|
|
896
|
+
};
|
|
897
|
+
protoOf(EconomyApi).orderEconomicReport_sl4pt0_k$ = function (companyId, orderEconomicReportCommand, $completion) {
|
|
898
|
+
return orderEconomicReportOperation_0(this, companyId, orderEconomicReportCommand, $completion);
|
|
899
|
+
};
|
|
900
|
+
protoOf(EconomyApi).orderEconomicReport = function (companyId, orderEconomicReportCommand) {
|
|
901
|
+
var tmp = this;
|
|
902
|
+
return promisify(function ($completion) {
|
|
903
|
+
return tmp.orderEconomicReport_sl4pt0_k$(companyId, orderEconomicReportCommand, $completion);
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
protoOf(EconomyApi).orderEconomicReport$suspendBridge_vevb4z_k$ = function (companyId, orderEconomicReportCommand, $completion) {
|
|
907
|
+
var tmp = new $orderEconomicReport$suspendBridgeCOROUTINE$(this, companyId, orderEconomicReportCommand, $completion);
|
|
908
|
+
tmp.result_1 = Unit_instance;
|
|
909
|
+
tmp.exception_1 = null;
|
|
910
|
+
return tmp.doResume_5yljmg_k$();
|
|
911
|
+
};
|
|
912
|
+
protoOf(EconomyApi).putEconomicReportFile_hvdf1i_k$ = function (companyId, reportId, economicReportType, documentId, $completion) {
|
|
913
|
+
return putEconomicReportFileOperation_0(this, companyId, reportId, economicReportType, documentId, $completion);
|
|
914
|
+
};
|
|
915
|
+
protoOf(EconomyApi).putEconomicReportFile = function (companyId, reportId, economicReportType, documentId) {
|
|
916
|
+
var tmp = this;
|
|
917
|
+
return promisify(function ($completion) {
|
|
918
|
+
return tmp.putEconomicReportFile_hvdf1i_k$(companyId, reportId, economicReportType, documentId, $completion);
|
|
919
|
+
});
|
|
920
|
+
};
|
|
921
|
+
protoOf(EconomyApi).putEconomicReportFile$suspendBridge_5h7j6t_k$ = function (companyId, reportId, economicReportType, documentId, $completion) {
|
|
922
|
+
var tmp = new $putEconomicReportFile$suspendBridgeCOROUTINE$(this, companyId, reportId, economicReportType, documentId, $completion);
|
|
923
|
+
tmp.result_1 = Unit_instance;
|
|
924
|
+
tmp.exception_1 = null;
|
|
925
|
+
return tmp.doResume_5yljmg_k$();
|
|
926
|
+
};
|
|
927
|
+
protoOf(EconomyApi).showEconomicReport_4ovznn_k$ = function (companyId, reportId, fields, $completion) {
|
|
928
|
+
return showEconomicReportOperation_0(this, companyId, reportId, fields, $completion);
|
|
929
|
+
};
|
|
930
|
+
protoOf(EconomyApi).showEconomicReport$default_jsfgvg_k$ = function (companyId, reportId, fields, $completion, $super) {
|
|
931
|
+
fields = fields === VOID ? null : fields;
|
|
932
|
+
return $super === VOID ? this.showEconomicReport_4ovznn_k$(companyId, reportId, fields, $completion) : $super.showEconomicReport_4ovznn_k$.call(this, companyId, reportId, fields, $completion);
|
|
933
|
+
};
|
|
934
|
+
protoOf(EconomyApi).showEconomicReport = function (companyId, reportId, fields) {
|
|
935
|
+
var tmp = this;
|
|
936
|
+
return promisify(function ($completion) {
|
|
937
|
+
return tmp.showEconomicReport$default_jsfgvg_k$(companyId, reportId, fields, $completion);
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
protoOf(EconomyApi).showEconomicReport$suspendBridge_l6yflo_k$ = function (companyId, reportId, fields, $completion) {
|
|
941
|
+
var tmp = new $showEconomicReport$suspendBridgeCOROUTINE$(this, companyId, reportId, fields, $completion);
|
|
942
|
+
tmp.result_1 = Unit_instance;
|
|
943
|
+
tmp.exception_1 = null;
|
|
944
|
+
return tmp.doResume_5yljmg_k$();
|
|
945
|
+
};
|
|
946
|
+
function EconomyApi() {
|
|
947
|
+
}
|
|
948
|
+
function deleteEconomicReportOperation(client, companyId, reportId) {
|
|
949
|
+
return promisify(function ($completion) {
|
|
950
|
+
return deleteEconomicReportOperation_0(client, companyId, reportId, $completion);
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
function deleteEconomicReportOperation_0(client, companyId, reportId, $completion) {
|
|
954
|
+
var tmp = new $deleteEconomicReportOperationCOROUTINE$(client, companyId, reportId, $completion);
|
|
955
|
+
tmp.result_1 = Unit_instance;
|
|
956
|
+
tmp.exception_1 = null;
|
|
957
|
+
return tmp.doResume_5yljmg_k$();
|
|
958
|
+
}
|
|
959
|
+
function $deleteEconomicReportOperationCOROUTINE$(client, companyId, reportId, resultContinuation) {
|
|
960
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
961
|
+
this.client_1 = client;
|
|
962
|
+
this.companyId_1 = companyId;
|
|
963
|
+
this.reportId_1 = reportId;
|
|
964
|
+
}
|
|
965
|
+
protoOf($deleteEconomicReportOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
966
|
+
var suspendResult = this.result_1;
|
|
967
|
+
$sm: do
|
|
968
|
+
try {
|
|
969
|
+
var tmp = this.state_1;
|
|
970
|
+
switch (tmp) {
|
|
971
|
+
case 0:
|
|
972
|
+
this.exceptionState_1 = 2;
|
|
973
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
974
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
975
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
976
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
977
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
978
|
+
var tmp1_path = replace(replace('/companies/{companyId}/economy/economicReports/{reportId}', '{companyId}', this.companyId_1.toString()), '{reportId}', this.reportId_1.toString());
|
|
979
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
980
|
+
this.state_1 = 1;
|
|
981
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
982
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
983
|
+
return suspendResult;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
continue $sm;
|
|
987
|
+
case 1:
|
|
988
|
+
var this_0 = suspendResult;
|
|
989
|
+
var tmp_0 = getKClass(Unit);
|
|
990
|
+
var tmp_1 = null instanceof Unit;
|
|
991
|
+
var tmp_2;
|
|
992
|
+
try {
|
|
993
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
994
|
+
} catch ($p) {
|
|
995
|
+
var tmp_3;
|
|
996
|
+
if ($p instanceof Error) {
|
|
997
|
+
var _unused_var__etf5q3 = $p;
|
|
998
|
+
tmp_3 = null;
|
|
999
|
+
} else {
|
|
1000
|
+
throw $p;
|
|
1001
|
+
}
|
|
1002
|
+
tmp_2 = tmp_3;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1006
|
+
case 2:
|
|
1007
|
+
throw this.exception_1;
|
|
1008
|
+
}
|
|
1009
|
+
} catch ($p_0) {
|
|
1010
|
+
var e = $p_0;
|
|
1011
|
+
if (this.exceptionState_1 === 2) {
|
|
1012
|
+
throw e;
|
|
1013
|
+
} else {
|
|
1014
|
+
this.state_1 = this.exceptionState_1;
|
|
1015
|
+
this.exception_1 = e;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
while (true);
|
|
1019
|
+
};
|
|
1020
|
+
function indexCompaniesEconomyStatusOperation(client) {
|
|
1021
|
+
return promisify(function ($completion) {
|
|
1022
|
+
return indexCompaniesEconomyStatusOperation_0(client, $completion);
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
function indexCompaniesEconomyStatusOperation_0(client, $completion) {
|
|
1026
|
+
var tmp = new $indexCompaniesEconomyStatusOperationCOROUTINE$(client, $completion);
|
|
1027
|
+
tmp.result_1 = Unit_instance;
|
|
1028
|
+
tmp.exception_1 = null;
|
|
1029
|
+
return tmp.doResume_5yljmg_k$();
|
|
1030
|
+
}
|
|
1031
|
+
function $indexCompaniesEconomyStatusOperationCOROUTINE$(client, resultContinuation) {
|
|
1032
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1033
|
+
this.client_1 = client;
|
|
1034
|
+
}
|
|
1035
|
+
protoOf($indexCompaniesEconomyStatusOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1036
|
+
var suspendResult = this.result_1;
|
|
1037
|
+
$sm: do
|
|
1038
|
+
try {
|
|
1039
|
+
var tmp = this.state_1;
|
|
1040
|
+
switch (tmp) {
|
|
1041
|
+
case 0:
|
|
1042
|
+
this.exceptionState_1 = 2;
|
|
1043
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1044
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1045
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1046
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1047
|
+
var tmp0_method = RequestMethod_GET_getInstance();
|
|
1048
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/companies/economy/status', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1049
|
+
this.state_1 = 1;
|
|
1050
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1051
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1052
|
+
return suspendResult;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
continue $sm;
|
|
1056
|
+
case 1:
|
|
1057
|
+
var this_0 = suspendResult;
|
|
1058
|
+
var tmp_0 = getKClass(Base64ByteArray);
|
|
1059
|
+
var tmp_1 = null instanceof Base64ByteArray;
|
|
1060
|
+
var tmp_2;
|
|
1061
|
+
try {
|
|
1062
|
+
tmp_2 = createKType(getKClass(Base64ByteArray), arrayOf([]), false);
|
|
1063
|
+
} catch ($p) {
|
|
1064
|
+
var tmp_3;
|
|
1065
|
+
if ($p instanceof Error) {
|
|
1066
|
+
var _unused_var__etf5q3 = $p;
|
|
1067
|
+
tmp_3 = null;
|
|
1068
|
+
} else {
|
|
1069
|
+
throw $p;
|
|
1070
|
+
}
|
|
1071
|
+
tmp_2 = tmp_3;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1075
|
+
case 2:
|
|
1076
|
+
throw this.exception_1;
|
|
1077
|
+
}
|
|
1078
|
+
} catch ($p_0) {
|
|
1079
|
+
var e = $p_0;
|
|
1080
|
+
if (this.exceptionState_1 === 2) {
|
|
1081
|
+
throw e;
|
|
1082
|
+
} else {
|
|
1083
|
+
this.state_1 = this.exceptionState_1;
|
|
1084
|
+
this.exception_1 = e;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
while (true);
|
|
1088
|
+
};
|
|
1089
|
+
function indexEconomicReportOperation(client, companyId, fields) {
|
|
1090
|
+
return promisify(function ($completion) {
|
|
1091
|
+
return indexEconomicReportOperation_0(client, companyId, fields, $completion);
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
function indexEconomicReportOperation_0(client, companyId, fields, $completion) {
|
|
1095
|
+
fields = fields === VOID ? null : fields;
|
|
1096
|
+
var tmp = new $indexEconomicReportOperationCOROUTINE$(client, companyId, fields, $completion);
|
|
1097
|
+
tmp.result_1 = Unit_instance;
|
|
1098
|
+
tmp.exception_1 = null;
|
|
1099
|
+
return tmp.doResume_5yljmg_k$();
|
|
1100
|
+
}
|
|
1101
|
+
function $indexEconomicReportOperationCOROUTINE$(client, companyId, fields, resultContinuation) {
|
|
1102
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1103
|
+
this.client_1 = client;
|
|
1104
|
+
this.companyId_1 = companyId;
|
|
1105
|
+
this.fields_1 = fields;
|
|
1106
|
+
}
|
|
1107
|
+
protoOf($indexEconomicReportOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1108
|
+
var suspendResult = this.result_1;
|
|
1109
|
+
$sm: do
|
|
1110
|
+
try {
|
|
1111
|
+
var tmp = this.state_1;
|
|
1112
|
+
switch (tmp) {
|
|
1113
|
+
case 0:
|
|
1114
|
+
this.exceptionState_1 = 2;
|
|
1115
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1116
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1117
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1118
|
+
if (this.fields_1 == null)
|
|
1119
|
+
null;
|
|
1120
|
+
else {
|
|
1121
|
+
var value = listOf_0(this.fields_1);
|
|
1122
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1126
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1127
|
+
var tmp2_path = replace('/companies/{companyId}/economy/economicReports', '{companyId}', this.companyId_1.toString());
|
|
1128
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1129
|
+
this.state_1 = 1;
|
|
1130
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1131
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
|
+
return suspendResult;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
continue $sm;
|
|
1136
|
+
case 1:
|
|
1137
|
+
var this_0 = suspendResult;
|
|
1138
|
+
var tmp_0 = getKClass(EconomicReportResponse);
|
|
1139
|
+
var tmp_1 = null instanceof EconomicReportResponse;
|
|
1140
|
+
var tmp_2;
|
|
1141
|
+
try {
|
|
1142
|
+
tmp_2 = createKType(getKClass(EconomicReportResponse), arrayOf([]), false);
|
|
1143
|
+
} catch ($p) {
|
|
1144
|
+
var tmp_3;
|
|
1145
|
+
if ($p instanceof Error) {
|
|
1146
|
+
var _unused_var__etf5q3 = $p;
|
|
1147
|
+
tmp_3 = null;
|
|
1148
|
+
} else {
|
|
1149
|
+
throw $p;
|
|
1150
|
+
}
|
|
1151
|
+
tmp_2 = tmp_3;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1155
|
+
case 2:
|
|
1156
|
+
throw this.exception_1;
|
|
1157
|
+
}
|
|
1158
|
+
} catch ($p_0) {
|
|
1159
|
+
var e = $p_0;
|
|
1160
|
+
if (this.exceptionState_1 === 2) {
|
|
1161
|
+
throw e;
|
|
1162
|
+
} else {
|
|
1163
|
+
this.state_1 = this.exceptionState_1;
|
|
1164
|
+
this.exception_1 = e;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
while (true);
|
|
1168
|
+
};
|
|
1169
|
+
function indexEconomicReportsUserOperation(client, companyIds, status, year, fields, pageToken, autoPaginate, count) {
|
|
1170
|
+
return promisify(function ($completion) {
|
|
1171
|
+
return indexEconomicReportsUserOperation_0(client, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
function indexEconomicReportsUserOperation_0(client, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1175
|
+
companyIds = companyIds === VOID ? null : companyIds;
|
|
1176
|
+
status = status === VOID ? null : status;
|
|
1177
|
+
year = year === VOID ? null : year;
|
|
1178
|
+
fields = fields === VOID ? null : fields;
|
|
1179
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1180
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1181
|
+
count = count === VOID ? null : count;
|
|
1182
|
+
var tmp = new $indexEconomicReportsUserOperationCOROUTINE$(client, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1183
|
+
tmp.result_1 = Unit_instance;
|
|
1184
|
+
tmp.exception_1 = null;
|
|
1185
|
+
return tmp.doResume_5yljmg_k$();
|
|
1186
|
+
}
|
|
1187
|
+
function $indexEconomicReportsUserOperationCOROUTINE$(client, companyIds, status, year, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1188
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1189
|
+
this.client_1 = client;
|
|
1190
|
+
this.companyIds_1 = companyIds;
|
|
1191
|
+
this.status_1 = status;
|
|
1192
|
+
this.year_1 = year;
|
|
1193
|
+
this.fields_1 = fields;
|
|
1194
|
+
this.pageToken_1 = pageToken;
|
|
1195
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1196
|
+
this.count_1 = count;
|
|
1197
|
+
}
|
|
1198
|
+
protoOf($indexEconomicReportsUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1199
|
+
var suspendResult = this.result_1;
|
|
1200
|
+
$sm: do
|
|
1201
|
+
try {
|
|
1202
|
+
var tmp = this.state_1;
|
|
1203
|
+
switch (tmp) {
|
|
1204
|
+
case 0:
|
|
1205
|
+
this.exceptionState_1 = 2;
|
|
1206
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1207
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1208
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1209
|
+
var tmp0_safe_receiver = this.companyIds_1;
|
|
1210
|
+
if (tmp0_safe_receiver == null)
|
|
1211
|
+
null;
|
|
1212
|
+
else {
|
|
1213
|
+
var tmp2 = 'companyIds';
|
|
1214
|
+
var value = toMultiValue(tmp0_safe_receiver, 'multi');
|
|
1215
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
var tmp1_safe_receiver = this.status_1;
|
|
1219
|
+
if (tmp1_safe_receiver == null)
|
|
1220
|
+
null;
|
|
966
1221
|
else {
|
|
967
1222
|
var value_0 = toMultiValue(tmp1_safe_receiver, 'multi');
|
|
968
1223
|
localVariableQuery.put_4fpzoq_k$('status', value_0);
|
|
@@ -1009,7 +1264,7 @@ protoOf($indexEconomicReportsUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1009
1264
|
var tmp7_method = RequestMethod_GET_getInstance();
|
|
1010
1265
|
var localVariableConfig = new RequestConfig(tmp7_method, '/companies/economy/economicReports', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1011
1266
|
this.state_1 = 1;
|
|
1012
|
-
suspendResult = this.
|
|
1267
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1013
1268
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1014
1269
|
return suspendResult;
|
|
1015
1270
|
}
|
|
@@ -1048,57 +1303,214 @@ protoOf($indexEconomicReportsUserCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1048
1303
|
}
|
|
1049
1304
|
while (true);
|
|
1050
1305
|
};
|
|
1051
|
-
function
|
|
1306
|
+
function indexEconomyStatusOperation(client, companyId, fields) {
|
|
1307
|
+
return promisify(function ($completion) {
|
|
1308
|
+
return indexEconomyStatusOperation_0(client, companyId, fields, $completion);
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
function indexEconomyStatusOperation_0(client, companyId, fields, $completion) {
|
|
1312
|
+
fields = fields === VOID ? null : fields;
|
|
1313
|
+
var tmp = new $indexEconomyStatusOperationCOROUTINE$(client, companyId, fields, $completion);
|
|
1314
|
+
tmp.result_1 = Unit_instance;
|
|
1315
|
+
tmp.exception_1 = null;
|
|
1316
|
+
return tmp.doResume_5yljmg_k$();
|
|
1317
|
+
}
|
|
1318
|
+
function $indexEconomyStatusOperationCOROUTINE$(client, companyId, fields, resultContinuation) {
|
|
1052
1319
|
CoroutineImpl.call(this, resultContinuation);
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1056
|
-
|
|
1320
|
+
this.client_1 = client;
|
|
1321
|
+
this.companyId_1 = companyId;
|
|
1322
|
+
this.fields_1 = fields;
|
|
1323
|
+
}
|
|
1324
|
+
protoOf($indexEconomyStatusOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1325
|
+
var suspendResult = this.result_1;
|
|
1326
|
+
$sm: do
|
|
1327
|
+
try {
|
|
1328
|
+
var tmp = this.state_1;
|
|
1329
|
+
switch (tmp) {
|
|
1330
|
+
case 0:
|
|
1331
|
+
this.exceptionState_1 = 2;
|
|
1332
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1333
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1334
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1335
|
+
if (this.fields_1 == null)
|
|
1336
|
+
null;
|
|
1337
|
+
else {
|
|
1338
|
+
var value = listOf_0(this.fields_1);
|
|
1339
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1343
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1344
|
+
var tmp2_path = replace('/companies/{companyId}/economy/status', '{companyId}', this.companyId_1.toString());
|
|
1345
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1346
|
+
this.state_1 = 1;
|
|
1347
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1348
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1349
|
+
return suspendResult;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
continue $sm;
|
|
1353
|
+
case 1:
|
|
1354
|
+
var this_0 = suspendResult;
|
|
1355
|
+
var tmp_0 = getKClass(AccountList);
|
|
1356
|
+
var tmp_1 = null instanceof AccountList;
|
|
1357
|
+
var tmp_2;
|
|
1358
|
+
try {
|
|
1359
|
+
tmp_2 = createKType(getKClass(AccountList), arrayOf([]), false);
|
|
1360
|
+
} catch ($p) {
|
|
1361
|
+
var tmp_3;
|
|
1362
|
+
if ($p instanceof Error) {
|
|
1363
|
+
var _unused_var__etf5q3 = $p;
|
|
1364
|
+
tmp_3 = null;
|
|
1365
|
+
} else {
|
|
1366
|
+
throw $p;
|
|
1367
|
+
}
|
|
1368
|
+
tmp_2 = tmp_3;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1372
|
+
case 2:
|
|
1373
|
+
throw this.exception_1;
|
|
1374
|
+
}
|
|
1375
|
+
} catch ($p_0) {
|
|
1376
|
+
var e = $p_0;
|
|
1377
|
+
if (this.exceptionState_1 === 2) {
|
|
1378
|
+
throw e;
|
|
1379
|
+
} else {
|
|
1380
|
+
this.state_1 = this.exceptionState_1;
|
|
1381
|
+
this.exception_1 = e;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
while (true);
|
|
1385
|
+
};
|
|
1386
|
+
function listCompanyBankAccountTransactionsOperation(client, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count) {
|
|
1387
|
+
return promisify(function ($completion) {
|
|
1388
|
+
return listCompanyBankAccountTransactionsOperation_0(client, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion);
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
function listCompanyBankAccountTransactionsOperation_0(client, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion) {
|
|
1392
|
+
from = from === VOID ? null : from;
|
|
1393
|
+
to = to === VOID ? null : to;
|
|
1394
|
+
fields = fields === VOID ? null : fields;
|
|
1395
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1396
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1397
|
+
count = count === VOID ? null : count;
|
|
1398
|
+
var tmp = new $listCompanyBankAccountTransactionsOperationCOROUTINE$(client, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, $completion);
|
|
1399
|
+
tmp.result_1 = Unit_instance;
|
|
1400
|
+
tmp.exception_1 = null;
|
|
1401
|
+
return tmp.doResume_5yljmg_k$();
|
|
1402
|
+
}
|
|
1403
|
+
function $listCompanyBankAccountTransactionsOperationCOROUTINE$(client, companyId, account, parent, from, to, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1404
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1405
|
+
this.client_1 = client;
|
|
1406
|
+
this.companyId_1 = companyId;
|
|
1407
|
+
this.account_1 = account;
|
|
1408
|
+
this.parent_1 = parent;
|
|
1409
|
+
this.from_1 = from;
|
|
1410
|
+
this.to_1 = to;
|
|
1057
1411
|
this.fields_1 = fields;
|
|
1058
1412
|
this.pageToken_1 = pageToken;
|
|
1059
1413
|
this.autoPaginate_1 = autoPaginate;
|
|
1060
1414
|
this.count_1 = count;
|
|
1061
1415
|
}
|
|
1062
|
-
protoOf($
|
|
1416
|
+
protoOf($listCompanyBankAccountTransactionsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1063
1417
|
var suspendResult = this.result_1;
|
|
1064
1418
|
$sm: do
|
|
1065
1419
|
try {
|
|
1066
1420
|
var tmp = this.state_1;
|
|
1067
1421
|
switch (tmp) {
|
|
1068
1422
|
case 0:
|
|
1069
|
-
this.exceptionState_1 =
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1423
|
+
this.exceptionState_1 = 2;
|
|
1424
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1425
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1426
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1427
|
+
if (this.parent_1 == null)
|
|
1428
|
+
null;
|
|
1429
|
+
else {
|
|
1430
|
+
var value = listOf_0(this.parent_1);
|
|
1431
|
+
localVariableQuery.put_4fpzoq_k$('parent', value);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
if (this.from_1 == null)
|
|
1435
|
+
null;
|
|
1436
|
+
else {
|
|
1437
|
+
var value_0 = listOf_0(this.from_1);
|
|
1438
|
+
localVariableQuery.put_4fpzoq_k$('from', value_0);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
if (this.to_1 == null)
|
|
1442
|
+
null;
|
|
1443
|
+
else {
|
|
1444
|
+
var value_1 = listOf_0(this.to_1);
|
|
1445
|
+
localVariableQuery.put_4fpzoq_k$('to', value_1);
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
if (this.fields_1 == null)
|
|
1449
|
+
null;
|
|
1450
|
+
else {
|
|
1451
|
+
var value_2 = listOf_0(this.fields_1);
|
|
1452
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_2);
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
if (this.pageToken_1 == null)
|
|
1456
|
+
null;
|
|
1457
|
+
else {
|
|
1458
|
+
var tmp2 = 'pageToken';
|
|
1459
|
+
var value_3 = listOf_0(this.pageToken_1);
|
|
1460
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_3);
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
if (this.autoPaginate_1 == null)
|
|
1464
|
+
null;
|
|
1465
|
+
else {
|
|
1466
|
+
var tmp2_0 = 'autoPaginate';
|
|
1467
|
+
var value_4 = listOf_0('' + this.autoPaginate_1);
|
|
1468
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_4);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
if (this.count_1 == null)
|
|
1472
|
+
null;
|
|
1473
|
+
else {
|
|
1474
|
+
var value_5 = listOf_0('' + this.count_1);
|
|
1475
|
+
localVariableQuery.put_4fpzoq_k$('count', value_5);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1479
|
+
var tmp7_method = RequestMethod_GET_getInstance();
|
|
1480
|
+
var tmp8_path = replace(replace('/companies/{companyId}/bankAccounts/{account}/transactions', '{companyId}', this.companyId_1.toString()), '{account}', this.account_1);
|
|
1481
|
+
var localVariableConfig = new RequestConfig(tmp7_method, tmp8_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1482
|
+
this.state_1 = 1;
|
|
1483
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1484
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1485
|
+
return suspendResult;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
continue $sm;
|
|
1489
|
+
case 1:
|
|
1490
|
+
var this_0 = suspendResult;
|
|
1491
|
+
var tmp_0 = getKClass(PagedListBankMovement);
|
|
1492
|
+
var tmp_1 = null instanceof PagedListBankMovement;
|
|
1493
|
+
var tmp_2;
|
|
1494
|
+
try {
|
|
1495
|
+
tmp_2 = createKType(getKClass(PagedListBankMovement), arrayOf([]), false);
|
|
1496
|
+
} catch ($p) {
|
|
1497
|
+
var tmp_3;
|
|
1498
|
+
if ($p instanceof Error) {
|
|
1499
|
+
var _unused_var__etf5q3 = $p;
|
|
1500
|
+
tmp_3 = null;
|
|
1501
|
+
} else {
|
|
1502
|
+
throw $p;
|
|
1082
1503
|
}
|
|
1083
|
-
|
|
1504
|
+
tmp_2 = tmp_3;
|
|
1084
1505
|
}
|
|
1085
1506
|
|
|
1086
|
-
|
|
1087
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1088
|
-
this.state_1 = 3;
|
|
1089
|
-
continue $sm;
|
|
1507
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1090
1508
|
case 2:
|
|
1091
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1092
|
-
this.state_1 = 3;
|
|
1093
|
-
continue $sm;
|
|
1094
|
-
case 3:
|
|
1095
|
-
return this.WHEN_RESULT0__1;
|
|
1096
|
-
case 4:
|
|
1097
1509
|
throw this.exception_1;
|
|
1098
1510
|
}
|
|
1099
|
-
} catch ($
|
|
1100
|
-
var e = $
|
|
1101
|
-
if (this.exceptionState_1 ===
|
|
1511
|
+
} catch ($p_0) {
|
|
1512
|
+
var e = $p_0;
|
|
1513
|
+
if (this.exceptionState_1 === 2) {
|
|
1102
1514
|
throw e;
|
|
1103
1515
|
} else {
|
|
1104
1516
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1107,13 +1519,31 @@ protoOf($indexEconomicReportsUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
|
|
|
1107
1519
|
}
|
|
1108
1520
|
while (true);
|
|
1109
1521
|
};
|
|
1110
|
-
function
|
|
1522
|
+
function listCompanyBankAccountsOperation(client, companyId, fields, pageToken, autoPaginate, count) {
|
|
1523
|
+
return promisify(function ($completion) {
|
|
1524
|
+
return listCompanyBankAccountsOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
function listCompanyBankAccountsOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion) {
|
|
1528
|
+
fields = fields === VOID ? null : fields;
|
|
1529
|
+
pageToken = pageToken === VOID ? null : pageToken;
|
|
1530
|
+
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1531
|
+
count = count === VOID ? null : count;
|
|
1532
|
+
var tmp = new $listCompanyBankAccountsOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, $completion);
|
|
1533
|
+
tmp.result_1 = Unit_instance;
|
|
1534
|
+
tmp.exception_1 = null;
|
|
1535
|
+
return tmp.doResume_5yljmg_k$();
|
|
1536
|
+
}
|
|
1537
|
+
function $listCompanyBankAccountsOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
1111
1538
|
CoroutineImpl.call(this, resultContinuation);
|
|
1112
|
-
this.
|
|
1539
|
+
this.client_1 = client;
|
|
1113
1540
|
this.companyId_1 = companyId;
|
|
1114
1541
|
this.fields_1 = fields;
|
|
1542
|
+
this.pageToken_1 = pageToken;
|
|
1543
|
+
this.autoPaginate_1 = autoPaginate;
|
|
1544
|
+
this.count_1 = count;
|
|
1115
1545
|
}
|
|
1116
|
-
protoOf($
|
|
1546
|
+
protoOf($listCompanyBankAccountsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1117
1547
|
var suspendResult = this.result_1;
|
|
1118
1548
|
$sm: do
|
|
1119
1549
|
try {
|
|
@@ -1131,12 +1561,35 @@ protoOf($indexEconomyStatusCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1131
1561
|
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1132
1562
|
}
|
|
1133
1563
|
|
|
1564
|
+
if (this.pageToken_1 == null)
|
|
1565
|
+
null;
|
|
1566
|
+
else {
|
|
1567
|
+
var tmp2 = 'pageToken';
|
|
1568
|
+
var value_0 = listOf_0(this.pageToken_1);
|
|
1569
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
if (this.autoPaginate_1 == null)
|
|
1573
|
+
null;
|
|
1574
|
+
else {
|
|
1575
|
+
var tmp2_0 = 'autoPaginate';
|
|
1576
|
+
var value_1 = listOf_0('' + this.autoPaginate_1);
|
|
1577
|
+
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
if (this.count_1 == null)
|
|
1581
|
+
null;
|
|
1582
|
+
else {
|
|
1583
|
+
var value_2 = listOf_0('' + this.count_1);
|
|
1584
|
+
localVariableQuery.put_4fpzoq_k$('count', value_2);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1134
1587
|
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1135
|
-
var
|
|
1136
|
-
var
|
|
1137
|
-
var localVariableConfig = new RequestConfig(
|
|
1588
|
+
var tmp4_method = RequestMethod_GET_getInstance();
|
|
1589
|
+
var tmp5_path = replace('/companies/{companyId}/bankAccounts', '{companyId}', this.companyId_1.toString());
|
|
1590
|
+
var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1138
1591
|
this.state_1 = 1;
|
|
1139
|
-
suspendResult = this.
|
|
1592
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1140
1593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1141
1594
|
return suspendResult;
|
|
1142
1595
|
}
|
|
@@ -1144,11 +1597,11 @@ protoOf($indexEconomyStatusCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1144
1597
|
continue $sm;
|
|
1145
1598
|
case 1:
|
|
1146
1599
|
var this_0 = suspendResult;
|
|
1147
|
-
var tmp_0 = getKClass(
|
|
1148
|
-
var tmp_1 = null instanceof
|
|
1600
|
+
var tmp_0 = getKClass(PagedListBankAccount);
|
|
1601
|
+
var tmp_1 = null instanceof PagedListBankAccount;
|
|
1149
1602
|
var tmp_2;
|
|
1150
1603
|
try {
|
|
1151
|
-
tmp_2 = createKType(getKClass(
|
|
1604
|
+
tmp_2 = createKType(getKClass(PagedListBankAccount), arrayOf([]), false);
|
|
1152
1605
|
} catch ($p) {
|
|
1153
1606
|
var tmp_3;
|
|
1154
1607
|
if ($p instanceof Error) {
|
|
@@ -1175,67 +1628,24 @@ protoOf($indexEconomyStatusCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1175
1628
|
}
|
|
1176
1629
|
while (true);
|
|
1177
1630
|
};
|
|
1178
|
-
function
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
this.fields_1 = fields;
|
|
1631
|
+
function orderEconomicReportOperation(client, companyId, orderEconomicReportCommand) {
|
|
1632
|
+
return promisify(function ($completion) {
|
|
1633
|
+
return orderEconomicReportOperation_0(client, companyId, orderEconomicReportCommand, $completion);
|
|
1634
|
+
});
|
|
1183
1635
|
}
|
|
1184
|
-
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
this.exceptionState_1 = 4;
|
|
1192
|
-
if (this._this__u8e3s4__1.indexEconomyStatus === protoOf(EconomyApi).indexEconomyStatus) {
|
|
1193
|
-
this.state_1 = 2;
|
|
1194
|
-
suspendResult = this._this__u8e3s4__1.indexEconomyStatus$default_1cj90e_k$(this.companyId_1, this.fields_1, this);
|
|
1195
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1196
|
-
return suspendResult;
|
|
1197
|
-
}
|
|
1198
|
-
continue $sm;
|
|
1199
|
-
} else {
|
|
1200
|
-
this.state_1 = 1;
|
|
1201
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexEconomyStatus(this.companyId_1, this.fields_1), this);
|
|
1202
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1203
|
-
return suspendResult;
|
|
1204
|
-
}
|
|
1205
|
-
continue $sm;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
case 1:
|
|
1209
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1210
|
-
this.state_1 = 3;
|
|
1211
|
-
continue $sm;
|
|
1212
|
-
case 2:
|
|
1213
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1214
|
-
this.state_1 = 3;
|
|
1215
|
-
continue $sm;
|
|
1216
|
-
case 3:
|
|
1217
|
-
return this.WHEN_RESULT0__1;
|
|
1218
|
-
case 4:
|
|
1219
|
-
throw this.exception_1;
|
|
1220
|
-
}
|
|
1221
|
-
} catch ($p) {
|
|
1222
|
-
var e = $p;
|
|
1223
|
-
if (this.exceptionState_1 === 4) {
|
|
1224
|
-
throw e;
|
|
1225
|
-
} else {
|
|
1226
|
-
this.state_1 = this.exceptionState_1;
|
|
1227
|
-
this.exception_1 = e;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
while (true);
|
|
1231
|
-
};
|
|
1232
|
-
function $orderEconomicReportCOROUTINE$(_this__u8e3s4, companyId, orderEconomicReportCommand, resultContinuation) {
|
|
1636
|
+
function orderEconomicReportOperation_0(client, companyId, orderEconomicReportCommand, $completion) {
|
|
1637
|
+
var tmp = new $orderEconomicReportOperationCOROUTINE$(client, companyId, orderEconomicReportCommand, $completion);
|
|
1638
|
+
tmp.result_1 = Unit_instance;
|
|
1639
|
+
tmp.exception_1 = null;
|
|
1640
|
+
return tmp.doResume_5yljmg_k$();
|
|
1641
|
+
}
|
|
1642
|
+
function $orderEconomicReportOperationCOROUTINE$(client, companyId, orderEconomicReportCommand, resultContinuation) {
|
|
1233
1643
|
CoroutineImpl.call(this, resultContinuation);
|
|
1234
|
-
this.
|
|
1644
|
+
this.client_1 = client;
|
|
1235
1645
|
this.companyId_1 = companyId;
|
|
1236
1646
|
this.orderEconomicReportCommand_1 = orderEconomicReportCommand;
|
|
1237
1647
|
}
|
|
1238
|
-
protoOf($
|
|
1648
|
+
protoOf($orderEconomicReportOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1239
1649
|
var suspendResult = this.result_1;
|
|
1240
1650
|
$sm: do
|
|
1241
1651
|
try {
|
|
@@ -1251,7 +1661,7 @@ protoOf($orderEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1251
1661
|
var tmp1_path = replace('/companies/{companyId}/economy/economicReports', '{companyId}', this.companyId_1.toString());
|
|
1252
1662
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1253
1663
|
this.state_1 = 1;
|
|
1254
|
-
suspendResult = this.
|
|
1664
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1255
1665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1256
1666
|
return suspendResult;
|
|
1257
1667
|
}
|
|
@@ -1290,69 +1700,26 @@ protoOf($orderEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1290
1700
|
}
|
|
1291
1701
|
while (true);
|
|
1292
1702
|
};
|
|
1293
|
-
function
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
this.orderEconomicReportCommand_1 = orderEconomicReportCommand;
|
|
1703
|
+
function putEconomicReportFileOperation(client, companyId, reportId, economicReportType, documentId) {
|
|
1704
|
+
return promisify(function ($completion) {
|
|
1705
|
+
return putEconomicReportFileOperation_0(client, companyId, reportId, economicReportType, documentId, $completion);
|
|
1706
|
+
});
|
|
1298
1707
|
}
|
|
1299
|
-
|
|
1300
|
-
var
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
this.exceptionState_1 = 4;
|
|
1307
|
-
if (this._this__u8e3s4__1.orderEconomicReport === protoOf(EconomyApi).orderEconomicReport) {
|
|
1308
|
-
this.state_1 = 2;
|
|
1309
|
-
suspendResult = this._this__u8e3s4__1.orderEconomicReport_sl4pt0_k$(this.companyId_1, this.orderEconomicReportCommand_1, this);
|
|
1310
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1311
|
-
return suspendResult;
|
|
1312
|
-
}
|
|
1313
|
-
continue $sm;
|
|
1314
|
-
} else {
|
|
1315
|
-
this.state_1 = 1;
|
|
1316
|
-
suspendResult = await_0(this._this__u8e3s4__1.orderEconomicReport(this.companyId_1, this.orderEconomicReportCommand_1), this);
|
|
1317
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1318
|
-
return suspendResult;
|
|
1319
|
-
}
|
|
1320
|
-
continue $sm;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
case 1:
|
|
1324
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1325
|
-
this.state_1 = 3;
|
|
1326
|
-
continue $sm;
|
|
1327
|
-
case 2:
|
|
1328
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1329
|
-
this.state_1 = 3;
|
|
1330
|
-
continue $sm;
|
|
1331
|
-
case 3:
|
|
1332
|
-
return this.WHEN_RESULT0__1;
|
|
1333
|
-
case 4:
|
|
1334
|
-
throw this.exception_1;
|
|
1335
|
-
}
|
|
1336
|
-
} catch ($p) {
|
|
1337
|
-
var e = $p;
|
|
1338
|
-
if (this.exceptionState_1 === 4) {
|
|
1339
|
-
throw e;
|
|
1340
|
-
} else {
|
|
1341
|
-
this.state_1 = this.exceptionState_1;
|
|
1342
|
-
this.exception_1 = e;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
while (true);
|
|
1346
|
-
};
|
|
1347
|
-
function $putEconomicReportFileCOROUTINE$(_this__u8e3s4, companyId, reportId, economicReportType, documentId, resultContinuation) {
|
|
1708
|
+
function putEconomicReportFileOperation_0(client, companyId, reportId, economicReportType, documentId, $completion) {
|
|
1709
|
+
var tmp = new $putEconomicReportFileOperationCOROUTINE$(client, companyId, reportId, economicReportType, documentId, $completion);
|
|
1710
|
+
tmp.result_1 = Unit_instance;
|
|
1711
|
+
tmp.exception_1 = null;
|
|
1712
|
+
return tmp.doResume_5yljmg_k$();
|
|
1713
|
+
}
|
|
1714
|
+
function $putEconomicReportFileOperationCOROUTINE$(client, companyId, reportId, economicReportType, documentId, resultContinuation) {
|
|
1348
1715
|
CoroutineImpl.call(this, resultContinuation);
|
|
1349
|
-
this.
|
|
1716
|
+
this.client_1 = client;
|
|
1350
1717
|
this.companyId_1 = companyId;
|
|
1351
1718
|
this.reportId_1 = reportId;
|
|
1352
1719
|
this.economicReportType_1 = economicReportType;
|
|
1353
1720
|
this.documentId_1 = documentId;
|
|
1354
1721
|
}
|
|
1355
|
-
protoOf($
|
|
1722
|
+
protoOf($putEconomicReportFileOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1356
1723
|
var suspendResult = this.result_1;
|
|
1357
1724
|
$sm: do
|
|
1358
1725
|
try {
|
|
@@ -1368,93 +1735,37 @@ protoOf($putEconomicReportFileCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1368
1735
|
var tmp1_path = replace(replace(replace(replace('/companies/{companyId}/economy/economicReports/{reportId}/files/{economicReportType}/{documentId}', '{companyId}', this.companyId_1.toString()), '{reportId}', this.reportId_1.toString()), '{economicReportType}', this.economicReportType_1), '{documentId}', this.documentId_1.toString());
|
|
1369
1736
|
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1370
1737
|
this.state_1 = 1;
|
|
1371
|
-
suspendResult = this.
|
|
1738
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1372
1739
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1373
1740
|
return suspendResult;
|
|
1374
1741
|
}
|
|
1375
1742
|
|
|
1376
1743
|
continue $sm;
|
|
1377
1744
|
case 1:
|
|
1378
|
-
var this_0 = suspendResult;
|
|
1379
|
-
var tmp_0 = getKClass(Unit);
|
|
1380
|
-
var tmp_1 = null instanceof Unit;
|
|
1381
|
-
var tmp_2;
|
|
1382
|
-
try {
|
|
1383
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1384
|
-
} catch ($p) {
|
|
1385
|
-
var tmp_3;
|
|
1386
|
-
if ($p instanceof Error) {
|
|
1387
|
-
var _unused_var__etf5q3 = $p;
|
|
1388
|
-
tmp_3 = null;
|
|
1389
|
-
} else {
|
|
1390
|
-
throw $p;
|
|
1391
|
-
}
|
|
1392
|
-
tmp_2 = tmp_3;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1396
|
-
case 2:
|
|
1397
|
-
throw this.exception_1;
|
|
1398
|
-
}
|
|
1399
|
-
} catch ($p_0) {
|
|
1400
|
-
var e = $p_0;
|
|
1401
|
-
if (this.exceptionState_1 === 2) {
|
|
1402
|
-
throw e;
|
|
1403
|
-
} else {
|
|
1404
|
-
this.state_1 = this.exceptionState_1;
|
|
1405
|
-
this.exception_1 = e;
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
while (true);
|
|
1409
|
-
};
|
|
1410
|
-
function $putEconomicReportFile$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, reportId, economicReportType, documentId, resultContinuation) {
|
|
1411
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1412
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1413
|
-
this.companyId_1 = companyId;
|
|
1414
|
-
this.reportId_1 = reportId;
|
|
1415
|
-
this.economicReportType_1 = economicReportType;
|
|
1416
|
-
this.documentId_1 = documentId;
|
|
1417
|
-
}
|
|
1418
|
-
protoOf($putEconomicReportFile$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1419
|
-
var suspendResult = this.result_1;
|
|
1420
|
-
$sm: do
|
|
1421
|
-
try {
|
|
1422
|
-
var tmp = this.state_1;
|
|
1423
|
-
switch (tmp) {
|
|
1424
|
-
case 0:
|
|
1425
|
-
this.exceptionState_1 = 4;
|
|
1426
|
-
if (this._this__u8e3s4__1.putEconomicReportFile === protoOf(EconomyApi).putEconomicReportFile) {
|
|
1427
|
-
this.state_1 = 2;
|
|
1428
|
-
suspendResult = this._this__u8e3s4__1.putEconomicReportFile_hvdf1i_k$(this.companyId_1, this.reportId_1, this.economicReportType_1, this.documentId_1, this);
|
|
1429
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1430
|
-
return suspendResult;
|
|
1431
|
-
}
|
|
1432
|
-
continue $sm;
|
|
1433
|
-
} else {
|
|
1434
|
-
this.state_1 = 1;
|
|
1435
|
-
suspendResult = await_0(this._this__u8e3s4__1.putEconomicReportFile(this.companyId_1, this.reportId_1, this.economicReportType_1, this.documentId_1), this);
|
|
1436
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1437
|
-
return suspendResult;
|
|
1745
|
+
var this_0 = suspendResult;
|
|
1746
|
+
var tmp_0 = getKClass(Unit);
|
|
1747
|
+
var tmp_1 = null instanceof Unit;
|
|
1748
|
+
var tmp_2;
|
|
1749
|
+
try {
|
|
1750
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
1751
|
+
} catch ($p) {
|
|
1752
|
+
var tmp_3;
|
|
1753
|
+
if ($p instanceof Error) {
|
|
1754
|
+
var _unused_var__etf5q3 = $p;
|
|
1755
|
+
tmp_3 = null;
|
|
1756
|
+
} else {
|
|
1757
|
+
throw $p;
|
|
1438
1758
|
}
|
|
1439
|
-
|
|
1759
|
+
tmp_2 = tmp_3;
|
|
1440
1760
|
}
|
|
1441
1761
|
|
|
1442
|
-
|
|
1443
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1444
|
-
this.state_1 = 3;
|
|
1445
|
-
continue $sm;
|
|
1762
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1446
1763
|
case 2:
|
|
1447
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1448
|
-
this.state_1 = 3;
|
|
1449
|
-
continue $sm;
|
|
1450
|
-
case 3:
|
|
1451
|
-
return this.WHEN_RESULT0__1;
|
|
1452
|
-
case 4:
|
|
1453
1764
|
throw this.exception_1;
|
|
1454
1765
|
}
|
|
1455
|
-
} catch ($
|
|
1456
|
-
var e = $
|
|
1457
|
-
if (this.exceptionState_1 ===
|
|
1766
|
+
} catch ($p_0) {
|
|
1767
|
+
var e = $p_0;
|
|
1768
|
+
if (this.exceptionState_1 === 2) {
|
|
1458
1769
|
throw e;
|
|
1459
1770
|
} else {
|
|
1460
1771
|
this.state_1 = this.exceptionState_1;
|
|
@@ -1463,14 +1774,26 @@ protoOf($putEconomicReportFile$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fun
|
|
|
1463
1774
|
}
|
|
1464
1775
|
while (true);
|
|
1465
1776
|
};
|
|
1466
|
-
function
|
|
1777
|
+
function showEconomicReportOperation(client, companyId, reportId, fields) {
|
|
1778
|
+
return promisify(function ($completion) {
|
|
1779
|
+
return showEconomicReportOperation_0(client, companyId, reportId, fields, $completion);
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
function showEconomicReportOperation_0(client, companyId, reportId, fields, $completion) {
|
|
1783
|
+
fields = fields === VOID ? null : fields;
|
|
1784
|
+
var tmp = new $showEconomicReportOperationCOROUTINE$(client, companyId, reportId, fields, $completion);
|
|
1785
|
+
tmp.result_1 = Unit_instance;
|
|
1786
|
+
tmp.exception_1 = null;
|
|
1787
|
+
return tmp.doResume_5yljmg_k$();
|
|
1788
|
+
}
|
|
1789
|
+
function $showEconomicReportOperationCOROUTINE$(client, companyId, reportId, fields, resultContinuation) {
|
|
1467
1790
|
CoroutineImpl.call(this, resultContinuation);
|
|
1468
|
-
this.
|
|
1791
|
+
this.client_1 = client;
|
|
1469
1792
|
this.companyId_1 = companyId;
|
|
1470
1793
|
this.reportId_1 = reportId;
|
|
1471
1794
|
this.fields_1 = fields;
|
|
1472
1795
|
}
|
|
1473
|
-
protoOf($
|
|
1796
|
+
protoOf($showEconomicReportOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1474
1797
|
var suspendResult = this.result_1;
|
|
1475
1798
|
$sm: do
|
|
1476
1799
|
try {
|
|
@@ -1493,7 +1816,7 @@ protoOf($showEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1493
1816
|
var tmp2_path = replace(replace('/companies/{companyId}/economy/economicReports/{reportId}', '{companyId}', this.companyId_1.toString()), '{reportId}', this.reportId_1.toString());
|
|
1494
1817
|
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1495
1818
|
this.state_1 = 1;
|
|
1496
|
-
suspendResult = this.
|
|
1819
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1497
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1498
1821
|
return suspendResult;
|
|
1499
1822
|
}
|
|
@@ -1532,229 +1855,6 @@ protoOf($showEconomicReportCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
1532
1855
|
}
|
|
1533
1856
|
while (true);
|
|
1534
1857
|
};
|
|
1535
|
-
function $showEconomicReport$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, reportId, fields, resultContinuation) {
|
|
1536
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1537
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1538
|
-
this.companyId_1 = companyId;
|
|
1539
|
-
this.reportId_1 = reportId;
|
|
1540
|
-
this.fields_1 = fields;
|
|
1541
|
-
}
|
|
1542
|
-
protoOf($showEconomicReport$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1543
|
-
var suspendResult = this.result_1;
|
|
1544
|
-
$sm: do
|
|
1545
|
-
try {
|
|
1546
|
-
var tmp = this.state_1;
|
|
1547
|
-
switch (tmp) {
|
|
1548
|
-
case 0:
|
|
1549
|
-
this.exceptionState_1 = 4;
|
|
1550
|
-
if (this._this__u8e3s4__1.showEconomicReport === protoOf(EconomyApi).showEconomicReport) {
|
|
1551
|
-
this.state_1 = 2;
|
|
1552
|
-
suspendResult = this._this__u8e3s4__1.showEconomicReport$default_jsfgvg_k$(this.companyId_1, this.reportId_1, this.fields_1, this);
|
|
1553
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1554
|
-
return suspendResult;
|
|
1555
|
-
}
|
|
1556
|
-
continue $sm;
|
|
1557
|
-
} else {
|
|
1558
|
-
this.state_1 = 1;
|
|
1559
|
-
suspendResult = await_0(this._this__u8e3s4__1.showEconomicReport(this.companyId_1, this.reportId_1, this.fields_1), this);
|
|
1560
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1561
|
-
return suspendResult;
|
|
1562
|
-
}
|
|
1563
|
-
continue $sm;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
case 1:
|
|
1567
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1568
|
-
this.state_1 = 3;
|
|
1569
|
-
continue $sm;
|
|
1570
|
-
case 2:
|
|
1571
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
1572
|
-
this.state_1 = 3;
|
|
1573
|
-
continue $sm;
|
|
1574
|
-
case 3:
|
|
1575
|
-
return this.WHEN_RESULT0__1;
|
|
1576
|
-
case 4:
|
|
1577
|
-
throw this.exception_1;
|
|
1578
|
-
}
|
|
1579
|
-
} catch ($p) {
|
|
1580
|
-
var e = $p;
|
|
1581
|
-
if (this.exceptionState_1 === 4) {
|
|
1582
|
-
throw e;
|
|
1583
|
-
} else {
|
|
1584
|
-
this.state_1 = this.exceptionState_1;
|
|
1585
|
-
this.exception_1 = e;
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
while (true);
|
|
1589
|
-
};
|
|
1590
|
-
protoOf(EconomyApi).deleteEconomicReport_y5e3jk_k$ = function (companyId, reportId, $completion) {
|
|
1591
|
-
var tmp = new $deleteEconomicReportCOROUTINE$(this, companyId, reportId, $completion);
|
|
1592
|
-
tmp.result_1 = Unit_instance;
|
|
1593
|
-
tmp.exception_1 = null;
|
|
1594
|
-
return tmp.doResume_5yljmg_k$();
|
|
1595
|
-
};
|
|
1596
|
-
protoOf(EconomyApi).deleteEconomicReport = function (companyId, reportId) {
|
|
1597
|
-
var tmp = this;
|
|
1598
|
-
return promisify(function ($completion) {
|
|
1599
|
-
return tmp.deleteEconomicReport_y5e3jk_k$(companyId, reportId, $completion);
|
|
1600
|
-
});
|
|
1601
|
-
};
|
|
1602
|
-
protoOf(EconomyApi).deleteEconomicReport$suspendBridge_1dti6p_k$ = function (companyId, reportId, $completion) {
|
|
1603
|
-
var tmp = new $deleteEconomicReport$suspendBridgeCOROUTINE$(this, companyId, reportId, $completion);
|
|
1604
|
-
tmp.result_1 = Unit_instance;
|
|
1605
|
-
tmp.exception_1 = null;
|
|
1606
|
-
return tmp.doResume_5yljmg_k$();
|
|
1607
|
-
};
|
|
1608
|
-
protoOf(EconomyApi).indexCompaniesEconomyStatus_7qd8zb_k$ = function ($completion) {
|
|
1609
|
-
var tmp = new $indexCompaniesEconomyStatusCOROUTINE$(this, $completion);
|
|
1610
|
-
tmp.result_1 = Unit_instance;
|
|
1611
|
-
tmp.exception_1 = null;
|
|
1612
|
-
return tmp.doResume_5yljmg_k$();
|
|
1613
|
-
};
|
|
1614
|
-
protoOf(EconomyApi).indexCompaniesEconomyStatus = function () {
|
|
1615
|
-
var tmp = this;
|
|
1616
|
-
return promisify(function ($completion) {
|
|
1617
|
-
return tmp.indexCompaniesEconomyStatus_7qd8zb_k$($completion);
|
|
1618
|
-
});
|
|
1619
|
-
};
|
|
1620
|
-
protoOf(EconomyApi).indexCompaniesEconomyStatus$suspendBridge_2m1rfa_k$ = function ($completion) {
|
|
1621
|
-
var tmp = new $indexCompaniesEconomyStatus$suspendBridgeCOROUTINE$(this, $completion);
|
|
1622
|
-
tmp.result_1 = Unit_instance;
|
|
1623
|
-
tmp.exception_1 = null;
|
|
1624
|
-
return tmp.doResume_5yljmg_k$();
|
|
1625
|
-
};
|
|
1626
|
-
protoOf(EconomyApi).indexEconomicReport_1xxx2z_k$ = function (companyId, fields, $completion) {
|
|
1627
|
-
var tmp = new $indexEconomicReportCOROUTINE$(this, companyId, fields, $completion);
|
|
1628
|
-
tmp.result_1 = Unit_instance;
|
|
1629
|
-
tmp.exception_1 = null;
|
|
1630
|
-
return tmp.doResume_5yljmg_k$();
|
|
1631
|
-
};
|
|
1632
|
-
protoOf(EconomyApi).indexEconomicReport$default_a0yzpm_k$ = function (companyId, fields, $completion, $super) {
|
|
1633
|
-
fields = fields === VOID ? null : fields;
|
|
1634
|
-
return $super === VOID ? this.indexEconomicReport_1xxx2z_k$(companyId, fields, $completion) : $super.indexEconomicReport_1xxx2z_k$.call(this, companyId, fields, $completion);
|
|
1635
|
-
};
|
|
1636
|
-
protoOf(EconomyApi).indexEconomicReport = function (companyId, fields) {
|
|
1637
|
-
var tmp = this;
|
|
1638
|
-
return promisify(function ($completion) {
|
|
1639
|
-
return tmp.indexEconomicReport$default_a0yzpm_k$(companyId, fields, $completion);
|
|
1640
|
-
});
|
|
1641
|
-
};
|
|
1642
|
-
protoOf(EconomyApi).indexEconomicReport$suspendBridge_m9ysbo_k$ = function (companyId, fields, $completion) {
|
|
1643
|
-
var tmp = new $indexEconomicReport$suspendBridgeCOROUTINE$(this, companyId, fields, $completion);
|
|
1644
|
-
tmp.result_1 = Unit_instance;
|
|
1645
|
-
tmp.exception_1 = null;
|
|
1646
|
-
return tmp.doResume_5yljmg_k$();
|
|
1647
|
-
};
|
|
1648
|
-
protoOf(EconomyApi).indexEconomicReportsUser_t7at12_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1649
|
-
var tmp = new $indexEconomicReportsUserCOROUTINE$(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1650
|
-
tmp.result_1 = Unit_instance;
|
|
1651
|
-
tmp.exception_1 = null;
|
|
1652
|
-
return tmp.doResume_5yljmg_k$();
|
|
1653
|
-
};
|
|
1654
|
-
protoOf(EconomyApi).indexEconomicReportsUser$default_i4fpmn_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
1655
|
-
companyIds = companyIds === VOID ? null : companyIds;
|
|
1656
|
-
status = status === VOID ? null : status;
|
|
1657
|
-
year = year === VOID ? null : year;
|
|
1658
|
-
fields = fields === VOID ? null : fields;
|
|
1659
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
1660
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
1661
|
-
count = count === VOID ? null : count;
|
|
1662
|
-
return $super === VOID ? this.indexEconomicReportsUser_t7at12_k$(companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) : $super.indexEconomicReportsUser_t7at12_k$.call(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1663
|
-
};
|
|
1664
|
-
protoOf(EconomyApi).indexEconomicReportsUser = function (companyIds, status, year, fields, pageToken, autoPaginate, count) {
|
|
1665
|
-
var tmp = this;
|
|
1666
|
-
return promisify(function ($completion) {
|
|
1667
|
-
return tmp.indexEconomicReportsUser$default_i4fpmn_k$(companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1668
|
-
});
|
|
1669
|
-
};
|
|
1670
|
-
protoOf(EconomyApi).indexEconomicReportsUser$suspendBridge_r01445_k$ = function (companyIds, status, year, fields, pageToken, autoPaginate, count, $completion) {
|
|
1671
|
-
var tmp = new $indexEconomicReportsUser$suspendBridgeCOROUTINE$(this, companyIds, status, year, fields, pageToken, autoPaginate, count, $completion);
|
|
1672
|
-
tmp.result_1 = Unit_instance;
|
|
1673
|
-
tmp.exception_1 = null;
|
|
1674
|
-
return tmp.doResume_5yljmg_k$();
|
|
1675
|
-
};
|
|
1676
|
-
protoOf(EconomyApi).indexEconomyStatus_8q1p1t_k$ = function (companyId, fields, $completion) {
|
|
1677
|
-
var tmp = new $indexEconomyStatusCOROUTINE$(this, companyId, fields, $completion);
|
|
1678
|
-
tmp.result_1 = Unit_instance;
|
|
1679
|
-
tmp.exception_1 = null;
|
|
1680
|
-
return tmp.doResume_5yljmg_k$();
|
|
1681
|
-
};
|
|
1682
|
-
protoOf(EconomyApi).indexEconomyStatus$default_1cj90e_k$ = function (companyId, fields, $completion, $super) {
|
|
1683
|
-
fields = fields === VOID ? null : fields;
|
|
1684
|
-
return $super === VOID ? this.indexEconomyStatus_8q1p1t_k$(companyId, fields, $completion) : $super.indexEconomyStatus_8q1p1t_k$.call(this, companyId, fields, $completion);
|
|
1685
|
-
};
|
|
1686
|
-
protoOf(EconomyApi).indexEconomyStatus = function (companyId, fields) {
|
|
1687
|
-
var tmp = this;
|
|
1688
|
-
return promisify(function ($completion) {
|
|
1689
|
-
return tmp.indexEconomyStatus$default_1cj90e_k$(companyId, fields, $completion);
|
|
1690
|
-
});
|
|
1691
|
-
};
|
|
1692
|
-
protoOf(EconomyApi).indexEconomyStatus$suspendBridge_l04u40_k$ = function (companyId, fields, $completion) {
|
|
1693
|
-
var tmp = new $indexEconomyStatus$suspendBridgeCOROUTINE$(this, companyId, fields, $completion);
|
|
1694
|
-
tmp.result_1 = Unit_instance;
|
|
1695
|
-
tmp.exception_1 = null;
|
|
1696
|
-
return tmp.doResume_5yljmg_k$();
|
|
1697
|
-
};
|
|
1698
|
-
protoOf(EconomyApi).orderEconomicReport_sl4pt0_k$ = function (companyId, orderEconomicReportCommand, $completion) {
|
|
1699
|
-
var tmp = new $orderEconomicReportCOROUTINE$(this, companyId, orderEconomicReportCommand, $completion);
|
|
1700
|
-
tmp.result_1 = Unit_instance;
|
|
1701
|
-
tmp.exception_1 = null;
|
|
1702
|
-
return tmp.doResume_5yljmg_k$();
|
|
1703
|
-
};
|
|
1704
|
-
protoOf(EconomyApi).orderEconomicReport = function (companyId, orderEconomicReportCommand) {
|
|
1705
|
-
var tmp = this;
|
|
1706
|
-
return promisify(function ($completion) {
|
|
1707
|
-
return tmp.orderEconomicReport_sl4pt0_k$(companyId, orderEconomicReportCommand, $completion);
|
|
1708
|
-
});
|
|
1709
|
-
};
|
|
1710
|
-
protoOf(EconomyApi).orderEconomicReport$suspendBridge_vevb4z_k$ = function (companyId, orderEconomicReportCommand, $completion) {
|
|
1711
|
-
var tmp = new $orderEconomicReport$suspendBridgeCOROUTINE$(this, companyId, orderEconomicReportCommand, $completion);
|
|
1712
|
-
tmp.result_1 = Unit_instance;
|
|
1713
|
-
tmp.exception_1 = null;
|
|
1714
|
-
return tmp.doResume_5yljmg_k$();
|
|
1715
|
-
};
|
|
1716
|
-
protoOf(EconomyApi).putEconomicReportFile_hvdf1i_k$ = function (companyId, reportId, economicReportType, documentId, $completion) {
|
|
1717
|
-
var tmp = new $putEconomicReportFileCOROUTINE$(this, companyId, reportId, economicReportType, documentId, $completion);
|
|
1718
|
-
tmp.result_1 = Unit_instance;
|
|
1719
|
-
tmp.exception_1 = null;
|
|
1720
|
-
return tmp.doResume_5yljmg_k$();
|
|
1721
|
-
};
|
|
1722
|
-
protoOf(EconomyApi).putEconomicReportFile = function (companyId, reportId, economicReportType, documentId) {
|
|
1723
|
-
var tmp = this;
|
|
1724
|
-
return promisify(function ($completion) {
|
|
1725
|
-
return tmp.putEconomicReportFile_hvdf1i_k$(companyId, reportId, economicReportType, documentId, $completion);
|
|
1726
|
-
});
|
|
1727
|
-
};
|
|
1728
|
-
protoOf(EconomyApi).putEconomicReportFile$suspendBridge_5h7j6t_k$ = function (companyId, reportId, economicReportType, documentId, $completion) {
|
|
1729
|
-
var tmp = new $putEconomicReportFile$suspendBridgeCOROUTINE$(this, companyId, reportId, economicReportType, documentId, $completion);
|
|
1730
|
-
tmp.result_1 = Unit_instance;
|
|
1731
|
-
tmp.exception_1 = null;
|
|
1732
|
-
return tmp.doResume_5yljmg_k$();
|
|
1733
|
-
};
|
|
1734
|
-
protoOf(EconomyApi).showEconomicReport_4ovznn_k$ = function (companyId, reportId, fields, $completion) {
|
|
1735
|
-
var tmp = new $showEconomicReportCOROUTINE$(this, companyId, reportId, fields, $completion);
|
|
1736
|
-
tmp.result_1 = Unit_instance;
|
|
1737
|
-
tmp.exception_1 = null;
|
|
1738
|
-
return tmp.doResume_5yljmg_k$();
|
|
1739
|
-
};
|
|
1740
|
-
protoOf(EconomyApi).showEconomicReport$default_jsfgvg_k$ = function (companyId, reportId, fields, $completion, $super) {
|
|
1741
|
-
fields = fields === VOID ? null : fields;
|
|
1742
|
-
return $super === VOID ? this.showEconomicReport_4ovznn_k$(companyId, reportId, fields, $completion) : $super.showEconomicReport_4ovznn_k$.call(this, companyId, reportId, fields, $completion);
|
|
1743
|
-
};
|
|
1744
|
-
protoOf(EconomyApi).showEconomicReport = function (companyId, reportId, fields) {
|
|
1745
|
-
var tmp = this;
|
|
1746
|
-
return promisify(function ($completion) {
|
|
1747
|
-
return tmp.showEconomicReport$default_jsfgvg_k$(companyId, reportId, fields, $completion);
|
|
1748
|
-
});
|
|
1749
|
-
};
|
|
1750
|
-
protoOf(EconomyApi).showEconomicReport$suspendBridge_l6yflo_k$ = function (companyId, reportId, fields, $completion) {
|
|
1751
|
-
var tmp = new $showEconomicReport$suspendBridgeCOROUTINE$(this, companyId, reportId, fields, $completion);
|
|
1752
|
-
tmp.result_1 = Unit_instance;
|
|
1753
|
-
tmp.exception_1 = null;
|
|
1754
|
-
return tmp.doResume_5yljmg_k$();
|
|
1755
|
-
};
|
|
1756
|
-
function EconomyApi() {
|
|
1757
|
-
}
|
|
1758
1858
|
function AccountList$Companion$$childSerializers$_anonymous__x0qfpb() {
|
|
1759
1859
|
return Companion_getInstance_6().serializer_9w0wvi_k$();
|
|
1760
1860
|
}
|
|
@@ -4384,6 +4484,16 @@ export {
|
|
|
4384
4484
|
bankAccountsApi as bankAccountsApi,
|
|
4385
4485
|
BankAccountsApi as BankAccountsApi,
|
|
4386
4486
|
EconomyApi as EconomyApi,
|
|
4487
|
+
deleteEconomicReportOperation as deleteEconomicReportOperation,
|
|
4488
|
+
indexCompaniesEconomyStatusOperation as indexCompaniesEconomyStatusOperation,
|
|
4489
|
+
indexEconomicReportOperation as indexEconomicReportOperation,
|
|
4490
|
+
indexEconomicReportsUserOperation as indexEconomicReportsUserOperation,
|
|
4491
|
+
indexEconomyStatusOperation as indexEconomyStatusOperation,
|
|
4492
|
+
listCompanyBankAccountTransactionsOperation as listCompanyBankAccountTransactionsOperation,
|
|
4493
|
+
listCompanyBankAccountsOperation as listCompanyBankAccountsOperation,
|
|
4494
|
+
orderEconomicReportOperation as orderEconomicReportOperation,
|
|
4495
|
+
putEconomicReportFileOperation as putEconomicReportFileOperation,
|
|
4496
|
+
showEconomicReportOperation as showEconomicReportOperation,
|
|
4387
4497
|
AccountList as AccountList,
|
|
4388
4498
|
BankAccount as BankAccount,
|
|
4389
4499
|
BankMovement as BankMovement,
|