@icure/cardinal-sdk 2.0.0 → 2.1.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/api/FormApi.d.mts +2 -1
- package/api/FormBasicApi.d.mts +1 -0
- package/api/FormBasicInGroupApi.d.mts +1 -0
- package/api/FormInGroupApi.d.mts +2 -1
- package/api/FormTemplateApi.d.mts +2 -0
- package/api.d.mts +0 -8
- package/api.mjs +0 -8
- package/cardinal-sdk-ts.d.mts +26 -30
- package/cardinal-sdk-ts.mjs +39547 -39094
- package/cardinal-sdk.mjs +99857 -97723
- package/filters/DocumentFilters.d.mts +18 -0
- package/filters/DocumentFilters.mjs +7 -1
- package/filters/FormTemplateFilters.d.mts +7 -0
- package/filters/FormTemplateFilters.mjs +5 -0
- package/filters/MessageFilters.d.mts +18 -0
- package/filters/MessageFilters.mjs +7 -1
- package/filters.d.mts +1 -2
- package/filters.mjs +1 -2
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/CalendarItem.d.mts +22 -0
- package/model/CalendarItem.mjs +83 -0
- package/model/Code.d.mts +1 -1
- package/model/Code.mjs +4 -5
- package/model/Device.d.mts +1 -1
- package/model/Device.mjs +4 -5
- package/model/HealthcareParty.d.mts +2 -2
- package/model/HealthcareParty.mjs +7 -9
- package/model/Message.d.mts +4 -0
- package/model/Message.mjs +11 -0
- package/model/Patient.d.mts +3 -2
- package/model/Patient.mjs +8 -10
- package/model/base/CryptoActor.mjs +4 -4
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +5 -5
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +1 -1
- package/model.d.mts +0 -18
- package/model.mjs +0 -18
- package/package.json +1 -1
- package/sdk/CardinalSdk.d.mts +0 -24
- package/api/ApplicationSettingsApi.d.mts +0 -6
- package/api/ApplicationSettingsApi.mjs +0 -1
- package/api/DocumentTemplateApi.d.mts +0 -22
- package/api/DocumentTemplateApi.mjs +0 -1
- package/api/EntityReferenceApi.d.mts +0 -5
- package/api/EntityReferenceApi.mjs +0 -1
- package/api/EntityTemplateApi.d.mts +0 -24
- package/api/EntityTemplateApi.mjs +0 -1
- package/api/KeywordApi.d.mts +0 -14
- package/api/KeywordApi.mjs +0 -1
- package/api/MedicalLocationApi.d.mts +0 -17
- package/api/MedicalLocationApi.mjs +0 -1
- package/api/TarificationApi.d.mts +0 -27
- package/api/TarificationApi.mjs +0 -1
- package/api/TimeTableApi.d.mts +0 -26
- package/api/TimeTableApi.mjs +0 -1
- package/filters/MedicalLocationFilters.d.mts +0 -8
- package/filters/MedicalLocationFilters.mjs +0 -6
- package/filters/TimeTableFilters.d.mts +0 -12
- package/filters/TimeTableFilters.mjs +0 -6
- package/model/ApplicationSettings.d.mts +0 -87
- package/model/ApplicationSettings.mjs +0 -256
- package/model/DocumentTemplate.d.mts +0 -35
- package/model/DocumentTemplate.mjs +0 -162
- package/model/EntityReference.d.mts +0 -10
- package/model/EntityReference.mjs +0 -46
- package/model/EntityTemplate.d.mts +0 -16
- package/model/EntityTemplate.mjs +0 -81
- package/model/Keyword.d.mts +0 -23
- package/model/Keyword.mjs +0 -99
- package/model/ListOfIds.d.mts +0 -6
- package/model/ListOfIds.mjs +0 -28
- package/model/MedicalLocation.d.mts +0 -28
- package/model/MedicalLocation.mjs +0 -116
- package/model/Tarification.d.mts +0 -50
- package/model/Tarification.mjs +0 -178
- package/model/TimeTable.d.mts +0 -25
- package/model/TimeTable.mjs +0 -111
- package/model/base/AppendixType.d.mts +0 -5
- package/model/base/AppendixType.mjs +0 -7
- package/model/base/CodeFlag.d.mts +0 -80
- package/model/base/CodeFlag.mjs +0 -82
- package/model/base/ReportVersion.d.mts +0 -3
- package/model/base/ReportVersion.mjs +0 -5
- package/model/embed/KeywordSubword.d.mts +0 -8
- package/model/embed/KeywordSubword.mjs +0 -35
- package/model/embed/LetterValue.d.mts +0 -9
- package/model/embed/LetterValue.mjs +0 -47
- package/model/embed/Periodicity.d.mts +0 -8
- package/model/embed/Periodicity.mjs +0 -36
- package/model/embed/TimeTableHour.d.mts +0 -7
- package/model/embed/TimeTableHour.mjs +0 -35
- package/model/embed/TimeTableItem.d.mts +0 -19
- package/model/embed/TimeTableItem.mjs +0 -96
- package/model/embed/Valorisation.d.mts +0 -56
- package/model/embed/Valorisation.mjs +0 -188
|
@@ -60,6 +60,24 @@ interface DocumentFiltersFactory {
|
|
|
60
60
|
byOwningEntitySecretIdsAndTypeForDataOwner(dataOwnerId: string, documentType: DocumentType, secretIds: Array<string>): FilterOptions<Document>;
|
|
61
61
|
byOwningEntitySecretIdsAndTypeForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, documentType: DocumentType, secretIds: Array<string>): FilterOptions<Document>;
|
|
62
62
|
byOwningEntitySecretIdsAndTypeForSelf(documentType: DocumentType, secretIds: Array<string>): FilterOptions<Document>;
|
|
63
|
+
byCodeForDataOwner(dataOwnerId: string, codeType: string, options?: {
|
|
64
|
+
codeCode?: string | undefined;
|
|
65
|
+
}): BaseSortableFilterOptions<Document>;
|
|
66
|
+
byCodeForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, codeType: string, options?: {
|
|
67
|
+
codeCode?: string | undefined;
|
|
68
|
+
}): BaseSortableFilterOptions<Document>;
|
|
69
|
+
byCodeForSelf(codeType: string, options?: {
|
|
70
|
+
codeCode?: string | undefined;
|
|
71
|
+
}): SortableFilterOptions<Document>;
|
|
72
|
+
byTagForDataOwner(dataOwnerId: string, tagType: string, options?: {
|
|
73
|
+
tagCode?: string | undefined;
|
|
74
|
+
}): BaseSortableFilterOptions<Document>;
|
|
75
|
+
byTagForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, tagType: string, options?: {
|
|
76
|
+
tagCode?: string | undefined;
|
|
77
|
+
}): BaseSortableFilterOptions<Document>;
|
|
78
|
+
byTagForSelf(tagType: string, options?: {
|
|
79
|
+
tagCode?: string | undefined;
|
|
80
|
+
}): SortableFilterOptions<Document>;
|
|
63
81
|
}
|
|
64
82
|
export declare const DocumentFilters: DocumentFiltersFactory;
|
|
65
83
|
export {};
|
|
@@ -18,5 +18,11 @@ export const DocumentFilters = {
|
|
|
18
18
|
byMessagesAndTypeForSelf: (documentType, messages) => InternalDocumentFiltersObj.getInstance().byMessagesAndTypeForSelf(documentType, messages),
|
|
19
19
|
byOwningEntitySecretIdsAndTypeForDataOwner: (dataOwnerId, documentType, secretIds) => InternalDocumentFiltersObj.getInstance().byOwningEntitySecretIdsAndTypeForDataOwner(dataOwnerId, documentType, secretIds),
|
|
20
20
|
byOwningEntitySecretIdsAndTypeForDataOwnerInGroup: (dataOwner, documentType, secretIds) => InternalDocumentFiltersObj.getInstance().byOwningEntitySecretIdsAndTypeForDataOwnerInGroup(dataOwner, documentType, secretIds),
|
|
21
|
-
byOwningEntitySecretIdsAndTypeForSelf: (documentType, secretIds) => InternalDocumentFiltersObj.getInstance().byOwningEntitySecretIdsAndTypeForSelf(documentType, secretIds)
|
|
21
|
+
byOwningEntitySecretIdsAndTypeForSelf: (documentType, secretIds) => InternalDocumentFiltersObj.getInstance().byOwningEntitySecretIdsAndTypeForSelf(documentType, secretIds),
|
|
22
|
+
byCodeForDataOwner: (dataOwnerId, codeType, options) => InternalDocumentFiltersObj.getInstance().byCodeForDataOwner(dataOwnerId, codeType, options),
|
|
23
|
+
byCodeForDataOwnerInGroup: (dataOwner, codeType, options) => InternalDocumentFiltersObj.getInstance().byCodeForDataOwnerInGroup(dataOwner, codeType, options),
|
|
24
|
+
byCodeForSelf: (codeType, options) => InternalDocumentFiltersObj.getInstance().byCodeForSelf(codeType, options),
|
|
25
|
+
byTagForDataOwner: (dataOwnerId, tagType, options) => InternalDocumentFiltersObj.getInstance().byTagForDataOwner(dataOwnerId, tagType, options),
|
|
26
|
+
byTagForDataOwnerInGroup: (dataOwner, tagType, options) => InternalDocumentFiltersObj.getInstance().byTagForDataOwnerInGroup(dataOwner, tagType, options),
|
|
27
|
+
byTagForSelf: (tagType, options) => InternalDocumentFiltersObj.getInstance().byTagForSelf(tagType, options)
|
|
22
28
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { FormTemplate } from '../model/FormTemplate.mjs';
|
|
3
|
+
interface FormTemplateFiltersFactory {
|
|
4
|
+
bySpecialtyCode(specialtyCode: string): BaseFilterOptions<FormTemplate>;
|
|
5
|
+
}
|
|
6
|
+
export declare const FormTemplateFilters: FormTemplateFiltersFactory;
|
|
7
|
+
export {};
|
|
@@ -62,6 +62,24 @@ interface MessageFiltersFactory {
|
|
|
62
62
|
lifecycleBetweenForDataOwner(dataOwnerId: string, startTimestamp: number | undefined, endTimestamp: number | undefined, descending: boolean): BaseFilterOptions<Message>;
|
|
63
63
|
lifecycleBetweenForDataOwnerInGroupInGroup(dataOwner: EntityReferenceInGroup, startTimestamp: number | undefined, endTimestamp: number | undefined, descending: boolean): BaseFilterOptions<Message>;
|
|
64
64
|
lifecycleBetweenForSelf(startTimestamp: number | undefined, endTimestamp: number | undefined, descending: boolean): FilterOptions<Message>;
|
|
65
|
+
byCodeForDataOwner(dataOwnerId: string, codeType: string, options?: {
|
|
66
|
+
codeCode?: string | undefined;
|
|
67
|
+
}): BaseSortableFilterOptions<Message>;
|
|
68
|
+
byCodeForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, codeType: string, options?: {
|
|
69
|
+
codeCode?: string | undefined;
|
|
70
|
+
}): BaseSortableFilterOptions<Message>;
|
|
71
|
+
byCodeForSelf(codeType: string, options?: {
|
|
72
|
+
codeCode?: string | undefined;
|
|
73
|
+
}): SortableFilterOptions<Message>;
|
|
74
|
+
byTagForDataOwner(dataOwnerId: string, tagType: string, options?: {
|
|
75
|
+
tagCode?: string | undefined;
|
|
76
|
+
}): BaseSortableFilterOptions<Message>;
|
|
77
|
+
byTagForDataOwnerInGroup(dataOwner: EntityReferenceInGroup, tagType: string, options?: {
|
|
78
|
+
tagCode?: string | undefined;
|
|
79
|
+
}): BaseSortableFilterOptions<Message>;
|
|
80
|
+
byTagForSelf(tagType: string, options?: {
|
|
81
|
+
tagCode?: string | undefined;
|
|
82
|
+
}): SortableFilterOptions<Message>;
|
|
65
83
|
}
|
|
66
84
|
export declare const MessageFilters: MessageFiltersFactory;
|
|
67
85
|
export {};
|
|
@@ -28,5 +28,11 @@ export const MessageFilters = {
|
|
|
28
28
|
byParentIds: (parentIds) => InternalMessageFiltersObj.getInstance().byParentIds(parentIds),
|
|
29
29
|
lifecycleBetweenForDataOwner: (dataOwnerId, startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForDataOwner(dataOwnerId, startTimestamp, endTimestamp, descending),
|
|
30
30
|
lifecycleBetweenForDataOwnerInGroupInGroup: (dataOwner, startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForDataOwnerInGroupInGroup(dataOwner, startTimestamp, endTimestamp, descending),
|
|
31
|
-
lifecycleBetweenForSelf: (startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForSelf(startTimestamp, endTimestamp, descending)
|
|
31
|
+
lifecycleBetweenForSelf: (startTimestamp, endTimestamp, descending) => InternalMessageFiltersObj.getInstance().lifecycleBetweenForSelf(startTimestamp, endTimestamp, descending),
|
|
32
|
+
byCodeForDataOwner: (dataOwnerId, codeType, options) => InternalMessageFiltersObj.getInstance().byCodeForDataOwner(dataOwnerId, codeType, options),
|
|
33
|
+
byCodeForDataOwnerInGroup: (dataOwner, codeType, options) => InternalMessageFiltersObj.getInstance().byCodeForDataOwnerInGroup(dataOwner, codeType, options),
|
|
34
|
+
byCodeForSelf: (codeType, options) => InternalMessageFiltersObj.getInstance().byCodeForSelf(codeType, options),
|
|
35
|
+
byTagForDataOwner: (dataOwnerId, tagType, options) => InternalMessageFiltersObj.getInstance().byTagForDataOwner(dataOwnerId, tagType, options),
|
|
36
|
+
byTagForDataOwnerInGroup: (dataOwner, tagType, options) => InternalMessageFiltersObj.getInstance().byTagForDataOwnerInGroup(dataOwner, tagType, options),
|
|
37
|
+
byTagForSelf: (tagType, options) => InternalMessageFiltersObj.getInstance().byTagForSelf(tagType, options)
|
|
32
38
|
};
|
package/filters.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './filters/PatientFilters.mjs';
|
|
|
4
4
|
export * from './filters/MessageFilters.mjs';
|
|
5
5
|
export * from './filters/AccessLogFilters.mjs';
|
|
6
6
|
export * from './filters/GroupFilters.mjs';
|
|
7
|
-
export * from './filters/MedicalLocationFilters.mjs';
|
|
8
7
|
export * from './filters/HealthElementFilters.mjs';
|
|
9
8
|
export * from './filters/DeviceFilters.mjs';
|
|
10
9
|
export * from './filters/CodeFilters.mjs';
|
|
@@ -14,8 +13,8 @@ export * from './filters/FormFilters.mjs';
|
|
|
14
13
|
export * from './filters/ServiceFilters.mjs';
|
|
15
14
|
export * from './filters/MetaFilters.mjs';
|
|
16
15
|
export * from './filters/UserFilters.mjs';
|
|
16
|
+
export * from './filters/FormTemplateFilters.mjs';
|
|
17
17
|
export * from './filters/HealthcarePartyFilters.mjs';
|
|
18
|
-
export * from './filters/TimeTableFilters.mjs';
|
|
19
18
|
export * from './filters/ContactFilters.mjs';
|
|
20
19
|
export * from './filters/MaintenanceTaskFilters.mjs';
|
|
21
20
|
export * from './filters/CalendarItemFilters.mjs';
|
package/filters.mjs
CHANGED
|
@@ -4,7 +4,6 @@ export * from './filters/PatientFilters.mjs';
|
|
|
4
4
|
export * from './filters/MessageFilters.mjs';
|
|
5
5
|
export * from './filters/AccessLogFilters.mjs';
|
|
6
6
|
export * from './filters/GroupFilters.mjs';
|
|
7
|
-
export * from './filters/MedicalLocationFilters.mjs';
|
|
8
7
|
export * from './filters/HealthElementFilters.mjs';
|
|
9
8
|
export * from './filters/DeviceFilters.mjs';
|
|
10
9
|
export * from './filters/CodeFilters.mjs';
|
|
@@ -14,8 +13,8 @@ export * from './filters/FormFilters.mjs';
|
|
|
14
13
|
export * from './filters/ServiceFilters.mjs';
|
|
15
14
|
export * from './filters/MetaFilters.mjs';
|
|
16
15
|
export * from './filters/UserFilters.mjs';
|
|
16
|
+
export * from './filters/FormTemplateFilters.mjs';
|
|
17
17
|
export * from './filters/HealthcarePartyFilters.mjs';
|
|
18
|
-
export * from './filters/TimeTableFilters.mjs';
|
|
19
18
|
export * from './filters/ContactFilters.mjs';
|
|
20
19
|
export * from './filters/MaintenanceTaskFilters.mjs';
|
|
21
20
|
export * from './filters/CalendarItemFilters.mjs';
|
|
@@ -235,6 +235,11 @@ initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, V
|
|
|
235
235
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
236
236
|
initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
|
|
237
237
|
initMetadataForCoroutine($receiveCatchingCOROUTINE$, CoroutineImpl);
|
|
238
|
+
function close$default(cause, $super) {
|
|
239
|
+
cause = cause === VOID ? null : cause;
|
|
240
|
+
return $super === VOID ? this.l1d(cause) : $super.l1d.call(this, cause);
|
|
241
|
+
}
|
|
242
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
238
243
|
function cancel$default_0(cause, $super) {
|
|
239
244
|
cause = cause === VOID ? null : cause;
|
|
240
245
|
var tmp;
|
|
@@ -247,12 +252,7 @@ function cancel$default_0(cause, $super) {
|
|
|
247
252
|
return tmp;
|
|
248
253
|
}
|
|
249
254
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
250
|
-
|
|
251
|
-
cause = cause === VOID ? null : cause;
|
|
252
|
-
return $super === VOID ? this.l1d(cause) : $super.l1d.call(this, cause);
|
|
253
|
-
}
|
|
254
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
255
|
-
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
255
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
|
|
256
256
|
initMetadataForClass(WaiterEB, 'WaiterEB');
|
|
257
257
|
initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
|
|
258
258
|
initMetadataForObject(Factory, 'Factory');
|
|
@@ -262,7 +262,7 @@ initMetadataForCompanion(Companion);
|
|
|
262
262
|
initMetadataForClass(ChannelResult, 'ChannelResult');
|
|
263
263
|
initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
|
|
264
264
|
initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
|
|
265
|
-
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine,
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], [1, 0]);
|
|
266
266
|
initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
|
|
267
267
|
initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
|
|
268
268
|
initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);
|
|
@@ -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]);
|
package/model/CalendarItem.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CalendarItem as CalendarItem_ } from './CalendarItem.mjs';
|
|
2
|
+
import { DecryptedPropertyStub, EncryptedPropertyStub, PropertyStub } from './PropertyStub.mjs';
|
|
2
3
|
import { CodeStub } from './base/CodeStub.mjs';
|
|
3
4
|
import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
|
|
4
5
|
import { ICureDocument } from './base/ICureDocument.mjs';
|
|
@@ -15,11 +16,17 @@ export interface CalendarItem extends StoredDocument, ICureDocument<string>, Has
|
|
|
15
16
|
masterCalendarItemId: string | undefined;
|
|
16
17
|
important: boolean | undefined;
|
|
17
18
|
homeVisit: boolean | undefined;
|
|
19
|
+
phoneNumber: string | undefined;
|
|
18
20
|
placeId: string | undefined;
|
|
19
21
|
address: Address | undefined;
|
|
20
22
|
addressText: string | undefined;
|
|
21
23
|
startTime: number | undefined;
|
|
22
24
|
endTime: number | undefined;
|
|
25
|
+
confirmationTime: number | undefined;
|
|
26
|
+
cancellationTimestamp: number | undefined;
|
|
27
|
+
confirmationId: string | undefined;
|
|
28
|
+
duration: number | undefined;
|
|
29
|
+
allDay: boolean | undefined;
|
|
23
30
|
details: string | undefined;
|
|
24
31
|
wasMigrated: boolean | undefined;
|
|
25
32
|
agendaId: string | undefined;
|
|
@@ -27,6 +34,7 @@ export interface CalendarItem extends StoredDocument, ICureDocument<string>, Has
|
|
|
27
34
|
availabilitiesAssignmentStrategy: CalendarItem.AvailabilitiesAssignmentStrategy | undefined;
|
|
28
35
|
recurrenceId: string | undefined;
|
|
29
36
|
meetingTags: Array<CalendarItemTag>;
|
|
37
|
+
properties: Array<PropertyStub>;
|
|
30
38
|
readonly isEncrypted: boolean;
|
|
31
39
|
toJSON(): object;
|
|
32
40
|
}
|
|
@@ -45,11 +53,17 @@ export declare class DecryptedCalendarItem {
|
|
|
45
53
|
masterCalendarItemId: string | undefined;
|
|
46
54
|
important: boolean | undefined;
|
|
47
55
|
homeVisit: boolean | undefined;
|
|
56
|
+
phoneNumber: string | undefined;
|
|
48
57
|
placeId: string | undefined;
|
|
49
58
|
address: DecryptedAddress | undefined;
|
|
50
59
|
addressText: string | undefined;
|
|
51
60
|
startTime: number | undefined;
|
|
52
61
|
endTime: number | undefined;
|
|
62
|
+
confirmationTime: number | undefined;
|
|
63
|
+
cancellationTimestamp: number | undefined;
|
|
64
|
+
confirmationId: string | undefined;
|
|
65
|
+
duration: number | undefined;
|
|
66
|
+
allDay: boolean | undefined;
|
|
53
67
|
details: string | undefined;
|
|
54
68
|
wasMigrated: boolean | undefined;
|
|
55
69
|
agendaId: string | undefined;
|
|
@@ -57,6 +71,7 @@ export declare class DecryptedCalendarItem {
|
|
|
57
71
|
availabilitiesAssignmentStrategy: CalendarItem_.AvailabilitiesAssignmentStrategy | undefined;
|
|
58
72
|
recurrenceId: string | undefined;
|
|
59
73
|
meetingTags: Array<DecryptedCalendarItemTag>;
|
|
74
|
+
properties: Array<DecryptedPropertyStub>;
|
|
60
75
|
secretForeignKeys: Array<string>;
|
|
61
76
|
cryptedForeignKeys: {
|
|
62
77
|
[key: string]: Array<Delegation>;
|
|
@@ -89,11 +104,17 @@ export declare class EncryptedCalendarItem {
|
|
|
89
104
|
masterCalendarItemId: string | undefined;
|
|
90
105
|
important: boolean | undefined;
|
|
91
106
|
homeVisit: boolean | undefined;
|
|
107
|
+
phoneNumber: string | undefined;
|
|
92
108
|
placeId: string | undefined;
|
|
93
109
|
address: EncryptedAddress | undefined;
|
|
94
110
|
addressText: string | undefined;
|
|
95
111
|
startTime: number | undefined;
|
|
96
112
|
endTime: number | undefined;
|
|
113
|
+
confirmationTime: number | undefined;
|
|
114
|
+
cancellationTimestamp: number | undefined;
|
|
115
|
+
confirmationId: string | undefined;
|
|
116
|
+
duration: number | undefined;
|
|
117
|
+
allDay: boolean | undefined;
|
|
97
118
|
details: string | undefined;
|
|
98
119
|
wasMigrated: boolean | undefined;
|
|
99
120
|
agendaId: string | undefined;
|
|
@@ -101,6 +122,7 @@ export declare class EncryptedCalendarItem {
|
|
|
101
122
|
availabilitiesAssignmentStrategy: CalendarItem_.AvailabilitiesAssignmentStrategy | undefined;
|
|
102
123
|
recurrenceId: string | undefined;
|
|
103
124
|
meetingTags: Array<EncryptedCalendarItemTag>;
|
|
125
|
+
properties: Array<EncryptedPropertyStub>;
|
|
104
126
|
secretForeignKeys: Array<string>;
|
|
105
127
|
cryptedForeignKeys: {
|
|
106
128
|
[key: string]: Array<Delegation>;
|
package/model/CalendarItem.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { expectArray, expectBoolean, expectMap, expectNumber, expectObject, expectString, expectStringEnum, extractEntry } from '../internal/JsonDecodeUtils.mjs';
|
|
3
3
|
import { randomUuid } from '../utils/Id.mjs';
|
|
4
4
|
import { CalendarItem as CalendarItem_ } from './CalendarItem.mjs';
|
|
5
|
+
import { DecryptedPropertyStub, EncryptedPropertyStub } from './PropertyStub.mjs';
|
|
5
6
|
import { CodeStub } from './base/CodeStub.mjs';
|
|
6
7
|
import { DecryptedAddress, EncryptedAddress } from './embed/Address.mjs';
|
|
7
8
|
import { DecryptedCalendarItemTag, EncryptedCalendarItemTag } from './embed/CalendarItemTag.mjs';
|
|
@@ -23,11 +24,17 @@ export class DecryptedCalendarItem {
|
|
|
23
24
|
this.masterCalendarItemId = undefined;
|
|
24
25
|
this.important = undefined;
|
|
25
26
|
this.homeVisit = undefined;
|
|
27
|
+
this.phoneNumber = undefined;
|
|
26
28
|
this.placeId = undefined;
|
|
27
29
|
this.address = undefined;
|
|
28
30
|
this.addressText = undefined;
|
|
29
31
|
this.startTime = undefined;
|
|
30
32
|
this.endTime = undefined;
|
|
33
|
+
this.confirmationTime = undefined;
|
|
34
|
+
this.cancellationTimestamp = undefined;
|
|
35
|
+
this.confirmationId = undefined;
|
|
36
|
+
this.duration = undefined;
|
|
37
|
+
this.allDay = undefined;
|
|
31
38
|
this.details = undefined;
|
|
32
39
|
this.wasMigrated = undefined;
|
|
33
40
|
this.agendaId = undefined;
|
|
@@ -35,6 +42,7 @@ export class DecryptedCalendarItem {
|
|
|
35
42
|
this.availabilitiesAssignmentStrategy = undefined;
|
|
36
43
|
this.recurrenceId = undefined;
|
|
37
44
|
this.meetingTags = [];
|
|
45
|
+
this.properties = [];
|
|
38
46
|
this.secretForeignKeys = [];
|
|
39
47
|
this.cryptedForeignKeys = {};
|
|
40
48
|
this.delegations = {};
|
|
@@ -71,6 +79,8 @@ export class DecryptedCalendarItem {
|
|
|
71
79
|
this.important = partial.important;
|
|
72
80
|
if ('homeVisit' in partial)
|
|
73
81
|
this.homeVisit = partial.homeVisit;
|
|
82
|
+
if ('phoneNumber' in partial)
|
|
83
|
+
this.phoneNumber = partial.phoneNumber;
|
|
74
84
|
if ('placeId' in partial)
|
|
75
85
|
this.placeId = partial.placeId;
|
|
76
86
|
if ('address' in partial)
|
|
@@ -81,6 +91,16 @@ export class DecryptedCalendarItem {
|
|
|
81
91
|
this.startTime = partial.startTime;
|
|
82
92
|
if ('endTime' in partial)
|
|
83
93
|
this.endTime = partial.endTime;
|
|
94
|
+
if ('confirmationTime' in partial)
|
|
95
|
+
this.confirmationTime = partial.confirmationTime;
|
|
96
|
+
if ('cancellationTimestamp' in partial)
|
|
97
|
+
this.cancellationTimestamp = partial.cancellationTimestamp;
|
|
98
|
+
if ('confirmationId' in partial)
|
|
99
|
+
this.confirmationId = partial.confirmationId;
|
|
100
|
+
if ('duration' in partial)
|
|
101
|
+
this.duration = partial.duration;
|
|
102
|
+
if ('allDay' in partial)
|
|
103
|
+
this.allDay = partial.allDay;
|
|
84
104
|
if ('details' in partial)
|
|
85
105
|
this.details = partial.details;
|
|
86
106
|
if ('wasMigrated' in partial)
|
|
@@ -95,6 +115,8 @@ export class DecryptedCalendarItem {
|
|
|
95
115
|
this.recurrenceId = partial.recurrenceId;
|
|
96
116
|
if ('meetingTags' in partial && partial.meetingTags !== undefined)
|
|
97
117
|
this.meetingTags = partial.meetingTags;
|
|
118
|
+
if ('properties' in partial && partial.properties !== undefined)
|
|
119
|
+
this.properties = partial.properties;
|
|
98
120
|
if ('secretForeignKeys' in partial && partial.secretForeignKeys !== undefined)
|
|
99
121
|
this.secretForeignKeys = partial.secretForeignKeys;
|
|
100
122
|
if ('cryptedForeignKeys' in partial && partial.cryptedForeignKeys !== undefined)
|
|
@@ -135,6 +157,8 @@ export class DecryptedCalendarItem {
|
|
|
135
157
|
res['important'] = this.important;
|
|
136
158
|
if (this.homeVisit != undefined)
|
|
137
159
|
res['homeVisit'] = this.homeVisit;
|
|
160
|
+
if (this.phoneNumber != undefined)
|
|
161
|
+
res['phoneNumber'] = this.phoneNumber;
|
|
138
162
|
if (this.placeId != undefined)
|
|
139
163
|
res['placeId'] = this.placeId;
|
|
140
164
|
if (this.address != undefined)
|
|
@@ -145,6 +169,16 @@ export class DecryptedCalendarItem {
|
|
|
145
169
|
res['startTime'] = this.startTime;
|
|
146
170
|
if (this.endTime != undefined)
|
|
147
171
|
res['endTime'] = this.endTime;
|
|
172
|
+
if (this.confirmationTime != undefined)
|
|
173
|
+
res['confirmationTime'] = this.confirmationTime;
|
|
174
|
+
if (this.cancellationTimestamp != undefined)
|
|
175
|
+
res['cancellationTimestamp'] = this.cancellationTimestamp;
|
|
176
|
+
if (this.confirmationId != undefined)
|
|
177
|
+
res['confirmationId'] = this.confirmationId;
|
|
178
|
+
if (this.duration != undefined)
|
|
179
|
+
res['duration'] = this.duration;
|
|
180
|
+
if (this.allDay != undefined)
|
|
181
|
+
res['allDay'] = this.allDay;
|
|
148
182
|
if (this.details != undefined)
|
|
149
183
|
res['details'] = this.details;
|
|
150
184
|
if (this.wasMigrated != undefined)
|
|
@@ -158,6 +192,7 @@ export class DecryptedCalendarItem {
|
|
|
158
192
|
if (this.recurrenceId != undefined)
|
|
159
193
|
res['recurrenceId'] = this.recurrenceId;
|
|
160
194
|
res['meetingTags'] = this.meetingTags.map((x0) => x0.toJSON());
|
|
195
|
+
res['properties'] = this.properties.map((x0) => x0.toJSON());
|
|
161
196
|
res['secretForeignKeys'] = this.secretForeignKeys.map((x0) => x0);
|
|
162
197
|
res['cryptedForeignKeys'] = Object.fromEntries(Object.entries(this.cryptedForeignKeys).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
|
|
163
198
|
res['delegations'] = Object.fromEntries(Object.entries(this.delegations).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
|
|
@@ -190,11 +225,17 @@ export class DecryptedCalendarItem {
|
|
|
190
225
|
masterCalendarItemId: expectString(extractEntry(jCpy, 'masterCalendarItemId', false, path), true, [...path, ".masterCalendarItemId"]),
|
|
191
226
|
important: expectBoolean(extractEntry(jCpy, 'important', false, path), true, [...path, ".important"]),
|
|
192
227
|
homeVisit: expectBoolean(extractEntry(jCpy, 'homeVisit', false, path), true, [...path, ".homeVisit"]),
|
|
228
|
+
phoneNumber: expectString(extractEntry(jCpy, 'phoneNumber', false, path), true, [...path, ".phoneNumber"]),
|
|
193
229
|
placeId: expectString(extractEntry(jCpy, 'placeId', false, path), true, [...path, ".placeId"]),
|
|
194
230
|
address: expectObject(extractEntry(jCpy, 'address', false, path), true, ignoreUnknownKeys, [...path, ".address"], DecryptedAddress.fromJSON),
|
|
195
231
|
addressText: expectString(extractEntry(jCpy, 'addressText', false, path), true, [...path, ".addressText"]),
|
|
196
232
|
startTime: expectNumber(extractEntry(jCpy, 'startTime', false, path), true, true, [...path, ".startTime"]),
|
|
197
233
|
endTime: expectNumber(extractEntry(jCpy, 'endTime', false, path), true, true, [...path, ".endTime"]),
|
|
234
|
+
confirmationTime: expectNumber(extractEntry(jCpy, 'confirmationTime', false, path), true, true, [...path, ".confirmationTime"]),
|
|
235
|
+
cancellationTimestamp: expectNumber(extractEntry(jCpy, 'cancellationTimestamp', false, path), true, true, [...path, ".cancellationTimestamp"]),
|
|
236
|
+
confirmationId: expectString(extractEntry(jCpy, 'confirmationId', false, path), true, [...path, ".confirmationId"]),
|
|
237
|
+
duration: expectNumber(extractEntry(jCpy, 'duration', false, path), true, true, [...path, ".duration"]),
|
|
238
|
+
allDay: expectBoolean(extractEntry(jCpy, 'allDay', false, path), true, [...path, ".allDay"]),
|
|
198
239
|
details: expectString(extractEntry(jCpy, 'details', false, path), true, [...path, ".details"]),
|
|
199
240
|
wasMigrated: expectBoolean(extractEntry(jCpy, 'wasMigrated', false, path), true, [...path, ".wasMigrated"]),
|
|
200
241
|
agendaId: expectString(extractEntry(jCpy, 'agendaId', false, path), true, [...path, ".agendaId"]),
|
|
@@ -202,6 +243,7 @@ export class DecryptedCalendarItem {
|
|
|
202
243
|
availabilitiesAssignmentStrategy: expectStringEnum(extractEntry(jCpy, 'availabilitiesAssignmentStrategy', false, path), true, [...path, ".availabilitiesAssignmentStrategy"], CalendarItem_.AvailabilitiesAssignmentStrategy, 'CalendarItem.AvailabilitiesAssignmentStrategy'),
|
|
203
244
|
recurrenceId: expectString(extractEntry(jCpy, 'recurrenceId', false, path), true, [...path, ".recurrenceId"]),
|
|
204
245
|
meetingTags: expectArray(extractEntry(jCpy, 'meetingTags', false, path), false, [...path, ".meetingTags"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedCalendarItemTag.fromJSON)),
|
|
246
|
+
properties: expectArray(extractEntry(jCpy, 'properties', false, path), false, [...path, ".properties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
|
|
205
247
|
secretForeignKeys: expectArray(extractEntry(jCpy, 'secretForeignKeys', false, path), false, [...path, ".secretForeignKeys"], (x0, p0) => expectString(x0, false, p0)),
|
|
206
248
|
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))),
|
|
207
249
|
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))),
|
|
@@ -233,11 +275,17 @@ export class EncryptedCalendarItem {
|
|
|
233
275
|
this.masterCalendarItemId = undefined;
|
|
234
276
|
this.important = undefined;
|
|
235
277
|
this.homeVisit = undefined;
|
|
278
|
+
this.phoneNumber = undefined;
|
|
236
279
|
this.placeId = undefined;
|
|
237
280
|
this.address = undefined;
|
|
238
281
|
this.addressText = undefined;
|
|
239
282
|
this.startTime = undefined;
|
|
240
283
|
this.endTime = undefined;
|
|
284
|
+
this.confirmationTime = undefined;
|
|
285
|
+
this.cancellationTimestamp = undefined;
|
|
286
|
+
this.confirmationId = undefined;
|
|
287
|
+
this.duration = undefined;
|
|
288
|
+
this.allDay = undefined;
|
|
241
289
|
this.details = undefined;
|
|
242
290
|
this.wasMigrated = undefined;
|
|
243
291
|
this.agendaId = undefined;
|
|
@@ -245,6 +293,7 @@ export class EncryptedCalendarItem {
|
|
|
245
293
|
this.availabilitiesAssignmentStrategy = undefined;
|
|
246
294
|
this.recurrenceId = undefined;
|
|
247
295
|
this.meetingTags = [];
|
|
296
|
+
this.properties = [];
|
|
248
297
|
this.secretForeignKeys = [];
|
|
249
298
|
this.cryptedForeignKeys = {};
|
|
250
299
|
this.delegations = {};
|
|
@@ -281,6 +330,8 @@ export class EncryptedCalendarItem {
|
|
|
281
330
|
this.important = partial.important;
|
|
282
331
|
if ('homeVisit' in partial)
|
|
283
332
|
this.homeVisit = partial.homeVisit;
|
|
333
|
+
if ('phoneNumber' in partial)
|
|
334
|
+
this.phoneNumber = partial.phoneNumber;
|
|
284
335
|
if ('placeId' in partial)
|
|
285
336
|
this.placeId = partial.placeId;
|
|
286
337
|
if ('address' in partial)
|
|
@@ -291,6 +342,16 @@ export class EncryptedCalendarItem {
|
|
|
291
342
|
this.startTime = partial.startTime;
|
|
292
343
|
if ('endTime' in partial)
|
|
293
344
|
this.endTime = partial.endTime;
|
|
345
|
+
if ('confirmationTime' in partial)
|
|
346
|
+
this.confirmationTime = partial.confirmationTime;
|
|
347
|
+
if ('cancellationTimestamp' in partial)
|
|
348
|
+
this.cancellationTimestamp = partial.cancellationTimestamp;
|
|
349
|
+
if ('confirmationId' in partial)
|
|
350
|
+
this.confirmationId = partial.confirmationId;
|
|
351
|
+
if ('duration' in partial)
|
|
352
|
+
this.duration = partial.duration;
|
|
353
|
+
if ('allDay' in partial)
|
|
354
|
+
this.allDay = partial.allDay;
|
|
294
355
|
if ('details' in partial)
|
|
295
356
|
this.details = partial.details;
|
|
296
357
|
if ('wasMigrated' in partial)
|
|
@@ -305,6 +366,8 @@ export class EncryptedCalendarItem {
|
|
|
305
366
|
this.recurrenceId = partial.recurrenceId;
|
|
306
367
|
if ('meetingTags' in partial && partial.meetingTags !== undefined)
|
|
307
368
|
this.meetingTags = partial.meetingTags;
|
|
369
|
+
if ('properties' in partial && partial.properties !== undefined)
|
|
370
|
+
this.properties = partial.properties;
|
|
308
371
|
if ('secretForeignKeys' in partial && partial.secretForeignKeys !== undefined)
|
|
309
372
|
this.secretForeignKeys = partial.secretForeignKeys;
|
|
310
373
|
if ('cryptedForeignKeys' in partial && partial.cryptedForeignKeys !== undefined)
|
|
@@ -345,6 +408,8 @@ export class EncryptedCalendarItem {
|
|
|
345
408
|
res['important'] = this.important;
|
|
346
409
|
if (this.homeVisit != undefined)
|
|
347
410
|
res['homeVisit'] = this.homeVisit;
|
|
411
|
+
if (this.phoneNumber != undefined)
|
|
412
|
+
res['phoneNumber'] = this.phoneNumber;
|
|
348
413
|
if (this.placeId != undefined)
|
|
349
414
|
res['placeId'] = this.placeId;
|
|
350
415
|
if (this.address != undefined)
|
|
@@ -355,6 +420,16 @@ export class EncryptedCalendarItem {
|
|
|
355
420
|
res['startTime'] = this.startTime;
|
|
356
421
|
if (this.endTime != undefined)
|
|
357
422
|
res['endTime'] = this.endTime;
|
|
423
|
+
if (this.confirmationTime != undefined)
|
|
424
|
+
res['confirmationTime'] = this.confirmationTime;
|
|
425
|
+
if (this.cancellationTimestamp != undefined)
|
|
426
|
+
res['cancellationTimestamp'] = this.cancellationTimestamp;
|
|
427
|
+
if (this.confirmationId != undefined)
|
|
428
|
+
res['confirmationId'] = this.confirmationId;
|
|
429
|
+
if (this.duration != undefined)
|
|
430
|
+
res['duration'] = this.duration;
|
|
431
|
+
if (this.allDay != undefined)
|
|
432
|
+
res['allDay'] = this.allDay;
|
|
358
433
|
if (this.details != undefined)
|
|
359
434
|
res['details'] = this.details;
|
|
360
435
|
if (this.wasMigrated != undefined)
|
|
@@ -368,6 +443,7 @@ export class EncryptedCalendarItem {
|
|
|
368
443
|
if (this.recurrenceId != undefined)
|
|
369
444
|
res['recurrenceId'] = this.recurrenceId;
|
|
370
445
|
res['meetingTags'] = this.meetingTags.map((x0) => x0.toJSON());
|
|
446
|
+
res['properties'] = this.properties.map((x0) => x0.toJSON());
|
|
371
447
|
res['secretForeignKeys'] = this.secretForeignKeys.map((x0) => x0);
|
|
372
448
|
res['cryptedForeignKeys'] = Object.fromEntries(Object.entries(this.cryptedForeignKeys).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
|
|
373
449
|
res['delegations'] = Object.fromEntries(Object.entries(this.delegations).map(([k0, v0]) => [k0, v0.map((x1) => x1.toJSON())]));
|
|
@@ -400,11 +476,17 @@ export class EncryptedCalendarItem {
|
|
|
400
476
|
masterCalendarItemId: expectString(extractEntry(jCpy, 'masterCalendarItemId', false, path), true, [...path, ".masterCalendarItemId"]),
|
|
401
477
|
important: expectBoolean(extractEntry(jCpy, 'important', false, path), true, [...path, ".important"]),
|
|
402
478
|
homeVisit: expectBoolean(extractEntry(jCpy, 'homeVisit', false, path), true, [...path, ".homeVisit"]),
|
|
479
|
+
phoneNumber: expectString(extractEntry(jCpy, 'phoneNumber', false, path), true, [...path, ".phoneNumber"]),
|
|
403
480
|
placeId: expectString(extractEntry(jCpy, 'placeId', false, path), true, [...path, ".placeId"]),
|
|
404
481
|
address: expectObject(extractEntry(jCpy, 'address', false, path), true, ignoreUnknownKeys, [...path, ".address"], EncryptedAddress.fromJSON),
|
|
405
482
|
addressText: expectString(extractEntry(jCpy, 'addressText', false, path), true, [...path, ".addressText"]),
|
|
406
483
|
startTime: expectNumber(extractEntry(jCpy, 'startTime', false, path), true, true, [...path, ".startTime"]),
|
|
407
484
|
endTime: expectNumber(extractEntry(jCpy, 'endTime', false, path), true, true, [...path, ".endTime"]),
|
|
485
|
+
confirmationTime: expectNumber(extractEntry(jCpy, 'confirmationTime', false, path), true, true, [...path, ".confirmationTime"]),
|
|
486
|
+
cancellationTimestamp: expectNumber(extractEntry(jCpy, 'cancellationTimestamp', false, path), true, true, [...path, ".cancellationTimestamp"]),
|
|
487
|
+
confirmationId: expectString(extractEntry(jCpy, 'confirmationId', false, path), true, [...path, ".confirmationId"]),
|
|
488
|
+
duration: expectNumber(extractEntry(jCpy, 'duration', false, path), true, true, [...path, ".duration"]),
|
|
489
|
+
allDay: expectBoolean(extractEntry(jCpy, 'allDay', false, path), true, [...path, ".allDay"]),
|
|
408
490
|
details: expectString(extractEntry(jCpy, 'details', false, path), true, [...path, ".details"]),
|
|
409
491
|
wasMigrated: expectBoolean(extractEntry(jCpy, 'wasMigrated', false, path), true, [...path, ".wasMigrated"]),
|
|
410
492
|
agendaId: expectString(extractEntry(jCpy, 'agendaId', false, path), true, [...path, ".agendaId"]),
|
|
@@ -412,6 +494,7 @@ export class EncryptedCalendarItem {
|
|
|
412
494
|
availabilitiesAssignmentStrategy: expectStringEnum(extractEntry(jCpy, 'availabilitiesAssignmentStrategy', false, path), true, [...path, ".availabilitiesAssignmentStrategy"], CalendarItem_.AvailabilitiesAssignmentStrategy, 'CalendarItem.AvailabilitiesAssignmentStrategy'),
|
|
413
495
|
recurrenceId: expectString(extractEntry(jCpy, 'recurrenceId', false, path), true, [...path, ".recurrenceId"]),
|
|
414
496
|
meetingTags: expectArray(extractEntry(jCpy, 'meetingTags', false, path), false, [...path, ".meetingTags"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedCalendarItemTag.fromJSON)),
|
|
497
|
+
properties: expectArray(extractEntry(jCpy, 'properties', false, path), false, [...path, ".properties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedPropertyStub.fromJSON)),
|
|
415
498
|
secretForeignKeys: expectArray(extractEntry(jCpy, 'secretForeignKeys', false, path), false, [...path, ".secretForeignKeys"], (x0, p0) => expectString(x0, false, p0)),
|
|
416
499
|
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))),
|
|
417
500
|
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))),
|
package/model/Code.d.mts
CHANGED
package/model/Code.mjs
CHANGED
|
@@ -10,7 +10,7 @@ export class Code {
|
|
|
10
10
|
this.type = undefined;
|
|
11
11
|
this.code = undefined;
|
|
12
12
|
this.version = undefined;
|
|
13
|
-
this.label =
|
|
13
|
+
this.label = {};
|
|
14
14
|
this.author = undefined;
|
|
15
15
|
this.regions = [];
|
|
16
16
|
this.links = [];
|
|
@@ -30,7 +30,7 @@ export class Code {
|
|
|
30
30
|
this.code = partial.code;
|
|
31
31
|
if ('version' in partial)
|
|
32
32
|
this.version = partial.version;
|
|
33
|
-
if ('label' in partial)
|
|
33
|
+
if ('label' in partial && partial.label !== undefined)
|
|
34
34
|
this.label = partial.label;
|
|
35
35
|
if ('author' in partial)
|
|
36
36
|
this.author = partial.author;
|
|
@@ -60,8 +60,7 @@ export class Code {
|
|
|
60
60
|
res['code'] = this.code;
|
|
61
61
|
if (this.version != undefined)
|
|
62
62
|
res['version'] = this.version;
|
|
63
|
-
|
|
64
|
-
res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
|
|
63
|
+
res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
|
|
65
64
|
if (this.author != undefined)
|
|
66
65
|
res['author'] = this.author;
|
|
67
66
|
res['regions'] = this.regions.map((x0) => x0);
|
|
@@ -83,7 +82,7 @@ export class Code {
|
|
|
83
82
|
type: expectString(extractEntry(jCpy, 'type', false, path), true, [...path, ".type"]),
|
|
84
83
|
code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
|
|
85
84
|
version: expectString(extractEntry(jCpy, 'version', false, path), true, [...path, ".version"]),
|
|
86
|
-
label: expectMap(extractEntry(jCpy, 'label', false, path),
|
|
85
|
+
label: expectMap(extractEntry(jCpy, 'label', false, path), false, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
87
86
|
author: expectString(extractEntry(jCpy, 'author', false, path), true, [...path, ".author"]),
|
|
88
87
|
regions: expectArray(extractEntry(jCpy, 'regions', false, path), false, [...path, ".regions"], (x0, p0) => expectString(x0, false, p0)),
|
|
89
88
|
links: expectArray(extractEntry(jCpy, 'links', false, path), false, [...path, ".links"], (x0, p0) => expectString(x0, false, p0)),
|
package/model/Device.d.mts
CHANGED
|
@@ -46,7 +46,7 @@ export declare class Device implements StoredDocument, ICureDocument<string>, Na
|
|
|
46
46
|
};
|
|
47
47
|
publicKey: SpkiHexString | undefined;
|
|
48
48
|
publicKeysForOaepWithSha256: Array<SpkiHexString>;
|
|
49
|
-
cryptoActorProperties: Array<DecryptedPropertyStub
|
|
49
|
+
cryptoActorProperties: Array<DecryptedPropertyStub>;
|
|
50
50
|
readonly $ktClass: 'com.icure.cardinal.sdk.model.Device';
|
|
51
51
|
constructor(partial: Partial<Device>);
|
|
52
52
|
toJSON(): object;
|
package/model/Device.mjs
CHANGED
|
@@ -29,7 +29,7 @@ export class Device {
|
|
|
29
29
|
this.privateKeyShamirPartitions = {};
|
|
30
30
|
this.publicKey = undefined;
|
|
31
31
|
this.publicKeysForOaepWithSha256 = [];
|
|
32
|
-
this.cryptoActorProperties =
|
|
32
|
+
this.cryptoActorProperties = [];
|
|
33
33
|
this.$ktClass = 'com.icure.cardinal.sdk.model.Device';
|
|
34
34
|
this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
|
|
35
35
|
if ('rev' in partial)
|
|
@@ -76,7 +76,7 @@ export class Device {
|
|
|
76
76
|
this.publicKey = partial.publicKey;
|
|
77
77
|
if ('publicKeysForOaepWithSha256' in partial && partial.publicKeysForOaepWithSha256 !== undefined)
|
|
78
78
|
this.publicKeysForOaepWithSha256 = partial.publicKeysForOaepWithSha256;
|
|
79
|
-
if ('cryptoActorProperties' in partial)
|
|
79
|
+
if ('cryptoActorProperties' in partial && partial.cryptoActorProperties !== undefined)
|
|
80
80
|
this.cryptoActorProperties = partial.cryptoActorProperties;
|
|
81
81
|
}
|
|
82
82
|
toJSON() {
|
|
@@ -117,8 +117,7 @@ export class Device {
|
|
|
117
117
|
if (this.publicKey != undefined)
|
|
118
118
|
res['publicKey'] = this.publicKey;
|
|
119
119
|
res['publicKeysForOaepWithSha256'] = this.publicKeysForOaepWithSha256.map((x0) => x0);
|
|
120
|
-
|
|
121
|
-
res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
|
|
120
|
+
res['cryptoActorProperties'] = this.cryptoActorProperties.map((x0) => x0.toJSON());
|
|
122
121
|
res['$ktClass'] = 'com.icure.cardinal.sdk.model.Device';
|
|
123
122
|
return res;
|
|
124
123
|
}
|
|
@@ -152,7 +151,7 @@ export class Device {
|
|
|
152
151
|
privateKeyShamirPartitions: expectMap(extractEntry(jCpy, 'privateKeyShamirPartitions', false, path), false, [...path, ".privateKeyShamirPartitions"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
153
152
|
publicKey: expectString(extractEntry(jCpy, 'publicKey', false, path), true, [...path, ".publicKey"]),
|
|
154
153
|
publicKeysForOaepWithSha256: expectArray(extractEntry(jCpy, 'publicKeysForOaepWithSha256', false, path), false, [...path, ".publicKeysForOaepWithSha256"], (x0, p0) => expectString(x0, false, p0)),
|
|
155
|
-
cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path),
|
|
154
|
+
cryptoActorProperties: expectArray(extractEntry(jCpy, 'cryptoActorProperties', false, path), false, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
|
|
156
155
|
});
|
|
157
156
|
if (!ignoreUnknownKeys) {
|
|
158
157
|
const unused = Object.keys(jCpy);
|
|
@@ -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
|
-
}
|
|
48
|
+
};
|
|
49
49
|
properties: Array<DecryptedPropertyStub>;
|
|
50
50
|
public: boolean;
|
|
51
51
|
publicProperties: Array<DecryptedPropertyStub> | undefined;
|
|
52
|
-
cryptoActorProperties: Array<DecryptedPropertyStub
|
|
52
|
+
cryptoActorProperties: Array<DecryptedPropertyStub>;
|
|
53
53
|
hcPartyKeys: {
|
|
54
54
|
[key: string]: Array<HexString>;
|
|
55
55
|
};
|