@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13

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.
Files changed (44) hide show
  1. package/Kermit-kermit-core.mjs +42 -42
  2. package/Kermit-kermit.mjs +8 -8
  3. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
  4. package/KotlinBigInteger-bignum.mjs +1434 -1470
  5. package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
  6. package/cardinal-sdk-ts.d.mts +338 -100
  7. package/cardinal-sdk-ts.mjs +56590 -56248
  8. package/cardinal-sdk.mjs +126945 -106218
  9. package/kerberus.mjs +381 -381
  10. package/kotlin-kotlin-stdlib.mjs +3412 -2764
  11. package/kotlinx-atomicfu.mjs +14 -14
  12. package/kotlinx-coroutines-core.mjs +2690 -2687
  13. package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
  14. package/kotlinx-io-kotlinx-io-core.mjs +539 -539
  15. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
  16. package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
  17. package/kryptom-lib.mjs +2065 -2081
  18. package/ktor-ktor-client-content-negotiation.mjs +217 -217
  19. package/ktor-ktor-client-core.mjs +2997 -2993
  20. package/ktor-ktor-events.mjs +8 -8
  21. package/ktor-ktor-http-cio.mjs +538 -537
  22. package/ktor-ktor-http.mjs +799 -927
  23. package/ktor-ktor-io.mjs +1079 -1079
  24. package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
  25. package/ktor-ktor-serialization-kotlinx.mjs +270 -270
  26. package/ktor-ktor-serialization.mjs +129 -129
  27. package/ktor-ktor-utils.mjs +614 -600
  28. package/ktor-ktor-websockets.mjs +751 -750
  29. package/model.d.mts +0 -1
  30. package/model.mjs +0 -1
  31. package/package.json +2 -3
  32. package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
  33. package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
  34. package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
  35. package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
  36. package/ktor-ktor-shared-ktor-events.mjs +0 -79
  37. package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
  38. package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
  39. package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
  40. package/ktor-ktor-shared-ktor-sse.mjs +0 -2
  41. package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
  42. package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
  43. package/model/UserAndHealthcareParty.d.mts +0 -7
  44. package/model/UserAndHealthcareParty.mjs +0 -6
@@ -1,371 +0,0 @@
1
- import {
2
- Exceptiondt2hlxn7j7vw as Exception,
3
- VOID7hggqo3abtya as VOID,
4
- Exception_init_$Init$2fx1sms2m4tu1 as Exception_init_$Init$,
5
- captureStack1fzi4aczwc4hg as captureStack,
6
- protoOf180f3jzyo7rfj as protoOf,
7
- initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
8
- Unit_instance104q5opgivhr8 as Unit_instance,
9
- initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
10
- equals2au1ep9vhcato as equals,
11
- FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
12
- isInterface3d6p8outrmvmk as isInterface,
13
- hashCodeq5arwsb9dgti as hashCode,
14
- CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
15
- THROW_CCE2g6jy02ryeudk as THROW_CCE,
16
- get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
17
- initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
18
- initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
19
- } from './kotlin-kotlin-stdlib.mjs';
20
- import {
21
- Charsets_getInstancemd62gu5po4os as Charsets_getInstance,
22
- forName2faodmskqnoz5 as forName,
23
- isSupported2nf870ypy50et as isSupported,
24
- } from './ktor-ktor-io.mjs';
25
- import {
26
- HttpHeaders_getInstancekqele34vb34f as HttpHeaders_getInstance,
27
- parseAndSortHeader33xgq5fx7y6j1 as parseAndSortHeader,
28
- NullBody_instance9oj4j8z4op1j as NullBody_instance,
29
- } from './ktor-ktor-http.mjs';
30
- import {
31
- FlowCollector26clgpmzihvke as FlowCollector,
32
- asFlow3ngsnn5xpz8pw as asFlow,
33
- firstOrNull3pfaj04seehr5 as firstOrNull,
34
- } from './kotlinx-coroutines-core.mjs';
35
- //region block: imports
36
- //endregion
37
- //region block: pre-declaration
38
- initMetadataForClass(ContentConvertException, 'ContentConvertException', VOID, Exception);
39
- initMetadataForClass(JsonConvertException, 'JsonConvertException', VOID, ContentConvertException);
40
- function register$default(contentType, converter, configuration, $super) {
41
- var tmp;
42
- if (configuration === VOID) {
43
- tmp = Configuration$register$lambda;
44
- } else {
45
- tmp = configuration;
46
- }
47
- configuration = tmp;
48
- var tmp_0;
49
- if ($super === VOID) {
50
- this.i3l(contentType, converter, configuration);
51
- tmp_0 = Unit_instance;
52
- } else {
53
- tmp_0 = $super.i3l.call(this, contentType, converter, configuration);
54
- }
55
- return tmp_0;
56
- }
57
- initMetadataForInterface(Configuration, 'Configuration');
58
- initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
59
- initMetadataForLambda(deserialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
60
- initMetadataForCoroutine($collectCOROUTINE$1, CoroutineImpl);
61
- initMetadataForClass(deserialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
62
- initMetadataForLambda(deserialize$slambda, CoroutineImpl, VOID, [1]);
63
- initMetadataForCoroutine($deserializeCOROUTINE$0, CoroutineImpl);
64
- //endregion
65
- function ContentConvertException(message, cause) {
66
- cause = cause === VOID ? null : cause;
67
- Exception_init_$Init$(message, cause, this);
68
- captureStack(this, ContentConvertException);
69
- }
70
- function JsonConvertException(message, cause) {
71
- cause = cause === VOID ? null : cause;
72
- ContentConvertException.call(this, message, cause);
73
- captureStack(this, JsonConvertException);
74
- }
75
- function deserialize(_this__u8e3s4, body, typeInfo, charset, $completion) {
76
- var tmp = new $deserializeCOROUTINE$0(_this__u8e3s4, body, typeInfo, charset, $completion);
77
- tmp.m9_1 = Unit_instance;
78
- tmp.n9_1 = null;
79
- return tmp.s9();
80
- }
81
- function suitableCharset(_this__u8e3s4, defaultCharset) {
82
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().p20_1 : defaultCharset;
83
- var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
84
- return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
85
- }
86
- function Configuration$register$lambda(_this__u8e3s4) {
87
- return Unit_instance;
88
- }
89
- function Configuration() {
90
- }
91
- function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
92
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().p20_1 : defaultCharset;
93
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.f2o(HttpHeaders_getInstance().g2w_1)).q();
94
- while (_iterator__ex2g4s.r()) {
95
- var charset = _iterator__ex2g4s.s().ob();
96
- if (charset === '*')
97
- return defaultCharset;
98
- else if (isSupported(Charsets_getInstance(), charset))
99
- return forName(Charsets_getInstance(), charset);
100
- }
101
- return null;
102
- }
103
- function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
104
- this.k3l_1 = function_0;
105
- }
106
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v1c = function (value, $completion) {
107
- return this.k3l_1(value, $completion);
108
- };
109
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
110
- return this.k3l_1;
111
- };
112
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
113
- var tmp;
114
- if (!(other == null) ? isInterface(other, FlowCollector) : false) {
115
- var tmp_0;
116
- if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
117
- tmp_0 = equals(this.v3(), other.v3());
118
- } else {
119
- tmp_0 = false;
120
- }
121
- tmp = tmp_0;
122
- } else {
123
- tmp = false;
124
- }
125
- return tmp;
126
- };
127
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
128
- return hashCode(this.v3());
129
- };
130
- function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
131
- this.t3l_1 = $$this$unsafeFlow;
132
- this.u3l_1 = $charset;
133
- this.v3l_1 = $typeInfo;
134
- this.w3l_1 = $body;
135
- CoroutineImpl.call(this, resultContinuation);
136
- }
137
- protoOf(deserialize$o$collect$slambda).f3m = function (value, $completion) {
138
- var tmp = this.g3m(value, $completion);
139
- tmp.m9_1 = Unit_instance;
140
- tmp.n9_1 = null;
141
- return tmp.s9();
142
- };
143
- protoOf(deserialize$o$collect$slambda).ga = function (p1, $completion) {
144
- return this.f3m((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
145
- };
146
- protoOf(deserialize$o$collect$slambda).s9 = function () {
147
- var suspendResult = this.m9_1;
148
- $sm: do
149
- try {
150
- var tmp = this.k9_1;
151
- switch (tmp) {
152
- case 0:
153
- this.l9_1 = 3;
154
- var tmp_0 = this;
155
- tmp_0.y3l_1 = this.t3l_1;
156
- var tmp_1 = this;
157
- tmp_1.z3l_1 = this.x3l_1;
158
- this.a3m_1 = this.y3l_1;
159
- this.b3m_1 = this.z3l_1;
160
- var tmp_2 = this;
161
- tmp_2.c3m_1 = this.b3m_1;
162
- this.d3m_1 = this.c3m_1;
163
- this.k9_1 = 1;
164
- suspendResult = this.d3m_1.h3m(this.u3l_1, this.v3l_1, this.w3l_1, this);
165
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
166
- return suspendResult;
167
- }
168
-
169
- continue $sm;
170
- case 1:
171
- this.e3m_1 = suspendResult;
172
- this.k9_1 = 2;
173
- suspendResult = this.a3m_1.v1c(this.e3m_1, this);
174
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
175
- return suspendResult;
176
- }
177
-
178
- continue $sm;
179
- case 2:
180
- return Unit_instance;
181
- case 3:
182
- throw this.n9_1;
183
- }
184
- } catch ($p) {
185
- var e = $p;
186
- if (this.l9_1 === 3) {
187
- throw e;
188
- } else {
189
- this.k9_1 = this.l9_1;
190
- this.n9_1 = e;
191
- }
192
- }
193
- while (true);
194
- };
195
- protoOf(deserialize$o$collect$slambda).g3m = function (value, completion) {
196
- var i = new deserialize$o$collect$slambda(this.t3l_1, this.u3l_1, this.v3l_1, this.w3l_1, completion);
197
- i.x3l_1 = value;
198
- return i;
199
- };
200
- function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
201
- var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
202
- var l = function (value, $completion) {
203
- return i.f3m(value, $completion);
204
- };
205
- l.$arity = 1;
206
- return l;
207
- }
208
- function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
209
- CoroutineImpl.call(this, resultContinuation);
210
- this.q3m_1 = _this__u8e3s4;
211
- this.r3m_1 = collector;
212
- }
213
- protoOf($collectCOROUTINE$1).s9 = function () {
214
- var suspendResult = this.m9_1;
215
- $sm: do
216
- try {
217
- var tmp = this.k9_1;
218
- switch (tmp) {
219
- case 0:
220
- this.l9_1 = 2;
221
- var tmp_0 = this;
222
- tmp_0.s3m_1 = this.r3m_1;
223
- this.t3m_1 = this.s3m_1;
224
- this.k9_1 = 1;
225
- var tmp_1 = deserialize$o$collect$slambda_0(this.t3m_1, this.q3m_1.v3m_1, this.q3m_1.w3m_1, this.q3m_1.x3m_1, null);
226
- suspendResult = this.q3m_1.u3m_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
227
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
228
- return suspendResult;
229
- }
230
-
231
- continue $sm;
232
- case 1:
233
- return Unit_instance;
234
- case 2:
235
- throw this.n9_1;
236
- }
237
- } catch ($p) {
238
- var e = $p;
239
- if (this.l9_1 === 2) {
240
- throw e;
241
- } else {
242
- this.k9_1 = this.l9_1;
243
- this.n9_1 = e;
244
- }
245
- }
246
- while (true);
247
- };
248
- function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
249
- this.u3m_1 = $this;
250
- this.v3m_1 = $charset;
251
- this.w3m_1 = $typeInfo;
252
- this.x3m_1 = $body;
253
- }
254
- protoOf(deserialize$$inlined$map$1).w1c = function (collector, $completion) {
255
- var tmp = new $collectCOROUTINE$1(this, collector, $completion);
256
- tmp.m9_1 = Unit_instance;
257
- tmp.n9_1 = null;
258
- return tmp.s9();
259
- };
260
- protoOf(deserialize$$inlined$map$1).b1c = function (collector, $completion) {
261
- return this.w1c(collector, $completion);
262
- };
263
- function deserialize$slambda($body, resultContinuation) {
264
- this.g3n_1 = $body;
265
- CoroutineImpl.call(this, resultContinuation);
266
- }
267
- protoOf(deserialize$slambda).i3n = function (it, $completion) {
268
- var tmp = this.g3m(it, $completion);
269
- tmp.m9_1 = Unit_instance;
270
- tmp.n9_1 = null;
271
- return tmp.s9();
272
- };
273
- protoOf(deserialize$slambda).ga = function (p1, $completion) {
274
- return this.i3n((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
275
- };
276
- protoOf(deserialize$slambda).s9 = function () {
277
- var suspendResult = this.m9_1;
278
- $sm: do
279
- try {
280
- var tmp = this.k9_1;
281
- if (tmp === 0) {
282
- this.l9_1 = 1;
283
- return !(this.h3n_1 == null) || this.g3n_1.z1q();
284
- } else if (tmp === 1) {
285
- throw this.n9_1;
286
- }
287
- } catch ($p) {
288
- var e = $p;
289
- throw e;
290
- }
291
- while (true);
292
- };
293
- protoOf(deserialize$slambda).g3m = function (it, completion) {
294
- var i = new deserialize$slambda(this.g3n_1, completion);
295
- i.h3n_1 = it;
296
- return i;
297
- };
298
- function deserialize$slambda_0($body, resultContinuation) {
299
- var i = new deserialize$slambda($body, resultContinuation);
300
- var l = function (it, $completion) {
301
- return i.i3n(it, $completion);
302
- };
303
- l.$arity = 1;
304
- return l;
305
- }
306
- function $deserializeCOROUTINE$0(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
307
- CoroutineImpl.call(this, resultContinuation);
308
- this.e3l_1 = _this__u8e3s4;
309
- this.f3l_1 = body;
310
- this.g3l_1 = typeInfo;
311
- this.h3l_1 = charset;
312
- }
313
- protoOf($deserializeCOROUTINE$0).s9 = function () {
314
- var suspendResult = this.m9_1;
315
- $sm: do
316
- try {
317
- var tmp = this.k9_1;
318
- switch (tmp) {
319
- case 0:
320
- this.l9_1 = 2;
321
- this.k9_1 = 1;
322
- var this_0 = asFlow(this.e3l_1);
323
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.h3l_1, this.g3l_1, this.f3l_1);
324
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.f3l_1, null), this);
325
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
326
- return suspendResult;
327
- }
328
-
329
- continue $sm;
330
- case 1:
331
- var result = suspendResult;
332
- var tmp_1;
333
- if (!(result == null)) {
334
- tmp_1 = result;
335
- } else {
336
- if (!this.f3l_1.z1q()) {
337
- tmp_1 = this.f3l_1;
338
- } else {
339
- var tmp0_safe_receiver = this.g3l_1.o2t_1;
340
- if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jc()) === true) {
341
- tmp_1 = NullBody_instance;
342
- } else {
343
- throw new ContentConvertException('No suitable converter found for ' + this.g3l_1.toString());
344
- }
345
- }
346
- }
347
-
348
- return tmp_1;
349
- case 2:
350
- throw this.n9_1;
351
- }
352
- } catch ($p) {
353
- var e = $p;
354
- if (this.l9_1 === 2) {
355
- throw e;
356
- } else {
357
- this.k9_1 = this.l9_1;
358
- this.n9_1 = e;
359
- }
360
- }
361
- while (true);
362
- };
363
- //region block: exports
364
- export {
365
- deserialize as deserialize17rec5pkkk30w,
366
- register$default as register$default2n93tkqtk1ptz,
367
- Configuration as Configuration20xgygxdzhlk5,
368
- JsonConvertException as JsonConvertExceptiongnc5x6xwaf77,
369
- suitableCharset as suitableCharset1jgdcpdzbzgzn,
370
- };
371
- //endregion
@@ -1,2 +0,0 @@
1
- //region block: pre-declaration
2
- //endregion
@@ -1,2 +0,0 @@
1
- //region block: pre-declaration
2
- //endregion