@icure/cardinal-sdk 2.6.1 → 2.8.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/CalendarItemBasicApi.d.mts +36 -0
- package/api/CalendarItemBasicInGroupApi.d.mts +16 -0
- package/api/FilterApi.d.mts +6 -0
- package/api/FilterApi.mjs +1 -0
- package/api.d.mts +1 -0
- package/api.mjs +1 -0
- package/cardinal-sdk-ts.d.mts +1 -1
- package/cardinal-sdk-ts.mjs +40387 -39924
- package/cardinal-sdk.mjs +83203 -82225
- package/filters/MessageFilters.d.mts +1 -1
- package/filters/MessageFilters.mjs +1 -1
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/CalendarItemOccupancy.d.mts +25 -0
- package/model/CalendarItemOccupancy.mjs +39 -0
- package/model/Document.d.mts +12 -0
- package/model/Document.mjs +8 -0
- package/model/Group.d.mts +19 -3
- package/model/Group.mjs +28 -3
- package/model/HealthElement.d.mts +12 -12
- package/model/HealthElement.mjs +8 -8
- package/model/Receipt.d.mts +24 -0
- package/model/Receipt.mjs +16 -0
- package/model/User.d.mts +3 -3
- package/model/User.mjs +3 -3
- package/model/base/CodeStub.d.mts +3 -3
- package/model/base/CodeStub.mjs +3 -3
- package/model/base/CryptoActor.mjs +2 -2
- package/model/base/Identifier.d.mts +5 -0
- package/model/base/Identifier.mjs +5 -0
- package/model/couchdb/DesignDocument.d.mts +0 -7
- package/model/couchdb/DesignDocument.mjs +0 -9
- package/model/couchdb/ReplicatorDocument.d.mts +0 -7
- package/model/couchdb/ReplicatorDocument.mjs +0 -10
- package/model/embed/DataAttachment.d.mts +2 -2
- package/model/embed/DataAttachment.mjs +2 -2
- package/model/embed/Medication.d.mts +85 -0
- package/model/embed/Medication.mjs +85 -0
- package/model/embed/Partnership.d.mts +8 -0
- package/model/embed/Partnership.mjs +8 -0
- package/model/embed/Service.d.mts +30 -0
- package/model/embed/Service.mjs +20 -0
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +7 -7
- package/model/filter/FilterOptionGroupWithViews.d.mts +21 -0
- package/model/filter/FilterOptionGroupWithViews.mjs +47 -0
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +2 -2
- package/model.d.mts +2 -0
- package/model.mjs +2 -0
- package/package.json +1 -1
|
@@ -300,7 +300,7 @@ interface MessageFiltersFactory {
|
|
|
300
300
|
* In-group version of [lifecycleBetweenForDataOwner].
|
|
301
301
|
* The data owner can be from a different group than the group of the user executing the query.
|
|
302
302
|
*/
|
|
303
|
-
|
|
303
|
+
lifecycleBetweenForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, startTimestamp: number | undefined, endTimestamp: number | undefined, descending: boolean): BaseFilterOptions<Message>;
|
|
304
304
|
/**
|
|
305
305
|
*
|
|
306
306
|
* Options for message filtering which match all messages shared directly (i.e. ignoring hierarchies) with the current data owner
|
|
@@ -27,7 +27,7 @@ export const MessageFilters = {
|
|
|
27
27
|
byInvoiceIds: (invoiceIds) => InternalMessageFiltersObj.getInstance().byInvoiceIds(invoiceIds),
|
|
28
28
|
byParentIds: (parentIds) => InternalMessageFiltersObj.getInstance().byParentIds(parentIds),
|
|
29
29
|
lifecycleBetweenForDataOwner: (dataOwnerId, startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForDataOwner(dataOwnerId, startTimestamp, endTimestamp, descending),
|
|
30
|
-
|
|
30
|
+
lifecycleBetweenForDataOwnerInGroup: (dataOwner, startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForDataOwnerInGroup(dataOwner, startTimestamp, endTimestamp, descending),
|
|
31
31
|
lifecycleBetweenForSelf: (startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForSelf(startTimestamp, endTimestamp, descending),
|
|
32
32
|
byCodeForDataOwner: (dataOwnerId, codeType, options) => InternalMessageFiltersObj.getInstance().byCodeForDataOwner(dataOwnerId, codeType, options),
|
|
33
33
|
byCodeForDataOwnerInGroup: (dataOwner, codeType, options) => InternalMessageFiltersObj.getInstance().byCodeForDataOwnerInGroup(dataOwner, codeType, options),
|
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -93,8 +93,8 @@ initMetadataForInterface(Entry, 'Entry');
|
|
|
93
93
|
initMetadataForInterface(KtMap, 'Map');
|
|
94
94
|
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
95
95
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
96
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
97
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
96
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
97
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
|
|
98
98
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
99
99
|
initMetadataForCompanion(Companion_0);
|
|
100
100
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -115,7 +115,7 @@ initMetadataForInterface(AutoCloseable, 'AutoCloseable');
|
|
|
115
115
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
116
116
|
initMetadataForObject(Unit, 'Unit');
|
|
117
117
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
118
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [
|
|
118
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
|
|
119
119
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
120
120
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
121
121
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
|
|
@@ -128,7 +128,7 @@ initMetadataForCompanion(Companion_2);
|
|
|
128
128
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
|
|
129
129
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
|
|
130
130
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
131
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
131
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
|
|
132
132
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
133
133
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
134
134
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
@@ -235,11 +235,6 @@ 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.s1d(cause) : $super.s1d.call(this, cause);
|
|
241
|
-
}
|
|
242
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
243
238
|
function cancel$default_0(cause, $super) {
|
|
244
239
|
cause = cause === VOID ? null : cause;
|
|
245
240
|
var tmp;
|
|
@@ -252,7 +247,12 @@ function cancel$default_0(cause, $super) {
|
|
|
252
247
|
return tmp;
|
|
253
248
|
}
|
|
254
249
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
255
|
-
|
|
250
|
+
function close$default(cause, $super) {
|
|
251
|
+
cause = cause === VOID ? null : cause;
|
|
252
|
+
return $super === VOID ? this.s1d(cause) : $super.s1d.call(this, cause);
|
|
253
|
+
}
|
|
254
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
255
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [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, [
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [ReceiveChannel, SendChannel], [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, [ProducerScope], [1, 0]);
|
|
@@ -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, Waiter, SelectInstance], [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]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* One point of a concurrent-occupancy step function for a period of calendar items.
|
|
4
|
+
*
|
|
5
|
+
* The occupancy of a period is emitted as a sequence of these points, ordered by [timestamp]: each
|
|
6
|
+
* point
|
|
7
|
+
* indicates that, starting from [timestamp], the number of overlapping (busy) calendar items
|
|
8
|
+
* becomes [occupancy].
|
|
9
|
+
* /
|
|
10
|
+
*/
|
|
11
|
+
export declare class CalendarItemOccupancy {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* A fuzzy date-time at which the occupancy changes.
|
|
15
|
+
*/
|
|
16
|
+
timestamp: number;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* The number of calendar items that are concurrently busy starting from [timestamp].
|
|
20
|
+
*/
|
|
21
|
+
occupancy: number;
|
|
22
|
+
constructor(partial: Partial<CalendarItemOccupancy> & Pick<CalendarItemOccupancy, "timestamp" | "occupancy">);
|
|
23
|
+
toJSON(): object;
|
|
24
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): CalendarItemOccupancy;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectNumber, extractEntry } from '../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* One point of a concurrent-occupancy step function for a period of calendar items.
|
|
6
|
+
*
|
|
7
|
+
* The occupancy of a period is emitted as a sequence of these points, ordered by [timestamp]: each
|
|
8
|
+
* point
|
|
9
|
+
* indicates that, starting from [timestamp], the number of overlapping (busy) calendar items
|
|
10
|
+
* becomes [occupancy].
|
|
11
|
+
* /
|
|
12
|
+
*/
|
|
13
|
+
export class CalendarItemOccupancy {
|
|
14
|
+
constructor(partial) {
|
|
15
|
+
this.timestamp = partial.timestamp;
|
|
16
|
+
this.occupancy = partial.occupancy;
|
|
17
|
+
}
|
|
18
|
+
toJSON() {
|
|
19
|
+
const res = {};
|
|
20
|
+
res['timestamp'] = this.timestamp;
|
|
21
|
+
res['occupancy'] = this.occupancy;
|
|
22
|
+
return res;
|
|
23
|
+
}
|
|
24
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['CalendarItemOccupancy']) {
|
|
25
|
+
if (typeof json != 'object')
|
|
26
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
27
|
+
const jCpy = Object.assign({}, json);
|
|
28
|
+
const res = new CalendarItemOccupancy({
|
|
29
|
+
timestamp: expectNumber(extractEntry(jCpy, 'timestamp', true, path), false, true, [...path, ".timestamp"]),
|
|
30
|
+
occupancy: expectNumber(extractEntry(jCpy, 'occupancy', true, path), false, true, [...path, ".occupancy"]),
|
|
31
|
+
});
|
|
32
|
+
if (!ignoreUnknownKeys) {
|
|
33
|
+
const unused = Object.keys(jCpy);
|
|
34
|
+
if (unused.length > 0)
|
|
35
|
+
throw new Error(`Unexpected key(s) for json object CalendarItemOccupancy at path ${path.join("")}: ${unused}`);
|
|
36
|
+
}
|
|
37
|
+
return res;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/model/Document.d.mts
CHANGED
|
@@ -84,6 +84,10 @@ export interface Document extends StoredDocument, ICureDocument<string>, HasEncr
|
|
|
84
84
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
85
85
|
*/
|
|
86
86
|
mainAttachmentStoredDataSize: number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
90
|
+
*/
|
|
87
91
|
extraMainAttachmentInfo: Document.ExtraMainAttachmentInfo | undefined;
|
|
88
92
|
/**
|
|
89
93
|
*
|
|
@@ -218,6 +222,10 @@ export declare class DecryptedDocument {
|
|
|
218
222
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
219
223
|
*/
|
|
220
224
|
mainAttachmentStoredDataSize: number | undefined;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
228
|
+
*/
|
|
221
229
|
extraMainAttachmentInfo: Document_.ExtraMainAttachmentInfo | undefined;
|
|
222
230
|
/**
|
|
223
231
|
*
|
|
@@ -390,6 +398,10 @@ export declare class EncryptedDocument {
|
|
|
390
398
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
391
399
|
*/
|
|
392
400
|
mainAttachmentStoredDataSize: number | undefined;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
404
|
+
*/
|
|
393
405
|
extraMainAttachmentInfo: Document_.ExtraMainAttachmentInfo | undefined;
|
|
394
406
|
/**
|
|
395
407
|
*
|
package/model/Document.mjs
CHANGED
|
@@ -124,6 +124,10 @@ export class DecryptedDocument {
|
|
|
124
124
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
125
125
|
*/
|
|
126
126
|
this.mainAttachmentStoredDataSize = undefined;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
130
|
+
*/
|
|
127
131
|
this.extraMainAttachmentInfo = undefined;
|
|
128
132
|
/**
|
|
129
133
|
*
|
|
@@ -449,6 +453,10 @@ export class EncryptedDocument {
|
|
|
449
453
|
* Extra Uniform Type Identifiers for the main attachment.
|
|
450
454
|
*/
|
|
451
455
|
this.mainAttachmentStoredDataSize = undefined;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* Extra Uniform Type Identifiers for the main attachment.
|
|
459
|
+
*/
|
|
452
460
|
this.extraMainAttachmentInfo = undefined;
|
|
453
461
|
/**
|
|
454
462
|
*
|
package/model/Group.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
|
8
8
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Represents a group in the iCure platform. A group corresponds to a practice, hospital, or
|
|
12
13
|
* organization
|
|
13
|
-
*
|
|
14
|
-
* /
|
|
14
|
+
* that contains its own set of databases and users.
|
|
15
15
|
*/
|
|
16
16
|
export declare class Group implements StoredDocument, HasTags {
|
|
17
17
|
/**
|
|
@@ -112,7 +112,23 @@ export declare class Group implements StoredDocument, HasTags {
|
|
|
112
112
|
* A user-chosen identifier for the applications for which this group holds data.
|
|
113
113
|
*/
|
|
114
114
|
projectId: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* A user-chosen identifier for the applications for which this group holds data.
|
|
118
|
+
*/
|
|
115
119
|
templates: Group.TemplatesConfiguration | undefined;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* The versions of the custom design doc schema applied to the group.
|
|
124
|
+
*/
|
|
125
|
+
designDocSchemaVersions: Array<number>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
*
|
|
129
|
+
* The version of the custom design doc schema to apply by default children groups on creation.
|
|
130
|
+
*/
|
|
131
|
+
defaultChildrenSchemaVersion: number | undefined;
|
|
116
132
|
constructor(partial: Partial<Group> & Pick<Group, "minimumAuthenticationClassForElevatedPrivileges">);
|
|
117
133
|
toJSON(): object;
|
|
118
134
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Group;
|
package/model/Group.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
|
9
9
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
|
+
* Represents a group in the iCure platform. A group corresponds to a practice, hospital, or
|
|
13
14
|
* organization
|
|
14
|
-
*
|
|
15
|
-
* /
|
|
15
|
+
* that contains its own set of databases and users.
|
|
16
16
|
*/
|
|
17
17
|
export class Group {
|
|
18
18
|
constructor(partial) {
|
|
@@ -97,7 +97,23 @@ export class Group {
|
|
|
97
97
|
* A user-chosen identifier for the applications for which this group holds data.
|
|
98
98
|
*/
|
|
99
99
|
this.projectId = undefined;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* A user-chosen identifier for the applications for which this group holds data.
|
|
103
|
+
*/
|
|
100
104
|
this.templates = undefined;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
*
|
|
108
|
+
* The versions of the custom design doc schema applied to the group.
|
|
109
|
+
*/
|
|
110
|
+
this.designDocSchemaVersions = [];
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*
|
|
114
|
+
* The version of the custom design doc schema to apply by default children groups on creation.
|
|
115
|
+
*/
|
|
116
|
+
this.defaultChildrenSchemaVersion = undefined;
|
|
101
117
|
this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
|
|
102
118
|
if ('rev' in partial)
|
|
103
119
|
this.rev = partial.rev;
|
|
@@ -134,6 +150,10 @@ export class Group {
|
|
|
134
150
|
this.projectId = partial.projectId;
|
|
135
151
|
if ('templates' in partial)
|
|
136
152
|
this.templates = partial.templates;
|
|
153
|
+
if ('designDocSchemaVersions' in partial && partial.designDocSchemaVersions !== undefined)
|
|
154
|
+
this.designDocSchemaVersions = partial.designDocSchemaVersions;
|
|
155
|
+
if ('defaultChildrenSchemaVersion' in partial)
|
|
156
|
+
this.defaultChildrenSchemaVersion = partial.defaultChildrenSchemaVersion;
|
|
137
157
|
}
|
|
138
158
|
toJSON() {
|
|
139
159
|
const res = {};
|
|
@@ -165,6 +185,9 @@ export class Group {
|
|
|
165
185
|
res['projectId'] = this.projectId;
|
|
166
186
|
if (this.templates != undefined)
|
|
167
187
|
res['templates'] = this.templates.toJSON();
|
|
188
|
+
res['designDocSchemaVersions'] = this.designDocSchemaVersions.map((x0) => x0);
|
|
189
|
+
if (this.defaultChildrenSchemaVersion != undefined)
|
|
190
|
+
res['defaultChildrenSchemaVersion'] = this.defaultChildrenSchemaVersion;
|
|
168
191
|
return res;
|
|
169
192
|
}
|
|
170
193
|
static fromJSON(json, ignoreUnknownKeys = false, path = ['Group']) {
|
|
@@ -191,6 +214,8 @@ export class Group {
|
|
|
191
214
|
superGroup: expectString(extractEntry(jCpy, 'superGroup', false, path), true, [...path, ".superGroup"]),
|
|
192
215
|
projectId: expectString(extractEntry(jCpy, 'projectId', false, path), true, [...path, ".projectId"]),
|
|
193
216
|
templates: expectObject(extractEntry(jCpy, 'templates', false, path), true, ignoreUnknownKeys, [...path, ".templates"], Group.TemplatesConfiguration.fromJSON),
|
|
217
|
+
designDocSchemaVersions: expectArray(extractEntry(jCpy, 'designDocSchemaVersions', false, path), false, [...path, ".designDocSchemaVersions"], (x0, p0) => expectNumber(x0, false, true, p0)),
|
|
218
|
+
defaultChildrenSchemaVersion: expectNumber(extractEntry(jCpy, 'defaultChildrenSchemaVersion', false, path), true, true, [...path, ".defaultChildrenSchemaVersion"]),
|
|
194
219
|
});
|
|
195
220
|
if (!ignoreUnknownKeys) {
|
|
196
221
|
const unused = Object.keys(jCpy);
|
|
@@ -15,12 +15,12 @@ import { SecurityMetadata } from './embed/SecurityMetadata.mjs';
|
|
|
15
15
|
import { Base64String } from './specializations/Base64String.mjs';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
19
20
|
* healthcare problem
|
|
20
|
-
*
|
|
21
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
21
22
|
* organisation of the
|
|
22
|
-
*
|
|
23
|
-
* /
|
|
23
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
24
24
|
*/
|
|
25
25
|
export interface HealthElement extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife {
|
|
26
26
|
/**
|
|
@@ -110,12 +110,12 @@ export interface HealthElement extends StoredDocument, ICureDocument<string>, Ha
|
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
114
115
|
* healthcare problem
|
|
115
|
-
*
|
|
116
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
116
117
|
* organisation of the
|
|
117
|
-
*
|
|
118
|
-
* /
|
|
118
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
119
119
|
*/
|
|
120
120
|
export declare class DecryptedHealthElement {
|
|
121
121
|
/**
|
|
@@ -294,12 +294,12 @@ export declare class DecryptedHealthElement {
|
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
*
|
|
297
|
-
*
|
|
297
|
+
*
|
|
298
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
298
299
|
* healthcare problem
|
|
299
|
-
*
|
|
300
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
300
301
|
* organisation of the
|
|
301
|
-
*
|
|
302
|
-
* /
|
|
302
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
303
303
|
*/
|
|
304
304
|
export declare class EncryptedHealthElement {
|
|
305
305
|
/**
|
package/model/HealthElement.mjs
CHANGED
|
@@ -12,12 +12,12 @@ import { DecryptedPlanOfAction, EncryptedPlanOfAction } from './embed/PlanOfActi
|
|
|
12
12
|
import { SecurityMetadata } from './embed/SecurityMetadata.mjs';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
16
17
|
* healthcare problem
|
|
17
|
-
*
|
|
18
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
18
19
|
* organisation of the
|
|
19
|
-
*
|
|
20
|
-
* /
|
|
20
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
21
21
|
*/
|
|
22
22
|
export class DecryptedHealthElement {
|
|
23
23
|
constructor(partial) {
|
|
@@ -353,12 +353,12 @@ export class DecryptedHealthElement {
|
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
355
|
*
|
|
356
|
-
*
|
|
356
|
+
*
|
|
357
|
+
* Represents a healthcare element. A healthcare element is a patient-centric representation of a
|
|
357
358
|
* healthcare problem
|
|
358
|
-
*
|
|
359
|
+
* that evolves over time in its name/label and characteristics. It is a central element in the
|
|
359
360
|
* organisation of the
|
|
360
|
-
*
|
|
361
|
-
* /
|
|
361
|
+
* electronic health record, used to filter and link medical data in a meaningful way.
|
|
362
362
|
*/
|
|
363
363
|
export class EncryptedHealthElement {
|
|
364
364
|
constructor(partial) {
|
package/model/Receipt.d.mts
CHANGED
|
@@ -26,9 +26,17 @@ export interface Receipt extends StoredDocument, ICureDocument<string>, HasEncry
|
|
|
26
26
|
attachmentIds: {
|
|
27
27
|
[key in ReceiptBlobType]?: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Map of blob type to attachment id for the receipt.
|
|
32
|
+
*/
|
|
29
33
|
attachmentInfos: {
|
|
30
34
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
31
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Map of blob type to attachment id for the receipt.
|
|
39
|
+
*/
|
|
32
40
|
deletedAttachments: Array<DeletedAttachment>;
|
|
33
41
|
/**
|
|
34
42
|
*
|
|
@@ -115,9 +123,17 @@ export declare class DecryptedReceipt {
|
|
|
115
123
|
attachmentIds: {
|
|
116
124
|
[key in ReceiptBlobType]?: string;
|
|
117
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* Map of blob type to attachment id for the receipt.
|
|
129
|
+
*/
|
|
118
130
|
attachmentInfos: {
|
|
119
131
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
120
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* Map of blob type to attachment id for the receipt.
|
|
136
|
+
*/
|
|
121
137
|
deletedAttachments: Array<DeletedAttachment>;
|
|
122
138
|
/**
|
|
123
139
|
*
|
|
@@ -242,9 +258,17 @@ export declare class EncryptedReceipt {
|
|
|
242
258
|
attachmentIds: {
|
|
243
259
|
[key in ReceiptBlobType]?: string;
|
|
244
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* Map of blob type to attachment id for the receipt.
|
|
264
|
+
*/
|
|
245
265
|
attachmentInfos: {
|
|
246
266
|
[key in ReceiptBlobType]?: DataAttachment;
|
|
247
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* Map of blob type to attachment id for the receipt.
|
|
271
|
+
*/
|
|
248
272
|
deletedAttachments: Array<DeletedAttachment>;
|
|
249
273
|
/**
|
|
250
274
|
*
|
package/model/Receipt.mjs
CHANGED
|
@@ -64,7 +64,15 @@ export class DecryptedReceipt {
|
|
|
64
64
|
* Map of blob type to attachment id for the receipt.
|
|
65
65
|
*/
|
|
66
66
|
this.attachmentIds = {};
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* Map of blob type to attachment id for the receipt.
|
|
70
|
+
*/
|
|
67
71
|
this.attachmentInfos = {};
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* Map of blob type to attachment id for the receipt.
|
|
75
|
+
*/
|
|
68
76
|
this.deletedAttachments = [];
|
|
69
77
|
/**
|
|
70
78
|
*
|
|
@@ -296,7 +304,15 @@ export class EncryptedReceipt {
|
|
|
296
304
|
* Map of blob type to attachment id for the receipt.
|
|
297
305
|
*/
|
|
298
306
|
this.attachmentIds = {};
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* Map of blob type to attachment id for the receipt.
|
|
310
|
+
*/
|
|
299
311
|
this.attachmentInfos = {};
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* Map of blob type to attachment id for the receipt.
|
|
315
|
+
*/
|
|
300
316
|
this.deletedAttachments = [];
|
|
301
317
|
/**
|
|
302
318
|
*
|
package/model/User.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ import { LoginIdentifier } from './security/LoginIdentifier.mjs';
|
|
|
8
8
|
import { Permission } from './security/Permission.mjs';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Represents a user that can log in to the iCure platform. A user can be linked to a healthcare
|
|
12
13
|
* party,
|
|
13
|
-
*
|
|
14
|
-
* /
|
|
14
|
+
* a patient, or a device, and holds authentication credentials, roles, and permissions.
|
|
15
15
|
*/
|
|
16
16
|
export declare class User implements StoredDocument {
|
|
17
17
|
/**
|
package/model/User.mjs
CHANGED
|
@@ -10,10 +10,10 @@ import { LoginIdentifier } from './security/LoginIdentifier.mjs';
|
|
|
10
10
|
import { Permission } from './security/Permission.mjs';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* Represents a user that can log in to the iCure platform. A user can be linked to a healthcare
|
|
14
15
|
* party,
|
|
15
|
-
*
|
|
16
|
-
* /
|
|
16
|
+
* a patient, or a device, and holds authentication credentials, roles, and permissions.
|
|
17
17
|
*/
|
|
18
18
|
export class User {
|
|
19
19
|
constructor(partial) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CodeIdentification } from './CodeIdentification.mjs';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* A lightweight reference to a code from a codification system, used as a stub in entities that
|
|
5
6
|
* reference codes
|
|
6
|
-
*
|
|
7
|
-
* /
|
|
7
|
+
* without embedding the full code definition. The id is typically formatted as type|code|version.
|
|
8
8
|
*/
|
|
9
9
|
export declare class CodeStub implements CodeIdentification<string | undefined> {
|
|
10
10
|
/**
|
package/model/base/CodeStub.mjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* A lightweight reference to a code from a codification system, used as a stub in entities that
|
|
6
7
|
* reference codes
|
|
7
|
-
*
|
|
8
|
-
* /
|
|
8
|
+
* without embedding the full code definition. The id is typically formatted as type|code|version.
|
|
9
9
|
*/
|
|
10
10
|
export class CodeStub {
|
|
11
11
|
constructor(partial) {
|
|
@@ -8,10 +8,10 @@ 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.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
-
case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
|
|
13
11
|
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
14
12
|
case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
13
|
+
case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
|
|
14
|
+
case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
|
|
15
15
|
default: throw new Error('Unexpected discriminator for CryptoActor: ' + json.$ktClass);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -17,13 +17,6 @@ export declare class DesignDocument {
|
|
|
17
17
|
* The current revision of the design document.
|
|
18
18
|
*/
|
|
19
19
|
rev: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* A map of revision history entries.
|
|
23
|
-
*/
|
|
24
|
-
revHistory: {
|
|
25
|
-
[key: string]: string;
|
|
26
|
-
};
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* The programming language used for the design document functions.
|
|
@@ -17,11 +17,6 @@ export class DesignDocument {
|
|
|
17
17
|
* The current revision of the design document.
|
|
18
18
|
*/
|
|
19
19
|
this.rev = undefined;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* A map of revision history entries.
|
|
23
|
-
*/
|
|
24
|
-
this.revHistory = {};
|
|
25
20
|
/**
|
|
26
21
|
*
|
|
27
22
|
* The programming language used for the design document functions.
|
|
@@ -55,8 +50,6 @@ export class DesignDocument {
|
|
|
55
50
|
this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
|
|
56
51
|
if ('rev' in partial)
|
|
57
52
|
this.rev = partial.rev;
|
|
58
|
-
if ('revHistory' in partial && partial.revHistory !== undefined)
|
|
59
|
-
this.revHistory = partial.revHistory;
|
|
60
53
|
if ('language' in partial)
|
|
61
54
|
this.language = partial.language;
|
|
62
55
|
if ('views' in partial && partial.views !== undefined)
|
|
@@ -75,7 +68,6 @@ export class DesignDocument {
|
|
|
75
68
|
res['id'] = this.id;
|
|
76
69
|
if (this.rev != undefined)
|
|
77
70
|
res['rev'] = this.rev;
|
|
78
|
-
res['revHistory'] = Object.fromEntries(Object.entries(this.revHistory).map(([k0, v0]) => [k0, v0]));
|
|
79
71
|
if (this.language != undefined)
|
|
80
72
|
res['language'] = this.language;
|
|
81
73
|
res['views'] = Object.fromEntries(Object.entries(this.views).map(([k0, v0]) => [k0, v0.toJSON()]));
|
|
@@ -93,7 +85,6 @@ export class DesignDocument {
|
|
|
93
85
|
const res = new DesignDocument({
|
|
94
86
|
id: expectString(extractEntry(jCpy, 'id', true, path), false, [...path, ".id"]),
|
|
95
87
|
rev: expectString(extractEntry(jCpy, 'rev', false, path), true, [...path, ".rev"]),
|
|
96
|
-
revHistory: expectMap(extractEntry(jCpy, 'revHistory', false, path), false, [...path, ".revHistory"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
97
88
|
language: expectString(extractEntry(jCpy, 'language', false, path), true, [...path, ".language"]),
|
|
98
89
|
views: expectMap(extractEntry(jCpy, 'views', false, path), false, [...path, ".views"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectObject(v0, false, ignoreUnknownKeys, p0, View.fromJSON)),
|
|
99
90
|
lists: expectMap(extractEntry(jCpy, 'lists', false, path), false, [...path, ".lists"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|