@icure/api 7.1.16 → 8.0.0-RC.2
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/icc-api/api/IccAccesslogApi.d.ts +12 -1
- package/icc-api/api/IccAccesslogApi.js +142 -98
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccBemikronoApi.d.ts +81 -0
- package/icc-api/api/IccBemikronoApi.js +163 -0
- package/icc-api/api/IccBemikronoApi.js.map +1 -0
- package/icc-api/api/IccCalendarItemApi.d.ts +21 -1
- package/icc-api/api/IccCalendarItemApi.js +183 -117
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.d.ts +21 -1
- package/icc-api/api/IccClassificationApi.js +119 -63
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +21 -1
- package/icc-api/api/IccContactApi.js +385 -294
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +38 -25
- package/icc-api/api/IccDocumentApi.js +279 -212
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccExchangeDataApi.d.ts +19 -0
- package/icc-api/api/IccExchangeDataApi.js +85 -0
- package/icc-api/api/IccExchangeDataApi.js.map +1 -0
- package/icc-api/api/IccExchangeDataMapApi.d.ts +18 -0
- package/icc-api/api/IccExchangeDataMapApi.js +65 -0
- package/icc-api/api/IccExchangeDataMapApi.js.map +1 -0
- package/icc-api/api/IccFormApi.d.ts +21 -1
- package/icc-api/api/IccFormApi.js +321 -229
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +21 -1
- package/icc-api/api/IccHelementApi.js +207 -137
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +21 -1
- package/icc-api/api/IccInvoiceApi.js +404 -298
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.d.ts +12 -1
- package/icc-api/api/IccMaintenanceTaskApi.js +79 -43
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +28 -1
- package/icc-api/api/IccMessageApi.js +294 -191
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +12 -1
- package/icc-api/api/IccPatientApi.js +447 -351
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +22 -8
- package/icc-api/api/IccReceiptApi.js +121 -64
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccRestApiPath.js +1 -1
- package/icc-api/api/IccRestApiPath.js.map +1 -1
- package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
- package/icc-api/api/IccTimeTableApi.d.ts +12 -1
- package/icc-api/api/IccTimeTableApi.js +86 -48
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +90 -0
- package/icc-api/api/IccTopicApi.js +193 -0
- package/icc-api/api/IccTopicApi.js.map +1 -0
- package/icc-api/index.d.ts +2 -0
- package/icc-api/index.js +2 -0
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
- package/icc-api/model/AbstractFilterMessage.js +21 -0
- package/icc-api/model/AbstractFilterMessage.js.map +1 -0
- package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
- package/icc-api/model/AbstractFilterTopic.js +21 -0
- package/icc-api/model/AbstractFilterTopic.js.map +1 -0
- package/icc-api/model/AccessLog.d.ts +2 -0
- package/icc-api/model/AccessLog.js.map +1 -1
- package/icc-api/model/Article.d.ts +2 -0
- package/icc-api/model/Article.js.map +1 -1
- package/icc-api/model/CalendarItem.d.ts +2 -0
- package/icc-api/model/CalendarItem.js.map +1 -1
- package/icc-api/model/Classification.d.ts +2 -0
- package/icc-api/model/Classification.js.map +1 -1
- package/icc-api/model/ClassificationTemplate.d.ts +2 -0
- package/icc-api/model/ClassificationTemplate.js.map +1 -1
- package/icc-api/model/Connection.d.ts +1 -1
- package/icc-api/model/Connection.js.map +1 -1
- package/icc-api/model/Contact.d.ts +2 -0
- package/icc-api/model/Contact.js.map +1 -1
- package/icc-api/model/Device.d.ts +4 -4
- package/icc-api/model/Device.js.map +1 -1
- package/icc-api/model/Document.d.ts +2 -0
- package/icc-api/model/Document.js.map +1 -1
- package/icc-api/model/ExchangeDataMapCreationBatch.d.ts +13 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js +10 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js.map +1 -0
- package/icc-api/model/FilterChainMessage.d.ts +19 -0
- package/icc-api/model/FilterChainMessage.js +11 -0
- package/icc-api/model/FilterChainMessage.js.map +1 -0
- package/icc-api/model/FilterChainTopic.d.ts +19 -0
- package/icc-api/model/FilterChainTopic.js +11 -0
- package/icc-api/model/FilterChainTopic.js.map +1 -0
- package/icc-api/model/Form.d.ts +2 -0
- package/icc-api/model/Form.js.map +1 -1
- package/icc-api/model/HealthElement.d.ts +2 -0
- package/icc-api/model/HealthElement.js.map +1 -1
- package/icc-api/model/HealthcareParty.d.ts +2 -2
- package/icc-api/model/HealthcareParty.js +13 -1
- package/icc-api/model/HealthcareParty.js.map +1 -1
- package/icc-api/model/IcureStub.d.ts +2 -0
- package/icc-api/model/IcureStub.js.map +1 -1
- package/icc-api/model/Invoice.d.ts +2 -0
- package/icc-api/model/Invoice.js.map +1 -1
- package/icc-api/model/MaintenanceTask.d.ts +13 -10
- package/icc-api/model/MaintenanceTask.js +13 -11
- package/icc-api/model/MaintenanceTask.js.map +1 -1
- package/icc-api/model/Message.d.ts +2 -0
- package/icc-api/model/Message.js.map +1 -1
- package/icc-api/model/PaginatedListExchangeData.d.ts +9 -0
- package/icc-api/model/PaginatedListExchangeData.js +10 -0
- package/icc-api/model/PaginatedListExchangeData.js.map +1 -0
- package/icc-api/model/PaginatedListTopic.d.ts +20 -0
- package/icc-api/model/PaginatedListTopic.js +10 -0
- package/icc-api/model/PaginatedListTopic.js.map +1 -0
- package/icc-api/model/Patient.d.ts +4 -2
- package/icc-api/model/Patient.js.map +1 -1
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.d.ts +31 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js +32 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js.map +1 -0
- package/icc-api/model/Receipt.d.ts +2 -0
- package/icc-api/model/Receipt.js.map +1 -1
- package/icc-api/model/SecureDelegation.d.ts +52 -0
- package/icc-api/model/SecureDelegation.js +16 -0
- package/icc-api/model/SecureDelegation.js.map +1 -0
- package/icc-api/model/SecurityMetadata.d.ts +33 -0
- package/icc-api/model/SecurityMetadata.js +13 -0
- package/icc-api/model/SecurityMetadata.js.map +1 -0
- package/icc-api/model/Service.d.ts +2 -0
- package/icc-api/model/Service.js.map +1 -1
- package/icc-api/model/TimeTable.d.ts +2 -0
- package/icc-api/model/TimeTable.js.map +1 -1
- package/icc-api/model/Topic.d.ts +95 -0
- package/icc-api/model/Topic.js +16 -0
- package/icc-api/model/Topic.js.map +1 -0
- package/icc-api/model/internal/ExchangeData.d.ts +64 -0
- package/icc-api/model/internal/ExchangeData.js +15 -0
- package/icc-api/model/internal/ExchangeData.js.map +1 -0
- package/icc-api/model/internal/ExchangeDataMap.d.ts +24 -0
- package/icc-api/model/internal/ExchangeDataMap.js +13 -0
- package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
- package/icc-api/model/models.d.ts +26 -40
- package/icc-api/model/models.js +19 -37
- package/icc-api/model/models.js.map +1 -1
- package/icc-api/model/requests/EntityBulkShareResult.d.ts +28 -0
- package/icc-api/model/requests/EntityBulkShareResult.js +16 -0
- package/icc-api/model/requests/EntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.d.ts +10 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js +17 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/EntityShareRequest.d.ts +110 -0
- package/icc-api/model/requests/EntityShareRequest.js +63 -0
- package/icc-api/model/requests/EntityShareRequest.js.map +1 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.d.ts +54 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js +24 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.d.ts +23 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js +13 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.d.ts +21 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js +14 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +55 -6
- package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
- package/icc-x-api/crypto/AES.js +1 -1
- package/icc-x-api/crypto/AES.js.map +1 -1
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +18 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +50 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +43 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js +97 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +146 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js +342 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeKeysManager.d.ts +0 -18
- package/icc-x-api/crypto/BaseExchangeKeysManager.js +11 -85
- package/icc-x-api/crypto/BaseExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ConfidentialEntities.d.ts +26 -16
- package/icc-x-api/crypto/ConfidentialEntities.js +30 -17
- package/icc-x-api/crypto/ConfidentialEntities.js.map +1 -1
- package/icc-x-api/crypto/CryptoStrategies.d.ts +8 -1
- package/icc-x-api/crypto/CryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataManager.d.ts +97 -0
- package/icc-x-api/crypto/ExchangeDataManager.js +501 -0
- package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +32 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js +70 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeKeysManager.d.ts +4 -16
- package/icc-x-api/crypto/ExchangeKeysManager.js +4 -62
- package/icc-x-api/crypto/ExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ExtendedApisUtils.d.ts +326 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js +3 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +174 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +559 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -0
- package/icc-x-api/crypto/KeyRecovery.d.ts +5 -2
- package/icc-x-api/crypto/KeyRecovery.js +59 -29
- package/icc-x-api/crypto/KeyRecovery.js.map +1 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.d.ts +7 -2
- package/icc-x-api/crypto/LegacyCryptoStrategies.js +8 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +33 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +141 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/RSA.d.ts +34 -8
- package/icc-x-api/crypto/RSA.js +80 -13
- package/icc-x-api/crypto/RSA.js.map +1 -1
- package/icc-x-api/crypto/SecureDelegationsEncryption.d.ts +54 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js +178 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsManager.d.ts +66 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js +261 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +46 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +312 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +97 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js +79 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/ShamirKeysManager.d.ts +5 -5
- package/icc-x-api/crypto/ShamirKeysManager.js +6 -9
- package/icc-x-api/crypto/ShamirKeysManager.js.map +1 -1
- package/icc-x-api/crypto/TransferKeysManager.d.ts +8 -6
- package/icc-x-api/crypto/TransferKeysManager.js +75 -52
- package/icc-x-api/crypto/TransferKeysManager.js.map +1 -1
- package/icc-x-api/crypto/{KeyManager.d.ts → UserEncryptionKeysManager.d.ts} +4 -6
- package/icc-x-api/crypto/{KeyManager.js → UserEncryptionKeysManager.js} +43 -23
- package/icc-x-api/crypto/UserEncryptionKeysManager.js.map +1 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +26 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js +74 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -0
- package/icc-x-api/crypto/utils.d.ts +61 -11
- package/icc-x-api/crypto/utils.js +113 -44
- package/icc-x-api/crypto/utils.js.map +1 -1
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
- package/icc-x-api/filters/filters.d.ts +5 -0
- package/icc-x-api/filters/filters.js +5 -0
- package/icc-x-api/filters/filters.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +49 -12
- package/icc-x-api/icc-accesslog-x-api.js +81 -44
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +53 -15
- package/icc-x-api/icc-calendar-item-x-api.js +105 -51
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +47 -10
- package/icc-x-api/icc-classification-x-api.js +62 -33
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +59 -33
- package/icc-x-api/icc-contact-x-api.js +101 -66
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +33 -333
- package/icc-x-api/icc-crypto-x-api.js +47 -764
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-data-owner-x-api.d.ts +20 -8
- package/icc-x-api/icc-data-owner-x-api.js +31 -10
- package/icc-x-api/icc-data-owner-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +51 -12
- package/icc-x-api/icc-document-x-api.js +117 -66
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +48 -11
- package/icc-x-api/icc-form-x-api.js +71 -37
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-hcparty-x-api.d.ts +2 -2
- package/icc-x-api/icc-hcparty-x-api.js +3 -3
- package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +59 -20
- package/icc-x-api/icc-helement-x-api.js +78 -43
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-icure-maintenance-x-api.d.ts +7 -2
- package/icc-x-api/icc-icure-maintenance-x-api.js +38 -27
- package/icc-x-api/icc-icure-maintenance-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +53 -16
- package/icc-x-api/icc-invoice-x-api.js +69 -35
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +56 -22
- package/icc-x-api/icc-maintenance-task-x-api.js +77 -36
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +75 -19
- package/icc-x-api/icc-message-x-api.js +126 -37
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +86 -29
- package/icc-x-api/icc-patient-x-api.js +318 -379
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +47 -13
- package/icc-x-api/icc-receipt-x-api.js +72 -36
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +46 -13
- package/icc-x-api/icc-time-table-x-api.js +61 -27
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/icc-topic-x-api.d.ts +191 -0
- package/icc-x-api/icc-topic-x-api.js +307 -0
- package/icc-x-api/icc-topic-x-api.js.map +1 -0
- package/icc-x-api/icc-user-x-api.d.ts +2 -2
- package/icc-x-api/icc-user-x-api.js +3 -3
- package/icc-x-api/icc-user-x-api.js.map +1 -1
- package/icc-x-api/index.d.ts +18 -2
- package/icc-x-api/index.js +203 -156
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.d.ts +2 -0
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js +9 -2
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/storage/IcureStorageFacade.d.ts +23 -2
- package/icc-x-api/storage/IcureStorageFacade.js +36 -2
- package/icc-x-api/storage/IcureStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageFacade.d.ts +12 -0
- package/icc-x-api/storage/KeyStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageImpl.d.ts +2 -0
- package/icc-x-api/storage/KeyStorageImpl.js +10 -0
- package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.d.ts +14 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +32 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js +75 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -0
- package/icc-x-api/utils/ShareResult.d.ts +74 -0
- package/icc-x-api/utils/ShareResult.js +61 -0
- package/icc-x-api/utils/ShareResult.js.map +1 -0
- package/icc-x-api/utils/binary-utils.d.ts +1 -0
- package/icc-x-api/utils/binary-utils.js +8 -1
- package/icc-x-api/utils/binary-utils.js.map +1 -1
- package/icc-x-api/utils/collection-utils.d.ts +5 -0
- package/icc-x-api/utils/collection-utils.js +26 -1
- package/icc-x-api/utils/collection-utils.js.map +1 -1
- package/icc-x-api/utils/crypto-utils.d.ts +4 -3
- package/icc-x-api/utils/crypto-utils.js +5 -4
- package/icc-x-api/utils/crypto-utils.js.map +1 -1
- package/icc-x-api/utils/lru-temporised-async-cache.d.ts +26 -3
- package/icc-x-api/utils/lru-temporised-async-cache.js +75 -15
- package/icc-x-api/utils/lru-temporised-async-cache.js.map +1 -1
- package/icc-x-api/utils/websocket.d.ts +14 -10
- package/icc-x-api/utils/websocket.js +26 -9
- package/icc-x-api/utils/websocket.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/icc-x-api/crypto/EntitiesEncryption.d.ts +0 -275
- package/icc-x-api/crypto/EntitiesEncryption.js +0 -734
- package/icc-x-api/crypto/EntitiesEncryption.js.map +0 -1
- package/icc-x-api/crypto/KeyManager.js.map +0 -1
package/icc-x-api/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const LocalStorageImpl_1 = require("./storage/LocalStorageImpl");
|
|
|
47
47
|
const KeyStorageImpl_1 = require("./storage/KeyStorageImpl");
|
|
48
48
|
const AuthenticationProvider_1 = require("./auth/AuthenticationProvider");
|
|
49
49
|
const CryptoPrimitives_1 = require("./crypto/CryptoPrimitives");
|
|
50
|
-
const
|
|
50
|
+
const UserEncryptionKeysManager_1 = require("./crypto/UserEncryptionKeysManager");
|
|
51
51
|
const IcureStorageFacade_1 = require("./storage/IcureStorageFacade");
|
|
52
52
|
const DefaultStorageEntryKeysFactory_1 = require("./storage/DefaultStorageEntryKeysFactory");
|
|
53
53
|
const KeyRecovery_1 = require("./crypto/KeyRecovery");
|
|
@@ -56,13 +56,27 @@ const ExchangeKeysManager_1 = require("./crypto/ExchangeKeysManager");
|
|
|
56
56
|
const ShamirKeysManager_1 = require("./crypto/ShamirKeysManager");
|
|
57
57
|
const TransferKeysManager_1 = require("./crypto/TransferKeysManager");
|
|
58
58
|
const icc_icure_maintenance_x_api_1 = require("./icc-icure-maintenance-x-api");
|
|
59
|
-
const EntitiesEncryption_1 = require("./crypto/EntitiesEncryption");
|
|
60
59
|
const ConfidentialEntities_1 = require("./crypto/ConfidentialEntities");
|
|
61
60
|
const utils_1 = require("./crypto/utils");
|
|
62
|
-
const
|
|
61
|
+
const SecureDelegationsSecurityMetadataDecryptor_1 = require("./crypto/SecureDelegationsSecurityMetadataDecryptor");
|
|
62
|
+
const ExchangeDataManager_1 = require("./crypto/ExchangeDataManager");
|
|
63
|
+
const BaseExchangeDataManager_1 = require("./crypto/BaseExchangeDataManager");
|
|
64
|
+
const IccExchangeDataApi_1 = require("../icc-api/api/IccExchangeDataApi");
|
|
65
|
+
const UserSignatureKeysManager_1 = require("./crypto/UserSignatureKeysManager");
|
|
66
|
+
const AccessControlSecretUtils_1 = require("./crypto/AccessControlSecretUtils");
|
|
67
|
+
const SecureDelegationsEncryption_1 = require("./crypto/SecureDelegationsEncryption");
|
|
68
|
+
const LegacyDelegationSecurityMetadataDecryptor_1 = require("./crypto/LegacyDelegationSecurityMetadataDecryptor");
|
|
69
|
+
const ExtendedApisUtilsImpl_1 = require("./crypto/ExtendedApisUtilsImpl");
|
|
70
|
+
const SecureDelegationsManager_1 = require("./crypto/SecureDelegationsManager");
|
|
71
|
+
const AccessControlKeysHeadersProvider_1 = require("./crypto/AccessControlKeysHeadersProvider");
|
|
72
|
+
const IccExchangeDataMapApi_1 = require("../icc-api/api/IccExchangeDataMapApi");
|
|
73
|
+
const ExchangeDataMapManager_1 = require("./crypto/ExchangeDataMapManager");
|
|
74
|
+
const icc_device_x_api_1 = require("./icc-device-x-api");
|
|
63
75
|
const icc_bekmehr_x_api_1 = require("./icc-bekmehr-x-api");
|
|
64
76
|
const icc_doctemplate_x_api_1 = require("./icc-doctemplate-x-api");
|
|
65
|
-
const
|
|
77
|
+
const icc_topic_x_api_1 = require("./icc-topic-x-api");
|
|
78
|
+
const DataOwnerTypeEnum_1 = require("../icc-api/model/DataOwnerTypeEnum");
|
|
79
|
+
const DelegationsDeAnonymization_1 = require("./crypto/DelegationsDeAnonymization");
|
|
66
80
|
__exportStar(require("./icc-accesslog-x-api"), exports);
|
|
67
81
|
__exportStar(require("./icc-bekmehr-x-api"), exports);
|
|
68
82
|
__exportStar(require("./icc-calendar-item-x-api"), exports);
|
|
@@ -109,7 +123,7 @@ var IcureApiOptions;
|
|
|
109
123
|
this.storage = (_c = custom.storage) !== null && _c !== void 0 ? _c : new LocalStorageImpl_1.LocalStorageImpl();
|
|
110
124
|
this.keyStorage = (_d = custom.keyStorage) !== null && _d !== void 0 ? _d : new KeyStorageImpl_1.KeyStorageImpl(this.storage);
|
|
111
125
|
this.headers = (_e = custom.headers) !== null && _e !== void 0 ? _e : Defaults.headers;
|
|
112
|
-
this.encryptedFieldsConfig = (_f = custom.encryptedFieldsConfig) !== null && _f !== void 0 ? _f :
|
|
126
|
+
this.encryptedFieldsConfig = (_f = custom.encryptedFieldsConfig) !== null && _f !== void 0 ? _f : {};
|
|
113
127
|
this.groupSelector = (_g = custom.groupSelector) !== null && _g !== void 0 ? _g : ((groups) => Promise.resolve(groups[0].groupId));
|
|
114
128
|
this.disableParentKeysInitialisation = (_h = custom.disableParentKeysInitialisation) !== null && _h !== void 0 ? _h : false;
|
|
115
129
|
}
|
|
@@ -126,6 +140,8 @@ var EncryptedFieldsConfig;
|
|
|
126
140
|
healthElement: ['descr', 'note', 'notes[].markdown'],
|
|
127
141
|
maintenanceTask: ['properties'],
|
|
128
142
|
patient: ['note', 'notes[].markdown'],
|
|
143
|
+
message: [],
|
|
144
|
+
topic: ['description', 'linkedServices', 'linkedHealthElements'],
|
|
129
145
|
};
|
|
130
146
|
})(EncryptedFieldsConfig = exports.EncryptedFieldsConfig || (exports.EncryptedFieldsConfig = {}));
|
|
131
147
|
var IcureApi;
|
|
@@ -167,249 +183,280 @@ var IcureApi;
|
|
|
167
183
|
* probably linked to replication of the user in the fallback database.
|
|
168
184
|
*/
|
|
169
185
|
const groupSpecificAuthenticationProvider = matches.length > 1 ? yield grouplessAuthenticationProvider.switchGroup(chosenGroupId, matches) : grouplessAuthenticationProvider;
|
|
170
|
-
const
|
|
171
|
-
return new IcureApiImpl(
|
|
186
|
+
const cryptoInitInfo = yield initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto);
|
|
187
|
+
return new IcureApiImpl(cryptoInitInfo, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, matches, matches.find((match) => match.groupId === chosenGroupId), params, cryptoStrategies);
|
|
172
188
|
});
|
|
173
189
|
}
|
|
174
190
|
IcureApi.initialise = initialise;
|
|
175
191
|
})(IcureApi = exports.IcureApi || (exports.IcureApi = {}));
|
|
192
|
+
const REQUEST_AUTOFIX_ANONYMITY_HEADER = 'Icure-Request-Autofix-Anonymity';
|
|
176
193
|
function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto) {
|
|
177
|
-
var _a
|
|
194
|
+
var _a;
|
|
178
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
const initialDataOwnerStub = yield new icc_data_owner_x_api_1.IccDataOwnerXApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl).getCurrentDataOwnerStub();
|
|
197
|
+
const dataOwnerRequiresAnonymousDelegation = cryptoStrategies.dataOwnerRequiresAnonymousDelegation(initialDataOwnerStub);
|
|
198
|
+
let updatedHeaders = params.headers;
|
|
199
|
+
if (!Object.keys(updatedHeaders).includes(REQUEST_AUTOFIX_ANONYMITY_HEADER)) {
|
|
200
|
+
if (initialDataOwnerStub.type == DataOwnerTypeEnum_1.DataOwnerTypeEnum.Patient || initialDataOwnerStub.type == DataOwnerTypeEnum_1.DataOwnerTypeEnum.Device) {
|
|
201
|
+
if (!dataOwnerRequiresAnonymousDelegation) {
|
|
202
|
+
updatedHeaders = Object.assign(Object.assign({}, updatedHeaders), { [REQUEST_AUTOFIX_ANONYMITY_HEADER]: 'false' });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
if (dataOwnerRequiresAnonymousDelegation) {
|
|
207
|
+
updatedHeaders = Object.assign(Object.assign({}, updatedHeaders), { [REQUEST_AUTOFIX_ANONYMITY_HEADER]: 'true' });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const authApi = new icc_api_1.IccAuthApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
|
|
212
|
+
const userApi = new icc_user_x_api_1.IccUserXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
213
|
+
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
214
|
+
const deviceApi = new icc_device_x_api_1.IccDeviceXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, userApi, authApi, fetchImpl);
|
|
215
|
+
const basePatientApi = new icc_api_1.IccPatientApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
|
|
216
|
+
const dataOwnerApi = new icc_data_owner_x_api_1.IccDataOwnerXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
|
|
217
|
+
const exchangeDataApi = new IccExchangeDataApi_1.IccExchangeDataApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
|
|
185
218
|
// Crypto initialisation
|
|
186
219
|
const icureStorage = new IcureStorageFacade_1.IcureStorageFacade(params.keyStorage, params.storage, params.entryKeysFactory);
|
|
187
220
|
const cryptoPrimitives = new CryptoPrimitives_1.CryptoPrimitives(crypto);
|
|
188
221
|
const baseExchangeKeysManager = new BaseExchangeKeysManager_1.BaseExchangeKeysManager(cryptoPrimitives, dataOwnerApi, healthcarePartyApi, basePatientApi, deviceApi);
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
|
|
222
|
+
const baseExchangeDataManager = new BaseExchangeDataManager_1.BaseExchangeDataManager(exchangeDataApi, dataOwnerApi, cryptoPrimitives, dataOwnerRequiresAnonymousDelegation);
|
|
223
|
+
const keyRecovery = new KeyRecovery_1.KeyRecovery(cryptoPrimitives, dataOwnerApi, baseExchangeKeysManager, baseExchangeDataManager);
|
|
224
|
+
const userEncryptionKeysManager = new UserEncryptionKeysManager_1.UserEncryptionKeysManager(cryptoPrimitives, dataOwnerApi, icureStorage, keyRecovery, cryptoStrategies, !params.disableParentKeysInitialisation);
|
|
225
|
+
const userSignatureKeysManager = new UserSignatureKeysManager_1.UserSignatureKeysManager(icureStorage, dataOwnerApi, cryptoPrimitives);
|
|
226
|
+
const newKey = yield userEncryptionKeysManager.initialiseKeys();
|
|
227
|
+
yield new TransferKeysManager_1.TransferKeysManager(cryptoPrimitives, baseExchangeDataManager, dataOwnerApi, userEncryptionKeysManager, userSignatureKeysManager, icureStorage).updateTransferKeys(yield dataOwnerApi.getCurrentDataOwnerStub());
|
|
193
228
|
// TODO customise cache size?
|
|
194
|
-
const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(100, 500,
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
const
|
|
229
|
+
const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(100, 500, 600000, 60000, cryptoStrategies, cryptoPrimitives, userEncryptionKeysManager, baseExchangeKeysManager, dataOwnerApi, !params.disableParentKeysInitialisation, icureStorage);
|
|
230
|
+
const accessControlSecretUtils = new AccessControlSecretUtils_1.AccessControlSecretUtils(cryptoPrimitives);
|
|
231
|
+
const exchangeDataManager = yield (0, ExchangeDataManager_1.initialiseExchangeDataManagerForCurrentDataOwner)(baseExchangeDataManager, userEncryptionKeysManager, userSignatureKeysManager, accessControlSecretUtils, cryptoStrategies, dataOwnerApi, cryptoPrimitives, !params.disableParentKeysInitialisation);
|
|
232
|
+
const exchangeDataMapManager = new ExchangeDataMapManager_1.ExchangeDataMapManager(new IccExchangeDataMapApi_1.IccExchangeDataMapApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl));
|
|
233
|
+
const secureDelegationsEncryption = new SecureDelegationsEncryption_1.SecureDelegationsEncryption(userEncryptionKeysManager, cryptoPrimitives);
|
|
234
|
+
const secureDelegationsSecurityMetadataEncryption = new SecureDelegationsSecurityMetadataDecryptor_1.SecureDelegationsSecurityMetadataDecryptor(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, dataOwnerApi);
|
|
235
|
+
const xApiUtils = new ExtendedApisUtilsImpl_1.ExtendedApisUtilsImpl(cryptoPrimitives, dataOwnerApi, new LegacyDelegationSecurityMetadataDecryptor_1.LegacyDelegationSecurityMetadataDecryptor(exchangeKeysManager, cryptoPrimitives), secureDelegationsSecurityMetadataEncryption, new SecureDelegationsManager_1.SecureDelegationsManager(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, accessControlSecretUtils, userEncryptionKeysManager, cryptoPrimitives, dataOwnerApi, cryptoStrategies, dataOwnerRequiresAnonymousDelegation), userApi, !params.disableParentKeysInitialisation);
|
|
236
|
+
const shamirManager = new ShamirKeysManager_1.ShamirKeysManager(cryptoPrimitives, dataOwnerApi, userEncryptionKeysManager, exchangeDataManager);
|
|
237
|
+
const confidentialEntitites = new ConfidentialEntities_1.ConfidentialEntities(xApiUtils, cryptoPrimitives, dataOwnerApi);
|
|
238
|
+
yield (0, utils_1.ensureDelegationForSelf)(dataOwnerApi, xApiUtils, basePatientApi, cryptoPrimitives);
|
|
239
|
+
const accessControlKeysHeadersProvider = new AccessControlKeysHeadersProvider_1.AccessControlKeysHeadersProvider(exchangeDataManager);
|
|
240
|
+
const delegationsDeAnonymisation = new DelegationsDeAnonymization_1.DelegationsDeAnonymization(dataOwnerApi, secureDelegationsSecurityMetadataEncryption, xApiUtils, cryptoPrimitives, accessControlSecretUtils, host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl, accessControlKeysHeadersProvider);
|
|
241
|
+
const cryptoApi = new icc_crypto_x_api_1.IccCryptoXApi(exchangeKeysManager, cryptoPrimitives, userEncryptionKeysManager, dataOwnerApi, xApiUtils, shamirManager, params.storage, params.keyStorage, confidentialEntitites, exchangeDataManager, accessControlKeysHeadersProvider, delegationsDeAnonymisation);
|
|
242
|
+
const maintenanceTaskApi = new icc_maintenance_task_x_api_1.IccMaintenanceTaskXApi(host, updatedHeaders, cryptoApi, healthcarePartyApi, dataOwnerApi, userApi, authApi, !dataOwnerRequiresAnonymousDelegation, (_a = params.encryptedFieldsConfig.maintenanceTask) !== null && _a !== void 0 ? _a : EncryptedFieldsConfig.Defaults.maintenanceTask, groupSpecificAuthenticationProvider, fetchImpl);
|
|
243
|
+
const icureMaintenanceTaskApi = new icc_icure_maintenance_x_api_1.IccIcureMaintenanceXApi(cryptoApi, maintenanceTaskApi, dataOwnerApi, exchangeDataApi);
|
|
202
244
|
if (newKey && params.createMaintenanceTasksOnNewKey) {
|
|
203
245
|
yield icureMaintenanceTaskApi.createMaintenanceTasksForNewKeypair(yield userApi.getCurrentUser(), newKey.newKeyPair);
|
|
204
246
|
}
|
|
205
247
|
return {
|
|
206
248
|
cryptoApi,
|
|
249
|
+
userApi,
|
|
207
250
|
healthcarePartyApi,
|
|
208
251
|
deviceApi,
|
|
252
|
+
maintenanceTaskApi,
|
|
209
253
|
dataOwnerApi,
|
|
210
|
-
userApi,
|
|
211
254
|
icureMaintenanceTaskApi,
|
|
212
|
-
|
|
255
|
+
headers: updatedHeaders,
|
|
256
|
+
dataOwnerRequiresAnonymousDelegation,
|
|
213
257
|
};
|
|
214
258
|
});
|
|
215
259
|
}
|
|
216
260
|
class IcureApiImpl {
|
|
217
|
-
|
|
218
|
-
|
|
261
|
+
constructor(cryptoInitInfos, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, latestMatches, currentGroupInfo, params, cryptoStrategies) {
|
|
262
|
+
this.cryptoInitInfos = cryptoInitInfos;
|
|
263
|
+
this.host = host;
|
|
264
|
+
this.groupSpecificAuthenticationProvider = groupSpecificAuthenticationProvider;
|
|
265
|
+
this.fetch = fetch;
|
|
266
|
+
this.grouplessUserApi = grouplessUserApi;
|
|
267
|
+
this.currentGroupInfo = currentGroupInfo;
|
|
268
|
+
this.params = params;
|
|
269
|
+
this.cryptoStrategies = cryptoStrategies;
|
|
270
|
+
this.latestGroupsRequest = Promise.resolve(latestMatches);
|
|
219
271
|
}
|
|
220
|
-
get
|
|
221
|
-
|
|
272
|
+
get authApi() {
|
|
273
|
+
var _a;
|
|
274
|
+
return ((_a = this._authApi) !== null && _a !== void 0 ? _a : (this._authApi = new icc_api_1.IccAuthApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
222
275
|
}
|
|
223
|
-
get
|
|
224
|
-
var _a
|
|
225
|
-
return ((_a = this.
|
|
276
|
+
get codeApi() {
|
|
277
|
+
var _a;
|
|
278
|
+
return ((_a = this._codeApi) !== null && _a !== void 0 ? _a : (this._codeApi = new icc_code_x_api_1.IccCodeXApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
226
279
|
}
|
|
227
|
-
get
|
|
280
|
+
get calendarItemTypeApi() {
|
|
228
281
|
var _a;
|
|
229
|
-
return ((_a = this.
|
|
282
|
+
return ((_a = this._calendarItemTypeApi) !== null && _a !== void 0 ? _a : (this._calendarItemTypeApi = new icc_api_1.IccCalendarItemTypeApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
230
283
|
}
|
|
231
|
-
get
|
|
284
|
+
get medicalLocationApi() {
|
|
232
285
|
var _a;
|
|
233
|
-
return ((_a = this.
|
|
286
|
+
return ((_a = this._medicalLocationApi) !== null && _a !== void 0 ? _a : (this._medicalLocationApi = new icc_api_1.IccMedicallocationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
234
287
|
}
|
|
235
|
-
get
|
|
288
|
+
get entityReferenceApi() {
|
|
236
289
|
var _a;
|
|
237
|
-
return ((_a = this.
|
|
290
|
+
return ((_a = this._entityReferenceApi) !== null && _a !== void 0 ? _a : (this._entityReferenceApi = new icc_api_1.IccEntityrefApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
238
291
|
}
|
|
239
|
-
get
|
|
292
|
+
get permissionApi() {
|
|
240
293
|
var _a;
|
|
241
|
-
return ((_a = this.
|
|
294
|
+
return ((_a = this._permissionApi) !== null && _a !== void 0 ? _a : (this._permissionApi = new icc_api_1.IccPermissionApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
242
295
|
}
|
|
243
|
-
get
|
|
296
|
+
get accessLogApi() {
|
|
297
|
+
var _a, _b;
|
|
298
|
+
return ((_a = this._accessLogApi) !== null && _a !== void 0 ? _a : (this._accessLogApi = new icc_accesslog_x_api_1.IccAccesslogXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.accessLog) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.accessLog, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
299
|
+
}
|
|
300
|
+
get agendaApi() {
|
|
244
301
|
var _a;
|
|
245
|
-
return (_a = this.
|
|
302
|
+
return ((_a = this._agendaApi) !== null && _a !== void 0 ? _a : (this._agendaApi = new icc_api_1.IccAgendaApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
246
303
|
}
|
|
247
|
-
get
|
|
304
|
+
get contactApi() {
|
|
305
|
+
var _a, _b, _c;
|
|
306
|
+
return ((_a = this._contactApi) !== null && _a !== void 0 ? _a : (this._contactApi = new icc_contact_x_api_1.IccContactXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch, (_b = this.params.encryptedFieldsConfig.contact) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.contact, (_c = this.params.encryptedFieldsConfig.service) !== null && _c !== void 0 ? _c : EncryptedFieldsConfig.Defaults.service)));
|
|
307
|
+
}
|
|
308
|
+
get formApi() {
|
|
248
309
|
var _a;
|
|
249
|
-
return ((_a = this.
|
|
310
|
+
return ((_a = this._formApi) !== null && _a !== void 0 ? _a : (this._formApi = new icc_form_x_api_1.IccFormXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
250
311
|
}
|
|
251
|
-
get
|
|
312
|
+
get groupApi() {
|
|
252
313
|
var _a;
|
|
253
|
-
return ((_a = this.
|
|
314
|
+
return ((_a = this._groupApi) !== null && _a !== void 0 ? _a : (this._groupApi = new icc_api_1.IccGroupApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
254
315
|
}
|
|
255
|
-
get
|
|
316
|
+
get invoiceApi() {
|
|
256
317
|
var _a;
|
|
257
|
-
return ((_a = this.
|
|
318
|
+
return ((_a = this._invoiceApi) !== null && _a !== void 0 ? _a : (this._invoiceApi = new icc_invoice_x_api_1.IccInvoiceXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.entityReferenceApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
258
319
|
}
|
|
259
|
-
get
|
|
320
|
+
get insuranceApi() {
|
|
260
321
|
var _a;
|
|
261
|
-
return ((_a = this.
|
|
322
|
+
return ((_a = this._insuranceApi) !== null && _a !== void 0 ? _a : (this._insuranceApi = new icc_api_1.IccInsuranceApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
262
323
|
}
|
|
263
|
-
get
|
|
324
|
+
get documentApi() {
|
|
264
325
|
var _a;
|
|
265
|
-
return ((_a = this.
|
|
326
|
+
return ((_a = this._documentApi) !== null && _a !== void 0 ? _a : (this._documentApi = new icc_document_x_api_1.IccDocumentXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.authApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
266
327
|
}
|
|
267
|
-
get
|
|
328
|
+
get healthcareElementApi() {
|
|
268
329
|
var _a, _b;
|
|
269
|
-
return ((_a = this.
|
|
270
|
-
}
|
|
271
|
-
get calendarItemTypeApi() {
|
|
272
|
-
var _a;
|
|
273
|
-
return ((_a = this._calendarItemTypeApi) !== null && _a !== void 0 ? _a : (this._calendarItemTypeApi = new icc_api_1.IccCalendarItemTypeApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
330
|
+
return ((_a = this._healthcareElementApi) !== null && _a !== void 0 ? _a : (this._healthcareElementApi = new icc_helement_x_api_1.IccHelementXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.healthElement) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.healthElement, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
274
331
|
}
|
|
275
332
|
get classificationApi() {
|
|
276
333
|
var _a;
|
|
277
|
-
return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.
|
|
334
|
+
return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
278
335
|
}
|
|
279
|
-
get
|
|
336
|
+
get calendarItemApi() {
|
|
337
|
+
var _a, _b;
|
|
338
|
+
return ((_a = this._calendarItemApi) !== null && _a !== void 0 ? _a : (this._calendarItemApi = new icc_calendar_item_x_api_1.IccCalendarItemXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.calendarItem) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.calendarItem, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
339
|
+
}
|
|
340
|
+
get receiptApi() {
|
|
280
341
|
var _a;
|
|
281
|
-
return ((_a = this.
|
|
342
|
+
return ((_a = this._receiptApi) !== null && _a !== void 0 ? _a : (this._receiptApi = new icc_receipt_x_api_1.IccReceiptXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
282
343
|
}
|
|
283
|
-
get
|
|
344
|
+
get timetableApi() {
|
|
284
345
|
var _a;
|
|
285
|
-
return (_a = this.
|
|
346
|
+
return ((_a = this._timetableApi) !== null && _a !== void 0 ? _a : (this._timetableApi = new icc_time_table_x_api_1.IccTimeTableXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
286
347
|
}
|
|
287
|
-
get
|
|
288
|
-
var _a, _b
|
|
289
|
-
return ((_a = this.
|
|
348
|
+
get patientApi() {
|
|
349
|
+
var _a, _b;
|
|
350
|
+
return ((_a = this._patientApi) !== null && _a !== void 0 ? _a : (this._patientApi = new icc_patient_x_api_1.IccPatientXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.contactApi, this.formApi, this.healthcareElementApi, this.invoiceApi, this.documentApi, this.healthcarePartyApi, this.classificationApi, this.dataOwnerApi, this.calendarItemApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.patient) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.patient, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
290
351
|
}
|
|
291
|
-
get
|
|
292
|
-
|
|
352
|
+
get messageApi() {
|
|
353
|
+
var _a, _b;
|
|
354
|
+
return ((_a = this._messageApi) !== null && _a !== void 0 ? _a : (this._messageApi = new icc_message_x_api_1.IccMessageXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, (_b = this.params.encryptedFieldsConfig.message) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.message, this.fetch)));
|
|
293
355
|
}
|
|
294
|
-
get
|
|
295
|
-
var _a;
|
|
296
|
-
return ((_a = this.
|
|
356
|
+
get topicApi() {
|
|
357
|
+
var _a, _b;
|
|
358
|
+
return ((_a = this._topicApi) !== null && _a !== void 0 ? _a : (this._topicApi = new icc_topic_x_api_1.IccTopicXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, (_b = this.params.encryptedFieldsConfig.topic) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.topic, this.fetch)));
|
|
297
359
|
}
|
|
298
|
-
get
|
|
360
|
+
get anonymousAccessApi() {
|
|
299
361
|
var _a;
|
|
300
|
-
return ((_a = this.
|
|
362
|
+
return ((_a = this._anonymousAccessApi) !== null && _a !== void 0 ? _a : (this._anonymousAccessApi = new icc_api_1.IccAnonymousAccessApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
301
363
|
}
|
|
302
|
-
get
|
|
364
|
+
get applicationSettingsApi() {
|
|
303
365
|
var _a;
|
|
304
|
-
return ((_a = this.
|
|
366
|
+
return ((_a = this._applicationSettingsApi) !== null && _a !== void 0 ? _a : (this._applicationSettingsApi = new icc_api_1.IccApplicationsettingsApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
305
367
|
}
|
|
306
|
-
get
|
|
368
|
+
get articleApi() {
|
|
307
369
|
var _a;
|
|
308
|
-
return ((_a = this.
|
|
370
|
+
return ((_a = this._articleApi) !== null && _a !== void 0 ? _a : (this._articleApi = new icc_api_1.IccArticleApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
309
371
|
}
|
|
310
|
-
get
|
|
372
|
+
get bekmehrApi() {
|
|
311
373
|
var _a;
|
|
312
|
-
return ((_a = this.
|
|
374
|
+
return ((_a = this._bekmehrApi) !== null && _a !== void 0 ? _a : (this._bekmehrApi = new icc_bekmehr_x_api_1.IccBekmehrXApi(this.host, this.cryptoInitInfos.headers, this.authApi, this.contactApi, this.healthcareElementApi, this.documentApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
313
375
|
}
|
|
314
|
-
get
|
|
376
|
+
get beefactApi() {
|
|
315
377
|
var _a;
|
|
316
|
-
return ((_a = this.
|
|
378
|
+
return ((_a = this._beefactApi) !== null && _a !== void 0 ? _a : (this._beefactApi = new icc_api_1.IccBeefactApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
317
379
|
}
|
|
318
|
-
get
|
|
380
|
+
get beresultexportApi() {
|
|
319
381
|
var _a;
|
|
320
|
-
return (_a = this.
|
|
321
|
-
}
|
|
322
|
-
get healthcareElementApi() {
|
|
323
|
-
var _a, _b;
|
|
324
|
-
return ((_a = this._healthcareElementApi) !== null && _a !== void 0 ? _a : (this._healthcareElementApi = new icc_helement_x_api_1.IccHelementXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, (_b = this.params.encryptedFieldsConfig.healthElement) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.healthElement, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
325
|
-
}
|
|
326
|
-
get healthcarePartyApi() {
|
|
327
|
-
return this.cryptoInitApis.healthcarePartyApi;
|
|
382
|
+
return ((_a = this._beresultexportApi) !== null && _a !== void 0 ? _a : (this._beresultexportApi = new icc_api_1.IccBeresultexportApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
328
383
|
}
|
|
329
|
-
get
|
|
384
|
+
get beresultimportApi() {
|
|
330
385
|
var _a;
|
|
331
|
-
return (_a = this.
|
|
386
|
+
return ((_a = this._beresultimportApi) !== null && _a !== void 0 ? _a : (this._beresultimportApi = new icc_api_1.IccBeresultimportApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
332
387
|
}
|
|
333
|
-
get
|
|
334
|
-
return this.cryptoInitApis.icureMaintenanceTaskApi;
|
|
335
|
-
}
|
|
336
|
-
get insuranceApi() {
|
|
388
|
+
get besamv2Api() {
|
|
337
389
|
var _a;
|
|
338
|
-
return ((_a = this.
|
|
390
|
+
return ((_a = this._besamv2Api) !== null && _a !== void 0 ? _a : (this._besamv2Api = new icc_api_1.IccBesamv2Api(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
339
391
|
}
|
|
340
|
-
get
|
|
392
|
+
get classificationTemplateApi() {
|
|
341
393
|
var _a;
|
|
342
|
-
return ((_a = this.
|
|
394
|
+
return ((_a = this._classificationTemplateApi) !== null && _a !== void 0 ? _a : (this._classificationTemplateApi = new icc_api_1.IccClassificationTemplateApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
343
395
|
}
|
|
344
|
-
get
|
|
396
|
+
get doctemplateApi() {
|
|
345
397
|
var _a;
|
|
346
|
-
return ((_a = this.
|
|
398
|
+
return ((_a = this._doctemplateApi) !== null && _a !== void 0 ? _a : (this._doctemplateApi = new icc_doctemplate_x_api_1.IccDoctemplateXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
347
399
|
}
|
|
348
|
-
get
|
|
349
|
-
return this.cryptoInitApis.maintenanceTaskApi;
|
|
350
|
-
}
|
|
351
|
-
get medexApi() {
|
|
400
|
+
get entitytemplateApi() {
|
|
352
401
|
var _a;
|
|
353
|
-
return (_a = this.
|
|
402
|
+
return ((_a = this._entitytemplateApi) !== null && _a !== void 0 ? _a : (this._entitytemplateApi = new icc_api_1.IccEntitytemplateApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
354
403
|
}
|
|
355
|
-
get
|
|
404
|
+
get frontendmigrationApi() {
|
|
356
405
|
var _a;
|
|
357
|
-
return ((_a = this.
|
|
406
|
+
return ((_a = this._frontendmigrationApi) !== null && _a !== void 0 ? _a : (this._frontendmigrationApi = new icc_api_1.IccFrontendmigrationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
358
407
|
}
|
|
359
|
-
get
|
|
408
|
+
get icureApi() {
|
|
360
409
|
var _a;
|
|
361
|
-
return ((_a = this.
|
|
410
|
+
return ((_a = this._icureApi) !== null && _a !== void 0 ? _a : (this._icureApi = new icc_api_1.IccIcureApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
362
411
|
}
|
|
363
|
-
get
|
|
364
|
-
var _a
|
|
365
|
-
return ((_a = this.
|
|
412
|
+
get keywordApi() {
|
|
413
|
+
var _a;
|
|
414
|
+
return ((_a = this._keywordApi) !== null && _a !== void 0 ? _a : (this._keywordApi = new icc_api_1.IccKeywordApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
366
415
|
}
|
|
367
|
-
get
|
|
416
|
+
get medexApi() {
|
|
368
417
|
var _a;
|
|
369
|
-
return ((_a = this.
|
|
418
|
+
return ((_a = this._medexApi) !== null && _a !== void 0 ? _a : (this._medexApi = new icc_api_1.IccMedexApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
370
419
|
}
|
|
371
420
|
get placeApi() {
|
|
372
421
|
var _a;
|
|
373
|
-
return (_a = this._placeApi) !== null && _a !== void 0 ? _a : (this._placeApi = new icc_api_1.IccPlaceApi(this.host, this.
|
|
422
|
+
return ((_a = this._placeApi) !== null && _a !== void 0 ? _a : (this._placeApi = new icc_api_1.IccPlaceApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
374
423
|
}
|
|
375
424
|
get pubsubApi() {
|
|
376
425
|
var _a;
|
|
377
|
-
return ((_a = this._pubsubApi) !== null && _a !== void 0 ? _a : (this._pubsubApi = new icc_api_1.IccPubsubApi(this.host, this.
|
|
378
|
-
}
|
|
379
|
-
get receiptApi() {
|
|
380
|
-
var _a;
|
|
381
|
-
return ((_a = this._receiptApi) !== null && _a !== void 0 ? _a : (this._receiptApi = new icc_receipt_x_api_1.IccReceiptXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
426
|
+
return ((_a = this._pubsubApi) !== null && _a !== void 0 ? _a : (this._pubsubApi = new icc_api_1.IccPubsubApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
382
427
|
}
|
|
383
428
|
get replicationApi() {
|
|
384
429
|
var _a;
|
|
385
|
-
return ((_a = this._replicationApi) !== null && _a !== void 0 ? _a : (this._replicationApi = new icc_api_1.IccReplicationApi(this.host, this.
|
|
430
|
+
return ((_a = this._replicationApi) !== null && _a !== void 0 ? _a : (this._replicationApi = new icc_api_1.IccReplicationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
386
431
|
}
|
|
387
432
|
get tarificationApi() {
|
|
388
433
|
var _a;
|
|
389
|
-
return ((_a = this._tarificationApi) !== null && _a !== void 0 ? _a : (this._tarificationApi = new icc_api_1.IccTarificationApi(this.host, this.
|
|
390
|
-
}
|
|
391
|
-
get timetableApi() {
|
|
392
|
-
var _a;
|
|
393
|
-
return ((_a = this._timetableApi) !== null && _a !== void 0 ? _a : (this._timetableApi = new icc_time_table_x_api_1.IccTimeTableXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
434
|
+
return ((_a = this._tarificationApi) !== null && _a !== void 0 ? _a : (this._tarificationApi = new icc_api_1.IccTarificationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
394
435
|
}
|
|
395
436
|
get tmpApi() {
|
|
396
437
|
var _a;
|
|
397
|
-
return (_a = this._tmpApi) !== null && _a !== void 0 ? _a : (this._tmpApi = new icc_api_1.IccTmpApi(this.host, this.
|
|
438
|
+
return ((_a = this._tmpApi) !== null && _a !== void 0 ? _a : (this._tmpApi = new icc_api_1.IccTmpApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
398
439
|
}
|
|
399
|
-
get
|
|
400
|
-
return this.
|
|
440
|
+
get cryptoApi() {
|
|
441
|
+
return this.cryptoInitInfos.cryptoApi;
|
|
401
442
|
}
|
|
402
|
-
|
|
403
|
-
this.
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
this.
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
this.
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
this.
|
|
443
|
+
get dataOwnerApi() {
|
|
444
|
+
return this.cryptoInitInfos.dataOwnerApi;
|
|
445
|
+
}
|
|
446
|
+
get deviceApi() {
|
|
447
|
+
return this.cryptoInitInfos.deviceApi;
|
|
448
|
+
}
|
|
449
|
+
get healthcarePartyApi() {
|
|
450
|
+
return this.cryptoInitInfos.healthcarePartyApi;
|
|
451
|
+
}
|
|
452
|
+
get icureMaintenanceTaskApi() {
|
|
453
|
+
return this.cryptoInitInfos.icureMaintenanceTaskApi;
|
|
454
|
+
}
|
|
455
|
+
get maintenanceTaskApi() {
|
|
456
|
+
return this.cryptoInitInfos.maintenanceTaskApi;
|
|
457
|
+
}
|
|
458
|
+
get userApi() {
|
|
459
|
+
return this.cryptoInitInfos.userApi;
|
|
413
460
|
}
|
|
414
461
|
getGroupsInfo() {
|
|
415
462
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -421,8 +468,8 @@ class IcureApiImpl {
|
|
|
421
468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
422
469
|
const availableGroups = yield this.latestGroupsRequest;
|
|
423
470
|
const switchedProvider = yield this.groupSpecificAuthenticationProvider.switchGroup(newGroupId, availableGroups);
|
|
424
|
-
const
|
|
425
|
-
return new IcureApiImpl(
|
|
471
|
+
const cryptoInitInfos = yield initialiseCryptoWithProvider(this.host, this.fetch, switchedProvider, this.params, this.cryptoStrategies, this.cryptoApi.primitives.crypto);
|
|
472
|
+
return new IcureApiImpl(cryptoInitInfos, this.host, switchedProvider, this.fetch, this.grouplessUserApi, availableGroups, availableGroups.find((x) => x.groupId === newGroupId), this.params, this.cryptoStrategies);
|
|
426
473
|
});
|
|
427
474
|
}
|
|
428
475
|
}
|
|
@@ -437,18 +484,18 @@ const BasicApis = function (host, username, password, crypto = typeof window !==
|
|
|
437
484
|
: fetch, forceBasic = false) {
|
|
438
485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
439
486
|
const headers = {};
|
|
440
|
-
const
|
|
487
|
+
const groupSpecificAuthenticationProvider = forceBasic
|
|
441
488
|
? new AuthenticationProvider_1.BasicAuthenticationProvider(username, password)
|
|
442
489
|
: new AuthenticationProvider_1.EnsembleAuthenticationProvider(new icc_api_1.IccAuthApi(host, headers, new AuthenticationProvider_1.NoAuthenticationProvider(), fetchImpl), username, password);
|
|
443
|
-
const authApi = new icc_api_1.IccAuthApi(host, headers,
|
|
444
|
-
const codeApi = new icc_code_x_api_1.IccCodeXApi(host, headers,
|
|
445
|
-
const entityReferenceApi = new icc_api_1.IccEntityrefApi(host, headers,
|
|
446
|
-
const userApi = new icc_user_x_api_1.IccUserXApi(host, headers,
|
|
447
|
-
const permissionApi = new icc_api_1.IccPermissionApi(host, headers,
|
|
448
|
-
const agendaApi = new icc_api_1.IccAgendaApi(host, headers,
|
|
449
|
-
const groupApi = new icc_api_1.IccGroupApi(host, headers,
|
|
450
|
-
const insuranceApi = new icc_api_1.IccInsuranceApi(host, headers,
|
|
451
|
-
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, headers,
|
|
490
|
+
const authApi = new icc_api_1.IccAuthApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
491
|
+
const codeApi = new icc_code_x_api_1.IccCodeXApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
492
|
+
const entityReferenceApi = new icc_api_1.IccEntityrefApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
493
|
+
const userApi = new icc_user_x_api_1.IccUserXApi(host, headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
494
|
+
const permissionApi = new icc_api_1.IccPermissionApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
495
|
+
const agendaApi = new icc_api_1.IccAgendaApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
496
|
+
const groupApi = new icc_api_1.IccGroupApi(host, headers, groupSpecificAuthenticationProvider);
|
|
497
|
+
const insuranceApi = new icc_api_1.IccInsuranceApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
498
|
+
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
452
499
|
return {
|
|
453
500
|
authApi,
|
|
454
501
|
codeApi,
|