@sphereon/ssi-sdk.data-store 0.33.1-next.2 → 0.33.1-next.68
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/dist/index.cjs +9052 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1730 -0
- package/dist/index.d.ts +1730 -63
- package/dist/index.js +9019 -167
- package/dist/index.js.map +1 -1
- package/package.json +26 -15
- package/src/__tests__/contact.entities.test.ts +1 -1
- package/src/__tests__/contact.store.test.ts +2 -1
- package/src/__tests__/digitalCredential.entities.test.ts +1 -0
- package/src/__tests__/digitalCredential.store.test.ts +2 -1
- package/src/__tests__/eventLogger.entities.test.ts +2 -1
- package/src/__tests__/eventLogger.store.test.ts +2 -1
- package/src/__tests__/issuanceBranding.entities.test.ts +8 -7
- package/src/__tests__/issuanceBranding.store.test.ts +1 -0
- package/src/__tests__/machineState.entities.test.ts +2 -1
- package/src/__tests__/machineState.store.test.ts +2 -1
- package/src/__tests__/pd-manager.entities.test.ts +1 -0
- package/src/__tests__/pd-manager.store.test.ts +1 -0
- package/src/__tests__/statusList.entities.test.ts +1 -0
- package/src/__tests__/statusList.store.test.ts +2 -1
- package/src/contact/ContactStore.ts +1 -1
- package/src/digitalCredential/DigitalCredentialStore.ts +3 -7
- package/src/entities/contact/BaseConfigEntity.ts +2 -1
- package/src/entities/contact/BaseContactEntity.ts +3 -2
- package/src/entities/contact/ConnectionEntity.ts +2 -1
- package/src/entities/contact/ContactMetadataItemEntity.ts +2 -1
- package/src/entities/contact/CorrelationIdentifierEntity.ts +2 -1
- package/src/entities/contact/DidAuthConfigEntity.ts +2 -1
- package/src/entities/contact/ElectronicAddressEntity.ts +3 -12
- package/src/entities/contact/PhysicalAddressEntity.ts +1 -1
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
- package/src/entities/eventLogger/AuditEventEntity.ts +10 -1
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +3 -2
- package/src/entities/statusList/StatusListEntities.ts +8 -7
- package/src/entities/validators/index.ts +1 -1
- package/src/eventLogger/AbstractEventLoggerStore.ts +2 -2
- package/src/eventLogger/EventLoggerStore.ts +3 -3
- package/src/index.ts +4 -3
- package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +1 -1
- package/src/issuanceBranding/IssuanceBrandingStore.ts +3 -3
- package/src/machineState/IAbstractMachineStateStore.ts +1 -1
- package/src/machineState/MachineStateStore.ts +3 -3
- package/src/migrations/internal-migrations-ormconfig.ts +1 -1
- package/src/presentationDefinition/AbstractPDStore.ts +1 -1
- package/src/presentationDefinition/PDStore.ts +2 -2
- package/src/statusList/IStatusListStore.ts +1 -1
- package/src/statusList/StatusListStore.ts +4 -4
- package/src/types/contact/contact.ts +1 -1
- package/src/types/contact/index.ts +2 -0
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +2 -1
- package/src/types/digitalCredential/{digitalCredential.ts → enums.ts} +0 -33
- package/src/types/digitalCredential/index.ts +3 -0
- package/src/types/digitalCredential/types.ts +39 -0
- package/src/types/index.ts +2 -2
- package/src/types/statusList/statusList.ts +2 -2
- package/src/utils/SortingUtils.ts +1 -1
- package/src/utils/ValidatorUtils.ts +1 -1
- package/src/utils/contact/MappingUtils.ts +1 -1
- package/src/utils/digitalCredential/MappingUtils.ts +7 -13
- package/src/utils/eventLogger/MappingUtils.ts +2 -2
- package/src/utils/issuanceBranding/MappingUtils.ts +1 -1
- package/src/utils/presentationDefinition/MappingUtils.ts +5 -5
- package/dist/contact/AbstractContactStore.d.ts +0 -34
- package/dist/contact/AbstractContactStore.d.ts.map +0 -1
- package/dist/contact/AbstractContactStore.js +0 -7
- package/dist/contact/AbstractContactStore.js.map +0 -1
- package/dist/contact/ContactStore.d.ts +0 -48
- package/dist/contact/ContactStore.d.ts.map +0 -1
- package/dist/contact/ContactStore.js +0 -573
- package/dist/contact/ContactStore.js.map +0 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts +0 -9
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts.map +0 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js +0 -7
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +0 -1
- package/dist/digitalCredential/DigitalCredentialStore.d.ts +0 -18
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +0 -1
- package/dist/digitalCredential/DigitalCredentialStore.js +0 -165
- package/dist/digitalCredential/DigitalCredentialStore.js.map +0 -1
- package/dist/entities/contact/BaseConfigEntity.d.ts +0 -7
- package/dist/entities/contact/BaseConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/BaseConfigEntity.js +0 -34
- package/dist/entities/contact/BaseConfigEntity.js.map +0 -1
- package/dist/entities/contact/BaseContactEntity.d.ts +0 -12
- package/dist/entities/contact/BaseContactEntity.d.ts.map +0 -1
- package/dist/entities/contact/BaseContactEntity.js +0 -64
- package/dist/entities/contact/BaseContactEntity.js.map +0 -1
- package/dist/entities/contact/ConnectionEntity.d.ts +0 -13
- package/dist/entities/contact/ConnectionEntity.d.ts.map +0 -1
- package/dist/entities/contact/ConnectionEntity.js +0 -55
- package/dist/entities/contact/ConnectionEntity.js.map +0 -1
- package/dist/entities/contact/ContactMetadataItemEntity.d.ts +0 -15
- package/dist/entities/contact/ContactMetadataItemEntity.d.ts.map +0 -1
- package/dist/entities/contact/ContactMetadataItemEntity.js +0 -89
- package/dist/entities/contact/ContactMetadataItemEntity.js.map +0 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +0 -13
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +0 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.js +0 -80
- package/dist/entities/contact/CorrelationIdentifierEntity.js.map +0 -1
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +0 -9
- package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/DidAuthConfigEntity.js +0 -41
- package/dist/entities/contact/DidAuthConfigEntity.js.map +0 -1
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +0 -17
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +0 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +0 -105
- package/dist/entities/contact/ElectronicAddressEntity.js.map +0 -1
- package/dist/entities/contact/IdentityEntity.d.ts +0 -24
- package/dist/entities/contact/IdentityEntity.d.ts.map +0 -1
- package/dist/entities/contact/IdentityEntity.js +0 -143
- package/dist/entities/contact/IdentityEntity.js.map +0 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +0 -15
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +0 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +0 -86
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +0 -1
- package/dist/entities/contact/NaturalPersonEntity.d.ts +0 -11
- package/dist/entities/contact/NaturalPersonEntity.d.ts.map +0 -1
- package/dist/entities/contact/NaturalPersonEntity.js +0 -80
- package/dist/entities/contact/NaturalPersonEntity.js.map +0 -1
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +0 -13
- package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/OpenIdConfigEntity.js +0 -57
- package/dist/entities/contact/OpenIdConfigEntity.js.map +0 -1
- package/dist/entities/contact/OrganizationEntity.d.ts +0 -9
- package/dist/entities/contact/OrganizationEntity.d.ts.map +0 -1
- package/dist/entities/contact/OrganizationEntity.js +0 -69
- package/dist/entities/contact/OrganizationEntity.js.map +0 -1
- package/dist/entities/contact/PartyEntity.d.ts +0 -24
- package/dist/entities/contact/PartyEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyEntity.js +0 -152
- package/dist/entities/contact/PartyEntity.js.map +0 -1
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +0 -15
- package/dist/entities/contact/PartyRelationshipEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyRelationshipEntity.js +0 -104
- package/dist/entities/contact/PartyRelationshipEntity.js.map +0 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts +0 -16
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyTypeEntity.js +0 -109
- package/dist/entities/contact/PartyTypeEntity.js.map +0 -1
- package/dist/entities/contact/PhysicalAddressEntity.d.ts +0 -23
- package/dist/entities/contact/PhysicalAddressEntity.d.ts.map +0 -1
- package/dist/entities/contact/PhysicalAddressEntity.js +0 -136
- package/dist/entities/contact/PhysicalAddressEntity.js.map +0 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts +0 -33
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +0 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +0 -134
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +0 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +0 -32
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +0 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +0 -129
- package/dist/entities/eventLogger/AuditEventEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +0 -9
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +0 -67
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +0 -18
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +0 -121
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +0 -13
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +0 -95
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts +0 -10
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +0 -70
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +0 -9
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +0 -45
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +0 -12
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +0 -82
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +0 -7
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +0 -32
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +0 -12
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +0 -89
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +0 -11
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +0 -55
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +0 -7
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +0 -56
- package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +0 -1
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts +0 -33
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts.map +0 -1
- package/dist/entities/machineState/MachineStateInfoEntity.js +0 -86
- package/dist/entities/machineState/MachineStateInfoEntity.js.map +0 -1
- package/dist/entities/oid4vcState/Oid4vcStateEntity.d.ts +0 -13
- package/dist/entities/oid4vcState/Oid4vcStateEntity.d.ts.map +0 -1
- package/dist/entities/oid4vcState/Oid4vcStateEntity.js +0 -57
- package/dist/entities/oid4vcState/Oid4vcStateEntity.js.map +0 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts +0 -15
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts.map +0 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +0 -81
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +0 -1
- package/dist/entities/statusList/StatusList2021EntryEntity.d.ts +0 -12
- package/dist/entities/statusList/StatusList2021EntryEntity.d.ts.map +0 -1
- package/dist/entities/statusList/StatusList2021EntryEntity.js +0 -56
- package/dist/entities/statusList/StatusList2021EntryEntity.js.map +0 -1
- package/dist/entities/statusList/StatusListEntities.d.ts +0 -23
- package/dist/entities/statusList/StatusListEntities.d.ts.map +0 -1
- package/dist/entities/statusList/StatusListEntities.js +0 -144
- package/dist/entities/statusList/StatusListEntities.js.map +0 -1
- package/dist/entities/validators/index.d.ts +0 -7
- package/dist/entities/validators/index.d.ts.map +0 -1
- package/dist/entities/validators/index.js +0 -27
- package/dist/entities/validators/index.js.map +0 -1
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +0 -9
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +0 -1
- package/dist/eventLogger/AbstractEventLoggerStore.js +0 -7
- package/dist/eventLogger/AbstractEventLoggerStore.js.map +0 -1
- package/dist/eventLogger/EventLoggerStore.d.ts +0 -14
- package/dist/eventLogger/EventLoggerStore.d.ts.map +0 -1
- package/dist/eventLogger/EventLoggerStore.js +0 -71
- package/dist/eventLogger/EventLoggerStore.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +0 -20
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts.map +0 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +0 -7
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +0 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +0 -27
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +0 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +0 -362
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +0 -1
- package/dist/machineState/IAbstractMachineStateStore.d.ts +0 -52
- package/dist/machineState/IAbstractMachineStateStore.d.ts.map +0 -1
- package/dist/machineState/IAbstractMachineStateStore.js +0 -13
- package/dist/machineState/IAbstractMachineStateStore.js.map +0 -1
- package/dist/machineState/MachineStateStore.d.ts +0 -21
- package/dist/machineState/MachineStateStore.d.ts.map +0 -1
- package/dist/machineState/MachineStateStore.js +0 -139
- package/dist/machineState/MachineStateStore.js.map +0 -1
- package/dist/migrations/generic/1-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/1-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/1-CreateContacts.js +0 -78
- package/dist/migrations/generic/1-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/generic/10-CreatePresentationDefinitions.js +0 -78
- package/dist/migrations/generic/10-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.d.ts +0 -7
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.d.ts.map +0 -1
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js +0 -80
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js.map +0 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +0 -78
- package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/generic/3-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/3-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/3-CreateContacts.js +0 -78
- package/dist/migrations/generic/3-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/4-CreateStatusList.d.ts +0 -7
- package/dist/migrations/generic/4-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/generic/4-CreateStatusList.js +0 -82
- package/dist/migrations/generic/4-CreateStatusList.js.map +0 -1
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/generic/5-CreateAuditEvents.js +0 -78
- package/dist/migrations/generic/5-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/generic/6-CreateDigitalCredential.js +0 -78
- package/dist/migrations/generic/6-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/generic/7-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.js +0 -78
- package/dist/migrations/generic/7-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/generic/8-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/8-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/8-CreateContacts.js +0 -78
- package/dist/migrations/generic/8-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/9-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/9-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/9-CreateContacts.js +0 -78
- package/dist/migrations/generic/9-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/index.d.ts +0 -23
- package/dist/migrations/generic/index.d.ts.map +0 -1
- package/dist/migrations/generic/index.js +0 -45
- package/dist/migrations/generic/index.js.map +0 -1
- package/dist/migrations/index.d.ts +0 -2
- package/dist/migrations/index.d.ts.map +0 -1
- package/dist/migrations/index.js +0 -13
- package/dist/migrations/index.js.map +0 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +0 -7
- package/dist/migrations/internal-migrations-ormconfig.d.ts.map +0 -1
- package/dist/migrations/internal-migrations-ormconfig.js +0 -27
- package/dist/migrations/internal-migrations-ormconfig.js.map +0 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +0 -57
- package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +0 -73
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +0 -110
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +0 -7
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js +0 -65
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +0 -71
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +0 -75
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +0 -45
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1710438363001-CreateContacts.js +0 -63
- package/dist/migrations/postgres/1710438363001-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1715761125001-CreateContacts.js +0 -74
- package/dist/migrations/postgres/1715761125001-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +0 -42
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.d.ts +0 -7
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.js +0 -39
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.js.map +0 -1
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.d.ts +0 -7
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.d.ts.map +0 -1
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js +0 -37
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js.map +0 -1
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +0 -79
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +0 -93
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +0 -143
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +0 -7
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +0 -72
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +0 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +0 -55
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +0 -62
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +0 -44
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1710438363002-CreateContacts.js +0 -79
- package/dist/migrations/sqlite/1710438363002-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1715761125002-CreateContacts.js +0 -73
- package/dist/migrations/sqlite/1715761125002-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +0 -39
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.d.ts +0 -7
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.d.ts.map +0 -1
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js +0 -96
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js.map +0 -1
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.d.ts +0 -7
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.d.ts.map +0 -1
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js +0 -80
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.d.ts +0 -12
- package/dist/presentationDefinition/AbstractPDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.js +0 -7
- package/dist/presentationDefinition/AbstractPDStore.js.map +0 -1
- package/dist/presentationDefinition/PDStore.d.ts +0 -19
- package/dist/presentationDefinition/PDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/PDStore.js +0 -152
- package/dist/presentationDefinition/PDStore.js.map +0 -1
- package/dist/statusList/IStatusListStore.d.ts +0 -20
- package/dist/statusList/IStatusListStore.d.ts.map +0 -1
- package/dist/statusList/IStatusListStore.js +0 -3
- package/dist/statusList/IStatusListStore.js.map +0 -1
- package/dist/statusList/StatusListStore.d.ts +0 -37
- package/dist/statusList/StatusListStore.d.ts.map +0 -1
- package/dist/statusList/StatusListStore.js +0 -243
- package/dist/statusList/StatusListStore.js.map +0 -1
- package/dist/types/contact/IAbstractContactStore.d.ts +0 -111
- package/dist/types/contact/IAbstractContactStore.d.ts.map +0 -1
- package/dist/types/contact/IAbstractContactStore.js +0 -3
- package/dist/types/contact/IAbstractContactStore.js.map +0 -1
- package/dist/types/contact/contact.d.ts +0 -254
- package/dist/types/contact/contact.d.ts.map +0 -1
- package/dist/types/contact/contact.js +0 -30
- package/dist/types/contact/contact.js.map +0 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts +0 -47
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts.map +0 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +0 -3
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js.map +0 -1
- package/dist/types/digitalCredential/digitalCredential.d.ts +0 -73
- package/dist/types/digitalCredential/digitalCredential.d.ts.map +0 -1
- package/dist/types/digitalCredential/digitalCredential.js +0 -79
- package/dist/types/digitalCredential/digitalCredential.js.map +0 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +0 -17
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +0 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js +0 -3
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js.map +0 -1
- package/dist/types/eventLogger/eventLogger.d.ts +0 -4
- package/dist/types/eventLogger/eventLogger.d.ts.map +0 -1
- package/dist/types/eventLogger/eventLogger.js +0 -3
- package/dist/types/eventLogger/eventLogger.js.map +0 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -31
- package/dist/types/index.js.map +0 -1
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +0 -59
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts.map +0 -1
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +0 -3
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js.map +0 -1
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +0 -132
- package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +0 -1
- package/dist/types/issuanceBranding/issuanceBranding.js +0 -3
- package/dist/types/issuanceBranding/issuanceBranding.js.map +0 -1
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts +0 -58
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts.map +0 -1
- package/dist/types/machineState/IAbstractMachineStateStore.js +0 -3
- package/dist/types/machineState/IAbstractMachineStateStore.js.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts +0 -17
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.js +0 -3
- package/dist/types/presentationDefinition/IAbstractPDStore.js.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.d.ts +0 -18
- package/dist/types/presentationDefinition/presentationDefinition.d.ts.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.js +0 -3
- package/dist/types/presentationDefinition/presentationDefinition.js.map +0 -1
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +0 -39
- package/dist/types/statusList/IAbstractStatusListStore.d.ts.map +0 -1
- package/dist/types/statusList/IAbstractStatusListStore.js +0 -3
- package/dist/types/statusList/IAbstractStatusListStore.js.map +0 -1
- package/dist/types/statusList/statusList.d.ts +0 -31
- package/dist/types/statusList/statusList.d.ts.map +0 -1
- package/dist/types/statusList/statusList.js +0 -3
- package/dist/types/statusList/statusList.js.map +0 -1
- package/dist/types/validation/validation.d.ts +0 -4
- package/dist/types/validation/validation.d.ts.map +0 -1
- package/dist/types/validation/validation.js +0 -3
- package/dist/types/validation/validation.js.map +0 -1
- package/dist/utils/FormattingUtils.d.ts +0 -2
- package/dist/utils/FormattingUtils.d.ts.map +0 -1
- package/dist/utils/FormattingUtils.js +0 -23
- package/dist/utils/FormattingUtils.js.map +0 -1
- package/dist/utils/SortingUtils.d.ts +0 -3
- package/dist/utils/SortingUtils.d.ts.map +0 -1
- package/dist/utils/SortingUtils.js +0 -18
- package/dist/utils/SortingUtils.js.map +0 -1
- package/dist/utils/ValidatorUtils.d.ts +0 -4
- package/dist/utils/ValidatorUtils.d.ts.map +0 -1
- package/dist/utils/ValidatorUtils.js +0 -13
- package/dist/utils/ValidatorUtils.js.map +0 -1
- package/dist/utils/contact/MappingUtils.d.ts +0 -52
- package/dist/utils/contact/MappingUtils.d.ts.map +0 -1
- package/dist/utils/contact/MappingUtils.js +0 -458
- package/dist/utils/contact/MappingUtils.js.map +0 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts +0 -10
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +0 -1
- package/dist/utils/digitalCredential/MappingUtils.js +0 -139
- package/dist/utils/digitalCredential/MappingUtils.js.map +0 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +0 -8
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +0 -1
- package/dist/utils/eventLogger/MappingUtils.js +0 -70
- package/dist/utils/eventLogger/MappingUtils.js.map +0 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +0 -24
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +0 -1
- package/dist/utils/issuanceBranding/MappingUtils.js +0 -109
- package/dist/utils/issuanceBranding/MappingUtils.js.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.d.ts +0 -6
- package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +0 -52
- package/dist/utils/presentationDefinition/MappingUtils.js.map +0 -1
- package/dist/utils/statusList/MappingUtils.d.ts +0 -5
- package/dist/utils/statusList/MappingUtils.d.ts.map +0 -1
- package/dist/utils/statusList/MappingUtils.js +0 -69
- package/dist/utils/statusList/MappingUtils.js.map +0 -1
|
@@ -1,573 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ContactStore = void 0;
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
const debug_1 = __importDefault(require("debug"));
|
|
18
|
-
const AbstractContactStore_1 = require("./AbstractContactStore");
|
|
19
|
-
const PartyEntity_1 = require("../entities/contact/PartyEntity");
|
|
20
|
-
const IdentityEntity_1 = require("../entities/contact/IdentityEntity");
|
|
21
|
-
const IdentityMetadataItemEntity_1 = require("../entities/contact/IdentityMetadataItemEntity");
|
|
22
|
-
const CorrelationIdentifierEntity_1 = require("../entities/contact/CorrelationIdentifierEntity");
|
|
23
|
-
const ConnectionEntity_1 = require("../entities/contact/ConnectionEntity");
|
|
24
|
-
const BaseConfigEntity_1 = require("../entities/contact/BaseConfigEntity");
|
|
25
|
-
const PartyRelationshipEntity_1 = require("../entities/contact/PartyRelationshipEntity");
|
|
26
|
-
const PartyTypeEntity_1 = require("../entities/contact/PartyTypeEntity");
|
|
27
|
-
const BaseContactEntity_1 = require("../entities/contact/BaseContactEntity");
|
|
28
|
-
const ElectronicAddressEntity_1 = require("../entities/contact/ElectronicAddressEntity");
|
|
29
|
-
const PhysicalAddressEntity_1 = require("../entities/contact/PhysicalAddressEntity");
|
|
30
|
-
const MappingUtils_1 = require("../utils/contact/MappingUtils");
|
|
31
|
-
const types_1 = require("../types");
|
|
32
|
-
const debug = (0, debug_1.default)('sphereon:ssi-sdk:contact-store');
|
|
33
|
-
class ContactStore extends AbstractContactStore_1.AbstractContactStore {
|
|
34
|
-
constructor(dbConnection) {
|
|
35
|
-
super();
|
|
36
|
-
this.getParty = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const { partyId } = args;
|
|
38
|
-
const result = yield (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity).findOne({
|
|
39
|
-
where: { id: partyId },
|
|
40
|
-
});
|
|
41
|
-
if (!result) {
|
|
42
|
-
return Promise.reject(Error(`No party found for id: ${partyId}`));
|
|
43
|
-
}
|
|
44
|
-
return (0, MappingUtils_1.partyFrom)(result);
|
|
45
|
-
});
|
|
46
|
-
this.getParties = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
debug('getParties()', args);
|
|
48
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
49
|
-
const partyRepository = (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity);
|
|
50
|
-
const filterConditions = this.buildFilters(filter);
|
|
51
|
-
const initialResult = yield partyRepository.find({ select: ['id'], where: filterConditions });
|
|
52
|
-
// Fetch the complete entities based on the initial result IDs
|
|
53
|
-
const result = yield partyRepository.find({ where: { id: (0, typeorm_1.In)(initialResult.map((party) => party.id)) } });
|
|
54
|
-
debug(`getParties() resulted in ${result.length} parties`);
|
|
55
|
-
return result.map(MappingUtils_1.partyFrom);
|
|
56
|
-
});
|
|
57
|
-
this.addParty = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const { identities, contact, partyType } = args;
|
|
59
|
-
const partyRepository = (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity);
|
|
60
|
-
if (!this.hasCorrectPartyType(partyType.type, contact)) {
|
|
61
|
-
return Promise.reject(Error(`Party type ${partyType.type}, does not match for provided contact`));
|
|
62
|
-
}
|
|
63
|
-
for (const identity of identities !== null && identities !== void 0 ? identities : []) {
|
|
64
|
-
if (identity.identifier.type === types_1.CorrelationIdentifierType.URL) {
|
|
65
|
-
if (!identity.connection) {
|
|
66
|
-
return Promise.reject(Error(`Identity with correlation type ${types_1.CorrelationIdentifierType.URL} should contain a connection`));
|
|
67
|
-
}
|
|
68
|
-
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
69
|
-
return Promise.reject(Error(`Connection type ${identity.connection.type}, does not match for provided config`));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const partyEntity = (0, MappingUtils_1.partyEntityFrom)(args);
|
|
74
|
-
debug('Adding party', args);
|
|
75
|
-
const createdResult = yield partyRepository.save(partyEntity);
|
|
76
|
-
return (0, MappingUtils_1.partyFrom)(createdResult);
|
|
77
|
-
});
|
|
78
|
-
this.updateParty = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const { party } = args;
|
|
80
|
-
const partyRepository = (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity);
|
|
81
|
-
const result = yield partyRepository.findOne({
|
|
82
|
-
where: { id: party.id },
|
|
83
|
-
});
|
|
84
|
-
if (!result) {
|
|
85
|
-
return Promise.reject(Error(`No party found for id: ${party.id}`));
|
|
86
|
-
}
|
|
87
|
-
const updatedParty = Object.assign(Object.assign({}, party), { identities: result.identities, type: result.partyType, relationships: result.relationships, electronicAddresses: result.electronicAddresses });
|
|
88
|
-
debug('Updating party', party);
|
|
89
|
-
const updatedResult = yield partyRepository.save(updatedParty, { transaction: true });
|
|
90
|
-
return (0, MappingUtils_1.partyFrom)(updatedResult);
|
|
91
|
-
});
|
|
92
|
-
this.removeParty = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const { partyId } = args;
|
|
94
|
-
const partyRepository = (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity);
|
|
95
|
-
debug('Removing party', partyId);
|
|
96
|
-
partyRepository
|
|
97
|
-
.findOneById(partyId)
|
|
98
|
-
.then((party) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
if (!party) {
|
|
100
|
-
yield Promise.reject(Error(`Unable to find the party with id to remove: ${partyId}`));
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
yield this.deleteIdentities(party.identities);
|
|
104
|
-
yield this.deleteElectronicAddresses(party.electronicAddresses);
|
|
105
|
-
yield this.deletePhysicalAddresses(party.physicalAddresses);
|
|
106
|
-
yield partyRepository
|
|
107
|
-
.delete({ id: partyId })
|
|
108
|
-
.catch((error) => Promise.reject(Error(`Unable to remove party with id: ${partyId}. ${error}`)));
|
|
109
|
-
const partyContactRepository = (yield this.dbConnection).getRepository(BaseContactEntity_1.BaseContactEntity);
|
|
110
|
-
yield partyContactRepository
|
|
111
|
-
.delete({ id: party.contact.id })
|
|
112
|
-
.catch((error) => Promise.reject(Error(`Unable to remove party contact with id: ${party.contact.id}. ${error}`)));
|
|
113
|
-
}
|
|
114
|
-
}))
|
|
115
|
-
.catch((error) => Promise.reject(Error(`Unable to remove party with id: ${partyId}. ${error}`)));
|
|
116
|
-
});
|
|
117
|
-
this.getIdentity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
const { identityId } = args;
|
|
119
|
-
const result = yield (yield this.dbConnection).getRepository(IdentityEntity_1.IdentityEntity).findOne({
|
|
120
|
-
where: { id: identityId },
|
|
121
|
-
});
|
|
122
|
-
if (!result) {
|
|
123
|
-
return Promise.reject(Error(`No identity found for id: ${identityId}`));
|
|
124
|
-
}
|
|
125
|
-
return (0, MappingUtils_1.identityFrom)(result);
|
|
126
|
-
});
|
|
127
|
-
this.getIdentities = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
129
|
-
const identityRepository = (yield this.dbConnection).getRepository(IdentityEntity_1.IdentityEntity);
|
|
130
|
-
const filterConditions = this.buildFilters(filter);
|
|
131
|
-
const initialResult = yield identityRepository.find({ select: ['id'], where: filterConditions });
|
|
132
|
-
const result = yield identityRepository.find({ where: { id: (0, typeorm_1.In)(initialResult.map((identity) => identity.id)) } });
|
|
133
|
-
return result.map(MappingUtils_1.identityFrom);
|
|
134
|
-
});
|
|
135
|
-
this.addIdentity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
const { identity, partyId } = args;
|
|
137
|
-
const party = yield (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity).findOne({
|
|
138
|
-
where: { id: partyId },
|
|
139
|
-
});
|
|
140
|
-
if (!party) {
|
|
141
|
-
return Promise.reject(Error(`No party found for id: ${partyId}`));
|
|
142
|
-
}
|
|
143
|
-
if (identity.identifier.type === types_1.CorrelationIdentifierType.URL) {
|
|
144
|
-
if (!identity.connection) {
|
|
145
|
-
return Promise.reject(Error(`Identity with correlation type ${types_1.CorrelationIdentifierType.URL} should contain a connection`));
|
|
146
|
-
}
|
|
147
|
-
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
148
|
-
return Promise.reject(Error(`Connection type ${identity.connection.type}, does not match for provided config`));
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const identityEntity = (0, MappingUtils_1.identityEntityFrom)(identity);
|
|
152
|
-
identityEntity.party = party;
|
|
153
|
-
debug('Adding identity', identity);
|
|
154
|
-
const result = yield (yield this.dbConnection).getRepository(IdentityEntity_1.IdentityEntity).save(identityEntity, {
|
|
155
|
-
transaction: true,
|
|
156
|
-
});
|
|
157
|
-
return (0, MappingUtils_1.identityFrom)(result);
|
|
158
|
-
});
|
|
159
|
-
this.updateIdentity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
const { identity } = args;
|
|
161
|
-
const identityRepository = (yield this.dbConnection).getRepository(IdentityEntity_1.IdentityEntity);
|
|
162
|
-
const result = yield identityRepository.findOne({
|
|
163
|
-
where: { id: identity.id },
|
|
164
|
-
});
|
|
165
|
-
if (!result) {
|
|
166
|
-
return Promise.reject(Error(`No identity found for id: ${identity.id}`));
|
|
167
|
-
}
|
|
168
|
-
if (identity.identifier.type === types_1.CorrelationIdentifierType.URL) {
|
|
169
|
-
if (!identity.connection) {
|
|
170
|
-
return Promise.reject(Error(`Identity with correlation type ${types_1.CorrelationIdentifierType.URL} should contain a connection`));
|
|
171
|
-
}
|
|
172
|
-
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
173
|
-
return Promise.reject(Error(`Connection type ${identity.connection.type}, does not match for provided config`));
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
debug('Updating identity', identity);
|
|
177
|
-
const updatedResult = yield identityRepository.save(identity, { transaction: true });
|
|
178
|
-
return (0, MappingUtils_1.identityFrom)(updatedResult);
|
|
179
|
-
});
|
|
180
|
-
this.removeIdentity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
const { identityId } = args;
|
|
182
|
-
const identity = yield (yield this.dbConnection).getRepository(IdentityEntity_1.IdentityEntity).findOne({
|
|
183
|
-
where: { id: identityId },
|
|
184
|
-
});
|
|
185
|
-
if (!identity) {
|
|
186
|
-
return Promise.reject(Error(`No identity found for id: ${identityId}`));
|
|
187
|
-
}
|
|
188
|
-
debug('Removing identity', identityId);
|
|
189
|
-
yield this.deleteIdentities([identity]);
|
|
190
|
-
});
|
|
191
|
-
this.addRelationship = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
-
const { leftId, rightId } = args;
|
|
193
|
-
return this.assertRelationshipSides(leftId, rightId).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
194
|
-
const relationship = (0, MappingUtils_1.partyRelationshipEntityFrom)({
|
|
195
|
-
leftId,
|
|
196
|
-
rightId,
|
|
197
|
-
});
|
|
198
|
-
debug('Adding party relationship', relationship);
|
|
199
|
-
const createdResult = yield (yield this.dbConnection).getRepository(PartyRelationshipEntity_1.PartyRelationshipEntity).save(relationship);
|
|
200
|
-
return (0, MappingUtils_1.partyRelationshipFrom)(createdResult);
|
|
201
|
-
}));
|
|
202
|
-
});
|
|
203
|
-
this.getRelationship = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
204
|
-
const { relationshipId } = args;
|
|
205
|
-
const result = yield (yield this.dbConnection).getRepository(PartyRelationshipEntity_1.PartyRelationshipEntity).findOne({
|
|
206
|
-
where: { id: relationshipId },
|
|
207
|
-
});
|
|
208
|
-
if (!result) {
|
|
209
|
-
return Promise.reject(Error(`No relationship found for id: ${relationshipId}`));
|
|
210
|
-
}
|
|
211
|
-
return (0, MappingUtils_1.partyRelationshipFrom)(result);
|
|
212
|
-
});
|
|
213
|
-
this.getRelationships = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
215
|
-
const partyRelationshipRepository = (yield this.dbConnection).getRepository(PartyRelationshipEntity_1.PartyRelationshipEntity);
|
|
216
|
-
const initialResult = yield partyRelationshipRepository.find(Object.assign({}, (filter && { where: filter })));
|
|
217
|
-
const result = yield partyRelationshipRepository.find({
|
|
218
|
-
where: {
|
|
219
|
-
id: (0, typeorm_1.In)(initialResult.map((partyRelationship) => partyRelationship.id)),
|
|
220
|
-
},
|
|
221
|
-
});
|
|
222
|
-
return result.map((partyRelationship) => (0, MappingUtils_1.partyRelationshipFrom)(partyRelationship));
|
|
223
|
-
});
|
|
224
|
-
this.updateRelationship = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
const { relationship } = args;
|
|
226
|
-
const partyRelationshipRepository = (yield this.dbConnection).getRepository(PartyRelationshipEntity_1.PartyRelationshipEntity);
|
|
227
|
-
const result = yield partyRelationshipRepository.findOne({
|
|
228
|
-
where: { id: relationship.id },
|
|
229
|
-
});
|
|
230
|
-
if (!result) {
|
|
231
|
-
return Promise.reject(Error(`No party relationship found for id: ${relationship.id}`));
|
|
232
|
-
}
|
|
233
|
-
return this.assertRelationshipSides(relationship.leftId, relationship.rightId).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
debug('Updating party relationship', relationship);
|
|
235
|
-
const updatedResult = yield partyRelationshipRepository.save(relationship, { transaction: true });
|
|
236
|
-
return (0, MappingUtils_1.partyRelationshipFrom)(updatedResult);
|
|
237
|
-
}));
|
|
238
|
-
});
|
|
239
|
-
this.removeRelationship = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
240
|
-
const { relationshipId } = args;
|
|
241
|
-
const partyRelationshipRepository = (yield this.dbConnection).getRepository(PartyRelationshipEntity_1.PartyRelationshipEntity);
|
|
242
|
-
const relationship = yield partyRelationshipRepository.findOne({
|
|
243
|
-
where: { id: relationshipId },
|
|
244
|
-
});
|
|
245
|
-
if (!relationship) {
|
|
246
|
-
return Promise.reject(Error(`No relationship found for id: ${relationshipId}`));
|
|
247
|
-
}
|
|
248
|
-
debug('Removing relationship', relationshipId);
|
|
249
|
-
yield partyRelationshipRepository.delete(relationshipId);
|
|
250
|
-
});
|
|
251
|
-
this.addPartyType = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
252
|
-
const partyEntity = (0, MappingUtils_1.partyTypeEntityFrom)(args);
|
|
253
|
-
debug('Adding party type', args);
|
|
254
|
-
const createdResult = yield (yield this.dbConnection).getRepository(PartyTypeEntity_1.PartyTypeEntity).save(partyEntity);
|
|
255
|
-
return (0, MappingUtils_1.partyTypeFrom)(createdResult);
|
|
256
|
-
});
|
|
257
|
-
this.getPartyType = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
258
|
-
const { partyTypeId } = args;
|
|
259
|
-
const result = yield (yield this.dbConnection).getRepository(PartyTypeEntity_1.PartyTypeEntity).findOne({
|
|
260
|
-
where: { id: partyTypeId },
|
|
261
|
-
});
|
|
262
|
-
if (!result) {
|
|
263
|
-
return Promise.reject(Error(`No party type found for id: ${partyTypeId}`));
|
|
264
|
-
}
|
|
265
|
-
return (0, MappingUtils_1.partyTypeFrom)(result);
|
|
266
|
-
});
|
|
267
|
-
this.getPartyTypes = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
269
|
-
const partyTypeRepository = (yield this.dbConnection).getRepository(PartyTypeEntity_1.PartyTypeEntity);
|
|
270
|
-
const initialResult = yield partyTypeRepository.find(Object.assign({}, (filter && { where: filter })));
|
|
271
|
-
const result = yield partyTypeRepository.find({
|
|
272
|
-
where: {
|
|
273
|
-
id: (0, typeorm_1.In)(initialResult.map((partyType) => partyType.id)),
|
|
274
|
-
},
|
|
275
|
-
});
|
|
276
|
-
return result.map((partyType) => (0, MappingUtils_1.partyTypeFrom)(partyType));
|
|
277
|
-
});
|
|
278
|
-
this.updatePartyType = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
279
|
-
const { partyType } = args;
|
|
280
|
-
const partyTypeRepository = (yield this.dbConnection).getRepository(PartyTypeEntity_1.PartyTypeEntity);
|
|
281
|
-
const result = yield partyTypeRepository.findOne({
|
|
282
|
-
where: { id: partyType.id },
|
|
283
|
-
});
|
|
284
|
-
if (!result) {
|
|
285
|
-
return Promise.reject(Error(`No party type found for id: ${partyType.id}`));
|
|
286
|
-
}
|
|
287
|
-
debug('Updating party type', partyType);
|
|
288
|
-
const updatedResult = yield partyTypeRepository.save(partyType, { transaction: true });
|
|
289
|
-
return (0, MappingUtils_1.partyTypeFrom)(updatedResult);
|
|
290
|
-
});
|
|
291
|
-
this.removePartyType = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
const { partyTypeId } = args;
|
|
293
|
-
const parties = yield (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity).find({
|
|
294
|
-
where: {
|
|
295
|
-
partyType: {
|
|
296
|
-
id: partyTypeId,
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
});
|
|
300
|
-
if (parties.length > 0) {
|
|
301
|
-
return Promise.reject(Error(`Unable to remove party type with id: ${partyTypeId}. Party type is in use`));
|
|
302
|
-
}
|
|
303
|
-
const partyTypeRepository = (yield this.dbConnection).getRepository(PartyTypeEntity_1.PartyTypeEntity);
|
|
304
|
-
const partyType = yield partyTypeRepository.findOne({
|
|
305
|
-
where: { id: partyTypeId },
|
|
306
|
-
});
|
|
307
|
-
if (!partyType) {
|
|
308
|
-
return Promise.reject(Error(`No party type found for id: ${partyTypeId}`));
|
|
309
|
-
}
|
|
310
|
-
debug('Removing party type', partyTypeId);
|
|
311
|
-
yield partyTypeRepository.delete(partyTypeId);
|
|
312
|
-
});
|
|
313
|
-
this.getElectronicAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
314
|
-
const { electronicAddressId } = args;
|
|
315
|
-
const result = yield (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity).findOne({
|
|
316
|
-
where: { id: electronicAddressId },
|
|
317
|
-
});
|
|
318
|
-
if (!result) {
|
|
319
|
-
return Promise.reject(Error(`No electronic address found for id: ${electronicAddressId}`));
|
|
320
|
-
}
|
|
321
|
-
return (0, MappingUtils_1.electronicAddressFrom)(result);
|
|
322
|
-
});
|
|
323
|
-
this.getElectronicAddresses = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
325
|
-
const electronicAddressRepository = (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity);
|
|
326
|
-
const initialResult = yield electronicAddressRepository.find(Object.assign({}, (filter && { where: filter })));
|
|
327
|
-
const result = yield electronicAddressRepository.find({
|
|
328
|
-
where: {
|
|
329
|
-
id: (0, typeorm_1.In)(initialResult.map((electronicAddress) => electronicAddress.id)),
|
|
330
|
-
},
|
|
331
|
-
});
|
|
332
|
-
return result.map((electronicAddress) => (0, MappingUtils_1.electronicAddressFrom)(electronicAddress));
|
|
333
|
-
});
|
|
334
|
-
this.addElectronicAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
335
|
-
const { electronicAddress, partyId } = args;
|
|
336
|
-
const party = yield (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity).findOne({
|
|
337
|
-
where: { id: partyId },
|
|
338
|
-
});
|
|
339
|
-
if (!party) {
|
|
340
|
-
return Promise.reject(Error(`No party found for id: ${partyId}`));
|
|
341
|
-
}
|
|
342
|
-
const electronicAddressEntity = (0, MappingUtils_1.electronicAddressEntityFrom)(electronicAddress);
|
|
343
|
-
electronicAddressEntity.party = party;
|
|
344
|
-
debug('Adding electronic address', electronicAddress);
|
|
345
|
-
const result = yield (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity).save(electronicAddressEntity, {
|
|
346
|
-
transaction: true,
|
|
347
|
-
});
|
|
348
|
-
return (0, MappingUtils_1.electronicAddressFrom)(result);
|
|
349
|
-
});
|
|
350
|
-
this.updateElectronicAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
351
|
-
const { electronicAddress } = args;
|
|
352
|
-
const electronicAddressRepository = (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity);
|
|
353
|
-
const result = yield electronicAddressRepository.findOne({
|
|
354
|
-
where: { id: electronicAddress.id },
|
|
355
|
-
});
|
|
356
|
-
if (!result) {
|
|
357
|
-
return Promise.reject(Error(`No electronic address found for id: ${electronicAddress.id}`));
|
|
358
|
-
}
|
|
359
|
-
debug('Updating electronic address', electronicAddress);
|
|
360
|
-
const updatedResult = yield electronicAddressRepository.save(electronicAddress, { transaction: true });
|
|
361
|
-
return (0, MappingUtils_1.electronicAddressFrom)(updatedResult);
|
|
362
|
-
});
|
|
363
|
-
this.removeElectronicAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
364
|
-
const { electronicAddressId } = args;
|
|
365
|
-
const electronicAddressRepository = (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity);
|
|
366
|
-
const electronicAddress = yield electronicAddressRepository.findOne({
|
|
367
|
-
where: { id: electronicAddressId },
|
|
368
|
-
});
|
|
369
|
-
if (!electronicAddress) {
|
|
370
|
-
return Promise.reject(Error(`No electronic address found for id: ${electronicAddressId}`));
|
|
371
|
-
}
|
|
372
|
-
debug('Removing electronic address', electronicAddressId);
|
|
373
|
-
yield electronicAddressRepository.delete(electronicAddressId);
|
|
374
|
-
});
|
|
375
|
-
this.getPhysicalAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
376
|
-
const { physicalAddressId } = args;
|
|
377
|
-
const result = yield (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity).findOne({
|
|
378
|
-
where: { id: physicalAddressId },
|
|
379
|
-
});
|
|
380
|
-
if (!result) {
|
|
381
|
-
return Promise.reject(Error(`No physical address found for id: ${physicalAddressId}`));
|
|
382
|
-
}
|
|
383
|
-
return (0, MappingUtils_1.physicalAddressFrom)(result);
|
|
384
|
-
});
|
|
385
|
-
this.getPhysicalAddresses = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
386
|
-
const { filter } = args !== null && args !== void 0 ? args : {};
|
|
387
|
-
const physicalAddressRepository = (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity);
|
|
388
|
-
const initialResult = yield physicalAddressRepository.find(Object.assign({}, (filter && { where: filter })));
|
|
389
|
-
const result = yield physicalAddressRepository.find({
|
|
390
|
-
where: {
|
|
391
|
-
id: (0, typeorm_1.In)(initialResult.map((physicalAddress) => physicalAddress.id)),
|
|
392
|
-
},
|
|
393
|
-
});
|
|
394
|
-
return result.map((physicalAddress) => (0, MappingUtils_1.physicalAddressFrom)(physicalAddress));
|
|
395
|
-
});
|
|
396
|
-
this.addPhysicalAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
397
|
-
const { physicalAddress, partyId } = args;
|
|
398
|
-
const party = yield (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity).findOne({
|
|
399
|
-
where: { id: partyId },
|
|
400
|
-
});
|
|
401
|
-
if (!party) {
|
|
402
|
-
return Promise.reject(Error(`No party found for id: ${partyId}`));
|
|
403
|
-
}
|
|
404
|
-
const physicalAddressEntity = (0, MappingUtils_1.physicalAddressEntityFrom)(physicalAddress);
|
|
405
|
-
physicalAddressEntity.party = party;
|
|
406
|
-
debug('Adding physical address', physicalAddress);
|
|
407
|
-
const result = yield (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity).save(physicalAddressEntity, {
|
|
408
|
-
transaction: true,
|
|
409
|
-
});
|
|
410
|
-
return (0, MappingUtils_1.physicalAddressFrom)(result);
|
|
411
|
-
});
|
|
412
|
-
this.updatePhysicalAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
413
|
-
const { physicalAddress } = args;
|
|
414
|
-
const physicalAddressRepository = (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity);
|
|
415
|
-
const result = yield physicalAddressRepository.findOne({
|
|
416
|
-
where: { id: physicalAddress.id },
|
|
417
|
-
});
|
|
418
|
-
if (!result) {
|
|
419
|
-
return Promise.reject(Error(`No physical address found for id: ${physicalAddress.id}`));
|
|
420
|
-
}
|
|
421
|
-
debug('Updating physical address', physicalAddress);
|
|
422
|
-
const updatedResult = yield physicalAddressRepository.save(physicalAddress, { transaction: true });
|
|
423
|
-
return (0, MappingUtils_1.physicalAddressFrom)(updatedResult);
|
|
424
|
-
});
|
|
425
|
-
this.removePhysicalAddress = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
426
|
-
const { physicalAddressId } = args;
|
|
427
|
-
const physicalAddressRepository = (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity);
|
|
428
|
-
const physicalAddress = yield physicalAddressRepository.findOne({
|
|
429
|
-
where: { id: physicalAddressId },
|
|
430
|
-
});
|
|
431
|
-
if (!physicalAddress) {
|
|
432
|
-
return Promise.reject(Error(`No physical address found for id: ${physicalAddressId}`));
|
|
433
|
-
}
|
|
434
|
-
debug('Removing physical address', physicalAddressId);
|
|
435
|
-
yield physicalAddressRepository.delete(physicalAddressId);
|
|
436
|
-
});
|
|
437
|
-
this.hasCorrectConnectionConfig = (type, config) => {
|
|
438
|
-
switch (type) {
|
|
439
|
-
case types_1.ConnectionType.OPENID_CONNECT:
|
|
440
|
-
return (0, MappingUtils_1.isOpenIdConfig)(config);
|
|
441
|
-
case types_1.ConnectionType.SIOPv2:
|
|
442
|
-
return (0, MappingUtils_1.isDidAuthConfig)(config);
|
|
443
|
-
default:
|
|
444
|
-
throw new Error('Connection type not supported');
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
this.hasCorrectPartyType = (type, contact) => {
|
|
448
|
-
switch (type) {
|
|
449
|
-
case types_1.PartyTypeType.NATURAL_PERSON:
|
|
450
|
-
return (0, MappingUtils_1.isNaturalPerson)(contact);
|
|
451
|
-
case types_1.PartyTypeType.ORGANIZATION:
|
|
452
|
-
return (0, MappingUtils_1.isOrganization)(contact);
|
|
453
|
-
default:
|
|
454
|
-
throw new Error('Party type not supported');
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
this.deleteIdentities = (identities) => __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
debug('Removing identities', identities);
|
|
459
|
-
const connection = yield this.dbConnection;
|
|
460
|
-
const correlationIdentifierRepository = connection.getRepository(CorrelationIdentifierEntity_1.CorrelationIdentifierEntity);
|
|
461
|
-
const baseConfigRepository = connection.getRepository(BaseConfigEntity_1.BaseConfigEntity);
|
|
462
|
-
const connectionRepository = connection.getRepository(ConnectionEntity_1.ConnectionEntity);
|
|
463
|
-
const identityMetadataItemRepository = connection.getRepository(IdentityMetadataItemEntity_1.IdentityMetadataItemEntity);
|
|
464
|
-
const identityRepository = connection.getRepository(IdentityEntity_1.IdentityEntity);
|
|
465
|
-
identities.map((identity) => __awaiter(this, void 0, void 0, function* () {
|
|
466
|
-
yield correlationIdentifierRepository
|
|
467
|
-
.delete(identity.identifier.id)
|
|
468
|
-
.catch((error) => Promise.reject(Error(`Unable to remove identity.identifier with id ${identity.identifier.id}. ${error}`)));
|
|
469
|
-
if (identity.connection) {
|
|
470
|
-
yield baseConfigRepository.delete(identity.connection.config.id);
|
|
471
|
-
yield connectionRepository
|
|
472
|
-
.delete(identity.connection.id)
|
|
473
|
-
.catch((error) => { var _a; return Promise.reject(Error(`Unable to remove identity.connection with id ${(_a = identity.connection) === null || _a === void 0 ? void 0 : _a.id}. ${error}`)); });
|
|
474
|
-
}
|
|
475
|
-
if (identity.metadata) {
|
|
476
|
-
identity.metadata.map((metadataItem) => __awaiter(this, void 0, void 0, function* () {
|
|
477
|
-
yield identityMetadataItemRepository
|
|
478
|
-
.delete(metadataItem.id)
|
|
479
|
-
.catch((error) => Promise.reject(Error(`Unable to remove identity.metadataItem with id ${metadataItem.id}. ${error}`)));
|
|
480
|
-
}));
|
|
481
|
-
}
|
|
482
|
-
yield identityRepository
|
|
483
|
-
.delete(identity.id)
|
|
484
|
-
.catch((error) => Promise.reject(Error(`Unable to remove identity with id ${identity.id}. ${error}`)));
|
|
485
|
-
}));
|
|
486
|
-
});
|
|
487
|
-
this.deleteElectronicAddresses = (electronicAddresses) => __awaiter(this, void 0, void 0, function* () {
|
|
488
|
-
debug('Removing electronic addresses', electronicAddresses);
|
|
489
|
-
const electronicAddressRepository = (yield this.dbConnection).getRepository(ElectronicAddressEntity_1.ElectronicAddressEntity);
|
|
490
|
-
electronicAddresses.map((electronicAddress) => __awaiter(this, void 0, void 0, function* () {
|
|
491
|
-
yield electronicAddressRepository
|
|
492
|
-
.delete(electronicAddress.id)
|
|
493
|
-
.catch((error) => Promise.reject(Error(`Unable to remove electronic address with id ${electronicAddress.id}. ${error}`)));
|
|
494
|
-
}));
|
|
495
|
-
});
|
|
496
|
-
this.deletePhysicalAddresses = (physicalAddresses) => __awaiter(this, void 0, void 0, function* () {
|
|
497
|
-
debug('Removing physical addresses', physicalAddresses);
|
|
498
|
-
const physicalAddressRepository = (yield this.dbConnection).getRepository(PhysicalAddressEntity_1.PhysicalAddressEntity);
|
|
499
|
-
physicalAddresses.map((physicalAddress) => __awaiter(this, void 0, void 0, function* () {
|
|
500
|
-
yield physicalAddressRepository
|
|
501
|
-
.delete(physicalAddress.id)
|
|
502
|
-
.catch((error) => Promise.reject(Error(`Unable to remove physical address with id ${physicalAddress.id}. ${error}`)));
|
|
503
|
-
}));
|
|
504
|
-
});
|
|
505
|
-
this.assertRelationshipSides = (leftId, rightId) => __awaiter(this, void 0, void 0, function* () {
|
|
506
|
-
const partyRepository = (yield this.dbConnection).getRepository(PartyEntity_1.PartyEntity);
|
|
507
|
-
const leftParty = yield partyRepository.findOne({
|
|
508
|
-
where: { id: leftId },
|
|
509
|
-
});
|
|
510
|
-
if (!leftParty) {
|
|
511
|
-
return Promise.reject(Error(`No party found for left side of the relationship, party id: ${leftId}`));
|
|
512
|
-
}
|
|
513
|
-
const rightParty = yield partyRepository.findOne({
|
|
514
|
-
where: { id: rightId },
|
|
515
|
-
});
|
|
516
|
-
if (!rightParty) {
|
|
517
|
-
return Promise.reject(Error(`No party found for right side of the relationship, party id: ${rightId}`));
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
this.buildFilters = (filter) => {
|
|
521
|
-
if (!filter)
|
|
522
|
-
return {};
|
|
523
|
-
return filter.map((condition) => this.processCondition(condition));
|
|
524
|
-
};
|
|
525
|
-
this.processCondition = (condition) => {
|
|
526
|
-
const conditionObject = {};
|
|
527
|
-
Object.keys(condition).forEach((key) => {
|
|
528
|
-
const value = condition[key];
|
|
529
|
-
if (key === 'metadata' && value) {
|
|
530
|
-
conditionObject[key] = this.buildMetadataCondition(value);
|
|
531
|
-
}
|
|
532
|
-
else if (typeof value === 'object' && value !== null) {
|
|
533
|
-
conditionObject[key] = this.processCondition(value);
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
conditionObject[key] = value;
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
return conditionObject;
|
|
540
|
-
};
|
|
541
|
-
this.buildMetadataCondition = (metadata) => {
|
|
542
|
-
const metadataCondition = {
|
|
543
|
-
label: metadata.label,
|
|
544
|
-
};
|
|
545
|
-
switch (typeof metadata.value) {
|
|
546
|
-
case 'string':
|
|
547
|
-
metadataCondition.stringValue = metadata.value;
|
|
548
|
-
break;
|
|
549
|
-
case 'number':
|
|
550
|
-
metadataCondition.numberValue = metadata.value;
|
|
551
|
-
break;
|
|
552
|
-
case 'boolean':
|
|
553
|
-
metadataCondition.boolValue = metadata.value;
|
|
554
|
-
break;
|
|
555
|
-
case 'object':
|
|
556
|
-
if (metadata.value instanceof Date) {
|
|
557
|
-
metadataCondition.dateValue = metadata.value;
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
// For now, we only support / implement not-primitive type Date in the entity
|
|
561
|
-
throw new Error(`Unsupported object type: ${Object.prototype.toString.call(metadata.value).slice(8, -1)} for value ${metadata.value}`); // slice to extract type from string [object String]
|
|
562
|
-
}
|
|
563
|
-
break;
|
|
564
|
-
default:
|
|
565
|
-
throw new Error(`Unsupported value type: ${typeof metadata.value}`);
|
|
566
|
-
}
|
|
567
|
-
return metadataCondition;
|
|
568
|
-
};
|
|
569
|
-
this.dbConnection = dbConnection;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
exports.ContactStore = ContactStore;
|
|
573
|
-
//# sourceMappingURL=ContactStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContactStore.js","sourceRoot":"","sources":["../../src/contact/ContactStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qCAAkF;AAClF,kDAAyB;AACzB,iEAA6D;AAC7D,iEAA6D;AAC7D,uEAAmE;AACnE,+FAA2F;AAC3F,iGAA6F;AAC7F,2EAAuE;AACvE,2EAAuE;AACvE,yFAAqF;AACrF,yEAAqE;AACrE,6EAAyE;AACzE,yFAAqF;AACrF,qFAAiF;AACjF,gEAiBsC;AACtC,oCA6CiB;AAEjB,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,gCAAgC,CAAC,CAAA;AAErE,MAAa,YAAa,SAAQ,2CAAoB;IAGpD,YAAY,YAAmC;QAC7C,KAAK,EAAE,CAAA;QAIT,aAAQ,GAAG,CAAO,IAAkB,EAAkB,EAAE;YACtD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;YACxB,MAAM,MAAM,GAAuB,MAAM,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,yBAAW,CAAC,CAAC,OAAO,CAAC;gBACpG,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;aACvB,CAAC,CAAA;YAEF,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC,CAAA;YACnE,CAAC;YAED,OAAO,IAAA,wBAA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K,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA,CAAC,oDAAoD;oBAC7L,CAAC;oBACD,MAAK;gBACP;oBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,OAAO,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;YACvE,CAAC;YACD,OAAO,iBAAiB,CAAA;QAC1B,CAAC,CAAA;QAvqBC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CAuqBF;AA7qBD,oCA6qBC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AddCredentialArgs, DigitalCredential, GetCredentialArgs, GetCredentialsArgs, GetCredentialsResponse, RemoveCredentialArgs, UpdateCredentialStateArgs } from '../types';
|
|
2
|
-
export declare abstract class AbstractDigitalCredentialStore {
|
|
3
|
-
abstract getCredential(args: GetCredentialArgs): Promise<DigitalCredential>;
|
|
4
|
-
abstract getCredentials(args?: GetCredentialsArgs): Promise<GetCredentialsResponse>;
|
|
5
|
-
abstract addCredential(args: AddCredentialArgs): Promise<DigitalCredential>;
|
|
6
|
-
abstract updateCredentialState(args: UpdateCredentialStateArgs): Promise<DigitalCredential>;
|
|
7
|
-
abstract removeCredential(args: RemoveCredentialArgs): Promise<boolean>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=AbstractDigitalCredentialStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDigitalCredentialStore.d.ts","sourceRoot":"","sources":["../../src/digitalCredential/AbstractDigitalCredentialStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AAEjB,8BAAsB,8BAA8B;IAClD,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAE3E,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAEnF,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAE3E,QAAQ,CAAC,qBAAqB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAE3F,QAAQ,CAAC,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;CACxE"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractDigitalCredentialStore = void 0;
|
|
4
|
-
class AbstractDigitalCredentialStore {
|
|
5
|
-
}
|
|
6
|
-
exports.AbstractDigitalCredentialStore = AbstractDigitalCredentialStore;
|
|
7
|
-
//# sourceMappingURL=AbstractDigitalCredentialStore.js.map
|