@icure/api 7.1.14 → 8.0.0-RC.1
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 +32 -25
- package/icc-api/api/IccDocumentApi.js +264 -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 +12 -1
- package/icc-api/api/IccMessageApi.js +257 -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/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/index.d.ts +1 -0
- package/icc-api/index.js +1 -0
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AccessLog.d.ts +4 -0
- package/icc-api/model/AccessLog.js +1 -0
- package/icc-api/model/AccessLog.js.map +1 -1
- package/icc-api/model/Article.d.ts +4 -0
- package/icc-api/model/Article.js +1 -0
- package/icc-api/model/Article.js.map +1 -1
- package/icc-api/model/CalendarItem.d.ts +4 -0
- package/icc-api/model/CalendarItem.js +1 -0
- package/icc-api/model/CalendarItem.js.map +1 -1
- package/icc-api/model/Classification.d.ts +4 -0
- package/icc-api/model/Classification.js +1 -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/Contact.d.ts +4 -0
- package/icc-api/model/Contact.js +1 -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 +4 -0
- package/icc-api/model/Document.js +1 -0
- package/icc-api/model/Document.js.map +1 -1
- package/icc-api/model/ExchangeData.d.ts +61 -0
- package/icc-api/model/ExchangeData.js +12 -0
- package/icc-api/model/ExchangeData.js.map +1 -0
- package/icc-api/model/ExchangeDataMap.d.ts +21 -0
- package/icc-api/model/ExchangeDataMap.js +10 -0
- package/icc-api/model/ExchangeDataMap.js.map +1 -0
- 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/Form.d.ts +4 -0
- package/icc-api/model/Form.js +1 -0
- package/icc-api/model/Form.js.map +1 -1
- package/icc-api/model/HealthElement.d.ts +4 -0
- package/icc-api/model/HealthElement.js +1 -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.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 +4 -0
- package/icc-api/model/Invoice.js +1 -0
- package/icc-api/model/Invoice.js.map +1 -1
- package/icc-api/model/MaintenanceTask.d.ts +4 -0
- package/icc-api/model/MaintenanceTask.js +1 -0
- package/icc-api/model/MaintenanceTask.js.map +1 -1
- package/icc-api/model/Message.d.ts +4 -0
- package/icc-api/model/Message.js +1 -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/Patient.d.ts +6 -2
- package/icc-api/model/Patient.js +1 -0
- 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 +4 -0
- package/icc-api/model/Receipt.js +1 -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 +4 -0
- package/icc-api/model/TimeTable.js +1 -0
- package/icc-api/model/TimeTable.js.map +1 -1
- package/icc-api/model/models.d.ts +20 -39
- package/icc-api/model/models.js +15 -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 +3 -2
- 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 +16 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +41 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +42 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js +86 -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/ExchangeDataManager.d.ts +95 -0
- package/icc-x-api/crypto/ExchangeDataManager.js +493 -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 +336 -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 +181 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +562 -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 +39 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +150 -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 +37 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +294 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +114 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js +98 -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/filters.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +46 -11
- package/icc-x-api/icc-accesslog-x-api.js +75 -42
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +50 -14
- package/icc-x-api/icc-calendar-item-x-api.js +99 -49
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +44 -9
- package/icc-x-api/icc-classification-x-api.js +56 -31
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +56 -32
- package/icc-x-api/icc-contact-x-api.js +95 -64
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +28 -334
- package/icc-x-api/icc-crypto-x-api.js +41 -765
- 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 +48 -11
- package/icc-x-api/icc-document-x-api.js +111 -64
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +45 -10
- package/icc-x-api/icc-form-x-api.js +65 -35
- 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 +55 -18
- package/icc-x-api/icc-helement-x-api.js +76 -41
- 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 +50 -15
- package/icc-x-api/icc-invoice-x-api.js +63 -33
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +53 -21
- package/icc-x-api/icc-maintenance-task-x-api.js +72 -35
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +53 -15
- package/icc-x-api/icc-message-x-api.js +65 -36
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +84 -29
- package/icc-x-api/icc-patient-x-api.js +313 -378
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +44 -12
- package/icc-x-api/icc-receipt-x-api.js +67 -35
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +43 -12
- package/icc-x-api/icc-time-table-x-api.js +56 -26
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- 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 +4 -2
- package/icc-x-api/index.js +154 -135
- package/icc-x-api/index.js.map +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 +10 -10
- package/icc-x-api/utils/websocket.js +18 -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
|
@@ -10,19 +10,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.IccUserXApi = void 0;
|
|
13
|
-
const
|
|
13
|
+
const IccUserApi_1 = require("../icc-api/api/IccUserApi");
|
|
14
14
|
const AuthenticationProvider_1 = require("./auth/AuthenticationProvider");
|
|
15
15
|
const Connection_1 = require("../icc-api/model/Connection");
|
|
16
16
|
const utils_1 = require("./utils");
|
|
17
|
-
class IccUserXApi extends
|
|
17
|
+
class IccUserXApi extends IccUserApi_1.IccUserApi {
|
|
18
18
|
constructor(host, headers, authenticationProvider = new AuthenticationProvider_1.NoAuthenticationProvider(), authApi, fetchImpl = typeof window !== 'undefined'
|
|
19
19
|
? window.fetch
|
|
20
20
|
: typeof self !== 'undefined'
|
|
21
21
|
? self.fetch
|
|
22
22
|
: fetch) {
|
|
23
23
|
super(host, headers, authenticationProvider, fetchImpl);
|
|
24
|
-
this.fetchImpl = fetchImpl;
|
|
25
24
|
this.authApi = authApi;
|
|
25
|
+
this.fetchImpl = fetchImpl;
|
|
26
26
|
}
|
|
27
27
|
getCurrentUser(bypassCache = false) {
|
|
28
28
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icc-user-x-api.js","sourceRoot":"","sources":["../../icc-x-api/icc-user-x-api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"icc-user-x-api.js","sourceRoot":"","sources":["../../icc-x-api/icc-user-x-api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAsD;AACtD,0EAAgG;AAGhG,4DAAwE;AACxE,mCAAsE;AAGtE,MAAa,WAAY,SAAQ,uBAAU;IAIzC,YACE,IAAY,EACZ,OAAkC,EAClC,yBAAiD,IAAI,iDAAwB,EAAE,EAC9D,OAAmB,EACpC,YAA2E,OAAO,MAAM,KAAK,WAAW;QACtG,CAAC,CAAC,MAAM,CAAC,KAAK;QACd,CAAC,CAAC,OAAO,IAAI,KAAK,WAAW;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK;YACZ,CAAC,CAAC,KAAK;QAET,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,sBAAsB,EAAE,SAAS,CAAC,CAAA;QAPtC,YAAO,GAAP,OAAO,CAAY;QAQpC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,cAAc,CAAC,cAAuB,KAAK;;QACzC,IAAI,WAAW;YAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,CAAA;;YACpE,OAAO,MAAA,IAAI,CAAC,iBAAiB,mCAAI,CAAC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,CAAA;IACzF,CAAC;IAEK,UAAU,CAAC,IAAW;;;;;YAC1B,IAAI,IAAI,CAAC,iBAAiB,IAAI,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,MAAK,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,CAAA,EAAE;gBAC5E,IAAI;oBACF,MAAM,YAAY,GAAG,MAAM,OAAM,UAAU,YAAC,IAAI,CAAC,CAAA;oBACjD,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;oBACtD,OAAO,YAAY,CAAA;iBACpB;gBAAC,OAAO,CAAC,EAAE;oBACV,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAA;oBAClC,MAAM,CAAC,CAAA;iBACR;aACF;;gBAAM,OAAO,OAAM,UAAU,YAAC,IAAI,EAAC;QACtC,CAAC;KAAA;IAEK,qBAAqB,CACzB,UAA8C,EAC9C,MAAwC,EACxC,UAAyC,EACzC,UAA+B,EAAE;;YAEjC,MAAM,EAAE,GAAG,MAAM,IAAA,+BAAuB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;YAClH,OAAO,IAAI,2BAAc,CAAC,EAAE,CAAC,CAAA;QAC/B,CAAC;KAAA;CACF;AA9CD,kCA8CC","sourcesContent":["import { IccUserApi } from '../icc-api/api/IccUserApi'\nimport { AuthenticationProvider, NoAuthenticationProvider } from './auth/AuthenticationProvider'\nimport { AbstractFilter } from './filters/filters'\nimport { User } from '../icc-api/model/User'\nimport { Connection, ConnectionImpl } from '../icc-api/model/Connection'\nimport { subscribeToEntityEvents , SubscriptionOptions} from './utils'\nimport { IccAuthApi } from '../icc-api'\n\nexport class IccUserXApi extends IccUserApi {\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n private cachedCurrentUser: Promise<User> | undefined\n\n constructor(\n host: string,\n headers: { [key: string]: string },\n authenticationProvider: AuthenticationProvider = new NoAuthenticationProvider(),\n private readonly authApi: IccAuthApi,\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ) {\n super(host, headers, authenticationProvider, fetchImpl)\n this.fetchImpl = fetchImpl\n }\n\n getCurrentUser(bypassCache: boolean = false): Promise<User> {\n if (bypassCache) return (this.cachedCurrentUser = super.getCurrentUser())\n else return this.cachedCurrentUser ?? (this.cachedCurrentUser = super.getCurrentUser())\n }\n\n async modifyUser(body?: User): Promise<User> {\n if (this.cachedCurrentUser && (await this.cachedCurrentUser).id === body?.id) {\n try {\n const modifiedUser = await super.modifyUser(body)\n this.cachedCurrentUser = Promise.resolve(modifiedUser)\n return modifiedUser\n } catch (e) {\n this.cachedCurrentUser = undefined\n throw e\n }\n } else return super.modifyUser(body)\n }\n\n async subscribeToUserEvents(\n eventTypes: ('CREATE' | 'UPDATE' | 'DELETE')[],\n filter: AbstractFilter<User> | undefined,\n eventFired: (user: User) => Promise<void>,\n options: SubscriptionOptions = {}\n ): Promise<Connection> {\n const rs = await subscribeToEntityEvents(this.host, this.authApi, 'User', eventTypes, filter, eventFired, options)\n return new ConnectionImpl(rs)\n }\n}\n"]}
|
package/icc-x-api/index.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ import { AuthenticationProvider } from './auth/AuthenticationProvider';
|
|
|
23
23
|
import { StorageEntryKeysFactory } from './storage/StorageEntryKeysFactory';
|
|
24
24
|
import { CryptoStrategies } from './crypto/CryptoStrategies';
|
|
25
25
|
import { IccIcureMaintenanceXApi } from './icc-icure-maintenance-x-api';
|
|
26
|
+
import { IccDeviceXApi } from './icc-device-x-api';
|
|
26
27
|
import { IccBekmehrXApi } from './icc-bekmehr-x-api';
|
|
27
28
|
import { IccDoctemplateXApi } from './icc-doctemplate-x-api';
|
|
28
29
|
import { UserGroup } from '../icc-api/model/UserGroup';
|
|
29
|
-
import { IccDeviceXApi } from './icc-device-x-api';
|
|
30
30
|
export * from './icc-accesslog-x-api';
|
|
31
31
|
export * from './icc-bekmehr-x-api';
|
|
32
32
|
export * from './icc-calendar-item-x-api';
|
|
@@ -127,7 +127,9 @@ export interface IcureApiOptions {
|
|
|
127
127
|
*/
|
|
128
128
|
readonly entryKeysFactory?: StorageEntryKeysFactory;
|
|
129
129
|
/**
|
|
130
|
-
* Specifies if iCure should create maintenance tasks for requesting access back when a new key is generated at initialisation time.
|
|
130
|
+
* Specifies if iCure should automatically create maintenance tasks for requesting access back when a new key is generated at initialisation time.
|
|
131
|
+
* Note that the maintenance task will be created only towards HCP data owners: if you want to create a maintenance task also to other types of data
|
|
132
|
+
* owners you should disable this and call {@link IccIcureMaintenanceXApi.createMaintenanceTasksForNewKeypair} yourself.
|
|
131
133
|
* @default true
|
|
132
134
|
*/
|
|
133
135
|
readonly createMaintenanceTasksOnNewKey?: boolean;
|
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,24 @@ 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 icc_device_x_api_1 = require("./icc-device-x-api");
|
|
66
77
|
__exportStar(require("./icc-accesslog-x-api"), exports);
|
|
67
78
|
__exportStar(require("./icc-bekmehr-x-api"), exports);
|
|
68
79
|
__exportStar(require("./icc-calendar-item-x-api"), exports);
|
|
@@ -173,51 +184,89 @@ var IcureApi;
|
|
|
173
184
|
IcureApi.initialise = initialise;
|
|
174
185
|
})(IcureApi = exports.IcureApi || (exports.IcureApi = {}));
|
|
175
186
|
function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto) {
|
|
176
|
-
var _a
|
|
187
|
+
var _a;
|
|
177
188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
// Here I instantiate a separate instance of the AuthApi that can call also login-protected methods (logout)
|
|
178
190
|
const authApi = new icc_api_1.IccAuthApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
179
191
|
const userApi = new icc_user_x_api_1.IccUserXApi(host, params.headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
180
192
|
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, params.headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
181
193
|
const deviceApi = new icc_device_x_api_1.IccDeviceXApi(host, params.headers, groupSpecificAuthenticationProvider, userApi, authApi, fetchImpl);
|
|
182
194
|
const basePatientApi = new icc_api_1.IccPatientApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
183
195
|
const dataOwnerApi = new icc_data_owner_x_api_1.IccDataOwnerXApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
196
|
+
const exchangeDataApi = new IccExchangeDataApi_1.IccExchangeDataApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
184
197
|
// Crypto initialisation
|
|
185
198
|
const icureStorage = new IcureStorageFacade_1.IcureStorageFacade(params.keyStorage, params.storage, params.entryKeysFactory);
|
|
186
199
|
const cryptoPrimitives = new CryptoPrimitives_1.CryptoPrimitives(crypto);
|
|
187
200
|
const baseExchangeKeysManager = new BaseExchangeKeysManager_1.BaseExchangeKeysManager(cryptoPrimitives, dataOwnerApi, healthcarePartyApi, basePatientApi, deviceApi);
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
|
|
201
|
+
const baseExchangeDataManager = new BaseExchangeDataManager_1.BaseExchangeDataManager(exchangeDataApi, dataOwnerApi, cryptoPrimitives, cryptoStrategies.dataOwnerRequiresAnonymousDelegation(yield dataOwnerApi.getCurrentDataOwnerStub()));
|
|
202
|
+
const keyRecovery = new KeyRecovery_1.KeyRecovery(cryptoPrimitives, dataOwnerApi, baseExchangeKeysManager, baseExchangeDataManager);
|
|
203
|
+
const userEncryptionKeysManager = new UserEncryptionKeysManager_1.UserEncryptionKeysManager(cryptoPrimitives, dataOwnerApi, icureStorage, keyRecovery, cryptoStrategies, !params.disableParentKeysInitialisation);
|
|
204
|
+
const userSignatureKeysManager = new UserSignatureKeysManager_1.UserSignatureKeysManager(icureStorage, dataOwnerApi, cryptoPrimitives);
|
|
205
|
+
const newKey = yield userEncryptionKeysManager.initialiseKeys();
|
|
206
|
+
yield new TransferKeysManager_1.TransferKeysManager(cryptoPrimitives, baseExchangeDataManager, dataOwnerApi, userEncryptionKeysManager, userSignatureKeysManager, icureStorage).updateTransferKeys(yield dataOwnerApi.getCurrentDataOwnerStub());
|
|
192
207
|
// TODO customise cache size?
|
|
193
|
-
const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(100, 500,
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
const
|
|
199
|
-
const
|
|
200
|
-
const
|
|
208
|
+
const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(100, 500, 600000, 60000, cryptoStrategies, cryptoPrimitives, userEncryptionKeysManager, baseExchangeKeysManager, dataOwnerApi, !params.disableParentKeysInitialisation, icureStorage);
|
|
209
|
+
const accessControlSecretUtils = new AccessControlSecretUtils_1.AccessControlSecretUtils(cryptoPrimitives);
|
|
210
|
+
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, params.headers, groupSpecificAuthenticationProvider, fetchImpl));
|
|
212
|
+
const secureDelegationsEncryption = new SecureDelegationsEncryption_1.SecureDelegationsEncryption(userEncryptionKeysManager, cryptoPrimitives);
|
|
213
|
+
const xApiUtils = new ExtendedApisUtilsImpl_1.ExtendedApisUtilsImpl(cryptoPrimitives, dataOwnerApi, new LegacyDelegationSecurityMetadataDecryptor_1.LegacyDelegationSecurityMetadataDecryptor(exchangeKeysManager, cryptoPrimitives), new SecureDelegationsSecurityMetadataDecryptor_1.SecureDelegationsSecurityMetadataDecryptor(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, dataOwnerApi), new SecureDelegationsManager_1.SecureDelegationsManager(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, accessControlSecretUtils, userEncryptionKeysManager, cryptoPrimitives, dataOwnerApi, cryptoStrategies, cryptoStrategies.dataOwnerRequiresAnonymousDelegation(yield dataOwnerApi.getCurrentDataOwnerStub())), userApi, !params.disableParentKeysInitialisation);
|
|
214
|
+
const shamirManager = new ShamirKeysManager_1.ShamirKeysManager(cryptoPrimitives, dataOwnerApi, userEncryptionKeysManager, exchangeDataManager);
|
|
215
|
+
const confidentialEntitites = new ConfidentialEntities_1.ConfidentialEntities(xApiUtils, cryptoPrimitives, dataOwnerApi);
|
|
216
|
+
yield (0, utils_1.ensureDelegationForSelf)(dataOwnerApi, xApiUtils, basePatientApi, cryptoPrimitives);
|
|
217
|
+
const cryptoApi = new icc_crypto_x_api_1.IccCryptoXApi(exchangeKeysManager, cryptoPrimitives, userEncryptionKeysManager, dataOwnerApi, xApiUtils, shamirManager, params.storage, params.keyStorage, confidentialEntitites, exchangeDataManager, new AccessControlKeysHeadersProvider_1.AccessControlKeysHeadersProvider(exchangeDataManager));
|
|
218
|
+
const maintenanceTaskApi = new icc_maintenance_task_x_api_1.IccMaintenanceTaskXApi(host, params.headers, cryptoApi, healthcarePartyApi, dataOwnerApi, userApi, authApi, (_a = params.encryptedFieldsConfig.maintenanceTask) !== null && _a !== void 0 ? _a : EncryptedFieldsConfig.Defaults.maintenanceTask, groupSpecificAuthenticationProvider, fetchImpl);
|
|
219
|
+
const icureMaintenanceTaskApi = new icc_icure_maintenance_x_api_1.IccIcureMaintenanceXApi(cryptoApi, maintenanceTaskApi, dataOwnerApi, exchangeDataApi);
|
|
201
220
|
if (newKey && params.createMaintenanceTasksOnNewKey) {
|
|
202
221
|
yield icureMaintenanceTaskApi.createMaintenanceTasksForNewKeypair(yield userApi.getCurrentUser(), newKey.newKeyPair);
|
|
203
222
|
}
|
|
204
223
|
return {
|
|
205
224
|
cryptoApi,
|
|
225
|
+
userApi,
|
|
206
226
|
healthcarePartyApi,
|
|
207
227
|
deviceApi,
|
|
228
|
+
maintenanceTaskApi,
|
|
208
229
|
dataOwnerApi,
|
|
209
|
-
userApi,
|
|
210
230
|
icureMaintenanceTaskApi,
|
|
211
|
-
maintenanceTaskApi,
|
|
212
231
|
};
|
|
213
232
|
});
|
|
214
233
|
}
|
|
215
234
|
class IcureApiImpl {
|
|
216
|
-
|
|
217
|
-
|
|
235
|
+
constructor(cryptoInitApis, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, latestMatches, currentGroupInfo, params, cryptoStrategies) {
|
|
236
|
+
this.cryptoInitApis = cryptoInitApis;
|
|
237
|
+
this.host = host;
|
|
238
|
+
this.groupSpecificAuthenticationProvider = groupSpecificAuthenticationProvider;
|
|
239
|
+
this.fetch = fetch;
|
|
240
|
+
this.grouplessUserApi = grouplessUserApi;
|
|
241
|
+
this.latestMatches = latestMatches;
|
|
242
|
+
this.currentGroupInfo = currentGroupInfo;
|
|
243
|
+
this.params = params;
|
|
244
|
+
this.cryptoStrategies = cryptoStrategies;
|
|
245
|
+
this.latestGroupsRequest = Promise.resolve(latestMatches);
|
|
218
246
|
}
|
|
219
|
-
get
|
|
220
|
-
|
|
247
|
+
get authApi() {
|
|
248
|
+
var _a;
|
|
249
|
+
return (_a = this._authApi) !== null && _a !== void 0 ? _a : (this._authApi = new icc_api_1.IccAuthApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
250
|
+
}
|
|
251
|
+
get codeApi() {
|
|
252
|
+
var _a;
|
|
253
|
+
return (_a = this._codeApi) !== null && _a !== void 0 ? _a : (this._codeApi = new icc_code_x_api_1.IccCodeXApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
254
|
+
}
|
|
255
|
+
get calendarItemTypeApi() {
|
|
256
|
+
var _a;
|
|
257
|
+
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)));
|
|
258
|
+
}
|
|
259
|
+
get medicalLocationApi() {
|
|
260
|
+
var _a;
|
|
261
|
+
return ((_a = this._medicalLocationApi) !== null && _a !== void 0 ? _a : (this._medicalLocationApi = new icc_api_1.IccMedicallocationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
262
|
+
}
|
|
263
|
+
get entityReferenceApi() {
|
|
264
|
+
var _a;
|
|
265
|
+
return ((_a = this._entityReferenceApi) !== null && _a !== void 0 ? _a : (this._entityReferenceApi = new icc_api_1.IccEntityrefApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
266
|
+
}
|
|
267
|
+
get permissionApi() {
|
|
268
|
+
var _a;
|
|
269
|
+
return ((_a = this._permissionApi) !== null && _a !== void 0 ? _a : (this._permissionApi = new icc_api_1.IccPermissionApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
221
270
|
}
|
|
222
271
|
get accessLogApi() {
|
|
223
272
|
var _a, _b;
|
|
@@ -227,6 +276,58 @@ class IcureApiImpl {
|
|
|
227
276
|
var _a;
|
|
228
277
|
return ((_a = this._agendaApi) !== null && _a !== void 0 ? _a : (this._agendaApi = new icc_api_1.IccAgendaApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
229
278
|
}
|
|
279
|
+
get contactApi() {
|
|
280
|
+
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.params.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, 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
|
+
}
|
|
283
|
+
get formApi() {
|
|
284
|
+
var _a;
|
|
285
|
+
return ((_a = this._formApi) !== null && _a !== void 0 ? _a : (this._formApi = new icc_form_x_api_1.IccFormXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
286
|
+
}
|
|
287
|
+
get groupApi() {
|
|
288
|
+
var _a;
|
|
289
|
+
return (_a = this._groupApi) !== null && _a !== void 0 ? _a : (this._groupApi = new icc_api_1.IccGroupApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
290
|
+
}
|
|
291
|
+
get invoiceApi() {
|
|
292
|
+
var _a;
|
|
293
|
+
return ((_a = this._invoiceApi) !== null && _a !== void 0 ? _a : (this._invoiceApi = new icc_invoice_x_api_1.IccInvoiceXApi(this.host, this.params.headers, this.cryptoApi, this.entityReferenceApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
294
|
+
}
|
|
295
|
+
get insuranceApi() {
|
|
296
|
+
var _a;
|
|
297
|
+
return ((_a = this._insuranceApi) !== null && _a !== void 0 ? _a : (this._insuranceApi = new icc_api_1.IccInsuranceApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
298
|
+
}
|
|
299
|
+
get documentApi() {
|
|
300
|
+
var _a;
|
|
301
|
+
return ((_a = this._documentApi) !== null && _a !== void 0 ? _a : (this._documentApi = new icc_document_x_api_1.IccDocumentXApi(this.host, this.params.headers, this.cryptoApi, this.authApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
302
|
+
}
|
|
303
|
+
get healthcareElementApi() {
|
|
304
|
+
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.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)));
|
|
306
|
+
}
|
|
307
|
+
get classificationApi() {
|
|
308
|
+
var _a;
|
|
309
|
+
return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
310
|
+
}
|
|
311
|
+
get calendarItemApi() {
|
|
312
|
+
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.params.headers, this.cryptoApi, this.dataOwnerApi, (_b = this.params.encryptedFieldsConfig.calendarItem) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.calendarItem, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
314
|
+
}
|
|
315
|
+
get receiptApi() {
|
|
316
|
+
var _a;
|
|
317
|
+
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)));
|
|
318
|
+
}
|
|
319
|
+
get timetableApi() {
|
|
320
|
+
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.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
322
|
+
}
|
|
323
|
+
get patientApi() {
|
|
324
|
+
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.params.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, (_b = this.params.encryptedFieldsConfig.patient) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.patient, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
326
|
+
}
|
|
327
|
+
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.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
330
|
+
}
|
|
230
331
|
get anonymousAccessApi() {
|
|
231
332
|
var _a;
|
|
232
333
|
return ((_a = this._anonymousAccessApi) !== null && _a !== void 0 ? _a : (this._anonymousAccessApi = new icc_api_1.IccAnonymousAccessApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
@@ -239,18 +340,14 @@ class IcureApiImpl {
|
|
|
239
340
|
var _a;
|
|
240
341
|
return ((_a = this._articleApi) !== null && _a !== void 0 ? _a : (this._articleApi = new icc_api_1.IccArticleApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
241
342
|
}
|
|
242
|
-
get
|
|
343
|
+
get bekmehrApi() {
|
|
243
344
|
var _a;
|
|
244
|
-
return (_a = this.
|
|
345
|
+
return ((_a = this._bekmehrApi) !== null && _a !== void 0 ? _a : (this._bekmehrApi = new icc_bekmehr_x_api_1.IccBekmehrXApi(this.host, this.params.headers, this.authApi, this.contactApi, this.healthcareElementApi, this.documentApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
245
346
|
}
|
|
246
347
|
get beefactApi() {
|
|
247
348
|
var _a;
|
|
248
349
|
return ((_a = this._beefactApi) !== null && _a !== void 0 ? _a : (this._beefactApi = new icc_api_1.IccBeefactApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
249
350
|
}
|
|
250
|
-
get bekmehrApi() {
|
|
251
|
-
var _a;
|
|
252
|
-
return ((_a = this._bekmehrApi) !== null && _a !== void 0 ? _a : (this._bekmehrApi = new icc_bekmehr_x_api_1.IccBekmehrXApi(this.host, this.params.headers, this.authApi, this.contactApi, this.healthcareElementApi, this.documentApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
253
|
-
}
|
|
254
351
|
get beresultexportApi() {
|
|
255
352
|
var _a;
|
|
256
353
|
return ((_a = this._beresultexportApi) !== null && _a !== void 0 ? _a : (this._beresultexportApi = new icc_api_1.IccBeresultexportApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
@@ -263,110 +360,34 @@ class IcureApiImpl {
|
|
|
263
360
|
var _a;
|
|
264
361
|
return ((_a = this._besamv2Api) !== null && _a !== void 0 ? _a : (this._besamv2Api = new icc_api_1.IccBesamv2Api(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
265
362
|
}
|
|
266
|
-
get calendarItemApi() {
|
|
267
|
-
var _a, _b;
|
|
268
|
-
return ((_a = this._calendarItemApi) !== null && _a !== void 0 ? _a : (this._calendarItemApi = new icc_calendar_item_x_api_1.IccCalendarItemXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, (_b = this.params.encryptedFieldsConfig.calendarItem) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.calendarItem, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
269
|
-
}
|
|
270
|
-
get calendarItemTypeApi() {
|
|
271
|
-
var _a;
|
|
272
|
-
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)));
|
|
273
|
-
}
|
|
274
|
-
get classificationApi() {
|
|
275
|
-
var _a;
|
|
276
|
-
return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
277
|
-
}
|
|
278
363
|
get classificationTemplateApi() {
|
|
279
364
|
var _a;
|
|
280
365
|
return ((_a = this._classificationTemplateApi) !== null && _a !== void 0 ? _a : (this._classificationTemplateApi = new icc_api_1.IccClassificationTemplateApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
281
366
|
}
|
|
282
|
-
get codeApi() {
|
|
283
|
-
var _a;
|
|
284
|
-
return (_a = this._codeApi) !== null && _a !== void 0 ? _a : (this._codeApi = new icc_code_x_api_1.IccCodeXApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
285
|
-
}
|
|
286
|
-
get contactApi() {
|
|
287
|
-
var _a, _b, _c;
|
|
288
|
-
return ((_a = this._contactApi) !== null && _a !== void 0 ? _a : (this._contactApi = new icc_contact_x_api_1.IccContactXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, 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)));
|
|
289
|
-
}
|
|
290
|
-
get deviceApi() {
|
|
291
|
-
return this.cryptoInitApis.deviceApi;
|
|
292
|
-
}
|
|
293
367
|
get doctemplateApi() {
|
|
294
368
|
var _a;
|
|
295
369
|
return ((_a = this._doctemplateApi) !== null && _a !== void 0 ? _a : (this._doctemplateApi = new icc_doctemplate_x_api_1.IccDoctemplateXApi(this.host, this.params.headers, this.cryptoApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
296
370
|
}
|
|
297
|
-
get documentApi() {
|
|
298
|
-
var _a;
|
|
299
|
-
return ((_a = this._documentApi) !== null && _a !== void 0 ? _a : (this._documentApi = new icc_document_x_api_1.IccDocumentXApi(this.host, this.params.headers, this.cryptoApi, this.authApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
300
|
-
}
|
|
301
|
-
get entityReferenceApi() {
|
|
302
|
-
var _a;
|
|
303
|
-
return ((_a = this._entityReferenceApi) !== null && _a !== void 0 ? _a : (this._entityReferenceApi = new icc_api_1.IccEntityrefApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
304
|
-
}
|
|
305
371
|
get entitytemplateApi() {
|
|
306
372
|
var _a;
|
|
307
373
|
return ((_a = this._entitytemplateApi) !== null && _a !== void 0 ? _a : (this._entitytemplateApi = new icc_api_1.IccEntitytemplateApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
308
374
|
}
|
|
309
|
-
get formApi() {
|
|
310
|
-
var _a;
|
|
311
|
-
return ((_a = this._formApi) !== null && _a !== void 0 ? _a : (this._formApi = new icc_form_x_api_1.IccFormXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
312
|
-
}
|
|
313
375
|
get frontendmigrationApi() {
|
|
314
376
|
var _a;
|
|
315
377
|
return ((_a = this._frontendmigrationApi) !== null && _a !== void 0 ? _a : (this._frontendmigrationApi = new icc_api_1.IccFrontendmigrationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
316
378
|
}
|
|
317
|
-
get groupApi() {
|
|
318
|
-
var _a;
|
|
319
|
-
return (_a = this._groupApi) !== null && _a !== void 0 ? _a : (this._groupApi = new icc_api_1.IccGroupApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
320
|
-
}
|
|
321
|
-
get healthcareElementApi() {
|
|
322
|
-
var _a, _b;
|
|
323
|
-
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)));
|
|
324
|
-
}
|
|
325
|
-
get healthcarePartyApi() {
|
|
326
|
-
return this.cryptoInitApis.healthcarePartyApi;
|
|
327
|
-
}
|
|
328
379
|
get icureApi() {
|
|
329
380
|
var _a;
|
|
330
381
|
return (_a = this._icureApi) !== null && _a !== void 0 ? _a : (this._icureApi = new icc_api_1.IccIcureApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
331
382
|
}
|
|
332
|
-
get icureMaintenanceTaskApi() {
|
|
333
|
-
return this.cryptoInitApis.icureMaintenanceTaskApi;
|
|
334
|
-
}
|
|
335
|
-
get insuranceApi() {
|
|
336
|
-
var _a;
|
|
337
|
-
return ((_a = this._insuranceApi) !== null && _a !== void 0 ? _a : (this._insuranceApi = new icc_api_1.IccInsuranceApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
338
|
-
}
|
|
339
|
-
get invoiceApi() {
|
|
340
|
-
var _a;
|
|
341
|
-
return ((_a = this._invoiceApi) !== null && _a !== void 0 ? _a : (this._invoiceApi = new icc_invoice_x_api_1.IccInvoiceXApi(this.host, this.params.headers, this.cryptoApi, this.entityReferenceApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
342
|
-
}
|
|
343
383
|
get keywordApi() {
|
|
344
384
|
var _a;
|
|
345
385
|
return ((_a = this._keywordApi) !== null && _a !== void 0 ? _a : (this._keywordApi = new icc_api_1.IccKeywordApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
346
386
|
}
|
|
347
|
-
get maintenanceTaskApi() {
|
|
348
|
-
return this.cryptoInitApis.maintenanceTaskApi;
|
|
349
|
-
}
|
|
350
387
|
get medexApi() {
|
|
351
388
|
var _a;
|
|
352
389
|
return (_a = this._medexApi) !== null && _a !== void 0 ? _a : (this._medexApi = new icc_api_1.IccMedexApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
353
390
|
}
|
|
354
|
-
get medicalLocationApi() {
|
|
355
|
-
var _a;
|
|
356
|
-
return ((_a = this._medicalLocationApi) !== null && _a !== void 0 ? _a : (this._medicalLocationApi = new icc_api_1.IccMedicallocationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
357
|
-
}
|
|
358
|
-
get messageApi() {
|
|
359
|
-
var _a;
|
|
360
|
-
return ((_a = this._messageApi) !== null && _a !== void 0 ? _a : (this._messageApi = new icc_message_x_api_1.IccMessageXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
361
|
-
}
|
|
362
|
-
get patientApi() {
|
|
363
|
-
var _a, _b;
|
|
364
|
-
return ((_a = this._patientApi) !== null && _a !== void 0 ? _a : (this._patientApi = new icc_patient_x_api_1.IccPatientXApi(this.host, this.params.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, (_b = this.params.encryptedFieldsConfig.patient) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.patient, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
365
|
-
}
|
|
366
|
-
get permissionApi() {
|
|
367
|
-
var _a;
|
|
368
|
-
return ((_a = this._permissionApi) !== null && _a !== void 0 ? _a : (this._permissionApi = new icc_api_1.IccPermissionApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
369
|
-
}
|
|
370
391
|
get placeApi() {
|
|
371
392
|
var _a;
|
|
372
393
|
return (_a = this._placeApi) !== null && _a !== void 0 ? _a : (this._placeApi = new icc_api_1.IccPlaceApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
@@ -375,10 +396,6 @@ class IcureApiImpl {
|
|
|
375
396
|
var _a;
|
|
376
397
|
return ((_a = this._pubsubApi) !== null && _a !== void 0 ? _a : (this._pubsubApi = new icc_api_1.IccPubsubApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
377
398
|
}
|
|
378
|
-
get receiptApi() {
|
|
379
|
-
var _a;
|
|
380
|
-
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)));
|
|
381
|
-
}
|
|
382
399
|
get replicationApi() {
|
|
383
400
|
var _a;
|
|
384
401
|
return ((_a = this._replicationApi) !== null && _a !== void 0 ? _a : (this._replicationApi = new icc_api_1.IccReplicationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
@@ -387,29 +404,31 @@ class IcureApiImpl {
|
|
|
387
404
|
var _a;
|
|
388
405
|
return ((_a = this._tarificationApi) !== null && _a !== void 0 ? _a : (this._tarificationApi = new icc_api_1.IccTarificationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
|
|
389
406
|
}
|
|
390
|
-
get timetableApi() {
|
|
391
|
-
var _a;
|
|
392
|
-
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)));
|
|
393
|
-
}
|
|
394
407
|
get tmpApi() {
|
|
395
408
|
var _a;
|
|
396
409
|
return (_a = this._tmpApi) !== null && _a !== void 0 ? _a : (this._tmpApi = new icc_api_1.IccTmpApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
|
|
397
410
|
}
|
|
411
|
+
get cryptoApi() {
|
|
412
|
+
return this.cryptoInitApis.cryptoApi;
|
|
413
|
+
}
|
|
414
|
+
get dataOwnerApi() {
|
|
415
|
+
return this.cryptoInitApis.dataOwnerApi;
|
|
416
|
+
}
|
|
417
|
+
get deviceApi() {
|
|
418
|
+
return this.cryptoInitApis.deviceApi;
|
|
419
|
+
}
|
|
420
|
+
get healthcarePartyApi() {
|
|
421
|
+
return this.cryptoInitApis.healthcarePartyApi;
|
|
422
|
+
}
|
|
423
|
+
get icureMaintenanceTaskApi() {
|
|
424
|
+
return this.cryptoInitApis.icureMaintenanceTaskApi;
|
|
425
|
+
}
|
|
426
|
+
get maintenanceTaskApi() {
|
|
427
|
+
return this.cryptoInitApis.maintenanceTaskApi;
|
|
428
|
+
}
|
|
398
429
|
get userApi() {
|
|
399
430
|
return this.cryptoInitApis.userApi;
|
|
400
431
|
}
|
|
401
|
-
constructor(cryptoInitApis, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, latestMatches, currentGroupInfo, params, cryptoStrategies) {
|
|
402
|
-
this.cryptoInitApis = cryptoInitApis;
|
|
403
|
-
this.host = host;
|
|
404
|
-
this.groupSpecificAuthenticationProvider = groupSpecificAuthenticationProvider;
|
|
405
|
-
this.fetch = fetch;
|
|
406
|
-
this.grouplessUserApi = grouplessUserApi;
|
|
407
|
-
this.latestMatches = latestMatches;
|
|
408
|
-
this.currentGroupInfo = currentGroupInfo;
|
|
409
|
-
this.params = params;
|
|
410
|
-
this.cryptoStrategies = cryptoStrategies;
|
|
411
|
-
this.latestGroupsRequest = Promise.resolve(latestMatches);
|
|
412
|
-
}
|
|
413
432
|
getGroupsInfo() {
|
|
414
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
415
434
|
this.latestGroupsRequest = this.grouplessUserApi.getMatchingUsers();
|
|
@@ -436,18 +455,18 @@ const BasicApis = function (host, username, password, crypto = typeof window !==
|
|
|
436
455
|
: fetch, forceBasic = false) {
|
|
437
456
|
return __awaiter(this, void 0, void 0, function* () {
|
|
438
457
|
const headers = {};
|
|
439
|
-
const
|
|
458
|
+
const groupSpecificAuthenticationProvider = forceBasic
|
|
440
459
|
? new AuthenticationProvider_1.BasicAuthenticationProvider(username, password)
|
|
441
460
|
: new AuthenticationProvider_1.EnsembleAuthenticationProvider(new icc_api_1.IccAuthApi(host, headers, new AuthenticationProvider_1.NoAuthenticationProvider(), fetchImpl), username, password);
|
|
442
|
-
const authApi = new icc_api_1.IccAuthApi(host, headers,
|
|
443
|
-
const codeApi = new icc_code_x_api_1.IccCodeXApi(host, headers,
|
|
444
|
-
const entityReferenceApi = new icc_api_1.IccEntityrefApi(host, headers,
|
|
445
|
-
const userApi = new icc_user_x_api_1.IccUserXApi(host, headers,
|
|
446
|
-
const permissionApi = new icc_api_1.IccPermissionApi(host, headers,
|
|
447
|
-
const agendaApi = new icc_api_1.IccAgendaApi(host, headers,
|
|
448
|
-
const groupApi = new icc_api_1.IccGroupApi(host, headers,
|
|
449
|
-
const insuranceApi = new icc_api_1.IccInsuranceApi(host, headers,
|
|
450
|
-
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, headers,
|
|
461
|
+
const authApi = new icc_api_1.IccAuthApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
462
|
+
const codeApi = new icc_code_x_api_1.IccCodeXApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
463
|
+
const entityReferenceApi = new icc_api_1.IccEntityrefApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
464
|
+
const userApi = new icc_user_x_api_1.IccUserXApi(host, headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
465
|
+
const permissionApi = new icc_api_1.IccPermissionApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
466
|
+
const agendaApi = new icc_api_1.IccAgendaApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
467
|
+
const groupApi = new icc_api_1.IccGroupApi(host, headers, groupSpecificAuthenticationProvider);
|
|
468
|
+
const insuranceApi = new icc_api_1.IccInsuranceApi(host, headers, groupSpecificAuthenticationProvider, fetchImpl);
|
|
469
|
+
const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
|
|
451
470
|
return {
|
|
452
471
|
authApi,
|
|
453
472
|
codeApi,
|