@icure/cardinal-sdk 2.13.4 → 2.13.6
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/cardinal-sdk-ts.mjs +43188 -43001
- package/cardinal-sdk.mjs +86849 -86111
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/Group.d.mts +9 -0
- package/model/Group.mjs +14 -0
- package/model/base/CryptoActor.mjs +2 -2
- package/model/embed/GroupStatus.d.mts +11 -0
- package/model/embed/GroupStatus.mjs +13 -0
- package/model/embed/InvoicingCode.d.mts +15 -0
- package/model/embed/InvoicingCode.mjs +20 -0
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +7 -7
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +3 -3
- package/model.d.mts +1 -0
- package/model.mjs +1 -0
- package/options/SdkOptions.d.mts +32 -29
- package/options/SdkOptions.mjs +27 -1
- package/package.json +1 -1
- package/sdk/CardinalSdk.d.mts +3 -0
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -93,8 +93,8 @@ initMetadataForInterface(Entry, 'Entry');
|
|
|
93
93
|
initMetadataForInterface(KtMap, 'Map');
|
|
94
94
|
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
95
95
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
96
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
97
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
96
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
97
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
|
|
98
98
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
99
99
|
initMetadataForCompanion(Companion_0);
|
|
100
100
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -115,7 +115,7 @@ initMetadataForInterface(AutoCloseable, 'AutoCloseable');
|
|
|
115
115
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
116
116
|
initMetadataForObject(Unit, 'Unit');
|
|
117
117
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
118
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [
|
|
118
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
|
|
119
119
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
120
120
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
121
121
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
|
|
@@ -128,7 +128,7 @@ initMetadataForCompanion(Companion_2);
|
|
|
128
128
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
|
|
129
129
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
|
|
130
130
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
131
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
131
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
|
|
132
132
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
|
|
133
133
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
134
134
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
@@ -235,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.s1d(cause) : $super.s1d.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.s1d(cause) : $super.s1d.call(this, cause);
|
|
253
|
-
}
|
|
254
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
255
|
-
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
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, [
|
|
265
|
+
initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, 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, [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, SelectInstance, Waiter], [0, 2]);
|
|
298
298
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
299
299
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
300
300
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
package/model/Group.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { CodeStub } from './base/CodeStub.mjs';
|
|
|
3
3
|
import { HasTags } from './base/HasTags.mjs';
|
|
4
4
|
import { StoredDocument } from './base/StoredDocument.mjs';
|
|
5
5
|
import { AuthenticationClass } from './embed/AuthenticationClass.mjs';
|
|
6
|
+
import { GroupStatus } from './embed/GroupStatus.mjs';
|
|
6
7
|
import { UserType } from './embed/UserType.mjs';
|
|
7
8
|
import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
8
9
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
@@ -129,6 +130,14 @@ export declare class Group implements StoredDocument, HasTags {
|
|
|
129
130
|
* The version of the custom design doc schema to apply by default children groups on creation.
|
|
130
131
|
*/
|
|
131
132
|
defaultChildrenSchemaVersion: number | undefined;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* The commercial status of the group, derived from the group hierarchy when not explicitly set on
|
|
137
|
+
* the group.
|
|
138
|
+
* This field is read-only: it is ignored when creating or modifying a group.
|
|
139
|
+
*/
|
|
140
|
+
status: GroupStatus | undefined;
|
|
132
141
|
constructor(partial: Partial<Group> & Pick<Group, "minimumAuthenticationClassForElevatedPrivileges">);
|
|
133
142
|
toJSON(): object;
|
|
134
143
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Group;
|
package/model/Group.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { randomUuid } from '../utils/Id.mjs';
|
|
|
4
4
|
import { DecryptedPropertyStub } from './PropertyStub.mjs';
|
|
5
5
|
import { CodeStub } from './base/CodeStub.mjs';
|
|
6
6
|
import { AuthenticationClass } from './embed/AuthenticationClass.mjs';
|
|
7
|
+
import { GroupStatus } from './embed/GroupStatus.mjs';
|
|
7
8
|
import { UserType } from './embed/UserType.mjs';
|
|
8
9
|
import { ExternalJwtConfig } from './security/ExternalJwtConfig.mjs';
|
|
9
10
|
import { OperationToken } from './security/OperationToken.mjs';
|
|
@@ -114,6 +115,14 @@ export class Group {
|
|
|
114
115
|
* The version of the custom design doc schema to apply by default children groups on creation.
|
|
115
116
|
*/
|
|
116
117
|
this.defaultChildrenSchemaVersion = undefined;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
*
|
|
121
|
+
* The commercial status of the group, derived from the group hierarchy when not explicitly set on
|
|
122
|
+
* the group.
|
|
123
|
+
* This field is read-only: it is ignored when creating or modifying a group.
|
|
124
|
+
*/
|
|
125
|
+
this.status = undefined;
|
|
117
126
|
this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
|
|
118
127
|
if ('rev' in partial)
|
|
119
128
|
this.rev = partial.rev;
|
|
@@ -154,6 +163,8 @@ export class Group {
|
|
|
154
163
|
this.designDocSchemaVersions = partial.designDocSchemaVersions;
|
|
155
164
|
if ('defaultChildrenSchemaVersion' in partial)
|
|
156
165
|
this.defaultChildrenSchemaVersion = partial.defaultChildrenSchemaVersion;
|
|
166
|
+
if ('status' in partial)
|
|
167
|
+
this.status = partial.status;
|
|
157
168
|
}
|
|
158
169
|
toJSON() {
|
|
159
170
|
const res = {};
|
|
@@ -188,6 +199,8 @@ export class Group {
|
|
|
188
199
|
res['designDocSchemaVersions'] = this.designDocSchemaVersions.map((x0) => x0);
|
|
189
200
|
if (this.defaultChildrenSchemaVersion != undefined)
|
|
190
201
|
res['defaultChildrenSchemaVersion'] = this.defaultChildrenSchemaVersion;
|
|
202
|
+
if (this.status != undefined)
|
|
203
|
+
res['status'] = this.status;
|
|
191
204
|
return res;
|
|
192
205
|
}
|
|
193
206
|
static fromJSON(json, ignoreUnknownKeys = false, path = ['Group']) {
|
|
@@ -216,6 +229,7 @@ export class Group {
|
|
|
216
229
|
templates: expectObject(extractEntry(jCpy, 'templates', false, path), true, ignoreUnknownKeys, [...path, ".templates"], Group.TemplatesConfiguration.fromJSON),
|
|
217
230
|
designDocSchemaVersions: expectArray(extractEntry(jCpy, 'designDocSchemaVersions', false, path), false, [...path, ".designDocSchemaVersions"], (x0, p0) => expectNumber(x0, false, true, p0)),
|
|
218
231
|
defaultChildrenSchemaVersion: expectNumber(extractEntry(jCpy, 'defaultChildrenSchemaVersion', false, path), true, true, [...path, ".defaultChildrenSchemaVersion"]),
|
|
232
|
+
status: expectStringEnum(extractEntry(jCpy, 'status', false, path), true, [...path, ".status"], GroupStatus, 'GroupStatus'),
|
|
219
233
|
});
|
|
220
234
|
if (!ignoreUnknownKeys) {
|
|
221
235
|
const unused = Object.keys(jCpy);
|
|
@@ -7,11 +7,11 @@ export var CryptoActor;
|
|
|
7
7
|
(function (CryptoActor) {
|
|
8
8
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['CryptoActor']) {
|
|
9
9
|
switch (json.$ktClass) {
|
|
10
|
+
case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
|
|
11
|
+
case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
|
|
10
12
|
case 'com.icure.cardinal.sdk.model.DecryptedPatient': return DecryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
11
13
|
case 'com.icure.cardinal.sdk.model.EncryptedPatient': return EncryptedPatient.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
-
case 'com.icure.cardinal.sdk.model.Device': return Device.fromJSON(json, ignoreUnknownKeys);
|
|
13
14
|
case 'com.icure.cardinal.sdk.model.HealthcareParty': return HealthcareParty.fromJSON(json, ignoreUnknownKeys);
|
|
14
|
-
case 'com.icure.cardinal.sdk.model.CryptoActorStub': return CryptoActorStub.fromJSON(json, ignoreUnknownKeys);
|
|
15
15
|
default: throw new Error('Unexpected discriminator for CryptoActor: ' + json.$ktClass);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* The commercial status of a group. Groups whose status is not explicitly set are reported with
|
|
5
|
+
* the status of the
|
|
6
|
+
* first ancestor group that is [PAYING] or [FREE] ([FREE] if there is none).
|
|
7
|
+
*/
|
|
8
|
+
export declare enum GroupStatus {
|
|
9
|
+
Paying = "Paying",
|
|
10
|
+
Free = "Free"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* The commercial status of a group. Groups whose status is not explicitly set are reported with
|
|
6
|
+
* the status of the
|
|
7
|
+
* first ancestor group that is [PAYING] or [FREE] ([FREE] if there is none).
|
|
8
|
+
*/
|
|
9
|
+
export var GroupStatus;
|
|
10
|
+
(function (GroupStatus) {
|
|
11
|
+
GroupStatus["Paying"] = "Paying";
|
|
12
|
+
GroupStatus["Free"] = "Free";
|
|
13
|
+
})(GroupStatus || (GroupStatus = {}));
|
|
@@ -264,6 +264,11 @@ export interface InvoicingCode extends Encryptable {
|
|
|
264
264
|
* The insurance justification code.
|
|
265
265
|
*/
|
|
266
266
|
insuranceJustification: number | undefined;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* The reimbursement agreement number obtained during a pre-authorization.
|
|
270
|
+
*/
|
|
271
|
+
agreementNumber: string | undefined;
|
|
267
272
|
/**
|
|
268
273
|
*
|
|
269
274
|
* The reason for canceling patient intervention.
|
|
@@ -552,6 +557,11 @@ export declare class DecryptedInvoicingCode {
|
|
|
552
557
|
* The insurance justification code.
|
|
553
558
|
*/
|
|
554
559
|
insuranceJustification: number | undefined;
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* The reimbursement agreement number obtained during a pre-authorization.
|
|
563
|
+
*/
|
|
564
|
+
agreementNumber: string | undefined;
|
|
555
565
|
/**
|
|
556
566
|
*
|
|
557
567
|
* The reason for canceling patient intervention.
|
|
@@ -847,6 +857,11 @@ export declare class EncryptedInvoicingCode {
|
|
|
847
857
|
* The insurance justification code.
|
|
848
858
|
*/
|
|
849
859
|
insuranceJustification: number | undefined;
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* The reimbursement agreement number obtained during a pre-authorization.
|
|
863
|
+
*/
|
|
864
|
+
agreementNumber: string | undefined;
|
|
850
865
|
/**
|
|
851
866
|
*
|
|
852
867
|
* The reason for canceling patient intervention.
|
|
@@ -260,6 +260,11 @@ export class DecryptedInvoicingCode {
|
|
|
260
260
|
* The insurance justification code.
|
|
261
261
|
*/
|
|
262
262
|
this.insuranceJustification = undefined;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* The reimbursement agreement number obtained during a pre-authorization.
|
|
266
|
+
*/
|
|
267
|
+
this.agreementNumber = undefined;
|
|
263
268
|
/**
|
|
264
269
|
*
|
|
265
270
|
* The reason for canceling patient intervention.
|
|
@@ -389,6 +394,8 @@ export class DecryptedInvoicingCode {
|
|
|
389
394
|
this.lost = partial.lost;
|
|
390
395
|
if ('insuranceJustification' in partial)
|
|
391
396
|
this.insuranceJustification = partial.insuranceJustification;
|
|
397
|
+
if ('agreementNumber' in partial)
|
|
398
|
+
this.agreementNumber = partial.agreementNumber;
|
|
392
399
|
if ('cancelPatientInterventionReason' in partial)
|
|
393
400
|
this.cancelPatientInterventionReason = partial.cancelPatientInterventionReason;
|
|
394
401
|
if ('status' in partial)
|
|
@@ -504,6 +511,8 @@ export class DecryptedInvoicingCode {
|
|
|
504
511
|
res['lost'] = this.lost;
|
|
505
512
|
if (this.insuranceJustification != undefined)
|
|
506
513
|
res['insuranceJustification'] = this.insuranceJustification;
|
|
514
|
+
if (this.agreementNumber != undefined)
|
|
515
|
+
res['agreementNumber'] = this.agreementNumber;
|
|
507
516
|
if (this.cancelPatientInterventionReason != undefined)
|
|
508
517
|
res['cancelPatientInterventionReason'] = this.cancelPatientInterventionReason;
|
|
509
518
|
if (this.status != undefined)
|
|
@@ -574,6 +583,7 @@ export class DecryptedInvoicingCode {
|
|
|
574
583
|
archived: expectBoolean(extractEntry(jCpy, 'archived', false, path), true, [...path, ".archived"]),
|
|
575
584
|
lost: expectBoolean(extractEntry(jCpy, 'lost', false, path), true, [...path, ".lost"]),
|
|
576
585
|
insuranceJustification: expectNumber(extractEntry(jCpy, 'insuranceJustification', false, path), true, true, [...path, ".insuranceJustification"]),
|
|
586
|
+
agreementNumber: expectString(extractEntry(jCpy, 'agreementNumber', false, path), true, [...path, ".agreementNumber"]),
|
|
577
587
|
cancelPatientInterventionReason: expectNumber(extractEntry(jCpy, 'cancelPatientInterventionReason', false, path), true, true, [...path, ".cancelPatientInterventionReason"]),
|
|
578
588
|
status: expectNumber(extractEntry(jCpy, 'status', false, path), true, true, [...path, ".status"]),
|
|
579
589
|
codeLabel: expectString(extractEntry(jCpy, 'codeLabel', false, path), true, [...path, ".codeLabel"]),
|
|
@@ -847,6 +857,11 @@ export class EncryptedInvoicingCode {
|
|
|
847
857
|
* The insurance justification code.
|
|
848
858
|
*/
|
|
849
859
|
this.insuranceJustification = undefined;
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* The reimbursement agreement number obtained during a pre-authorization.
|
|
863
|
+
*/
|
|
864
|
+
this.agreementNumber = undefined;
|
|
850
865
|
/**
|
|
851
866
|
*
|
|
852
867
|
* The reason for canceling patient intervention.
|
|
@@ -976,6 +991,8 @@ export class EncryptedInvoicingCode {
|
|
|
976
991
|
this.lost = partial.lost;
|
|
977
992
|
if ('insuranceJustification' in partial)
|
|
978
993
|
this.insuranceJustification = partial.insuranceJustification;
|
|
994
|
+
if ('agreementNumber' in partial)
|
|
995
|
+
this.agreementNumber = partial.agreementNumber;
|
|
979
996
|
if ('cancelPatientInterventionReason' in partial)
|
|
980
997
|
this.cancelPatientInterventionReason = partial.cancelPatientInterventionReason;
|
|
981
998
|
if ('status' in partial)
|
|
@@ -1091,6 +1108,8 @@ export class EncryptedInvoicingCode {
|
|
|
1091
1108
|
res['lost'] = this.lost;
|
|
1092
1109
|
if (this.insuranceJustification != undefined)
|
|
1093
1110
|
res['insuranceJustification'] = this.insuranceJustification;
|
|
1111
|
+
if (this.agreementNumber != undefined)
|
|
1112
|
+
res['agreementNumber'] = this.agreementNumber;
|
|
1094
1113
|
if (this.cancelPatientInterventionReason != undefined)
|
|
1095
1114
|
res['cancelPatientInterventionReason'] = this.cancelPatientInterventionReason;
|
|
1096
1115
|
if (this.status != undefined)
|
|
@@ -1161,6 +1180,7 @@ export class EncryptedInvoicingCode {
|
|
|
1161
1180
|
archived: expectBoolean(extractEntry(jCpy, 'archived', false, path), true, [...path, ".archived"]),
|
|
1162
1181
|
lost: expectBoolean(extractEntry(jCpy, 'lost', false, path), true, [...path, ".lost"]),
|
|
1163
1182
|
insuranceJustification: expectNumber(extractEntry(jCpy, 'insuranceJustification', false, path), true, true, [...path, ".insuranceJustification"]),
|
|
1183
|
+
agreementNumber: expectString(extractEntry(jCpy, 'agreementNumber', false, path), true, [...path, ".agreementNumber"]),
|
|
1164
1184
|
cancelPatientInterventionReason: expectNumber(extractEntry(jCpy, 'cancelPatientInterventionReason', false, path), true, true, [...path, ".cancelPatientInterventionReason"]),
|
|
1165
1185
|
status: expectNumber(extractEntry(jCpy, 'status', false, path), true, true, [...path, ".status"]),
|
|
1166
1186
|
codeLabel: expectString(extractEntry(jCpy, 'codeLabel', false, path), true, [...path, ".codeLabel"]),
|
|
@@ -17,4 +17,4 @@ import { TimePicker } from './TimePicker.mjs';
|
|
|
17
17
|
* validation rules, and optional codification and tagging.
|
|
18
18
|
* /
|
|
19
19
|
*/
|
|
20
|
-
export type Field =
|
|
20
|
+
export type Field = TextField | RadioButton | NumberField | DropdownField | DateTimePicker | DatePicker | MultipleChoice | TimePicker | MeasureField | CheckBox;
|
|
@@ -15,16 +15,16 @@ export var StructureElement;
|
|
|
15
15
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['StructureElement']) {
|
|
16
16
|
switch (json.$ktClass) {
|
|
17
17
|
case 'com.icure.cardinal.sdk.model.embed.form.template.FieldsGroup': return FieldsGroup.fromJSON(json, ignoreUnknownKeys);
|
|
18
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
|
|
19
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
|
|
20
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
21
18
|
case 'com.icure.cardinal.sdk.model.embed.form.template.TextField': return TextField.fromJSON(json, ignoreUnknownKeys);
|
|
22
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
|
|
23
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
|
|
24
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
|
|
25
|
-
case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
26
19
|
case 'com.icure.cardinal.sdk.model.embed.form.template.RadioButton': return RadioButton.fromJSON(json, ignoreUnknownKeys);
|
|
20
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.NumberField': return NumberField.fromJSON(json, ignoreUnknownKeys);
|
|
21
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.DropdownField': return DropdownField.fromJSON(json, ignoreUnknownKeys);
|
|
22
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.DateTimePicker': return DateTimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
23
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.DatePicker': return DatePicker.fromJSON(json, ignoreUnknownKeys);
|
|
27
24
|
case 'com.icure.cardinal.sdk.model.embed.form.template.MultipleChoice': return MultipleChoice.fromJSON(json, ignoreUnknownKeys);
|
|
25
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.TimePicker': return TimePicker.fromJSON(json, ignoreUnknownKeys);
|
|
26
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.MeasureField': return MeasureField.fromJSON(json, ignoreUnknownKeys);
|
|
27
|
+
case 'com.icure.cardinal.sdk.model.embed.form.template.CheckBox': return CheckBox.fromJSON(json, ignoreUnknownKeys);
|
|
28
28
|
default: throw new Error('Unexpected discriminator for StructureElement: ' + json.$ktClass);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -9,7 +9,7 @@ import { OrPredicate } from './OrPredicate.mjs';
|
|
|
9
9
|
* chain.
|
|
10
10
|
* /
|
|
11
11
|
*/
|
|
12
|
-
export type Predicate =
|
|
12
|
+
export type Predicate = KeyValuePredicate | OrPredicate | NotPredicate | AlwaysPredicate | AndPredicate;
|
|
13
13
|
export declare namespace Predicate {
|
|
14
14
|
function fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Predicate;
|
|
15
15
|
}
|
|
@@ -8,11 +8,11 @@ export var Predicate;
|
|
|
8
8
|
(function (Predicate) {
|
|
9
9
|
function fromJSON(json, ignoreUnknownKeys = false, path = ['Predicate']) {
|
|
10
10
|
switch (json.$ktClass) {
|
|
11
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
13
|
-
case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
14
11
|
case 'com.icure.cardinal.sdk.model.filter.predicate.KeyValuePredicate': return KeyValuePredicate.fromJSON(json, ignoreUnknownKeys);
|
|
12
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.OrPredicate': return OrPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
13
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.NotPredicate': return NotPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
15
14
|
case 'com.icure.cardinal.sdk.model.filter.predicate.AlwaysPredicate': return AlwaysPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
15
|
+
case 'com.icure.cardinal.sdk.model.filter.predicate.AndPredicate': return AndPredicate.fromJSON(json, ignoreUnknownKeys);
|
|
16
16
|
default: throw new Error('Unexpected discriminator for Predicate: ' + json.$ktClass);
|
|
17
17
|
}
|
|
18
18
|
}
|
package/model.d.mts
CHANGED
|
@@ -98,6 +98,7 @@ export * from './model/embed/UserType.mjs';
|
|
|
98
98
|
export * from './model/embed/Partnership.mjs';
|
|
99
99
|
export * from './model/embed/TimeSeries.mjs';
|
|
100
100
|
export * from './model/embed/MessageReadStatus.mjs';
|
|
101
|
+
export * from './model/embed/GroupStatus.mjs';
|
|
101
102
|
export * from './model/embed/ReceiptBlobType.mjs';
|
|
102
103
|
export * from './model/embed/PartnershipType.mjs';
|
|
103
104
|
export * from './model/embed/PatientHealthCareParty.mjs';
|
package/model.mjs
CHANGED
|
@@ -98,6 +98,7 @@ export * from './model/embed/UserType.mjs';
|
|
|
98
98
|
export * from './model/embed/Partnership.mjs';
|
|
99
99
|
export * from './model/embed/TimeSeries.mjs';
|
|
100
100
|
export * from './model/embed/MessageReadStatus.mjs';
|
|
101
|
+
export * from './model/embed/GroupStatus.mjs';
|
|
101
102
|
export * from './model/embed/ReceiptBlobType.mjs';
|
|
102
103
|
export * from './model/embed/PartnershipType.mjs';
|
|
103
104
|
export * from './model/embed/PatientHealthCareParty.mjs';
|
package/options/SdkOptions.d.mts
CHANGED
|
@@ -82,18 +82,10 @@ export interface SdkOptions {
|
|
|
82
82
|
*/
|
|
83
83
|
readonly dataOwnerScope?: string;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* called once for each dropped entity. Methods returning lists may then return fewer entities than requested.
|
|
88
|
-
*
|
|
89
|
-
* Single entity reads, write operations and the entities used internally by the crypto layer are never affected.
|
|
90
|
-
* If the function throws, the request fails with that error.
|
|
91
|
-
*
|
|
92
|
-
* The `json` of the entity contains all its non-encrypted data, including personal data: avoid logging it as is.
|
|
93
|
-
*
|
|
94
|
-
* If not provided (default) a malformed entity fails the whole request.
|
|
85
|
+
* How the lists of entities returned by the read endpoints of the backend are decoded.
|
|
86
|
+
* Refer to {@link EntityListDecodingStrategy}. Defaults to {@link EntityListDecodingStrategy.Strict}.
|
|
95
87
|
*/
|
|
96
|
-
readonly
|
|
88
|
+
readonly entityListDecodingStrategy?: EntityListDecodingStrategy;
|
|
97
89
|
}
|
|
98
90
|
export interface BasicSdkOptions {
|
|
99
91
|
/**
|
|
@@ -128,18 +120,9 @@ export interface BasicSdkOptions {
|
|
|
128
120
|
*/
|
|
129
121
|
readonly dataOwnerScope?: string;
|
|
130
122
|
/**
|
|
131
|
-
*
|
|
132
|
-
* that can't be deserialized are dropped from the result instead of failing the whole request, and this function is
|
|
133
|
-
* called once for each dropped entity. Methods returning lists may then return fewer entities than requested.
|
|
134
|
-
*
|
|
135
|
-
* Single entity reads, write operations and the entities used internally by the crypto layer are never affected.
|
|
136
|
-
* If the function throws, the request fails with that error.
|
|
137
|
-
*
|
|
138
|
-
* The `json` of the entity contains all its non-encrypted data, including personal data: avoid logging it as is.
|
|
139
|
-
*
|
|
140
|
-
* If not provided (default) a malformed entity fails the whole request.
|
|
123
|
+
* Refer to {@link SdkOptions.entityListDecodingStrategy }
|
|
141
124
|
*/
|
|
142
|
-
readonly
|
|
125
|
+
readonly entityListDecodingStrategy?: EntityListDecodingStrategy;
|
|
143
126
|
}
|
|
144
127
|
/**
|
|
145
128
|
* Optional parameters used in the conversion from a basic sdk to a full sdk.
|
|
@@ -181,18 +164,38 @@ export interface AnonymousSdkOptions {
|
|
|
181
164
|
*/
|
|
182
165
|
readonly ignoreUnknownFields?: boolean;
|
|
183
166
|
/**
|
|
184
|
-
*
|
|
185
|
-
|
|
186
|
-
|
|
167
|
+
* Refer to {@link SdkOptions.entityListDecodingStrategy }
|
|
168
|
+
*/
|
|
169
|
+
readonly entityListDecodingStrategy?: EntityListDecodingStrategy;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Strategy used to decode the lists of entities returned by the read endpoints of the backend (get by ids, filter,
|
|
173
|
+
* find, list, ...).
|
|
174
|
+
*/
|
|
175
|
+
export type EntityListDecodingStrategy = typeof EntityListDecodingStrategy.Strict | EntityListDecodingStrategy.DiscardMalformed;
|
|
176
|
+
export declare namespace EntityListDecodingStrategy {
|
|
177
|
+
/**
|
|
178
|
+
* If an entity of the list can't be deserialized the whole request fails. This is the default behaviour.
|
|
179
|
+
*/
|
|
180
|
+
const Strict: {
|
|
181
|
+
readonly $ktClass: 'com.icure.cardinal.sdk.options.EntityListDecodingStrategy.Strict';
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* The entities of the list that can't be deserialized are dropped from the result instead of failing the whole
|
|
185
|
+
* request, and {@link handler} is called once for each dropped entity. Methods returning lists may then return fewer
|
|
186
|
+
* entities than requested, and pages may contain fewer rows than their limit.
|
|
187
187
|
*
|
|
188
188
|
* Single entity reads, write operations and the entities used internally by the crypto layer are never affected.
|
|
189
|
-
*
|
|
189
|
+
* Only type mismatches inside a valid json are recoverable: a response that is not valid json still fails.
|
|
190
|
+
* If {@link handler} throws, the request fails with that error.
|
|
190
191
|
*
|
|
191
192
|
* The `json` of the entity contains all its non-encrypted data, including personal data: avoid logging it as is.
|
|
192
|
-
*
|
|
193
|
-
* If not provided (default) a malformed entity fails the whole request.
|
|
194
193
|
*/
|
|
195
|
-
|
|
194
|
+
class DiscardMalformed {
|
|
195
|
+
readonly handler: (entity: MalformedEntity) => void;
|
|
196
|
+
readonly $ktClass: 'com.icure.cardinal.sdk.options.EntityListDecodingStrategy.DiscardMalformed';
|
|
197
|
+
constructor(handler: (entity: MalformedEntity) => void);
|
|
198
|
+
}
|
|
196
199
|
}
|
|
197
200
|
/**
|
|
198
201
|
* An entity returned by the backend in a list that could not be deserialized and was discarded.
|
package/options/SdkOptions.mjs
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var EntityListDecodingStrategy;
|
|
2
|
+
(function (EntityListDecodingStrategy) {
|
|
3
|
+
/**
|
|
4
|
+
* If an entity of the list can't be deserialized the whole request fails. This is the default behaviour.
|
|
5
|
+
*/
|
|
6
|
+
EntityListDecodingStrategy.Strict = {
|
|
7
|
+
$ktClass: 'com.icure.cardinal.sdk.options.EntityListDecodingStrategy.Strict'
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The entities of the list that can't be deserialized are dropped from the result instead of failing the whole
|
|
11
|
+
* request, and {@link handler} is called once for each dropped entity. Methods returning lists may then return fewer
|
|
12
|
+
* entities than requested, and pages may contain fewer rows than their limit.
|
|
13
|
+
*
|
|
14
|
+
* Single entity reads, write operations and the entities used internally by the crypto layer are never affected.
|
|
15
|
+
* Only type mismatches inside a valid json are recoverable: a response that is not valid json still fails.
|
|
16
|
+
* If {@link handler} throws, the request fails with that error.
|
|
17
|
+
*
|
|
18
|
+
* The `json` of the entity contains all its non-encrypted data, including personal data: avoid logging it as is.
|
|
19
|
+
*/
|
|
20
|
+
class DiscardMalformed {
|
|
21
|
+
constructor(handler) {
|
|
22
|
+
this.handler = handler;
|
|
23
|
+
this.$ktClass = 'com.icure.cardinal.sdk.options.EntityListDecodingStrategy.DiscardMalformed';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
EntityListDecodingStrategy.DiscardMalformed = DiscardMalformed;
|
|
27
|
+
})(EntityListDecodingStrategy || (EntityListDecodingStrategy = {}));
|
package/package.json
CHANGED
package/sdk/CardinalSdk.d.mts
CHANGED
|
@@ -51,6 +51,7 @@ import { AuthApi } from "../api/AuthApi.mjs";
|
|
|
51
51
|
import { CalendarItemTypeApi } from "../api/CalendarItemTypeApi.mjs";
|
|
52
52
|
import { AnonymousHealthcarePartyApi } from "../api/AnonymousHealthcarePartyApi.mjs";
|
|
53
53
|
import { AnonymousAgendaApi } from "../api/AnonymousAgendaApi.mjs";
|
|
54
|
+
import { FilterApi } from "../api/FilterApi.mjs";
|
|
54
55
|
export interface CardinalApis {
|
|
55
56
|
readonly auth: AuthApi;
|
|
56
57
|
readonly code: CodeApi;
|
|
@@ -71,6 +72,7 @@ export interface CardinalApis {
|
|
|
71
72
|
readonly contact: ContactApi;
|
|
72
73
|
readonly document: DocumentApi;
|
|
73
74
|
readonly form: FormApi;
|
|
75
|
+
readonly filter: FilterApi;
|
|
74
76
|
readonly healthElement: HealthElementApi;
|
|
75
77
|
readonly invoice: InvoiceApi;
|
|
76
78
|
readonly maintenanceTask: MaintenanceTaskApi;
|
|
@@ -140,6 +142,7 @@ export interface CardinalBaseApis {
|
|
|
140
142
|
readonly contact: ContactBasicApi;
|
|
141
143
|
readonly document: DocumentBasicApi;
|
|
142
144
|
readonly form: FormBasicApi;
|
|
145
|
+
readonly filter: FilterApi;
|
|
143
146
|
readonly healthElement: HealthElementBasicApi;
|
|
144
147
|
readonly invoice: InvoiceBasicApi;
|
|
145
148
|
readonly maintenanceTask: MaintenanceTaskBasicApi;
|