@solibo/home-api 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.mjs +4 -8
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +2 -2
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +716 -2
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
protoOf180f3jzyo7rfj as protoOf,
|
|
5
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
6
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
8
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
9
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
10
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
7
13
|
listOf1jh22dvmctj1r as listOf,
|
|
8
14
|
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
9
15
|
listOfvhqybd2zx248 as listOf_0,
|
|
10
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
11
|
-
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
12
16
|
Unitkvevlwgzwiuc as Unit,
|
|
13
17
|
arrayOf1akklvh2at202 as arrayOf,
|
|
14
18
|
createKType31ecntyyaay3k as createKType,
|
|
15
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
16
|
-
await3n7kedgocftsv as await_0,
|
|
17
19
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
18
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
19
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
21
21
|
lazy1261dae0bgscp as lazy,
|
|
22
22
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
38
38
|
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
39
39
|
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
40
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
40
41
|
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
41
42
|
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
42
43
|
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
43
44
|
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
44
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
45
45
|
} from './solibo-sdk-sdk-core.mjs';
|
|
46
46
|
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
47
47
|
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
@@ -61,17 +61,17 @@ import {
|
|
|
61
61
|
var imul = Math.imul;
|
|
62
62
|
//endregion
|
|
63
63
|
//region block: pre-declaration
|
|
64
|
-
initMetadataForCoroutine($contactOkonomiCOROUTINE$, CoroutineImpl);
|
|
65
64
|
initMetadataForCoroutine($contactOkonomi$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
66
|
-
initMetadataForCoroutine($contactOrderCOROUTINE$, CoroutineImpl);
|
|
67
65
|
initMetadataForCoroutine($contactOrder$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
68
|
-
initMetadataForCoroutine($contactSalesCOROUTINE$, CoroutineImpl);
|
|
69
66
|
initMetadataForCoroutine($contactSales$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
70
|
-
initMetadataForCoroutine($contactTryFreeCOROUTINE$, CoroutineImpl);
|
|
71
67
|
initMetadataForCoroutine($contactTryFree$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
72
|
-
initMetadataForCoroutine($signupNewsletterCOROUTINE$, CoroutineImpl);
|
|
73
68
|
initMetadataForCoroutine($signupNewsletter$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
74
69
|
initMetadataForClass(MarketingApi, 'MarketingApi', create, ApiClient, VOID, [1, 3]);
|
|
70
|
+
initMetadataForCoroutine($contactOkonomiOperationCOROUTINE$, CoroutineImpl);
|
|
71
|
+
initMetadataForCoroutine($contactOrderOperationCOROUTINE$, CoroutineImpl);
|
|
72
|
+
initMetadataForCoroutine($contactSalesOperationCOROUTINE$, CoroutineImpl);
|
|
73
|
+
initMetadataForCoroutine($contactTryFreeOperationCOROUTINE$, CoroutineImpl);
|
|
74
|
+
initMetadataForCoroutine($signupNewsletterOperationCOROUTINE$, CoroutineImpl);
|
|
75
75
|
initMetadataForCompanion(Companion);
|
|
76
76
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
77
77
|
initMetadataForClass(ContactOrderCommand, 'ContactOrderCommand', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -117,73 +117,6 @@ function MarketingApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
117
117
|
function createWithClient(baseUrl, httpClient) {
|
|
118
118
|
return MarketingApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(MarketingApi)));
|
|
119
119
|
}
|
|
120
|
-
function $contactOkonomiCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
|
|
121
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
122
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
123
|
-
this.companyId_1 = companyId;
|
|
124
|
-
}
|
|
125
|
-
protoOf($contactOkonomiCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
126
|
-
var suspendResult = this.result_1;
|
|
127
|
-
$sm: do
|
|
128
|
-
try {
|
|
129
|
-
var tmp = this.state_1;
|
|
130
|
-
switch (tmp) {
|
|
131
|
-
case 0:
|
|
132
|
-
this.exceptionState_1 = 2;
|
|
133
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
134
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
135
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
136
|
-
if (this.companyId_1 == null)
|
|
137
|
-
null;
|
|
138
|
-
else {
|
|
139
|
-
var tmp2 = 'companyId';
|
|
140
|
-
var value = listOf_0(this.companyId_1.toString());
|
|
141
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
145
|
-
var tmp1_method = RequestMethod_POST_getInstance();
|
|
146
|
-
var localVariableConfig = new RequestConfig(tmp1_method, '/marketing/contact/economy', localVariableHeaders, VOID, localVariableQuery, true);
|
|
147
|
-
this.state_1 = 1;
|
|
148
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
149
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
150
|
-
return suspendResult;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
continue $sm;
|
|
154
|
-
case 1:
|
|
155
|
-
var this_0 = suspendResult;
|
|
156
|
-
var tmp_0 = getKClass(Unit);
|
|
157
|
-
var tmp_1 = null instanceof Unit;
|
|
158
|
-
var tmp_2;
|
|
159
|
-
try {
|
|
160
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
161
|
-
} catch ($p) {
|
|
162
|
-
var tmp_3;
|
|
163
|
-
if ($p instanceof Error) {
|
|
164
|
-
var _unused_var__etf5q3 = $p;
|
|
165
|
-
tmp_3 = null;
|
|
166
|
-
} else {
|
|
167
|
-
throw $p;
|
|
168
|
-
}
|
|
169
|
-
tmp_2 = tmp_3;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
173
|
-
case 2:
|
|
174
|
-
throw this.exception_1;
|
|
175
|
-
}
|
|
176
|
-
} catch ($p_0) {
|
|
177
|
-
var e = $p_0;
|
|
178
|
-
if (this.exceptionState_1 === 2) {
|
|
179
|
-
throw e;
|
|
180
|
-
} else {
|
|
181
|
-
this.state_1 = this.exceptionState_1;
|
|
182
|
-
this.exception_1 = e;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
while (true);
|
|
186
|
-
};
|
|
187
120
|
function $contactOkonomi$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, resultContinuation) {
|
|
188
121
|
CoroutineImpl.call(this, resultContinuation);
|
|
189
122
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -237,65 +170,6 @@ protoOf($contactOkonomi$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
237
170
|
}
|
|
238
171
|
while (true);
|
|
239
172
|
};
|
|
240
|
-
function $contactOrderCOROUTINE$(_this__u8e3s4, contactOrderCommand, resultContinuation) {
|
|
241
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
242
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
243
|
-
this.contactOrderCommand_1 = contactOrderCommand;
|
|
244
|
-
}
|
|
245
|
-
protoOf($contactOrderCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
246
|
-
var suspendResult = this.result_1;
|
|
247
|
-
$sm: do
|
|
248
|
-
try {
|
|
249
|
-
var tmp = this.state_1;
|
|
250
|
-
switch (tmp) {
|
|
251
|
-
case 0:
|
|
252
|
-
this.exceptionState_1 = 2;
|
|
253
|
-
var localVariableAuthNames = emptyList();
|
|
254
|
-
var localVariableBody = this.contactOrderCommand_1;
|
|
255
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
256
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
257
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
258
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/order', localVariableHeaders, VOID, localVariableQuery, false);
|
|
259
|
-
this.state_1 = 1;
|
|
260
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_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(Unit);
|
|
269
|
-
var tmp_1 = null instanceof Unit;
|
|
270
|
-
var tmp_2;
|
|
271
|
-
try {
|
|
272
|
-
tmp_2 = createKType(getKClass(Unit), 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
173
|
function $contactOrder$suspendBridgeCOROUTINE$(_this__u8e3s4, contactOrderCommand, resultContinuation) {
|
|
300
174
|
CoroutineImpl.call(this, resultContinuation);
|
|
301
175
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -349,65 +223,6 @@ protoOf($contactOrder$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
349
223
|
}
|
|
350
224
|
while (true);
|
|
351
225
|
};
|
|
352
|
-
function $contactSalesCOROUTINE$(_this__u8e3s4, contactSalesCommand, resultContinuation) {
|
|
353
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
354
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
355
|
-
this.contactSalesCommand_1 = contactSalesCommand;
|
|
356
|
-
}
|
|
357
|
-
protoOf($contactSalesCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
358
|
-
var suspendResult = this.result_1;
|
|
359
|
-
$sm: do
|
|
360
|
-
try {
|
|
361
|
-
var tmp = this.state_1;
|
|
362
|
-
switch (tmp) {
|
|
363
|
-
case 0:
|
|
364
|
-
this.exceptionState_1 = 2;
|
|
365
|
-
var localVariableAuthNames = emptyList();
|
|
366
|
-
var localVariableBody = this.contactSalesCommand_1;
|
|
367
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
368
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
369
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
370
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/sales', localVariableHeaders, VOID, localVariableQuery, false);
|
|
371
|
-
this.state_1 = 1;
|
|
372
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
373
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
374
|
-
return suspendResult;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
continue $sm;
|
|
378
|
-
case 1:
|
|
379
|
-
var this_0 = suspendResult;
|
|
380
|
-
var tmp_0 = getKClass(Unit);
|
|
381
|
-
var tmp_1 = null instanceof Unit;
|
|
382
|
-
var tmp_2;
|
|
383
|
-
try {
|
|
384
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
385
|
-
} catch ($p) {
|
|
386
|
-
var tmp_3;
|
|
387
|
-
if ($p instanceof Error) {
|
|
388
|
-
var _unused_var__etf5q3 = $p;
|
|
389
|
-
tmp_3 = null;
|
|
390
|
-
} else {
|
|
391
|
-
throw $p;
|
|
392
|
-
}
|
|
393
|
-
tmp_2 = tmp_3;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
397
|
-
case 2:
|
|
398
|
-
throw this.exception_1;
|
|
399
|
-
}
|
|
400
|
-
} catch ($p_0) {
|
|
401
|
-
var e = $p_0;
|
|
402
|
-
if (this.exceptionState_1 === 2) {
|
|
403
|
-
throw e;
|
|
404
|
-
} else {
|
|
405
|
-
this.state_1 = this.exceptionState_1;
|
|
406
|
-
this.exception_1 = e;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
while (true);
|
|
410
|
-
};
|
|
411
226
|
function $contactSales$suspendBridgeCOROUTINE$(_this__u8e3s4, contactSalesCommand, resultContinuation) {
|
|
412
227
|
CoroutineImpl.call(this, resultContinuation);
|
|
413
228
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -461,65 +276,6 @@ protoOf($contactSales$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
|
|
|
461
276
|
}
|
|
462
277
|
while (true);
|
|
463
278
|
};
|
|
464
|
-
function $contactTryFreeCOROUTINE$(_this__u8e3s4, contactTryFreeCommand, resultContinuation) {
|
|
465
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
466
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
467
|
-
this.contactTryFreeCommand_1 = contactTryFreeCommand;
|
|
468
|
-
}
|
|
469
|
-
protoOf($contactTryFreeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
470
|
-
var suspendResult = this.result_1;
|
|
471
|
-
$sm: do
|
|
472
|
-
try {
|
|
473
|
-
var tmp = this.state_1;
|
|
474
|
-
switch (tmp) {
|
|
475
|
-
case 0:
|
|
476
|
-
this.exceptionState_1 = 2;
|
|
477
|
-
var localVariableAuthNames = emptyList();
|
|
478
|
-
var localVariableBody = this.contactTryFreeCommand_1;
|
|
479
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
480
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
481
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
482
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/tryFree', localVariableHeaders, VOID, localVariableQuery, false);
|
|
483
|
-
this.state_1 = 1;
|
|
484
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
485
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
486
|
-
return suspendResult;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
continue $sm;
|
|
490
|
-
case 1:
|
|
491
|
-
var this_0 = suspendResult;
|
|
492
|
-
var tmp_0 = getKClass(Unit);
|
|
493
|
-
var tmp_1 = null instanceof Unit;
|
|
494
|
-
var tmp_2;
|
|
495
|
-
try {
|
|
496
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
497
|
-
} catch ($p) {
|
|
498
|
-
var tmp_3;
|
|
499
|
-
if ($p instanceof Error) {
|
|
500
|
-
var _unused_var__etf5q3 = $p;
|
|
501
|
-
tmp_3 = null;
|
|
502
|
-
} else {
|
|
503
|
-
throw $p;
|
|
504
|
-
}
|
|
505
|
-
tmp_2 = tmp_3;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
509
|
-
case 2:
|
|
510
|
-
throw this.exception_1;
|
|
511
|
-
}
|
|
512
|
-
} catch ($p_0) {
|
|
513
|
-
var e = $p_0;
|
|
514
|
-
if (this.exceptionState_1 === 2) {
|
|
515
|
-
throw e;
|
|
516
|
-
} else {
|
|
517
|
-
this.state_1 = this.exceptionState_1;
|
|
518
|
-
this.exception_1 = e;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
while (true);
|
|
522
|
-
};
|
|
523
279
|
function $contactTryFree$suspendBridgeCOROUTINE$(_this__u8e3s4, contactTryFreeCommand, resultContinuation) {
|
|
524
280
|
CoroutineImpl.call(this, resultContinuation);
|
|
525
281
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
@@ -573,71 +329,12 @@ protoOf($contactTryFree$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function (
|
|
|
573
329
|
}
|
|
574
330
|
while (true);
|
|
575
331
|
};
|
|
576
|
-
function $
|
|
332
|
+
function $signupNewsletter$suspendBridgeCOROUTINE$(_this__u8e3s4, newsletterSubscribeCommand, resultContinuation) {
|
|
577
333
|
CoroutineImpl.call(this, resultContinuation);
|
|
578
334
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
579
335
|
this.newsletterSubscribeCommand_1 = newsletterSubscribeCommand;
|
|
580
336
|
}
|
|
581
|
-
protoOf($
|
|
582
|
-
var suspendResult = this.result_1;
|
|
583
|
-
$sm: do
|
|
584
|
-
try {
|
|
585
|
-
var tmp = this.state_1;
|
|
586
|
-
switch (tmp) {
|
|
587
|
-
case 0:
|
|
588
|
-
this.exceptionState_1 = 2;
|
|
589
|
-
var localVariableAuthNames = emptyList();
|
|
590
|
-
var localVariableBody = this.newsletterSubscribeCommand_1;
|
|
591
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
592
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
593
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
594
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/newsletter', localVariableHeaders, VOID, localVariableQuery, false);
|
|
595
|
-
this.state_1 = 1;
|
|
596
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
597
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
598
|
-
return suspendResult;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
continue $sm;
|
|
602
|
-
case 1:
|
|
603
|
-
var this_0 = suspendResult;
|
|
604
|
-
var tmp_0 = getKClass(Unit);
|
|
605
|
-
var tmp_1 = null instanceof Unit;
|
|
606
|
-
var tmp_2;
|
|
607
|
-
try {
|
|
608
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
609
|
-
} catch ($p) {
|
|
610
|
-
var tmp_3;
|
|
611
|
-
if ($p instanceof Error) {
|
|
612
|
-
var _unused_var__etf5q3 = $p;
|
|
613
|
-
tmp_3 = null;
|
|
614
|
-
} else {
|
|
615
|
-
throw $p;
|
|
616
|
-
}
|
|
617
|
-
tmp_2 = tmp_3;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
621
|
-
case 2:
|
|
622
|
-
throw this.exception_1;
|
|
623
|
-
}
|
|
624
|
-
} catch ($p_0) {
|
|
625
|
-
var e = $p_0;
|
|
626
|
-
if (this.exceptionState_1 === 2) {
|
|
627
|
-
throw e;
|
|
628
|
-
} else {
|
|
629
|
-
this.state_1 = this.exceptionState_1;
|
|
630
|
-
this.exception_1 = e;
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
while (true);
|
|
634
|
-
};
|
|
635
|
-
function $signupNewsletter$suspendBridgeCOROUTINE$(_this__u8e3s4, newsletterSubscribeCommand, resultContinuation) {
|
|
636
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
637
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
638
|
-
this.newsletterSubscribeCommand_1 = newsletterSubscribeCommand;
|
|
639
|
-
}
|
|
640
|
-
protoOf($signupNewsletter$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
337
|
+
protoOf($signupNewsletter$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
641
338
|
var suspendResult = this.result_1;
|
|
642
339
|
$sm: do
|
|
643
340
|
try {
|
|
@@ -686,10 +383,7 @@ protoOf($signupNewsletter$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function
|
|
|
686
383
|
while (true);
|
|
687
384
|
};
|
|
688
385
|
protoOf(MarketingApi).contactOkonomi_4wsn09_k$ = function (companyId, $completion) {
|
|
689
|
-
|
|
690
|
-
tmp.result_1 = Unit_instance;
|
|
691
|
-
tmp.exception_1 = null;
|
|
692
|
-
return tmp.doResume_5yljmg_k$();
|
|
386
|
+
return contactOkonomiOperation_0(this, companyId, $completion);
|
|
693
387
|
};
|
|
694
388
|
protoOf(MarketingApi).contactOkonomi$default_pfq55k_k$ = function (companyId, $completion, $super) {
|
|
695
389
|
companyId = companyId === VOID ? null : companyId;
|
|
@@ -708,10 +402,7 @@ protoOf(MarketingApi).contactOkonomi$suspendBridge_9y4vew_k$ = function (company
|
|
|
708
402
|
return tmp.doResume_5yljmg_k$();
|
|
709
403
|
};
|
|
710
404
|
protoOf(MarketingApi).contactOrder_x55382_k$ = function (contactOrderCommand, $completion) {
|
|
711
|
-
|
|
712
|
-
tmp.result_1 = Unit_instance;
|
|
713
|
-
tmp.exception_1 = null;
|
|
714
|
-
return tmp.doResume_5yljmg_k$();
|
|
405
|
+
return contactOrderOperation_0(this, contactOrderCommand, $completion);
|
|
715
406
|
};
|
|
716
407
|
protoOf(MarketingApi).contactOrder = function (contactOrderCommand) {
|
|
717
408
|
var tmp = this;
|
|
@@ -726,10 +417,7 @@ protoOf(MarketingApi).contactOrder$suspendBridge_aj6zjh_k$ = function (contactOr
|
|
|
726
417
|
return tmp.doResume_5yljmg_k$();
|
|
727
418
|
};
|
|
728
419
|
protoOf(MarketingApi).contactSales_vvqmj2_k$ = function (contactSalesCommand, $completion) {
|
|
729
|
-
|
|
730
|
-
tmp.result_1 = Unit_instance;
|
|
731
|
-
tmp.exception_1 = null;
|
|
732
|
-
return tmp.doResume_5yljmg_k$();
|
|
420
|
+
return contactSalesOperation_0(this, contactSalesCommand, $completion);
|
|
733
421
|
};
|
|
734
422
|
protoOf(MarketingApi).contactSales = function (contactSalesCommand) {
|
|
735
423
|
var tmp = this;
|
|
@@ -744,10 +432,7 @@ protoOf(MarketingApi).contactSales$suspendBridge_hqgfsh_k$ = function (contactSa
|
|
|
744
432
|
return tmp.doResume_5yljmg_k$();
|
|
745
433
|
};
|
|
746
434
|
protoOf(MarketingApi).contactTryFree_mv1cp0_k$ = function (contactTryFreeCommand, $completion) {
|
|
747
|
-
|
|
748
|
-
tmp.result_1 = Unit_instance;
|
|
749
|
-
tmp.exception_1 = null;
|
|
750
|
-
return tmp.doResume_5yljmg_k$();
|
|
435
|
+
return contactTryFreeOperation_0(this, contactTryFreeCommand, $completion);
|
|
751
436
|
};
|
|
752
437
|
protoOf(MarketingApi).contactTryFree = function (contactTryFreeCommand) {
|
|
753
438
|
var tmp = this;
|
|
@@ -762,10 +447,7 @@ protoOf(MarketingApi).contactTryFree$suspendBridge_356zyd_k$ = function (contact
|
|
|
762
447
|
return tmp.doResume_5yljmg_k$();
|
|
763
448
|
};
|
|
764
449
|
protoOf(MarketingApi).signupNewsletter_3jopou_k$ = function (newsletterSubscribeCommand, $completion) {
|
|
765
|
-
|
|
766
|
-
tmp.result_1 = Unit_instance;
|
|
767
|
-
tmp.exception_1 = null;
|
|
768
|
-
return tmp.doResume_5yljmg_k$();
|
|
450
|
+
return signupNewsletterOperation_0(this, newsletterSubscribeCommand, $completion);
|
|
769
451
|
};
|
|
770
452
|
protoOf(MarketingApi).signupNewsletter = function (newsletterSubscribeCommand) {
|
|
771
453
|
var tmp = this;
|
|
@@ -781,6 +463,365 @@ protoOf(MarketingApi).signupNewsletter$suspendBridge_q03ehd_k$ = function (newsl
|
|
|
781
463
|
};
|
|
782
464
|
function MarketingApi() {
|
|
783
465
|
}
|
|
466
|
+
function contactOkonomiOperation(client, companyId) {
|
|
467
|
+
return promisify(function ($completion) {
|
|
468
|
+
return contactOkonomiOperation_0(client, companyId, $completion);
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
function contactOkonomiOperation_0(client, companyId, $completion) {
|
|
472
|
+
companyId = companyId === VOID ? null : companyId;
|
|
473
|
+
var tmp = new $contactOkonomiOperationCOROUTINE$(client, companyId, $completion);
|
|
474
|
+
tmp.result_1 = Unit_instance;
|
|
475
|
+
tmp.exception_1 = null;
|
|
476
|
+
return tmp.doResume_5yljmg_k$();
|
|
477
|
+
}
|
|
478
|
+
function $contactOkonomiOperationCOROUTINE$(client, companyId, resultContinuation) {
|
|
479
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
480
|
+
this.client_1 = client;
|
|
481
|
+
this.companyId_1 = companyId;
|
|
482
|
+
}
|
|
483
|
+
protoOf($contactOkonomiOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
484
|
+
var suspendResult = this.result_1;
|
|
485
|
+
$sm: do
|
|
486
|
+
try {
|
|
487
|
+
var tmp = this.state_1;
|
|
488
|
+
switch (tmp) {
|
|
489
|
+
case 0:
|
|
490
|
+
this.exceptionState_1 = 2;
|
|
491
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
492
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
493
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
494
|
+
if (this.companyId_1 == null)
|
|
495
|
+
null;
|
|
496
|
+
else {
|
|
497
|
+
var tmp2 = 'companyId';
|
|
498
|
+
var value = listOf_0(this.companyId_1.toString());
|
|
499
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
503
|
+
var tmp1_method = RequestMethod_POST_getInstance();
|
|
504
|
+
var localVariableConfig = new RequestConfig(tmp1_method, '/marketing/contact/economy', localVariableHeaders, VOID, localVariableQuery, true);
|
|
505
|
+
this.state_1 = 1;
|
|
506
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
507
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
508
|
+
return suspendResult;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
continue $sm;
|
|
512
|
+
case 1:
|
|
513
|
+
var this_0 = suspendResult;
|
|
514
|
+
var tmp_0 = getKClass(Unit);
|
|
515
|
+
var tmp_1 = null instanceof Unit;
|
|
516
|
+
var tmp_2;
|
|
517
|
+
try {
|
|
518
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
519
|
+
} catch ($p) {
|
|
520
|
+
var tmp_3;
|
|
521
|
+
if ($p instanceof Error) {
|
|
522
|
+
var _unused_var__etf5q3 = $p;
|
|
523
|
+
tmp_3 = null;
|
|
524
|
+
} else {
|
|
525
|
+
throw $p;
|
|
526
|
+
}
|
|
527
|
+
tmp_2 = tmp_3;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
531
|
+
case 2:
|
|
532
|
+
throw this.exception_1;
|
|
533
|
+
}
|
|
534
|
+
} catch ($p_0) {
|
|
535
|
+
var e = $p_0;
|
|
536
|
+
if (this.exceptionState_1 === 2) {
|
|
537
|
+
throw e;
|
|
538
|
+
} else {
|
|
539
|
+
this.state_1 = this.exceptionState_1;
|
|
540
|
+
this.exception_1 = e;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
while (true);
|
|
544
|
+
};
|
|
545
|
+
function contactOrderOperation(client, contactOrderCommand) {
|
|
546
|
+
return promisify(function ($completion) {
|
|
547
|
+
return contactOrderOperation_0(client, contactOrderCommand, $completion);
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
function contactOrderOperation_0(client, contactOrderCommand, $completion) {
|
|
551
|
+
var tmp = new $contactOrderOperationCOROUTINE$(client, contactOrderCommand, $completion);
|
|
552
|
+
tmp.result_1 = Unit_instance;
|
|
553
|
+
tmp.exception_1 = null;
|
|
554
|
+
return tmp.doResume_5yljmg_k$();
|
|
555
|
+
}
|
|
556
|
+
function $contactOrderOperationCOROUTINE$(client, contactOrderCommand, resultContinuation) {
|
|
557
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
558
|
+
this.client_1 = client;
|
|
559
|
+
this.contactOrderCommand_1 = contactOrderCommand;
|
|
560
|
+
}
|
|
561
|
+
protoOf($contactOrderOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
562
|
+
var suspendResult = this.result_1;
|
|
563
|
+
$sm: do
|
|
564
|
+
try {
|
|
565
|
+
var tmp = this.state_1;
|
|
566
|
+
switch (tmp) {
|
|
567
|
+
case 0:
|
|
568
|
+
this.exceptionState_1 = 2;
|
|
569
|
+
var localVariableAuthNames = emptyList();
|
|
570
|
+
var localVariableBody = this.contactOrderCommand_1;
|
|
571
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
572
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
573
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
574
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/order', localVariableHeaders, VOID, localVariableQuery, false);
|
|
575
|
+
this.state_1 = 1;
|
|
576
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
577
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
578
|
+
return suspendResult;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
continue $sm;
|
|
582
|
+
case 1:
|
|
583
|
+
var this_0 = suspendResult;
|
|
584
|
+
var tmp_0 = getKClass(Unit);
|
|
585
|
+
var tmp_1 = null instanceof Unit;
|
|
586
|
+
var tmp_2;
|
|
587
|
+
try {
|
|
588
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
589
|
+
} catch ($p) {
|
|
590
|
+
var tmp_3;
|
|
591
|
+
if ($p instanceof Error) {
|
|
592
|
+
var _unused_var__etf5q3 = $p;
|
|
593
|
+
tmp_3 = null;
|
|
594
|
+
} else {
|
|
595
|
+
throw $p;
|
|
596
|
+
}
|
|
597
|
+
tmp_2 = tmp_3;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
601
|
+
case 2:
|
|
602
|
+
throw this.exception_1;
|
|
603
|
+
}
|
|
604
|
+
} catch ($p_0) {
|
|
605
|
+
var e = $p_0;
|
|
606
|
+
if (this.exceptionState_1 === 2) {
|
|
607
|
+
throw e;
|
|
608
|
+
} else {
|
|
609
|
+
this.state_1 = this.exceptionState_1;
|
|
610
|
+
this.exception_1 = e;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
while (true);
|
|
614
|
+
};
|
|
615
|
+
function contactSalesOperation(client, contactSalesCommand) {
|
|
616
|
+
return promisify(function ($completion) {
|
|
617
|
+
return contactSalesOperation_0(client, contactSalesCommand, $completion);
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
function contactSalesOperation_0(client, contactSalesCommand, $completion) {
|
|
621
|
+
var tmp = new $contactSalesOperationCOROUTINE$(client, contactSalesCommand, $completion);
|
|
622
|
+
tmp.result_1 = Unit_instance;
|
|
623
|
+
tmp.exception_1 = null;
|
|
624
|
+
return tmp.doResume_5yljmg_k$();
|
|
625
|
+
}
|
|
626
|
+
function $contactSalesOperationCOROUTINE$(client, contactSalesCommand, resultContinuation) {
|
|
627
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
628
|
+
this.client_1 = client;
|
|
629
|
+
this.contactSalesCommand_1 = contactSalesCommand;
|
|
630
|
+
}
|
|
631
|
+
protoOf($contactSalesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
632
|
+
var suspendResult = this.result_1;
|
|
633
|
+
$sm: do
|
|
634
|
+
try {
|
|
635
|
+
var tmp = this.state_1;
|
|
636
|
+
switch (tmp) {
|
|
637
|
+
case 0:
|
|
638
|
+
this.exceptionState_1 = 2;
|
|
639
|
+
var localVariableAuthNames = emptyList();
|
|
640
|
+
var localVariableBody = this.contactSalesCommand_1;
|
|
641
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
642
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
643
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
644
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/sales', localVariableHeaders, VOID, localVariableQuery, false);
|
|
645
|
+
this.state_1 = 1;
|
|
646
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
647
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
648
|
+
return suspendResult;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
continue $sm;
|
|
652
|
+
case 1:
|
|
653
|
+
var this_0 = suspendResult;
|
|
654
|
+
var tmp_0 = getKClass(Unit);
|
|
655
|
+
var tmp_1 = null instanceof Unit;
|
|
656
|
+
var tmp_2;
|
|
657
|
+
try {
|
|
658
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
659
|
+
} catch ($p) {
|
|
660
|
+
var tmp_3;
|
|
661
|
+
if ($p instanceof Error) {
|
|
662
|
+
var _unused_var__etf5q3 = $p;
|
|
663
|
+
tmp_3 = null;
|
|
664
|
+
} else {
|
|
665
|
+
throw $p;
|
|
666
|
+
}
|
|
667
|
+
tmp_2 = tmp_3;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
671
|
+
case 2:
|
|
672
|
+
throw this.exception_1;
|
|
673
|
+
}
|
|
674
|
+
} catch ($p_0) {
|
|
675
|
+
var e = $p_0;
|
|
676
|
+
if (this.exceptionState_1 === 2) {
|
|
677
|
+
throw e;
|
|
678
|
+
} else {
|
|
679
|
+
this.state_1 = this.exceptionState_1;
|
|
680
|
+
this.exception_1 = e;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
while (true);
|
|
684
|
+
};
|
|
685
|
+
function contactTryFreeOperation(client, contactTryFreeCommand) {
|
|
686
|
+
return promisify(function ($completion) {
|
|
687
|
+
return contactTryFreeOperation_0(client, contactTryFreeCommand, $completion);
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
function contactTryFreeOperation_0(client, contactTryFreeCommand, $completion) {
|
|
691
|
+
var tmp = new $contactTryFreeOperationCOROUTINE$(client, contactTryFreeCommand, $completion);
|
|
692
|
+
tmp.result_1 = Unit_instance;
|
|
693
|
+
tmp.exception_1 = null;
|
|
694
|
+
return tmp.doResume_5yljmg_k$();
|
|
695
|
+
}
|
|
696
|
+
function $contactTryFreeOperationCOROUTINE$(client, contactTryFreeCommand, resultContinuation) {
|
|
697
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
698
|
+
this.client_1 = client;
|
|
699
|
+
this.contactTryFreeCommand_1 = contactTryFreeCommand;
|
|
700
|
+
}
|
|
701
|
+
protoOf($contactTryFreeOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
702
|
+
var suspendResult = this.result_1;
|
|
703
|
+
$sm: do
|
|
704
|
+
try {
|
|
705
|
+
var tmp = this.state_1;
|
|
706
|
+
switch (tmp) {
|
|
707
|
+
case 0:
|
|
708
|
+
this.exceptionState_1 = 2;
|
|
709
|
+
var localVariableAuthNames = emptyList();
|
|
710
|
+
var localVariableBody = this.contactTryFreeCommand_1;
|
|
711
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
712
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
713
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
714
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/contact/tryFree', localVariableHeaders, VOID, localVariableQuery, false);
|
|
715
|
+
this.state_1 = 1;
|
|
716
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
717
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
|
+
return suspendResult;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
continue $sm;
|
|
722
|
+
case 1:
|
|
723
|
+
var this_0 = suspendResult;
|
|
724
|
+
var tmp_0 = getKClass(Unit);
|
|
725
|
+
var tmp_1 = null instanceof Unit;
|
|
726
|
+
var tmp_2;
|
|
727
|
+
try {
|
|
728
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
729
|
+
} catch ($p) {
|
|
730
|
+
var tmp_3;
|
|
731
|
+
if ($p instanceof Error) {
|
|
732
|
+
var _unused_var__etf5q3 = $p;
|
|
733
|
+
tmp_3 = null;
|
|
734
|
+
} else {
|
|
735
|
+
throw $p;
|
|
736
|
+
}
|
|
737
|
+
tmp_2 = tmp_3;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
741
|
+
case 2:
|
|
742
|
+
throw this.exception_1;
|
|
743
|
+
}
|
|
744
|
+
} catch ($p_0) {
|
|
745
|
+
var e = $p_0;
|
|
746
|
+
if (this.exceptionState_1 === 2) {
|
|
747
|
+
throw e;
|
|
748
|
+
} else {
|
|
749
|
+
this.state_1 = this.exceptionState_1;
|
|
750
|
+
this.exception_1 = e;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
while (true);
|
|
754
|
+
};
|
|
755
|
+
function signupNewsletterOperation(client, newsletterSubscribeCommand) {
|
|
756
|
+
return promisify(function ($completion) {
|
|
757
|
+
return signupNewsletterOperation_0(client, newsletterSubscribeCommand, $completion);
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
function signupNewsletterOperation_0(client, newsletterSubscribeCommand, $completion) {
|
|
761
|
+
var tmp = new $signupNewsletterOperationCOROUTINE$(client, newsletterSubscribeCommand, $completion);
|
|
762
|
+
tmp.result_1 = Unit_instance;
|
|
763
|
+
tmp.exception_1 = null;
|
|
764
|
+
return tmp.doResume_5yljmg_k$();
|
|
765
|
+
}
|
|
766
|
+
function $signupNewsletterOperationCOROUTINE$(client, newsletterSubscribeCommand, resultContinuation) {
|
|
767
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
768
|
+
this.client_1 = client;
|
|
769
|
+
this.newsletterSubscribeCommand_1 = newsletterSubscribeCommand;
|
|
770
|
+
}
|
|
771
|
+
protoOf($signupNewsletterOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
772
|
+
var suspendResult = this.result_1;
|
|
773
|
+
$sm: do
|
|
774
|
+
try {
|
|
775
|
+
var tmp = this.state_1;
|
|
776
|
+
switch (tmp) {
|
|
777
|
+
case 0:
|
|
778
|
+
this.exceptionState_1 = 2;
|
|
779
|
+
var localVariableAuthNames = emptyList();
|
|
780
|
+
var localVariableBody = this.newsletterSubscribeCommand_1;
|
|
781
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
782
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
783
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
784
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/marketing/newsletter', localVariableHeaders, VOID, localVariableQuery, false);
|
|
785
|
+
this.state_1 = 1;
|
|
786
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
787
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
788
|
+
return suspendResult;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
continue $sm;
|
|
792
|
+
case 1:
|
|
793
|
+
var this_0 = suspendResult;
|
|
794
|
+
var tmp_0 = getKClass(Unit);
|
|
795
|
+
var tmp_1 = null instanceof Unit;
|
|
796
|
+
var tmp_2;
|
|
797
|
+
try {
|
|
798
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
799
|
+
} catch ($p) {
|
|
800
|
+
var tmp_3;
|
|
801
|
+
if ($p instanceof Error) {
|
|
802
|
+
var _unused_var__etf5q3 = $p;
|
|
803
|
+
tmp_3 = null;
|
|
804
|
+
} else {
|
|
805
|
+
throw $p;
|
|
806
|
+
}
|
|
807
|
+
tmp_2 = tmp_3;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
811
|
+
case 2:
|
|
812
|
+
throw this.exception_1;
|
|
813
|
+
}
|
|
814
|
+
} catch ($p_0) {
|
|
815
|
+
var e = $p_0;
|
|
816
|
+
if (this.exceptionState_1 === 2) {
|
|
817
|
+
throw e;
|
|
818
|
+
} else {
|
|
819
|
+
this.state_1 = this.exceptionState_1;
|
|
820
|
+
this.exception_1 = e;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
while (true);
|
|
824
|
+
};
|
|
784
825
|
function ContactOrderCommand$Companion$$childSerializers$_anonymous__iv1cel() {
|
|
785
826
|
return Companion_getInstance_4().serializer_9w0wvi_k$();
|
|
786
827
|
}
|
|
@@ -1537,6 +1578,11 @@ defineProp(OrderType, 'Companion', Companion_getInstance_4, VOID, true);
|
|
|
1537
1578
|
export {
|
|
1538
1579
|
marketingApi as marketingApi,
|
|
1539
1580
|
MarketingApi as MarketingApi,
|
|
1581
|
+
contactOkonomiOperation as contactOkonomiOperation,
|
|
1582
|
+
contactOrderOperation as contactOrderOperation,
|
|
1583
|
+
contactSalesOperation as contactSalesOperation,
|
|
1584
|
+
contactTryFreeOperation as contactTryFreeOperation,
|
|
1585
|
+
signupNewsletterOperation as signupNewsletterOperation,
|
|
1540
1586
|
ContactOrderCommand as ContactOrderCommand,
|
|
1541
1587
|
ContactSalesCommand as ContactSalesCommand,
|
|
1542
1588
|
ContactTryFreeCommand as ContactTryFreeCommand,
|