gdc-sdk-front-ts 0.6.2 → 0.6.6
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/README.md +36 -8
- package/dist/ProfileManager.d.ts +22 -0
- package/dist/ProfileManager.js +155 -0
- package/dist/gdc-common-utils-ts/src/AesManager.d.ts +27 -0
- package/dist/gdc-common-utils-ts/src/AesManager.js +64 -0
- package/dist/gdc-common-utils-ts/src/CryptographyService.d.ts +76 -0
- package/dist/gdc-common-utils-ts/src/CryptographyService.js +401 -0
- package/dist/gdc-common-utils-ts/src/constants/actor-session.d.ts +40 -0
- package/dist/gdc-common-utils-ts/src/constants/actor-session.js +40 -0
- package/dist/gdc-common-utils-ts/src/constants/communication.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/constants/communication.js +14 -0
- package/dist/gdc-common-utils-ts/src/constants/cryptography.d.ts +58 -0
- package/dist/gdc-common-utils-ts/src/constants/cryptography.js +49 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.js +11 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.d.ts +27 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.js +27 -0
- package/dist/gdc-common-utils-ts/src/constants/device.d.ts +16 -0
- package/dist/gdc-common-utils-ts/src/constants/device.js +15 -0
- package/dist/gdc-common-utils-ts/src/constants/did-services.d.ts +42 -0
- package/dist/gdc-common-utils-ts/src/constants/did-services.js +40 -0
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.js +69 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.d.ts +12 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.js +12 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.d.ts +52 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.js +33 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.js +10 -0
- package/dist/gdc-common-utils-ts/src/constants/healthcare.d.ts +496 -0
- package/dist/gdc-common-utils-ts/src/constants/healthcare.js +274 -0
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.d.ts +44 -0
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.js +208 -0
- package/dist/gdc-common-utils-ts/src/constants/index.d.ts +21 -0
- package/dist/gdc-common-utils-ts/src/constants/index.js +21 -0
- package/dist/gdc-common-utils-ts/src/constants/network.d.ts +25 -0
- package/dist/gdc-common-utils-ts/src/constants/network.js +17 -0
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.d.ts +175 -0
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.js +261 -0
- package/dist/gdc-common-utils-ts/src/constants/sectors.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/constants/sectors.js +24 -0
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.d.ts +82 -0
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.js +105 -0
- package/dist/gdc-common-utils-ts/src/constants/smart.d.ts +12 -0
- package/dist/gdc-common-utils-ts/src/constants/smart.js +12 -0
- package/dist/gdc-common-utils-ts/src/constants/urn.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/constants/urn.js +11 -0
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.d.ts +34 -0
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.js +42 -0
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.d.ts +75 -0
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.js +33 -0
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.js +16 -0
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.d.ts +22 -0
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.js +81 -0
- package/dist/gdc-common-utils-ts/src/examples/consent-access.d.ts +30 -0
- package/dist/gdc-common-utils-ts/src/examples/consent-access.js +121 -0
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.js +16 -0
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.d.ts +98 -0
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.js +141 -0
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.js +24 -0
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.d.ts +64 -0
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.js +77 -0
- package/dist/gdc-common-utils-ts/src/examples/index.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/examples/index.js +14 -0
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.d.ts +100 -0
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.js +71 -0
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.d.ts +505 -0
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.js +291 -0
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.d.ts +163 -0
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.js +93 -0
- package/dist/gdc-common-utils-ts/src/examples/professional.d.ts +228 -0
- package/dist/gdc-common-utils-ts/src/examples/professional.js +324 -0
- package/dist/gdc-common-utils-ts/src/examples/related-person.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/examples/related-person.js +13 -0
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.js +96 -0
- package/dist/gdc-common-utils-ts/src/examples/shared.d.ts +220 -0
- package/dist/gdc-common-utils-ts/src/examples/shared.js +191 -0
- package/dist/gdc-common-utils-ts/src/hmac.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/hmac.js +24 -0
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.d.ts +6 -0
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.js +15 -0
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.d.ts +4 -0
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.js +13 -0
- package/dist/gdc-common-utils-ts/src/index.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/index.js +10 -0
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.d.ts +139 -0
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.js +8 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.js +3 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.d.ts +154 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/actor-session.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/actor-session.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/aes.d.ts +85 -0
- package/dist/gdc-common-utils-ts/src/models/aes.js +10 -0
- package/dist/gdc-common-utils-ts/src/models/auth.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/auth.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/bundle.d.ts +153 -0
- package/dist/gdc-common-utils-ts/src/models/bundle.js +25 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.d.ts +150 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.js +104 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.js +32 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.d.ts +126 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.js +67 -0
- package/dist/gdc-common-utils-ts/src/models/comm.d.ts +56 -0
- package/dist/gdc-common-utils-ts/src/models/comm.js +4 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-job.d.ts +78 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-job.js +20 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-message.d.ts +97 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-message.js +4 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.d.ts +134 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/consent-access.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/models/consent-access.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/consent-rule.d.ts +122 -0
- package/dist/gdc-common-utils-ts/src/models/consent-rule.js +22 -0
- package/dist/gdc-common-utils-ts/src/models/crypto.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/crypto.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.d.ts +68 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.js +9 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/device-license.d.ts +134 -0
- package/dist/gdc-common-utils-ts/src/models/device-license.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/did.d.ts +108 -0
- package/dist/gdc-common-utils-ts/src/models/did.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.d.ts +101 -0
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.d.ts +104 -0
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/index.d.ts +42 -0
- package/dist/gdc-common-utils-ts/src/models/index.js +42 -0
- package/dist/gdc-common-utils-ts/src/models/indexing.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/models/indexing.js +18 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.js +36 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.js +55 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.js +25 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.js +23 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.js +89 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.d.ts +341 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.js +204 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.d.ts +5 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.js +7 -0
- package/dist/gdc-common-utils-ts/src/models/issue.d.ts +57 -0
- package/dist/gdc-common-utils-ts/src/models/issue.js +75 -0
- package/dist/gdc-common-utils-ts/src/models/jsonapi.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/models/jsonapi.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwe.d.ts +120 -0
- package/dist/gdc-common-utils-ts/src/models/jwe.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwk.d.ts +39 -0
- package/dist/gdc-common-utils-ts/src/models/jwk.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jws.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/jws.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwt.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/jwt.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.js +58 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.d.ts +33 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.d.ts +50 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.d.ts +67 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.d.ts +51 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.js +5 -0
- package/dist/gdc-common-utils-ts/src/models/openid-device.d.ts +119 -0
- package/dist/gdc-common-utils-ts/src/models/openid-device.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.d.ts +26 -0
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/params.d.ts +133 -0
- package/dist/gdc-common-utils-ts/src/models/params.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/relationship-access.d.ts +160 -0
- package/dist/gdc-common-utils-ts/src/models/relationship-access.js +21 -0
- package/dist/gdc-common-utils-ts/src/models/resource-document.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/resource-document.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/response.d.ts +1 -0
- package/dist/gdc-common-utils-ts/src/models/response.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/urlPath.d.ts +58 -0
- package/dist/gdc-common-utils-ts/src/models/urlPath.js +76 -0
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.d.ts +45 -0
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.js +8 -0
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.js +25 -0
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.d.ts +30 -0
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.js +81 -0
- package/dist/gdc-common-utils-ts/src/storage/index.d.ts +3 -0
- package/dist/gdc-common-utils-ts/src/storage/index.js +4 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.d.ts +86 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.js +218 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-request.d.ts +81 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-request.js +99 -0
- package/dist/gdc-common-utils-ts/src/utils/actor.d.ts +18 -0
- package/dist/gdc-common-utils-ts/src/utils/actor.js +36 -0
- package/dist/gdc-common-utils-ts/src/utils/base-convert.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/base-convert.js +104 -0
- package/dist/gdc-common-utils-ts/src/utils/baseN.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/utils/baseN.js +174 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.js +177 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle.js +39 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.d.ts +64 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.js +279 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.js +291 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.d.ts +110 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.js +326 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.d.ts +41 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.js +170 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.d.ts +41 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.js +215 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.d.ts +152 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.js +121 -0
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.js +213 -0
- package/dist/gdc-common-utils-ts/src/utils/consent.d.ts +218 -0
- package/dist/gdc-common-utils-ts/src/utils/consent.js +679 -0
- package/dist/gdc-common-utils-ts/src/utils/content.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/content.js +60 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.d.ts +130 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.js +307 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.d.ts +235 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.js +482 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.d.ts +66 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.js +109 -0
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.js +173 -0
- package/dist/gdc-common-utils-ts/src/utils/did.d.ts +124 -0
- package/dist/gdc-common-utils-ts/src/utils/did.js +204 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.js +15 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.d.ts +48 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.js +81 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm.js +78 -0
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.js +64 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.js +152 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.d.ts +61 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.js +91 -0
- package/dist/gdc-common-utils-ts/src/utils/format-converter.d.ts +21 -0
- package/dist/gdc-common-utils-ts/src/utils/format-converter.js +109 -0
- package/dist/gdc-common-utils-ts/src/utils/index.d.ts +39 -0
- package/dist/gdc-common-utils-ts/src/utils/index.js +39 -0
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.js +191 -0
- package/dist/gdc-common-utils-ts/src/utils/jwt.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/utils/jwt.js +154 -0
- package/dist/gdc-common-utils-ts/src/utils/manager-error.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/utils/manager-error.js +21 -0
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.d.ts +56 -0
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.js +127 -0
- package/dist/gdc-common-utils-ts/src/utils/multibase58.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/utils/multibase58.js +40 -0
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.d.ts +8 -0
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.js +23 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.d.ts +1 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.js +35 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize.d.ts +16 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize.js +40 -0
- package/dist/gdc-common-utils-ts/src/utils/object-convert.d.ts +20 -0
- package/dist/gdc-common-utils-ts/src/utils/object-convert.js +51 -0
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.js +29 -0
- package/dist/gdc-common-utils-ts/src/utils/string-convert.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/utils/string-convert.js +62 -0
- package/dist/gdc-common-utils-ts/src/utils/string-utils.d.ts +25 -0
- package/dist/gdc-common-utils-ts/src/utils/string-utils.js +66 -0
- package/dist/gdc-common-utils-ts/src/utils/url.d.ts +26 -0
- package/dist/gdc-common-utils-ts/src/utils/url.js +44 -0
- package/dist/gdc-common-utils-ts/src/utils/vp-token.d.ts +139 -0
- package/dist/gdc-common-utils-ts/src/utils/vp-token.js +256 -0
- package/dist/gdc-sdk-core-ts/src/actor-model.d.ts +56 -0
- package/dist/gdc-sdk-core-ts/src/actor-model.js +112 -0
- package/dist/gdc-sdk-core-ts/src/app-identity.d.ts +80 -0
- package/dist/gdc-sdk-core-ts/src/app-identity.js +147 -0
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.d.ts +165 -0
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.js +191 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.d.ts +112 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.js +185 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.d.ts +32 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.js +215 -0
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.d.ts +55 -0
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.js +190 -0
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.d.ts +55 -0
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.js +194 -0
- package/dist/gdc-sdk-core-ts/src/communication-draft.d.ts +104 -0
- package/dist/gdc-sdk-core-ts/src/communication-draft.js +143 -0
- package/dist/gdc-sdk-core-ts/src/communication-outbox.d.ts +49 -0
- package/dist/gdc-sdk-core-ts/src/communication-outbox.js +62 -0
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.d.ts +180 -0
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.js +455 -0
- package/dist/gdc-sdk-core-ts/src/consent-access.d.ts +73 -0
- package/dist/gdc-sdk-core-ts/src/consent-access.js +109 -0
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.d.ts +5 -0
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.js +6 -0
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.d.ts +82 -0
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.js +135 -0
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.d.ts +33 -0
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.js +56 -0
- package/dist/gdc-sdk-core-ts/src/discovery-facade.d.ts +84 -0
- package/dist/gdc-sdk-core-ts/src/discovery-facade.js +24 -0
- package/dist/gdc-sdk-core-ts/src/identity-model.d.ts +46 -0
- package/dist/gdc-sdk-core-ts/src/identity-model.js +2 -0
- package/dist/gdc-sdk-core-ts/src/identity-store.d.ts +83 -0
- package/dist/gdc-sdk-core-ts/src/identity-store.js +51 -0
- package/dist/gdc-sdk-core-ts/src/index.d.ts +23 -0
- package/dist/gdc-sdk-core-ts/src/index.js +24 -0
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.d.ts +5 -0
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.js +6 -0
- package/dist/gdc-sdk-core-ts/src/polling-model.d.ts +35 -0
- package/dist/gdc-sdk-core-ts/src/polling-model.js +24 -0
- package/dist/gdc-sdk-core-ts/src/relationship-access.d.ts +40 -0
- package/dist/gdc-sdk-core-ts/src/relationship-access.js +150 -0
- package/dist/gdc-sdk-core-ts/src/session-model.d.ts +134 -0
- package/dist/gdc-sdk-core-ts/src/session-model.js +2 -0
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.d.ts +19 -0
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.js +19 -0
- package/dist/gdc-sdk-core-ts/src/vital-signs.d.ts +38 -0
- package/dist/gdc-sdk-core-ts/src/vital-signs.js +155 -0
- package/dist/gdc-sdk-front-ts/src/ClientSDK.d.ts +99 -0
- package/dist/gdc-sdk-front-ts/src/ClientSDK.js +177 -0
- package/dist/gdc-sdk-front-ts/src/ProfileManager.d.ts +140 -0
- package/dist/gdc-sdk-front-ts/src/ProfileManager.js +76 -0
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.js +26 -0
- package/dist/gdc-sdk-front-ts/src/VerifierService.d.ts +6 -0
- package/dist/gdc-sdk-front-ts/src/VerifierService.js +10 -0
- package/dist/gdc-sdk-front-ts/src/actor-session.d.ts +2 -0
- package/dist/gdc-sdk-front-ts/src/actor-session.js +2 -0
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.d.ts +8 -0
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.js +28 -0
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.d.ts +4 -0
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.js +5 -0
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.d.ts +54 -0
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.js +85 -0
- package/dist/gdc-sdk-front-ts/src/discovery/index.d.ts +3 -0
- package/dist/gdc-sdk-front-ts/src/discovery/index.js +4 -0
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.d.ts +29 -0
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.js +60 -0
- package/dist/gdc-sdk-front-ts/src/discovery/types.d.ts +83 -0
- package/dist/gdc-sdk-front-ts/src/discovery/types.js +2 -0
- package/dist/gdc-sdk-front-ts/src/index.d.ts +15 -0
- package/dist/gdc-sdk-front-ts/src/index.js +16 -0
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.d.ts +4 -0
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.js +5 -0
- package/dist/gdc-sdk-front-ts/src/roleRegistry.d.ts +19 -0
- package/dist/gdc-sdk-front-ts/src/roleRegistry.js +2 -0
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.d.ts +22 -0
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.js +7 -0
- package/dist/gdc-sdk-front-ts/src/services.d.ts +167 -0
- package/dist/gdc-sdk-front-ts/src/services.js +78 -0
- package/dist/gdc-sdk-front-ts/src/session-descriptor.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/session-descriptor.js +8 -0
- package/dist/gdc-sdk-front-ts/src/types.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/types.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/medication-claim-helpers.d.ts +4 -0
- package/dist/medication-claim-helpers.js +5 -0
- package/dist/orchestration/client-port.d.ts +161 -0
- package/dist/orchestration/client-port.js +26 -0
- package/dist/orchestration/facades.d.ts +65 -0
- package/dist/orchestration/facades.js +142 -0
- package/dist/orchestration/host-onboarding-sdk.d.ts +9 -0
- package/dist/orchestration/host-onboarding-sdk.js +16 -0
- package/dist/orchestration/individual-controller-sdk.d.ts +18 -0
- package/dist/orchestration/individual-controller-sdk.js +43 -0
- package/dist/orchestration/individual-member-sdk.d.ts +8 -0
- package/dist/orchestration/individual-member-sdk.js +13 -0
- package/dist/orchestration/organization-controller-sdk.d.ts +11 -0
- package/dist/orchestration/organization-controller-sdk.js +22 -0
- package/dist/orchestration/organization-employee-sdk.d.ts +8 -0
- package/dist/orchestration/organization-employee-sdk.js +13 -0
- package/dist/orchestration/personal-sdk.d.ts +13 -0
- package/dist/orchestration/personal-sdk.js +28 -0
- package/dist/orchestration/professional-sdk.d.ts +10 -0
- package/dist/orchestration/professional-sdk.js +19 -0
- package/dist/services.d.ts +58 -10
- package/dist/services.js +88 -5
- package/package.json +3 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
import { buildAppHeaders, resolveAppInfo } from 'gdc-sdk-core-ts';
|
|
3
|
+
import { filterPublishedProviderCardsByCapability, mapHostingOperatorMatchToCard, mapPublishedProviderMatchToCard, } from './mappers.js';
|
|
4
|
+
function defaultFetch(input, init) {
|
|
5
|
+
return fetch(input, init);
|
|
6
|
+
}
|
|
7
|
+
function normalizeResponseDto(body) {
|
|
8
|
+
if (!body || typeof body !== 'object') {
|
|
9
|
+
throw new Error('Invalid dataspace discovery response payload.');
|
|
10
|
+
}
|
|
11
|
+
const candidate = body;
|
|
12
|
+
return {
|
|
13
|
+
providers: Array.isArray(candidate.providers) ? candidate.providers : [],
|
|
14
|
+
hostingOperators: Array.isArray(candidate.hostingOperators) ? candidate.hostingOperators : undefined,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function dedupeHostingOperatorCards(cards) {
|
|
18
|
+
const seen = new Set();
|
|
19
|
+
const deduped = [];
|
|
20
|
+
for (const card of cards) {
|
|
21
|
+
const did = String(card.did || '').trim();
|
|
22
|
+
if (!did || seen.has(did))
|
|
23
|
+
continue;
|
|
24
|
+
seen.add(did);
|
|
25
|
+
deduped.push(card);
|
|
26
|
+
}
|
|
27
|
+
return deduped;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Concrete frontend discovery client that calls a backend/BFF endpoint and
|
|
31
|
+
* maps normalized provider/operator DTOs into UI cards.
|
|
32
|
+
*
|
|
33
|
+
* Default integration model:
|
|
34
|
+
* - browser/native app calls a portal or app backend
|
|
35
|
+
* - backend resolves dataspace discovery and returns normalized DTO matches
|
|
36
|
+
*
|
|
37
|
+
* Optional direct-public-catalog mode can be layered later behind a separate
|
|
38
|
+
* adapter, but must not replace the BFF-first default contract.
|
|
39
|
+
*/
|
|
40
|
+
export class HttpDataspaceDiscoveryClient {
|
|
41
|
+
constructor(options = {}) {
|
|
42
|
+
this.endpointUrl = String(options.endpointUrl || '/api/dataspace-discovery/providers').trim();
|
|
43
|
+
this.fetcher = options.fetcher || defaultFetch;
|
|
44
|
+
const appHeaders = options.appInfo
|
|
45
|
+
? buildAppHeaders(resolveAppInfo(options.appInfo))
|
|
46
|
+
: {};
|
|
47
|
+
this.requestHeaders = {
|
|
48
|
+
Accept: 'application/json',
|
|
49
|
+
'Content-Type': 'application/json',
|
|
50
|
+
...appHeaders,
|
|
51
|
+
...(options.requestHeaders || {}),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
async listPublishedProviders(input) {
|
|
55
|
+
const response = await this.fetcher(this.endpointUrl, {
|
|
56
|
+
method: 'POST',
|
|
57
|
+
headers: this.requestHeaders,
|
|
58
|
+
body: JSON.stringify({
|
|
59
|
+
sector: input.sector,
|
|
60
|
+
providerCapability: input.providerCapability,
|
|
61
|
+
jurisdiction: input.jurisdiction,
|
|
62
|
+
coverageScope: input.coverageScope,
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
if (!response.ok) {
|
|
66
|
+
throw new Error(`Failed to list dataspace discovery providers (${response.status}).`);
|
|
67
|
+
}
|
|
68
|
+
const body = normalizeResponseDto(await response.json());
|
|
69
|
+
const providers = filterPublishedProviderCardsByCapability(body.providers.map((match) => mapPublishedProviderMatchToCard(match)), input.providerCapability);
|
|
70
|
+
const hostingOperators = body.hostingOperators
|
|
71
|
+
? dedupeHostingOperatorCards(body.hostingOperators.map((match) => mapHostingOperatorMatchToCard(match)))
|
|
72
|
+
: dedupeHostingOperatorCards(body.providers
|
|
73
|
+
.filter((match) => match.hostingOperator)
|
|
74
|
+
.map((match) => mapHostingOperatorMatchToCard({
|
|
75
|
+
operatorDid: match.hostingOperatorDid || match.hostingOperator?.subjectId || '',
|
|
76
|
+
record: match.hostingOperator,
|
|
77
|
+
title: match.hostingOperatorTitle,
|
|
78
|
+
catalogUrl: match.record.catalogUrl,
|
|
79
|
+
})));
|
|
80
|
+
return {
|
|
81
|
+
providers,
|
|
82
|
+
hostingOperators: hostingOperators.length ? hostingOperators : undefined,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HostingOperatorSemanticRecord, PublishedProviderCatalogRecord } from 'gdc-common-utils-ts';
|
|
2
|
+
import type { HostingOperatorCard, HostingOperatorMatchDto, PublishedProviderCard, PublishedProviderMatchDto } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Maps a normalized hosting-operator semantic record to a compact UI card.
|
|
5
|
+
*/
|
|
6
|
+
export declare function mapHostingOperatorRecordToCard(record: HostingOperatorSemanticRecord, input?: {
|
|
7
|
+
catalogUrl?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
}): HostingOperatorCard;
|
|
10
|
+
/**
|
|
11
|
+
* Maps a published-provider catalog entry to a compact UI card.
|
|
12
|
+
*/
|
|
13
|
+
export declare function mapPublishedProviderRecordToCard(record: PublishedProviderCatalogRecord, input?: {
|
|
14
|
+
title?: string;
|
|
15
|
+
}): PublishedProviderCard;
|
|
16
|
+
/**
|
|
17
|
+
* Maps a normalized backend/BFF hosting-operator match DTO to a compact UI
|
|
18
|
+
* card.
|
|
19
|
+
*/
|
|
20
|
+
export declare function mapHostingOperatorMatchToCard(match: HostingOperatorMatchDto): HostingOperatorCard;
|
|
21
|
+
/**
|
|
22
|
+
* Maps a normalized backend/BFF published-provider match DTO to a compact UI
|
|
23
|
+
* card.
|
|
24
|
+
*/
|
|
25
|
+
export declare function mapPublishedProviderMatchToCard(match: PublishedProviderMatchDto): PublishedProviderCard;
|
|
26
|
+
/**
|
|
27
|
+
* Filters provider cards by the requested capability at the presentation layer.
|
|
28
|
+
*/
|
|
29
|
+
export declare function filterPublishedProviderCardsByCapability(cards: readonly PublishedProviderCard[], capability: string): PublishedProviderCard[];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
function titleFromDid(did) {
|
|
3
|
+
const normalized = String(did || '').trim();
|
|
4
|
+
if (!normalized)
|
|
5
|
+
return 'Unknown';
|
|
6
|
+
const suffix = normalized.split(':').pop() || normalized;
|
|
7
|
+
return suffix.replace(/[-_]+/g, ' ');
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Maps a normalized hosting-operator semantic record to a compact UI card.
|
|
11
|
+
*/
|
|
12
|
+
export function mapHostingOperatorRecordToCard(record, input = {}) {
|
|
13
|
+
return {
|
|
14
|
+
did: record.subjectId || '',
|
|
15
|
+
title: input.title || titleFromDid(record.subjectId || ''),
|
|
16
|
+
sectors: record.categories,
|
|
17
|
+
coverageLabel: record.areaServed.join(', ') || record.coverageScope,
|
|
18
|
+
catalogUrl: input.catalogUrl,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Maps a published-provider catalog entry to a compact UI card.
|
|
23
|
+
*/
|
|
24
|
+
export function mapPublishedProviderRecordToCard(record, input = {}) {
|
|
25
|
+
return {
|
|
26
|
+
did: record.providerDid,
|
|
27
|
+
title: input.title || titleFromDid(record.providerDid),
|
|
28
|
+
sector: record.category,
|
|
29
|
+
capability: record.serviceType,
|
|
30
|
+
coverageLabel: record.areaServed,
|
|
31
|
+
endpointUrl: record.endpointUrl,
|
|
32
|
+
catalogUrl: record.catalogUrl,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Maps a normalized backend/BFF hosting-operator match DTO to a compact UI
|
|
37
|
+
* card.
|
|
38
|
+
*/
|
|
39
|
+
export function mapHostingOperatorMatchToCard(match) {
|
|
40
|
+
return mapHostingOperatorRecordToCard(match.record, {
|
|
41
|
+
catalogUrl: match.catalogUrl,
|
|
42
|
+
title: match.title,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Maps a normalized backend/BFF published-provider match DTO to a compact UI
|
|
47
|
+
* card.
|
|
48
|
+
*/
|
|
49
|
+
export function mapPublishedProviderMatchToCard(match) {
|
|
50
|
+
return mapPublishedProviderRecordToCard(match.record, {
|
|
51
|
+
title: match.title,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Filters provider cards by the requested capability at the presentation layer.
|
|
56
|
+
*/
|
|
57
|
+
export function filterPublishedProviderCardsByCapability(cards, capability) {
|
|
58
|
+
const normalized = String(capability || '').trim();
|
|
59
|
+
return cards.filter((card) => card.capability === normalized);
|
|
60
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { DataspaceDiscoveryFilter } from 'gdc-common-utils-ts';
|
|
2
|
+
import type { HostingOperatorSemanticRecord, PublishedProviderCatalogRecord, TenantServiceSemanticRecord } from 'gdc-common-utils-ts';
|
|
3
|
+
/**
|
|
4
|
+
* Input used by frontend discovery clients to request published providers from
|
|
5
|
+
* a backend/BFF or, optionally, a public-catalog adapter.
|
|
6
|
+
*
|
|
7
|
+
* Default integration:
|
|
8
|
+
* - browser/native app calls its backend
|
|
9
|
+
* - backend resolves host DSP discovery and returns normalized DTOs
|
|
10
|
+
*/
|
|
11
|
+
export type ListPublishedProvidersInput = Omit<DataspaceDiscoveryFilter, 'capability' | 'requiredCapabilities'> & Readonly<{
|
|
12
|
+
providerCapability: string;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Normalized hosting-operator match DTO returned by a backend/BFF discovery
|
|
16
|
+
* endpoint.
|
|
17
|
+
*
|
|
18
|
+
* `catalogUrl` is optional because the frontend should not need to know
|
|
19
|
+
* whether the backend started from `/.well-known/dspace-version` and derived
|
|
20
|
+
* the DSP artifact or received a pre-normalized DTO from another layer.
|
|
21
|
+
*/
|
|
22
|
+
export type HostingOperatorMatchDto = Readonly<{
|
|
23
|
+
operatorDid: string;
|
|
24
|
+
record: HostingOperatorSemanticRecord;
|
|
25
|
+
matchedCapabilities?: readonly string[];
|
|
26
|
+
catalogUrl?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Normalized published-provider match DTO returned by a backend/BFF discovery
|
|
31
|
+
* endpoint.
|
|
32
|
+
*
|
|
33
|
+
* `record.discoveryUrl` is the participant-scoped `/.well-known/dspace-version`
|
|
34
|
+
* entrypoint when the backend chooses to expose it.
|
|
35
|
+
*
|
|
36
|
+
* `record.catalogUrl` is the derived `/dsp/catalog/dcat.json` artifact.
|
|
37
|
+
*/
|
|
38
|
+
export type PublishedProviderMatchDto = Readonly<{
|
|
39
|
+
providerDid: string;
|
|
40
|
+
record: PublishedProviderCatalogRecord;
|
|
41
|
+
hostingOperator?: HostingOperatorSemanticRecord;
|
|
42
|
+
hostingOperatorDid?: string;
|
|
43
|
+
tenantSemanticRecord?: TenantServiceSemanticRecord;
|
|
44
|
+
title?: string;
|
|
45
|
+
hostingOperatorTitle?: string;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Compact UI-oriented hosting-operator summary.
|
|
49
|
+
*/
|
|
50
|
+
export type HostingOperatorCard = Readonly<{
|
|
51
|
+
did: string;
|
|
52
|
+
title: string;
|
|
53
|
+
sectors: string[];
|
|
54
|
+
coverageLabel?: string;
|
|
55
|
+
catalogUrl?: string;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Compact UI-oriented provider summary.
|
|
59
|
+
*/
|
|
60
|
+
export type PublishedProviderCard = Readonly<{
|
|
61
|
+
did: string;
|
|
62
|
+
title: string;
|
|
63
|
+
sector: string;
|
|
64
|
+
capability: string;
|
|
65
|
+
coverageLabel?: string;
|
|
66
|
+
endpointUrl?: string;
|
|
67
|
+
catalogUrl?: string;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Frontend-facing result shape for published provider discovery.
|
|
71
|
+
*/
|
|
72
|
+
export type ListPublishedProvidersResult = Readonly<{
|
|
73
|
+
providers: PublishedProviderCard[];
|
|
74
|
+
hostingOperators?: HostingOperatorCard[];
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Backend/BFF discovery payload consumed by the frontend HTTP discovery
|
|
78
|
+
* client before mapping into UI cards.
|
|
79
|
+
*/
|
|
80
|
+
export type ListPublishedProvidersResponseDto = Readonly<{
|
|
81
|
+
providers: readonly PublishedProviderMatchDto[];
|
|
82
|
+
hostingOperators?: readonly HostingOperatorMatchDto[];
|
|
83
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from 'gdc-sdk-core-ts';
|
|
2
|
+
export * from './runtime-contracts.js';
|
|
3
|
+
export * from './consent-claim-helpers.js';
|
|
4
|
+
export * from './medication-claim-helpers.js';
|
|
5
|
+
export * from './actor-session.js';
|
|
6
|
+
export * from './session-descriptor.js';
|
|
7
|
+
export * from './types.js';
|
|
8
|
+
export * from './services.js';
|
|
9
|
+
export * from './roleRegistry.js';
|
|
10
|
+
export * from './capabilityMapper.js';
|
|
11
|
+
export * from './VerifierService.js';
|
|
12
|
+
export * from './ProfileManager.js';
|
|
13
|
+
export * from './ProfileRegistry.js';
|
|
14
|
+
export * from './ClientSDK.js';
|
|
15
|
+
export * from './discovery/index.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
export * from 'gdc-sdk-core-ts';
|
|
3
|
+
export * from './runtime-contracts.js';
|
|
4
|
+
export * from './consent-claim-helpers.js';
|
|
5
|
+
export * from './medication-claim-helpers.js';
|
|
6
|
+
export * from './actor-session.js';
|
|
7
|
+
export * from './session-descriptor.js';
|
|
8
|
+
export * from './types.js';
|
|
9
|
+
export * from './services.js';
|
|
10
|
+
export * from './roleRegistry.js';
|
|
11
|
+
export * from './capabilityMapper.js';
|
|
12
|
+
export * from './VerifierService.js';
|
|
13
|
+
export * from './ProfileManager.js';
|
|
14
|
+
export * from './ProfileRegistry.js';
|
|
15
|
+
export * from './ClientSDK.js';
|
|
16
|
+
export * from './discovery/index.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontend runtime re-export of canonical medication claim helpers.
|
|
3
|
+
*/
|
|
4
|
+
export { addMedicationCategoryList, addMedicationClaimList, addMedicationCodeList, addMedicationPartOfList, addMedicationSourceList, addMedicationSubjectList, getMedicationCategoryList, getMedicationClaimList, getMedicationCodeList, getMedicationPartOfList, getMedicationSourceList, getMedicationSubjectList, removeMedicationCategoryList, removeMedicationClaimList, removeMedicationCodeList, removeMedicationPartOfList, removeMedicationSourceList, removeMedicationSubjectList, setMedicationCategoryList, setMedicationClaimList, setMedicationCodeList, setMedicationPartOfList, setMedicationSourceList, setMedicationSubjectList, type MedicationInteroperableClaims, } from 'gdc-sdk-core-ts';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Frontend runtime re-export of canonical medication claim helpers.
|
|
4
|
+
*/
|
|
5
|
+
export { addMedicationCategoryList, addMedicationClaimList, addMedicationCodeList, addMedicationPartOfList, addMedicationSourceList, addMedicationSubjectList, getMedicationCategoryList, getMedicationClaimList, getMedicationCodeList, getMedicationPartOfList, getMedicationSourceList, getMedicationSubjectList, removeMedicationCategoryList, removeMedicationClaimList, removeMedicationCodeList, removeMedicationPartOfList, removeMedicationSourceList, removeMedicationSubjectList, setMedicationCategoryList, setMedicationClaimList, setMedicationCodeList, setMedicationPartOfList, setMedicationSourceList, setMedicationSubjectList, } from 'gdc-sdk-core-ts';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CommonAuthService, FamilyAdminService, IndividualService, OrgAdminService, ParamedicService, PhysicianService } from './services.js';
|
|
2
|
+
export interface OrgAdminServices {
|
|
3
|
+
admin?: OrgAdminService;
|
|
4
|
+
it?: unknown;
|
|
5
|
+
}
|
|
6
|
+
export interface FamilyAdminServices {
|
|
7
|
+
admin?: FamilyAdminService;
|
|
8
|
+
it?: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface IndividualServices {
|
|
11
|
+
service?: IndividualService;
|
|
12
|
+
}
|
|
13
|
+
export interface ProfessionalServices {
|
|
14
|
+
physician?: PhysicianService;
|
|
15
|
+
paramedic?: ParamedicService;
|
|
16
|
+
}
|
|
17
|
+
export interface CommonServices {
|
|
18
|
+
auth: CommonAuthService;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DataPersistencePolicy } from 'gdc-sdk-core-ts';
|
|
2
|
+
export type LegacyFrontSourcePackage = never;
|
|
3
|
+
export type FrontRuntimeKind = 'expo' | 'web' | 'react-native';
|
|
4
|
+
export type FrontFetchLike = typeof fetch;
|
|
5
|
+
export type FrontRuntimeConfig = {
|
|
6
|
+
runtimeKind: FrontRuntimeKind;
|
|
7
|
+
fetcher: FrontFetchLike;
|
|
8
|
+
persistencePolicy?: DataPersistencePolicy;
|
|
9
|
+
cryptoProvider?: unknown;
|
|
10
|
+
networkProvider?: unknown;
|
|
11
|
+
secureStorageProvider?: unknown;
|
|
12
|
+
vaultFactory?: unknown;
|
|
13
|
+
outboxRepositoryFactory?: unknown;
|
|
14
|
+
oidcProvider?: unknown;
|
|
15
|
+
};
|
|
16
|
+
export type FrontPackageStatus = {
|
|
17
|
+
packageName: 'gdc-sdk-front-ts';
|
|
18
|
+
dependsOnCorePackage: 'gdc-sdk-core-ts';
|
|
19
|
+
legacySourcePackages: LegacyFrontSourcePackage[];
|
|
20
|
+
status: 'bootstrap';
|
|
21
|
+
};
|
|
22
|
+
export declare const GDC_SDK_FRONT_STATUS: FrontPackageStatus;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { DeviceAppType, DeviceUserClass } from 'gdc-common-utils-ts/constants';
|
|
2
|
+
export declare class CommonAuthService {
|
|
3
|
+
activateDevice(_licenseCode: string, _providerDid: string, _idToken: string): Promise<{
|
|
4
|
+
thid: string;
|
|
5
|
+
}>;
|
|
6
|
+
}
|
|
7
|
+
export declare class OrgAdminService {
|
|
8
|
+
createOrganizationEmployee(_providerDid: string, _idToken: string, _params: {
|
|
9
|
+
email: string;
|
|
10
|
+
role: string;
|
|
11
|
+
userClass?: DeviceUserClass;
|
|
12
|
+
type?: DeviceAppType;
|
|
13
|
+
}): Promise<{
|
|
14
|
+
thid: string;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export declare class FamilyAdminService {
|
|
18
|
+
bootstrapSubjectOrganizationIndex(_params: {
|
|
19
|
+
registrationClaims: object;
|
|
20
|
+
providerDid: string;
|
|
21
|
+
idToken: string;
|
|
22
|
+
acceptedOfferId?: string;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
registrationThid: string;
|
|
25
|
+
confirmationThid?: string;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
export declare class IndividualService {
|
|
29
|
+
/**
|
|
30
|
+
* Imports a document/FHIR payload for subject indexing.
|
|
31
|
+
*
|
|
32
|
+
* Canonical example input lives in:
|
|
33
|
+
* `gdc-common-utils-ts/examples`
|
|
34
|
+
*/
|
|
35
|
+
importIpsOrFhirAndUpdateIndex(_compositionPayload: object, _providerDid: string, _requiredScope: string, _idToken: string, _format?: 'org.hl7.fhir.r4' | 'org.hl7.fhir.api'): Promise<{
|
|
36
|
+
thid: string;
|
|
37
|
+
}>;
|
|
38
|
+
grantProfessionalAccess(_params: {
|
|
39
|
+
subjectDid?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Compatibility/extension field.
|
|
42
|
+
*
|
|
43
|
+
* CORE canonical consent examples identify the subject with `subjectDid`.
|
|
44
|
+
* Phone-based consent targeting belongs to extension layers, not the base
|
|
45
|
+
* CORE GW contract.
|
|
46
|
+
*/
|
|
47
|
+
subjectPhone?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Compatibility/extension display hint.
|
|
50
|
+
*
|
|
51
|
+
* Keep this only for UX layers that still surface phone/notification flows.
|
|
52
|
+
* CORE canonical examples do not require it.
|
|
53
|
+
*/
|
|
54
|
+
subjectGivenName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Canonical flat consent actor identifier input.
|
|
57
|
+
*
|
|
58
|
+
* Preferred forms:
|
|
59
|
+
* - `did:web:...`
|
|
60
|
+
* - `user@example.org`
|
|
61
|
+
* - `tel:+34600111222`
|
|
62
|
+
* - `ES`
|
|
63
|
+
* - comma-separated list or string array of those values
|
|
64
|
+
*
|
|
65
|
+
* A legacy structured object is still accepted for compatibility.
|
|
66
|
+
*/
|
|
67
|
+
actorId?: string | string[] | {
|
|
68
|
+
didWeb?: string;
|
|
69
|
+
organizationUrl?: string;
|
|
70
|
+
organizationTaxId?: string;
|
|
71
|
+
email?: string;
|
|
72
|
+
phone?: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Use `actorId`.
|
|
76
|
+
*/
|
|
77
|
+
actor?: string | string[] | {
|
|
78
|
+
didWeb?: string;
|
|
79
|
+
organizationUrl?: string;
|
|
80
|
+
organizationTaxId?: string;
|
|
81
|
+
email?: string;
|
|
82
|
+
phone?: string;
|
|
83
|
+
};
|
|
84
|
+
actorRole: string;
|
|
85
|
+
purpose: string;
|
|
86
|
+
actions: string[];
|
|
87
|
+
providerDid: string;
|
|
88
|
+
requiredScope: string;
|
|
89
|
+
idToken: string;
|
|
90
|
+
consentIdentifier?: string;
|
|
91
|
+
consentDate?: string;
|
|
92
|
+
decision?: 'permit' | 'deny';
|
|
93
|
+
attachmentContentType?: string;
|
|
94
|
+
attachmentBase64?: string;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
thid: string;
|
|
97
|
+
subjectIdentifier: string;
|
|
98
|
+
actorIdentifier: string;
|
|
99
|
+
consentClaims: Record<string, unknown>;
|
|
100
|
+
claimsCid?: string;
|
|
101
|
+
}>;
|
|
102
|
+
generateDigitalTwinFromSubjectData(_compositionPayload: object, _providerDid: string, _requiredScope: string, _idToken: string, _format?: 'org.hl7.fhir.r4' | 'org.hl7.fhir.api'): Promise<{
|
|
103
|
+
thid: string;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Sends a lightweight communication request description.
|
|
107
|
+
*
|
|
108
|
+
* Canonical example input lives in:
|
|
109
|
+
* `gdc-common-utils-ts/examples`
|
|
110
|
+
*/
|
|
111
|
+
sendCommunication(_communication: {
|
|
112
|
+
thid?: string;
|
|
113
|
+
pthid?: string;
|
|
114
|
+
channelId?: string;
|
|
115
|
+
partOf?: string;
|
|
116
|
+
subject: string;
|
|
117
|
+
text?: string;
|
|
118
|
+
sender?: string;
|
|
119
|
+
recipient?: string | string[];
|
|
120
|
+
sent?: string;
|
|
121
|
+
category?: string | string[];
|
|
122
|
+
attachments?: Array<{
|
|
123
|
+
contentType?: string;
|
|
124
|
+
title?: string;
|
|
125
|
+
dataBase64?: string;
|
|
126
|
+
url?: string;
|
|
127
|
+
}>;
|
|
128
|
+
claims?: Record<string, unknown>;
|
|
129
|
+
}, _providerDid: string, _requiredScope: string, _idToken: string, _format?: 'org.hl7.fhir.r4' | 'org.hl7.fhir.api'): Promise<{
|
|
130
|
+
thid: string;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Builds a lightweight clinical bundle search request description.
|
|
134
|
+
*
|
|
135
|
+
* Canonical example input lives in:
|
|
136
|
+
* `gdc-common-utils-ts/examples`
|
|
137
|
+
*/
|
|
138
|
+
searchClinicalBundle(_query: {
|
|
139
|
+
subject: string;
|
|
140
|
+
section?: string | string[];
|
|
141
|
+
includedTypes?: string[];
|
|
142
|
+
date?: {
|
|
143
|
+
start?: string;
|
|
144
|
+
end?: string;
|
|
145
|
+
};
|
|
146
|
+
code?: string | string[];
|
|
147
|
+
category?: string | string[];
|
|
148
|
+
author?: string | string[];
|
|
149
|
+
thid?: string;
|
|
150
|
+
pthid?: string;
|
|
151
|
+
channelId?: string;
|
|
152
|
+
partOf?: string;
|
|
153
|
+
searchParams?: Record<string, string | number | boolean | undefined>;
|
|
154
|
+
}, _providerDid: string, _requiredScope: string, _idToken: string): Promise<{
|
|
155
|
+
thid: string;
|
|
156
|
+
}>;
|
|
157
|
+
getLatestIps(_subject: string, _providerDid: string, _requiredScope: string, _idToken: string, _date?: {
|
|
158
|
+
start?: string;
|
|
159
|
+
end?: string;
|
|
160
|
+
}): Promise<{
|
|
161
|
+
thid: string;
|
|
162
|
+
}>;
|
|
163
|
+
}
|
|
164
|
+
export declare class PhysicianService {
|
|
165
|
+
}
|
|
166
|
+
export declare class ParamedicService {
|
|
167
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
function requireNonEmptyText(value, fieldName) {
|
|
3
|
+
const normalized = String(value ?? '').trim();
|
|
4
|
+
if (!normalized) {
|
|
5
|
+
throw new Error(`${fieldName} is required.`);
|
|
6
|
+
}
|
|
7
|
+
return normalized;
|
|
8
|
+
}
|
|
9
|
+
export class CommonAuthService {
|
|
10
|
+
async activateDevice(_licenseCode, _providerDid, _idToken) {
|
|
11
|
+
return { thid: `thid-${Date.now()}` };
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class OrgAdminService {
|
|
15
|
+
async createOrganizationEmployee(_providerDid, _idToken, _params) {
|
|
16
|
+
return { thid: `thid-${Date.now()}` };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class FamilyAdminService {
|
|
20
|
+
async bootstrapSubjectOrganizationIndex(_params) {
|
|
21
|
+
return { registrationThid: `thid-${Date.now()}` };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class IndividualService {
|
|
25
|
+
/**
|
|
26
|
+
* Imports a document/FHIR payload for subject indexing.
|
|
27
|
+
*
|
|
28
|
+
* Canonical example input lives in:
|
|
29
|
+
* `gdc-common-utils-ts/examples`
|
|
30
|
+
*/
|
|
31
|
+
async importIpsOrFhirAndUpdateIndex(_compositionPayload, _providerDid, _requiredScope, _idToken, _format) {
|
|
32
|
+
return { thid: `thid-${Date.now()}` };
|
|
33
|
+
}
|
|
34
|
+
async grantProfessionalAccess(_params) {
|
|
35
|
+
return {
|
|
36
|
+
thid: `thid-${Date.now()}`,
|
|
37
|
+
subjectIdentifier: '',
|
|
38
|
+
actorIdentifier: '',
|
|
39
|
+
consentClaims: {},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async generateDigitalTwinFromSubjectData(_compositionPayload, _providerDid, _requiredScope, _idToken, _format) {
|
|
43
|
+
return { thid: `thid-${Date.now()}` };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Sends a lightweight communication request description.
|
|
47
|
+
*
|
|
48
|
+
* Canonical example input lives in:
|
|
49
|
+
* `gdc-common-utils-ts/examples`
|
|
50
|
+
*/
|
|
51
|
+
async sendCommunication(_communication, _providerDid, _requiredScope, _idToken, _format) {
|
|
52
|
+
requireNonEmptyText(_communication?.subject, 'sendCommunication subject');
|
|
53
|
+
requireNonEmptyText(_providerDid, 'sendCommunication providerDid');
|
|
54
|
+
requireNonEmptyText(_requiredScope, 'sendCommunication requiredScope');
|
|
55
|
+
requireNonEmptyText(_idToken, 'sendCommunication idToken');
|
|
56
|
+
return { thid: `thid-${Date.now()}` };
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Builds a lightweight clinical bundle search request description.
|
|
60
|
+
*
|
|
61
|
+
* Canonical example input lives in:
|
|
62
|
+
* `gdc-common-utils-ts/examples`
|
|
63
|
+
*/
|
|
64
|
+
async searchClinicalBundle(_query, _providerDid, _requiredScope, _idToken) {
|
|
65
|
+
requireNonEmptyText(_query?.subject, 'searchClinicalBundle subject');
|
|
66
|
+
requireNonEmptyText(_providerDid, 'searchClinicalBundle providerDid');
|
|
67
|
+
requireNonEmptyText(_requiredScope, 'searchClinicalBundle requiredScope');
|
|
68
|
+
requireNonEmptyText(_idToken, 'searchClinicalBundle idToken');
|
|
69
|
+
return { thid: `thid-${Date.now()}` };
|
|
70
|
+
}
|
|
71
|
+
async getLatestIps(_subject, _providerDid, _requiredScope, _idToken, _date) {
|
|
72
|
+
return { thid: `thid-${Date.now()}` };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export class PhysicianService {
|
|
76
|
+
}
|
|
77
|
+
export class ParamedicService {
|
|
78
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ActorFlags, ActorFacadeDescriptor, ActorSessionDescriptor } from 'gdc-sdk-core-ts';
|
|
2
|
+
export type FrontActorFlags = ActorFlags;
|
|
3
|
+
export type FrontSessionDescriptorInput = {
|
|
4
|
+
appType: 'Organization' | 'Family';
|
|
5
|
+
profileId: string;
|
|
6
|
+
profileDid?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
actorFlags: FrontActorFlags;
|
|
9
|
+
};
|
|
10
|
+
export declare function describeFrontActorSession(input: FrontSessionDescriptorInput): ActorSessionDescriptor;
|
|
11
|
+
export declare function describeFrontActorFacades(input: FrontSessionDescriptorInput): ActorFacadeDescriptor[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
import { buildActorSessionDescriptorFromActorFlags, expandActorSessionDescriptorToFacades, } from 'gdc-sdk-core-ts';
|
|
3
|
+
export function describeFrontActorSession(input) {
|
|
4
|
+
return buildActorSessionDescriptorFromActorFlags(input);
|
|
5
|
+
}
|
|
6
|
+
export function describeFrontActorFacades(input) {
|
|
7
|
+
return expandActorSessionDescriptorToFacades(describeFrontActorSession(input));
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IApiConfig, INetwork, BundleSearchQuery, CommunicationInput, DateRange } from 'gdc-sdk-core-ts';
|
|
2
|
+
export type { AppInfo, ResolvedAppInfo, InitializeSessionParams, Profile, ProfileRegistryEntry, VaultQueryCondition, VaultQuery, IVaultRepository, IApiConfig, INetwork, IVerifier } from 'gdc-sdk-core-ts';
|
|
3
|
+
export type SdkConfig = {
|
|
4
|
+
crypto?: unknown;
|
|
5
|
+
network: INetwork;
|
|
6
|
+
api: IApiConfig;
|
|
7
|
+
fetcher: typeof fetch;
|
|
8
|
+
};
|
|
9
|
+
export type FrontDateRange = DateRange;
|
|
10
|
+
export type FrontBundleSearchQuery = BundleSearchQuery;
|
|
11
|
+
export type FrontCommunicationInput = CommunicationInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|