@icure/cardinal-sdk 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/api/FormApi.d.mts +2 -1
  2. package/api/FormBasicApi.d.mts +1 -0
  3. package/api/FormBasicInGroupApi.d.mts +1 -0
  4. package/api/FormInGroupApi.d.mts +2 -1
  5. package/api/FormTemplateApi.d.mts +2 -0
  6. package/api.d.mts +0 -8
  7. package/api.mjs +0 -8
  8. package/cardinal-sdk-ts.d.mts +61 -30
  9. package/cardinal-sdk-ts.mjs +39682 -39198
  10. package/cardinal-sdk.mjs +100830 -98348
  11. package/filters/DocumentFilters.d.mts +18 -0
  12. package/filters/DocumentFilters.mjs +7 -1
  13. package/filters/FormTemplateFilters.d.mts +7 -0
  14. package/filters/FormTemplateFilters.mjs +5 -0
  15. package/filters/MessageFilters.d.mts +18 -0
  16. package/filters/MessageFilters.mjs +7 -1
  17. package/filters.d.mts +1 -2
  18. package/filters.mjs +1 -2
  19. package/kotlin-kotlin-stdlib.mjs +4 -4
  20. package/kotlinx-coroutines-core.mjs +1 -1
  21. package/model/CalendarItem.d.mts +22 -0
  22. package/model/CalendarItem.mjs +83 -0
  23. package/model/Code.d.mts +1 -1
  24. package/model/Code.mjs +4 -5
  25. package/model/Device.d.mts +1 -1
  26. package/model/Device.mjs +4 -5
  27. package/model/Group.d.mts +15 -0
  28. package/model/Group.mjs +69 -0
  29. package/model/HealthElement.d.mts +3 -0
  30. package/model/HealthElement.mjs +12 -0
  31. package/model/HealthcareParty.d.mts +2 -2
  32. package/model/HealthcareParty.mjs +7 -9
  33. package/model/Message.d.mts +4 -0
  34. package/model/Message.mjs +11 -0
  35. package/model/Patient.d.mts +3 -2
  36. package/model/Patient.mjs +8 -10
  37. package/model/User.d.mts +2 -0
  38. package/model/User.mjs +12 -0
  39. package/model/base/CryptoActor.mjs +4 -4
  40. package/model/embed/form/template/Field.d.mts +1 -1
  41. package/model/embed/form/template/StructureElement.mjs +5 -5
  42. package/model/filter/predicate/Predicate.d.mts +1 -1
  43. package/model/filter/predicate/Predicate.mjs +1 -1
  44. package/model.d.mts +0 -18
  45. package/model.mjs +0 -18
  46. package/package.json +1 -1
  47. package/sdk/CardinalSdk.d.mts +0 -24
  48. package/api/ApplicationSettingsApi.d.mts +0 -6
  49. package/api/ApplicationSettingsApi.mjs +0 -1
  50. package/api/DocumentTemplateApi.d.mts +0 -22
  51. package/api/DocumentTemplateApi.mjs +0 -1
  52. package/api/EntityReferenceApi.d.mts +0 -5
  53. package/api/EntityReferenceApi.mjs +0 -1
  54. package/api/EntityTemplateApi.d.mts +0 -24
  55. package/api/EntityTemplateApi.mjs +0 -1
  56. package/api/KeywordApi.d.mts +0 -14
  57. package/api/KeywordApi.mjs +0 -1
  58. package/api/MedicalLocationApi.d.mts +0 -17
  59. package/api/MedicalLocationApi.mjs +0 -1
  60. package/api/TarificationApi.d.mts +0 -27
  61. package/api/TarificationApi.mjs +0 -1
  62. package/api/TimeTableApi.d.mts +0 -26
  63. package/api/TimeTableApi.mjs +0 -1
  64. package/filters/MedicalLocationFilters.d.mts +0 -8
  65. package/filters/MedicalLocationFilters.mjs +0 -6
  66. package/filters/TimeTableFilters.d.mts +0 -12
  67. package/filters/TimeTableFilters.mjs +0 -6
  68. package/model/ApplicationSettings.d.mts +0 -87
  69. package/model/ApplicationSettings.mjs +0 -256
  70. package/model/DocumentTemplate.d.mts +0 -35
  71. package/model/DocumentTemplate.mjs +0 -162
  72. package/model/EntityReference.d.mts +0 -10
  73. package/model/EntityReference.mjs +0 -46
  74. package/model/EntityTemplate.d.mts +0 -16
  75. package/model/EntityTemplate.mjs +0 -81
  76. package/model/Keyword.d.mts +0 -23
  77. package/model/Keyword.mjs +0 -99
  78. package/model/ListOfIds.d.mts +0 -6
  79. package/model/ListOfIds.mjs +0 -28
  80. package/model/MedicalLocation.d.mts +0 -28
  81. package/model/MedicalLocation.mjs +0 -116
  82. package/model/Tarification.d.mts +0 -50
  83. package/model/Tarification.mjs +0 -178
  84. package/model/TimeTable.d.mts +0 -25
  85. package/model/TimeTable.mjs +0 -111
  86. package/model/base/AppendixType.d.mts +0 -5
  87. package/model/base/AppendixType.mjs +0 -7
  88. package/model/base/CodeFlag.d.mts +0 -80
  89. package/model/base/CodeFlag.mjs +0 -82
  90. package/model/base/ReportVersion.d.mts +0 -3
  91. package/model/base/ReportVersion.mjs +0 -5
  92. package/model/embed/KeywordSubword.d.mts +0 -8
  93. package/model/embed/KeywordSubword.mjs +0 -35
  94. package/model/embed/LetterValue.d.mts +0 -9
  95. package/model/embed/LetterValue.mjs +0 -47
  96. package/model/embed/Periodicity.d.mts +0 -8
  97. package/model/embed/Periodicity.mjs +0 -36
  98. package/model/embed/TimeTableHour.d.mts +0 -7
  99. package/model/embed/TimeTableHour.mjs +0 -35
  100. package/model/embed/TimeTableItem.d.mts +0 -19
  101. package/model/embed/TimeTableItem.mjs +0 -96
  102. package/model/embed/Valorisation.d.mts +0 -56
  103. package/model/embed/Valorisation.mjs +0 -188
@@ -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 {};
@@ -0,0 +1,5 @@
1
+ // auto-generated file
2
+ import { InternalFormTemplateFiltersObj } from '../cardinal-sdk-ts.mjs';
3
+ export const FormTemplateFilters = {
4
+ bySpecialtyCode: (specialtyCode) => InternalFormTemplateFiltersObj.getInstance().bySpecialtyCode(specialtyCode)
5
+ };
@@ -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';
@@ -88,8 +88,8 @@ initMetadataForInterface(Entry, 'Entry');
88
88
  initMetadataForInterface(KtMap, 'Map');
89
89
  initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
90
90
  initMetadataForInterface(MutableIterable, 'MutableIterable');
91
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
92
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
91
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
92
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
93
93
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
94
94
  initMetadataForCompanion(Companion_0);
95
95
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
@@ -110,7 +110,7 @@ initMetadataForInterface(AutoCloseable, 'AutoCloseable');
110
110
  initMetadataForInterface(Comparator, 'Comparator');
111
111
  initMetadataForObject(Unit, 'Unit');
112
112
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
113
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
113
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
114
114
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
115
115
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
116
116
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -123,7 +123,7 @@ initMetadataForCompanion(Companion_2);
123
123
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
124
124
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
125
125
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
126
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
126
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
127
127
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
128
128
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
129
129
  initMetadataForClass(HashMapKeysDefault$iterator$1);
@@ -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, SelectInstance, Waiter], [0, 2]);
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]);
@@ -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>;
@@ -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
@@ -10,7 +10,7 @@ export declare class Code implements StoredDocument, CodeIdentification<string>
10
10
  version: string | undefined;
11
11
  label: {
12
12
  [key: string]: string;
13
- } | undefined;
13
+ };
14
14
  author: string | undefined;
15
15
  regions: Array<string>;
16
16
  links: Array<string>;
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 = undefined;
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
- if (this.label != undefined)
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), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
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)),
@@ -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> | undefined;
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 = undefined;
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
- if (this.cryptoActorProperties != undefined)
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), true, [...path, ".cryptoActorProperties"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedPropertyStub.fromJSON)),
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);
package/model/Group.d.mts CHANGED
@@ -33,7 +33,22 @@ export declare class Group implements StoredDocument, HasTags {
33
33
  minimumAuthenticationClassForElevatedPrivileges: AuthenticationClass;
34
34
  superGroup: string | undefined;
35
35
  projectId: string | undefined;
36
+ templates: Group.TemplatesConfiguration | undefined;
36
37
  constructor(partial: Partial<Group> & Pick<Group, "minimumAuthenticationClassForElevatedPrivileges">);
37
38
  toJSON(): object;
38
39
  static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Group;
39
40
  }
41
+ export declare namespace Group {
42
+ class TemplatesConfiguration {
43
+ specId: string;
44
+ emailSender: string | undefined;
45
+ smsSender: string | undefined;
46
+ emailVerificationTemplateId: string | undefined;
47
+ mobilePhoneVerificationTemplateId: string | undefined;
48
+ existingEmailNotificationTemplateId: string | undefined;
49
+ existingMobilePhoneNotificationTemplateId: string | undefined;
50
+ constructor(partial: Partial<TemplatesConfiguration> & Pick<TemplatesConfiguration, "specId">);
51
+ toJSON(): object;
52
+ static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): TemplatesConfiguration;
53
+ }
54
+ }