@icure/api 8.0.0-RC.1 → 8.0.0-RC.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icc-api/api/IccAccesslogApi.d.ts +12 -4
- package/icc-api/api/IccAccesslogApi.js +23 -18
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccAgendaApi.d.ts +13 -4
- package/icc-api/api/IccAgendaApi.js +42 -19
- package/icc-api/api/IccAgendaApi.js.map +1 -1
- package/icc-api/api/IccApplicationsettingsApi.d.ts +1 -1
- package/icc-api/api/IccApplicationsettingsApi.js +2 -2
- package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
- package/icc-api/api/IccArticleApi.d.ts +13 -4
- package/icc-api/api/IccArticleApi.js +50 -26
- package/icc-api/api/IccArticleApi.js.map +1 -1
- package/icc-api/api/IccAuthApi.d.ts +1 -1
- package/icc-api/api/IccAuthApi.js +2 -2
- package/icc-api/api/IccAuthApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemApi.d.ts +8 -4
- package/icc-api/api/IccCalendarItemApi.js +15 -22
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemTypeApi.d.ts +6 -4
- package/icc-api/api/IccCalendarItemTypeApi.js +60 -45
- package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.d.ts +14 -5
- package/icc-api/api/IccClassificationApi.js +22 -12
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccClassificationTemplateApi.d.ts +14 -5
- package/icc-api/api/IccClassificationTemplateApi.js +102 -70
- package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
- package/icc-api/api/IccCodeApi.d.ts +1 -1
- package/icc-api/api/IccCodeApi.js +2 -2
- package/icc-api/api/IccCodeApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +11 -4
- package/icc-api/api/IccContactApi.js +20 -13
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDataownerApi.d.ts +1 -1
- package/icc-api/api/IccDataownerApi.js +44 -27
- package/icc-api/api/IccDataownerApi.js.map +1 -1
- package/icc-api/api/IccDeviceApi.d.ts +1 -1
- package/icc-api/api/IccDeviceApi.js +43 -32
- package/icc-api/api/IccDeviceApi.js.map +1 -1
- package/icc-api/api/IccDoctemplateApi.d.ts +10 -8
- package/icc-api/api/IccDoctemplateApi.js +121 -101
- package/icc-api/api/IccDoctemplateApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +19 -5
- package/icc-api/api/IccDocumentApi.js +38 -13
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccEntityrefApi.d.ts +1 -1
- package/icc-api/api/IccEntityrefApi.js +27 -16
- package/icc-api/api/IccEntityrefApi.js.map +1 -1
- package/icc-api/api/IccEntitytemplateApi.d.ts +6 -4
- package/icc-api/api/IccEntitytemplateApi.js +118 -97
- package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
- package/icc-api/api/IccExchangeDataApi.d.ts +2 -2
- package/icc-api/api/IccExchangeDataApi.js +73 -52
- package/icc-api/api/IccExchangeDataApi.js.map +1 -1
- package/icc-api/api/IccExchangeDataMapApi.d.ts +2 -2
- package/icc-api/api/IccExchangeDataMapApi.js +53 -34
- package/icc-api/api/IccExchangeDataMapApi.js.map +1 -1
- package/icc-api/api/IccFormApi.d.ts +13 -5
- package/icc-api/api/IccFormApi.js +24 -18
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccFrontendmigrationApi.d.ts +1 -1
- package/icc-api/api/IccFrontendmigrationApi.js +19 -10
- package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
- package/icc-api/api/IccGroupApi.d.ts +16 -2
- package/icc-api/api/IccGroupApi.js +29 -3
- package/icc-api/api/IccGroupApi.js.map +1 -1
- package/icc-api/api/IccHcpartyApi.d.ts +25 -10
- package/icc-api/api/IccHcpartyApi.js +84 -53
- package/icc-api/api/IccHcpartyApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +13 -5
- package/icc-api/api/IccHelementApi.js +25 -21
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccIcureApi.d.ts +1 -1
- package/icc-api/api/IccIcureApi.js +2 -2
- package/icc-api/api/IccIcureApi.js.map +1 -1
- package/icc-api/api/IccInsuranceApi.d.ts +1 -1
- package/icc-api/api/IccInsuranceApi.js +67 -50
- package/icc-api/api/IccInsuranceApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +1 -1
- package/icc-api/api/IccInvoiceApi.js +5 -11
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccKeywordApi.d.ts +6 -5
- package/icc-api/api/IccKeywordApi.js +59 -45
- package/icc-api/api/IccKeywordApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.d.ts +13 -4
- package/icc-api/api/IccMaintenanceTaskApi.js +22 -12
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMedexApi.d.ts +1 -1
- package/icc-api/api/IccMedexApi.js +19 -10
- package/icc-api/api/IccMedexApi.js.map +1 -1
- package/icc-api/api/IccMedicallocationApi.d.ts +6 -4
- package/icc-api/api/IccMedicallocationApi.js +52 -39
- package/icc-api/api/IccMedicallocationApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +25 -7
- package/icc-api/api/IccMessageApi.js +52 -22
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +13 -5
- package/icc-api/api/IccPatientApi.js +23 -13
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccPermissionApi.d.ts +1 -1
- package/icc-api/api/IccPermissionApi.js +19 -10
- package/icc-api/api/IccPermissionApi.js.map +1 -1
- package/icc-api/api/IccPlaceApi.d.ts +7 -5
- package/icc-api/api/IccPlaceApi.js +53 -40
- package/icc-api/api/IccPlaceApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +13 -4
- package/icc-api/api/IccReceiptApi.js +23 -13
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccReplicationApi.d.ts +1 -1
- package/icc-api/api/IccReplicationApi.js +3 -5
- package/icc-api/api/IccReplicationApi.js.map +1 -1
- package/icc-api/api/IccRoleApi.d.ts +16 -0
- package/icc-api/api/IccRoleApi.js +42 -0
- package/icc-api/api/IccRoleApi.js.map +1 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
- package/icc-api/api/IccTarificationApi.d.ts +1 -1
- package/icc-api/api/IccTarificationApi.js +19 -10
- package/icc-api/api/IccTarificationApi.js.map +1 -1
- package/icc-api/api/IccTimeTableApi.d.ts +13 -4
- package/icc-api/api/IccTimeTableApi.js +21 -9
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +97 -0
- package/icc-api/api/IccTopicApi.js +208 -0
- package/icc-api/api/IccTopicApi.js.map +1 -0
- package/icc-api/api/IccUserApi.d.ts +31 -1
- package/icc-api/api/IccUserApi.js +65 -2
- package/icc-api/api/IccUserApi.js.map +1 -1
- package/icc-api/index.d.ts +1 -0
- package/icc-api/index.js +1 -0
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
- package/icc-api/model/AbstractFilterMessage.js +21 -0
- package/icc-api/model/AbstractFilterMessage.js.map +1 -0
- package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
- package/icc-api/model/AbstractFilterTopic.js +21 -0
- package/icc-api/model/AbstractFilterTopic.js.map +1 -0
- package/icc-api/model/AccessLog.d.ts +0 -2
- package/icc-api/model/AccessLog.js +0 -1
- package/icc-api/model/AccessLog.js.map +1 -1
- package/icc-api/model/Article.d.ts +0 -2
- package/icc-api/model/Article.js +0 -1
- package/icc-api/model/Article.js.map +1 -1
- package/icc-api/model/CalendarItem.d.ts +0 -2
- package/icc-api/model/CalendarItem.js +0 -1
- package/icc-api/model/CalendarItem.js.map +1 -1
- package/icc-api/model/Classification.d.ts +0 -2
- package/icc-api/model/Classification.js +0 -1
- package/icc-api/model/Classification.js.map +1 -1
- package/icc-api/model/Connection.d.ts +1 -1
- package/icc-api/model/Connection.js.map +1 -1
- package/icc-api/model/Contact.d.ts +0 -2
- package/icc-api/model/Contact.js +0 -1
- package/icc-api/model/Contact.js.map +1 -1
- package/icc-api/model/Document.d.ts +0 -2
- package/icc-api/model/Document.js +0 -1
- package/icc-api/model/Document.js.map +1 -1
- package/icc-api/model/FilterChainMessage.d.ts +19 -0
- package/icc-api/model/FilterChainMessage.js +11 -0
- package/icc-api/model/FilterChainMessage.js.map +1 -0
- package/icc-api/model/FilterChainTopic.d.ts +19 -0
- package/icc-api/model/FilterChainTopic.js +11 -0
- package/icc-api/model/FilterChainTopic.js.map +1 -0
- package/icc-api/model/Form.d.ts +0 -2
- package/icc-api/model/Form.js +0 -1
- package/icc-api/model/Form.js.map +1 -1
- package/icc-api/model/Group.d.ts +4 -0
- package/icc-api/model/Group.js.map +1 -1
- package/icc-api/model/HealthElement.d.ts +0 -2
- package/icc-api/model/HealthElement.js +0 -1
- package/icc-api/model/HealthElement.js.map +1 -1
- package/icc-api/model/HealthcareParty.js +13 -1
- package/icc-api/model/HealthcareParty.js.map +1 -1
- package/icc-api/model/Invoice.d.ts +0 -2
- package/icc-api/model/Invoice.js +0 -1
- package/icc-api/model/Invoice.js.map +1 -1
- package/icc-api/model/MaintenanceTask.d.ts +11 -10
- package/icc-api/model/MaintenanceTask.js +13 -12
- package/icc-api/model/MaintenanceTask.js.map +1 -1
- package/icc-api/model/Message.d.ts +5 -2
- package/icc-api/model/Message.js +0 -1
- package/icc-api/model/Message.js.map +1 -1
- package/icc-api/model/MessageAttachment.d.ts +10 -0
- package/icc-api/model/MessageAttachment.js +10 -0
- package/icc-api/model/MessageAttachment.js.map +1 -0
- package/icc-api/model/PaginatedListExchangeData.d.ts +1 -1
- package/icc-api/model/PaginatedListExchangeData.js.map +1 -1
- package/icc-api/model/PaginatedListTopic.d.ts +20 -0
- package/icc-api/model/PaginatedListTopic.js +10 -0
- package/icc-api/model/PaginatedListTopic.js.map +1 -0
- package/icc-api/model/Patient.d.ts +0 -2
- package/icc-api/model/Patient.js +0 -1
- package/icc-api/model/Patient.js.map +1 -1
- package/icc-api/model/Receipt.d.ts +0 -2
- package/icc-api/model/Receipt.js +0 -1
- package/icc-api/model/Receipt.js.map +1 -1
- package/icc-api/model/Role.d.ts +11 -0
- package/icc-api/model/Role.js +10 -0
- package/icc-api/model/Role.js.map +1 -0
- package/icc-api/model/RoleConfiguration.d.ts +6 -0
- package/icc-api/model/RoleConfiguration.js +10 -0
- package/icc-api/model/RoleConfiguration.js.map +1 -0
- package/icc-api/model/RoleSourceEnum.d.ts +11 -0
- package/icc-api/model/RoleSourceEnum.js +16 -0
- package/icc-api/model/RoleSourceEnum.js.map +1 -0
- package/icc-api/model/TimeTable.d.ts +0 -2
- package/icc-api/model/TimeTable.js +0 -1
- package/icc-api/model/TimeTable.js.map +1 -1
- package/icc-api/model/Topic.d.ts +95 -0
- package/icc-api/model/Topic.js +16 -0
- package/icc-api/model/Topic.js.map +1 -0
- package/icc-api/model/UserTypeEnum.d.ts +9 -0
- package/icc-api/model/UserTypeEnum.js +14 -0
- package/icc-api/model/UserTypeEnum.js.map +1 -0
- package/icc-api/model/{ExchangeData.d.ts → internal/ExchangeData.d.ts} +3 -0
- package/icc-api/model/{ExchangeData.js → internal/ExchangeData.js} +3 -0
- package/icc-api/model/internal/ExchangeData.js.map +1 -0
- package/icc-api/model/{ExchangeDataMap.d.ts → internal/ExchangeDataMap.d.ts} +3 -0
- package/icc-api/model/{ExchangeDataMap.js → internal/ExchangeDataMap.js} +3 -0
- package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
- package/icc-api/model/models.d.ts +11 -1
- package/icc-api/model/models.js +9 -0
- package/icc-api/model/models.js.map +1 -1
- package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +52 -4
- package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +2 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +13 -4
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -1
- package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +1 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js +11 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -1
- package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +1 -1
- package/icc-x-api/crypto/BaseExchangeDataManager.js +1 -1
- package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -1
- package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataManager.d.ts +3 -1
- package/icc-x-api/crypto/ExchangeDataManager.js +27 -19
- package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -1
- package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +1 -1
- package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -1
- package/icc-x-api/crypto/ExtendedApisUtils.d.ts +0 -10
- package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -1
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +0 -7
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +4 -7
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -1
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +0 -6
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +0 -9
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -1
- package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -1
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +14 -5
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +44 -26
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -1
- package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +1 -18
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js +4 -23
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -1
- package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +1 -1
- package/icc-x-api/crypto/UserSignatureKeysManager.js +2 -2
- package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -1
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
- package/icc-x-api/filters/filters.d.ts +5 -0
- package/icc-x-api/filters/filters.js +5 -0
- package/icc-x-api/filters/filters.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +3 -1
- package/icc-x-api/icc-accesslog-x-api.js +7 -3
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +3 -1
- package/icc-x-api/icc-calendar-item-x-api.js +7 -3
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +3 -1
- package/icc-x-api/icc-classification-x-api.js +7 -3
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +3 -1
- package/icc-x-api/icc-contact-x-api.js +8 -4
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +7 -1
- package/icc-x-api/icc-crypto-x-api.js +8 -1
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +3 -1
- package/icc-x-api/icc-document-x-api.js +8 -4
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +3 -1
- package/icc-x-api/icc-form-x-api.js +7 -3
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +4 -2
- package/icc-x-api/icc-helement-x-api.js +8 -8
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +3 -1
- package/icc-x-api/icc-invoice-x-api.js +7 -3
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +8 -4
- package/icc-x-api/icc-maintenance-task-x-api.js +14 -4
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +24 -6
- package/icc-x-api/icc-message-x-api.js +66 -6
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +3 -1
- package/icc-x-api/icc-patient-x-api.js +7 -3
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +3 -1
- package/icc-x-api/icc-receipt-x-api.js +7 -3
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +3 -1
- package/icc-x-api/icc-time-table-x-api.js +7 -3
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/icc-topic-x-api.d.ts +191 -0
- package/icc-x-api/icc-topic-x-api.js +307 -0
- package/icc-x-api/icc-topic-x-api.js.map +1 -0
- package/icc-x-api/index.d.ts +17 -0
- package/icc-x-api/index.js +104 -70
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
- package/icc-x-api/storage/KeyStorageImpl.d.ts +1 -0
- package/icc-x-api/storage/KeyStorageImpl.js +20 -12
- package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
- package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +1 -1
- package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -1
- package/icc-x-api/utils/websocket.d.ts +4 -0
- package/icc-x-api/utils/websocket.js +8 -0
- package/icc-x-api/utils/websocket.js.map +1 -1
- package/package.json +1 -1
- package/icc-api/api/IccDocumentTemplateApi.d.ts +0 -106
- package/icc-api/api/IccDocumentTemplateApi.js +0 -223
- package/icc-api/api/IccDocumentTemplateApi.js.map +0 -1
- package/icc-api/model/ExchangeData.js.map +0 -1
- package/icc-api/model/ExchangeDataMap.js.map +0 -1
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.IccCalendarItemTypeApi = void 0;
|
|
4
13
|
/**
|
|
@@ -15,13 +24,13 @@ exports.IccCalendarItemTypeApi = void 0;
|
|
|
15
24
|
const XHR_1 = require("./XHR");
|
|
16
25
|
const CalendarItemType_1 = require("../model/CalendarItemType");
|
|
17
26
|
const DocIdentifier_1 = require("../model/DocIdentifier");
|
|
18
|
-
const
|
|
27
|
+
const icc_x_api_1 = require("../../icc-x-api");
|
|
19
28
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
20
29
|
class IccCalendarItemTypeApi {
|
|
21
30
|
constructor(host, headers, authenticationProvider, fetchImpl) {
|
|
22
31
|
this.host = (0, IccRestApiPath_1.iccRestApiPath)(host);
|
|
23
32
|
this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
|
|
24
|
-
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new
|
|
33
|
+
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new icc_x_api_1.NoAuthenticationProvider();
|
|
25
34
|
this.fetchImpl = fetchImpl;
|
|
26
35
|
}
|
|
27
36
|
setHeaders(h) {
|
|
@@ -36,27 +45,27 @@ class IccCalendarItemTypeApi {
|
|
|
36
45
|
* @param body
|
|
37
46
|
*/
|
|
38
47
|
createCalendarItemType(body) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime();
|
|
50
|
+
let headers = this.headers;
|
|
51
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
52
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
53
|
+
.then((doc) => new CalendarItemType_1.CalendarItemType(doc.body))
|
|
54
|
+
.catch((err) => this.handleError(err));
|
|
55
|
+
});
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
58
|
+
* @summary Deletes a batch of calendarItemTypes.
|
|
49
59
|
*
|
|
50
|
-
* @
|
|
51
|
-
* @
|
|
60
|
+
* @param calendarItemTypeIds a ListOfIds containing the ids of the calendarItemTypes to delete.
|
|
61
|
+
* @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted calendarItemTypes.
|
|
52
62
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.catch((err) => this.handleError(err));
|
|
63
|
+
deleteCalendarItemTypes(calendarItemTypeIds) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
return XHR_1.XHR.sendCommand('POST', this.host + `/calendarItemType/delete/batch` + '?ts=' + new Date().getTime(), this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json')), calendarItemTypeIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
66
|
+
.then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
|
|
67
|
+
.catch((err) => this.handleError(err));
|
|
68
|
+
});
|
|
60
69
|
}
|
|
61
70
|
/**
|
|
62
71
|
*
|
|
@@ -64,36 +73,42 @@ class IccCalendarItemTypeApi {
|
|
|
64
73
|
* @param calendarItemTypeId
|
|
65
74
|
*/
|
|
66
75
|
getCalendarItemType(calendarItemTypeId) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
let _body = null;
|
|
78
|
+
const _url = this.host + `/calendarItemType/${encodeURIComponent(String(calendarItemTypeId))}` + '?ts=' + new Date().getTime();
|
|
79
|
+
let headers = this.headers;
|
|
80
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
81
|
+
.then((doc) => new CalendarItemType_1.CalendarItemType(doc.body))
|
|
82
|
+
.catch((err) => this.handleError(err));
|
|
83
|
+
});
|
|
73
84
|
}
|
|
74
85
|
/**
|
|
75
86
|
*
|
|
76
87
|
* @summary Gets all calendarItemTypes
|
|
77
88
|
*/
|
|
78
89
|
getCalendarItemTypes() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
let _body = null;
|
|
92
|
+
const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime();
|
|
93
|
+
let headers = this.headers;
|
|
94
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
95
|
+
.then((doc) => doc.body.map((it) => new CalendarItemType_1.CalendarItemType(it)))
|
|
96
|
+
.catch((err) => this.handleError(err));
|
|
97
|
+
});
|
|
85
98
|
}
|
|
86
99
|
/**
|
|
87
100
|
*
|
|
88
101
|
* @summary Gets all calendarItemTypes include deleted
|
|
89
102
|
*/
|
|
90
103
|
getCalendarItemTypesIncludeDeleted() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
let _body = null;
|
|
106
|
+
const _url = this.host + `/calendarItemType/includeDeleted` + '?ts=' + new Date().getTime();
|
|
107
|
+
let headers = this.headers;
|
|
108
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
109
|
+
.then((doc) => doc.body.map((it) => new CalendarItemType_1.CalendarItemType(it)))
|
|
110
|
+
.catch((err) => this.handleError(err));
|
|
111
|
+
});
|
|
97
112
|
}
|
|
98
113
|
/**
|
|
99
114
|
*
|
|
@@ -101,14 +116,14 @@ class IccCalendarItemTypeApi {
|
|
|
101
116
|
* @param body
|
|
102
117
|
*/
|
|
103
118
|
modifyCalendarItemType(body) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime();
|
|
121
|
+
let headers = this.headers;
|
|
122
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
123
|
+
return XHR_1.XHR.sendCommand('PUT', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
124
|
+
.then((doc) => new CalendarItemType_1.CalendarItemType(doc.body))
|
|
125
|
+
.catch((err) => this.handleError(err));
|
|
126
|
+
});
|
|
112
127
|
}
|
|
113
128
|
}
|
|
114
129
|
exports.IccCalendarItemTypeApi = IccCalendarItemTypeApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccCalendarItemTypeApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccCalendarItemTypeApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IccCalendarItemTypeApi.js","s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AAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACxH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mCAAgB,CAAC,GAAG,CAAC,IAAY,CAAC,CAAC;iBACrD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AApHD,wDAoHC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { CalendarItemType } from '../model/CalendarItemType'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { ListOfIds } from '../model/ListOfIds'\n\nexport class IccCalendarItemTypeApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this.headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Creates a calendarItemType\n * @param body\n */\n async createCalendarItemType(body?: CalendarItemType): Promise<CalendarItemType> {\n const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new CalendarItemType(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of calendarItemTypes.\n *\n * @param calendarItemTypeIds a ListOfIds containing the ids of the calendarItemTypes to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted calendarItemTypes.\n */\n async deleteCalendarItemTypes(calendarItemTypeIds: ListOfIds): Promise<Array<DocIdentifier>> {\n return XHR.sendCommand(\n 'POST',\n this.host + `/calendarItemType/delete/batch` + '?ts=' + new Date().getTime(),\n this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n calendarItemTypeIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets an calendarItemType\n * @param calendarItemTypeId\n */\n async getCalendarItemType(calendarItemTypeId: string): Promise<CalendarItemType> {\n let _body = null\n\n const _url = this.host + `/calendarItemType/${encodeURIComponent(String(calendarItemTypeId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new CalendarItemType(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets all calendarItemTypes\n */\n async getCalendarItemTypes(): Promise<Array<CalendarItemType>> {\n let _body = null\n\n const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new CalendarItemType(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets all calendarItemTypes include deleted\n */\n async getCalendarItemTypesIncludeDeleted(): Promise<Array<CalendarItemType>> {\n let _body = null\n\n const _url = this.host + `/calendarItemType/includeDeleted` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new CalendarItemType(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Modifies an calendarItemType\n * @param body\n */\n async modifyCalendarItemType(body?: CalendarItemType): Promise<CalendarItemType> {\n const _url = this.host + `/calendarItemType` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new CalendarItemType(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -14,10 +14,11 @@ import { Classification } from '../model/Classification';
|
|
|
14
14
|
import { Delegation } from '../model/Delegation';
|
|
15
15
|
import { DocIdentifier } from '../model/DocIdentifier';
|
|
16
16
|
import { IcureStub } from '../model/IcureStub';
|
|
17
|
-
import { AuthenticationProvider } from '../../icc-x-api
|
|
17
|
+
import { AuthenticationProvider } from '../../icc-x-api';
|
|
18
18
|
import { EntityShareOrMetadataUpdateRequest } from '../model/requests/EntityShareOrMetadataUpdateRequest';
|
|
19
19
|
import { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult';
|
|
20
20
|
import { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult';
|
|
21
|
+
import { ListOfIds } from '../model/ListOfIds';
|
|
21
22
|
export declare class IccClassificationApi {
|
|
22
23
|
host: string;
|
|
23
24
|
_headers: Array<XHR.Header>;
|
|
@@ -34,11 +35,19 @@ export declare class IccClassificationApi {
|
|
|
34
35
|
*/
|
|
35
36
|
createClassification(body?: Classification): Promise<Classification>;
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @param classificationIds
|
|
38
|
+
* @summary Deletes a batch of classifications.
|
|
39
|
+
*
|
|
40
|
+
* @param classificationIds a ListOfIds containing the ids of the classification to delete.
|
|
41
|
+
* @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted classifications.
|
|
42
|
+
*/
|
|
43
|
+
deleteClassifications(classificationIds: ListOfIds): Promise<Array<DocIdentifier>>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Deletes a single classification by id.
|
|
46
|
+
*
|
|
47
|
+
* @param classificationId the id of the classification to delete.
|
|
48
|
+
* @return a Promise that will resolve in the DocIdentifier of the deleted classification.
|
|
40
49
|
*/
|
|
41
|
-
|
|
50
|
+
deleteClassification(classificationId: string): Promise<DocIdentifier>;
|
|
42
51
|
/**
|
|
43
52
|
* Keys hast to delimited by coma
|
|
44
53
|
* @summary List classification Templates found By Healthcare Party and secret foreign keyelementIds.
|
|
@@ -25,7 +25,7 @@ const XHR_1 = require("./XHR");
|
|
|
25
25
|
const Classification_1 = require("../model/Classification");
|
|
26
26
|
const DocIdentifier_1 = require("../model/DocIdentifier");
|
|
27
27
|
const IcureStub_1 = require("../model/IcureStub");
|
|
28
|
-
const
|
|
28
|
+
const icc_x_api_1 = require("../../icc-x-api");
|
|
29
29
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
30
30
|
const EntityBulkShareResult_1 = require("../model/requests/EntityBulkShareResult");
|
|
31
31
|
const MinimalEntityBulkShareResult_1 = require("../model/requests/MinimalEntityBulkShareResult");
|
|
@@ -36,7 +36,7 @@ class IccClassificationApi {
|
|
|
36
36
|
constructor(host, headers, authenticationProvider, fetchImpl) {
|
|
37
37
|
this.host = (0, IccRestApiPath_1.iccRestApiPath)(host);
|
|
38
38
|
this._headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
|
|
39
|
-
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new
|
|
39
|
+
this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new icc_x_api_1.NoAuthenticationProvider();
|
|
40
40
|
this.fetchImpl = fetchImpl;
|
|
41
41
|
}
|
|
42
42
|
setHeaders(h) {
|
|
@@ -52,31 +52,41 @@ class IccClassificationApi {
|
|
|
52
52
|
*/
|
|
53
53
|
createClassification(body) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
let _body = null;
|
|
56
|
-
_body = body;
|
|
57
55
|
const _url = this.host + `/classification` + '?ts=' + new Date().getTime();
|
|
58
56
|
let headers = yield this.headers;
|
|
59
57
|
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
60
|
-
return XHR_1.XHR.sendCommand('POST', _url, headers,
|
|
58
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
61
59
|
.then((doc) => new Classification_1.Classification(doc.body))
|
|
62
60
|
.catch((err) => this.handleError(err));
|
|
63
61
|
});
|
|
64
62
|
}
|
|
65
63
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @param classificationIds
|
|
64
|
+
* @summary Deletes a batch of classifications.
|
|
65
|
+
*
|
|
66
|
+
* @param classificationIds a ListOfIds containing the ids of the classification to delete.
|
|
67
|
+
* @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted classifications.
|
|
69
68
|
*/
|
|
70
69
|
deleteClassifications(classificationIds) {
|
|
71
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
let headers = yield this.headers;
|
|
75
|
-
return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
71
|
+
const headers = (yield this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
72
|
+
return XHR_1.XHR.sendCommand('POST', this.host + `/classification/delete/batch` + '?ts=' + new Date().getTime(), headers, classificationIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
76
73
|
.then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
|
|
77
74
|
.catch((err) => this.handleError(err));
|
|
78
75
|
});
|
|
79
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @summary Deletes a single classification by id.
|
|
79
|
+
*
|
|
80
|
+
* @param classificationId the id of the classification to delete.
|
|
81
|
+
* @return a Promise that will resolve in the DocIdentifier of the deleted classification.
|
|
82
|
+
*/
|
|
83
|
+
deleteClassification(classificationId) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return XHR_1.XHR.sendCommand('DELETE', this.host + `/classification/${encodeURIComponent(classificationId)}` + '?ts=' + new Date().getTime(), yield this.headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
86
|
+
.then((doc) => new DocIdentifier_1.DocIdentifier(doc.body))
|
|
87
|
+
.catch((err) => this.handleError(err));
|
|
88
|
+
});
|
|
89
|
+
}
|
|
80
90
|
/**
|
|
81
91
|
* Keys hast to delimited by coma
|
|
82
92
|
* @summary List classification Templates found By Healthcare Party and secret foreign keyelementIds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccClassificationApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccClassificationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,4DAAwD;AAExD,0DAAsD;AACtD,kDAA8C;AAC9C,wFAA8G;AAC9G,qDAAiD;AAEjD,mFAA+E;AAC/E,iGAA6F;AAE7F,MAAa,oBAAoB;IAM/B,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IAED,YACE,IAAY,EACZ,O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AK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBAC3H,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,2DAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;iBACxF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAjMD,oDAiMC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Classification } from '../model/Classification'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { IcureStub } from '../model/IcureStub'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityShareOrMetadataUpdateRequest } from '../model/requests/EntityShareOrMetadataUpdateRequest'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult'\n\nexport class IccClassificationApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n * Returns an instance of created classification Template.\n * @summary Create a classification with the current user\n * @param body\n */\n async createClassification(body?: Classification): Promise<Classification> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Response is a set containing the ID's of deleted classification Templates.\n * @summary Delete classification Templates.\n * @param classificationIds\n */\n async deleteClassifications(classificationIds: string): Promise<Array<DocIdentifier>> {\n let _body = null\n\n const _url = this.host + `/classification/${encodeURIComponent(String(classificationIds))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys hast to delimited by coma\n * @summary List classification Templates found By Healthcare Party and secret foreign keyelementIds.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findClassificationsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<Classification>> {\n let _body = null\n\n const _url =\n this.host +\n `/classification/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Classification(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get a classification Template\n * @param classificationId\n */\n async getClassification(classificationId: string): Promise<Classification> {\n let _body = null\n\n const _url = this.host + `/classification/${encodeURIComponent(String(classificationId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Ids are seperated by a coma\n * @summary Get a list of classifications\n * @param ids\n */\n async getClassificationByHcPartyId(ids: string): Promise<Array<Classification>> {\n let _body = null\n\n const _url = this.host + `/classification/byIds/${encodeURIComponent(String(ids))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Classification(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified classification Template.\n * @summary Modify a classification Template\n * @param body\n */\n async modifyClassification(body?: Classification): Promise<Classification> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * It delegates a classification to a healthcare party (By current healthcare party). Returns the element with new delegations.\n * @summary Delegates a classification to a healthcare party\n * @param body\n * @param classificationId\n */\n async newClassificationDelegations(classificationId: string, body?: Array<Delegation>): Promise<Classification> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification/${encodeURIComponent(String(classificationId))}/delegate` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @summary Update delegations in classification\n * @param body\n */\n async setClassificationsDelegations(body?: Array<IcureStub>): Promise<Array<IcureStub>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification/delegations` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareClassifications(request: {\n [entityId: string]: { [requestId: string]: EntityShareOrMetadataUpdateRequest }\n }): Promise<EntityBulkShareResult<Classification>[]> {\n const _url = this.host + '/classification/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<Classification>(x, Classification)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareClassificationsMinimal(request: {\n [entityId: string]: { [requestId: string]: EntityShareOrMetadataUpdateRequest }\n }): Promise<MinimalEntityBulkShareResult[]> {\n const _url = this.host + '/classification/bulkSharedMetadataUpdateMinimal' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new MinimalEntityBulkShareResult(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IccClassificationApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccClassificationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,4DAAwD;AAExD,0DAAsD;AACtD,kDAA8C;AAC9C,+CAAkF;AAClF,qDAAiD;AAEjD,mFAA+E;AAC/E,iGAA6F;AAG7F,MAAa,oBAAoB;IAM/B,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IAED,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC9E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,oCAAwB,EAAE,CAAA;QAChH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAAU,CAAC,CAAoB;QAC7B,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;IACnB,CAAC;IAED,WAAW,CAAC,CAAe;QACz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AAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBAC3H,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,2DAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;iBACxF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAxND,oDAwNC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Classification } from '../model/Classification'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { IcureStub } from '../model/IcureStub'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityShareOrMetadataUpdateRequest } from '../model/requests/EntityShareOrMetadataUpdateRequest'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult'\nimport { ListOfIds } from '../model/ListOfIds'\n\nexport class IccClassificationApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n * Returns an instance of created classification Template.\n * @summary Create a classification with the current user\n * @param body\n */\n async createClassification(body?: Classification): Promise<Classification> {\n const _url = this.host + `/classification` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of classifications.\n *\n * @param classificationIds a ListOfIds containing the ids of the classification to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted classifications.\n */\n async deleteClassifications(classificationIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n this.host + `/classification/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n classificationIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single classification by id.\n *\n * @param classificationId the id of the classification to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted classification.\n */\n async deleteClassification(classificationId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/classification/${encodeURIComponent(classificationId)}` + '?ts=' + new Date().getTime(),\n await this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys hast to delimited by coma\n * @summary List classification Templates found By Healthcare Party and secret foreign keyelementIds.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findClassificationsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<Classification>> {\n let _body = null\n\n const _url =\n this.host +\n `/classification/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Classification(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get a classification Template\n * @param classificationId\n */\n async getClassification(classificationId: string): Promise<Classification> {\n let _body = null\n\n const _url = this.host + `/classification/${encodeURIComponent(String(classificationId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Ids are seperated by a coma\n * @summary Get a list of classifications\n * @param ids\n */\n async getClassificationByHcPartyId(ids: string): Promise<Array<Classification>> {\n let _body = null\n\n const _url = this.host + `/classification/byIds/${encodeURIComponent(String(ids))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Classification(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified classification Template.\n * @summary Modify a classification Template\n * @param body\n */\n async modifyClassification(body?: Classification): Promise<Classification> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * It delegates a classification to a healthcare party (By current healthcare party). Returns the element with new delegations.\n * @summary Delegates a classification to a healthcare party\n * @param body\n * @param classificationId\n */\n async newClassificationDelegations(classificationId: string, body?: Array<Delegation>): Promise<Classification> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification/${encodeURIComponent(String(classificationId))}/delegate` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Classification(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @summary Update delegations in classification\n * @param body\n */\n async setClassificationsDelegations(body?: Array<IcureStub>): Promise<Array<IcureStub>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/classification/delegations` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareClassifications(request: {\n [entityId: string]: { [requestId: string]: EntityShareOrMetadataUpdateRequest }\n }): Promise<EntityBulkShareResult<Classification>[]> {\n const _url = this.host + '/classification/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<Classification>(x, Classification)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareClassificationsMinimal(request: {\n [entityId: string]: { [requestId: string]: EntityShareOrMetadataUpdateRequest }\n }): Promise<MinimalEntityBulkShareResult[]> {\n const _url = this.host + '/classification/bulkSharedMetadataUpdateMinimal' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new MinimalEntityBulkShareResult(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -14,7 +14,8 @@ import { ClassificationTemplate } from '../model/ClassificationTemplate';
|
|
|
14
14
|
import { Delegation } from '../model/Delegation';
|
|
15
15
|
import { DocIdentifier } from '../model/DocIdentifier';
|
|
16
16
|
import { PaginatedListClassificationTemplate } from '../model/PaginatedListClassificationTemplate';
|
|
17
|
-
import { AuthenticationProvider } from '../../icc-x-api
|
|
17
|
+
import { AuthenticationProvider } from '../../icc-x-api';
|
|
18
|
+
import { ListOfIds } from '../model/ListOfIds';
|
|
18
19
|
export declare class IccClassificationTemplateApi {
|
|
19
20
|
host: string;
|
|
20
21
|
headers: Array<XHR.Header>;
|
|
@@ -30,11 +31,19 @@ export declare class IccClassificationTemplateApi {
|
|
|
30
31
|
*/
|
|
31
32
|
createClassificationTemplate(body?: ClassificationTemplate): Promise<ClassificationTemplate>;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param classificationTemplateIds
|
|
34
|
+
* @summary Deletes a batch of classification templates.
|
|
35
|
+
*
|
|
36
|
+
* @param classificationTemplateIds a ListOfIds containing the ids of the classification templates to delete.
|
|
37
|
+
* @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted classification templates
|
|
38
|
+
*/
|
|
39
|
+
deleteClassificationTemplates(classificationTemplateIds: ListOfIds): Promise<Array<DocIdentifier>>;
|
|
40
|
+
/**
|
|
41
|
+
* @summary Deletes a single classification template by id.
|
|
42
|
+
*
|
|
43
|
+
* @param classificationTemplateId the id of the classification template to delete.
|
|
44
|
+
* @return a Promise that will resolve in the DocIdentifier of the deleted classification template.
|
|
36
45
|
*/
|
|
37
|
-
|
|
46
|
+
deleteClassificationTemplate(classificationTemplateId: string): Promise<DocIdentifier>;
|
|
38
47
|
/**
|
|
39
48
|
* Keys hast to delimited by coma
|
|
40
49
|
* @summary List classification Templates found By Healthcare Party and secret foreign keyelementIds.
|