@icure/cardinal-sdk 2.0.0 → 2.1.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.
Files changed (103) hide show
  1. package/api/FormApi.d.mts +2 -1
  2. package/api/FormBasicApi.d.mts +1 -0
  3. package/api/FormBasicInGroupApi.d.mts +1 -0
  4. package/api/FormInGroupApi.d.mts +2 -1
  5. package/api/FormTemplateApi.d.mts +2 -0
  6. package/api.d.mts +0 -8
  7. package/api.mjs +0 -8
  8. package/cardinal-sdk-ts.d.mts +61 -30
  9. package/cardinal-sdk-ts.mjs +39682 -39198
  10. package/cardinal-sdk.mjs +100830 -98348
  11. package/filters/DocumentFilters.d.mts +18 -0
  12. package/filters/DocumentFilters.mjs +7 -1
  13. package/filters/FormTemplateFilters.d.mts +7 -0
  14. package/filters/FormTemplateFilters.mjs +5 -0
  15. package/filters/MessageFilters.d.mts +18 -0
  16. package/filters/MessageFilters.mjs +7 -1
  17. package/filters.d.mts +1 -2
  18. package/filters.mjs +1 -2
  19. package/kotlin-kotlin-stdlib.mjs +4 -4
  20. package/kotlinx-coroutines-core.mjs +1 -1
  21. package/model/CalendarItem.d.mts +22 -0
  22. package/model/CalendarItem.mjs +83 -0
  23. package/model/Code.d.mts +1 -1
  24. package/model/Code.mjs +4 -5
  25. package/model/Device.d.mts +1 -1
  26. package/model/Device.mjs +4 -5
  27. package/model/Group.d.mts +15 -0
  28. package/model/Group.mjs +69 -0
  29. package/model/HealthElement.d.mts +3 -0
  30. package/model/HealthElement.mjs +12 -0
  31. package/model/HealthcareParty.d.mts +2 -2
  32. package/model/HealthcareParty.mjs +7 -9
  33. package/model/Message.d.mts +4 -0
  34. package/model/Message.mjs +11 -0
  35. package/model/Patient.d.mts +3 -2
  36. package/model/Patient.mjs +8 -10
  37. package/model/User.d.mts +2 -0
  38. package/model/User.mjs +12 -0
  39. package/model/base/CryptoActor.mjs +4 -4
  40. package/model/embed/form/template/Field.d.mts +1 -1
  41. package/model/embed/form/template/StructureElement.mjs +5 -5
  42. package/model/filter/predicate/Predicate.d.mts +1 -1
  43. package/model/filter/predicate/Predicate.mjs +1 -1
  44. package/model.d.mts +0 -18
  45. package/model.mjs +0 -18
  46. package/package.json +1 -1
  47. package/sdk/CardinalSdk.d.mts +0 -24
  48. package/api/ApplicationSettingsApi.d.mts +0 -6
  49. package/api/ApplicationSettingsApi.mjs +0 -1
  50. package/api/DocumentTemplateApi.d.mts +0 -22
  51. package/api/DocumentTemplateApi.mjs +0 -1
  52. package/api/EntityReferenceApi.d.mts +0 -5
  53. package/api/EntityReferenceApi.mjs +0 -1
  54. package/api/EntityTemplateApi.d.mts +0 -24
  55. package/api/EntityTemplateApi.mjs +0 -1
  56. package/api/KeywordApi.d.mts +0 -14
  57. package/api/KeywordApi.mjs +0 -1
  58. package/api/MedicalLocationApi.d.mts +0 -17
  59. package/api/MedicalLocationApi.mjs +0 -1
  60. package/api/TarificationApi.d.mts +0 -27
  61. package/api/TarificationApi.mjs +0 -1
  62. package/api/TimeTableApi.d.mts +0 -26
  63. package/api/TimeTableApi.mjs +0 -1
  64. package/filters/MedicalLocationFilters.d.mts +0 -8
  65. package/filters/MedicalLocationFilters.mjs +0 -6
  66. package/filters/TimeTableFilters.d.mts +0 -12
  67. package/filters/TimeTableFilters.mjs +0 -6
  68. package/model/ApplicationSettings.d.mts +0 -87
  69. package/model/ApplicationSettings.mjs +0 -256
  70. package/model/DocumentTemplate.d.mts +0 -35
  71. package/model/DocumentTemplate.mjs +0 -162
  72. package/model/EntityReference.d.mts +0 -10
  73. package/model/EntityReference.mjs +0 -46
  74. package/model/EntityTemplate.d.mts +0 -16
  75. package/model/EntityTemplate.mjs +0 -81
  76. package/model/Keyword.d.mts +0 -23
  77. package/model/Keyword.mjs +0 -99
  78. package/model/ListOfIds.d.mts +0 -6
  79. package/model/ListOfIds.mjs +0 -28
  80. package/model/MedicalLocation.d.mts +0 -28
  81. package/model/MedicalLocation.mjs +0 -116
  82. package/model/Tarification.d.mts +0 -50
  83. package/model/Tarification.mjs +0 -178
  84. package/model/TimeTable.d.mts +0 -25
  85. package/model/TimeTable.mjs +0 -111
  86. package/model/base/AppendixType.d.mts +0 -5
  87. package/model/base/AppendixType.mjs +0 -7
  88. package/model/base/CodeFlag.d.mts +0 -80
  89. package/model/base/CodeFlag.mjs +0 -82
  90. package/model/base/ReportVersion.d.mts +0 -3
  91. package/model/base/ReportVersion.mjs +0 -5
  92. package/model/embed/KeywordSubword.d.mts +0 -8
  93. package/model/embed/KeywordSubword.mjs +0 -35
  94. package/model/embed/LetterValue.d.mts +0 -9
  95. package/model/embed/LetterValue.mjs +0 -47
  96. package/model/embed/Periodicity.d.mts +0 -8
  97. package/model/embed/Periodicity.mjs +0 -36
  98. package/model/embed/TimeTableHour.d.mts +0 -7
  99. package/model/embed/TimeTableHour.mjs +0 -35
  100. package/model/embed/TimeTableItem.d.mts +0 -19
  101. package/model/embed/TimeTableItem.mjs +0 -96
  102. package/model/embed/Valorisation.d.mts +0 -56
  103. package/model/embed/Valorisation.mjs +0 -188
package/model/Group.mjs CHANGED
@@ -26,6 +26,7 @@ export class Group {
26
26
  this.externalJwtConfig = {};
27
27
  this.superGroup = undefined;
28
28
  this.projectId = undefined;
29
+ this.templates = undefined;
29
30
  this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
30
31
  if ('rev' in partial)
31
32
  this.rev = partial.rev;
@@ -60,6 +61,8 @@ export class Group {
60
61
  this.superGroup = partial.superGroup;
61
62
  if ('projectId' in partial)
62
63
  this.projectId = partial.projectId;
64
+ if ('templates' in partial)
65
+ this.templates = partial.templates;
63
66
  }
64
67
  toJSON() {
65
68
  const res = {};
@@ -89,6 +92,8 @@ export class Group {
89
92
  res['superGroup'] = this.superGroup;
90
93
  if (this.projectId != undefined)
91
94
  res['projectId'] = this.projectId;
95
+ if (this.templates != undefined)
96
+ res['templates'] = this.templates.toJSON();
92
97
  return res;
93
98
  }
94
99
  static fromJSON(json, ignoreUnknownKeys = false, path = ['Group']) {
@@ -114,6 +119,7 @@ export class Group {
114
119
  minimumAuthenticationClassForElevatedPrivileges: expectStringEnum(extractEntry(jCpy, 'minimumAuthenticationClassForElevatedPrivileges', true, path), false, [...path, ".minimumAuthenticationClassForElevatedPrivileges"], AuthenticationClass, 'AuthenticationClass'),
115
120
  superGroup: expectString(extractEntry(jCpy, 'superGroup', false, path), true, [...path, ".superGroup"]),
116
121
  projectId: expectString(extractEntry(jCpy, 'projectId', false, path), true, [...path, ".projectId"]),
122
+ templates: expectObject(extractEntry(jCpy, 'templates', false, path), true, ignoreUnknownKeys, [...path, ".templates"], Group.TemplatesConfiguration.fromJSON),
117
123
  });
118
124
  if (!ignoreUnknownKeys) {
119
125
  const unused = Object.keys(jCpy);
@@ -123,3 +129,66 @@ export class Group {
123
129
  return res;
124
130
  }
125
131
  }
132
+ (function (Group) {
133
+ class TemplatesConfiguration {
134
+ constructor(partial) {
135
+ this.emailSender = undefined;
136
+ this.smsSender = undefined;
137
+ this.emailVerificationTemplateId = undefined;
138
+ this.mobilePhoneVerificationTemplateId = undefined;
139
+ this.existingEmailNotificationTemplateId = undefined;
140
+ this.existingMobilePhoneNotificationTemplateId = undefined;
141
+ this.specId = partial.specId;
142
+ if ('emailSender' in partial)
143
+ this.emailSender = partial.emailSender;
144
+ if ('smsSender' in partial)
145
+ this.smsSender = partial.smsSender;
146
+ if ('emailVerificationTemplateId' in partial)
147
+ this.emailVerificationTemplateId = partial.emailVerificationTemplateId;
148
+ if ('mobilePhoneVerificationTemplateId' in partial)
149
+ this.mobilePhoneVerificationTemplateId = partial.mobilePhoneVerificationTemplateId;
150
+ if ('existingEmailNotificationTemplateId' in partial)
151
+ this.existingEmailNotificationTemplateId = partial.existingEmailNotificationTemplateId;
152
+ if ('existingMobilePhoneNotificationTemplateId' in partial)
153
+ this.existingMobilePhoneNotificationTemplateId = partial.existingMobilePhoneNotificationTemplateId;
154
+ }
155
+ toJSON() {
156
+ const res = {};
157
+ res['specId'] = this.specId;
158
+ if (this.emailSender != undefined)
159
+ res['emailSender'] = this.emailSender;
160
+ if (this.smsSender != undefined)
161
+ res['smsSender'] = this.smsSender;
162
+ if (this.emailVerificationTemplateId != undefined)
163
+ res['emailVerificationTemplateId'] = this.emailVerificationTemplateId;
164
+ if (this.mobilePhoneVerificationTemplateId != undefined)
165
+ res['mobilePhoneVerificationTemplateId'] = this.mobilePhoneVerificationTemplateId;
166
+ if (this.existingEmailNotificationTemplateId != undefined)
167
+ res['existingEmailNotificationTemplateId'] = this.existingEmailNotificationTemplateId;
168
+ if (this.existingMobilePhoneNotificationTemplateId != undefined)
169
+ res['existingMobilePhoneNotificationTemplateId'] = this.existingMobilePhoneNotificationTemplateId;
170
+ return res;
171
+ }
172
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['TemplatesConfiguration']) {
173
+ if (typeof json != 'object')
174
+ throw new Error(`Expected json object at path ${path.join("")}`);
175
+ const jCpy = Object.assign({}, json);
176
+ const res = new TemplatesConfiguration({
177
+ specId: expectString(extractEntry(jCpy, 'specId', true, path), false, [...path, ".specId"]),
178
+ emailSender: expectString(extractEntry(jCpy, 'emailSender', false, path), true, [...path, ".emailSender"]),
179
+ smsSender: expectString(extractEntry(jCpy, 'smsSender', false, path), true, [...path, ".smsSender"]),
180
+ emailVerificationTemplateId: expectString(extractEntry(jCpy, 'emailVerificationTemplateId', false, path), true, [...path, ".emailVerificationTemplateId"]),
181
+ mobilePhoneVerificationTemplateId: expectString(extractEntry(jCpy, 'mobilePhoneVerificationTemplateId', false, path), true, [...path, ".mobilePhoneVerificationTemplateId"]),
182
+ existingEmailNotificationTemplateId: expectString(extractEntry(jCpy, 'existingEmailNotificationTemplateId', false, path), true, [...path, ".existingEmailNotificationTemplateId"]),
183
+ existingMobilePhoneNotificationTemplateId: expectString(extractEntry(jCpy, 'existingMobilePhoneNotificationTemplateId', false, path), true, [...path, ".existingMobilePhoneNotificationTemplateId"]),
184
+ });
185
+ if (!ignoreUnknownKeys) {
186
+ const unused = Object.keys(jCpy);
187
+ if (unused.length > 0)
188
+ throw new Error(`Unexpected key(s) for json object TemplatesConfiguration at path ${path.join("")}: ${unused}`);
189
+ }
190
+ return res;
191
+ }
192
+ }
193
+ Group.TemplatesConfiguration = TemplatesConfiguration;
194
+ })(Group || (Group = {}));
@@ -15,6 +15,7 @@ import { SecurityMetadata } from './embed/SecurityMetadata.mjs';
15
15
  import { Base64String } from './specializations/Base64String.mjs';
16
16
  export interface HealthElement extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife {
17
17
  identifiers: Array<Identifier>;
18
+ healthElementId: string | undefined;
18
19
  valueDate: number | undefined;
19
20
  openingDate: number | undefined;
20
21
  closingDate: number | undefined;
@@ -44,6 +45,7 @@ export declare class DecryptedHealthElement {
44
45
  codes: Array<CodeStub>;
45
46
  endOfLife: number | undefined;
46
47
  deletionDate: number | undefined;
48
+ healthElementId: string | undefined;
47
49
  valueDate: number | undefined;
48
50
  openingDate: number | undefined;
49
51
  closingDate: number | undefined;
@@ -87,6 +89,7 @@ export declare class EncryptedHealthElement {
87
89
  codes: Array<CodeStub>;
88
90
  endOfLife: number | undefined;
89
91
  deletionDate: number | undefined;
92
+ healthElementId: string | undefined;
90
93
  valueDate: number | undefined;
91
94
  openingDate: number | undefined;
92
95
  closingDate: number | undefined;
@@ -23,6 +23,7 @@ export class DecryptedHealthElement {
23
23
  this.codes = [];
24
24
  this.endOfLife = undefined;
25
25
  this.deletionDate = undefined;
26
+ this.healthElementId = undefined;
26
27
  this.valueDate = undefined;
27
28
  this.openingDate = undefined;
28
29
  this.closingDate = undefined;
@@ -67,6 +68,8 @@ export class DecryptedHealthElement {
67
68
  this.endOfLife = partial.endOfLife;
68
69
  if ('deletionDate' in partial)
69
70
  this.deletionDate = partial.deletionDate;
71
+ if ('healthElementId' in partial)
72
+ this.healthElementId = partial.healthElementId;
70
73
  if ('valueDate' in partial)
71
74
  this.valueDate = partial.valueDate;
72
75
  if ('openingDate' in partial)
@@ -128,6 +131,8 @@ export class DecryptedHealthElement {
128
131
  res['endOfLife'] = this.endOfLife;
129
132
  if (this.deletionDate != undefined)
130
133
  res['deletionDate'] = this.deletionDate;
134
+ if (this.healthElementId != undefined)
135
+ res['healthElementId'] = this.healthElementId;
131
136
  if (this.valueDate != undefined)
132
137
  res['valueDate'] = this.valueDate;
133
138
  if (this.openingDate != undefined)
@@ -180,6 +185,7 @@ export class DecryptedHealthElement {
180
185
  codes: expectArray(extractEntry(jCpy, 'codes', false, path), false, [...path, ".codes"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
181
186
  endOfLife: expectNumber(extractEntry(jCpy, 'endOfLife', false, path), true, true, [...path, ".endOfLife"]),
182
187
  deletionDate: expectNumber(extractEntry(jCpy, 'deletionDate', false, path), true, true, [...path, ".deletionDate"]),
188
+ healthElementId: expectString(extractEntry(jCpy, 'healthElementId', false, path), true, [...path, ".healthElementId"]),
183
189
  valueDate: expectNumber(extractEntry(jCpy, 'valueDate', false, path), true, true, [...path, ".valueDate"]),
184
190
  openingDate: expectNumber(extractEntry(jCpy, 'openingDate', false, path), true, true, [...path, ".openingDate"]),
185
191
  closingDate: expectNumber(extractEntry(jCpy, 'closingDate', false, path), true, true, [...path, ".closingDate"]),
@@ -222,6 +228,7 @@ export class EncryptedHealthElement {
222
228
  this.codes = [];
223
229
  this.endOfLife = undefined;
224
230
  this.deletionDate = undefined;
231
+ this.healthElementId = undefined;
225
232
  this.valueDate = undefined;
226
233
  this.openingDate = undefined;
227
234
  this.closingDate = undefined;
@@ -266,6 +273,8 @@ export class EncryptedHealthElement {
266
273
  this.endOfLife = partial.endOfLife;
267
274
  if ('deletionDate' in partial)
268
275
  this.deletionDate = partial.deletionDate;
276
+ if ('healthElementId' in partial)
277
+ this.healthElementId = partial.healthElementId;
269
278
  if ('valueDate' in partial)
270
279
  this.valueDate = partial.valueDate;
271
280
  if ('openingDate' in partial)
@@ -327,6 +336,8 @@ export class EncryptedHealthElement {
327
336
  res['endOfLife'] = this.endOfLife;
328
337
  if (this.deletionDate != undefined)
329
338
  res['deletionDate'] = this.deletionDate;
339
+ if (this.healthElementId != undefined)
340
+ res['healthElementId'] = this.healthElementId;
330
341
  if (this.valueDate != undefined)
331
342
  res['valueDate'] = this.valueDate;
332
343
  if (this.openingDate != undefined)
@@ -379,6 +390,7 @@ export class EncryptedHealthElement {
379
390
  codes: expectArray(extractEntry(jCpy, 'codes', false, path), false, [...path, ".codes"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
380
391
  endOfLife: expectNumber(extractEntry(jCpy, 'endOfLife', false, path), true, true, [...path, ".endOfLife"]),
381
392
  deletionDate: expectNumber(extractEntry(jCpy, 'deletionDate', false, path), true, true, [...path, ".deletionDate"]),
393
+ healthElementId: expectString(extractEntry(jCpy, 'healthElementId', false, path), true, [...path, ".healthElementId"]),
382
394
  valueDate: expectNumber(extractEntry(jCpy, 'valueDate', false, path), true, true, [...path, ".valueDate"]),
383
395
  openingDate: expectNumber(extractEntry(jCpy, 'openingDate', false, path), true, true, [...path, ".openingDate"]),
384
396
  closingDate: expectNumber(extractEntry(jCpy, 'closingDate', false, path), true, true, [...path, ".closingDate"]),
@@ -45,11 +45,11 @@ export declare class HealthcareParty implements StoredDocument, Named, Person, C
45
45
  financialInstitutionInformation: Array<DecryptedFinancialInstitutionInformation>;
46
46
  descr: {
47
47
  [key: string]: string;
48
- } | undefined;
48
+ };
49
49
  properties: Array<DecryptedPropertyStub>;
50
50
  public: boolean;
51
51
  publicProperties: Array<DecryptedPropertyStub> | undefined;
52
- cryptoActorProperties: Array<DecryptedPropertyStub> | undefined;
52
+ cryptoActorProperties: Array<DecryptedPropertyStub>;
53
53
  hcPartyKeys: {
54
54
  [key: string]: Array<HexString>;
55
55
  };
@@ -42,7 +42,7 @@ export class HealthcareParty {
42
42
  this.properties = [];
43
43
  this.public = false;
44
44
  this.publicProperties = undefined;
45
- this.cryptoActorProperties = undefined;
45
+ this.cryptoActorProperties = [];
46
46
  this.hcPartyKeys = {};
47
47
  this.aesExchangeKeys = {};
48
48
  this.transferKeys = {};
@@ -105,7 +105,7 @@ export class HealthcareParty {
105
105
  this.notes = partial.notes;
106
106
  if ('financialInstitutionInformation' in partial && partial.financialInstitutionInformation !== undefined)
107
107
  this.financialInstitutionInformation = partial.financialInstitutionInformation;
108
- if ('descr' in partial)
108
+ if ('descr' in partial && partial.descr !== undefined)
109
109
  this.descr = partial.descr;
110
110
  if ('properties' in partial && partial.properties !== undefined)
111
111
  this.properties = partial.properties;
@@ -113,7 +113,7 @@ export class HealthcareParty {
113
113
  this.public = partial.public;
114
114
  if ('publicProperties' in partial)
115
115
  this.publicProperties = partial.publicProperties;
116
- if ('cryptoActorProperties' in partial)
116
+ if ('cryptoActorProperties' in partial && partial.cryptoActorProperties !== undefined)
117
117
  this.cryptoActorProperties = partial.cryptoActorProperties;
118
118
  if ('hcPartyKeys' in partial && partial.hcPartyKeys !== undefined)
119
119
  this.hcPartyKeys = partial.hcPartyKeys;
@@ -177,14 +177,12 @@ export class HealthcareParty {
177
177
  if (this.notes != undefined)
178
178
  res['notes'] = this.notes;
179
179
  res['financialInstitutionInformation'] = this.financialInstitutionInformation.map((x0) => x0.toJSON());
180
- if (this.descr != undefined)
181
- res['descr'] = Object.fromEntries(Object.entries(this.descr).map(([k0, v0]) => [k0, v0]));
180
+ res['descr'] = Object.fromEntries(Object.entries(this.descr).map(([k0, v0]) => [k0, v0]));
182
181
  res['properties'] = this.properties.map((x0) => x0.toJSON());
183
182
  res['public'] = this.public;
184
183
  if (this.publicProperties != undefined)
185
184
  res['publicProperties'] = this.publicProperties.map((x0) => x0.toJSON());
186
- if (this.cryptoActorProperties != undefined)
187
- res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
185
+ res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
188
186
  res['hcPartyKeys'] = Object.fromEntries(Object.entries(this.hcPartyKeys).map(([k0, v0]) => [k0, v0.map((x1) => x1)]));
189
187
  res['aesExchangeKeys'] = Object.fromEntries(Object.entries(this.aesExchangeKeys).map(([k0, v0]) => [k0, Object.fromEntries(Object.entries(v0).map(([k1, v1]) => [k1, Object.fromEntries(Object.entries(v1).map(([k2, v2]) => [k2, v2]))]))]));
190
188
  res['transferKeys'] = Object.fromEntries(Object.entries(this.transferKeys).map(([k0, v0]) => [k0, Object.fromEntries(Object.entries(v0).map(([k1, v1]) => [k1, v1]))]));
@@ -230,11 +228,11 @@ export class HealthcareParty {
230
228
  specialityCodes: expectArray(extractEntry(jCpy, 'specialityCodes', false, path), false, [...path, ".specialityCodes"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
231
229
  notes: expectString(extractEntry(jCpy, 'notes', false, path), true, [...path, ".notes"]),
232
230
  financialInstitutionInformation: expectArray(extractEntry(jCpy, 'financialInstitutionInformation', false, path), false, [...path, ".financialInstitutionInformation"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedFinancialInstitutionInformation.fromJSON)),
233
- descr: expectMap(extractEntry(jCpy, 'descr', false, path), true, [...path, ".descr"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
231
+ descr: expectMap(extractEntry(jCpy, 'descr', false, path), false, [...path, ".descr"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
234
232
  properties: expectArray(extractEntry(jCpy, 'properties', false, path), false, [...path, ".properties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
235
233
  public: expectBoolean(extractEntry(jCpy, 'public', false, path), false, [...path, ".public"]),
236
234
  publicProperties: expectArray(extractEntry(jCpy, 'publicProperties', false, path), true, [...path, ".publicProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
237
- cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), true, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
235
+ cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), false, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
238
236
  hcPartyKeys: expectMap(extractEntry(jCpy, 'hcPartyKeys', false, path), false, [...path, ".hcPartyKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectString(x1, false, p1))),
239
237
  aesExchangeKeys: expectMap(extractEntry(jCpy, 'aesExchangeKeys', false, path), false, [...path, ".aesExchangeKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectMap(v0, false, p0, (k1, p1) => expectString(k1, false, p1), (v1, p1) => expectMap(v1, false, p1, (k2, p2) => expectString(k2, false, p2), (v2, p2) => expectString(v2, false, p2)))),
240
238
  transferKeys: expectMap(extractEntry(jCpy, 'transferKeys', false, path), false, [...path, ".transferKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectMap(v0, false, p0, (k1, p1) => expectString(k1, false, p1), (v1, p1) => expectString(v1, false, p1))),
@@ -1,3 +1,4 @@
1
+ import { DecryptedPropertyStub, EncryptedPropertyStub, PropertyStub } from './PropertyStub.mjs';
1
2
  import { CodeStub } from './base/CodeStub.mjs';
2
3
  import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
3
4
  import { ICureDocument } from './base/ICureDocument.mjs';
@@ -26,6 +27,7 @@ export interface Message extends StoredDocument, ICureDocument<string>, HasEncry
26
27
  subject: string | undefined;
27
28
  invoiceIds: Array<string>;
28
29
  parentId: string | undefined;
30
+ properties: Array<PropertyStub>;
29
31
  readonly isEncrypted: boolean;
30
32
  toJSON(): object;
31
33
  }
@@ -57,6 +59,7 @@ export declare class DecryptedMessage {
57
59
  subject: string | undefined;
58
60
  invoiceIds: Array<string>;
59
61
  parentId: string | undefined;
62
+ properties: Array<DecryptedPropertyStub>;
60
63
  secretForeignKeys: Array<string>;
61
64
  cryptedForeignKeys: {
62
65
  [key: string]: Array<Delegation>;
@@ -102,6 +105,7 @@ export declare class EncryptedMessage {
102
105
  subject: string | undefined;
103
106
  invoiceIds: Array<string>;
104
107
  parentId: string | undefined;
108
+ properties: Array<EncryptedPropertyStub>;
105
109
  secretForeignKeys: Array<string>;
106
110
  cryptedForeignKeys: {
107
111
  [key: string]: Array<Delegation>;
package/model/Message.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  // auto-generated file
2
2
  import { expectArray, expectMap, expectNumber, expectObject, expectString, extractEntry } from '../internal/JsonDecodeUtils.mjs';
3
3
  import { randomUuid } from '../utils/Id.mjs';
4
+ import { DecryptedPropertyStub, EncryptedPropertyStub } from './PropertyStub.mjs';
4
5
  import { CodeStub } from './base/CodeStub.mjs';
5
6
  import { Delegation } from './embed/Delegation.mjs';
6
7
  import { MessageReadStatus } from './embed/MessageReadStatus.mjs';
@@ -30,6 +31,7 @@ export class DecryptedMessage {
30
31
  this.subject = undefined;
31
32
  this.invoiceIds = [];
32
33
  this.parentId = undefined;
34
+ this.properties = [];
33
35
  this.secretForeignKeys = [];
34
36
  this.cryptedForeignKeys = {};
35
37
  this.delegations = {};
@@ -84,6 +86,8 @@ export class DecryptedMessage {
84
86
  this.invoiceIds = partial.invoiceIds;
85
87
  if ('parentId' in partial)
86
88
  this.parentId = partial.parentId;
89
+ if ('properties' in partial && partial.properties !== undefined)
90
+ this.properties = partial.properties;
87
91
  if ('secretForeignKeys' in partial && partial.secretForeignKeys !== undefined)
88
92
  this.secretForeignKeys = partial.secretForeignKeys;
89
93
  if ('cryptedForeignKeys' in partial && partial.cryptedForeignKeys !== undefined)
@@ -137,6 +141,7 @@ export class DecryptedMessage {
137
141
  res['invoiceIds'] = this.invoiceIds.map((x0) => x0);
138
142
  if (this.parentId != undefined)
139
143
  res['parentId'] = this.parentId;
144
+ res['properties'] = this.properties.map((x0) => x0.toJSON());
140
145
  res['secretForeignKeys'] = this.secretForeignKeys.map((x0) => x0);
141
146
  res['cryptedForeignKeys'] = Object.fromEntries(Object.entries(this.cryptedForeignKeys).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
142
147
  res['delegations'] = Object.fromEntries(Object.entries(this.delegations).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
@@ -178,6 +183,7 @@ export class DecryptedMessage {
178
183
  subject: expectString(extractEntry(jCpy, 'subject', false, path), true, [...path, ".subject"]),
179
184
  invoiceIds: expectArray(extractEntry(jCpy, 'invoiceIds', false, path), false, [...path, ".invoiceIds"], (x0, p0) => expectString(x0, false, p0)),
180
185
  parentId: expectString(extractEntry(jCpy, 'parentId', false, path), true, [...path, ".parentId"]),
186
+ properties: expectArray(extractEntry(jCpy, 'properties', false, path), false, [...path, ".properties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
181
187
  secretForeignKeys: expectArray(extractEntry(jCpy, 'secretForeignKeys', false, path), false, [...path, ".secretForeignKeys"], (x0, p0) => expectString(x0, false, p0)),
182
188
  cryptedForeignKeys: expectMap(extractEntry(jCpy, 'cryptedForeignKeys', false, path), false, [...path, ".cryptedForeignKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
183
189
  delegations: expectMap(extractEntry(jCpy, 'delegations', false, path), false, [...path, ".delegations"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
@@ -218,6 +224,7 @@ export class EncryptedMessage {
218
224
  this.subject = undefined;
219
225
  this.invoiceIds = [];
220
226
  this.parentId = undefined;
227
+ this.properties = [];
221
228
  this.secretForeignKeys = [];
222
229
  this.cryptedForeignKeys = {};
223
230
  this.delegations = {};
@@ -272,6 +279,8 @@ export class EncryptedMessage {
272
279
  this.invoiceIds = partial.invoiceIds;
273
280
  if ('parentId' in partial)
274
281
  this.parentId = partial.parentId;
282
+ if ('properties' in partial && partial.properties !== undefined)
283
+ this.properties = partial.properties;
275
284
  if ('secretForeignKeys' in partial && partial.secretForeignKeys !== undefined)
276
285
  this.secretForeignKeys = partial.secretForeignKeys;
277
286
  if ('cryptedForeignKeys' in partial && partial.cryptedForeignKeys !== undefined)
@@ -325,6 +334,7 @@ export class EncryptedMessage {
325
334
  res['invoiceIds'] = this.invoiceIds.map((x0) => x0);
326
335
  if (this.parentId != undefined)
327
336
  res['parentId'] = this.parentId;
337
+ res['properties'] = this.properties.map((x0) => x0.toJSON());
328
338
  res['secretForeignKeys'] = this.secretForeignKeys.map((x0) => x0);
329
339
  res['cryptedForeignKeys'] = Object.fromEntries(Object.entries(this.cryptedForeignKeys).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
330
340
  res['delegations'] = Object.fromEntries(Object.entries(this.delegations).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
@@ -366,6 +376,7 @@ export class EncryptedMessage {
366
376
  subject: expectString(extractEntry(jCpy, 'subject', false, path), true, [...path, ".subject"]),
367
377
  invoiceIds: expectArray(extractEntry(jCpy, 'invoiceIds', false, path), false, [...path, ".invoiceIds"], (x0, p0) => expectString(x0, false, p0)),
368
378
  parentId: expectString(extractEntry(jCpy, 'parentId', false, path), true, [...path, ".parentId"]),
379
+ properties: expectArray(extractEntry(jCpy, 'properties', false, path), false, [...path, ".properties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedPropertyStub.fromJSON)),
369
380
  secretForeignKeys: expectArray(extractEntry(jCpy, 'secretForeignKeys', false, path), false, [...path, ".secretForeignKeys"], (x0, p0) => expectString(x0, false, p0)),
370
381
  cryptedForeignKeys: expectMap(extractEntry(jCpy, 'cryptedForeignKeys', false, path), false, [...path, ".cryptedForeignKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
371
382
  delegations: expectMap(extractEntry(jCpy, 'delegations', false, path), false, [...path, ".delegations"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
@@ -61,6 +61,7 @@ export interface Patient extends StoredDocument, ICureDocument<string>, Person,
61
61
  [key: string]: Array<string>;
62
62
  };
63
63
  properties: Array<PropertyStub>;
64
+ cryptoActorProperties: Array<DecryptedPropertyStub>;
64
65
  parentId: undefined;
65
66
  readonly isEncrypted: boolean;
66
67
  toJSON(): object;
@@ -153,7 +154,7 @@ export declare class DecryptedPatient {
153
154
  };
154
155
  encryptedSelf: Base64String | undefined;
155
156
  securityMetadata: SecurityMetadata | undefined;
156
- cryptoActorProperties: Array<DecryptedPropertyStub> | undefined;
157
+ cryptoActorProperties: Array<DecryptedPropertyStub>;
157
158
  parentId: undefined;
158
159
  readonly isEncrypted: false;
159
160
  readonly $ktClass: 'com.icure.cardinal.sdk.model.DecryptedPatient';
@@ -249,7 +250,7 @@ export declare class EncryptedPatient {
249
250
  };
250
251
  encryptedSelf: Base64String | undefined;
251
252
  securityMetadata: SecurityMetadata | undefined;
252
- cryptoActorProperties: Array<DecryptedPropertyStub> | undefined;
253
+ cryptoActorProperties: Array<DecryptedPropertyStub>;
253
254
  parentId: undefined;
254
255
  readonly isEncrypted: true;
255
256
  readonly $ktClass: 'com.icure.cardinal.sdk.model.EncryptedPatient';
package/model/Patient.mjs CHANGED
@@ -83,7 +83,7 @@ export class DecryptedPatient {
83
83
  this.encryptionKeys = {};
84
84
  this.encryptedSelf = undefined;
85
85
  this.securityMetadata = undefined;
86
- this.cryptoActorProperties = undefined;
86
+ this.cryptoActorProperties = [];
87
87
  this.parentId = undefined;
88
88
  this.isEncrypted = false;
89
89
  this.$ktClass = 'com.icure.cardinal.sdk.model.DecryptedPatient';
@@ -218,7 +218,7 @@ export class DecryptedPatient {
218
218
  this.encryptedSelf = partial.encryptedSelf;
219
219
  if ('securityMetadata' in partial)
220
220
  this.securityMetadata = partial.securityMetadata;
221
- if ('cryptoActorProperties' in partial)
221
+ if ('cryptoActorProperties' in partial && partial.cryptoActorProperties !== undefined)
222
222
  this.cryptoActorProperties = partial.cryptoActorProperties;
223
223
  if ('parentId' in partial)
224
224
  this.parentId = partial.parentId;
@@ -327,8 +327,7 @@ export class DecryptedPatient {
327
327
  res['encryptedSelf'] = this.encryptedSelf;
328
328
  if (this.securityMetadata != undefined)
329
329
  res['securityMetadata'] = this.securityMetadata.toJSON();
330
- if (this.cryptoActorProperties != undefined)
331
- res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
330
+ res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
332
331
  if (this.parentId != undefined)
333
332
  throw new Error('Unexpected nullish value for parentId');
334
333
  res['isEncrypted'] = false;
@@ -409,7 +408,7 @@ export class DecryptedPatient {
409
408
  encryptionKeys: expectMap(extractEntry(jCpy, 'encryptionKeys', false, path), false, [...path, ".encryptionKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
410
409
  encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
411
410
  securityMetadata: expectObject(extractEntry(jCpy, 'securityMetadata', false, path), true, ignoreUnknownKeys, [...path, ".securityMetadata"], SecurityMetadata.fromJSON),
412
- cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), true, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
411
+ cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), false, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
413
412
  parentId: expectNullish(extractEntry(jCpy, 'parentId', false, path), [...path, ".parentId"]),
414
413
  });
415
414
  if (!ignoreUnknownKeys) {
@@ -487,7 +486,7 @@ export class EncryptedPatient {
487
486
  this.encryptionKeys = {};
488
487
  this.encryptedSelf = undefined;
489
488
  this.securityMetadata = undefined;
490
- this.cryptoActorProperties = undefined;
489
+ this.cryptoActorProperties = [];
491
490
  this.parentId = undefined;
492
491
  this.isEncrypted = true;
493
492
  this.$ktClass = 'com.icure.cardinal.sdk.model.EncryptedPatient';
@@ -622,7 +621,7 @@ export class EncryptedPatient {
622
621
  this.encryptedSelf = partial.encryptedSelf;
623
622
  if ('securityMetadata' in partial)
624
623
  this.securityMetadata = partial.securityMetadata;
625
- if ('cryptoActorProperties' in partial)
624
+ if ('cryptoActorProperties' in partial && partial.cryptoActorProperties !== undefined)
626
625
  this.cryptoActorProperties = partial.cryptoActorProperties;
627
626
  if ('parentId' in partial)
628
627
  this.parentId = partial.parentId;
@@ -731,8 +730,7 @@ export class EncryptedPatient {
731
730
  res['encryptedSelf'] = this.encryptedSelf;
732
731
  if (this.securityMetadata != undefined)
733
732
  res['securityMetadata'] = this.securityMetadata.toJSON();
734
- if (this.cryptoActorProperties != undefined)
735
- res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
733
+ res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
736
734
  if (this.parentId != undefined)
737
735
  throw new Error('Unexpected nullish value for parentId');
738
736
  res['isEncrypted'] = true;
@@ -813,7 +811,7 @@ export class EncryptedPatient {
813
811
  encryptionKeys: expectMap(extractEntry(jCpy, 'encryptionKeys', false, path), false, [...path, ".encryptionKeys"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectArray(v0, false, p0, (x1, p1) => expectObject(x1, false, ignoreUnknownKeys, p1, Delegation.fromJSON))),
814
812
  encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
815
813
  securityMetadata: expectObject(extractEntry(jCpy, 'securityMetadata', false, path), true, ignoreUnknownKeys, [...path, ".securityMetadata"], SecurityMetadata.fromJSON),
816
- cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), true, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
814
+ cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), false, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
817
815
  parentId: expectNullish(extractEntry(jCpy, 'parentId', false, path), [...path, ".parentId"]),
818
816
  });
819
817
  if (!ignoreUnknownKeys) {
package/model/User.d.mts CHANGED
@@ -43,6 +43,8 @@ export declare namespace User {
43
43
  isAdmin: boolean;
44
44
  inheritsRoles: boolean;
45
45
  loginIdentifiers: Array<LoginIdentifier>;
46
+ verifiedEmail: boolean | undefined;
47
+ verifiedMobilePhone: boolean | undefined;
46
48
  constructor(partial: Partial<SystemMetadata> & Pick<SystemMetadata, "roles" | "isAdmin" | "inheritsRoles">);
47
49
  toJSON(): object;
48
50
  static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): SystemMetadata;
package/model/User.mjs CHANGED
@@ -157,11 +157,17 @@ export class User {
157
157
  class SystemMetadata {
158
158
  constructor(partial) {
159
159
  this.loginIdentifiers = [];
160
+ this.verifiedEmail = undefined;
161
+ this.verifiedMobilePhone = undefined;
160
162
  this.roles = partial.roles;
161
163
  this.isAdmin = partial.isAdmin;
162
164
  this.inheritsRoles = partial.inheritsRoles;
163
165
  if ('loginIdentifiers' in partial && partial.loginIdentifiers !== undefined)
164
166
  this.loginIdentifiers = partial.loginIdentifiers;
167
+ if ('verifiedEmail' in partial)
168
+ this.verifiedEmail = partial.verifiedEmail;
169
+ if ('verifiedMobilePhone' in partial)
170
+ this.verifiedMobilePhone = partial.verifiedMobilePhone;
165
171
  }
166
172
  toJSON() {
167
173
  const res = {};
@@ -169,6 +175,10 @@ export class User {
169
175
  res['isAdmin'] = this.isAdmin;
170
176
  res['inheritsRoles'] = this.inheritsRoles;
171
177
  res['loginIdentifiers'] = this.loginIdentifiers.map((x0) => x0.toJSON());
178
+ if (this.verifiedEmail != undefined)
179
+ res['verifiedEmail'] = this.verifiedEmail;
180
+ if (this.verifiedMobilePhone != undefined)
181
+ res['verifiedMobilePhone'] = this.verifiedMobilePhone;
172
182
  return res;
173
183
  }
174
184
  static fromJSON(json, ignoreUnknownKeys = false, path = ['SystemMetadata']) {
@@ -180,6 +190,8 @@ export class User {
180
190
  isAdmin: expectBoolean(extractEntry(jCpy, 'isAdmin', true, path), false, [...path, ".isAdmin"]),
181
191
  inheritsRoles: expectBoolean(extractEntry(jCpy, 'inheritsRoles', true, path), false, [...path, ".inheritsRoles"]),
182
192
  loginIdentifiers: expectArray(extractEntry(jCpy, 'loginIdentifiers', false, path), false, [...path, ".loginIdentifiers"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, LoginIdentifier.fromJSON)),
193
+ verifiedEmail: expectBoolean(extractEntry(jCpy, 'verifiedEmail', false, path), true, [...path, ".verifiedEmail"]),
194
+ verifiedMobilePhone: expectBoolean(extractEntry(jCpy, 'verifiedMobilePhone', false, path), true, [...path, ".verifiedMobilePhone"]),
183
195
  });
184
196
  if (!ignoreUnknownKeys) {
185
197
  const unused = Object.keys(jCpy);
@@ -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.Device': return Device.fromJSON(json, ignoreUnknownKeys);
11
- case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
12
- case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
13
- case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
14
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);
12
+ case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
13
+ 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
  }
@@ -8,4 +8,4 @@ import { NumberField } from './NumberField.mjs';
8
8
  import { RadioButton } from './RadioButton.mjs';
9
9
  import { TextField } from './TextField.mjs';
10
10
  import { TimePicker } from './TimePicker.mjs';
11
- export type Field = MeasureField | DatePicker | TimePicker | DropdownField | RadioButton | DateTimePicker | TextField | CheckBox | MultipleChoice | NumberField;
11
+ export type Field = RadioButton | MeasureField | TimePicker | NumberField | TextField | DateTimePicker | CheckBox | DatePicker | DropdownField | MultipleChoice;
@@ -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);
18
19
  case 'com.icure.cardinal.sdk.model.embed.form.template.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
19
- case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
20
20
  case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
21
- case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
22
- case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
23
- 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.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
24
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);
25
24
  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
+ case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
26
27
  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.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
28
28
  default: throw new Error('Unexpected discriminator for StructureElement: ' + json.$ktClass);
29
29
  }
30
30
  }
@@ -3,7 +3,7 @@ import { AndPredicate } from './AndPredicate.mjs';
3
3
  import { KeyValuePredicate } from './KeyValuePredicate.mjs';
4
4
  import { NotPredicate } from './NotPredicate.mjs';
5
5
  import { OrPredicate } from './OrPredicate.mjs';
6
- export type Predicate = KeyValuePredicate | AndPredicate | NotPredicate | OrPredicate | AlwaysPredicate;
6
+ export type Predicate = AndPredicate | NotPredicate | OrPredicate | AlwaysPredicate | KeyValuePredicate;
7
7
  export declare namespace Predicate {
8
8
  function fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Predicate;
9
9
  }
@@ -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
11
  case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
13
12
  case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
14
13
  case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
15
14
  case 'com.icure.cardinal.sdk.model.filter.predicate.AlwaysPredicate': return AlwaysPredicate.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
  }