@icure/cardinal-sdk 2.1.3 → 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.
@@ -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,
@@ -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)),
@@ -7,11 +7,11 @@ 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.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
10
+ case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
12
11
  case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
12
+ case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
13
+ case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
13
14
  case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
14
- case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
15
15
  default: throw new Error('Unexpected discriminator for CryptoActor: ' + json.$ktClass);
16
16
  }
17
17
  }
@@ -1,8 +1,3 @@
1
- /**
2
- *
3
- *
4
- * Created by aduchate on 21/01/13, 14:53
5
- */
6
1
  export declare enum AddressType {
7
2
  Home = "Home",
8
3
  Work = "Work",
@@ -1,9 +1,4 @@
1
1
  // auto-generated file
2
- /**
3
- *
4
- *
5
- * Created by aduchate on 21/01/13, 14:53
6
- */
7
2
  export var AddressType;
8
3
  (function (AddressType) {
9
4
  AddressType["Home"] = "Home";
@@ -4,11 +4,6 @@ import { Encryptable } from './Encryptable.mjs';
4
4
  import { PatientHealthCarePartyType } from './PatientHealthCarePartyType.mjs';
5
5
  import { ReferralPeriod } from './ReferralPeriod.mjs';
6
6
  import { TelecomType } from './TelecomType.mjs';
7
- /**
8
- *
9
- *
10
- * Created by aduchate on 02/07/13, 11:59
11
- */
12
7
  export interface PatientHealthCareParty extends Encryptable {
13
8
  type: PatientHealthCarePartyType | undefined;
14
9
  healthcarePartyId: string | undefined;
@@ -20,11 +15,6 @@ export interface PatientHealthCareParty extends Encryptable {
20
15
  readonly isEncrypted: boolean;
21
16
  toJSON(): object;
22
17
  }
23
- /**
24
- *
25
- *
26
- * Created by aduchate on 02/07/13, 11:59
27
- */
28
18
  export declare class DecryptedPatientHealthCareParty {
29
19
  type: PatientHealthCarePartyType | undefined;
30
20
  healthcarePartyId: string | undefined;
@@ -39,11 +29,6 @@ export declare class DecryptedPatientHealthCareParty {
39
29
  toJSON(): object;
40
30
  static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedPatientHealthCareParty;
41
31
  }
42
- /**
43
- *
44
- *
45
- * Created by aduchate on 02/07/13, 11:59
46
- */
47
32
  export declare class EncryptedPatientHealthCareParty {
48
33
  type: PatientHealthCarePartyType | undefined;
49
34
  healthcarePartyId: string | undefined;
@@ -4,11 +4,6 @@ import { DecryptedPropertyStub, EncryptedPropertyStub } from '../PropertyStub.mj
4
4
  import { PatientHealthCarePartyType } from './PatientHealthCarePartyType.mjs';
5
5
  import { ReferralPeriod } from './ReferralPeriod.mjs';
6
6
  import { TelecomType } from './TelecomType.mjs';
7
- /**
8
- *
9
- *
10
- * Created by aduchate on 02/07/13, 11:59
11
- */
12
7
  export class DecryptedPatientHealthCareParty {
13
8
  constructor(partial) {
14
9
  this.type = undefined;
@@ -70,11 +65,6 @@ export class DecryptedPatientHealthCareParty {
70
65
  return res;
71
66
  }
72
67
  }
73
- /**
74
- *
75
- *
76
- * Created by aduchate on 02/07/13, 11:59
77
- */
78
68
  export class EncryptedPatientHealthCareParty {
79
69
  constructor(partial) {
80
70
  this.type = undefined;
@@ -12,6 +12,7 @@ import { SecurityMetadata } from './SecurityMetadata.mjs';
12
12
  export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLife {
13
13
  transactionId: string | undefined;
14
14
  identifier: Array<Identifier>;
15
+ contactId: string | undefined;
15
16
  subContactIds: Array<string> | undefined;
16
17
  plansOfActionIds: Array<string> | undefined;
17
18
  healthElementsIds: Array<string> | undefined;
@@ -53,6 +54,7 @@ export declare class DecryptedService {
53
54
  id: string;
54
55
  transactionId: string | undefined;
55
56
  identifier: Array<Identifier>;
57
+ contactId: string | undefined;
56
58
  subContactIds: Array<string> | undefined;
57
59
  plansOfActionIds: Array<string> | undefined;
58
60
  healthElementsIds: Array<string> | undefined;
@@ -104,6 +106,7 @@ export declare class EncryptedService {
104
106
  id: string;
105
107
  transactionId: string | undefined;
106
108
  identifier: Array<Identifier>;
109
+ contactId: string | undefined;
107
110
  subContactIds: Array<string> | undefined;
108
111
  plansOfActionIds: Array<string> | undefined;
109
112
  healthElementsIds: Array<string> | undefined;
@@ -13,6 +13,7 @@ export class DecryptedService {
13
13
  var _a;
14
14
  this.transactionId = undefined;
15
15
  this.identifier = [];
16
+ this.contactId = undefined;
16
17
  this.subContactIds = undefined;
17
18
  this.plansOfActionIds = undefined;
18
19
  this.healthElementsIds = undefined;
@@ -49,6 +50,8 @@ export class DecryptedService {
49
50
  this.transactionId = partial.transactionId;
50
51
  if ('identifier' in partial && partial.identifier !== undefined)
51
52
  this.identifier = partial.identifier;
53
+ if ('contactId' in partial)
54
+ this.contactId = partial.contactId;
52
55
  if ('subContactIds' in partial)
53
56
  this.subContactIds = partial.subContactIds;
54
57
  if ('plansOfActionIds' in partial)
@@ -112,6 +115,8 @@ export class DecryptedService {
112
115
  if (this.transactionId != undefined)
113
116
  res['transactionId'] = this.transactionId;
114
117
  res['identifier'] = this.identifier.map((x0) => x0.toJSON());
118
+ if (this.contactId != undefined)
119
+ res['contactId'] = this.contactId;
115
120
  if (this.subContactIds != undefined)
116
121
  res['subContactIds'] = this.subContactIds.map((x0) => x0);
117
122
  if (this.plansOfActionIds != undefined)
@@ -171,6 +176,7 @@ export class DecryptedService {
171
176
  id: expectString(extractEntry(jCpy, 'id', true, path), false, [...path, ".id"]),
172
177
  transactionId: expectString(extractEntry(jCpy, 'transactionId', false, path), true, [...path, ".transactionId"]),
173
178
  identifier: expectArray(extractEntry(jCpy, 'identifier', false, path), false, [...path, ".identifier"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, Identifier.fromJSON)),
179
+ contactId: expectString(extractEntry(jCpy, 'contactId', false, path), true, [...path, ".contactId"]),
174
180
  subContactIds: expectArray(extractEntry(jCpy, 'subContactIds', false, path), true, [...path, ".subContactIds"], (x0, p0) => expectString(x0, false, p0)),
175
181
  plansOfActionIds: expectArray(extractEntry(jCpy, 'plansOfActionIds', false, path), true, [...path, ".plansOfActionIds"], (x0, p0) => expectString(x0, false, p0)),
176
182
  healthElementsIds: expectArray(extractEntry(jCpy, 'healthElementsIds', false, path), true, [...path, ".healthElementsIds"], (x0, p0) => expectString(x0, false, p0)),
@@ -213,6 +219,7 @@ export class EncryptedService {
213
219
  var _a;
214
220
  this.transactionId = undefined;
215
221
  this.identifier = [];
222
+ this.contactId = undefined;
216
223
  this.subContactIds = undefined;
217
224
  this.plansOfActionIds = undefined;
218
225
  this.healthElementsIds = undefined;
@@ -249,6 +256,8 @@ export class EncryptedService {
249
256
  this.transactionId = partial.transactionId;
250
257
  if ('identifier' in partial && partial.identifier !== undefined)
251
258
  this.identifier = partial.identifier;
259
+ if ('contactId' in partial)
260
+ this.contactId = partial.contactId;
252
261
  if ('subContactIds' in partial)
253
262
  this.subContactIds = partial.subContactIds;
254
263
  if ('plansOfActionIds' in partial)
@@ -312,6 +321,8 @@ export class EncryptedService {
312
321
  if (this.transactionId != undefined)
313
322
  res['transactionId'] = this.transactionId;
314
323
  res['identifier'] = this.identifier.map((x0) => x0.toJSON());
324
+ if (this.contactId != undefined)
325
+ res['contactId'] = this.contactId;
315
326
  if (this.subContactIds != undefined)
316
327
  res['subContactIds'] = this.subContactIds.map((x0) => x0);
317
328
  if (this.plansOfActionIds != undefined)
@@ -371,6 +382,7 @@ export class EncryptedService {
371
382
  id: expectString(extractEntry(jCpy, 'id', true, path), false, [...path, ".id"]),
372
383
  transactionId: expectString(extractEntry(jCpy, 'transactionId', false, path), true, [...path, ".transactionId"]),
373
384
  identifier: expectArray(extractEntry(jCpy, 'identifier', false, path), false, [...path, ".identifier"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, Identifier.fromJSON)),
385
+ contactId: expectString(extractEntry(jCpy, 'contactId', false, path), true, [...path, ".contactId"]),
374
386
  subContactIds: expectArray(extractEntry(jCpy, 'subContactIds', false, path), true, [...path, ".subContactIds"], (x0, p0) => expectString(x0, false, p0)),
375
387
  plansOfActionIds: expectArray(extractEntry(jCpy, 'plansOfActionIds', false, path), true, [...path, ".plansOfActionIds"], (x0, p0) => expectString(x0, false, p0)),
376
388
  healthElementsIds: expectArray(extractEntry(jCpy, 'healthElementsIds', false, path), true, [...path, ".healthElementsIds"], (x0, p0) => expectString(x0, false, p0)),
@@ -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 = RadioButton | MeasureField | TimePicker | NumberField | TextField | DateTimePicker | CheckBox | DatePicker | DropdownField | MultipleChoice;
20
+ export type Field = TimePicker | MeasureField | RadioButton | NumberField | TextField | CheckBox | DropdownField | DatePicker | MultipleChoice | DateTimePicker;
@@ -15,16 +15,16 @@ export var StructureElement;
15
15
  function fromJSON(json, ignoreUnknownKeys = false, path = ['StructureElement']) {
16
16
  switch (json.$ktClass) {
17
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.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
19
- case 'com.icure.cardinal.sdk.model.embed.form.template.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
20
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
+ case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
21
21
  case 'com.icure.cardinal.sdk.model.embed.form.template.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
22
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.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
24
23
  case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
25
- case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
26
24
  case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
25
+ case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
27
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);
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 = AndPredicate | NotPredicate | OrPredicate | AlwaysPredicate | KeyValuePredicate;
12
+ export type Predicate = OrPredicate | AndPredicate | AlwaysPredicate | NotPredicate | KeyValuePredicate;
13
13
  export declare namespace Predicate {
14
14
  function fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Predicate;
15
15
  }
@@ -8,10 +8,10 @@ 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.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
12
- case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
13
11
  case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
12
+ case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
14
13
  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
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/cardinal-sdk",
3
- "version": "2.1.3",
3
+ "version": "2.3.1",
4
4
  "main": "cardinal-sdk-ts.mjs",
5
5
  "types": "cardinal-sdk-ts.d.mts",
6
6
  "devDependencies": {