@icure/cardinal-sdk 2.3.0 → 2.3.1
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/api/ContactApi.d.mts +12 -0
- package/api/ContactInGroupApi.d.mts +5 -0
- package/cardinal-sdk-ts.mjs +39018 -38866
- package/cardinal-sdk.mjs +61115 -61053
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlinx-coroutines-core.mjs +9 -8
- package/model/Patient.d.mts +0 -15
- package/model/Patient.mjs +0 -20
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
-
position = position || 0;
|
|
54
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
-
}});
|
|
56
|
-
}
|
|
57
51
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
58
52
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
59
53
|
var subjectString = this.toString();
|
|
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
65
59
|
return lastIndex !== -1 && lastIndex === position;
|
|
66
60
|
}});
|
|
67
61
|
}
|
|
62
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
+
position = position || 0;
|
|
65
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
+
}});
|
|
67
|
+
}
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: imports
|
|
70
70
|
var imul_0 = Math.imul;
|
|
@@ -88,8 +88,8 @@ initMetadataForInterface(Entry, 'Entry');
|
|
|
88
88
|
initMetadataForInterface(KtMap, 'Map');
|
|
89
89
|
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
90
90
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
91
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
92
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
91
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
|
|
92
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
|
|
93
93
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
94
94
|
initMetadataForCompanion(Companion_0);
|
|
95
95
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -110,7 +110,7 @@ initMetadataForInterface(AutoCloseable, 'AutoCloseable');
|
|
|
110
110
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
111
111
|
initMetadataForObject(Unit, 'Unit');
|
|
112
112
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
113
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
113
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
114
114
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
115
115
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
116
116
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
@@ -123,7 +123,7 @@ initMetadataForCompanion(Companion_2);
|
|
|
123
123
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
|
|
124
124
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
|
|
125
125
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
126
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
126
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
|
|
127
127
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
128
128
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
129
129
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
@@ -235,6 +235,11 @@ initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, V
|
|
|
235
235
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
236
236
|
initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
|
|
237
237
|
initMetadataForCoroutine($receiveCatchingCOROUTINE$, CoroutineImpl);
|
|
238
|
+
function close$default(cause, $super) {
|
|
239
|
+
cause = cause === VOID ? null : cause;
|
|
240
|
+
return $super === VOID ? this.l1d(cause) : $super.l1d.call(this, cause);
|
|
241
|
+
}
|
|
242
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
238
243
|
function cancel$default_0(cause, $super) {
|
|
239
244
|
cause = cause === VOID ? null : cause;
|
|
240
245
|
var tmp;
|
|
@@ -247,12 +252,7 @@ function cancel$default_0(cause, $super) {
|
|
|
247
252
|
return tmp;
|
|
248
253
|
}
|
|
249
254
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
250
|
-
|
|
251
|
-
cause = cause === VOID ? null : cause;
|
|
252
|
-
return $super === VOID ? this.l1d(cause) : $super.l1d.call(this, cause);
|
|
253
|
-
}
|
|
254
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
255
|
-
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
255
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
|
|
256
256
|
initMetadataForClass(WaiterEB, 'WaiterEB');
|
|
257
257
|
initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
|
|
258
258
|
initMetadataForObject(Factory, 'Factory');
|
|
@@ -262,7 +262,7 @@ initMetadataForCompanion(Companion);
|
|
|
262
262
|
initMetadataForClass(ChannelResult, 'ChannelResult');
|
|
263
263
|
initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
|
|
264
264
|
initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
|
|
265
|
-
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine,
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], [1, 0]);
|
|
266
266
|
initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
|
|
267
267
|
initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
|
|
268
268
|
initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);
|
|
@@ -294,7 +294,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
|
|
|
294
294
|
initMetadataForClass(Symbol, 'Symbol');
|
|
295
295
|
initMetadataForInterface(SelectInstance, 'SelectInstance');
|
|
296
296
|
initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
297
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
297
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
|
|
298
298
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
299
299
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
300
300
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
|
@@ -10923,6 +10923,7 @@ export {
|
|
|
10923
10923
|
cancel as cancel2ztysw4v4hav6,
|
|
10924
10924
|
cancel_1 as cancel1xim2hrvjmwpn,
|
|
10925
10925
|
completeWith as completeWith2hvdlbg1q1mlx,
|
|
10926
|
+
ensureActive_0 as ensureActive2yo7199srjlgl,
|
|
10926
10927
|
ensureActive as ensureActivem48bojk66pw0,
|
|
10927
10928
|
get_isActive as get_isActivehakov5bm97hw,
|
|
10928
10929
|
get_job as get_job2zvlvce9o9a29,
|
package/model/Patient.d.mts
CHANGED
|
@@ -167,11 +167,6 @@ export interface Patient extends StoredDocument, ICureDocument<string>, Person,
|
|
|
167
167
|
* The ethnicity of the patient.
|
|
168
168
|
*/
|
|
169
169
|
ethnicity: string | undefined;
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* The id of the user that usually handles this patient.
|
|
173
|
-
*/
|
|
174
|
-
preferredUserId: string | undefined;
|
|
175
170
|
/**
|
|
176
171
|
*
|
|
177
172
|
* List of insurance coverages.
|
|
@@ -457,11 +452,6 @@ export declare class DecryptedPatient {
|
|
|
457
452
|
* The ethnicity of the patient.
|
|
458
453
|
*/
|
|
459
454
|
ethnicity: string | undefined;
|
|
460
|
-
/**
|
|
461
|
-
*
|
|
462
|
-
* The id of the user that usually handles this patient.
|
|
463
|
-
*/
|
|
464
|
-
preferredUserId: string | undefined;
|
|
465
455
|
/**
|
|
466
456
|
*
|
|
467
457
|
* List of insurance coverages.
|
|
@@ -830,11 +820,6 @@ export declare class EncryptedPatient {
|
|
|
830
820
|
* The ethnicity of the patient.
|
|
831
821
|
*/
|
|
832
822
|
ethnicity: string | undefined;
|
|
833
|
-
/**
|
|
834
|
-
*
|
|
835
|
-
* The id of the user that usually handles this patient.
|
|
836
|
-
*/
|
|
837
|
-
preferredUserId: string | undefined;
|
|
838
823
|
/**
|
|
839
824
|
*
|
|
840
825
|
* List of insurance coverages.
|
package/model/Patient.mjs
CHANGED
|
@@ -243,11 +243,6 @@ export class DecryptedPatient {
|
|
|
243
243
|
* The ethnicity of the patient.
|
|
244
244
|
*/
|
|
245
245
|
this.ethnicity = undefined;
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* The id of the user that usually handles this patient.
|
|
249
|
-
*/
|
|
250
|
-
this.preferredUserId = undefined;
|
|
251
246
|
/**
|
|
252
247
|
*
|
|
253
248
|
* List of insurance coverages.
|
|
@@ -449,8 +444,6 @@ export class DecryptedPatient {
|
|
|
449
444
|
this.race = partial.race;
|
|
450
445
|
if ('ethnicity' in partial)
|
|
451
446
|
this.ethnicity = partial.ethnicity;
|
|
452
|
-
if ('preferredUserId' in partial)
|
|
453
|
-
this.preferredUserId = partial.preferredUserId;
|
|
454
447
|
if ('insurabilities' in partial && partial.insurabilities !== undefined)
|
|
455
448
|
this.insurabilities = partial.insurabilities;
|
|
456
449
|
if ('partnerships' in partial && partial.partnerships !== undefined)
|
|
@@ -575,8 +568,6 @@ export class DecryptedPatient {
|
|
|
575
568
|
res['race'] = this.race;
|
|
576
569
|
if (this.ethnicity != undefined)
|
|
577
570
|
res['ethnicity'] = this.ethnicity;
|
|
578
|
-
if (this.preferredUserId != undefined)
|
|
579
|
-
res['preferredUserId'] = this.preferredUserId;
|
|
580
571
|
res['insurabilities'] = this.insurabilities.map((x0) => x0.toJSON());
|
|
581
572
|
res['partnerships'] = this.partnerships.map((x0) => x0.toJSON());
|
|
582
573
|
res['patientHealthCareParties'] = this.patientHealthCareParties.map((x0) => x0.toJSON());
|
|
@@ -660,7 +651,6 @@ export class DecryptedPatient {
|
|
|
660
651
|
nationality: expectString(extractEntry(jCpy, 'nationality', false, path), true, [...path, ".nationality"]),
|
|
661
652
|
race: expectString(extractEntry(jCpy, 'race', false, path), true, [...path, ".race"]),
|
|
662
653
|
ethnicity: expectString(extractEntry(jCpy, 'ethnicity', false, path), true, [...path, ".ethnicity"]),
|
|
663
|
-
preferredUserId: expectString(extractEntry(jCpy, 'preferredUserId', false, path), true, [...path, ".preferredUserId"]),
|
|
664
654
|
insurabilities: expectArray(extractEntry(jCpy, 'insurabilities', false, path), false, [...path, ".insurabilities"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedInsurability.fromJSON)),
|
|
665
655
|
partnerships: expectArray(extractEntry(jCpy, 'partnerships', false, path), false, [...path, ".partnerships"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, Partnership.fromJSON)),
|
|
666
656
|
patientHealthCareParties: expectArray(extractEntry(jCpy, 'patientHealthCareParties', false, path), false, [...path, ".patientHealthCareParties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPatientHealthCareParty.fromJSON)),
|
|
@@ -919,11 +909,6 @@ export class EncryptedPatient {
|
|
|
919
909
|
* The ethnicity of the patient.
|
|
920
910
|
*/
|
|
921
911
|
this.ethnicity = undefined;
|
|
922
|
-
/**
|
|
923
|
-
*
|
|
924
|
-
* The id of the user that usually handles this patient.
|
|
925
|
-
*/
|
|
926
|
-
this.preferredUserId = undefined;
|
|
927
912
|
/**
|
|
928
913
|
*
|
|
929
914
|
* List of insurance coverages.
|
|
@@ -1125,8 +1110,6 @@ export class EncryptedPatient {
|
|
|
1125
1110
|
this.race = partial.race;
|
|
1126
1111
|
if ('ethnicity' in partial)
|
|
1127
1112
|
this.ethnicity = partial.ethnicity;
|
|
1128
|
-
if ('preferredUserId' in partial)
|
|
1129
|
-
this.preferredUserId = partial.preferredUserId;
|
|
1130
1113
|
if ('insurabilities' in partial && partial.insurabilities !== undefined)
|
|
1131
1114
|
this.insurabilities = partial.insurabilities;
|
|
1132
1115
|
if ('partnerships' in partial && partial.partnerships !== undefined)
|
|
@@ -1251,8 +1234,6 @@ export class EncryptedPatient {
|
|
|
1251
1234
|
res['race'] = this.race;
|
|
1252
1235
|
if (this.ethnicity != undefined)
|
|
1253
1236
|
res['ethnicity'] = this.ethnicity;
|
|
1254
|
-
if (this.preferredUserId != undefined)
|
|
1255
|
-
res['preferredUserId'] = this.preferredUserId;
|
|
1256
1237
|
res['insurabilities'] = this.insurabilities.map((x0) => x0.toJSON());
|
|
1257
1238
|
res['partnerships'] = this.partnerships.map((x0) => x0.toJSON());
|
|
1258
1239
|
res['patientHealthCareParties'] = this.patientHealthCareParties.map((x0) => x0.toJSON());
|
|
@@ -1336,7 +1317,6 @@ export class EncryptedPatient {
|
|
|
1336
1317
|
nationality: expectString(extractEntry(jCpy, 'nationality', false, path), true, [...path, ".nationality"]),
|
|
1337
1318
|
race: expectString(extractEntry(jCpy, 'race', false, path), true, [...path, ".race"]),
|
|
1338
1319
|
ethnicity: expectString(extractEntry(jCpy, 'ethnicity', false, path), true, [...path, ".ethnicity"]),
|
|
1339
|
-
preferredUserId: expectString(extractEntry(jCpy, 'preferredUserId', false, path), true, [...path, ".preferredUserId"]),
|
|
1340
1320
|
insurabilities: expectArray(extractEntry(jCpy, 'insurabilities', false, path), false, [...path, ".insurabilities"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedInsurability.fromJSON)),
|
|
1341
1321
|
partnerships: expectArray(extractEntry(jCpy, 'partnerships', false, path), false, [...path, ".partnerships"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, Partnership.fromJSON)),
|
|
1342
1322
|
patientHealthCareParties: expectArray(extractEntry(jCpy, 'patientHealthCareParties', false, path), false, [...path, ".patientHealthCareParties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedPatientHealthCareParty.fromJSON)),
|