@icure/cardinal-sdk 2.8.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/InsuranceApi.d.mts +5 -0
- package/api/InsuranceInGroupApi.d.mts +5 -0
- package/cardinal-sdk-ts.d.mts +19 -0
- package/cardinal-sdk-ts.mjs +40347 -39592
- package/cardinal-sdk.mjs +102471 -99681
- package/filters/InsuranceFilters.d.mts +54 -0
- package/filters/InsuranceFilters.mjs +8 -0
- package/filters.d.mts +1 -0
- package/filters.mjs +1 -0
- package/model/Contact.d.mts +5 -9
- package/model/Contact.mjs +3 -3
- package/model/HealthElement.d.mts +3 -3
- package/model/HealthElement.mjs +3 -3
- package/model/HealthcareParty.d.mts +2 -1
- package/model/Insurance.d.mts +15 -10
- package/model/Insurance.mjs +24 -22
- package/model/Invoice.d.mts +2 -6
- package/model/MaintenanceTask.d.mts +2 -6
- package/model/Patient.d.mts +5 -9
- package/model/Patient.mjs +3 -3
- package/model/User.d.mts +2 -1
- package/model/base/HasIdentifier.d.mts +10 -0
- package/model/base/HasIdentifier.mjs +1 -0
- package/model/embed/Address.d.mts +5 -5
- package/model/embed/Address.mjs +3 -3
- package/model/embed/Annotation.d.mts +127 -4
- package/model/embed/Annotation.mjs +137 -4
- package/model/embed/Medication.d.mts +85 -0
- package/model/embed/Medication.mjs +85 -0
- package/model/embed/ReferenceRange.d.mts +2 -2
- package/model/embed/ReferenceRange.mjs +2 -2
- package/model/embed/Service.d.mts +5 -10
- package/model/embed/Service.mjs +3 -3
- package/model.d.mts +1 -0
- package/model.mjs +1 -0
- package/options/SdkOptions.d.mts +18 -12
- package/package.json +1 -1
package/options/SdkOptions.d.mts
CHANGED
|
@@ -66,13 +66,17 @@ export interface SdkOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
readonly jsonPatcher?: JsonPatcher;
|
|
68
68
|
/**
|
|
69
|
-
* If true
|
|
69
|
+
* If true, on deserialization of data coming from the backend or from the decrypted content of an entity any
|
|
70
|
+
* field that is not present in the data model will be ignored.
|
|
70
71
|
*
|
|
71
|
-
*
|
|
72
|
+
* Note that updating an entity where some fields were ignored during deserialization will result in data loss.
|
|
72
73
|
*
|
|
73
|
-
*
|
|
74
|
+
* If the ignored keys are coming from the encrypted content of an entity you can provide a {@link jsonPatcher}
|
|
75
|
+
* to specify how the unknown fields should be migrated.
|
|
76
|
+
*
|
|
77
|
+
* This behaviour is disabled by default (strict by default).
|
|
74
78
|
*/
|
|
75
|
-
readonly
|
|
79
|
+
readonly ignoreUnknownFields?: boolean;
|
|
76
80
|
/**
|
|
77
81
|
* If not null the SDK will immediately set the data owner scope to the provided value after login.
|
|
78
82
|
*/
|
|
@@ -98,13 +102,14 @@ export interface BasicSdkOptions {
|
|
|
98
102
|
*/
|
|
99
103
|
readonly groupSelector?: (availableGroups: Array<UserGroup>) => Promise<string>;
|
|
100
104
|
/**
|
|
101
|
-
* If true
|
|
105
|
+
* If true, on deserialization of data coming from the backend or from the decrypted content of an entity any
|
|
106
|
+
* field that is not present in the data model will be ignored.
|
|
102
107
|
*
|
|
103
|
-
*
|
|
108
|
+
* Note that updating an entity where some fields were ignored during deserialization will result in data loss.
|
|
104
109
|
*
|
|
105
|
-
* This
|
|
110
|
+
* This behaviour is disabled by default (strict by default).
|
|
106
111
|
*/
|
|
107
|
-
readonly
|
|
112
|
+
readonly ignoreUnknownFields?: boolean;
|
|
108
113
|
/**
|
|
109
114
|
* If not null the SDK will immediately set the data owner scope to the provided value after login.
|
|
110
115
|
*/
|
|
@@ -141,13 +146,14 @@ export interface BasicToFullSdkOptions {
|
|
|
141
146
|
}
|
|
142
147
|
export interface AnonymousSdkOptions {
|
|
143
148
|
/**
|
|
144
|
-
* If true
|
|
149
|
+
* If true, on deserialization of data coming from the backend or from the decrypted content of an entity any
|
|
150
|
+
* field that is not present in the data model will be ignored.
|
|
145
151
|
*
|
|
146
|
-
*
|
|
152
|
+
* Note that updating an entity where some fields were ignored during deserialization will result in data loss.
|
|
147
153
|
*
|
|
148
|
-
* This
|
|
154
|
+
* This behaviour is disabled by default (strict by default).
|
|
149
155
|
*/
|
|
150
|
-
readonly
|
|
156
|
+
readonly ignoreUnknownFields?: boolean;
|
|
151
157
|
}
|
|
152
158
|
export interface EncryptedFieldsConfiguration {
|
|
153
159
|
readonly accessLog?: Array<string>;
|