@icure/cardinal-sdk 2.3.1 → 2.3.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/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/cardinal-sdk-ts.mjs +39187 -39187
- package/cardinal-sdk.mjs +103026 -96911
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +0 -12
- package/model/base/CryptoActor.mjs +1 -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 +7 -7
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +3 -3
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -48,6 +48,12 @@ 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
|
+
}
|
|
51
57
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
52
58
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
53
59
|
var subjectString = this.toString();
|
|
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
59
65
|
return lastIndex !== -1 && lastIndex === position;
|
|
60
66
|
}});
|
|
61
67
|
}
|
|
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, Collection, MutableIterable]);
|
|
92
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
|
|
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, Collection, MutableIterable]);
|
|
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, [Collection, MutableIterable, AbstractMutableCollection]);
|
|
127
127
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
128
128
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
129
129
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
@@ -834,17 +834,6 @@ function get_jsonObject(_this__u8e3s4) {
|
|
|
834
834
|
}
|
|
835
835
|
return tmp;
|
|
836
836
|
}
|
|
837
|
-
function get_jsonArray(_this__u8e3s4) {
|
|
838
|
-
_init_properties_JsonElement_kt__7cbdc2();
|
|
839
|
-
var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonArray ? _this__u8e3s4 : null;
|
|
840
|
-
var tmp;
|
|
841
|
-
if (tmp0_elvis_lhs == null) {
|
|
842
|
-
error(_this__u8e3s4, 'JsonArray');
|
|
843
|
-
} else {
|
|
844
|
-
tmp = tmp0_elvis_lhs;
|
|
845
|
-
}
|
|
846
|
-
return tmp;
|
|
847
|
-
}
|
|
848
837
|
var properties_initialized_JsonElement_kt_abxy8s;
|
|
849
838
|
function _init_properties_JsonElement_kt__7cbdc2() {
|
|
850
839
|
if (!properties_initialized_JsonElement_kt_abxy8s) {
|
|
@@ -6747,7 +6736,6 @@ export {
|
|
|
6747
6736
|
decodeFromDynamic as decodeFromDynamic3axi482yesc93,
|
|
6748
6737
|
get_doubleOrNull as get_doubleOrNull2fo14gjg922um,
|
|
6749
6738
|
encodeToDynamic as encodeToDynamicsae9c2u7066d,
|
|
6750
|
-
get_jsonArray as get_jsonArray18sglwhl4pclz,
|
|
6751
6739
|
get_jsonObject as get_jsonObject2u4z2ch1uuca9,
|
|
6752
6740
|
get_jsonPrimitive as get_jsonPrimitivez17tyd5rw1ql,
|
|
6753
6741
|
get_longOrNull as get_longOrNull1kg1ha9scz5pa,
|
|
@@ -8,8 +8,8 @@ export var CryptoActor;
|
|
|
8
8
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['CryptoActor']) {
|
|
9
9
|
switch (json.$ktClass) {
|
|
10
10
|
case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
|
|
11
|
-
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
12
11
|
case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
+
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
13
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);
|
|
@@ -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 = RadioButton | NumberField | TimePicker | DateTimePicker | MeasureField | MultipleChoice | DropdownField | CheckBox | DatePicker | TextField;
|
|
@@ -6,7 +6,7 @@ import { FieldsGroup } from './FieldsGroup.mjs';
|
|
|
6
6
|
* groups.
|
|
7
7
|
* /
|
|
8
8
|
*/
|
|
9
|
-
export type StructureElement =
|
|
9
|
+
export type StructureElement = Field | FieldsGroup;
|
|
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.FieldsGroup': return FieldsGroup.fromJSON(json, ignoreUnknownKeys);
|
|
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.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
|
|
20
17
|
case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
|
|
21
18
|
case 'com.icure.cardinal.sdk.model.embed.form.template.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
|
|
22
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
23
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
19
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
20
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
21
|
+
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.MultipleChoice': return MultipleChoice.fromJSON(json, ignoreUnknownKeys);
|
|
24
23
|
case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
|
|
24
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
|
|
25
25
|
case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
|
|
26
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
27
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.
|
|
26
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.TextField': return TextField.fromJSON(json, ignoreUnknownKeys);
|
|
27
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.FieldsGroup': return FieldsGroup.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 = KeyValuePredicate | NotPredicate | AndPredicate | OrPredicate | 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.
|
|
11
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.KeyValuePredicate': return KeyValuePredicate.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
12
13
|
case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
14
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
13
15
|
case 'com.icure.cardinal.sdk.model.filter.predicate.AlwaysPredicate': return AlwaysPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
14
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
15
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.KeyValuePredicate': return KeyValuePredicate.fromJSON(json, ignoreUnknownKeys);
|
|
16
16
|
default: throw new Error('Unexpected discriminator for Predicate: ' + json.$ktClass);
|
|
17
17
|
}
|
|
18
18
|
}
|