@icure/cardinal-sdk 2.3.0 → 2.3.2

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.
@@ -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, Collection, MutableIterable]);
92
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
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, Collection, MutableIterable]);
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, [Collection, MutableIterable, 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
- function close$default(cause, $super) {
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, ReceiveChannel, SendChannel], [1, 0]);
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]);
@@ -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,
@@ -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,
@@ -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)),
@@ -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 = TimePicker | MeasureField | RadioButton | NumberField | TextField | CheckBox | DropdownField | DatePicker | MultipleChoice | DateTimePicker;
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 = FieldsGroup | Field;
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.TextField': return TextField.fromJSON(json, ignoreUnknownKeys);
23
- case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
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.MultipleChoice': return MultipleChoice.fromJSON(json, ignoreUnknownKeys);
27
- case 'com.icure.cardinal.sdk.model.embed.form.template.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
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 = OrPredicate | AndPredicate | AlwaysPredicate | NotPredicate | KeyValuePredicate;
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.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/cardinal-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "main": "cardinal-sdk-ts.mjs",
5
5
  "types": "cardinal-sdk-ts.d.mts",
6
6
  "devDependencies": {