@solibo/home-api 1.41.1 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/kotlin-kotlin-stdlib.mjs +0 -4
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-api-accounting.mjs +581 -514
- package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-board.mjs +531 -472
- package/solibo-sdk-sdk-api-board.mjs.map +1 -1
- package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
- package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-company.mjs +4382 -3959
- package/solibo-sdk-sdk-api-company.mjs.map +1 -1
- package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
- package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
- package/solibo-sdk-sdk-api-document.mjs +7517 -6991
- package/solibo-sdk-sdk-api-document.mjs.map +1 -1
- package/solibo-sdk-sdk-api-economy.mjs +966 -856
- package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
- package/solibo-sdk-sdk-api-expense.mjs +1015 -902
- package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
- package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
- package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
- package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
- package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-insurance.mjs +778 -695
- package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
- package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
- package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
- package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
- package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
- package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
- package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
- package/solibo-sdk-sdk-api-marketing.mjs +383 -337
- package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
- package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
- package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
- package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
- package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
- package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
- package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
- package/solibo-sdk-sdk-api-person.mjs +1488 -1339
- package/solibo-sdk-sdk-api-person.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
- package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
- package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
- package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
- package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
- package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
- package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
- package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
- package/solibo-sdk-sdk-api-section.mjs +4076 -3685
- package/solibo-sdk-sdk-api-section.mjs.map +1 -1
- package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
- package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
- package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
- package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
- package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
- package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
- package/solibo-sdk-sdk-api-task.mjs +818 -727
- package/solibo-sdk-sdk-api-task.mjs.map +1 -1
- package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
- package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
- package/solibo-sdk-sdk-api-user.mjs +1059 -945
- package/solibo-sdk-sdk-api-user.mjs.map +1 -1
- package/solibo-sdk-sdk-core.mjs +121 -155
- package/solibo-sdk-sdk-core.mjs.map +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +716 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getKClass3t8tygqu4lcxf as getKClass,
|
|
3
|
-
KtList3hktaavzmj137 as KtList,
|
|
4
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
5
|
-
createKType31ecntyyaay3k as createKType,
|
|
6
|
-
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
7
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
9
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
10
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
11
3
|
VOID3gxj6tk5isa35 as VOID,
|
|
4
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
12
5
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
13
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
14
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
15
|
-
|
|
16
|
-
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
7
|
+
await3n7kedgocftsv as await_0,
|
|
17
8
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
18
9
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
19
|
-
|
|
10
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
11
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
|
+
listOf1jh22dvmctj1r as listOf,
|
|
14
|
+
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
15
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
16
|
+
createKType31ecntyyaay3k as createKType,
|
|
20
17
|
replace3le3ie7l9k8aq as replace,
|
|
21
18
|
Unitkvevlwgzwiuc as Unit,
|
|
19
|
+
KtList3hktaavzmj137 as KtList,
|
|
20
|
+
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
21
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
22
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
23
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
22
24
|
listOfvhqybd2zx248 as listOf_0,
|
|
23
|
-
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
24
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
25
25
|
Companion_instance13way2il9a8jt as Companion_instance,
|
|
26
26
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
27
27
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
@@ -40,6 +40,23 @@ import {
|
|
|
40
40
|
equals2au1ep9vhcato as equals,
|
|
41
41
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
42
42
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
43
|
+
import {
|
|
44
|
+
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
45
|
+
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
46
|
+
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
47
|
+
ApiClient2azxax1pjdtdm as ApiClient,
|
|
48
|
+
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
49
|
+
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
50
|
+
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
51
|
+
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
52
|
+
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
53
|
+
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
54
|
+
map1gud2hobp4wg5 as map,
|
|
55
|
+
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
56
|
+
Companion_getInstancecsmssmjcrvz9 as Companion_getInstance_0,
|
|
57
|
+
} from './solibo-sdk-sdk-core.mjs';
|
|
58
|
+
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
59
|
+
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
43
60
|
import {
|
|
44
61
|
serializer1hwzc6m64v1op as serializer,
|
|
45
62
|
KSerializerzf77vz1967fq as KSerializer,
|
|
@@ -57,44 +74,27 @@ import {
|
|
|
57
74
|
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
58
75
|
BooleanSerializer_getInstance22aja3hu17sxf as BooleanSerializer_getInstance,
|
|
59
76
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
60
|
-
import {
|
|
61
|
-
Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
|
|
62
|
-
ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
|
|
63
|
-
ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
|
|
64
|
-
RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
|
|
65
|
-
RequestConfig10esd7ix0dbbm as RequestConfig,
|
|
66
|
-
TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
|
|
67
|
-
HttpResponse53ki0v36vqo7 as HttpResponse,
|
|
68
|
-
RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
|
|
69
|
-
RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
|
|
70
|
-
map1gud2hobp4wg5 as map,
|
|
71
|
-
RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
|
|
72
|
-
ApiClient2azxax1pjdtdm as ApiClient,
|
|
73
|
-
Companion_getInstancecsmssmjcrvz9 as Companion_getInstance_0,
|
|
74
|
-
} from './solibo-sdk-sdk-core.mjs';
|
|
75
|
-
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from './ktor-ktor-utils.mjs';
|
|
76
|
-
import { EmptyContent_getInstance1v4yj3cymlz7 as EmptyContent_getInstance } from './ktor-ktor-client-core.mjs';
|
|
77
77
|
//region block: imports
|
|
78
78
|
var imul = Math.imul;
|
|
79
79
|
//endregion
|
|
80
80
|
//region block: pre-declaration
|
|
81
|
-
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
82
|
-
initMetadataForClass(ListUserScopedContactsResponse, 'ListUserScopedContactsResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
83
|
-
initMetadataForCoroutine($createUserScopedContactCOROUTINE$, CoroutineImpl);
|
|
84
81
|
initMetadataForCoroutine($createUserScopedContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
85
|
-
initMetadataForCoroutine($deleteUserScopedContactCOROUTINE$, CoroutineImpl);
|
|
86
82
|
initMetadataForCoroutine($deleteUserScopedContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
87
|
-
initMetadataForCoroutine($expireUserScopedContactCOROUTINE$, CoroutineImpl);
|
|
88
83
|
initMetadataForCoroutine($expireUserScopedContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
89
|
-
initMetadataForCoroutine($listUserScopedContactsCOROUTINE$, CoroutineImpl);
|
|
90
84
|
initMetadataForCoroutine($listUserScopedContacts$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
91
|
-
initMetadataForCoroutine($resolveUserContactCOROUTINE$, CoroutineImpl);
|
|
92
85
|
initMetadataForCoroutine($resolveUserContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
93
|
-
initMetadataForCoroutine($showUserScopedContactCOROUTINE$, CoroutineImpl);
|
|
94
86
|
initMetadataForCoroutine($showUserScopedContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
95
|
-
initMetadataForCoroutine($updateUserScopedContactCOROUTINE$, CoroutineImpl);
|
|
96
87
|
initMetadataForCoroutine($updateUserScopedContact$suspendBridgeCOROUTINE$, CoroutineImpl);
|
|
97
88
|
initMetadataForClass(ScopedContactApi, 'ScopedContactApi', create, ApiClient, VOID, [1, 2, 3]);
|
|
89
|
+
initMetadataForCoroutine($createUserScopedContactOperationCOROUTINE$, CoroutineImpl);
|
|
90
|
+
initMetadataForCoroutine($deleteUserScopedContactOperationCOROUTINE$, CoroutineImpl);
|
|
91
|
+
initMetadataForCoroutine($expireUserScopedContactOperationCOROUTINE$, CoroutineImpl);
|
|
92
|
+
initMetadataForCompanion(Companion, VOID, [KSerializer]);
|
|
93
|
+
initMetadataForClass(ListUserScopedContactsResponse, 'ListUserScopedContactsResponse', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
94
|
+
initMetadataForCoroutine($listUserScopedContactsOperationCOROUTINE$, CoroutineImpl);
|
|
95
|
+
initMetadataForCoroutine($resolveUserContactOperationCOROUTINE$, CoroutineImpl);
|
|
96
|
+
initMetadataForCoroutine($showUserScopedContactOperationCOROUTINE$, CoroutineImpl);
|
|
97
|
+
initMetadataForCoroutine($updateUserScopedContactOperationCOROUTINE$, CoroutineImpl);
|
|
98
98
|
initMetadataForCompanion(Companion_0, VOID, [SerializerFactory]);
|
|
99
99
|
initMetadataForClass(ChannelType, 'ChannelType', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_2});
|
|
100
100
|
initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
|
|
@@ -128,36 +128,6 @@ function get_scopedContacts(_this__u8e3s4) {
|
|
|
128
128
|
function _get_scopedContacts_$lambda_ss4u4d(arguments_0) {
|
|
129
129
|
return create(arguments_0.baseUrl_1, arguments_0.httpClientEngine_1, arguments_0.httpClientConfig_1);
|
|
130
130
|
}
|
|
131
|
-
function Companion() {
|
|
132
|
-
Companion_instance_0 = this;
|
|
133
|
-
var tmp = this;
|
|
134
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
135
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
136
|
-
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false))]), false));
|
|
137
|
-
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
138
|
-
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
139
|
-
}
|
|
140
|
-
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
141
|
-
return this.descriptor_1;
|
|
142
|
-
};
|
|
143
|
-
protoOf(Companion).serialize_pt7f9y_k$ = function (encoder, value) {
|
|
144
|
-
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
145
|
-
};
|
|
146
|
-
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
147
|
-
return this.serialize_pt7f9y_k$(encoder, value instanceof ListUserScopedContactsResponse ? value : THROW_CCE());
|
|
148
|
-
};
|
|
149
|
-
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
150
|
-
return new ListUserScopedContactsResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
151
|
-
};
|
|
152
|
-
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
153
|
-
return Companion_getInstance_1();
|
|
154
|
-
};
|
|
155
|
-
var Companion_instance_0;
|
|
156
|
-
function Companion_getInstance_1() {
|
|
157
|
-
if (Companion_instance_0 == null)
|
|
158
|
-
new Companion();
|
|
159
|
-
return Companion_instance_0;
|
|
160
|
-
}
|
|
161
131
|
function ScopedContactApi_init_$Init$(baseUrl, httpClientEngine, httpClientConfig, jsonSerializer, $this) {
|
|
162
132
|
baseUrl = baseUrl === VOID ? 'https://home.solibo.no/api' : baseUrl;
|
|
163
133
|
httpClientEngine = httpClientEngine === VOID ? null : httpClientEngine;
|
|
@@ -178,64 +148,51 @@ function ScopedContactApi_init_$Init$_0(baseUrl, httpClient, $this) {
|
|
|
178
148
|
function createWithClient(baseUrl, httpClient) {
|
|
179
149
|
return ScopedContactApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(ScopedContactApi)));
|
|
180
150
|
}
|
|
181
|
-
function
|
|
182
|
-
Companion_getInstance_1();
|
|
183
|
-
this.value_1 = value;
|
|
184
|
-
}
|
|
185
|
-
function ScopedContactApi$listUserScopedContacts$lambda($this$map) {
|
|
186
|
-
return $this$map.value_1;
|
|
187
|
-
}
|
|
188
|
-
function $createUserScopedContactCOROUTINE$(_this__u8e3s4, createScopedContactEndpointCommand, resultContinuation) {
|
|
151
|
+
function $createUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, createScopedContactEndpointCommand, resultContinuation) {
|
|
189
152
|
CoroutineImpl.call(this, resultContinuation);
|
|
190
153
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
191
154
|
this.createScopedContactEndpointCommand_1 = createScopedContactEndpointCommand;
|
|
192
155
|
}
|
|
193
|
-
protoOf($
|
|
156
|
+
protoOf($createUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
194
157
|
var suspendResult = this.result_1;
|
|
195
158
|
$sm: do
|
|
196
159
|
try {
|
|
197
160
|
var tmp = this.state_1;
|
|
198
161
|
switch (tmp) {
|
|
199
162
|
case 0:
|
|
200
|
-
this.exceptionState_1 =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/user/scopedContacts', localVariableHeaders, VOID, localVariableQuery, true);
|
|
207
|
-
this.state_1 = 1;
|
|
208
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
209
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
210
|
-
return suspendResult;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
continue $sm;
|
|
214
|
-
case 1:
|
|
215
|
-
var this_0 = suspendResult;
|
|
216
|
-
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
217
|
-
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
218
|
-
var tmp_2;
|
|
219
|
-
try {
|
|
220
|
-
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
221
|
-
} catch ($p) {
|
|
222
|
-
var tmp_3;
|
|
223
|
-
if ($p instanceof Error) {
|
|
224
|
-
var _unused_var__etf5q3 = $p;
|
|
225
|
-
tmp_3 = null;
|
|
226
|
-
} else {
|
|
227
|
-
throw $p;
|
|
163
|
+
this.exceptionState_1 = 4;
|
|
164
|
+
if (this._this__u8e3s4__1.createUserScopedContact === protoOf(ScopedContactApi).createUserScopedContact) {
|
|
165
|
+
this.state_1 = 2;
|
|
166
|
+
suspendResult = this._this__u8e3s4__1.createUserScopedContact_fm9qla_k$(this.createScopedContactEndpointCommand_1, this);
|
|
167
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
168
|
+
return suspendResult;
|
|
228
169
|
}
|
|
229
|
-
|
|
170
|
+
continue $sm;
|
|
171
|
+
} else {
|
|
172
|
+
this.state_1 = 1;
|
|
173
|
+
suspendResult = await_0(this._this__u8e3s4__1.createUserScopedContact(this.createScopedContactEndpointCommand_1), this);
|
|
174
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
175
|
+
return suspendResult;
|
|
176
|
+
}
|
|
177
|
+
continue $sm;
|
|
230
178
|
}
|
|
231
179
|
|
|
232
|
-
|
|
180
|
+
case 1:
|
|
181
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
182
|
+
this.state_1 = 3;
|
|
183
|
+
continue $sm;
|
|
233
184
|
case 2:
|
|
185
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
186
|
+
this.state_1 = 3;
|
|
187
|
+
continue $sm;
|
|
188
|
+
case 3:
|
|
189
|
+
return this.WHEN_RESULT0__1;
|
|
190
|
+
case 4:
|
|
234
191
|
throw this.exception_1;
|
|
235
192
|
}
|
|
236
|
-
} catch ($
|
|
237
|
-
var e = $
|
|
238
|
-
if (this.exceptionState_1 ===
|
|
193
|
+
} catch ($p) {
|
|
194
|
+
var e = $p;
|
|
195
|
+
if (this.exceptionState_1 === 4) {
|
|
239
196
|
throw e;
|
|
240
197
|
} else {
|
|
241
198
|
this.state_1 = this.exceptionState_1;
|
|
@@ -244,12 +201,12 @@ protoOf($createUserScopedContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
244
201
|
}
|
|
245
202
|
while (true);
|
|
246
203
|
};
|
|
247
|
-
function $
|
|
204
|
+
function $deleteUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, resultContinuation) {
|
|
248
205
|
CoroutineImpl.call(this, resultContinuation);
|
|
249
206
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
250
|
-
this.
|
|
207
|
+
this.endpointId_1 = endpointId;
|
|
251
208
|
}
|
|
252
|
-
protoOf($
|
|
209
|
+
protoOf($deleteUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
253
210
|
var suspendResult = this.result_1;
|
|
254
211
|
$sm: do
|
|
255
212
|
try {
|
|
@@ -257,16 +214,16 @@ protoOf($createUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
257
214
|
switch (tmp) {
|
|
258
215
|
case 0:
|
|
259
216
|
this.exceptionState_1 = 4;
|
|
260
|
-
if (this._this__u8e3s4__1.
|
|
217
|
+
if (this._this__u8e3s4__1.deleteUserScopedContact === protoOf(ScopedContactApi).deleteUserScopedContact) {
|
|
261
218
|
this.state_1 = 2;
|
|
262
|
-
suspendResult = this._this__u8e3s4__1.
|
|
219
|
+
suspendResult = this._this__u8e3s4__1.deleteUserScopedContact_pcmzra_k$(this.endpointId_1, this);
|
|
263
220
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
264
221
|
return suspendResult;
|
|
265
222
|
}
|
|
266
223
|
continue $sm;
|
|
267
224
|
} else {
|
|
268
225
|
this.state_1 = 1;
|
|
269
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
226
|
+
suspendResult = await_0(this._this__u8e3s4__1.deleteUserScopedContact(this.endpointId_1), this);
|
|
270
227
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
271
228
|
return suspendResult;
|
|
272
229
|
}
|
|
@@ -297,58 +254,51 @@ protoOf($createUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
297
254
|
}
|
|
298
255
|
while (true);
|
|
299
256
|
};
|
|
300
|
-
function $
|
|
257
|
+
function $expireUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, resultContinuation) {
|
|
301
258
|
CoroutineImpl.call(this, resultContinuation);
|
|
302
259
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
303
260
|
this.endpointId_1 = endpointId;
|
|
304
261
|
}
|
|
305
|
-
protoOf($
|
|
262
|
+
protoOf($expireUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
306
263
|
var suspendResult = this.result_1;
|
|
307
264
|
$sm: do
|
|
308
265
|
try {
|
|
309
266
|
var tmp = this.state_1;
|
|
310
267
|
switch (tmp) {
|
|
311
268
|
case 0:
|
|
312
|
-
this.exceptionState_1 =
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
var tmp1_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
319
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
320
|
-
this.state_1 = 1;
|
|
321
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
322
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
323
|
-
return suspendResult;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
continue $sm;
|
|
327
|
-
case 1:
|
|
328
|
-
var this_0 = suspendResult;
|
|
329
|
-
var tmp_0 = getKClass(Unit);
|
|
330
|
-
var tmp_1 = null instanceof Unit;
|
|
331
|
-
var tmp_2;
|
|
332
|
-
try {
|
|
333
|
-
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
334
|
-
} catch ($p) {
|
|
335
|
-
var tmp_3;
|
|
336
|
-
if ($p instanceof Error) {
|
|
337
|
-
var _unused_var__etf5q3 = $p;
|
|
338
|
-
tmp_3 = null;
|
|
339
|
-
} else {
|
|
340
|
-
throw $p;
|
|
269
|
+
this.exceptionState_1 = 4;
|
|
270
|
+
if (this._this__u8e3s4__1.expireUserScopedContact === protoOf(ScopedContactApi).expireUserScopedContact) {
|
|
271
|
+
this.state_1 = 2;
|
|
272
|
+
suspendResult = this._this__u8e3s4__1.expireUserScopedContact_nwxo8m_k$(this.endpointId_1, this);
|
|
273
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
274
|
+
return suspendResult;
|
|
341
275
|
}
|
|
342
|
-
|
|
276
|
+
continue $sm;
|
|
277
|
+
} else {
|
|
278
|
+
this.state_1 = 1;
|
|
279
|
+
suspendResult = await_0(this._this__u8e3s4__1.expireUserScopedContact(this.endpointId_1), this);
|
|
280
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
281
|
+
return suspendResult;
|
|
282
|
+
}
|
|
283
|
+
continue $sm;
|
|
343
284
|
}
|
|
344
285
|
|
|
345
|
-
|
|
286
|
+
case 1:
|
|
287
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
288
|
+
this.state_1 = 3;
|
|
289
|
+
continue $sm;
|
|
346
290
|
case 2:
|
|
291
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
292
|
+
this.state_1 = 3;
|
|
293
|
+
continue $sm;
|
|
294
|
+
case 3:
|
|
295
|
+
return this.WHEN_RESULT0__1;
|
|
296
|
+
case 4:
|
|
347
297
|
throw this.exception_1;
|
|
348
298
|
}
|
|
349
|
-
} catch ($
|
|
350
|
-
var e = $
|
|
351
|
-
if (this.exceptionState_1 ===
|
|
299
|
+
} catch ($p) {
|
|
300
|
+
var e = $p;
|
|
301
|
+
if (this.exceptionState_1 === 4) {
|
|
352
302
|
throw e;
|
|
353
303
|
} else {
|
|
354
304
|
this.state_1 = this.exceptionState_1;
|
|
@@ -357,12 +307,13 @@ protoOf($deleteUserScopedContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
|
357
307
|
}
|
|
358
308
|
while (true);
|
|
359
309
|
};
|
|
360
|
-
function $
|
|
310
|
+
function $listUserScopedContacts$suspendBridgeCOROUTINE$(_this__u8e3s4, includeExpired, fields, resultContinuation) {
|
|
361
311
|
CoroutineImpl.call(this, resultContinuation);
|
|
362
312
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
363
|
-
this.
|
|
313
|
+
this.includeExpired_1 = includeExpired;
|
|
314
|
+
this.fields_1 = fields;
|
|
364
315
|
}
|
|
365
|
-
protoOf($
|
|
316
|
+
protoOf($listUserScopedContacts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
366
317
|
var suspendResult = this.result_1;
|
|
367
318
|
$sm: do
|
|
368
319
|
try {
|
|
@@ -370,16 +321,16 @@ protoOf($deleteUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
370
321
|
switch (tmp) {
|
|
371
322
|
case 0:
|
|
372
323
|
this.exceptionState_1 = 4;
|
|
373
|
-
if (this._this__u8e3s4__1.
|
|
324
|
+
if (this._this__u8e3s4__1.listUserScopedContacts === protoOf(ScopedContactApi).listUserScopedContacts) {
|
|
374
325
|
this.state_1 = 2;
|
|
375
|
-
suspendResult = this._this__u8e3s4__1.
|
|
326
|
+
suspendResult = this._this__u8e3s4__1.listUserScopedContacts$default_vuvkbb_k$(this.includeExpired_1, this.fields_1, this);
|
|
376
327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
377
328
|
return suspendResult;
|
|
378
329
|
}
|
|
379
330
|
continue $sm;
|
|
380
331
|
} else {
|
|
381
332
|
this.state_1 = 1;
|
|
382
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
333
|
+
suspendResult = await_0(this._this__u8e3s4__1.listUserScopedContacts(this.includeExpired_1, this.fields_1), this);
|
|
383
334
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
384
335
|
return suspendResult;
|
|
385
336
|
}
|
|
@@ -410,72 +361,12 @@ protoOf($deleteUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
410
361
|
}
|
|
411
362
|
while (true);
|
|
412
363
|
};
|
|
413
|
-
function $
|
|
364
|
+
function $resolveUserContact$suspendBridgeCOROUTINE$(_this__u8e3s4, resolveContactCommand, resultContinuation) {
|
|
414
365
|
CoroutineImpl.call(this, resultContinuation);
|
|
415
366
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
416
|
-
this.
|
|
367
|
+
this.resolveContactCommand_1 = resolveContactCommand;
|
|
417
368
|
}
|
|
418
|
-
protoOf($
|
|
419
|
-
var suspendResult = this.result_1;
|
|
420
|
-
$sm: do
|
|
421
|
-
try {
|
|
422
|
-
var tmp = this.state_1;
|
|
423
|
-
switch (tmp) {
|
|
424
|
-
case 0:
|
|
425
|
-
this.exceptionState_1 = 2;
|
|
426
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
427
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
428
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
429
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
430
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
431
|
-
var tmp1_path = replace('/user/scopedContacts/{endpointId}/expire', '{endpointId}', this.endpointId_1.toString());
|
|
432
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
433
|
-
this.state_1 = 1;
|
|
434
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
435
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
|
-
return suspendResult;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
continue $sm;
|
|
440
|
-
case 1:
|
|
441
|
-
var this_0 = suspendResult;
|
|
442
|
-
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
443
|
-
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
444
|
-
var tmp_2;
|
|
445
|
-
try {
|
|
446
|
-
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
447
|
-
} catch ($p) {
|
|
448
|
-
var tmp_3;
|
|
449
|
-
if ($p instanceof Error) {
|
|
450
|
-
var _unused_var__etf5q3 = $p;
|
|
451
|
-
tmp_3 = null;
|
|
452
|
-
} else {
|
|
453
|
-
throw $p;
|
|
454
|
-
}
|
|
455
|
-
tmp_2 = tmp_3;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
459
|
-
case 2:
|
|
460
|
-
throw this.exception_1;
|
|
461
|
-
}
|
|
462
|
-
} catch ($p_0) {
|
|
463
|
-
var e = $p_0;
|
|
464
|
-
if (this.exceptionState_1 === 2) {
|
|
465
|
-
throw e;
|
|
466
|
-
} else {
|
|
467
|
-
this.state_1 = this.exceptionState_1;
|
|
468
|
-
this.exception_1 = e;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
while (true);
|
|
472
|
-
};
|
|
473
|
-
function $expireUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, resultContinuation) {
|
|
474
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
475
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
476
|
-
this.endpointId_1 = endpointId;
|
|
477
|
-
}
|
|
478
|
-
protoOf($expireUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
369
|
+
protoOf($resolveUserContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
479
370
|
var suspendResult = this.result_1;
|
|
480
371
|
$sm: do
|
|
481
372
|
try {
|
|
@@ -483,16 +374,16 @@ protoOf($expireUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
483
374
|
switch (tmp) {
|
|
484
375
|
case 0:
|
|
485
376
|
this.exceptionState_1 = 4;
|
|
486
|
-
if (this._this__u8e3s4__1.
|
|
377
|
+
if (this._this__u8e3s4__1.resolveUserContact === protoOf(ScopedContactApi).resolveUserContact) {
|
|
487
378
|
this.state_1 = 2;
|
|
488
|
-
suspendResult = this._this__u8e3s4__1.
|
|
379
|
+
suspendResult = this._this__u8e3s4__1.resolveUserContact_tj51g7_k$(this.resolveContactCommand_1, this);
|
|
489
380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
490
381
|
return suspendResult;
|
|
491
382
|
}
|
|
492
383
|
continue $sm;
|
|
493
384
|
} else {
|
|
494
385
|
this.state_1 = 1;
|
|
495
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
386
|
+
suspendResult = await_0(this._this__u8e3s4__1.resolveUserContact(this.resolveContactCommand_1), this);
|
|
496
387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
497
388
|
return suspendResult;
|
|
498
389
|
}
|
|
@@ -523,89 +414,13 @@ protoOf($expireUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
523
414
|
}
|
|
524
415
|
while (true);
|
|
525
416
|
};
|
|
526
|
-
function $
|
|
527
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
528
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
529
|
-
this.includeExpired_1 = includeExpired;
|
|
530
|
-
this.fields_1 = fields;
|
|
531
|
-
}
|
|
532
|
-
protoOf($listUserScopedContactsCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
533
|
-
var suspendResult = this.result_1;
|
|
534
|
-
$sm: do
|
|
535
|
-
try {
|
|
536
|
-
var tmp = this.state_1;
|
|
537
|
-
switch (tmp) {
|
|
538
|
-
case 0:
|
|
539
|
-
this.exceptionState_1 = 2;
|
|
540
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
541
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
542
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
543
|
-
if (this.includeExpired_1 == null)
|
|
544
|
-
null;
|
|
545
|
-
else {
|
|
546
|
-
var tmp2 = 'includeExpired';
|
|
547
|
-
var value = listOf_0('' + this.includeExpired_1);
|
|
548
|
-
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
if (this.fields_1 == null)
|
|
552
|
-
null;
|
|
553
|
-
else {
|
|
554
|
-
var value_0 = listOf_0(this.fields_1);
|
|
555
|
-
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
559
|
-
var tmp2_method = RequestMethod_GET_getInstance();
|
|
560
|
-
var localVariableConfig = new RequestConfig(tmp2_method, '/user/scopedContacts', localVariableHeaders, VOID, localVariableQuery, true);
|
|
561
|
-
this.state_1 = 1;
|
|
562
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
563
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
564
|
-
return suspendResult;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
continue $sm;
|
|
568
|
-
case 1:
|
|
569
|
-
var this_0 = suspendResult;
|
|
570
|
-
var tmp_0 = getKClass(ListUserScopedContactsResponse);
|
|
571
|
-
var tmp_1 = null instanceof ListUserScopedContactsResponse;
|
|
572
|
-
var tmp_2;
|
|
573
|
-
try {
|
|
574
|
-
tmp_2 = createKType(getKClass(ListUserScopedContactsResponse), arrayOf([]), false);
|
|
575
|
-
} catch ($p) {
|
|
576
|
-
var tmp_3;
|
|
577
|
-
if ($p instanceof Error) {
|
|
578
|
-
var _unused_var__etf5q3 = $p;
|
|
579
|
-
tmp_3 = null;
|
|
580
|
-
} else {
|
|
581
|
-
throw $p;
|
|
582
|
-
}
|
|
583
|
-
tmp_2 = tmp_3;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
587
|
-
return map(ARGUMENT, ScopedContactApi$listUserScopedContacts$lambda);
|
|
588
|
-
case 2:
|
|
589
|
-
throw this.exception_1;
|
|
590
|
-
}
|
|
591
|
-
} catch ($p_0) {
|
|
592
|
-
var e = $p_0;
|
|
593
|
-
if (this.exceptionState_1 === 2) {
|
|
594
|
-
throw e;
|
|
595
|
-
} else {
|
|
596
|
-
this.state_1 = this.exceptionState_1;
|
|
597
|
-
this.exception_1 = e;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
while (true);
|
|
601
|
-
};
|
|
602
|
-
function $listUserScopedContacts$suspendBridgeCOROUTINE$(_this__u8e3s4, includeExpired, fields, resultContinuation) {
|
|
417
|
+
function $showUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, fields, resultContinuation) {
|
|
603
418
|
CoroutineImpl.call(this, resultContinuation);
|
|
604
419
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
605
|
-
this.
|
|
420
|
+
this.endpointId_1 = endpointId;
|
|
606
421
|
this.fields_1 = fields;
|
|
607
422
|
}
|
|
608
|
-
protoOf($
|
|
423
|
+
protoOf($showUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
609
424
|
var suspendResult = this.result_1;
|
|
610
425
|
$sm: do
|
|
611
426
|
try {
|
|
@@ -613,16 +428,16 @@ protoOf($listUserScopedContacts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
613
428
|
switch (tmp) {
|
|
614
429
|
case 0:
|
|
615
430
|
this.exceptionState_1 = 4;
|
|
616
|
-
if (this._this__u8e3s4__1.
|
|
431
|
+
if (this._this__u8e3s4__1.showUserScopedContact === protoOf(ScopedContactApi).showUserScopedContact) {
|
|
617
432
|
this.state_1 = 2;
|
|
618
|
-
suspendResult = this._this__u8e3s4__1.
|
|
433
|
+
suspendResult = this._this__u8e3s4__1.showUserScopedContact$default_3zyln0_k$(this.endpointId_1, this.fields_1, this);
|
|
619
434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
435
|
return suspendResult;
|
|
621
436
|
}
|
|
622
437
|
continue $sm;
|
|
623
438
|
} else {
|
|
624
439
|
this.state_1 = 1;
|
|
625
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
440
|
+
suspendResult = await_0(this._this__u8e3s4__1.showUserScopedContact(this.endpointId_1, this.fields_1), this);
|
|
626
441
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
627
442
|
return suspendResult;
|
|
628
443
|
}
|
|
@@ -653,71 +468,13 @@ protoOf($listUserScopedContacts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
|
|
|
653
468
|
}
|
|
654
469
|
while (true);
|
|
655
470
|
};
|
|
656
|
-
function $
|
|
657
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
658
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
659
|
-
this.resolveContactCommand_1 = resolveContactCommand;
|
|
660
|
-
}
|
|
661
|
-
protoOf($resolveUserContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
662
|
-
var suspendResult = this.result_1;
|
|
663
|
-
$sm: do
|
|
664
|
-
try {
|
|
665
|
-
var tmp = this.state_1;
|
|
666
|
-
switch (tmp) {
|
|
667
|
-
case 0:
|
|
668
|
-
this.exceptionState_1 = 2;
|
|
669
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
670
|
-
var localVariableBody = this.resolveContactCommand_1;
|
|
671
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
672
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
673
|
-
var tmp0_method = RequestMethod_POST_getInstance();
|
|
674
|
-
var localVariableConfig = new RequestConfig(tmp0_method, '/user/scopedContacts/resolve', localVariableHeaders, VOID, localVariableQuery, true);
|
|
675
|
-
this.state_1 = 1;
|
|
676
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
677
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
|
-
return suspendResult;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
continue $sm;
|
|
682
|
-
case 1:
|
|
683
|
-
var this_0 = suspendResult;
|
|
684
|
-
var tmp_0 = getKClass(ResolvedEndpoint);
|
|
685
|
-
var tmp_1 = null instanceof ResolvedEndpoint;
|
|
686
|
-
var tmp_2;
|
|
687
|
-
try {
|
|
688
|
-
tmp_2 = createKType(getKClass(ResolvedEndpoint), arrayOf([]), false);
|
|
689
|
-
} catch ($p) {
|
|
690
|
-
var tmp_3;
|
|
691
|
-
if ($p instanceof Error) {
|
|
692
|
-
var _unused_var__etf5q3 = $p;
|
|
693
|
-
tmp_3 = null;
|
|
694
|
-
} else {
|
|
695
|
-
throw $p;
|
|
696
|
-
}
|
|
697
|
-
tmp_2 = tmp_3;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
701
|
-
case 2:
|
|
702
|
-
throw this.exception_1;
|
|
703
|
-
}
|
|
704
|
-
} catch ($p_0) {
|
|
705
|
-
var e = $p_0;
|
|
706
|
-
if (this.exceptionState_1 === 2) {
|
|
707
|
-
throw e;
|
|
708
|
-
} else {
|
|
709
|
-
this.state_1 = this.exceptionState_1;
|
|
710
|
-
this.exception_1 = e;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
while (true);
|
|
714
|
-
};
|
|
715
|
-
function $resolveUserContact$suspendBridgeCOROUTINE$(_this__u8e3s4, resolveContactCommand, resultContinuation) {
|
|
471
|
+
function $updateUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, updateScopedContactEndpointCommand, resultContinuation) {
|
|
716
472
|
CoroutineImpl.call(this, resultContinuation);
|
|
717
473
|
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
718
|
-
this.
|
|
474
|
+
this.endpointId_1 = endpointId;
|
|
475
|
+
this.updateScopedContactEndpointCommand_1 = updateScopedContactEndpointCommand;
|
|
719
476
|
}
|
|
720
|
-
protoOf($
|
|
477
|
+
protoOf($updateUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
721
478
|
var suspendResult = this.result_1;
|
|
722
479
|
$sm: do
|
|
723
480
|
try {
|
|
@@ -725,253 +482,16 @@ protoOf($resolveUserContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functi
|
|
|
725
482
|
switch (tmp) {
|
|
726
483
|
case 0:
|
|
727
484
|
this.exceptionState_1 = 4;
|
|
728
|
-
if (this._this__u8e3s4__1.
|
|
485
|
+
if (this._this__u8e3s4__1.updateUserScopedContact === protoOf(ScopedContactApi).updateUserScopedContact) {
|
|
729
486
|
this.state_1 = 2;
|
|
730
|
-
suspendResult = this._this__u8e3s4__1.
|
|
487
|
+
suspendResult = this._this__u8e3s4__1.updateUserScopedContact_7m7t2u_k$(this.endpointId_1, this.updateScopedContactEndpointCommand_1, this);
|
|
731
488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
732
489
|
return suspendResult;
|
|
733
490
|
}
|
|
734
491
|
continue $sm;
|
|
735
492
|
} else {
|
|
736
493
|
this.state_1 = 1;
|
|
737
|
-
suspendResult = await_0(this._this__u8e3s4__1.
|
|
738
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
739
|
-
return suspendResult;
|
|
740
|
-
}
|
|
741
|
-
continue $sm;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
case 1:
|
|
745
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
746
|
-
this.state_1 = 3;
|
|
747
|
-
continue $sm;
|
|
748
|
-
case 2:
|
|
749
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
750
|
-
this.state_1 = 3;
|
|
751
|
-
continue $sm;
|
|
752
|
-
case 3:
|
|
753
|
-
return this.WHEN_RESULT0__1;
|
|
754
|
-
case 4:
|
|
755
|
-
throw this.exception_1;
|
|
756
|
-
}
|
|
757
|
-
} catch ($p) {
|
|
758
|
-
var e = $p;
|
|
759
|
-
if (this.exceptionState_1 === 4) {
|
|
760
|
-
throw e;
|
|
761
|
-
} else {
|
|
762
|
-
this.state_1 = this.exceptionState_1;
|
|
763
|
-
this.exception_1 = e;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
while (true);
|
|
767
|
-
};
|
|
768
|
-
function $showUserScopedContactCOROUTINE$(_this__u8e3s4, endpointId, fields, resultContinuation) {
|
|
769
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
770
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
771
|
-
this.endpointId_1 = endpointId;
|
|
772
|
-
this.fields_1 = fields;
|
|
773
|
-
}
|
|
774
|
-
protoOf($showUserScopedContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
775
|
-
var suspendResult = this.result_1;
|
|
776
|
-
$sm: do
|
|
777
|
-
try {
|
|
778
|
-
var tmp = this.state_1;
|
|
779
|
-
switch (tmp) {
|
|
780
|
-
case 0:
|
|
781
|
-
this.exceptionState_1 = 2;
|
|
782
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
783
|
-
var localVariableBody = EmptyContent_getInstance();
|
|
784
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
785
|
-
if (this.fields_1 == null)
|
|
786
|
-
null;
|
|
787
|
-
else {
|
|
788
|
-
var value = listOf_0(this.fields_1);
|
|
789
|
-
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
793
|
-
var tmp1_method = RequestMethod_GET_getInstance();
|
|
794
|
-
var tmp2_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
795
|
-
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
796
|
-
this.state_1 = 1;
|
|
797
|
-
suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
798
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
799
|
-
return suspendResult;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
continue $sm;
|
|
803
|
-
case 1:
|
|
804
|
-
var this_0 = suspendResult;
|
|
805
|
-
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
806
|
-
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
807
|
-
var tmp_2;
|
|
808
|
-
try {
|
|
809
|
-
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
810
|
-
} catch ($p) {
|
|
811
|
-
var tmp_3;
|
|
812
|
-
if ($p instanceof Error) {
|
|
813
|
-
var _unused_var__etf5q3 = $p;
|
|
814
|
-
tmp_3 = null;
|
|
815
|
-
} else {
|
|
816
|
-
throw $p;
|
|
817
|
-
}
|
|
818
|
-
tmp_2 = tmp_3;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
822
|
-
case 2:
|
|
823
|
-
throw this.exception_1;
|
|
824
|
-
}
|
|
825
|
-
} catch ($p_0) {
|
|
826
|
-
var e = $p_0;
|
|
827
|
-
if (this.exceptionState_1 === 2) {
|
|
828
|
-
throw e;
|
|
829
|
-
} else {
|
|
830
|
-
this.state_1 = this.exceptionState_1;
|
|
831
|
-
this.exception_1 = e;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
while (true);
|
|
835
|
-
};
|
|
836
|
-
function $showUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, fields, resultContinuation) {
|
|
837
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
838
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
839
|
-
this.endpointId_1 = endpointId;
|
|
840
|
-
this.fields_1 = fields;
|
|
841
|
-
}
|
|
842
|
-
protoOf($showUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
843
|
-
var suspendResult = this.result_1;
|
|
844
|
-
$sm: do
|
|
845
|
-
try {
|
|
846
|
-
var tmp = this.state_1;
|
|
847
|
-
switch (tmp) {
|
|
848
|
-
case 0:
|
|
849
|
-
this.exceptionState_1 = 4;
|
|
850
|
-
if (this._this__u8e3s4__1.showUserScopedContact === protoOf(ScopedContactApi).showUserScopedContact) {
|
|
851
|
-
this.state_1 = 2;
|
|
852
|
-
suspendResult = this._this__u8e3s4__1.showUserScopedContact$default_3zyln0_k$(this.endpointId_1, this.fields_1, this);
|
|
853
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
854
|
-
return suspendResult;
|
|
855
|
-
}
|
|
856
|
-
continue $sm;
|
|
857
|
-
} else {
|
|
858
|
-
this.state_1 = 1;
|
|
859
|
-
suspendResult = await_0(this._this__u8e3s4__1.showUserScopedContact(this.endpointId_1, this.fields_1), this);
|
|
860
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
861
|
-
return suspendResult;
|
|
862
|
-
}
|
|
863
|
-
continue $sm;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
case 1:
|
|
867
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
868
|
-
this.state_1 = 3;
|
|
869
|
-
continue $sm;
|
|
870
|
-
case 2:
|
|
871
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
872
|
-
this.state_1 = 3;
|
|
873
|
-
continue $sm;
|
|
874
|
-
case 3:
|
|
875
|
-
return this.WHEN_RESULT0__1;
|
|
876
|
-
case 4:
|
|
877
|
-
throw this.exception_1;
|
|
878
|
-
}
|
|
879
|
-
} catch ($p) {
|
|
880
|
-
var e = $p;
|
|
881
|
-
if (this.exceptionState_1 === 4) {
|
|
882
|
-
throw e;
|
|
883
|
-
} else {
|
|
884
|
-
this.state_1 = this.exceptionState_1;
|
|
885
|
-
this.exception_1 = e;
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
while (true);
|
|
889
|
-
};
|
|
890
|
-
function $updateUserScopedContactCOROUTINE$(_this__u8e3s4, endpointId, updateScopedContactEndpointCommand, resultContinuation) {
|
|
891
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
892
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
893
|
-
this.endpointId_1 = endpointId;
|
|
894
|
-
this.updateScopedContactEndpointCommand_1 = updateScopedContactEndpointCommand;
|
|
895
|
-
}
|
|
896
|
-
protoOf($updateUserScopedContactCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
897
|
-
var suspendResult = this.result_1;
|
|
898
|
-
$sm: do
|
|
899
|
-
try {
|
|
900
|
-
var tmp = this.state_1;
|
|
901
|
-
switch (tmp) {
|
|
902
|
-
case 0:
|
|
903
|
-
this.exceptionState_1 = 2;
|
|
904
|
-
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
905
|
-
var localVariableBody = this.updateScopedContactEndpointCommand_1;
|
|
906
|
-
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
907
|
-
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
908
|
-
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
909
|
-
var tmp1_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
910
|
-
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
911
|
-
this.state_1 = 1;
|
|
912
|
-
suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
913
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
914
|
-
return suspendResult;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
continue $sm;
|
|
918
|
-
case 1:
|
|
919
|
-
var this_0 = suspendResult;
|
|
920
|
-
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
921
|
-
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
922
|
-
var tmp_2;
|
|
923
|
-
try {
|
|
924
|
-
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
925
|
-
} catch ($p) {
|
|
926
|
-
var tmp_3;
|
|
927
|
-
if ($p instanceof Error) {
|
|
928
|
-
var _unused_var__etf5q3 = $p;
|
|
929
|
-
tmp_3 = null;
|
|
930
|
-
} else {
|
|
931
|
-
throw $p;
|
|
932
|
-
}
|
|
933
|
-
tmp_2 = tmp_3;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
937
|
-
case 2:
|
|
938
|
-
throw this.exception_1;
|
|
939
|
-
}
|
|
940
|
-
} catch ($p_0) {
|
|
941
|
-
var e = $p_0;
|
|
942
|
-
if (this.exceptionState_1 === 2) {
|
|
943
|
-
throw e;
|
|
944
|
-
} else {
|
|
945
|
-
this.state_1 = this.exceptionState_1;
|
|
946
|
-
this.exception_1 = e;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
while (true);
|
|
950
|
-
};
|
|
951
|
-
function $updateUserScopedContact$suspendBridgeCOROUTINE$(_this__u8e3s4, endpointId, updateScopedContactEndpointCommand, resultContinuation) {
|
|
952
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
953
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
954
|
-
this.endpointId_1 = endpointId;
|
|
955
|
-
this.updateScopedContactEndpointCommand_1 = updateScopedContactEndpointCommand;
|
|
956
|
-
}
|
|
957
|
-
protoOf($updateUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
958
|
-
var suspendResult = this.result_1;
|
|
959
|
-
$sm: do
|
|
960
|
-
try {
|
|
961
|
-
var tmp = this.state_1;
|
|
962
|
-
switch (tmp) {
|
|
963
|
-
case 0:
|
|
964
|
-
this.exceptionState_1 = 4;
|
|
965
|
-
if (this._this__u8e3s4__1.updateUserScopedContact === protoOf(ScopedContactApi).updateUserScopedContact) {
|
|
966
|
-
this.state_1 = 2;
|
|
967
|
-
suspendResult = this._this__u8e3s4__1.updateUserScopedContact_7m7t2u_k$(this.endpointId_1, this.updateScopedContactEndpointCommand_1, this);
|
|
968
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
|
-
return suspendResult;
|
|
970
|
-
}
|
|
971
|
-
continue $sm;
|
|
972
|
-
} else {
|
|
973
|
-
this.state_1 = 1;
|
|
974
|
-
suspendResult = await_0(this._this__u8e3s4__1.updateUserScopedContact(this.endpointId_1, this.updateScopedContactEndpointCommand_1), this);
|
|
494
|
+
suspendResult = await_0(this._this__u8e3s4__1.updateUserScopedContact(this.endpointId_1, this.updateScopedContactEndpointCommand_1), this);
|
|
975
495
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
496
|
return suspendResult;
|
|
977
497
|
}
|
|
@@ -1003,10 +523,7 @@ protoOf($updateUserScopedContact$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = f
|
|
|
1003
523
|
while (true);
|
|
1004
524
|
};
|
|
1005
525
|
protoOf(ScopedContactApi).createUserScopedContact_fm9qla_k$ = function (createScopedContactEndpointCommand, $completion) {
|
|
1006
|
-
|
|
1007
|
-
tmp.result_1 = Unit_instance;
|
|
1008
|
-
tmp.exception_1 = null;
|
|
1009
|
-
return tmp.doResume_5yljmg_k$();
|
|
526
|
+
return createUserScopedContactOperation_0(this, createScopedContactEndpointCommand, $completion);
|
|
1010
527
|
};
|
|
1011
528
|
protoOf(ScopedContactApi).createUserScopedContact = function (createScopedContactEndpointCommand) {
|
|
1012
529
|
var tmp = this;
|
|
@@ -1021,10 +538,7 @@ protoOf(ScopedContactApi).createUserScopedContact$suspendBridge_6j9cip_k$ = func
|
|
|
1021
538
|
return tmp.doResume_5yljmg_k$();
|
|
1022
539
|
};
|
|
1023
540
|
protoOf(ScopedContactApi).deleteUserScopedContact_pcmzra_k$ = function (endpointId, $completion) {
|
|
1024
|
-
|
|
1025
|
-
tmp.result_1 = Unit_instance;
|
|
1026
|
-
tmp.exception_1 = null;
|
|
1027
|
-
return tmp.doResume_5yljmg_k$();
|
|
541
|
+
return deleteUserScopedContactOperation_0(this, endpointId, $completion);
|
|
1028
542
|
};
|
|
1029
543
|
protoOf(ScopedContactApi).deleteUserScopedContact = function (endpointId) {
|
|
1030
544
|
var tmp = this;
|
|
@@ -1039,10 +553,7 @@ protoOf(ScopedContactApi).deleteUserScopedContact$suspendBridge_wj2s2j_k$ = func
|
|
|
1039
553
|
return tmp.doResume_5yljmg_k$();
|
|
1040
554
|
};
|
|
1041
555
|
protoOf(ScopedContactApi).expireUserScopedContact_nwxo8m_k$ = function (endpointId, $completion) {
|
|
1042
|
-
|
|
1043
|
-
tmp.result_1 = Unit_instance;
|
|
1044
|
-
tmp.exception_1 = null;
|
|
1045
|
-
return tmp.doResume_5yljmg_k$();
|
|
556
|
+
return expireUserScopedContactOperation_0(this, endpointId, $completion);
|
|
1046
557
|
};
|
|
1047
558
|
protoOf(ScopedContactApi).expireUserScopedContact = function (endpointId) {
|
|
1048
559
|
var tmp = this;
|
|
@@ -1057,10 +568,7 @@ protoOf(ScopedContactApi).expireUserScopedContact$suspendBridge_abret3_k$ = func
|
|
|
1057
568
|
return tmp.doResume_5yljmg_k$();
|
|
1058
569
|
};
|
|
1059
570
|
protoOf(ScopedContactApi).listUserScopedContacts_kcuji7_k$ = function (includeExpired, fields, $completion) {
|
|
1060
|
-
|
|
1061
|
-
tmp.result_1 = Unit_instance;
|
|
1062
|
-
tmp.exception_1 = null;
|
|
1063
|
-
return tmp.doResume_5yljmg_k$();
|
|
571
|
+
return listUserScopedContactsOperation_0(this, includeExpired, fields, $completion);
|
|
1064
572
|
};
|
|
1065
573
|
protoOf(ScopedContactApi).listUserScopedContacts$default_vuvkbb_k$ = function (includeExpired, fields, $completion, $super) {
|
|
1066
574
|
includeExpired = includeExpired === VOID ? null : includeExpired;
|
|
@@ -1080,10 +588,7 @@ protoOf(ScopedContactApi).listUserScopedContacts$suspendBridge_ss34hs_k$ = funct
|
|
|
1080
588
|
return tmp.doResume_5yljmg_k$();
|
|
1081
589
|
};
|
|
1082
590
|
protoOf(ScopedContactApi).resolveUserContact_tj51g7_k$ = function (resolveContactCommand, $completion) {
|
|
1083
|
-
|
|
1084
|
-
tmp.result_1 = Unit_instance;
|
|
1085
|
-
tmp.exception_1 = null;
|
|
1086
|
-
return tmp.doResume_5yljmg_k$();
|
|
591
|
+
return resolveUserContactOperation_0(this, resolveContactCommand, $completion);
|
|
1087
592
|
};
|
|
1088
593
|
protoOf(ScopedContactApi).resolveUserContact = function (resolveContactCommand) {
|
|
1089
594
|
var tmp = this;
|
|
@@ -1098,10 +603,7 @@ protoOf(ScopedContactApi).resolveUserContact$suspendBridge_pe3gdk_k$ = function
|
|
|
1098
603
|
return tmp.doResume_5yljmg_k$();
|
|
1099
604
|
};
|
|
1100
605
|
protoOf(ScopedContactApi).showUserScopedContact_9pqlq9_k$ = function (endpointId, fields, $completion) {
|
|
1101
|
-
|
|
1102
|
-
tmp.result_1 = Unit_instance;
|
|
1103
|
-
tmp.exception_1 = null;
|
|
1104
|
-
return tmp.doResume_5yljmg_k$();
|
|
606
|
+
return showUserScopedContactOperation_0(this, endpointId, fields, $completion);
|
|
1105
607
|
};
|
|
1106
608
|
protoOf(ScopedContactApi).showUserScopedContact$default_3zyln0_k$ = function (endpointId, fields, $completion, $super) {
|
|
1107
609
|
fields = fields === VOID ? null : fields;
|
|
@@ -1120,10 +622,7 @@ protoOf(ScopedContactApi).showUserScopedContact$suspendBridge_whis74_k$ = functi
|
|
|
1120
622
|
return tmp.doResume_5yljmg_k$();
|
|
1121
623
|
};
|
|
1122
624
|
protoOf(ScopedContactApi).updateUserScopedContact_7m7t2u_k$ = function (endpointId, updateScopedContactEndpointCommand, $completion) {
|
|
1123
|
-
|
|
1124
|
-
tmp.result_1 = Unit_instance;
|
|
1125
|
-
tmp.exception_1 = null;
|
|
1126
|
-
return tmp.doResume_5yljmg_k$();
|
|
625
|
+
return updateUserScopedContactOperation_0(this, endpointId, updateScopedContactEndpointCommand, $completion);
|
|
1127
626
|
};
|
|
1128
627
|
protoOf(ScopedContactApi).updateUserScopedContact = function (endpointId, updateScopedContactEndpointCommand) {
|
|
1129
628
|
var tmp = this;
|
|
@@ -1139,6 +638,566 @@ protoOf(ScopedContactApi).updateUserScopedContact$suspendBridge_qvhhgp_k$ = func
|
|
|
1139
638
|
};
|
|
1140
639
|
function ScopedContactApi() {
|
|
1141
640
|
}
|
|
641
|
+
function createUserScopedContactOperation(client, createScopedContactEndpointCommand) {
|
|
642
|
+
return promisify(function ($completion) {
|
|
643
|
+
return createUserScopedContactOperation_0(client, createScopedContactEndpointCommand, $completion);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
function createUserScopedContactOperation_0(client, createScopedContactEndpointCommand, $completion) {
|
|
647
|
+
var tmp = new $createUserScopedContactOperationCOROUTINE$(client, createScopedContactEndpointCommand, $completion);
|
|
648
|
+
tmp.result_1 = Unit_instance;
|
|
649
|
+
tmp.exception_1 = null;
|
|
650
|
+
return tmp.doResume_5yljmg_k$();
|
|
651
|
+
}
|
|
652
|
+
function $createUserScopedContactOperationCOROUTINE$(client, createScopedContactEndpointCommand, resultContinuation) {
|
|
653
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
654
|
+
this.client_1 = client;
|
|
655
|
+
this.createScopedContactEndpointCommand_1 = createScopedContactEndpointCommand;
|
|
656
|
+
}
|
|
657
|
+
protoOf($createUserScopedContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
658
|
+
var suspendResult = this.result_1;
|
|
659
|
+
$sm: do
|
|
660
|
+
try {
|
|
661
|
+
var tmp = this.state_1;
|
|
662
|
+
switch (tmp) {
|
|
663
|
+
case 0:
|
|
664
|
+
this.exceptionState_1 = 2;
|
|
665
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
666
|
+
var localVariableBody = this.createScopedContactEndpointCommand_1;
|
|
667
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
668
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
669
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
670
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/user/scopedContacts', localVariableHeaders, VOID, localVariableQuery, true);
|
|
671
|
+
this.state_1 = 1;
|
|
672
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
673
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
674
|
+
return suspendResult;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
continue $sm;
|
|
678
|
+
case 1:
|
|
679
|
+
var this_0 = suspendResult;
|
|
680
|
+
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
681
|
+
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
682
|
+
var tmp_2;
|
|
683
|
+
try {
|
|
684
|
+
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
685
|
+
} catch ($p) {
|
|
686
|
+
var tmp_3;
|
|
687
|
+
if ($p instanceof Error) {
|
|
688
|
+
var _unused_var__etf5q3 = $p;
|
|
689
|
+
tmp_3 = null;
|
|
690
|
+
} else {
|
|
691
|
+
throw $p;
|
|
692
|
+
}
|
|
693
|
+
tmp_2 = tmp_3;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
697
|
+
case 2:
|
|
698
|
+
throw this.exception_1;
|
|
699
|
+
}
|
|
700
|
+
} catch ($p_0) {
|
|
701
|
+
var e = $p_0;
|
|
702
|
+
if (this.exceptionState_1 === 2) {
|
|
703
|
+
throw e;
|
|
704
|
+
} else {
|
|
705
|
+
this.state_1 = this.exceptionState_1;
|
|
706
|
+
this.exception_1 = e;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
while (true);
|
|
710
|
+
};
|
|
711
|
+
function deleteUserScopedContactOperation(client, endpointId) {
|
|
712
|
+
return promisify(function ($completion) {
|
|
713
|
+
return deleteUserScopedContactOperation_0(client, endpointId, $completion);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function deleteUserScopedContactOperation_0(client, endpointId, $completion) {
|
|
717
|
+
var tmp = new $deleteUserScopedContactOperationCOROUTINE$(client, endpointId, $completion);
|
|
718
|
+
tmp.result_1 = Unit_instance;
|
|
719
|
+
tmp.exception_1 = null;
|
|
720
|
+
return tmp.doResume_5yljmg_k$();
|
|
721
|
+
}
|
|
722
|
+
function $deleteUserScopedContactOperationCOROUTINE$(client, endpointId, resultContinuation) {
|
|
723
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
724
|
+
this.client_1 = client;
|
|
725
|
+
this.endpointId_1 = endpointId;
|
|
726
|
+
}
|
|
727
|
+
protoOf($deleteUserScopedContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
728
|
+
var suspendResult = this.result_1;
|
|
729
|
+
$sm: do
|
|
730
|
+
try {
|
|
731
|
+
var tmp = this.state_1;
|
|
732
|
+
switch (tmp) {
|
|
733
|
+
case 0:
|
|
734
|
+
this.exceptionState_1 = 2;
|
|
735
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
736
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
737
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
738
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
739
|
+
var tmp0_method = RequestMethod_DELETE_getInstance();
|
|
740
|
+
var tmp1_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
741
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
742
|
+
this.state_1 = 1;
|
|
743
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
744
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
745
|
+
return suspendResult;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
continue $sm;
|
|
749
|
+
case 1:
|
|
750
|
+
var this_0 = suspendResult;
|
|
751
|
+
var tmp_0 = getKClass(Unit);
|
|
752
|
+
var tmp_1 = null instanceof Unit;
|
|
753
|
+
var tmp_2;
|
|
754
|
+
try {
|
|
755
|
+
tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
756
|
+
} catch ($p) {
|
|
757
|
+
var tmp_3;
|
|
758
|
+
if ($p instanceof Error) {
|
|
759
|
+
var _unused_var__etf5q3 = $p;
|
|
760
|
+
tmp_3 = null;
|
|
761
|
+
} else {
|
|
762
|
+
throw $p;
|
|
763
|
+
}
|
|
764
|
+
tmp_2 = tmp_3;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
768
|
+
case 2:
|
|
769
|
+
throw this.exception_1;
|
|
770
|
+
}
|
|
771
|
+
} catch ($p_0) {
|
|
772
|
+
var e = $p_0;
|
|
773
|
+
if (this.exceptionState_1 === 2) {
|
|
774
|
+
throw e;
|
|
775
|
+
} else {
|
|
776
|
+
this.state_1 = this.exceptionState_1;
|
|
777
|
+
this.exception_1 = e;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
while (true);
|
|
781
|
+
};
|
|
782
|
+
function expireUserScopedContactOperation(client, endpointId) {
|
|
783
|
+
return promisify(function ($completion) {
|
|
784
|
+
return expireUserScopedContactOperation_0(client, endpointId, $completion);
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function expireUserScopedContactOperation_0(client, endpointId, $completion) {
|
|
788
|
+
var tmp = new $expireUserScopedContactOperationCOROUTINE$(client, endpointId, $completion);
|
|
789
|
+
tmp.result_1 = Unit_instance;
|
|
790
|
+
tmp.exception_1 = null;
|
|
791
|
+
return tmp.doResume_5yljmg_k$();
|
|
792
|
+
}
|
|
793
|
+
function $expireUserScopedContactOperationCOROUTINE$(client, endpointId, resultContinuation) {
|
|
794
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
795
|
+
this.client_1 = client;
|
|
796
|
+
this.endpointId_1 = endpointId;
|
|
797
|
+
}
|
|
798
|
+
protoOf($expireUserScopedContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
799
|
+
var suspendResult = this.result_1;
|
|
800
|
+
$sm: do
|
|
801
|
+
try {
|
|
802
|
+
var tmp = this.state_1;
|
|
803
|
+
switch (tmp) {
|
|
804
|
+
case 0:
|
|
805
|
+
this.exceptionState_1 = 2;
|
|
806
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
807
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
808
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
809
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
810
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
811
|
+
var tmp1_path = replace('/user/scopedContacts/{endpointId}/expire', '{endpointId}', this.endpointId_1.toString());
|
|
812
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
813
|
+
this.state_1 = 1;
|
|
814
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
815
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
816
|
+
return suspendResult;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
continue $sm;
|
|
820
|
+
case 1:
|
|
821
|
+
var this_0 = suspendResult;
|
|
822
|
+
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
823
|
+
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
824
|
+
var tmp_2;
|
|
825
|
+
try {
|
|
826
|
+
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
827
|
+
} catch ($p) {
|
|
828
|
+
var tmp_3;
|
|
829
|
+
if ($p instanceof Error) {
|
|
830
|
+
var _unused_var__etf5q3 = $p;
|
|
831
|
+
tmp_3 = null;
|
|
832
|
+
} else {
|
|
833
|
+
throw $p;
|
|
834
|
+
}
|
|
835
|
+
tmp_2 = tmp_3;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
839
|
+
case 2:
|
|
840
|
+
throw this.exception_1;
|
|
841
|
+
}
|
|
842
|
+
} catch ($p_0) {
|
|
843
|
+
var e = $p_0;
|
|
844
|
+
if (this.exceptionState_1 === 2) {
|
|
845
|
+
throw e;
|
|
846
|
+
} else {
|
|
847
|
+
this.state_1 = this.exceptionState_1;
|
|
848
|
+
this.exception_1 = e;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
while (true);
|
|
852
|
+
};
|
|
853
|
+
function listUserScopedContactsOperation(client, includeExpired, fields) {
|
|
854
|
+
return promisify(function ($completion) {
|
|
855
|
+
return listUserScopedContactsOperation_0(client, includeExpired, fields, $completion);
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
function listUserScopedContactsOperation_0(client, includeExpired, fields, $completion) {
|
|
859
|
+
includeExpired = includeExpired === VOID ? null : includeExpired;
|
|
860
|
+
fields = fields === VOID ? null : fields;
|
|
861
|
+
var tmp = new $listUserScopedContactsOperationCOROUTINE$(client, includeExpired, fields, $completion);
|
|
862
|
+
tmp.result_1 = Unit_instance;
|
|
863
|
+
tmp.exception_1 = null;
|
|
864
|
+
return tmp.doResume_5yljmg_k$();
|
|
865
|
+
}
|
|
866
|
+
function Companion() {
|
|
867
|
+
Companion_instance_0 = this;
|
|
868
|
+
var tmp = this;
|
|
869
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
870
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
871
|
+
var this_0 = serializer(createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false))]), false));
|
|
872
|
+
tmp.serializer_1 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
873
|
+
this.descriptor_1 = this.serializer_1.get_descriptor_wjt6a0_k$();
|
|
874
|
+
}
|
|
875
|
+
protoOf(Companion).get_descriptor_wjt6a0_k$ = function () {
|
|
876
|
+
return this.descriptor_1;
|
|
877
|
+
};
|
|
878
|
+
protoOf(Companion).serialize_wblqkv_k$ = function (encoder, value) {
|
|
879
|
+
return this.serializer_1.serialize_5ase3y_k$(encoder, value.value_1);
|
|
880
|
+
};
|
|
881
|
+
protoOf(Companion).serialize_5ase3y_k$ = function (encoder, value) {
|
|
882
|
+
return this.serialize_wblqkv_k$(encoder, value instanceof ListUserScopedContactsResponse ? value : THROW_CCE());
|
|
883
|
+
};
|
|
884
|
+
protoOf(Companion).deserialize_sy6x50_k$ = function (decoder) {
|
|
885
|
+
return new ListUserScopedContactsResponse(this.serializer_1.deserialize_sy6x50_k$(decoder));
|
|
886
|
+
};
|
|
887
|
+
protoOf(Companion).serializer_9w0wvi_k$ = function () {
|
|
888
|
+
return Companion_getInstance_1();
|
|
889
|
+
};
|
|
890
|
+
var Companion_instance_0;
|
|
891
|
+
function Companion_getInstance_1() {
|
|
892
|
+
if (Companion_instance_0 == null)
|
|
893
|
+
new Companion();
|
|
894
|
+
return Companion_instance_0;
|
|
895
|
+
}
|
|
896
|
+
function ListUserScopedContactsResponse(value) {
|
|
897
|
+
Companion_getInstance_1();
|
|
898
|
+
this.value_1 = value;
|
|
899
|
+
}
|
|
900
|
+
function listUserScopedContactsOperation$lambda($this$map) {
|
|
901
|
+
return $this$map.value_1;
|
|
902
|
+
}
|
|
903
|
+
function $listUserScopedContactsOperationCOROUTINE$(client, includeExpired, fields, resultContinuation) {
|
|
904
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
905
|
+
this.client_1 = client;
|
|
906
|
+
this.includeExpired_1 = includeExpired;
|
|
907
|
+
this.fields_1 = fields;
|
|
908
|
+
}
|
|
909
|
+
protoOf($listUserScopedContactsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
910
|
+
var suspendResult = this.result_1;
|
|
911
|
+
$sm: do
|
|
912
|
+
try {
|
|
913
|
+
var tmp = this.state_1;
|
|
914
|
+
switch (tmp) {
|
|
915
|
+
case 0:
|
|
916
|
+
this.exceptionState_1 = 2;
|
|
917
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
918
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
919
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
920
|
+
if (this.includeExpired_1 == null)
|
|
921
|
+
null;
|
|
922
|
+
else {
|
|
923
|
+
var tmp2 = 'includeExpired';
|
|
924
|
+
var value = listOf_0('' + this.includeExpired_1);
|
|
925
|
+
localVariableQuery.put_4fpzoq_k$(tmp2, value);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (this.fields_1 == null)
|
|
929
|
+
null;
|
|
930
|
+
else {
|
|
931
|
+
var value_0 = listOf_0(this.fields_1);
|
|
932
|
+
localVariableQuery.put_4fpzoq_k$('fields', value_0);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
936
|
+
var tmp2_method = RequestMethod_GET_getInstance();
|
|
937
|
+
var localVariableConfig = new RequestConfig(tmp2_method, '/user/scopedContacts', localVariableHeaders, VOID, localVariableQuery, true);
|
|
938
|
+
this.state_1 = 1;
|
|
939
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
940
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
941
|
+
return suspendResult;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
continue $sm;
|
|
945
|
+
case 1:
|
|
946
|
+
var this_0 = suspendResult;
|
|
947
|
+
var tmp_0 = getKClass(ListUserScopedContactsResponse);
|
|
948
|
+
var tmp_1 = null instanceof ListUserScopedContactsResponse;
|
|
949
|
+
var tmp_2;
|
|
950
|
+
try {
|
|
951
|
+
tmp_2 = createKType(getKClass(ListUserScopedContactsResponse), arrayOf([]), false);
|
|
952
|
+
} catch ($p) {
|
|
953
|
+
var tmp_3;
|
|
954
|
+
if ($p instanceof Error) {
|
|
955
|
+
var _unused_var__etf5q3 = $p;
|
|
956
|
+
tmp_3 = null;
|
|
957
|
+
} else {
|
|
958
|
+
throw $p;
|
|
959
|
+
}
|
|
960
|
+
tmp_2 = tmp_3;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
var ARGUMENT = new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
964
|
+
return map(ARGUMENT, listUserScopedContactsOperation$lambda);
|
|
965
|
+
case 2:
|
|
966
|
+
throw this.exception_1;
|
|
967
|
+
}
|
|
968
|
+
} catch ($p_0) {
|
|
969
|
+
var e = $p_0;
|
|
970
|
+
if (this.exceptionState_1 === 2) {
|
|
971
|
+
throw e;
|
|
972
|
+
} else {
|
|
973
|
+
this.state_1 = this.exceptionState_1;
|
|
974
|
+
this.exception_1 = e;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
while (true);
|
|
978
|
+
};
|
|
979
|
+
function resolveUserContactOperation(client, resolveContactCommand) {
|
|
980
|
+
return promisify(function ($completion) {
|
|
981
|
+
return resolveUserContactOperation_0(client, resolveContactCommand, $completion);
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
function resolveUserContactOperation_0(client, resolveContactCommand, $completion) {
|
|
985
|
+
var tmp = new $resolveUserContactOperationCOROUTINE$(client, resolveContactCommand, $completion);
|
|
986
|
+
tmp.result_1 = Unit_instance;
|
|
987
|
+
tmp.exception_1 = null;
|
|
988
|
+
return tmp.doResume_5yljmg_k$();
|
|
989
|
+
}
|
|
990
|
+
function $resolveUserContactOperationCOROUTINE$(client, resolveContactCommand, resultContinuation) {
|
|
991
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
992
|
+
this.client_1 = client;
|
|
993
|
+
this.resolveContactCommand_1 = resolveContactCommand;
|
|
994
|
+
}
|
|
995
|
+
protoOf($resolveUserContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
996
|
+
var suspendResult = this.result_1;
|
|
997
|
+
$sm: do
|
|
998
|
+
try {
|
|
999
|
+
var tmp = this.state_1;
|
|
1000
|
+
switch (tmp) {
|
|
1001
|
+
case 0:
|
|
1002
|
+
this.exceptionState_1 = 2;
|
|
1003
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1004
|
+
var localVariableBody = this.resolveContactCommand_1;
|
|
1005
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1006
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1007
|
+
var tmp0_method = RequestMethod_POST_getInstance();
|
|
1008
|
+
var localVariableConfig = new RequestConfig(tmp0_method, '/user/scopedContacts/resolve', localVariableHeaders, VOID, localVariableQuery, true);
|
|
1009
|
+
this.state_1 = 1;
|
|
1010
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1011
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
|
+
return suspendResult;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
continue $sm;
|
|
1016
|
+
case 1:
|
|
1017
|
+
var this_0 = suspendResult;
|
|
1018
|
+
var tmp_0 = getKClass(ResolvedEndpoint);
|
|
1019
|
+
var tmp_1 = null instanceof ResolvedEndpoint;
|
|
1020
|
+
var tmp_2;
|
|
1021
|
+
try {
|
|
1022
|
+
tmp_2 = createKType(getKClass(ResolvedEndpoint), arrayOf([]), false);
|
|
1023
|
+
} catch ($p) {
|
|
1024
|
+
var tmp_3;
|
|
1025
|
+
if ($p instanceof Error) {
|
|
1026
|
+
var _unused_var__etf5q3 = $p;
|
|
1027
|
+
tmp_3 = null;
|
|
1028
|
+
} else {
|
|
1029
|
+
throw $p;
|
|
1030
|
+
}
|
|
1031
|
+
tmp_2 = tmp_3;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1035
|
+
case 2:
|
|
1036
|
+
throw this.exception_1;
|
|
1037
|
+
}
|
|
1038
|
+
} catch ($p_0) {
|
|
1039
|
+
var e = $p_0;
|
|
1040
|
+
if (this.exceptionState_1 === 2) {
|
|
1041
|
+
throw e;
|
|
1042
|
+
} else {
|
|
1043
|
+
this.state_1 = this.exceptionState_1;
|
|
1044
|
+
this.exception_1 = e;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
while (true);
|
|
1048
|
+
};
|
|
1049
|
+
function showUserScopedContactOperation(client, endpointId, fields) {
|
|
1050
|
+
return promisify(function ($completion) {
|
|
1051
|
+
return showUserScopedContactOperation_0(client, endpointId, fields, $completion);
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
function showUserScopedContactOperation_0(client, endpointId, fields, $completion) {
|
|
1055
|
+
fields = fields === VOID ? null : fields;
|
|
1056
|
+
var tmp = new $showUserScopedContactOperationCOROUTINE$(client, endpointId, fields, $completion);
|
|
1057
|
+
tmp.result_1 = Unit_instance;
|
|
1058
|
+
tmp.exception_1 = null;
|
|
1059
|
+
return tmp.doResume_5yljmg_k$();
|
|
1060
|
+
}
|
|
1061
|
+
function $showUserScopedContactOperationCOROUTINE$(client, endpointId, fields, resultContinuation) {
|
|
1062
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1063
|
+
this.client_1 = client;
|
|
1064
|
+
this.endpointId_1 = endpointId;
|
|
1065
|
+
this.fields_1 = fields;
|
|
1066
|
+
}
|
|
1067
|
+
protoOf($showUserScopedContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1068
|
+
var suspendResult = this.result_1;
|
|
1069
|
+
$sm: do
|
|
1070
|
+
try {
|
|
1071
|
+
var tmp = this.state_1;
|
|
1072
|
+
switch (tmp) {
|
|
1073
|
+
case 0:
|
|
1074
|
+
this.exceptionState_1 = 2;
|
|
1075
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1076
|
+
var localVariableBody = EmptyContent_getInstance();
|
|
1077
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1078
|
+
if (this.fields_1 == null)
|
|
1079
|
+
null;
|
|
1080
|
+
else {
|
|
1081
|
+
var value = listOf_0(this.fields_1);
|
|
1082
|
+
localVariableQuery.put_4fpzoq_k$('fields', value);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1086
|
+
var tmp1_method = RequestMethod_GET_getInstance();
|
|
1087
|
+
var tmp2_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
1088
|
+
var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1089
|
+
this.state_1 = 1;
|
|
1090
|
+
suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1091
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1092
|
+
return suspendResult;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
continue $sm;
|
|
1096
|
+
case 1:
|
|
1097
|
+
var this_0 = suspendResult;
|
|
1098
|
+
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
1099
|
+
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
1100
|
+
var tmp_2;
|
|
1101
|
+
try {
|
|
1102
|
+
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
1103
|
+
} catch ($p) {
|
|
1104
|
+
var tmp_3;
|
|
1105
|
+
if ($p instanceof Error) {
|
|
1106
|
+
var _unused_var__etf5q3 = $p;
|
|
1107
|
+
tmp_3 = null;
|
|
1108
|
+
} else {
|
|
1109
|
+
throw $p;
|
|
1110
|
+
}
|
|
1111
|
+
tmp_2 = tmp_3;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1115
|
+
case 2:
|
|
1116
|
+
throw this.exception_1;
|
|
1117
|
+
}
|
|
1118
|
+
} catch ($p_0) {
|
|
1119
|
+
var e = $p_0;
|
|
1120
|
+
if (this.exceptionState_1 === 2) {
|
|
1121
|
+
throw e;
|
|
1122
|
+
} else {
|
|
1123
|
+
this.state_1 = this.exceptionState_1;
|
|
1124
|
+
this.exception_1 = e;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
while (true);
|
|
1128
|
+
};
|
|
1129
|
+
function updateUserScopedContactOperation(client, endpointId, updateScopedContactEndpointCommand) {
|
|
1130
|
+
return promisify(function ($completion) {
|
|
1131
|
+
return updateUserScopedContactOperation_0(client, endpointId, updateScopedContactEndpointCommand, $completion);
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
function updateUserScopedContactOperation_0(client, endpointId, updateScopedContactEndpointCommand, $completion) {
|
|
1135
|
+
var tmp = new $updateUserScopedContactOperationCOROUTINE$(client, endpointId, updateScopedContactEndpointCommand, $completion);
|
|
1136
|
+
tmp.result_1 = Unit_instance;
|
|
1137
|
+
tmp.exception_1 = null;
|
|
1138
|
+
return tmp.doResume_5yljmg_k$();
|
|
1139
|
+
}
|
|
1140
|
+
function $updateUserScopedContactOperationCOROUTINE$(client, endpointId, updateScopedContactEndpointCommand, resultContinuation) {
|
|
1141
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1142
|
+
this.client_1 = client;
|
|
1143
|
+
this.endpointId_1 = endpointId;
|
|
1144
|
+
this.updateScopedContactEndpointCommand_1 = updateScopedContactEndpointCommand;
|
|
1145
|
+
}
|
|
1146
|
+
protoOf($updateUserScopedContactOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1147
|
+
var suspendResult = this.result_1;
|
|
1148
|
+
$sm: do
|
|
1149
|
+
try {
|
|
1150
|
+
var tmp = this.state_1;
|
|
1151
|
+
switch (tmp) {
|
|
1152
|
+
case 0:
|
|
1153
|
+
this.exceptionState_1 = 2;
|
|
1154
|
+
var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
|
|
1155
|
+
var localVariableBody = this.updateScopedContactEndpointCommand_1;
|
|
1156
|
+
var localVariableQuery = LinkedHashMap_init_$Create$();
|
|
1157
|
+
var localVariableHeaders = LinkedHashMap_init_$Create$();
|
|
1158
|
+
var tmp0_method = RequestMethod_PUT_getInstance();
|
|
1159
|
+
var tmp1_path = replace('/user/scopedContacts/{endpointId}', '{endpointId}', this.endpointId_1.toString());
|
|
1160
|
+
var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
|
|
1161
|
+
this.state_1 = 1;
|
|
1162
|
+
suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
|
|
1163
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1164
|
+
return suspendResult;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
continue $sm;
|
|
1168
|
+
case 1:
|
|
1169
|
+
var this_0 = suspendResult;
|
|
1170
|
+
var tmp_0 = getKClass(ScopedContactEndpoint);
|
|
1171
|
+
var tmp_1 = null instanceof ScopedContactEndpoint;
|
|
1172
|
+
var tmp_2;
|
|
1173
|
+
try {
|
|
1174
|
+
tmp_2 = createKType(getKClass(ScopedContactEndpoint), arrayOf([]), false);
|
|
1175
|
+
} catch ($p) {
|
|
1176
|
+
var tmp_3;
|
|
1177
|
+
if ($p instanceof Error) {
|
|
1178
|
+
var _unused_var__etf5q3 = $p;
|
|
1179
|
+
tmp_3 = null;
|
|
1180
|
+
} else {
|
|
1181
|
+
throw $p;
|
|
1182
|
+
}
|
|
1183
|
+
tmp_2 = tmp_3;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
|
|
1187
|
+
case 2:
|
|
1188
|
+
throw this.exception_1;
|
|
1189
|
+
}
|
|
1190
|
+
} catch ($p_0) {
|
|
1191
|
+
var e = $p_0;
|
|
1192
|
+
if (this.exceptionState_1 === 2) {
|
|
1193
|
+
throw e;
|
|
1194
|
+
} else {
|
|
1195
|
+
this.state_1 = this.exceptionState_1;
|
|
1196
|
+
this.exception_1 = e;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
while (true);
|
|
1200
|
+
};
|
|
1142
1201
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
1143
1202
|
return $this.$cachedSerializer$delegate_1.get_value_j01efc_k$();
|
|
1144
1203
|
}
|
|
@@ -2954,6 +3013,13 @@ defineProp(ContactSource, 'Companion', Companion_getInstance_3, VOID, true);
|
|
|
2954
3013
|
export {
|
|
2955
3014
|
scopedContactsApi as scopedContactsApi,
|
|
2956
3015
|
ScopedContactApi as ScopedContactApi,
|
|
3016
|
+
createUserScopedContactOperation as createUserScopedContactOperation,
|
|
3017
|
+
deleteUserScopedContactOperation as deleteUserScopedContactOperation,
|
|
3018
|
+
expireUserScopedContactOperation as expireUserScopedContactOperation,
|
|
3019
|
+
listUserScopedContactsOperation as listUserScopedContactsOperation,
|
|
3020
|
+
resolveUserContactOperation as resolveUserContactOperation,
|
|
3021
|
+
showUserScopedContactOperation as showUserScopedContactOperation,
|
|
3022
|
+
updateUserScopedContactOperation as updateUserScopedContactOperation,
|
|
2957
3023
|
ChannelType as ChannelType,
|
|
2958
3024
|
ContactSource as ContactSource,
|
|
2959
3025
|
CreateScopedContactEndpointCommand as CreateScopedContactEndpointCommand,
|