@icure/api 7.1.16 → 8.0.0-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icc-api/api/IccAccesslogApi.d.ts +12 -1
- package/icc-api/api/IccAccesslogApi.js +142 -98
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccBemikronoApi.d.ts +81 -0
- package/icc-api/api/IccBemikronoApi.js +163 -0
- package/icc-api/api/IccBemikronoApi.js.map +1 -0
- package/icc-api/api/IccCalendarItemApi.d.ts +21 -1
- package/icc-api/api/IccCalendarItemApi.js +183 -117
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.d.ts +21 -1
- package/icc-api/api/IccClassificationApi.js +119 -63
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +21 -1
- package/icc-api/api/IccContactApi.js +385 -294
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +38 -25
- package/icc-api/api/IccDocumentApi.js +279 -212
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccExchangeDataApi.d.ts +19 -0
- package/icc-api/api/IccExchangeDataApi.js +85 -0
- package/icc-api/api/IccExchangeDataApi.js.map +1 -0
- package/icc-api/api/IccExchangeDataMapApi.d.ts +18 -0
- package/icc-api/api/IccExchangeDataMapApi.js +65 -0
- package/icc-api/api/IccExchangeDataMapApi.js.map +1 -0
- package/icc-api/api/IccFormApi.d.ts +21 -1
- package/icc-api/api/IccFormApi.js +321 -229
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +21 -1
- package/icc-api/api/IccHelementApi.js +207 -137
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +21 -1
- package/icc-api/api/IccInvoiceApi.js +404 -298
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.d.ts +12 -1
- package/icc-api/api/IccMaintenanceTaskApi.js +79 -43
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +28 -1
- package/icc-api/api/IccMessageApi.js +294 -191
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +12 -1
- package/icc-api/api/IccPatientApi.js +447 -351
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +22 -8
- package/icc-api/api/IccReceiptApi.js +121 -64
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccRestApiPath.js +1 -1
- package/icc-api/api/IccRestApiPath.js.map +1 -1
- package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
- package/icc-api/api/IccTimeTableApi.d.ts +12 -1
- package/icc-api/api/IccTimeTableApi.js +86 -48
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +90 -0
- package/icc-api/api/IccTopicApi.js +193 -0
- package/icc-api/api/IccTopicApi.js.map +1 -0
- package/icc-api/index.d.ts +2 -0
- package/icc-api/index.js +2 -0
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
- package/icc-api/model/AbstractFilterMessage.js +21 -0
- package/icc-api/model/AbstractFilterMessage.js.map +1 -0
- package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
- package/icc-api/model/AbstractFilterTopic.js +21 -0
- package/icc-api/model/AbstractFilterTopic.js.map +1 -0
- package/icc-api/model/AccessLog.d.ts +2 -0
- package/icc-api/model/AccessLog.js.map +1 -1
- package/icc-api/model/Article.d.ts +2 -0
- package/icc-api/model/Article.js.map +1 -1
- package/icc-api/model/CalendarItem.d.ts +2 -0
- package/icc-api/model/CalendarItem.js.map +1 -1
- package/icc-api/model/Classification.d.ts +2 -0
- package/icc-api/model/Classification.js.map +1 -1
- package/icc-api/model/ClassificationTemplate.d.ts +2 -0
- package/icc-api/model/ClassificationTemplate.js.map +1 -1
- package/icc-api/model/Connection.d.ts +1 -1
- package/icc-api/model/Connection.js.map +1 -1
- package/icc-api/model/Contact.d.ts +2 -0
- package/icc-api/model/Contact.js.map +1 -1
- package/icc-api/model/Device.d.ts +4 -4
- package/icc-api/model/Device.js.map +1 -1
- package/icc-api/model/Document.d.ts +2 -0
- package/icc-api/model/Document.js.map +1 -1
- package/icc-api/model/ExchangeDataMapCreationBatch.d.ts +13 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js +10 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js.map +1 -0
- package/icc-api/model/FilterChainMessage.d.ts +19 -0
- package/icc-api/model/FilterChainMessage.js +11 -0
- package/icc-api/model/FilterChainMessage.js.map +1 -0
- package/icc-api/model/FilterChainTopic.d.ts +19 -0
- package/icc-api/model/FilterChainTopic.js +11 -0
- package/icc-api/model/FilterChainTopic.js.map +1 -0
- package/icc-api/model/Form.d.ts +2 -0
- package/icc-api/model/Form.js.map +1 -1
- package/icc-api/model/HealthElement.d.ts +2 -0
- package/icc-api/model/HealthElement.js.map +1 -1
- package/icc-api/model/HealthcareParty.d.ts +2 -2
- package/icc-api/model/HealthcareParty.js +13 -1
- package/icc-api/model/HealthcareParty.js.map +1 -1
- package/icc-api/model/IcureStub.d.ts +2 -0
- package/icc-api/model/IcureStub.js.map +1 -1
- package/icc-api/model/Invoice.d.ts +2 -0
- package/icc-api/model/Invoice.js.map +1 -1
- package/icc-api/model/MaintenanceTask.d.ts +13 -10
- package/icc-api/model/MaintenanceTask.js +13 -11
- package/icc-api/model/MaintenanceTask.js.map +1 -1
- package/icc-api/model/Message.d.ts +2 -0
- package/icc-api/model/Message.js.map +1 -1
- package/icc-api/model/PaginatedListExchangeData.d.ts +9 -0
- package/icc-api/model/PaginatedListExchangeData.js +10 -0
- package/icc-api/model/PaginatedListExchangeData.js.map +1 -0
- package/icc-api/model/PaginatedListTopic.d.ts +20 -0
- package/icc-api/model/PaginatedListTopic.js +10 -0
- package/icc-api/model/PaginatedListTopic.js.map +1 -0
- package/icc-api/model/Patient.d.ts +4 -2
- package/icc-api/model/Patient.js.map +1 -1
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.d.ts +31 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js +32 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js.map +1 -0
- package/icc-api/model/Receipt.d.ts +2 -0
- package/icc-api/model/Receipt.js.map +1 -1
- package/icc-api/model/SecureDelegation.d.ts +52 -0
- package/icc-api/model/SecureDelegation.js +16 -0
- package/icc-api/model/SecureDelegation.js.map +1 -0
- package/icc-api/model/SecurityMetadata.d.ts +33 -0
- package/icc-api/model/SecurityMetadata.js +13 -0
- package/icc-api/model/SecurityMetadata.js.map +1 -0
- package/icc-api/model/Service.d.ts +2 -0
- package/icc-api/model/Service.js.map +1 -1
- package/icc-api/model/TimeTable.d.ts +2 -0
- package/icc-api/model/TimeTable.js.map +1 -1
- package/icc-api/model/Topic.d.ts +95 -0
- package/icc-api/model/Topic.js +16 -0
- package/icc-api/model/Topic.js.map +1 -0
- package/icc-api/model/internal/ExchangeData.d.ts +64 -0
- package/icc-api/model/internal/ExchangeData.js +15 -0
- package/icc-api/model/internal/ExchangeData.js.map +1 -0
- package/icc-api/model/internal/ExchangeDataMap.d.ts +24 -0
- package/icc-api/model/internal/ExchangeDataMap.js +13 -0
- package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
- package/icc-api/model/models.d.ts +26 -40
- package/icc-api/model/models.js +19 -37
- package/icc-api/model/models.js.map +1 -1
- package/icc-api/model/requests/EntityBulkShareResult.d.ts +28 -0
- package/icc-api/model/requests/EntityBulkShareResult.js +16 -0
- package/icc-api/model/requests/EntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.d.ts +10 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js +17 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/EntityShareRequest.d.ts +110 -0
- package/icc-api/model/requests/EntityShareRequest.js +63 -0
- package/icc-api/model/requests/EntityShareRequest.js.map +1 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.d.ts +54 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js +24 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.d.ts +23 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js +13 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.d.ts +21 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js +14 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +55 -6
- package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
- package/icc-x-api/crypto/AES.js +1 -1
- package/icc-x-api/crypto/AES.js.map +1 -1
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +18 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +50 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +43 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js +97 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +146 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js +342 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeKeysManager.d.ts +0 -18
- package/icc-x-api/crypto/BaseExchangeKeysManager.js +11 -85
- package/icc-x-api/crypto/BaseExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ConfidentialEntities.d.ts +26 -16
- package/icc-x-api/crypto/ConfidentialEntities.js +30 -17
- package/icc-x-api/crypto/ConfidentialEntities.js.map +1 -1
- package/icc-x-api/crypto/CryptoStrategies.d.ts +8 -1
- package/icc-x-api/crypto/CryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataManager.d.ts +97 -0
- package/icc-x-api/crypto/ExchangeDataManager.js +501 -0
- package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +32 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js +70 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeKeysManager.d.ts +4 -16
- package/icc-x-api/crypto/ExchangeKeysManager.js +4 -62
- package/icc-x-api/crypto/ExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ExtendedApisUtils.d.ts +326 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js +3 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +174 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +559 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -0
- package/icc-x-api/crypto/KeyRecovery.d.ts +5 -2
- package/icc-x-api/crypto/KeyRecovery.js +59 -29
- package/icc-x-api/crypto/KeyRecovery.js.map +1 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.d.ts +7 -2
- package/icc-x-api/crypto/LegacyCryptoStrategies.js +8 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +33 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +141 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/RSA.d.ts +34 -8
- package/icc-x-api/crypto/RSA.js +80 -13
- package/icc-x-api/crypto/RSA.js.map +1 -1
- package/icc-x-api/crypto/SecureDelegationsEncryption.d.ts +54 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js +178 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsManager.d.ts +66 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js +261 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +46 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +312 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +97 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js +79 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/ShamirKeysManager.d.ts +5 -5
- package/icc-x-api/crypto/ShamirKeysManager.js +6 -9
- package/icc-x-api/crypto/ShamirKeysManager.js.map +1 -1
- package/icc-x-api/crypto/TransferKeysManager.d.ts +8 -6
- package/icc-x-api/crypto/TransferKeysManager.js +75 -52
- package/icc-x-api/crypto/TransferKeysManager.js.map +1 -1
- package/icc-x-api/crypto/{KeyManager.d.ts → UserEncryptionKeysManager.d.ts} +4 -6
- package/icc-x-api/crypto/{KeyManager.js → UserEncryptionKeysManager.js} +43 -23
- package/icc-x-api/crypto/UserEncryptionKeysManager.js.map +1 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +26 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js +74 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -0
- package/icc-x-api/crypto/utils.d.ts +61 -11
- package/icc-x-api/crypto/utils.js +113 -44
- package/icc-x-api/crypto/utils.js.map +1 -1
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
- package/icc-x-api/filters/filters.d.ts +5 -0
- package/icc-x-api/filters/filters.js +5 -0
- package/icc-x-api/filters/filters.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +49 -12
- package/icc-x-api/icc-accesslog-x-api.js +81 -44
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +53 -15
- package/icc-x-api/icc-calendar-item-x-api.js +105 -51
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +47 -10
- package/icc-x-api/icc-classification-x-api.js +62 -33
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +59 -33
- package/icc-x-api/icc-contact-x-api.js +101 -66
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +33 -333
- package/icc-x-api/icc-crypto-x-api.js +47 -764
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-data-owner-x-api.d.ts +20 -8
- package/icc-x-api/icc-data-owner-x-api.js +31 -10
- package/icc-x-api/icc-data-owner-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +51 -12
- package/icc-x-api/icc-document-x-api.js +117 -66
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +48 -11
- package/icc-x-api/icc-form-x-api.js +71 -37
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-hcparty-x-api.d.ts +2 -2
- package/icc-x-api/icc-hcparty-x-api.js +3 -3
- package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +59 -20
- package/icc-x-api/icc-helement-x-api.js +78 -43
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-icure-maintenance-x-api.d.ts +7 -2
- package/icc-x-api/icc-icure-maintenance-x-api.js +38 -27
- package/icc-x-api/icc-icure-maintenance-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +53 -16
- package/icc-x-api/icc-invoice-x-api.js +69 -35
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +56 -22
- package/icc-x-api/icc-maintenance-task-x-api.js +77 -36
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +75 -19
- package/icc-x-api/icc-message-x-api.js +126 -37
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +86 -29
- package/icc-x-api/icc-patient-x-api.js +318 -379
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +47 -13
- package/icc-x-api/icc-receipt-x-api.js +72 -36
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +46 -13
- package/icc-x-api/icc-time-table-x-api.js +61 -27
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/icc-topic-x-api.d.ts +191 -0
- package/icc-x-api/icc-topic-x-api.js +307 -0
- package/icc-x-api/icc-topic-x-api.js.map +1 -0
- package/icc-x-api/icc-user-x-api.d.ts +2 -2
- package/icc-x-api/icc-user-x-api.js +3 -3
- package/icc-x-api/icc-user-x-api.js.map +1 -1
- package/icc-x-api/index.d.ts +18 -2
- package/icc-x-api/index.js +203 -156
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.d.ts +2 -0
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js +9 -2
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/storage/IcureStorageFacade.d.ts +23 -2
- package/icc-x-api/storage/IcureStorageFacade.js +36 -2
- package/icc-x-api/storage/IcureStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageFacade.d.ts +12 -0
- package/icc-x-api/storage/KeyStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageImpl.d.ts +2 -0
- package/icc-x-api/storage/KeyStorageImpl.js +10 -0
- package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.d.ts +14 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +32 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js +75 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -0
- package/icc-x-api/utils/ShareResult.d.ts +74 -0
- package/icc-x-api/utils/ShareResult.js +61 -0
- package/icc-x-api/utils/ShareResult.js.map +1 -0
- package/icc-x-api/utils/binary-utils.d.ts +1 -0
- package/icc-x-api/utils/binary-utils.js +8 -1
- package/icc-x-api/utils/binary-utils.js.map +1 -1
- package/icc-x-api/utils/collection-utils.d.ts +5 -0
- package/icc-x-api/utils/collection-utils.js +26 -1
- package/icc-x-api/utils/collection-utils.js.map +1 -1
- package/icc-x-api/utils/crypto-utils.d.ts +4 -3
- package/icc-x-api/utils/crypto-utils.js +5 -4
- package/icc-x-api/utils/crypto-utils.js.map +1 -1
- package/icc-x-api/utils/lru-temporised-async-cache.d.ts +26 -3
- package/icc-x-api/utils/lru-temporised-async-cache.js +75 -15
- package/icc-x-api/utils/lru-temporised-async-cache.js.map +1 -1
- package/icc-x-api/utils/websocket.d.ts +14 -10
- package/icc-x-api/utils/websocket.js +26 -9
- package/icc-x-api/utils/websocket.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/icc-x-api/crypto/EntitiesEncryption.d.ts +0 -275
- package/icc-x-api/crypto/EntitiesEncryption.js +0 -734
- package/icc-x-api/crypto/EntitiesEncryption.js.map +0 -1
- package/icc-x-api/crypto/KeyManager.js.map +0 -1
|
@@ -32,10 +32,15 @@ const PaginatedListService_1 = require("../model/PaginatedListService");
|
|
|
32
32
|
const Service_1 = require("../model/Service");
|
|
33
33
|
const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationProvider");
|
|
34
34
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
35
|
+
const EntityBulkShareResult_1 = require("../model/requests/EntityBulkShareResult");
|
|
36
|
+
const MinimalEntityBulkShareResult_1 = require("../model/requests/MinimalEntityBulkShareResult");
|
|
35
37
|
class IccContactApi {
|
|
38
|
+
get headers() {
|
|
39
|
+
return Promise.resolve(this._headers);
|
|
40
|
+
}
|
|
36
41
|
constructor(host, headers, authenticationProvider, fetchImpl) {
|
|
37
42
|
this.host = (0, IccRestApiPath_1.iccRestApiPath)(host);
|
|
38
|
-
this.
|
|
43
|
+
this._headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
|
|
39
44
|
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new AuthenticationProvider_1.NoAuthenticationProvider();
|
|
40
45
|
this.fetchImpl = fetchImpl;
|
|
41
46
|
}
|
|
@@ -49,17 +54,19 @@ class IccContactApi {
|
|
|
49
54
|
* @param secretFKeys
|
|
50
55
|
*/
|
|
51
56
|
closeForHCPartyPatientForeignKeys(hcPartyId, secretFKeys) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
let _body = null;
|
|
59
|
+
const _url = this.host +
|
|
60
|
+
`/contact/byHcPartySecretForeignKeys/close` +
|
|
61
|
+
'?ts=' +
|
|
62
|
+
new Date().getTime() +
|
|
63
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
64
|
+
(secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '');
|
|
65
|
+
let headers = yield this.headers;
|
|
66
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
67
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
68
|
+
.catch((err) => this.handleError(err));
|
|
69
|
+
});
|
|
63
70
|
}
|
|
64
71
|
/**
|
|
65
72
|
* Creates a contact with the current user and returns an instance of created contact afterward.
|
|
@@ -67,14 +74,16 @@ class IccContactApi {
|
|
|
67
74
|
* @param body
|
|
68
75
|
*/
|
|
69
76
|
createContact(body) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.
|
|
77
|
-
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let _body = null;
|
|
79
|
+
_body = body;
|
|
80
|
+
const _url = this.host + `/contact` + '?ts=' + new Date().getTime();
|
|
81
|
+
let headers = yield this.headers;
|
|
82
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
83
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
84
|
+
.then((doc) => new Contact_1.Contact(doc.body))
|
|
85
|
+
.catch((err) => this.handleError(err));
|
|
86
|
+
});
|
|
78
87
|
}
|
|
79
88
|
/**
|
|
80
89
|
* Returns the modified contacts.
|
|
@@ -82,14 +91,16 @@ class IccContactApi {
|
|
|
82
91
|
* @param body
|
|
83
92
|
*/
|
|
84
93
|
createContacts(body) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
let _body = null;
|
|
96
|
+
_body = body;
|
|
97
|
+
const _url = this.host + `/contact/batch` + '?ts=' + new Date().getTime();
|
|
98
|
+
let headers = yield this.headers;
|
|
99
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
100
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
101
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
102
|
+
.catch((err) => this.handleError(err));
|
|
103
|
+
});
|
|
93
104
|
}
|
|
94
105
|
/**
|
|
95
106
|
* Response is a set containing the ID's of deleted contacts.
|
|
@@ -97,12 +108,14 @@ class IccContactApi {
|
|
|
97
108
|
* @param contactIds
|
|
98
109
|
*/
|
|
99
110
|
deleteContacts(contactIds) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
let _body = null;
|
|
113
|
+
const _url = this.host + `/contact/${encodeURIComponent(String(contactIds))}` + '?ts=' + new Date().getTime();
|
|
114
|
+
let headers = yield this.headers;
|
|
115
|
+
return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
116
|
+
.then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
|
|
117
|
+
.catch((err) => this.handleError(err));
|
|
118
|
+
});
|
|
106
119
|
}
|
|
107
120
|
/**
|
|
108
121
|
* Returns a list of contacts along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
|
|
@@ -112,19 +125,21 @@ class IccContactApi {
|
|
|
112
125
|
* @param limit Number of rows
|
|
113
126
|
*/
|
|
114
127
|
filterContactsBy(startDocumentId, limit, body) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.
|
|
127
|
-
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
let _body = null;
|
|
130
|
+
_body = body;
|
|
131
|
+
const _url = this.host +
|
|
132
|
+
`/contact/filter` +
|
|
133
|
+
'?ts=' +
|
|
134
|
+
new Date().getTime() +
|
|
135
|
+
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
136
|
+
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
137
|
+
let headers = yield this.headers;
|
|
138
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
139
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
140
|
+
.then((doc) => new PaginatedListContact_1.PaginatedListContact(doc.body))
|
|
141
|
+
.catch((err) => this.handleError(err));
|
|
142
|
+
});
|
|
128
143
|
}
|
|
129
144
|
/**
|
|
130
145
|
* Returns a list of contacts along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
|
|
@@ -134,19 +149,21 @@ class IccContactApi {
|
|
|
134
149
|
* @param limit Number of rows
|
|
135
150
|
*/
|
|
136
151
|
filterServicesBy(startDocumentId, limit, body) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
.
|
|
149
|
-
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
let _body = null;
|
|
154
|
+
_body = body;
|
|
155
|
+
const _url = this.host +
|
|
156
|
+
`/contact/service/filter` +
|
|
157
|
+
'?ts=' +
|
|
158
|
+
new Date().getTime() +
|
|
159
|
+
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
160
|
+
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
161
|
+
let headers = yield this.headers;
|
|
162
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
163
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
164
|
+
.then((doc) => new PaginatedListService_1.PaginatedListService(doc.body))
|
|
165
|
+
.catch((err) => this.handleError(err));
|
|
166
|
+
});
|
|
150
167
|
}
|
|
151
168
|
/**
|
|
152
169
|
*
|
|
@@ -155,17 +172,19 @@ class IccContactApi {
|
|
|
155
172
|
* @param formId
|
|
156
173
|
*/
|
|
157
174
|
findByHCPartyFormId(hcPartyId, formId) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
let _body = null;
|
|
177
|
+
const _url = this.host +
|
|
178
|
+
`/contact/byHcPartyFormId` +
|
|
179
|
+
'?ts=' +
|
|
180
|
+
new Date().getTime() +
|
|
181
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
182
|
+
(formId ? '&formId=' + encodeURIComponent(String(formId)) : '');
|
|
183
|
+
let headers = yield this.headers;
|
|
184
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
185
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
186
|
+
.catch((err) => this.handleError(err));
|
|
187
|
+
});
|
|
169
188
|
}
|
|
170
189
|
/**
|
|
171
190
|
*
|
|
@@ -174,18 +193,20 @@ class IccContactApi {
|
|
|
174
193
|
* @param hcPartyId
|
|
175
194
|
*/
|
|
176
195
|
findByHCPartyFormIds(hcPartyId, body) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
let _body = null;
|
|
198
|
+
_body = body;
|
|
199
|
+
const _url = this.host +
|
|
200
|
+
`/contact/byHcPartyFormIds` +
|
|
201
|
+
'?ts=' +
|
|
202
|
+
new Date().getTime() +
|
|
203
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '');
|
|
204
|
+
let headers = yield this.headers;
|
|
205
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
206
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
207
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
208
|
+
.catch((err) => this.handleError(err));
|
|
209
|
+
});
|
|
189
210
|
}
|
|
190
211
|
/**
|
|
191
212
|
* Keys must be delimited by coma
|
|
@@ -196,20 +217,22 @@ class IccContactApi {
|
|
|
196
217
|
@param body
|
|
197
218
|
*/
|
|
198
219
|
findByHCPartyPatientSecretFKeysUsingPost(hcPartyId, planOfActionsIds, skipClosedContacts, body) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
let _body = null;
|
|
222
|
+
_body = body;
|
|
223
|
+
const _url = this.host +
|
|
224
|
+
`/contact/byHcPartySecretForeignKeys` +
|
|
225
|
+
'?ts=' +
|
|
226
|
+
new Date().getTime() +
|
|
227
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
228
|
+
(planOfActionsIds ? '&planOfActionsIds=' + encodeURIComponent(String(planOfActionsIds)) : '') +
|
|
229
|
+
(skipClosedContacts ? '&skipClosedContacts=' + encodeURIComponent(String(skipClosedContacts)) : '');
|
|
230
|
+
let headers = yield this.headers;
|
|
231
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
232
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
233
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
234
|
+
.catch((err) => this.handleError(err));
|
|
235
|
+
});
|
|
213
236
|
}
|
|
214
237
|
/**
|
|
215
238
|
* Keys must be delimited by coma
|
|
@@ -220,19 +243,21 @@ class IccContactApi {
|
|
|
220
243
|
* @param skipClosedContacts
|
|
221
244
|
*/
|
|
222
245
|
findByHCPartyPatientSecretFKeys(hcPartyId, secretFKeys, planOfActionsIds, skipClosedContacts) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
let _body = null;
|
|
248
|
+
const _url = this.host +
|
|
249
|
+
`/contact/byHcPartySecretForeignKeys` +
|
|
250
|
+
'?ts=' +
|
|
251
|
+
new Date().getTime() +
|
|
252
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
253
|
+
(secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '') +
|
|
254
|
+
(planOfActionsIds ? '&planOfActionsIds=' + encodeURIComponent(String(planOfActionsIds)) : '') +
|
|
255
|
+
(skipClosedContacts ? '&skipClosedContacts=' + encodeURIComponent(String(skipClosedContacts)) : '');
|
|
256
|
+
let headers = yield this.headers;
|
|
257
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
258
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
259
|
+
.catch((err) => this.handleError(err));
|
|
260
|
+
});
|
|
236
261
|
}
|
|
237
262
|
/**
|
|
238
263
|
*
|
|
@@ -241,17 +266,19 @@ class IccContactApi {
|
|
|
241
266
|
* @param serviceId
|
|
242
267
|
*/
|
|
243
268
|
findByHCPartyServiceId(hcPartyId, serviceId) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
let _body = null;
|
|
271
|
+
const _url = this.host +
|
|
272
|
+
`/contact/byHcPartyServiceId` +
|
|
273
|
+
'?ts=' +
|
|
274
|
+
new Date().getTime() +
|
|
275
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
276
|
+
(serviceId ? '&serviceId=' + encodeURIComponent(String(serviceId)) : '');
|
|
277
|
+
let headers = yield this.headers;
|
|
278
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
279
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
280
|
+
.catch((err) => this.handleError(err));
|
|
281
|
+
});
|
|
255
282
|
}
|
|
256
283
|
/**
|
|
257
284
|
*
|
|
@@ -259,16 +286,18 @@ class IccContactApi {
|
|
|
259
286
|
* @param externalId
|
|
260
287
|
*/
|
|
261
288
|
findContactsByExternalId(externalId) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
let _body = null;
|
|
291
|
+
const _url = this.host +
|
|
292
|
+
`/contact/byExternalId` +
|
|
293
|
+
'?ts=' +
|
|
294
|
+
new Date().getTime() +
|
|
295
|
+
(externalId ? '&externalId=' + encodeURIComponent(String(externalId)) : '');
|
|
296
|
+
let headers = yield this.headers;
|
|
297
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
298
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
299
|
+
.catch((err) => this.handleError(err));
|
|
300
|
+
});
|
|
272
301
|
}
|
|
273
302
|
/**
|
|
274
303
|
*
|
|
@@ -277,18 +306,20 @@ class IccContactApi {
|
|
|
277
306
|
* @param hcPartyId
|
|
278
307
|
*/
|
|
279
308
|
findContactsByHCPartyPatientForeignKeys(hcPartyId, body) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
let _body = null;
|
|
311
|
+
_body = body;
|
|
312
|
+
const _url = this.host +
|
|
313
|
+
`/contact/byHcPartyPatientForeignKeys` +
|
|
314
|
+
'?ts=' +
|
|
315
|
+
new Date().getTime() +
|
|
316
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '');
|
|
317
|
+
let headers = yield this.headers;
|
|
318
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
319
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
320
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
321
|
+
.catch((err) => this.handleError(err));
|
|
322
|
+
});
|
|
292
323
|
}
|
|
293
324
|
/**
|
|
294
325
|
* Keys must be delimited by coma
|
|
@@ -297,18 +328,20 @@ class IccContactApi {
|
|
|
297
328
|
* @param hcPartyId
|
|
298
329
|
*/
|
|
299
330
|
findContactsDelegationsStubsByHCPartyPatientForeignKeysUsingPost(hcPartyId, body) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
let _body = null;
|
|
333
|
+
_body = body;
|
|
334
|
+
const _url = this.host +
|
|
335
|
+
`/contact/byHcPartySecretForeignKeys/delegations` +
|
|
336
|
+
'?ts=' +
|
|
337
|
+
new Date().getTime() +
|
|
338
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '');
|
|
339
|
+
let headers = yield this.headers;
|
|
340
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
341
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
342
|
+
.then((doc) => doc.body.map((it) => new IcureStub_1.IcureStub(it)))
|
|
343
|
+
.catch((err) => this.handleError(err));
|
|
344
|
+
});
|
|
312
345
|
}
|
|
313
346
|
/**
|
|
314
347
|
*
|
|
@@ -317,17 +350,19 @@ class IccContactApi {
|
|
|
317
350
|
* @param secretFKeys
|
|
318
351
|
*/
|
|
319
352
|
findContactsDelegationsStubsByHCPartyPatientForeignKeys(hcPartyId, secretFKeys) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
let _body = null;
|
|
355
|
+
const _url = this.host +
|
|
356
|
+
`/contact/byHcPartySecretForeignKeys/delegations` +
|
|
357
|
+
'?ts=' +
|
|
358
|
+
new Date().getTime() +
|
|
359
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
|
|
360
|
+
(secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '');
|
|
361
|
+
let headers = yield this.headers;
|
|
362
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
363
|
+
.then((doc) => doc.body.map((it) => new IcureStub_1.IcureStub(it)))
|
|
364
|
+
.catch((err) => this.handleError(err));
|
|
365
|
+
});
|
|
331
366
|
}
|
|
332
367
|
/**
|
|
333
368
|
* Gets a contact based on its id
|
|
@@ -335,12 +370,14 @@ class IccContactApi {
|
|
|
335
370
|
* @param contactId
|
|
336
371
|
*/
|
|
337
372
|
getContact(contactId) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
.
|
|
343
|
-
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
let _body = null;
|
|
375
|
+
const _url = this.host + `/contact/${encodeURIComponent(String(contactId))}` + '?ts=' + new Date().getTime();
|
|
376
|
+
let headers = yield this.headers;
|
|
377
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
378
|
+
.then((doc) => new Contact_1.Contact(doc.body))
|
|
379
|
+
.catch((err) => this.handleError(err));
|
|
380
|
+
});
|
|
344
381
|
}
|
|
345
382
|
/**
|
|
346
383
|
* Gets a service based on its id
|
|
@@ -351,7 +388,7 @@ class IccContactApi {
|
|
|
351
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
352
389
|
let _body = null;
|
|
353
390
|
const _url = this.host + `/contact/service/${encodeURIComponent(String(serviceId))}` + '?ts=' + new Date().getTime();
|
|
354
|
-
let headers = this.headers;
|
|
391
|
+
let headers = yield this.headers;
|
|
355
392
|
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
356
393
|
.then((doc) => new Service_1.Service(doc.body))
|
|
357
394
|
.catch((err) => this.handleError(err));
|
|
@@ -363,26 +400,30 @@ class IccContactApi {
|
|
|
363
400
|
* @param body
|
|
364
401
|
*/
|
|
365
402
|
getContacts(body) {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
let _body = null;
|
|
405
|
+
_body = body;
|
|
406
|
+
const _url = this.host + `/contact/byIds` + '?ts=' + new Date().getTime();
|
|
407
|
+
let headers = yield this.headers;
|
|
408
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
409
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
410
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
411
|
+
.catch((err) => this.handleError(err));
|
|
412
|
+
});
|
|
374
413
|
}
|
|
375
414
|
/**
|
|
376
415
|
*
|
|
377
416
|
* @summary Get an empty content
|
|
378
417
|
*/
|
|
379
418
|
getEmptyContent() {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
.
|
|
385
|
-
|
|
419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
let _body = null;
|
|
421
|
+
const _url = this.host + `/contact/service/content/empty` + '?ts=' + new Date().getTime();
|
|
422
|
+
let headers = yield this.headers;
|
|
423
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
424
|
+
.then((doc) => new Content_1.Content(doc.body))
|
|
425
|
+
.catch((err) => this.handleError(err));
|
|
426
|
+
});
|
|
386
427
|
}
|
|
387
428
|
/**
|
|
388
429
|
*
|
|
@@ -391,15 +432,17 @@ class IccContactApi {
|
|
|
391
432
|
* @param minOccurences
|
|
392
433
|
*/
|
|
393
434
|
getServiceCodesOccurences(codeType, minOccurences) {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
+
let _body = null;
|
|
437
|
+
const _url = this.host +
|
|
438
|
+
`/contact/service/codes/${encodeURIComponent(String(codeType))}/${encodeURIComponent(String(minOccurences))}` +
|
|
439
|
+
'?ts=' +
|
|
440
|
+
new Date().getTime();
|
|
441
|
+
let headers = yield this.headers;
|
|
442
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
443
|
+
.then((doc) => doc.body.map((it) => new LabelledOccurence_1.LabelledOccurence(it)))
|
|
444
|
+
.catch((err) => this.handleError(err));
|
|
445
|
+
});
|
|
403
446
|
}
|
|
404
447
|
/**
|
|
405
448
|
* Returns a list of contacts.
|
|
@@ -411,20 +454,22 @@ class IccContactApi {
|
|
|
411
454
|
* @param limit Number of rows
|
|
412
455
|
*/
|
|
413
456
|
listContactsByOpeningDate(startKey, endKey, hcpartyid, startDocumentId, limit) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
.
|
|
427
|
-
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
let _body = null;
|
|
459
|
+
const _url = this.host +
|
|
460
|
+
`/contact/byOpeningDate` +
|
|
461
|
+
'?ts=' +
|
|
462
|
+
new Date().getTime() +
|
|
463
|
+
(startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +
|
|
464
|
+
(endKey ? '&endKey=' + encodeURIComponent(String(endKey)) : '') +
|
|
465
|
+
(hcpartyid ? '&hcpartyid=' + encodeURIComponent(String(hcpartyid)) : '') +
|
|
466
|
+
(startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
|
|
467
|
+
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
468
|
+
let headers = yield this.headers;
|
|
469
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
470
|
+
.then((doc) => new PaginatedListContact_1.PaginatedListContact(doc.body))
|
|
471
|
+
.catch((err) => this.handleError(err));
|
|
472
|
+
});
|
|
428
473
|
}
|
|
429
474
|
/**
|
|
430
475
|
* Returns a list of services
|
|
@@ -432,14 +477,16 @@ class IccContactApi {
|
|
|
432
477
|
* @param body
|
|
433
478
|
*/
|
|
434
479
|
listServices(body) {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
let _body = null;
|
|
482
|
+
_body = body;
|
|
483
|
+
const _url = this.host + `/contact/service/byIds` + '?ts=' + new Date().getTime();
|
|
484
|
+
let headers = yield this.headers;
|
|
485
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
486
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
487
|
+
.then((doc) => doc.body.map((it) => new Service_1.Service(it)))
|
|
488
|
+
.catch((err) => this.handleError(err));
|
|
489
|
+
});
|
|
443
490
|
}
|
|
444
491
|
/**
|
|
445
492
|
* Returns a list of services
|
|
@@ -447,16 +494,18 @@ class IccContactApi {
|
|
|
447
494
|
* @param associationId
|
|
448
495
|
*/
|
|
449
496
|
listServicesByAssociationId(associationId) {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
+
let _body = null;
|
|
499
|
+
const _url = this.host +
|
|
500
|
+
`/contact/service/associationId` +
|
|
501
|
+
'?ts=' +
|
|
502
|
+
new Date().getTime() +
|
|
503
|
+
(associationId ? '&associationId=' + encodeURIComponent(String(associationId)) : '');
|
|
504
|
+
let headers = yield this.headers;
|
|
505
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
506
|
+
.then((doc) => doc.body.map((it) => new Service_1.Service(it)))
|
|
507
|
+
.catch((err) => this.handleError(err));
|
|
508
|
+
});
|
|
460
509
|
}
|
|
461
510
|
/**
|
|
462
511
|
* Returns the list of services linked to the provided health element id
|
|
@@ -465,16 +514,18 @@ class IccContactApi {
|
|
|
465
514
|
* @param hcPartyId hcPartyId
|
|
466
515
|
*/
|
|
467
516
|
listServicesByHealthElementId(healthElementId, hcPartyId) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
let _body = null;
|
|
519
|
+
const _url = this.host +
|
|
520
|
+
`/contact/service/healthElementId/${encodeURIComponent(String(healthElementId))}` +
|
|
521
|
+
'?ts=' +
|
|
522
|
+
new Date().getTime() +
|
|
523
|
+
(hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '');
|
|
524
|
+
let headers = yield this.headers;
|
|
525
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
526
|
+
.then((doc) => doc.body.map((it) => new Service_1.Service(it)))
|
|
527
|
+
.catch((err) => this.handleError(err));
|
|
528
|
+
});
|
|
478
529
|
}
|
|
479
530
|
/**
|
|
480
531
|
* Returns a list of services
|
|
@@ -483,14 +534,16 @@ class IccContactApi {
|
|
|
483
534
|
* @param linkType The type of the link
|
|
484
535
|
*/
|
|
485
536
|
listServicesLinkedTo(linkType, body) {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
let _body = null;
|
|
539
|
+
_body = body;
|
|
540
|
+
const _url = this.host + `/contact/service/linkedTo` + '?ts=' + new Date().getTime() + (linkType ? '&linkType=' + encodeURIComponent(String(linkType)) : '');
|
|
541
|
+
let headers = yield this.headers;
|
|
542
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
543
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
544
|
+
.then((doc) => doc.body.map((it) => new Service_1.Service(it)))
|
|
545
|
+
.catch((err) => this.handleError(err));
|
|
546
|
+
});
|
|
494
547
|
}
|
|
495
548
|
/**
|
|
496
549
|
*
|
|
@@ -498,14 +551,16 @@ class IccContactApi {
|
|
|
498
551
|
* @param body
|
|
499
552
|
*/
|
|
500
553
|
matchContactsBy(body) {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
.
|
|
508
|
-
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
let _body = null;
|
|
556
|
+
_body = body;
|
|
557
|
+
const _url = this.host + `/contact/match` + '?ts=' + new Date().getTime();
|
|
558
|
+
let headers = yield this.headers;
|
|
559
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
560
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
561
|
+
.then((doc) => doc.body.map((it) => JSON.parse(JSON.stringify(it))))
|
|
562
|
+
.catch((err) => this.handleError(err));
|
|
563
|
+
});
|
|
509
564
|
}
|
|
510
565
|
/**
|
|
511
566
|
*
|
|
@@ -513,14 +568,16 @@ class IccContactApi {
|
|
|
513
568
|
* @param body
|
|
514
569
|
*/
|
|
515
570
|
matchServicesBy(body) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
.
|
|
523
|
-
|
|
571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
+
let _body = null;
|
|
573
|
+
_body = body;
|
|
574
|
+
const _url = this.host + `/contact/service/match` + '?ts=' + new Date().getTime();
|
|
575
|
+
let headers = yield this.headers;
|
|
576
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
577
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
578
|
+
.then((doc) => doc.body.map((it) => JSON.parse(JSON.stringify(it))))
|
|
579
|
+
.catch((err) => this.handleError(err));
|
|
580
|
+
});
|
|
524
581
|
}
|
|
525
582
|
/**
|
|
526
583
|
* Returns the modified contact.
|
|
@@ -528,14 +585,16 @@ class IccContactApi {
|
|
|
528
585
|
* @param body
|
|
529
586
|
*/
|
|
530
587
|
modifyContact(body) {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
.
|
|
538
|
-
|
|
588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
+
let _body = null;
|
|
590
|
+
_body = body;
|
|
591
|
+
const _url = this.host + `/contact` + '?ts=' + new Date().getTime();
|
|
592
|
+
let headers = yield this.headers;
|
|
593
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
594
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
595
|
+
.then((doc) => new Contact_1.Contact(doc.body))
|
|
596
|
+
.catch((err) => this.handleError(err));
|
|
597
|
+
});
|
|
539
598
|
}
|
|
540
599
|
/**
|
|
541
600
|
* Returns the modified contacts.
|
|
@@ -543,14 +602,16 @@ class IccContactApi {
|
|
|
543
602
|
* @param body
|
|
544
603
|
*/
|
|
545
604
|
modifyContacts(body) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
606
|
+
let _body = null;
|
|
607
|
+
_body = body;
|
|
608
|
+
const _url = this.host + `/contact/batch` + '?ts=' + new Date().getTime();
|
|
609
|
+
let headers = yield this.headers;
|
|
610
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
611
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
612
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
613
|
+
.catch((err) => this.handleError(err));
|
|
614
|
+
});
|
|
554
615
|
}
|
|
555
616
|
/**
|
|
556
617
|
* It delegates a contact to a healthcare party (By current healthcare party). Returns the contact with new delegations.
|
|
@@ -559,14 +620,16 @@ class IccContactApi {
|
|
|
559
620
|
* @param contactId
|
|
560
621
|
*/
|
|
561
622
|
newContactDelegations(contactId, body) {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
.
|
|
569
|
-
|
|
623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
624
|
+
let _body = null;
|
|
625
|
+
_body = body;
|
|
626
|
+
const _url = this.host + `/contact/${encodeURIComponent(String(contactId))}/delegate` + '?ts=' + new Date().getTime();
|
|
627
|
+
let headers = yield this.headers;
|
|
628
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
629
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
630
|
+
.then((doc) => new Contact_1.Contact(doc.body))
|
|
631
|
+
.catch((err) => this.handleError(err));
|
|
632
|
+
});
|
|
570
633
|
}
|
|
571
634
|
/**
|
|
572
635
|
* Keys must be delimited by coma
|
|
@@ -574,14 +637,42 @@ class IccContactApi {
|
|
|
574
637
|
* @param body
|
|
575
638
|
*/
|
|
576
639
|
setContactsDelegations(body) {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
641
|
+
let _body = null;
|
|
642
|
+
_body = body;
|
|
643
|
+
const _url = this.host + `/contact/delegations` + '?ts=' + new Date().getTime();
|
|
644
|
+
let headers = yield this.headers;
|
|
645
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
646
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
647
|
+
.then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
|
|
648
|
+
.catch((err) => this.handleError(err));
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* @internal this method is for internal use only and may be changed without notice
|
|
653
|
+
*/
|
|
654
|
+
bulkShareContacts(request) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
+
const _url = this.host + '/contact/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime();
|
|
657
|
+
let headers = yield this.headers;
|
|
658
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
659
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
660
|
+
.then((doc) => doc.body.map((x) => new EntityBulkShareResult_1.EntityBulkShareResult(x, Contact_1.Contact)))
|
|
661
|
+
.catch((err) => this.handleError(err));
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* @internal this method is for internal use only and may be changed without notice
|
|
666
|
+
*/
|
|
667
|
+
bulkShareContactsMinimal(request) {
|
|
668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
669
|
+
const _url = this.host + '/contact/bulkSharedMetadataUpdateMinimal' + '?ts=' + new Date().getTime();
|
|
670
|
+
let headers = yield this.headers;
|
|
671
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
672
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
673
|
+
.then((doc) => doc.body.map((x) => new MinimalEntityBulkShareResult_1.MinimalEntityBulkShareResult(x)))
|
|
674
|
+
.catch((err) => this.handleError(err));
|
|
675
|
+
});
|
|
585
676
|
}
|
|
586
677
|
}
|
|
587
678
|
exports.IccContactApi = IccContactApi;
|