@solibo/solibo-sdk 1.61.3 → 1.62.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/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
- package/package.json +1 -1
- package/solibo-cycles/kotlinx-coroutines-core-18.mjs +1 -1
- package/solibo-cycles/solibo-sdk-sdk-core-55.mjs +9575 -821
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/DeviceClient.mjs +2 -215
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/HomeApiBase.mjs +1 -1
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/AppStoresApi.mjs +2 -229
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/AuthApi.mjs +2 -6601
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/LanguageApi.mjs +2 -434
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/UnsubscribeApi.mjs +2 -395
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs +2 -1088
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
|
@@ -1,434 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
4
|
-
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
5
|
-
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
6
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
7
|
-
} from '../../infrastructure/ApiClient.mjs';
|
|
8
|
-
import {
|
|
9
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
10
|
-
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
11
|
-
} from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
12
|
-
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
13
|
-
import { listOf1jh22dvmctj1r as listOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs';
|
|
14
|
-
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from '../../../../../../../../../ktor-ktor-client-core/io/ktor/client/utils/Content.mjs';
|
|
15
|
-
import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
|
|
16
|
-
import { listOfvhqybd2zx248 as listOf_0 } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
|
|
17
|
-
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
18
|
-
import {
|
|
19
|
-
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
20
|
-
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
21
|
-
} from '../../infrastructure/RequestMethod.mjs';
|
|
22
|
-
import { RequestConfig10esd7ix0dbbm as RequestConfig } from '../../infrastructure/RequestConfig.mjs';
|
|
23
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
24
|
-
import { PagedListCountry3abvfrb9y6jr as PagedListCountry } from '../../models/PagedListCountry.mjs';
|
|
25
|
-
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
26
|
-
import { arrayOf1akklvh2at202 as arrayOf } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
27
|
-
import { createKType31ecntyyaay3k as createKType } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
|
|
28
|
-
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '../../../../../../../../../ktor-ktor-utils/io/ktor/util/reflect/Type.mjs';
|
|
29
|
-
import {
|
|
30
|
-
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
31
|
-
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
32
|
-
} from '../../infrastructure/HttpResponse.mjs';
|
|
33
|
-
import {
|
|
34
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
35
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
36
|
-
} from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
37
|
-
import {
|
|
38
|
-
await3n7kedgocftsv as await_0,
|
|
39
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
40
|
-
} from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
41
|
-
import { PrimitiveClasses_getInstance13wbaztpz3e2d as PrimitiveClasses_getInstance } from '../../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs';
|
|
42
|
-
import { __soliboBoundaryState, __soliboPatchField, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../../solibo-boundary.mjs';
|
|
43
|
-
//region block: imports
|
|
44
|
-
//endregion
|
|
45
|
-
//region block: pre-declaration
|
|
46
|
-
//endregion
|
|
47
|
-
function LanguageApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this) {
|
|
48
|
-
baseUrl = baseUrl === VOID ? 'https://home.solibo.no/api' : baseUrl;
|
|
49
|
-
httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
|
|
50
|
-
httpClientConfig = httpClientConfig === VOID ? null : httpClientConfig;
|
|
51
|
-
jsonSerializer = jsonSerializer === VOID ? Companion_getInstance().JSON_DEFAULT : jsonSerializer;
|
|
52
|
-
ApiClient_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this);
|
|
53
|
-
LanguageApi().call($this);
|
|
54
|
-
return $this;
|
|
55
|
-
}
|
|
56
|
-
function create(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer) {
|
|
57
|
-
return LanguageApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, objectCreate(protoOf(LanguageApi())));
|
|
58
|
-
}
|
|
59
|
-
function LanguageApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
60
|
-
ApiClient_init_$Init$_0(baseUrl, httpClient, $this);
|
|
61
|
-
LanguageApi().call($this);
|
|
62
|
-
return $this;
|
|
63
|
-
}
|
|
64
|
-
function createWithClient(baseUrl, httpClient) {
|
|
65
|
-
return LanguageApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(LanguageApi())));
|
|
66
|
-
}
|
|
67
|
-
var $indexCountriesCOROUTINE$Class;
|
|
68
|
-
function $indexCountriesCOROUTINE$() {
|
|
69
|
-
if ($indexCountriesCOROUTINE$Class === VOID) {
|
|
70
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
71
|
-
function $(_this__u8e3s4, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
72
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
73
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
74
|
-
this.fields_1 = fields;
|
|
75
|
-
this.pageToken_1 = pageToken;
|
|
76
|
-
this.autoPaginate_1 = autoPaginate;
|
|
77
|
-
this.count_1 = count;
|
|
78
|
-
}
|
|
79
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
80
|
-
var suspendResult = this.result_1;
|
|
81
|
-
$sm: do
|
|
82
|
-
try {
|
|
83
|
-
var tmp = this.state_1;
|
|
84
|
-
switch (tmp) {
|
|
85
|
-
case 0:
|
|
86
|
-
this.exceptionState_1 = 2;
|
|
87
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
88
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
89
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
90
|
-
if (this.fields_1 == null)
|
|
91
|
-
null;
|
|
92
|
-
else {
|
|
93
|
-
var value = listOf_0(this.fields_1);
|
|
94
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (this.pageToken_1 == null)
|
|
98
|
-
null;
|
|
99
|
-
else {
|
|
100
|
-
var tmp2 = 'pageToken';
|
|
101
|
-
var value_0 = listOf_0(this.pageToken_1);
|
|
102
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (this.autoPaginate_1 == null)
|
|
106
|
-
null;
|
|
107
|
-
else {
|
|
108
|
-
var tmp2_0 = 'autoPaginate';
|
|
109
|
-
var value_1 = listOf_0('' + this.autoPaginate_1);
|
|
110
|
-
localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (this.count_1 == null)
|
|
114
|
-
null;
|
|
115
|
-
else {
|
|
116
|
-
var value_2 = listOf_0('' + this.count_1);
|
|
117
|
-
localVariableQuery.put_4fpzoq_k$('count', value_2);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
121
|
-
var tmp4_method = RequestMethod_GET_getInstance();
|
|
122
|
-
var localVariableConfig = new (RequestConfig())(tmp4_method, '/languages/countries', localVariableHeaders, VOID, localVariableQuery, true);
|
|
123
|
-
this.state_1 = 1;
|
|
124
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
125
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
126
|
-
return suspendResult;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
continue $sm;
|
|
130
|
-
case 1:
|
|
131
|
-
var this_0 = suspendResult;
|
|
132
|
-
var tmp_0 = getKClass(PagedListCountry());
|
|
133
|
-
var tmp_1 = null instanceof PagedListCountry();
|
|
134
|
-
var tmp_2;
|
|
135
|
-
try {
|
|
136
|
-
tmp_2 = createKType(getKClass(PagedListCountry()), arrayOf([]), false);
|
|
137
|
-
} catch ($p) {
|
|
138
|
-
var tmp_3;
|
|
139
|
-
if ($p instanceof Error) {
|
|
140
|
-
var _unused_var__etf5q3 = $p;
|
|
141
|
-
tmp_3 = null;
|
|
142
|
-
} else {
|
|
143
|
-
throw $p;
|
|
144
|
-
}
|
|
145
|
-
tmp_2 = tmp_3;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
|
|
149
|
-
case 2:
|
|
150
|
-
throw this.exception_1;
|
|
151
|
-
}
|
|
152
|
-
} catch ($p_0) {
|
|
153
|
-
var e = $p_0;
|
|
154
|
-
if (this.exceptionState_1 === 2) {
|
|
155
|
-
throw e;
|
|
156
|
-
} else {
|
|
157
|
-
this.state_1 = this.exceptionState_1;
|
|
158
|
-
this.exception_1 = e;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
while (true);
|
|
162
|
-
};
|
|
163
|
-
$indexCountriesCOROUTINE$Class = $;
|
|
164
|
-
}
|
|
165
|
-
return $indexCountriesCOROUTINE$Class;
|
|
166
|
-
}
|
|
167
|
-
var $indexCountries$suspendBridgeCOROUTINE$Class;
|
|
168
|
-
function $indexCountries$suspendBridgeCOROUTINE$() {
|
|
169
|
-
if ($indexCountries$suspendBridgeCOROUTINE$Class === VOID) {
|
|
170
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
171
|
-
function $(_this__u8e3s4, fields, pageToken, autoPaginate, count, resultContinuation) {
|
|
172
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
173
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
174
|
-
this.fields_1 = fields;
|
|
175
|
-
this.pageToken_1 = pageToken;
|
|
176
|
-
this.autoPaginate_1 = autoPaginate;
|
|
177
|
-
this.count_1 = count;
|
|
178
|
-
}
|
|
179
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
180
|
-
var suspendResult = this.result_1;
|
|
181
|
-
$sm: do
|
|
182
|
-
try {
|
|
183
|
-
var tmp = this.state_1;
|
|
184
|
-
switch (tmp) {
|
|
185
|
-
case 0:
|
|
186
|
-
this.exceptionState_1 = 4;
|
|
187
|
-
if (this._this__u8e3s4__1.indexCountries === protoOf(LanguageApi()).indexCountries) {
|
|
188
|
-
this.state_1 = 2;
|
|
189
|
-
suspendResult = this._this__u8e3s4__1.indexCountries$default_ptwdu5_k$(this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
|
|
190
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
191
|
-
return suspendResult;
|
|
192
|
-
}
|
|
193
|
-
continue $sm;
|
|
194
|
-
} else {
|
|
195
|
-
this.state_1 = 1;
|
|
196
|
-
suspendResult = await_0(this._this__u8e3s4__1.indexCountries(this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
|
|
197
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
198
|
-
return suspendResult;
|
|
199
|
-
}
|
|
200
|
-
continue $sm;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
case 1:
|
|
204
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
205
|
-
this.state_1 = 3;
|
|
206
|
-
continue $sm;
|
|
207
|
-
case 2:
|
|
208
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
209
|
-
this.state_1 = 3;
|
|
210
|
-
continue $sm;
|
|
211
|
-
case 3:
|
|
212
|
-
return this.WHEN_RESULT0__1;
|
|
213
|
-
case 4:
|
|
214
|
-
throw this.exception_1;
|
|
215
|
-
}
|
|
216
|
-
} catch ($p) {
|
|
217
|
-
var e = $p;
|
|
218
|
-
if (this.exceptionState_1 === 4) {
|
|
219
|
-
throw e;
|
|
220
|
-
} else {
|
|
221
|
-
this.state_1 = this.exceptionState_1;
|
|
222
|
-
this.exception_1 = e;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
while (true);
|
|
226
|
-
};
|
|
227
|
-
$indexCountries$suspendBridgeCOROUTINE$Class = $;
|
|
228
|
-
}
|
|
229
|
-
return $indexCountries$suspendBridgeCOROUTINE$Class;
|
|
230
|
-
}
|
|
231
|
-
var $showTranslationCOROUTINE$Class;
|
|
232
|
-
function $showTranslationCOROUTINE$() {
|
|
233
|
-
if ($showTranslationCOROUTINE$Class === VOID) {
|
|
234
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
235
|
-
function $(_this__u8e3s4, countryId, body, resultContinuation) {
|
|
236
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
237
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
238
|
-
this.countryId_1 = countryId;
|
|
239
|
-
this.body_1 = body;
|
|
240
|
-
}
|
|
241
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
242
|
-
var suspendResult = this.result_1;
|
|
243
|
-
$sm: do
|
|
244
|
-
try {
|
|
245
|
-
var tmp = this.state_1;
|
|
246
|
-
switch (tmp) {
|
|
247
|
-
case 0:
|
|
248
|
-
this.exceptionState_1 = 2;
|
|
249
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
250
|
-
var localVariableBody = this.body_1;
|
|
251
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
252
|
-
if (this.countryId_1 == null)
|
|
253
|
-
null;
|
|
254
|
-
else {
|
|
255
|
-
var tmp2 = 'countryId';
|
|
256
|
-
var value = listOf_0(this.countryId_1.toString());
|
|
257
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
261
|
-
var tmp1_method = RequestMethod_POST_getInstance();
|
|
262
|
-
var localVariableConfig = new (RequestConfig())(tmp1_method, '/translate', localVariableHeaders, VOID, localVariableQuery, true);
|
|
263
|
-
this.state_1 = 1;
|
|
264
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
265
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
266
|
-
return suspendResult;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
continue $sm;
|
|
270
|
-
case 1:
|
|
271
|
-
var this_0 = suspendResult;
|
|
272
|
-
var tmp_0 = PrimitiveClasses_getInstance().get_stringClass_bik2gy_k$();
|
|
273
|
-
var tmp_1 = !(null == null) ? typeof null === 'string' : false;
|
|
274
|
-
var tmp_2;
|
|
275
|
-
try {
|
|
276
|
-
tmp_2 = createKType(PrimitiveClasses_getInstance().get_stringClass_bik2gy_k$(), arrayOf([]), false);
|
|
277
|
-
} catch ($p) {
|
|
278
|
-
var tmp_3;
|
|
279
|
-
if ($p instanceof Error) {
|
|
280
|
-
var _unused_var__etf5q3 = $p;
|
|
281
|
-
tmp_3 = null;
|
|
282
|
-
} else {
|
|
283
|
-
throw $p;
|
|
284
|
-
}
|
|
285
|
-
tmp_2 = tmp_3;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
return new (HttpResponse())(this_0, new (TypedBodyProvider())(new (TypeInfo())(tmp_0, tmp_1, tmp_2)));
|
|
289
|
-
case 2:
|
|
290
|
-
throw this.exception_1;
|
|
291
|
-
}
|
|
292
|
-
} catch ($p_0) {
|
|
293
|
-
var e = $p_0;
|
|
294
|
-
if (this.exceptionState_1 === 2) {
|
|
295
|
-
throw e;
|
|
296
|
-
} else {
|
|
297
|
-
this.state_1 = this.exceptionState_1;
|
|
298
|
-
this.exception_1 = e;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
while (true);
|
|
302
|
-
};
|
|
303
|
-
$showTranslationCOROUTINE$Class = $;
|
|
304
|
-
}
|
|
305
|
-
return $showTranslationCOROUTINE$Class;
|
|
306
|
-
}
|
|
307
|
-
var $showTranslation$suspendBridgeCOROUTINE$Class;
|
|
308
|
-
function $showTranslation$suspendBridgeCOROUTINE$() {
|
|
309
|
-
if ($showTranslation$suspendBridgeCOROUTINE$Class === VOID) {
|
|
310
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
311
|
-
function $(_this__u8e3s4, countryId, body, resultContinuation) {
|
|
312
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
313
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
314
|
-
this.countryId_1 = countryId;
|
|
315
|
-
this.body_1 = body;
|
|
316
|
-
}
|
|
317
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
318
|
-
var suspendResult = this.result_1;
|
|
319
|
-
$sm: do
|
|
320
|
-
try {
|
|
321
|
-
var tmp = this.state_1;
|
|
322
|
-
switch (tmp) {
|
|
323
|
-
case 0:
|
|
324
|
-
this.exceptionState_1 = 4;
|
|
325
|
-
if (this._this__u8e3s4__1.showTranslation === protoOf(LanguageApi()).showTranslation) {
|
|
326
|
-
this.state_1 = 2;
|
|
327
|
-
suspendResult = this._this__u8e3s4__1.showTranslation_f8psm2_k$(this.countryId_1, this.body_1, this);
|
|
328
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
329
|
-
return suspendResult;
|
|
330
|
-
}
|
|
331
|
-
continue $sm;
|
|
332
|
-
} else {
|
|
333
|
-
this.state_1 = 1;
|
|
334
|
-
suspendResult = await_0(this._this__u8e3s4__1.showTranslation(this.countryId_1, this.body_1), this);
|
|
335
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
336
|
-
return suspendResult;
|
|
337
|
-
}
|
|
338
|
-
continue $sm;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
case 1:
|
|
342
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
343
|
-
this.state_1 = 3;
|
|
344
|
-
continue $sm;
|
|
345
|
-
case 2:
|
|
346
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
347
|
-
this.state_1 = 3;
|
|
348
|
-
continue $sm;
|
|
349
|
-
case 3:
|
|
350
|
-
return this.WHEN_RESULT0__1;
|
|
351
|
-
case 4:
|
|
352
|
-
throw this.exception_1;
|
|
353
|
-
}
|
|
354
|
-
} catch ($p) {
|
|
355
|
-
var e = $p;
|
|
356
|
-
if (this.exceptionState_1 === 4) {
|
|
357
|
-
throw e;
|
|
358
|
-
} else {
|
|
359
|
-
this.state_1 = this.exceptionState_1;
|
|
360
|
-
this.exception_1 = e;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
while (true);
|
|
364
|
-
};
|
|
365
|
-
$showTranslation$suspendBridgeCOROUTINE$Class = $;
|
|
366
|
-
}
|
|
367
|
-
return $showTranslation$suspendBridgeCOROUTINE$Class;
|
|
368
|
-
}
|
|
369
|
-
var LanguageApiClass;
|
|
370
|
-
function LanguageApi() {
|
|
371
|
-
if (LanguageApiClass === VOID) {
|
|
372
|
-
initMetadataForClass($, 'LanguageApi', create, ApiClient(), VOID, [4, 2, 3]);
|
|
373
|
-
protoOf($).indexCountries_8y2x9f_k$ = function (fields, pageToken, autoPaginate, count, $completion) {
|
|
374
|
-
var tmp = new ($indexCountriesCOROUTINE$())(this, fields, pageToken, autoPaginate, count, $completion);
|
|
375
|
-
tmp.result_1 = Unit_instance;
|
|
376
|
-
tmp.exception_1 = null;
|
|
377
|
-
return tmp.doResume_5yljmg_k$();
|
|
378
|
-
};
|
|
379
|
-
protoOf($).indexCountries$default_ptwdu5_k$ = function (fields, pageToken, autoPaginate, count, $completion, $super) {
|
|
380
|
-
fields = fields === VOID ? null : fields;
|
|
381
|
-
pageToken = pageToken === VOID ? null : pageToken;
|
|
382
|
-
autoPaginate = autoPaginate === VOID ? null : autoPaginate;
|
|
383
|
-
count = count === VOID ? null : count;
|
|
384
|
-
return $super === VOID ? this.indexCountries_8y2x9f_k$(fields, pageToken, autoPaginate, count, $completion) : $super.indexCountries_8y2x9f_k$.call(this, fields, pageToken, autoPaginate, count, $completion);
|
|
385
|
-
};
|
|
386
|
-
protoOf($).indexCountries = function (fields, pageToken, autoPaginate, count) {
|
|
387
|
-
var tmp = this;
|
|
388
|
-
return promisify(function ($completion) {
|
|
389
|
-
return tmp.indexCountries$default_ptwdu5_k$(fields, pageToken, autoPaginate, count, $completion);
|
|
390
|
-
});
|
|
391
|
-
};
|
|
392
|
-
protoOf($).indexCountries$suspendBridge_1txrto_k$ = function (fields, pageToken, autoPaginate, count, $completion) {
|
|
393
|
-
var tmp = new ($indexCountries$suspendBridgeCOROUTINE$())(this, fields, pageToken, autoPaginate, count, $completion);
|
|
394
|
-
tmp.result_1 = Unit_instance;
|
|
395
|
-
tmp.exception_1 = null;
|
|
396
|
-
return tmp.doResume_5yljmg_k$();
|
|
397
|
-
};
|
|
398
|
-
protoOf($).showTranslation_f8psm2_k$ = function (countryId, body, $completion) {
|
|
399
|
-
var tmp = new ($showTranslationCOROUTINE$())(this, countryId, body, $completion);
|
|
400
|
-
tmp.result_1 = Unit_instance;
|
|
401
|
-
tmp.exception_1 = null;
|
|
402
|
-
return tmp.doResume_5yljmg_k$();
|
|
403
|
-
};
|
|
404
|
-
protoOf($).showTranslation = function (countryId, body) {
|
|
405
|
-
var tmp = this;
|
|
406
|
-
return promisify(function ($completion) {
|
|
407
|
-
return tmp.showTranslation_f8psm2_k$(countryId, body, $completion);
|
|
408
|
-
});
|
|
409
|
-
};
|
|
410
|
-
protoOf($).showTranslation$suspendBridge_hrtskl_k$ = function (countryId, body, $completion) {
|
|
411
|
-
var tmp = new ($showTranslation$suspendBridgeCOROUTINE$())(this, countryId, body, $completion);
|
|
412
|
-
tmp.result_1 = Unit_instance;
|
|
413
|
-
tmp.exception_1 = null;
|
|
414
|
-
return tmp.doResume_5yljmg_k$();
|
|
415
|
-
};
|
|
416
|
-
function $() {
|
|
417
|
-
}
|
|
418
|
-
/* Solibo boundary patches */
|
|
419
|
-
Object.defineProperty($, 'name', { value: "LanguageApi", configurable: true });
|
|
420
|
-
__soliboWrapMethod($, "indexCountries", {"result":true});
|
|
421
|
-
__soliboWrapMethod($, "showTranslation", {"args":{"0":["bigint"]},"result":true});
|
|
422
|
-
__soliboRegisterLookup("LanguageApi", () => $);
|
|
423
|
-
LanguageApiClass = $;
|
|
424
|
-
}
|
|
425
|
-
return LanguageApiClass;
|
|
426
|
-
}
|
|
427
|
-
//region block: exports
|
|
428
|
-
export {
|
|
429
|
-
create as create4nmnqph2mac5,
|
|
430
|
-
createWithClient as createWithClient2uxpr21wq3giz,
|
|
431
|
-
LanguageApi as LanguageApi15cxjk6mc7i5e,
|
|
432
|
-
};
|
|
433
|
-
//endregion
|
|
434
|
-
|
|
1
|
+
// Collapsed into solibo-cycles/solibo-sdk-sdk-core-55.mjs with the rest of its import cycle (post-process-per-file.js).
|
|
2
|
+
export { create4nmnqph2mac5, createWithClient2uxpr21wq3giz, LanguageApi15cxjk6mc7i5e } from '../../../../../../../../../solibo-cycles/solibo-sdk-sdk-core-55.mjs';
|