gdc-common-utils-ts 2.9.13 → 2.9.15

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.
Files changed (251) hide show
  1. package/dist/AesManager.d.ts +1 -1
  2. package/dist/CryptographyService.d.ts +6 -6
  3. package/dist/claims/index.d.ts +24 -24
  4. package/dist/constants/cryptography.d.ts +1 -1
  5. package/dist/constants/healthcare.d.ts +3 -3
  6. package/dist/constants/identity-identifiers.d.ts +3 -1
  7. package/dist/constants/identity-identifiers.js +3 -1
  8. package/dist/constants/index.d.ts +40 -40
  9. package/dist/constants/individual-sections.d.ts +12 -12
  10. package/dist/constants/kyc-gender.d.ts +1 -1
  11. package/dist/constants/schemaorg.d.ts +1 -1
  12. package/dist/constants/vital-signs.d.ts +2 -2
  13. package/dist/convert/convert-allergy-intolerance.d.ts +1 -1
  14. package/dist/convert/convert-appointment-response.d.ts +1 -1
  15. package/dist/convert/convert-appointment.d.ts +1 -1
  16. package/dist/convert/convert-care-plan.d.ts +1 -1
  17. package/dist/convert/convert-clinical-impression.d.ts +1 -1
  18. package/dist/convert/convert-composition.d.ts +1 -1
  19. package/dist/convert/convert-condition.d.ts +1 -1
  20. package/dist/convert/convert-consent.d.ts +1 -1
  21. package/dist/convert/convert-coverage.d.ts +1 -1
  22. package/dist/convert/convert-device-use-statement.d.ts +1 -1
  23. package/dist/convert/convert-device.d.ts +1 -1
  24. package/dist/convert/convert-diagnostic-report.d.ts +1 -1
  25. package/dist/convert/convert-document-reference.d.ts +1 -1
  26. package/dist/convert/convert-encounter.d.ts +1 -1
  27. package/dist/convert/convert-flag.d.ts +1 -1
  28. package/dist/convert/convert-immunization.d.ts +1 -1
  29. package/dist/convert/convert-location.d.ts +1 -1
  30. package/dist/convert/convert-medication-statement.d.ts +1 -1
  31. package/dist/convert/convert-observation.d.ts +1 -1
  32. package/dist/convert/convert-organization.d.ts +1 -1
  33. package/dist/convert/convert-practitioner-role.d.ts +1 -1
  34. package/dist/convert/convert-procedure.d.ts +1 -1
  35. package/dist/convert/convert-related-person.d.ts +1 -1
  36. package/dist/convert/convert-shared.js +1 -1
  37. package/dist/convert/index.d.ts +25 -25
  38. package/dist/convert/schemaorg-to-gaia-x.d.ts +3 -3
  39. package/dist/examples/api-flow-examples.d.ts +8 -8
  40. package/dist/examples/communication-attached-bundle-session.d.ts +2 -2
  41. package/dist/examples/communication-bundle-document-request.d.ts +1 -1
  42. package/dist/examples/communication-didcomm-payload.d.ts +1 -1
  43. package/dist/examples/consent-access.d.ts +2 -2
  44. package/dist/examples/contract-examples.d.ts +9 -9
  45. package/dist/examples/dataspace-discovery.d.ts +1 -1
  46. package/dist/examples/didcomm-identity.d.ts +1 -1
  47. package/dist/examples/ica-verify-response.d.ts +1 -1
  48. package/dist/examples/index.d.ts +35 -35
  49. package/dist/examples/individual-controller.d.ts +1 -1
  50. package/dist/examples/inter-tenant-access-contract.d.ts +1 -1
  51. package/dist/examples/invoice.d.ts +2 -2
  52. package/dist/examples/ips-bundle.d.ts +2 -2
  53. package/dist/examples/legal-organization-verification-transaction.d.ts +1 -1
  54. package/dist/examples/lifecycle.d.ts +4 -4
  55. package/dist/examples/organization-did-binding.d.ts +1 -1
  56. package/dist/examples/organization-role-license.d.ts +3 -3
  57. package/dist/examples/related-person.d.ts +6 -6
  58. package/dist/examples/relationship-access.d.ts +1 -1
  59. package/dist/examples/shared.d.ts +4 -2
  60. package/dist/examples/shared.js +3 -1
  61. package/dist/examples/subject-identity-binding.d.ts +1 -1
  62. package/dist/examples/vital-signs.d.ts +2 -2
  63. package/dist/index.d.ts +13 -13
  64. package/dist/interfaces/ICryptography.d.ts +4 -4
  65. package/dist/interfaces/IProfileOutboxRepository.d.ts +1 -1
  66. package/dist/interfaces/IWallet.d.ts +2 -2
  67. package/dist/interfaces/IWalletQueue.d.ts +1 -1
  68. package/dist/interfaces/index.d.ts +8 -8
  69. package/dist/models/actor-session.d.ts +1 -1
  70. package/dist/models/bundle-editor-types.d.ts +22 -22
  71. package/dist/models/bundle.d.ts +1 -1
  72. package/dist/models/clinical-sections.d.ts +1 -1
  73. package/dist/models/comm.d.ts +1 -1
  74. package/dist/models/communication-attached-bundle-session.d.ts +2 -2
  75. package/dist/models/confidential-job.d.ts +3 -3
  76. package/dist/models/confidential-message.d.ts +3 -3
  77. package/dist/models/confidential-storage.d.ts +1 -1
  78. package/dist/models/crypto.d.ts +1 -1
  79. package/dist/models/dataspace-discovery-defaults.d.ts +2 -2
  80. package/dist/models/device-license.d.ts +1 -1
  81. package/dist/models/did.d.ts +5 -5
  82. package/dist/models/gaia-x.d.ts +2 -2
  83. package/dist/models/identity-bootstrap.d.ts +4 -4
  84. package/dist/models/index.d.ts +62 -62
  85. package/dist/models/indexing.d.ts +2 -2
  86. package/dist/models/individual-onboarding.d.ts +5 -5
  87. package/dist/models/interoperable-claims/allergy-intolerance-claims.d.ts +1 -1
  88. package/dist/models/interoperable-claims/care-plan-claims.d.ts +1 -1
  89. package/dist/models/interoperable-claims/clinical-impression-claims.d.ts +1 -1
  90. package/dist/models/interoperable-claims/condition-claims.d.ts +1 -1
  91. package/dist/models/interoperable-claims/coverage-claims.d.ts +1 -1
  92. package/dist/models/interoperable-claims/device-claims.d.ts +1 -1
  93. package/dist/models/interoperable-claims/device-use-statement-claims.d.ts +1 -1
  94. package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +1 -1
  95. package/dist/models/interoperable-claims/document-reference-claims.d.ts +1 -1
  96. package/dist/models/interoperable-claims/encounter-claims.d.ts +1 -1
  97. package/dist/models/interoperable-claims/flag-claims.d.ts +1 -1
  98. package/dist/models/interoperable-claims/immunization-claims.d.ts +1 -1
  99. package/dist/models/interoperable-claims/index.d.ts +27 -27
  100. package/dist/models/interoperable-claims/invoice-claims.d.ts +1 -1
  101. package/dist/models/interoperable-claims/location-claims.d.ts +1 -1
  102. package/dist/models/interoperable-claims/medication-statement-claims.d.ts +1 -1
  103. package/dist/models/interoperable-claims/observation-claims.d.ts +1 -1
  104. package/dist/models/interoperable-claims/organization-claims.d.ts +1 -1
  105. package/dist/models/interoperable-claims/practitioner-role-claims.d.ts +1 -1
  106. package/dist/models/interoperable-claims/procedure-claims.d.ts +1 -1
  107. package/dist/models/interoperable-claims/related-person-claims.d.ts +1 -1
  108. package/dist/models/interoperable-claims.d.ts +1 -1
  109. package/dist/models/jsonapi.d.ts +1 -1
  110. package/dist/models/jwe.d.ts +1 -1
  111. package/dist/models/jws.d.ts +1 -1
  112. package/dist/models/jwt.d.ts +1 -1
  113. package/dist/models/oidc4ida.document.model.d.ts +2 -2
  114. package/dist/models/oidc4ida.electronicRecord.model.d.ts +1 -1
  115. package/dist/models/oidc4ida.evidence.model.d.ts +2 -2
  116. package/dist/models/openid-device.d.ts +1 -1
  117. package/dist/models/operation-outcome.d.ts +1 -1
  118. package/dist/models/organization-employee-lifecycle.d.ts +2 -2
  119. package/dist/models/organization-role-license.d.ts +1 -1
  120. package/dist/models/profile-manager.d.ts +1 -1
  121. package/dist/models/response.d.ts +1 -1
  122. package/dist/models/subject-identity.d.ts +1 -1
  123. package/dist/models/verifiable-credential.d.ts +1 -1
  124. package/dist/models/wallet.d.ts +1 -1
  125. package/dist/storage/IVaultRepository.d.ts +1 -1
  126. package/dist/storage/VaultMemRepository.d.ts +2 -2
  127. package/dist/storage/index.d.ts +3 -3
  128. package/dist/utils/activation-request.d.ts +2 -2
  129. package/dist/utils/allergy-intolerance-entry-editor.d.ts +8 -3
  130. package/dist/utils/allergy-intolerance-entry-editor.js +7 -4
  131. package/dist/utils/authority-resolution.d.ts +1 -1
  132. package/dist/utils/backend-message-manager-mem.d.ts +4 -4
  133. package/dist/utils/bundle-didcomm-payload.d.ts +1 -1
  134. package/dist/utils/bundle-document-builder.d.ts +1 -1
  135. package/dist/utils/bundle-editor-core.d.ts +5 -5
  136. package/dist/utils/bundle-editor-helpers.d.ts +2 -2
  137. package/dist/utils/bundle-editor-registry.d.ts +2 -2
  138. package/dist/utils/bundle-editor.d.ts +23 -23
  139. package/dist/utils/bundle-entry-editor.d.ts +34 -22
  140. package/dist/utils/bundle-entry-editor.js +57 -0
  141. package/dist/utils/bundle-reader.d.ts +2 -2
  142. package/dist/utils/bundle-reader.js +7 -1
  143. package/dist/utils/care-plan-entry-editor.d.ts +22 -1
  144. package/dist/utils/care-plan-entry-editor.js +20 -3
  145. package/dist/utils/clinical-impression-entry-editor.d.ts +8 -1
  146. package/dist/utils/clinical-impression-entry-editor.js +6 -0
  147. package/dist/utils/clinical-resource-converters.d.ts +49 -49
  148. package/dist/utils/clinical-resource-entry-editor.d.ts +2 -2
  149. package/dist/utils/communication-attached-bundle-session-helpers.d.ts +3 -3
  150. package/dist/utils/communication-attached-bundle-session.d.ts +6 -6
  151. package/dist/utils/communication-bundle-document-request.d.ts +3 -3
  152. package/dist/utils/communication-consent-access-editor.d.ts +5 -5
  153. package/dist/utils/communication-didcomm-payload.d.ts +1 -1
  154. package/dist/utils/communication-document-reference.d.ts +1 -1
  155. package/dist/utils/communication-editor.d.ts +6 -6
  156. package/dist/utils/communication-fhir-r4.d.ts +1 -1
  157. package/dist/utils/communication-identity.d.ts +5 -5
  158. package/dist/utils/communication-participant-search-test-data.d.ts +1 -1
  159. package/dist/utils/condition-entry-editor.d.ts +18 -1
  160. package/dist/utils/condition-entry-editor.js +24 -6
  161. package/dist/utils/confidential-storage-persistence.d.ts +1 -1
  162. package/dist/utils/confidential-storage-test-data.d.ts +1 -1
  163. package/dist/utils/connected-device-fhir-r4.d.ts +1 -1
  164. package/dist/utils/consent-entry-editor.d.ts +2 -2
  165. package/dist/utils/content.d.ts +4 -4
  166. package/dist/utils/coverage-entry-editor.d.ts +13 -1
  167. package/dist/utils/coverage-entry-editor.js +14 -6
  168. package/dist/utils/dataspace-discovery-defaults.d.ts +2 -2
  169. package/dist/utils/dataspace-discovery.d.ts +1 -1
  170. package/dist/utils/dataspace-protocol.d.ts +2 -2
  171. package/dist/utils/deterministic-jwk.d.ts +1 -1
  172. package/dist/utils/device-entry-editor.d.ts +7 -1
  173. package/dist/utils/device-entry-editor.js +7 -3
  174. package/dist/utils/device-use-statement-entry-editor.d.ts +6 -1
  175. package/dist/utils/device-use-statement-entry-editor.js +6 -3
  176. package/dist/utils/diagnostic-report-entry-editor.d.ts +12 -1
  177. package/dist/utils/diagnostic-report-entry-editor.js +15 -8
  178. package/dist/utils/did-resolution.d.ts +2 -2
  179. package/dist/utils/did-resolution.js +5 -3
  180. package/dist/utils/did.d.ts +5 -5
  181. package/dist/utils/did.js +4 -4
  182. package/dist/utils/didcomm-submit.d.ts +1 -1
  183. package/dist/utils/didcomm.d.ts +2 -2
  184. package/dist/utils/discovery-normalization.d.ts +1 -1
  185. package/dist/utils/document-reference-entry-editor.d.ts +13 -1
  186. package/dist/utils/document-reference-entry-editor.js +14 -6
  187. package/dist/utils/employee-entry-editor.d.ts +1 -1
  188. package/dist/utils/employee.d.ts +1 -1
  189. package/dist/utils/encounter-entry-editor.d.ts +18 -1
  190. package/dist/utils/encounter-entry-editor.js +20 -9
  191. package/dist/utils/fhir-search.d.ts +1 -1
  192. package/dist/utils/fhir-validator.d.ts +1 -1
  193. package/dist/utils/flag-entry-editor.d.ts +14 -3
  194. package/dist/utils/flag-entry-editor.js +14 -7
  195. package/dist/utils/gw-core-commercial-contract.d.ts +1 -1
  196. package/dist/utils/gw-core-path.d.ts +1 -1
  197. package/dist/utils/immunization-entry-editor.d.ts +45 -3
  198. package/dist/utils/immunization-entry-editor.js +57 -17
  199. package/dist/utils/index.d.ts +125 -125
  200. package/dist/utils/individual-bundle-vault.d.ts +4 -4
  201. package/dist/utils/individual-form-pdf.d.ts +1 -1
  202. package/dist/utils/individual-onboarding-acceptance-credential.d.ts +1 -1
  203. package/dist/utils/individual-onboarding-document-reference.d.ts +1 -1
  204. package/dist/utils/individual-onboarding-editor.d.ts +1 -1
  205. package/dist/utils/individual-organization-claims.d.ts +1 -1
  206. package/dist/utils/individual-organization-kyc.d.ts +2 -2
  207. package/dist/utils/inter-tenant-access-contract.d.ts +2 -2
  208. package/dist/utils/interoperable-resource-operation.d.ts +2 -2
  209. package/dist/utils/invoice-bundle.d.ts +1 -1
  210. package/dist/utils/jwk-thumbprint.d.ts +1 -1
  211. package/dist/utils/jwt-signer.d.ts +3 -3
  212. package/dist/utils/jwt.d.ts +1 -1
  213. package/dist/utils/legal-organization-onboarding-editor.d.ts +2 -2
  214. package/dist/utils/legal-organization-onboarding.d.ts +2 -2
  215. package/dist/utils/legal-organization-verification-transaction.d.ts +3 -3
  216. package/dist/utils/license-commercial-search.d.ts +2 -2
  217. package/dist/utils/license-list-search.d.ts +1 -1
  218. package/dist/utils/license-offer-order.d.ts +1 -1
  219. package/dist/utils/license.d.ts +2 -2
  220. package/dist/utils/lifecycle-result-reader.d.ts +1 -1
  221. package/dist/utils/manager-error.d.ts +1 -1
  222. package/dist/utils/medication-claim-helpers.d.ts +1 -1
  223. package/dist/utils/medication-statement-entry-editor.d.ts +30 -7
  224. package/dist/utils/medication-statement-entry-editor.js +28 -12
  225. package/dist/utils/observation-component-entry-editor.d.ts +19 -2
  226. package/dist/utils/observation-component-entry-editor.js +42 -15
  227. package/dist/utils/observation-entry-editor.d.ts +9 -1
  228. package/dist/utils/observation-entry-editor.js +7 -0
  229. package/dist/utils/organization-authorization-urn.d.ts +1 -1
  230. package/dist/utils/organization-did-binding.d.ts +1 -1
  231. package/dist/utils/organization-employee-lifecycle.d.ts +1 -1
  232. package/dist/utils/organization-role-license.d.ts +1 -1
  233. package/dist/utils/organization-test-network-credential.d.ts +1 -1
  234. package/dist/utils/procedure-entry-editor.d.ts +23 -5
  235. package/dist/utils/procedure-entry-editor.js +21 -8
  236. package/dist/utils/profile-manager-mem.d.ts +5 -5
  237. package/dist/utils/profile-outbox-memory-repository.d.ts +2 -2
  238. package/dist/utils/related-person-entry-editor.d.ts +7 -1
  239. package/dist/utils/related-person-entry-editor.js +7 -2
  240. package/dist/utils/smart-authorization-profile.d.ts +1 -1
  241. package/dist/utils/smart-scope.d.ts +2 -2
  242. package/dist/utils/subject-identity-binding.d.ts +2 -2
  243. package/dist/utils/subject-identity.d.ts +3 -3
  244. package/dist/utils/test-network-organization-credentials.d.ts +1 -1
  245. package/dist/utils/vital-sign-day-batch.d.ts +1 -1
  246. package/dist/utils/vital-sign-entry-editor.d.ts +8 -2
  247. package/dist/utils/vital-sign-entry-editor.js +10 -5
  248. package/dist/utils/vp-token.d.ts +1 -1
  249. package/dist/utils/wallet-mem.d.ts +6 -6
  250. package/dist/utils/wallet-memory-queue.d.ts +3 -3
  251. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import type { IWallet } from '../interfaces/IWallet';
2
- import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository';
3
- import type { BackendMessageResponseRecord, BackendMessageTransport, ProfileOutboxMessageRecord, ProfileManagerMemProfile, QueueProfileMessageInput } from '../models/profile-manager';
4
- import type { WalletQueuedMessage } from '../models/wallet';
5
- import { BackendMessageManagerMem } from './backend-message-manager-mem';
1
+ import type { IWallet } from '../interfaces/IWallet.js';
2
+ import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository.js';
3
+ import type { BackendMessageResponseRecord, BackendMessageTransport, ProfileOutboxMessageRecord, ProfileManagerMemProfile, QueueProfileMessageInput } from '../models/profile-manager.js';
4
+ import type { WalletQueuedMessage } from '../models/wallet.js';
5
+ import { BackendMessageManagerMem } from './backend-message-manager-mem.js';
6
6
  export type ProfileManagerMemOptions = Readonly<{
7
7
  profile: ProfileManagerMemProfile;
8
8
  wallet: IWallet;
@@ -1,5 +1,5 @@
1
- import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository';
2
- import type { BackendMessageResponseRecord, ProfileOutboxMessageRecord } from '../models/profile-manager';
1
+ import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository.js';
2
+ import type { BackendMessageResponseRecord, ProfileOutboxMessageRecord } from '../models/profile-manager.js';
3
3
  /**
4
4
  * In-memory profile outbox repository used by low-level tests and as the
5
5
  * default history/response store for `ProfileManagerMem`.
@@ -1,4 +1,4 @@
1
- import { BundleEntryEditor } from './bundle-entry-editor';
1
+ import { BundleEntryEditor } from './bundle-entry-editor.js';
2
2
  /**
3
3
  * Typed editor for one RelatedPerson/contact staged inside a Bundle.
4
4
  *
@@ -14,7 +14,13 @@ export declare class RelatedPersonEntryEditor extends BundleEntryEditor {
14
14
  setSubject(value?: string | null): this;
15
15
  getSubject(): string | undefined;
16
16
  setRelationship(value?: string | null): this;
17
+ setRelationship(codeSystem: string, codeValue: string): this;
17
18
  getRelationship(): string | undefined;
19
+ getRelationshipCode(): string | undefined;
20
+ setRelationshipCodeSystem(system?: string | null): this;
21
+ getRelationshipCodeSystem(): string | undefined;
22
+ setRelationshipSystemAndCode(system?: string | null, code?: string | null): this;
23
+ getRelationshipSystemAndCode(): string | undefined;
18
24
  setRoleList(values: readonly string[]): this;
19
25
  getRoleList(): string[];
20
26
  setName(value?: string | null): this;
@@ -66,8 +66,13 @@ export class RelatedPersonEntryEditor extends BundleEntryEditor {
66
66
  }
67
67
  setSubject(value) { return this.setOptionalText(RelatedPersonClaim.Patient, value); }
68
68
  getSubject() { return this.getOptionalText(RelatedPersonClaim.Patient); }
69
- setRelationship(value) { return this.setOptionalText(RelatedPersonClaim.Relationship, value); }
70
- getRelationship() { return this.getOptionalText(RelatedPersonClaim.Relationship); }
69
+ setRelationship(valueOrSystem, codeValue) { return this.setCodingTokenCode(RelatedPersonClaim.Relationship, valueOrSystem, codeValue); }
70
+ getRelationship() { return this.getCodingTokenSystemAndCode(RelatedPersonClaim.Relationship); }
71
+ getRelationshipCode() { return this.getCodingTokenCode(RelatedPersonClaim.Relationship); }
72
+ setRelationshipCodeSystem(system) { return this.setCodingTokenSystem(RelatedPersonClaim.Relationship, system); }
73
+ getRelationshipCodeSystem() { return this.getCodingTokenSystem(RelatedPersonClaim.Relationship); }
74
+ setRelationshipSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(RelatedPersonClaim.Relationship, system, code); }
75
+ getRelationshipSystemAndCode() { return this.getCodingTokenSystemAndCode(RelatedPersonClaim.Relationship); }
71
76
  setRoleList(values) { return this.setList(RelatedPersonClaim.Role, values); }
72
77
  getRoleList() { return this.getList(RelatedPersonClaim.Role); }
73
78
  setName(value) { return this.setOptionalText(RelatedPersonClaim.Name, value); }
@@ -1,4 +1,4 @@
1
- import { CommunicationTopicCodes } from '../constants/communication';
1
+ import { CommunicationTopicCodes } from '../constants/communication.js';
2
2
  /** Extension members carried inside an RFC 7662/9701 introspection result. */
3
3
  export declare const SmartIntrospectionExtensionFields: Readonly<{
4
4
  /** OpenID4VP presentation transport member; its value retains its native format. */
@@ -1,5 +1,5 @@
1
- import type { ConsentActorDescriptor, EffectiveAccessEvaluation } from '../models/consent-access';
2
- import type { ConsentRule } from '../models/consent-rule';
1
+ import type { ConsentActorDescriptor, EffectiveAccessEvaluation } from '../models/consent-access.js';
2
+ import type { ConsentRule } from '../models/consent-rule.js';
3
3
  export type SmartCompositionReadScopeOptions = {
4
4
  /**
5
5
  * Subject DID pinned by the current CORE GW root scope contract.
@@ -1,5 +1,5 @@
1
- import { type SubjectIdentityBindingMatchCriteria, type SubjectIdentityBindingSummary } from '../models/subject-identity-binding';
2
- import type { VerifiableCredentialV2 } from '../models/verifiable-credential';
1
+ import { type SubjectIdentityBindingMatchCriteria, type SubjectIdentityBindingSummary } from '../models/subject-identity-binding.js';
2
+ import type { VerifiableCredentialV2 } from '../models/verifiable-credential.js';
3
3
  /**
4
4
  * Builds the unsigned JSON form of a subject identity binding VC.
5
5
  *
@@ -1,6 +1,6 @@
1
- import type { BundleEntry } from '../models/bundle';
2
- import type { SubjectIdentityAssociation, SubjectIdentityBundleEntry, SubjectIdentityInput } from '../models/subject-identity';
3
- import type { SubjectIdentifierLedgerPayload } from '../models/subject-identifier-ledger';
1
+ import type { BundleEntry } from '../models/bundle.js';
2
+ import type { SubjectIdentityAssociation, SubjectIdentityBundleEntry, SubjectIdentityInput } from '../models/subject-identity.js';
3
+ import type { SubjectIdentifierLedgerPayload } from '../models/subject-identifier-ledger.js';
4
4
  /**
5
5
  * Builds the exact UTF-8 token used by the distributed Subject lookup.
6
6
  *
@@ -1,4 +1,4 @@
1
- import type { VerifiableCredentialV2 } from '../models/verifiable-credential';
1
+ import type { VerifiableCredentialV2 } from '../models/verifiable-credential.js';
2
2
  export declare const TestNetworkOrganizationCredentialTypes: readonly ["OrganizationCredential", "LegalRepresentativeCredential", "ServiceControllerCredential"];
3
3
  export type TestNetworkOrganizationCredentialSet = readonly [
4
4
  VerifiableCredentialV2,
@@ -1,4 +1,4 @@
1
- import type { BundleEntry, BundleJsonApi } from '../models/bundle';
1
+ import type { BundleEntry, BundleJsonApi } from '../models/bundle.js';
2
2
  export declare const VitalSignDayBatchClaim: Readonly<{
3
3
  readonly Identifier: "VitalSignDayBatch.identifier";
4
4
  readonly Subject: "VitalSignDayBatch.subject";
@@ -5,8 +5,8 @@
5
5
  * - Keep this file focused on one typed editor surface.
6
6
  * - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
7
7
  */
8
- import { type CodingDescriptor } from '../constants/vital-signs';
9
- import { ObservationComponentEntryEditor } from './observation-component-entry-editor';
8
+ import { type CodingDescriptor } from '../constants/vital-signs.js';
9
+ import { ObservationComponentEntryEditor } from './observation-component-entry-editor.js';
10
10
  /**
11
11
  * Typed editor for one staged VitalSign resource entry.
12
12
  *
@@ -30,8 +30,14 @@ export declare class VitalSignEntryEditor extends ObservationComponentEntryEdito
30
30
  getStatus(): string | undefined;
31
31
  /** Sets the observation category, usually one of the shared vital-sign category descriptors. */
32
32
  setCategory(category: CodingDescriptor | string): this;
33
+ setCategory(codeSystem: string, codeValue: string): this;
33
34
  /** Returns the observation category token. */
34
35
  getCategory(): string | undefined;
36
+ getCategoryCode(): string | undefined;
37
+ setCategoryCodeSystem(system?: string | null): this;
38
+ getCategoryCodeSystem(): string | undefined;
39
+ setCategorySystemAndCode(system?: string | null, code?: string | null): this;
40
+ getCategorySystemAndCode(): string | undefined;
35
41
  /** Sets the observation date/effective time. */
36
42
  setDate(date: string): this;
37
43
  /** Returns the observation date/effective time. */
@@ -67,15 +67,20 @@ export class VitalSignEntryEditor extends ObservationComponentEntryEditor {
67
67
  getStatus() {
68
68
  return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.Status));
69
69
  }
70
- /** Sets the observation category, usually one of the shared vital-sign category descriptors. */
71
- setCategory(category) {
72
- const normalized = typeof category === 'string' ? category.trim() : category.claim;
73
- return this.setClaim(ObservationClaim.Category, normalized);
70
+ setCategory(categoryOrSystem, codeValue) {
71
+ return typeof categoryOrSystem === 'string'
72
+ ? this.setCodingTokenCode(ObservationClaim.Category, categoryOrSystem, codeValue)
73
+ : this.setCodingTokenSystemAndCode(ObservationClaim.Category, categoryOrSystem.system, categoryOrSystem.code);
74
74
  }
75
75
  /** Returns the observation category token. */
76
76
  getCategory() {
77
- return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.Category));
77
+ return this.getCodingTokenSystemAndCode(ObservationClaim.Category);
78
78
  }
79
+ getCategoryCode() { return this.getCodingTokenCode(ObservationClaim.Category); }
80
+ setCategoryCodeSystem(system) { return this.setCodingTokenSystem(ObservationClaim.Category, system); }
81
+ getCategoryCodeSystem() { return this.getCodingTokenSystem(ObservationClaim.Category); }
82
+ setCategorySystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ObservationClaim.Category, system, code); }
83
+ getCategorySystemAndCode() { return this.getCodingTokenSystemAndCode(ObservationClaim.Category); }
79
84
  /** Sets the observation date/effective time. */
80
85
  setDate(date) {
81
86
  const normalized = String(date).trim();
@@ -1,4 +1,4 @@
1
- import { JoseSignatureAlgorithm } from '../constants/cryptography';
1
+ import { JoseSignatureAlgorithm } from '../constants/cryptography.js';
2
2
  /**
3
3
  * Protected JOSE header used when assembling a compact VP JWT.
4
4
  *
@@ -1,9 +1,9 @@
1
- import { CryptographyService } from '../CryptographyService';
2
- import type { ICryptoHelper } from '../interfaces/ICryptoHelper';
3
- import type { IWallet } from '../interfaces/IWallet';
4
- import type { IWalletQueue } from '../interfaces/IWalletQueue';
5
- import type { JWK, JwkSet } from '../models/jwk';
6
- import { type WalletEnqueueMessageInput, type WalletManagedEntityDescriptor, type WalletQueuedMessage } from '../models/wallet';
1
+ import { CryptographyService } from '../CryptographyService.js';
2
+ import type { ICryptoHelper } from '../interfaces/ICryptoHelper.js';
3
+ import type { IWallet } from '../interfaces/IWallet.js';
4
+ import type { IWalletQueue } from '../interfaces/IWalletQueue.js';
5
+ import type { JWK, JwkSet } from '../models/jwk.js';
6
+ import { type WalletEnqueueMessageInput, type WalletManagedEntityDescriptor, type WalletQueuedMessage } from '../models/wallet.js';
7
7
  export type WalletMemOptions = Readonly<{
8
8
  cryptoHelper: ICryptoHelper;
9
9
  cryptography?: CryptographyService;
@@ -1,6 +1,6 @@
1
- import type { ICryptoHelper } from '../interfaces/ICryptoHelper';
2
- import type { IWalletQueue } from '../interfaces/IWalletQueue';
3
- import { type WalletEnqueueMessageInput, type WalletQueuedMessage } from '../models/wallet';
1
+ import type { ICryptoHelper } from '../interfaces/ICryptoHelper.js';
2
+ import type { IWalletQueue } from '../interfaces/IWalletQueue.js';
3
+ import { type WalletEnqueueMessageInput, type WalletQueuedMessage } from '../models/wallet.js';
4
4
  /**
5
5
  * Default in-memory queue/outbox implementation for `WalletMem`.
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.9.13",
3
+ "version": "2.9.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,7 +24,7 @@
24
24
  "verify:dist": "node scripts/verify-dist-syntax.mjs",
25
25
  "check:product-neutrality": "node scripts/check-product-neutrality.mjs",
26
26
  "prepack": "npm run verify:dist",
27
- "prepublishOnly": "npm run check:product-neutrality && npm run typecheck && npm test -- --watchman=false && npm run build",
27
+ "prepublishOnly": "npm run check:product-neutrality && npm run typecheck && npm run build && npm test -- --watchman=false",
28
28
  "prepare": "npm run build"
29
29
  },
30
30
  "main": "./dist/index.js",