@icure/cardinal-sdk 2.1.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/GroupApi.d.mts +0 -2
- package/api/RecoveryApi.d.mts +37 -6
- package/api/UserApi.d.mts +47 -0
- package/api/UserInGroupApi.d.mts +23 -0
- package/cardinal-sdk-ts.mjs +39529 -39002
- package/cardinal-sdk.mjs +69123 -67747
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlinx-coroutines-core.mjs +1 -1
- package/model/base/CryptoActor.mjs +3 -3
- package/model/embed/AddressType.d.mts +0 -5
- package/model/embed/AddressType.mjs +0 -5
- package/model/embed/PatientHealthCareParty.d.mts +0 -15
- package/model/embed/PatientHealthCareParty.mjs +0 -10
- package/model/embed/Service.d.mts +3 -0
- package/model/embed/Service.mjs +12 -0
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +4 -4
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +2 -2
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -48,6 +48,12 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
+
position = position || 0;
|
|
54
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
+
}});
|
|
56
|
+
}
|
|
51
57
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
52
58
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
53
59
|
var subjectString = this.toString();
|
|
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
59
65
|
return lastIndex !== -1 && lastIndex === position;
|
|
60
66
|
}});
|
|
61
67
|
}
|
|
62
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
-
position = position || 0;
|
|
65
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
-
}});
|
|
67
|
-
}
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: imports
|
|
70
70
|
var imul_0 = Math.imul;
|
|
@@ -294,7 +294,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
|
|
|
294
294
|
initMetadataForClass(Symbol, 'Symbol');
|
|
295
295
|
initMetadataForInterface(SelectInstance, 'SelectInstance');
|
|
296
296
|
initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
297
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
297
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
|
|
298
298
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
299
299
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
300
300
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
|
@@ -7,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.
|
|
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
|
}
|
|
@@ -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;
|
package/model/embed/Service.mjs
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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
|
}
|