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