@icure/cardinal-sdk 2.13.2 → 2.13.3
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/cardinal-sdk-ts.mjs +42528 -42518
- package/cardinal-sdk.mjs +47935 -48048
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/base/CryptoActor.mjs +3 -3
- package/model/embed/HealthElementAsserter.d.mts +30 -1
- package/model/embed/HealthElementAsserter.mjs +41 -1
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +6 -6
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +2 -2
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -93,8 +93,8 @@ initMetadataForInterface(Entry, 'Entry');
|
|
|
93
93
|
initMetadataForInterface(KtMap, 'Map');
|
|
94
94
|
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
95
95
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
96
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
97
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
96
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
|
|
97
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
|
|
98
98
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
99
99
|
initMetadataForCompanion(Companion_0);
|
|
100
100
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -115,7 +115,7 @@ initMetadataForInterface(AutoCloseable, 'AutoCloseable');
|
|
|
115
115
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
116
116
|
initMetadataForObject(Unit, 'Unit');
|
|
117
117
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
118
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [
|
|
118
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [MutableIterable, Collection]);
|
|
119
119
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
120
120
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
121
121
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
|
|
@@ -128,7 +128,7 @@ initMetadataForCompanion(Companion_2);
|
|
|
128
128
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
|
|
129
129
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
|
|
130
130
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
131
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
131
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection]);
|
|
132
132
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
133
133
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
134
134
|
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.s1d(cause) : $super.s1d.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.s1d(cause) : $super.s1d.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, [
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, 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, [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, SelectInstance, Waiter], [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]);
|
|
@@ -7,10 +7,10 @@ export var CryptoActor;
|
|
|
7
7
|
(function (CryptoActor) {
|
|
8
8
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['CryptoActor']) {
|
|
9
9
|
switch (json.$ktClass) {
|
|
10
|
-
case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
|
|
11
|
-
case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
-
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
13
10
|
case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
11
|
+
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
+
case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
|
|
13
|
+
case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
|
|
14
14
|
case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
|
|
15
15
|
default: throw new Error('Unexpected discriminator for CryptoActor: ' + json.$ktClass);
|
|
16
16
|
}
|
|
@@ -59,7 +59,7 @@ export declare class HealthElementAsserter {
|
|
|
59
59
|
* party is named by
|
|
60
60
|
* [localAsserterIdentifier]. Carries no [AsserterTypeDto].
|
|
61
61
|
*/
|
|
62
|
-
externalAsserterIdentifier:
|
|
62
|
+
externalAsserterIdentifier: HealthElementAsserter.ExternalAsserterIdentifier | undefined;
|
|
63
63
|
constructor(partial: Partial<HealthElementAsserter>);
|
|
64
64
|
toJSON(): object;
|
|
65
65
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): HealthElementAsserter;
|
|
@@ -88,4 +88,33 @@ export declare namespace HealthElementAsserter {
|
|
|
88
88
|
toJSON(): object;
|
|
89
89
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): LocalAsserterIdentifier;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* The party making the assertion, when it has no record in this iCure instance.
|
|
95
|
+
*
|
|
96
|
+
* The party is named by a business [identifier] issued by another system: a national registry
|
|
97
|
+
* number, an entry in
|
|
98
|
+
* the sending hospital's directory, and so on. Because the record lives elsewhere there is no
|
|
99
|
+
* [AsserterTypeDto]
|
|
100
|
+
* here - the kind of a record we do not store is not knowable to us. The wrapper around the
|
|
101
|
+
* [IdentifierDto] mirrors
|
|
102
|
+
* [LocalAsserterIdentifier] on the other branch, and is where anything specific to an external
|
|
103
|
+
* asserter would go:
|
|
104
|
+
* [IdentifierDto] itself is shared by every `identifiers` field in the model and cannot carry it.
|
|
105
|
+
*/
|
|
106
|
+
class ExternalAsserterIdentifier {
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* The business identifier of the party in the system that issued it. `system` names that issuing
|
|
111
|
+
* system and
|
|
112
|
+
* `value` is the party's identifier within it; together they are what makes the party
|
|
113
|
+
* resolvable.
|
|
114
|
+
*/
|
|
115
|
+
identifier: Identifier;
|
|
116
|
+
constructor(partial: Partial<ExternalAsserterIdentifier> & Pick<ExternalAsserterIdentifier, "identifier">);
|
|
117
|
+
toJSON(): object;
|
|
118
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): ExternalAsserterIdentifier;
|
|
119
|
+
}
|
|
91
120
|
}
|
|
@@ -83,7 +83,7 @@ export class HealthElementAsserter {
|
|
|
83
83
|
const jCpy = Object.assign({}, json);
|
|
84
84
|
const res = new HealthElementAsserter({
|
|
85
85
|
localAsserterIdentifier: expectObject(extractEntry(jCpy, 'localAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".localAsserterIdentifier"], HealthElementAsserter.LocalAsserterIdentifier.fromJSON),
|
|
86
|
-
externalAsserterIdentifier: expectObject(extractEntry(jCpy, 'externalAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".externalAsserterIdentifier"],
|
|
86
|
+
externalAsserterIdentifier: expectObject(extractEntry(jCpy, 'externalAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".externalAsserterIdentifier"], HealthElementAsserter.ExternalAsserterIdentifier.fromJSON),
|
|
87
87
|
});
|
|
88
88
|
if (!ignoreUnknownKeys) {
|
|
89
89
|
const unused = Object.keys(jCpy);
|
|
@@ -128,4 +128,44 @@ export class HealthElementAsserter {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
HealthElementAsserter.LocalAsserterIdentifier = LocalAsserterIdentifier;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
* The party making the assertion, when it has no record in this iCure instance.
|
|
135
|
+
*
|
|
136
|
+
* The party is named by a business [identifier] issued by another system: a national registry
|
|
137
|
+
* number, an entry in
|
|
138
|
+
* the sending hospital's directory, and so on. Because the record lives elsewhere there is no
|
|
139
|
+
* [AsserterTypeDto]
|
|
140
|
+
* here - the kind of a record we do not store is not knowable to us. The wrapper around the
|
|
141
|
+
* [IdentifierDto] mirrors
|
|
142
|
+
* [LocalAsserterIdentifier] on the other branch, and is where anything specific to an external
|
|
143
|
+
* asserter would go:
|
|
144
|
+
* [IdentifierDto] itself is shared by every `identifiers` field in the model and cannot carry it.
|
|
145
|
+
*/
|
|
146
|
+
class ExternalAsserterIdentifier {
|
|
147
|
+
constructor(partial) {
|
|
148
|
+
this.identifier = partial.identifier;
|
|
149
|
+
}
|
|
150
|
+
toJSON() {
|
|
151
|
+
const res = {};
|
|
152
|
+
res['identifier'] = this.identifier.toJSON();
|
|
153
|
+
return res;
|
|
154
|
+
}
|
|
155
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['ExternalAsserterIdentifier']) {
|
|
156
|
+
if (typeof json != 'object')
|
|
157
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
158
|
+
const jCpy = Object.assign({}, json);
|
|
159
|
+
const res = new ExternalAsserterIdentifier({
|
|
160
|
+
identifier: expectObject(extractEntry(jCpy, 'identifier', true, path), false, ignoreUnknownKeys, [...path, ".identifier"], Identifier.fromJSON),
|
|
161
|
+
});
|
|
162
|
+
if (!ignoreUnknownKeys) {
|
|
163
|
+
const unused = Object.keys(jCpy);
|
|
164
|
+
if (unused.length > 0)
|
|
165
|
+
throw new Error(`Unexpected key(s) for json object ExternalAsserterIdentifier at path ${path.join("")}: ${unused}`);
|
|
166
|
+
}
|
|
167
|
+
return res;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
HealthElementAsserter.ExternalAsserterIdentifier = ExternalAsserterIdentifier;
|
|
131
171
|
})(HealthElementAsserter || (HealthElementAsserter = {}));
|
|
@@ -17,4 +17,4 @@ import { TimePicker } from './TimePicker.mjs';
|
|
|
17
17
|
* validation rules, and optional codification and tagging.
|
|
18
18
|
* /
|
|
19
19
|
*/
|
|
20
|
-
export type Field =
|
|
20
|
+
export type Field = DatePicker | MeasureField | DateTimePicker | TextField | CheckBox | DropdownField | NumberField | TimePicker | RadioButton | MultipleChoice;
|
|
@@ -6,7 +6,7 @@ import { FieldsGroup } from './FieldsGroup.mjs';
|
|
|
6
6
|
* groups.
|
|
7
7
|
* /
|
|
8
8
|
*/
|
|
9
|
-
export type StructureElement =
|
|
9
|
+
export type StructureElement = FieldsGroup | Field;
|
|
10
10
|
export declare namespace StructureElement {
|
|
11
11
|
function fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): StructureElement;
|
|
12
12
|
}
|
|
@@ -14,17 +14,17 @@ export var StructureElement;
|
|
|
14
14
|
(function (StructureElement) {
|
|
15
15
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['StructureElement']) {
|
|
16
16
|
switch (json.$ktClass) {
|
|
17
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
18
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
19
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
|
|
17
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.FieldsGroup': return FieldsGroup.fromJSON(json, ignoreUnknownKeys);
|
|
20
18
|
case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
|
|
21
19
|
case 'com.icure.cardinal.sdk.model.embed.form.template.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
|
|
22
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.TextField': return TextField.fromJSON(json, ignoreUnknownKeys);
|
|
23
20
|
case 'com.icure.cardinal.sdk.model.embed.form.template.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
24
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
21
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.TextField': return TextField.fromJSON(json, ignoreUnknownKeys);
|
|
25
22
|
case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
|
|
23
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
|
|
26
24
|
case 'com.icure.cardinal.sdk.model.embed.form.template.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
|
|
27
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
25
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
26
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
|
|
27
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.MultipleChoice': return MultipleChoice.fromJSON(json, ignoreUnknownKeys);
|
|
28
28
|
default: throw new Error('Unexpected discriminator for StructureElement: ' + json.$ktClass);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -9,7 +9,7 @@ import { OrPredicate } from './OrPredicate.mjs';
|
|
|
9
9
|
* chain.
|
|
10
10
|
* /
|
|
11
11
|
*/
|
|
12
|
-
export type Predicate =
|
|
12
|
+
export type Predicate = NotPredicate | AndPredicate | OrPredicate | KeyValuePredicate | AlwaysPredicate;
|
|
13
13
|
export declare namespace Predicate {
|
|
14
14
|
function fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Predicate;
|
|
15
15
|
}
|
|
@@ -8,11 +8,11 @@ export var Predicate;
|
|
|
8
8
|
(function (Predicate) {
|
|
9
9
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['Predicate']) {
|
|
10
10
|
switch (json.$ktClass) {
|
|
11
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.KeyValuePredicate': return KeyValuePredicate.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.AlwaysPredicate': return AlwaysPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
13
11
|
case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
14
12
|
case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
15
13
|
case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
14
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.KeyValuePredicate': return KeyValuePredicate.fromJSON(json, ignoreUnknownKeys);
|
|
15
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.AlwaysPredicate': return AlwaysPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
16
16
|
default: throw new Error('Unexpected discriminator for Predicate: ' + json.$ktClass);
|
|
17
17
|
}
|
|
18
18
|
}
|