@icure/cardinal-sdk 3.0.0-PREVIEW.7 → 3.0.0-PREVIEW.8
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/AccessLogApi.d.mts +11 -0
- package/api/AccessLogBasicApi.d.mts +11 -0
- package/api/AccessLogBasicInGroupApi.d.mts +6 -0
- package/api/AccessLogInGroupApi.d.mts +33 -1
- package/api/ApplicationSettingsApi.d.mts +6 -0
- package/api/ApplicationSettingsApi.mjs +1 -0
- package/api/CalendarItemApi.d.mts +11 -0
- package/api/CalendarItemBasicApi.d.mts +11 -0
- package/api/CalendarItemBasicInGroupApi.d.mts +6 -0
- package/api/CalendarItemInGroupApi.d.mts +6 -0
- package/api/ContactApi.d.mts +22 -0
- package/api/ContactBasicApi.d.mts +22 -0
- package/api/ContactBasicInGroupApi.d.mts +11 -0
- package/api/ContactInGroupApi.d.mts +11 -0
- package/api/DocumentApi.d.mts +11 -0
- package/api/DocumentBasicApi.d.mts +11 -0
- package/api/DocumentBasicInGroupApi.d.mts +6 -0
- package/api/DocumentInGroupApi.d.mts +6 -0
- package/api/DocumentTemplateApi.d.mts +22 -0
- package/api/DocumentTemplateApi.mjs +1 -0
- package/api/EntityReferenceApi.d.mts +5 -0
- package/api/EntityReferenceApi.mjs +1 -0
- package/api/EntityTemplateApi.d.mts +24 -0
- package/api/EntityTemplateApi.mjs +1 -0
- package/api/FormApi.d.mts +11 -0
- package/api/FormBasicApi.d.mts +11 -0
- package/api/FormBasicInGroupApi.d.mts +6 -0
- package/api/FormInGroupApi.d.mts +6 -0
- package/api/HealthElementApi.d.mts +11 -0
- package/api/HealthElementBasicApi.d.mts +11 -0
- package/api/HealthElementBasicInGroupApi.d.mts +6 -0
- package/api/HealthElementInGroupApi.d.mts +6 -0
- package/api/InvoiceApi.d.mts +11 -0
- package/api/InvoiceBasicApi.d.mts +11 -0
- package/api/InvoiceBasicInGroupApi.d.mts +6 -0
- package/api/InvoiceInGroupApi.d.mts +6 -0
- package/api/KeywordApi.d.mts +14 -0
- package/api/KeywordApi.mjs +1 -0
- package/api/MedicalLocationApi.d.mts +17 -0
- package/api/MedicalLocationApi.mjs +1 -0
- package/api/MessageApi.d.mts +11 -0
- package/api/MessageBasicApi.d.mts +11 -0
- package/api/MessageBasicInGroupApi.d.mts +6 -0
- package/api/MessageInGroupApi.d.mts +6 -0
- package/api/ReceiptApi.d.mts +11 -0
- package/api/ReceiptBasicApi.d.mts +11 -0
- package/api/ReceiptBasicInGroupApi.d.mts +6 -0
- package/api/ReceiptInGroupApi.d.mts +6 -0
- package/api/RelatedPersonApi.d.mts +11 -0
- package/api/RelatedPersonBasicApi.d.mts +11 -0
- package/api/RelatedPersonBasicInGroupApi.d.mts +6 -0
- package/api/RelatedPersonInGroupApi.d.mts +6 -0
- package/api/TarificationApi.d.mts +27 -0
- package/api/TarificationApi.mjs +1 -0
- package/api/TimeTableApi.d.mts +26 -0
- package/api/TimeTableApi.mjs +1 -0
- package/api/TopicApi.d.mts +11 -0
- package/api/TopicBasicApi.d.mts +11 -0
- package/api/TopicBasicInGroupApi.d.mts +6 -0
- package/api/TopicInGroupApi.d.mts +6 -0
- package/cardinal-sdk-ts.mjs +47824 -44170
- package/cardinal-sdk.mjs +77922 -77616
- package/crypto/entities/DelegateShareOptions.d.mts +9 -0
- package/crypto/entities/DelegateShareOptions.mjs +8 -0
- package/crypto/entities/ShareAllPatientDataOptions.d.mts +49 -0
- package/crypto/entities/ShareAllPatientDataOptions.mjs +58 -0
- package/filters/ClassificationFilters.d.mts +114 -0
- package/filters/ClassificationFilters.mjs +8 -0
- package/filters/MedicalLocationFilters.d.mts +8 -0
- package/filters/MedicalLocationFilters.mjs +6 -0
- package/filters/TimeTableFilters.d.mts +12 -0
- package/filters/TimeTableFilters.mjs +6 -0
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +1 -1
- package/model/ApplicationSettings.d.mts +87 -0
- package/model/ApplicationSettings.mjs +256 -0
- package/model/DocumentTemplate.d.mts +35 -0
- package/model/DocumentTemplate.mjs +162 -0
- package/model/EntityReference.d.mts +10 -0
- package/model/EntityReference.mjs +46 -0
- package/model/EntityTemplate.d.mts +16 -0
- package/model/EntityTemplate.mjs +81 -0
- package/model/Keyword.d.mts +23 -0
- package/model/Keyword.mjs +99 -0
- package/model/ListOfIds.d.mts +6 -0
- package/model/ListOfIds.mjs +28 -0
- package/model/MedicalLocation.d.mts +28 -0
- package/model/MedicalLocation.mjs +116 -0
- package/model/Tarification.d.mts +50 -0
- package/model/Tarification.mjs +178 -0
- package/model/TimeTable.d.mts +25 -0
- package/model/TimeTable.mjs +111 -0
- package/model/base/AppendixType.d.mts +5 -0
- package/model/base/AppendixType.mjs +7 -0
- package/model/base/CodeFlag.d.mts +80 -0
- package/model/base/CodeFlag.mjs +82 -0
- package/model/base/ReportVersion.d.mts +3 -0
- package/model/base/ReportVersion.mjs +5 -0
- package/model/embed/KeywordSubword.d.mts +8 -0
- package/model/embed/KeywordSubword.mjs +35 -0
- package/model/embed/LetterValue.d.mts +9 -0
- package/model/embed/LetterValue.mjs +47 -0
- package/model/embed/Periodicity.d.mts +8 -0
- package/model/embed/Periodicity.mjs +36 -0
- package/model/embed/TimeTableHour.d.mts +7 -0
- package/model/embed/TimeTableHour.mjs +35 -0
- package/model/embed/TimeTableItem.d.mts +19 -0
- package/model/embed/TimeTableItem.mjs +96 -0
- package/model/embed/Valorisation.d.mts +56 -0
- package/model/embed/Valorisation.mjs +188 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { EncryptedHealthElement, HealthElement } from '../model/HealthElement.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
4
5
|
import { EntitySubscription } from '../subscription/EntitySubscription.mjs';
|
|
@@ -122,6 +123,16 @@ export interface HealthElementBasicApi {
|
|
|
122
123
|
* because you had no write access to them) they will not be included in this list.
|
|
123
124
|
*/
|
|
124
125
|
purgeHealthElements(healthElements: Array<HealthElement>): Promise<Array<StoredDocumentIdentifier>>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* Get all data owners with access to the provided health element, attempting to identify any unknown anonymous data owners
|
|
129
|
+
* using delegations de-anonymization metadata.
|
|
130
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
131
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
132
|
+
* @param healthElement a health element
|
|
133
|
+
* @return information on users with access to the provided health element
|
|
134
|
+
*/
|
|
135
|
+
getDataOwnersWithAccessTo(healthElement: HealthElement): Promise<EntityAccessInformation>;
|
|
125
136
|
/**
|
|
126
137
|
*
|
|
127
138
|
* Create a new health element. The provided health element must have the encryption metadata initialized.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
3
4
|
import { EncryptedHealthElement, HealthElement } from '../model/HealthElement.mjs';
|
|
4
5
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -63,6 +64,11 @@ export interface HealthElementBasicInGroupApi {
|
|
|
63
64
|
* In-group version of [HealthElementBasicFlavourlessApi.purgeHealthElements]
|
|
64
65
|
*/
|
|
65
66
|
purgeHealthElements(healthElements: Array<GroupScoped<HealthElement>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* In-group version of [HealthElementBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
70
|
+
*/
|
|
71
|
+
getDataOwnersWithAccessTo(healthElement: GroupScoped<HealthElement>): Promise<EntityAccessInformation>;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* In-group version of [HealthElementApi.createHealthElement]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { HealthElementDelegateOptions } from '../crypto/entities/HealthElementDelegateOptions.mjs';
|
|
3
4
|
import { HealthElementShareOptions } from '../crypto/entities/HealthElementShareOptions.mjs';
|
|
4
5
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -125,6 +126,11 @@ export interface HealthElementInGroupApi {
|
|
|
125
126
|
* In-group version of [HealthElementBasicFlavourlessApi.purgeHealthElements]
|
|
126
127
|
*/
|
|
127
128
|
purgeHealthElements(healthElements: Array<GroupScoped<HealthElement>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* In-group version of [HealthElementBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
132
|
+
*/
|
|
133
|
+
getDataOwnersWithAccessTo(healthElement: GroupScoped<HealthElement>): Promise<EntityAccessInformation>;
|
|
128
134
|
/**
|
|
129
135
|
*
|
|
130
136
|
* In-group version of [HealthElementFlavouredApi.shareWith]
|
package/api/InvoiceApi.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
2
|
import { BulkShareByIdsResult } from '../crypto/entities/BulkShareByIdsResult.mjs';
|
|
3
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
3
4
|
import { InvoiceDelegateOptions } from '../crypto/entities/InvoiceDelegateOptions.mjs';
|
|
4
5
|
import { InvoiceShareOptions } from '../crypto/entities/InvoiceShareOptions.mjs';
|
|
5
6
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -241,6 +242,16 @@ export interface InvoiceApi {
|
|
|
241
242
|
* @return the occurrences for each invoicing code that is used at least [minOccurrence] times.
|
|
242
243
|
*/
|
|
243
244
|
getTarificationsCodesOccurrences(minOccurrence: number): Promise<Array<LabelledOccurence>>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* Get all data owners with access to the provided invoice, attempting to identify any unknown anonymous data owners
|
|
248
|
+
* using delegations de-anonymization metadata.
|
|
249
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
250
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
251
|
+
* @param invoice an invoice
|
|
252
|
+
* @return information on users with access to the provided invoice
|
|
253
|
+
*/
|
|
254
|
+
getDataOwnersWithAccessTo(invoice: Invoice): Promise<EntityAccessInformation>;
|
|
244
255
|
/**
|
|
245
256
|
*
|
|
246
257
|
* Share an invoice with another data owner. The invoice must already exist in the database for this method to
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { EncryptedInvoice, Invoice } from '../model/Invoice.mjs';
|
|
2
3
|
import { PaginatedList } from '../model/PaginatedList.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -84,6 +85,16 @@ export interface InvoiceBasicApi {
|
|
|
84
85
|
* @return the occurrences for each invoicing code that is used at least [minOccurrence] times.
|
|
85
86
|
*/
|
|
86
87
|
getTarificationsCodesOccurrences(minOccurrence: number): Promise<Array<LabelledOccurence>>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* Get all data owners with access to the provided invoice, attempting to identify any unknown anonymous data owners
|
|
91
|
+
* using delegations de-anonymization metadata.
|
|
92
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
93
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
94
|
+
* @param invoice an invoice
|
|
95
|
+
* @return information on users with access to the provided invoice
|
|
96
|
+
*/
|
|
97
|
+
getDataOwnersWithAccessTo(invoice: Invoice): Promise<EntityAccessInformation>;
|
|
87
98
|
/**
|
|
88
99
|
*
|
|
89
100
|
* Create a new invoice. The provided invoice must have the encryption metadata initialized.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
2
3
|
import { EncryptedInvoice, Invoice } from '../model/Invoice.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -42,6 +43,11 @@ export interface InvoiceBasicInGroupApi {
|
|
|
42
43
|
* In-group version of [InvoiceBasicFlavourlessApi.purgeInvoices]
|
|
43
44
|
*/
|
|
44
45
|
purgeInvoices(invoices: Array<GroupScoped<Invoice>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* In-group version of [InvoiceBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
49
|
+
*/
|
|
50
|
+
getDataOwnersWithAccessTo(invoice: GroupScoped<Invoice>): Promise<EntityAccessInformation>;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* In-group version of [InvoiceApi.createInvoice]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { InvoiceDelegateOptions } from '../crypto/entities/InvoiceDelegateOptions.mjs';
|
|
2
3
|
import { InvoiceShareOptions } from '../crypto/entities/InvoiceShareOptions.mjs';
|
|
3
4
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -109,6 +110,11 @@ export interface InvoiceInGroupApi {
|
|
|
109
110
|
* In-group version of [InvoiceBasicFlavourlessApi.purgeInvoices]
|
|
110
111
|
*/
|
|
111
112
|
purgeInvoices(invoices: Array<GroupScoped<Invoice>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* In-group version of [InvoiceBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
116
|
+
*/
|
|
117
|
+
getDataOwnersWithAccessTo(invoice: GroupScoped<Invoice>): Promise<EntityAccessInformation>;
|
|
112
118
|
/**
|
|
113
119
|
*
|
|
114
120
|
* In-group version of [InvoiceFlavouredApi.shareWith]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Keyword } from '../model/Keyword.mjs';
|
|
2
|
+
import { PaginatedList } from '../model/PaginatedList.mjs';
|
|
3
|
+
import { DocIdentifier } from '../model/couchdb/DocIdentifier.mjs';
|
|
4
|
+
export interface KeywordApi {
|
|
5
|
+
getKeyword(keywordId: string): Promise<Keyword | undefined>;
|
|
6
|
+
createKeyword(keyword: Keyword): Promise<Keyword>;
|
|
7
|
+
getKeywords(options?: {
|
|
8
|
+
startDocumentId?: string | undefined;
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
}): Promise<PaginatedList<Keyword>>;
|
|
11
|
+
modifyKeyword(keyword: Keyword): Promise<Keyword>;
|
|
12
|
+
getKeywordsByUser(userId: string): Promise<Array<Keyword>>;
|
|
13
|
+
deleteKeywords(keywordIds: Array<string>): Promise<Array<DocIdentifier>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { ListOfIds } from '../model/ListOfIds.mjs';
|
|
3
|
+
import { MedicalLocation } from '../model/MedicalLocation.mjs';
|
|
4
|
+
import { PaginatedList } from '../model/PaginatedList.mjs';
|
|
5
|
+
import { DocIdentifier } from '../model/couchdb/DocIdentifier.mjs';
|
|
6
|
+
export interface MedicalLocationApi {
|
|
7
|
+
createMedicalLocation(medicalLocationDto: MedicalLocation): Promise<MedicalLocation>;
|
|
8
|
+
deleteMedicalLocations(locationIds: ListOfIds): Promise<Array<DocIdentifier>>;
|
|
9
|
+
getMedicalLocation(locationId: string): Promise<MedicalLocation | undefined>;
|
|
10
|
+
getAllMedicalLocations(startDocumentId: string | undefined, limit: number | undefined): Promise<PaginatedList<MedicalLocation>>;
|
|
11
|
+
modifyMedicalLocation(medicalLocationDto: MedicalLocation): Promise<MedicalLocation>;
|
|
12
|
+
getMedicalLocations(medicalLocationIds: Array<string>): Promise<Array<MedicalLocation>>;
|
|
13
|
+
matchMedicalLocationsBy(filter: BaseFilterOptions<MedicalLocation>): Promise<Array<string>>;
|
|
14
|
+
matchMedicalLocationsBySorted(filter: BaseSortableFilterOptions<MedicalLocation>): Promise<Array<string>>;
|
|
15
|
+
filterMedicalLocationsBy(filter: BaseFilterOptions<MedicalLocation>): Promise<PaginatedListIterator<MedicalLocation>>;
|
|
16
|
+
filterMedicalLocationsBySorted(filter: BaseSortableFilterOptions<MedicalLocation>): Promise<PaginatedListIterator<MedicalLocation>>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/api/MessageApi.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { MessageDelegateOptions } from '../crypto/entities/MessageDelegateOptions.mjs';
|
|
3
4
|
import { MessageShareOptions } from '../crypto/entities/MessageShareOptions.mjs';
|
|
4
5
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -249,6 +250,16 @@ export interface MessageApi {
|
|
|
249
250
|
* because you had no write access to them) they will not be included in this list.
|
|
250
251
|
*/
|
|
251
252
|
purgeMessages(messages: Array<Message>): Promise<Array<StoredDocumentIdentifier>>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* Get all data owners with access to the provided message, attempting to identify any unknown anonymous data owners
|
|
256
|
+
* using delegations de-anonymization metadata.
|
|
257
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
258
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
259
|
+
* @param message a message
|
|
260
|
+
* @return information on users with access to the provided message
|
|
261
|
+
*/
|
|
262
|
+
getDataOwnersWithAccessTo(message: Message): Promise<EntityAccessInformation>;
|
|
252
263
|
/**
|
|
253
264
|
*
|
|
254
265
|
* Share a message with another data owner. The Message must already exist in the database for this method to
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { EncryptedMessage, Message } from '../model/Message.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
4
5
|
import { EntitySubscription } from '../subscription/EntitySubscription.mjs';
|
|
@@ -122,6 +123,16 @@ export interface MessageBasicApi {
|
|
|
122
123
|
* because you had no write access to them) they will not be included in this list.
|
|
123
124
|
*/
|
|
124
125
|
purgeMessages(messages: Array<Message>): Promise<Array<StoredDocumentIdentifier>>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* Get all data owners with access to the provided message, attempting to identify any unknown anonymous data owners
|
|
129
|
+
* using delegations de-anonymization metadata.
|
|
130
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
131
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
132
|
+
* @param message a message
|
|
133
|
+
* @return information on users with access to the provided message
|
|
134
|
+
*/
|
|
135
|
+
getDataOwnersWithAccessTo(message: Message): Promise<EntityAccessInformation>;
|
|
125
136
|
/**
|
|
126
137
|
*
|
|
127
138
|
* Create a new Message. The provided Message must have the encryption metadata initialized. This method requires
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
3
4
|
import { EncryptedMessage, Message } from '../model/Message.mjs';
|
|
4
5
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -63,6 +64,11 @@ export interface MessageBasicInGroupApi {
|
|
|
63
64
|
* In-group version of [MessageBasicFlavourlessApi.purgeMessages]
|
|
64
65
|
*/
|
|
65
66
|
purgeMessages(messages: Array<GroupScoped<Message>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* In-group version of [MessageBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
70
|
+
*/
|
|
71
|
+
getDataOwnersWithAccessTo(message: GroupScoped<Message>): Promise<EntityAccessInformation>;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* In-group version of [MessageApi.createMessage]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { MessageDelegateOptions } from '../crypto/entities/MessageDelegateOptions.mjs';
|
|
3
4
|
import { MessageShareOptions } from '../crypto/entities/MessageShareOptions.mjs';
|
|
4
5
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -120,6 +121,11 @@ export interface MessageInGroupApi {
|
|
|
120
121
|
* In-group version of [MessageBasicFlavourlessApi.purgeMessages]
|
|
121
122
|
*/
|
|
122
123
|
purgeMessages(messages: Array<GroupScoped<Message>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* In-group version of [MessageBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
127
|
+
*/
|
|
128
|
+
getDataOwnersWithAccessTo(message: GroupScoped<Message>): Promise<EntityAccessInformation>;
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
* In-group version of [MessageFlavouredApi.shareWith]
|
package/api/ReceiptApi.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { ReceiptDelegateOptions } from '../crypto/entities/ReceiptDelegateOptions.mjs';
|
|
2
3
|
import { ReceiptShareOptions } from '../crypto/entities/ReceiptShareOptions.mjs';
|
|
3
4
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -105,6 +106,16 @@ export interface ReceiptApi {
|
|
|
105
106
|
purgeReceipts(receipts: Array<Receipt>): Promise<Array<StoredDocumentIdentifier>>;
|
|
106
107
|
getRawReceiptAttachment(receiptId: string, attachmentId: string): Promise<Int8Array>;
|
|
107
108
|
setRawReceiptAttachment(receiptId: string, rev: string, blobType: string, attachment: Int8Array): Promise<EncryptedReceipt>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Get all data owners with access to the provided receipt, attempting to identify any unknown anonymous data owners
|
|
112
|
+
* using delegations de-anonymization metadata.
|
|
113
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
114
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
115
|
+
* @param receipt a receipt
|
|
116
|
+
* @return information on users with access to the provided receipt
|
|
117
|
+
*/
|
|
118
|
+
getDataOwnersWithAccessTo(receipt: Receipt): Promise<EntityAccessInformation>;
|
|
108
119
|
shareWith(delegateId: string, receipt: DecryptedReceipt, options?: {
|
|
109
120
|
options?: ReceiptShareOptions | undefined;
|
|
110
121
|
}): Promise<DecryptedReceipt>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { EncryptedReceipt, Receipt } from '../model/Receipt.mjs';
|
|
2
3
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
3
4
|
import { ReceiptBasicInGroupApi } from './ReceiptBasicInGroupApi.mjs';
|
|
@@ -70,6 +71,16 @@ export interface ReceiptBasicApi {
|
|
|
70
71
|
purgeReceipts(receipts: Array<Receipt>): Promise<Array<StoredDocumentIdentifier>>;
|
|
71
72
|
getRawReceiptAttachment(receiptId: string, attachmentId: string): Promise<Int8Array>;
|
|
72
73
|
setRawReceiptAttachment(receiptId: string, rev: string, blobType: string, attachment: Int8Array): Promise<EncryptedReceipt>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* Get all data owners with access to the provided receipt, attempting to identify any unknown anonymous data owners
|
|
77
|
+
* using delegations de-anonymization metadata.
|
|
78
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
79
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
80
|
+
* @param receipt a receipt
|
|
81
|
+
* @return information on users with access to the provided receipt
|
|
82
|
+
*/
|
|
83
|
+
getDataOwnersWithAccessTo(receipt: Receipt): Promise<EntityAccessInformation>;
|
|
73
84
|
/**
|
|
74
85
|
*
|
|
75
86
|
* Create a new receipt. The provided receipt must have the encryption metadata initialized.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
2
3
|
import { EncryptedReceipt, Receipt } from '../model/Receipt.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -47,6 +48,11 @@ export interface ReceiptBasicInGroupApi {
|
|
|
47
48
|
* In-group version of [ReceiptBasicFlavourlessApi.getRawReceiptAttachment]
|
|
48
49
|
*/
|
|
49
50
|
getRawReceiptAttachment(groupId: string, receiptId: string, attachmentId: string): Promise<Int8Array>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* In-group version of [ReceiptBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
54
|
+
*/
|
|
55
|
+
getDataOwnersWithAccessTo(receipt: GroupScoped<Receipt>): Promise<EntityAccessInformation>;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* In-group version of [ReceiptApi.createReceipt]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
1
2
|
import { ReceiptDelegateOptions } from '../crypto/entities/ReceiptDelegateOptions.mjs';
|
|
2
3
|
import { ReceiptShareOptions } from '../crypto/entities/ReceiptShareOptions.mjs';
|
|
3
4
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
@@ -112,6 +113,11 @@ export interface ReceiptInGroupApi {
|
|
|
112
113
|
* In-group version of [ReceiptBasicFlavourlessApi.getRawReceiptAttachment]
|
|
113
114
|
*/
|
|
114
115
|
getRawReceiptAttachment(groupId: string, receiptId: string, attachmentId: string): Promise<Int8Array>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* In-group version of [ReceiptBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
119
|
+
*/
|
|
120
|
+
getDataOwnersWithAccessTo(receipt: GroupScoped<Receipt>): Promise<EntityAccessInformation>;
|
|
115
121
|
/**
|
|
116
122
|
*
|
|
117
123
|
* In-group version of [ReceiptFlavouredApi.shareWith]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { RelatedPersonDelegateOptions } from '../crypto/entities/RelatedPersonDelegateOptions.mjs';
|
|
3
4
|
import { RelatedPersonShareOptions } from '../crypto/entities/RelatedPersonShareOptions.mjs';
|
|
4
5
|
import { DecryptedRelatedPerson, EncryptedRelatedPerson, RelatedPerson } from '../model/RelatedPerson.mjs';
|
|
@@ -220,6 +221,16 @@ export interface RelatedPersonApi {
|
|
|
220
221
|
* because you had no write access to them) they will not be included in this list.
|
|
221
222
|
*/
|
|
222
223
|
purgeRelatedPersons(relatedPersons: Array<RelatedPerson>): Promise<Array<StoredDocumentIdentifier>>;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* Get all data owners with access to the provided related person, attempting to identify any unknown anonymous data owners
|
|
227
|
+
* using delegations de-anonymization metadata.
|
|
228
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
229
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
230
|
+
* @param relatedPerson a related person
|
|
231
|
+
* @return information on users with access to the provided related person
|
|
232
|
+
*/
|
|
233
|
+
getDataOwnersWithAccessTo(relatedPerson: RelatedPerson): Promise<EntityAccessInformation>;
|
|
223
234
|
/**
|
|
224
235
|
*
|
|
225
236
|
* Share a related person with another data owner. The related person must already exist in the database for this method to
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { EncryptedRelatedPerson, RelatedPerson } from '../model/RelatedPerson.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
4
5
|
import { RelatedPersonBasicInGroupApi } from './RelatedPersonBasicInGroupApi.mjs';
|
|
@@ -119,6 +120,16 @@ export interface RelatedPersonBasicApi {
|
|
|
119
120
|
* because you had no write access to them) they will not be included in this list.
|
|
120
121
|
*/
|
|
121
122
|
purgeRelatedPersons(relatedPersons: Array<RelatedPerson>): Promise<Array<StoredDocumentIdentifier>>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* Get all data owners with access to the provided related person, attempting to identify any unknown anonymous data owners
|
|
126
|
+
* using delegations de-anonymization metadata.
|
|
127
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
128
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
129
|
+
* @param relatedPerson a related person
|
|
130
|
+
* @return information on users with access to the provided related person
|
|
131
|
+
*/
|
|
132
|
+
getDataOwnersWithAccessTo(relatedPerson: RelatedPerson): Promise<EntityAccessInformation>;
|
|
122
133
|
/**
|
|
123
134
|
*
|
|
124
135
|
* Create a new related person. The provided related person must have the encryption metadata initialized.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
3
4
|
import { EncryptedRelatedPerson, RelatedPerson } from '../model/RelatedPerson.mjs';
|
|
4
5
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -63,6 +64,11 @@ export interface RelatedPersonBasicInGroupApi {
|
|
|
63
64
|
* In-group version of [RelatedPersonBasicFlavourlessApi.purgeRelatedPersons]
|
|
64
65
|
*/
|
|
65
66
|
purgeRelatedPersons(relatedPersons: Array<GroupScoped<RelatedPerson>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* In-group version of [RelatedPersonBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
70
|
+
*/
|
|
71
|
+
getDataOwnersWithAccessTo(relatedPerson: GroupScoped<RelatedPerson>): Promise<EntityAccessInformation>;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* In-group version of [RelatedPersonBasicFlavouredApi.createRelatedPerson]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { RelatedPersonDelegateOptions } from '../crypto/entities/RelatedPersonDelegateOptions.mjs';
|
|
3
4
|
import { RelatedPersonShareOptions } from '../crypto/entities/RelatedPersonShareOptions.mjs';
|
|
4
5
|
import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
|
|
@@ -121,6 +122,11 @@ export interface RelatedPersonInGroupApi {
|
|
|
121
122
|
* In-group version of [RelatedPersonBasicFlavourlessApi.purgeRelatedPersons]
|
|
122
123
|
*/
|
|
123
124
|
purgeRelatedPersons(relatedPersons: Array<GroupScoped<RelatedPerson>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* In-group version of [RelatedPersonBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
128
|
+
*/
|
|
129
|
+
getDataOwnersWithAccessTo(relatedPerson: GroupScoped<RelatedPerson>): Promise<EntityAccessInformation>;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* In-group version of [RelatedPersonFlavouredApi.shareWith]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginatedList } from '../model/PaginatedList.mjs';
|
|
2
|
+
import { Tarification } from '../model/Tarification.mjs';
|
|
3
|
+
export interface TarificationApi {
|
|
4
|
+
getTarification(tarificationId: string): Promise<Tarification | undefined>;
|
|
5
|
+
createTarification(tarification: Tarification): Promise<Tarification>;
|
|
6
|
+
getTarifications(tarificationIds: Array<string>): Promise<Array<Tarification>>;
|
|
7
|
+
modifyTarification(tarification: Tarification): Promise<Tarification>;
|
|
8
|
+
findTarificationsByLabel(options?: {
|
|
9
|
+
region?: string | undefined;
|
|
10
|
+
types?: string | undefined;
|
|
11
|
+
language?: string | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
startKey?: string | undefined;
|
|
14
|
+
startDocumentId?: string | undefined;
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}): Promise<PaginatedList<Tarification>>;
|
|
17
|
+
findTarificationsBy(options?: {
|
|
18
|
+
region?: string | undefined;
|
|
19
|
+
type?: string | undefined;
|
|
20
|
+
tarification?: string | undefined;
|
|
21
|
+
version?: string | undefined;
|
|
22
|
+
startDocumentId?: string | undefined;
|
|
23
|
+
startKey?: string | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
}): Promise<PaginatedList<Tarification>>;
|
|
26
|
+
getTarificationWithParts(type: string, tarification: string, version: string): Promise<Tarification>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
3
|
+
import { TimeTable } from '../model/TimeTable.mjs';
|
|
4
|
+
import { DocIdentifier } from '../model/couchdb/DocIdentifier.mjs';
|
|
5
|
+
export interface TimeTableApi {
|
|
6
|
+
deleteTimeTableUnsafe(entityId: string): Promise<DocIdentifier>;
|
|
7
|
+
deleteTimeTablesUnsafe(entityIds: Array<string>): Promise<Array<DocIdentifier>>;
|
|
8
|
+
deleteTimeTableById(entityId: string, rev: string): Promise<DocIdentifier>;
|
|
9
|
+
deleteTimeTablesByIds(entityIds: Array<StoredDocumentIdentifier>): Promise<Array<DocIdentifier>>;
|
|
10
|
+
purgeTimeTableById(id: string, rev: string): Promise<void>;
|
|
11
|
+
deleteTimeTable(timeTable: TimeTable): Promise<DocIdentifier>;
|
|
12
|
+
deleteTimeTables(timeTables: Array<TimeTable>): Promise<Array<DocIdentifier>>;
|
|
13
|
+
purgeTimeTable(timeTable: TimeTable): Promise<void>;
|
|
14
|
+
undeleteTimeTable(timeTable: TimeTable): Promise<TimeTable>;
|
|
15
|
+
modifyTimeTable(entity: TimeTable): Promise<TimeTable>;
|
|
16
|
+
undeleteTimeTableById(id: string, rev: string): Promise<TimeTable>;
|
|
17
|
+
getTimeTable(entityId: string): Promise<TimeTable | undefined>;
|
|
18
|
+
getTimeTables(timeTableIds: Array<string>): Promise<Array<TimeTable>>;
|
|
19
|
+
getTimeTablesByPeriodAndAgendaId(startDate: number, endDate: number, agendaId: string): Promise<Array<TimeTable>>;
|
|
20
|
+
getTimeTablesByAgendaId(agendaId: string): Promise<Array<TimeTable>>;
|
|
21
|
+
filterTimeTablesBy(filter: BaseFilterOptions<TimeTable>): Promise<PaginatedListIterator<TimeTable>>;
|
|
22
|
+
filterTimeTablesBySorted(filter: BaseSortableFilterOptions<TimeTable>): Promise<PaginatedListIterator<TimeTable>>;
|
|
23
|
+
createTimeTable(entity: TimeTable): Promise<TimeTable>;
|
|
24
|
+
matchTimeTablesBy(filter: BaseFilterOptions<TimeTable>): Promise<Array<string>>;
|
|
25
|
+
matchTimeTablesBySorted(filter: BaseSortableFilterOptions<TimeTable>): Promise<Array<string>>;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/api/TopicApi.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
3
4
|
import { TopicDelegateOptions } from '../crypto/entities/TopicDelegateOptions.mjs';
|
|
4
5
|
import { TopicShareOptions } from '../crypto/entities/TopicShareOptions.mjs';
|
|
@@ -230,6 +231,16 @@ export interface TopicApi {
|
|
|
230
231
|
* because you had no write access to them) they will not be included in this list.
|
|
231
232
|
*/
|
|
232
233
|
purgeTopics(topics: Array<Topic>): Promise<Array<StoredDocumentIdentifier>>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* Get all data owners with access to the provided topic, attempting to identify any unknown anonymous data owners
|
|
237
|
+
* using delegations de-anonymization metadata.
|
|
238
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
239
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
240
|
+
* @param topic a topic
|
|
241
|
+
* @return information on users with access to the provided topic
|
|
242
|
+
*/
|
|
243
|
+
getDataOwnersWithAccessTo(topic: Topic): Promise<EntityAccessInformation>;
|
|
233
244
|
/**
|
|
234
245
|
*
|
|
235
246
|
* Share a topic with another data owner. The topic must already exist in the database for this method to
|
package/api/TopicBasicApi.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
3
4
|
import { EncryptedTopic, Topic } from '../model/Topic.mjs';
|
|
4
5
|
import { TopicRole } from '../model/TopicRole.mjs';
|
|
@@ -123,6 +124,16 @@ export interface TopicBasicApi {
|
|
|
123
124
|
* because you had no write access to them) they will not be included in this list.
|
|
124
125
|
*/
|
|
125
126
|
purgeTopics(topics: Array<Topic>): Promise<Array<StoredDocumentIdentifier>>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* Get all data owners with access to the provided topic, attempting to identify any unknown anonymous data owners
|
|
130
|
+
* using delegations de-anonymization metadata.
|
|
131
|
+
* See [com.icure.cardinal.sdk.crypto.EntityAccessInformationProvider.getDataOwnersWithAccessTo] for the semantics of
|
|
132
|
+
* anonymous data owners and the behaviour of basic apis.
|
|
133
|
+
* @param topic a topic
|
|
134
|
+
* @return information on users with access to the provided topic
|
|
135
|
+
*/
|
|
136
|
+
getDataOwnersWithAccessTo(topic: Topic): Promise<EntityAccessInformation>;
|
|
126
137
|
/**
|
|
127
138
|
*
|
|
128
139
|
* Create a new topic. The provided topic must have the encryption metadata initialized.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseFilterOptions, BaseSortableFilterOptions, PaginatedListIterator } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
3
4
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
4
5
|
import { EncryptedTopic, Topic } from '../model/Topic.mjs';
|
|
@@ -63,6 +64,11 @@ export interface TopicBasicInGroupApi {
|
|
|
63
64
|
* In-group version of [TopicBasicFlavourlessApi.purgeTopics]
|
|
64
65
|
*/
|
|
65
66
|
purgeTopics(topics: Array<GroupScoped<Topic>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* In-group version of [TopicBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
70
|
+
*/
|
|
71
|
+
getDataOwnersWithAccessTo(topic: GroupScoped<Topic>): Promise<EntityAccessInformation>;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* In-group version of [TopicBasicFlavouredApi.createTopic]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
|
|
2
|
+
import { EntityAccessInformation } from '../crypto/entities/EntityAccessInformation.mjs';
|
|
2
3
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
3
4
|
import { TopicDelegateOptions } from '../crypto/entities/TopicDelegateOptions.mjs';
|
|
4
5
|
import { TopicShareOptions } from '../crypto/entities/TopicShareOptions.mjs';
|
|
@@ -119,6 +120,11 @@ export interface TopicInGroupApi {
|
|
|
119
120
|
* In-group version of [TopicBasicFlavourlessApi.purgeTopics]
|
|
120
121
|
*/
|
|
121
122
|
purgeTopics(topics: Array<GroupScoped<Topic>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* In-group version of [TopicBasicFlavourlessApi.getDataOwnersWithAccessTo].
|
|
126
|
+
*/
|
|
127
|
+
getDataOwnersWithAccessTo(topic: GroupScoped<Topic>): Promise<EntityAccessInformation>;
|
|
122
128
|
/**
|
|
123
129
|
*
|
|
124
130
|
* In-group version of [TopicFlavouredApi.shareWith]
|