@sphereon/ssi-sdk.data-store 0.18.2-unstable.8 → 0.18.2-unstable.87
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/LICENSE +201 -201
- package/README.md +77 -77
- package/dist/contact/AbstractContactStore.d.ts +33 -23
- package/dist/contact/AbstractContactStore.d.ts.map +1 -1
- package/dist/contact/AbstractContactStore.js +6 -6
- package/dist/contact/AbstractContactStore.js.map +1 -1
- package/dist/contact/ContactStore.d.ts +44 -32
- package/dist/contact/ContactStore.d.ts.map +1 -1
- package/dist/contact/ContactStore.js +528 -365
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts +10 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts.map +1 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js +7 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +1 -0
- package/dist/digitalCredential/DigitalCredentialStore.d.ts +15 -0
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +1 -0
- package/dist/digitalCredential/DigitalCredentialStore.js +107 -0
- package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -0
- package/dist/entities/contact/BaseConfigEntity.d.ts +6 -6
- package/dist/entities/contact/BaseConfigEntity.js +33 -33
- package/dist/entities/contact/BaseContactEntity.d.ts +9 -9
- package/dist/entities/contact/BaseContactEntity.js +53 -53
- package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
- package/dist/entities/contact/ConnectionEntity.js +46 -46
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
- package/dist/entities/contact/CorrelationIdentifierEntity.js +71 -71
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +6 -6
- package/dist/entities/contact/DidAuthConfigEntity.js +32 -32
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +14 -13
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +95 -91
- package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
- package/dist/entities/contact/IdentityEntity.d.ts +20 -20
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +128 -128
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +9 -9
- package/dist/entities/contact/IdentityMetadataItemEntity.js +68 -68
- package/dist/entities/contact/NaturalPersonEntity.d.ts +8 -8
- package/dist/entities/contact/NaturalPersonEntity.js +71 -71
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +10 -10
- package/dist/entities/contact/OpenIdConfigEntity.js +48 -48
- package/dist/entities/contact/OrganizationEntity.d.ts +8 -8
- package/dist/entities/contact/OrganizationEntity.js +66 -66
- package/dist/entities/contact/PartyEntity.d.ts +21 -19
- package/dist/entities/contact/PartyEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyEntity.js +142 -131
- package/dist/entities/contact/PartyEntity.js.map +1 -1
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +12 -12
- package/dist/entities/contact/PartyRelationshipEntity.js +94 -94
- package/dist/entities/contact/PartyTypeEntity.d.ts +14 -14
- package/dist/entities/contact/PartyTypeEntity.js +103 -103
- package/dist/entities/contact/PhysicalAddressEntity.d.ts +21 -0
- package/dist/entities/contact/PhysicalAddressEntity.d.ts.map +1 -0
- package/dist/entities/contact/PhysicalAddressEntity.js +126 -0
- package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts +23 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +1 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +93 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -0
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -26
- package/dist/entities/eventLogger/AuditEventEntity.js +123 -123
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +10 -10
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +73 -73
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +17 -17
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +119 -119
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +14 -14
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +101 -101
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +91 -91
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +38 -38
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +94 -94
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +61 -61
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts +18 -18
- package/dist/entities/statusList2021/StatusList2021Entity.js +114 -114
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +10 -10
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +50 -50
- package/dist/entities/validators/index.d.ts +6 -6
- package/dist/entities/validators/index.js +26 -26
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +6 -6
- package/dist/eventLogger/AbstractEventLoggerStore.js +6 -6
- package/dist/eventLogger/EventLoggerStore.d.ts +12 -12
- package/dist/eventLogger/EventLoggerStore.js +43 -43
- package/dist/index.d.ts +45 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -127
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +19 -19
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -6
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +30 -30
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +390 -374
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/migrations/generic/1-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/1-CreateContacts.js +77 -77
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +77 -77
- package/dist/migrations/generic/3-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/3-CreateContacts.js +77 -77
- package/dist/migrations/generic/4-CreateStatusList.d.ts +6 -6
- package/dist/migrations/generic/4-CreateStatusList.js +71 -71
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/generic/5-CreateAuditEvents.js +77 -77
- package/dist/migrations/generic/{2-CreateContacts.d.ts → 6-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/generic/{2-CreateContacts.js → 6-CreateDigitalCredential.js} +23 -23
- package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -0
- package/dist/migrations/generic/index.d.ts +18 -16
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +30 -27
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +10 -5
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +6 -6
- package/dist/migrations/internal-migrations-ormconfig.js +26 -26
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +56 -56
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +68 -68
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +68 -68
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +6 -6
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js +31 -31
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +42 -42
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/{generic/3-CreateStatusList.d.ts → postgres/1708525189001-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +59 -0
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -0
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +78 -78
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +88 -88
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +104 -107
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +6 -6
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +31 -31
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +28 -28
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/{postgres/CreateStatusList1693866470001-CreateStatusList.d.ts → sqlite/1708525189002-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +50 -0
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +1 -0
- package/dist/statusList/IStatusListStore.d.ts +19 -19
- package/dist/statusList/IStatusListStore.js +2 -2
- package/dist/statusList/StatusListStore.d.ts +35 -35
- package/dist/statusList/StatusListStore.js +212 -212
- package/dist/types/contact/IAbstractContactStore.d.ts +109 -74
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
- package/dist/types/contact/IAbstractContactStore.js +2 -2
- package/dist/types/contact/contact.d.ts +196 -173
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +25 -25
- package/dist/types/contact/contact.js.map +1 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts +37 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts.map +1 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +3 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js.map +1 -0
- package/dist/types/digitalCredential/digitalCredential.d.ts +42 -0
- package/dist/types/digitalCredential/digitalCredential.d.ts.map +1 -0
- package/dist/types/digitalCredential/digitalCredential.js +28 -0
- package/dist/types/digitalCredential/digitalCredential.js.map +1 -0
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -9
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js +2 -2
- package/dist/types/eventLogger/eventLogger.d.ts +2 -2
- package/dist/types/eventLogger/eventLogger.js +2 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.js +25 -25
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +58 -58
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +2 -2
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +114 -114
- package/dist/types/issuanceBranding/issuanceBranding.js +2 -2
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +37 -37
- package/dist/types/statusList/IAbstractStatusListStore.js +2 -2
- package/dist/types/statusList/statusList.d.ts +24 -24
- package/dist/types/statusList/statusList.js +2 -2
- package/dist/types/validation/validation.d.ts +3 -3
- package/dist/types/validation/validation.js +2 -2
- package/dist/utils/ValidatorUtils.d.ts +3 -3
- package/dist/utils/ValidatorUtils.js +12 -12
- package/dist/utils/contact/MappingUtils.d.ts +49 -46
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.js +326 -290
- package/dist/utils/contact/MappingUtils.js.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts +9 -0
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -0
- package/dist/utils/digitalCredential/MappingUtils.js +92 -0
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -0
- package/package.json +5 -4
- package/src/__tests__/contact.entities.test.ts +323 -23
- package/src/__tests__/contact.store.test.ts +586 -10
- package/src/__tests__/digitalCredential.entities.test.ts +247 -0
- package/src/__tests__/digitalCredential.store.test.ts +218 -0
- package/src/__tests__/eventLogger.entities.test.ts +73 -73
- package/src/__tests__/eventLogger.store.test.ts +136 -136
- package/src/contact/AbstractContactStore.ts +38 -17
- package/src/contact/ContactStore.ts +715 -501
- package/src/digitalCredential/AbstractDigitalCredentialStore.ts +17 -0
- package/src/digitalCredential/DigitalCredentialStore.ts +116 -0
- package/src/entities/contact/ElectronicAddressEntity.ts +3 -0
- package/src/entities/contact/IdentityEntity.ts +1 -1
- package/src/entities/contact/PartyEntity.ts +11 -1
- package/src/entities/contact/PhysicalAddressEntity.ts +87 -0
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +64 -0
- package/src/entities/eventLogger/AuditEventEntity.ts +99 -99
- package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
- package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
- package/src/eventLogger/EventLoggerStore.ts +62 -62
- package/src/index.ts +131 -113
- package/src/issuanceBranding/IssuanceBrandingStore.ts +78 -62
- package/src/migrations/generic/1-CreateContacts.ts +66 -66
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +64 -64
- package/src/migrations/generic/3-CreateContacts.ts +66 -66
- package/src/migrations/generic/4-CreateStatusList.ts +54 -54
- package/src/migrations/generic/5-CreateAuditEvents.ts +66 -66
- package/src/migrations/generic/6-CreateDigitalCredential.ts +66 -0
- package/src/migrations/generic/index.ts +30 -27
- package/src/migrations/index.ts +8 -1
- package/src/migrations/postgres/1693866470001-CreateStatusList.ts +24 -24
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -33
- package/src/migrations/postgres/1708525189001-CreateDigitalCredential.ts +44 -0
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +158 -163
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
- package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +34 -0
- package/src/types/contact/IAbstractContactStore.ts +58 -8
- package/src/types/contact/contact.ts +29 -4
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +34 -0
- package/src/types/digitalCredential/digitalCredential.ts +46 -0
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
- package/src/types/eventLogger/eventLogger.ts +3 -3
- package/src/types/index.ts +9 -9
- package/src/utils/contact/MappingUtils.ts +39 -1
- package/src/utils/digitalCredential/MappingUtils.ts +112 -0
- package/dist/entities/contact/ContactEntity.d.ts +0 -16
- package/dist/entities/contact/ContactEntity.d.ts.map +0 -1
- package/dist/entities/contact/ContactEntity.js +0 -164
- package/dist/entities/contact/ContactEntity.js.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.js +0 -96
- package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/generic/2-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/2-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/3-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/generic/3-CreateStatusList.js +0 -72
- package/dist/migrations/generic/3-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +0 -32
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/uuid.d.ts +0 -3
- package/dist/migrations/postgres/uuid.d.ts.map +0 -1
- package/dist/migrations/postgres/uuid.js +0 -25
- package/dist/migrations/postgres/uuid.js.map +0 -1
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IIssuer,
|
|
3
|
-
JwtDecodedVerifiableCredential,
|
|
4
|
-
StatusListCredentialIdMode,
|
|
5
|
-
StatusListDriverType,
|
|
6
|
-
StatusListIndexingDirection,
|
|
7
|
-
StatusListType,
|
|
8
|
-
StatusPurpose2021,
|
|
9
|
-
W3CVerifiableCredential,
|
|
10
|
-
} from '@sphereon/ssi-types'
|
|
11
|
-
import { ProofFormat } from '@veramo/core'
|
|
12
|
-
import { BaseEntity, Column, Entity, OneToMany, PrimaryColumn, Unique } from 'typeorm'
|
|
13
|
-
import { StatusListEntryEntity } from './StatusList2021EntryEntity'
|
|
14
|
-
|
|
15
|
-
@Entity('StatusList')
|
|
16
|
-
@Unique('UQ_correlationId', ['correlationId'])
|
|
17
|
-
export class StatusListEntity extends BaseEntity {
|
|
18
|
-
@PrimaryColumn({ name: 'id', type: 'varchar' })
|
|
19
|
-
id!: string
|
|
20
|
-
|
|
21
|
-
@Column({ name: 'correlationId', type: 'varchar', nullable: false })
|
|
22
|
-
correlationId!: string
|
|
23
|
-
|
|
24
|
-
@Column({ name: 'length', nullable: false, unique: false })
|
|
25
|
-
length!: number
|
|
26
|
-
|
|
27
|
-
@Column({
|
|
28
|
-
name: 'issuer',
|
|
29
|
-
type: 'text',
|
|
30
|
-
nullable: false,
|
|
31
|
-
unique: false,
|
|
32
|
-
transformer: {
|
|
33
|
-
from(value: string): string | IIssuer {
|
|
34
|
-
if (value?.trim()?.startsWith('{')) {
|
|
35
|
-
return JSON.parse(value)
|
|
36
|
-
}
|
|
37
|
-
return value
|
|
38
|
-
},
|
|
39
|
-
to(value: string | IIssuer): string {
|
|
40
|
-
if (typeof value === 'string') {
|
|
41
|
-
return value
|
|
42
|
-
}
|
|
43
|
-
return JSON.stringify(value)
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
})
|
|
47
|
-
issuer!: string | IIssuer
|
|
48
|
-
|
|
49
|
-
@Column('simple-enum', { name: 'type', enum: StatusListType, nullable: false, default: StatusListType.StatusList2021 })
|
|
50
|
-
type!: StatusListType
|
|
51
|
-
|
|
52
|
-
@Column('simple-enum', { name: 'driverType', enum: StatusListDriverType, nullable: false, default: StatusListDriverType.AGENT_TYPEORM })
|
|
53
|
-
driverType!: StatusListDriverType
|
|
54
|
-
|
|
55
|
-
@Column('simple-enum', {
|
|
56
|
-
name: 'credentialIdMode',
|
|
57
|
-
enum: StatusListCredentialIdMode,
|
|
58
|
-
nullable: false,
|
|
59
|
-
default: StatusListCredentialIdMode.ISSUANCE,
|
|
60
|
-
})
|
|
61
|
-
credentialIdMode!: StatusListCredentialIdMode
|
|
62
|
-
|
|
63
|
-
@Column({ type: 'varchar', name: 'proofFormat', enum: ['lds', 'jwt'], nullable: false, default: 'lds' })
|
|
64
|
-
proofFormat!: ProofFormat
|
|
65
|
-
|
|
66
|
-
@Column({ type: 'varchar', name: 'indexingDirection', enum: ['rightToLeft'], nullable: false, default: 'rightToLeft' })
|
|
67
|
-
indexingDirection!: StatusListIndexingDirection
|
|
68
|
-
|
|
69
|
-
@Column({ type: 'varchar', name: 'statusPurpose', nullable: false, default: 'revocation' })
|
|
70
|
-
statusPurpose!: StatusPurpose2021
|
|
71
|
-
|
|
72
|
-
@Column({
|
|
73
|
-
name: 'statusListCredential',
|
|
74
|
-
type: 'text',
|
|
75
|
-
nullable: true,
|
|
76
|
-
unique: false,
|
|
77
|
-
transformer: {
|
|
78
|
-
from(value: string): W3CVerifiableCredential | JwtDecodedVerifiableCredential {
|
|
79
|
-
if (value?.startsWith('ey')) {
|
|
80
|
-
return value
|
|
81
|
-
}
|
|
82
|
-
return JSON.parse(value)
|
|
83
|
-
},
|
|
84
|
-
to(value: W3CVerifiableCredential | JwtDecodedVerifiableCredential): string {
|
|
85
|
-
if (typeof value === 'string') {
|
|
86
|
-
return value
|
|
87
|
-
}
|
|
88
|
-
return JSON.stringify(value)
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
})
|
|
92
|
-
statusListCredential?: W3CVerifiableCredential | JwtDecodedVerifiableCredential
|
|
93
|
-
|
|
94
|
-
@OneToMany((type) => StatusListEntryEntity, (entry) => entry.statusList)
|
|
95
|
-
statusListEntries!: StatusListEntryEntity[]
|
|
96
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
IIssuer,
|
|
3
|
+
JwtDecodedVerifiableCredential,
|
|
4
|
+
StatusListCredentialIdMode,
|
|
5
|
+
StatusListDriverType,
|
|
6
|
+
StatusListIndexingDirection,
|
|
7
|
+
StatusListType,
|
|
8
|
+
StatusPurpose2021,
|
|
9
|
+
W3CVerifiableCredential,
|
|
10
|
+
} from '@sphereon/ssi-types'
|
|
11
|
+
import { ProofFormat } from '@veramo/core'
|
|
12
|
+
import { BaseEntity, Column, Entity, OneToMany, PrimaryColumn, Unique } from 'typeorm'
|
|
13
|
+
import { StatusListEntryEntity } from './StatusList2021EntryEntity'
|
|
14
|
+
|
|
15
|
+
@Entity('StatusList')
|
|
16
|
+
@Unique('UQ_correlationId', ['correlationId'])
|
|
17
|
+
export class StatusListEntity extends BaseEntity {
|
|
18
|
+
@PrimaryColumn({ name: 'id', type: 'varchar' })
|
|
19
|
+
id!: string
|
|
20
|
+
|
|
21
|
+
@Column({ name: 'correlationId', type: 'varchar', nullable: false })
|
|
22
|
+
correlationId!: string
|
|
23
|
+
|
|
24
|
+
@Column({ name: 'length', nullable: false, unique: false })
|
|
25
|
+
length!: number
|
|
26
|
+
|
|
27
|
+
@Column({
|
|
28
|
+
name: 'issuer',
|
|
29
|
+
type: 'text',
|
|
30
|
+
nullable: false,
|
|
31
|
+
unique: false,
|
|
32
|
+
transformer: {
|
|
33
|
+
from(value: string): string | IIssuer {
|
|
34
|
+
if (value?.trim()?.startsWith('{')) {
|
|
35
|
+
return JSON.parse(value)
|
|
36
|
+
}
|
|
37
|
+
return value
|
|
38
|
+
},
|
|
39
|
+
to(value: string | IIssuer): string {
|
|
40
|
+
if (typeof value === 'string') {
|
|
41
|
+
return value
|
|
42
|
+
}
|
|
43
|
+
return JSON.stringify(value)
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
issuer!: string | IIssuer
|
|
48
|
+
|
|
49
|
+
@Column('simple-enum', { name: 'type', enum: StatusListType, nullable: false, default: StatusListType.StatusList2021 })
|
|
50
|
+
type!: StatusListType
|
|
51
|
+
|
|
52
|
+
@Column('simple-enum', { name: 'driverType', enum: StatusListDriverType, nullable: false, default: StatusListDriverType.AGENT_TYPEORM })
|
|
53
|
+
driverType!: StatusListDriverType
|
|
54
|
+
|
|
55
|
+
@Column('simple-enum', {
|
|
56
|
+
name: 'credentialIdMode',
|
|
57
|
+
enum: StatusListCredentialIdMode,
|
|
58
|
+
nullable: false,
|
|
59
|
+
default: StatusListCredentialIdMode.ISSUANCE,
|
|
60
|
+
})
|
|
61
|
+
credentialIdMode!: StatusListCredentialIdMode
|
|
62
|
+
|
|
63
|
+
@Column({ type: 'varchar', name: 'proofFormat', enum: ['lds', 'jwt'], nullable: false, default: 'lds' })
|
|
64
|
+
proofFormat!: ProofFormat
|
|
65
|
+
|
|
66
|
+
@Column({ type: 'varchar', name: 'indexingDirection', enum: ['rightToLeft'], nullable: false, default: 'rightToLeft' })
|
|
67
|
+
indexingDirection!: StatusListIndexingDirection
|
|
68
|
+
|
|
69
|
+
@Column({ type: 'varchar', name: 'statusPurpose', nullable: false, default: 'revocation' })
|
|
70
|
+
statusPurpose!: StatusPurpose2021
|
|
71
|
+
|
|
72
|
+
@Column({
|
|
73
|
+
name: 'statusListCredential',
|
|
74
|
+
type: 'text',
|
|
75
|
+
nullable: true,
|
|
76
|
+
unique: false,
|
|
77
|
+
transformer: {
|
|
78
|
+
from(value: string): W3CVerifiableCredential | JwtDecodedVerifiableCredential {
|
|
79
|
+
if (value?.startsWith('ey')) {
|
|
80
|
+
return value
|
|
81
|
+
}
|
|
82
|
+
return JSON.parse(value)
|
|
83
|
+
},
|
|
84
|
+
to(value: W3CVerifiableCredential | JwtDecodedVerifiableCredential): string {
|
|
85
|
+
if (typeof value === 'string') {
|
|
86
|
+
return value
|
|
87
|
+
}
|
|
88
|
+
return JSON.stringify(value)
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
})
|
|
92
|
+
statusListCredential?: W3CVerifiableCredential | JwtDecodedVerifiableCredential
|
|
93
|
+
|
|
94
|
+
@OneToMany((type) => StatusListEntryEntity, (entry) => entry.statusList)
|
|
95
|
+
statusListEntries!: StatusListEntryEntity[]
|
|
96
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types'
|
|
2
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core'
|
|
3
|
-
|
|
4
|
-
export abstract class AbstractEventLoggerStore {
|
|
5
|
-
abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>
|
|
6
|
-
abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>
|
|
7
|
-
}
|
|
1
|
+
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types'
|
|
2
|
+
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core'
|
|
3
|
+
|
|
4
|
+
export abstract class AbstractEventLoggerStore {
|
|
5
|
+
abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>
|
|
6
|
+
abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>
|
|
7
|
+
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import Debug, { Debugger } from 'debug'
|
|
2
|
-
import { DataSource } from 'typeorm'
|
|
3
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core'
|
|
4
|
-
import { OrPromise } from '@sphereon/ssi-types'
|
|
5
|
-
import { AbstractEventLoggerStore } from './AbstractEventLoggerStore'
|
|
6
|
-
import { AuditEventEntity, auditEventEntityFrom } from '../entities/eventLogger/AuditEventEntity'
|
|
7
|
-
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types'
|
|
8
|
-
|
|
9
|
-
const debug: Debugger = Debug('sphereon:ssi-sdk:event-store')
|
|
10
|
-
|
|
11
|
-
export class EventLoggerStore extends AbstractEventLoggerStore {
|
|
12
|
-
private readonly dbConnection: OrPromise<DataSource>
|
|
13
|
-
|
|
14
|
-
constructor(dbConnection: OrPromise<DataSource>) {
|
|
15
|
-
super()
|
|
16
|
-
this.dbConnection = dbConnection
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
getAuditEvents = async (args?: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>> => {
|
|
20
|
-
const connection: DataSource = await this.dbConnection // TODO apply everywhere
|
|
21
|
-
debug('Getting audit events', args)
|
|
22
|
-
const result: Array<AuditEventEntity> = await connection.getRepository(AuditEventEntity).find({
|
|
23
|
-
...(args?.filter && { where: args?.filter }),
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
return result.map((event: AuditEventEntity) => this.auditEventFrom(event))
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
storeAuditEvent = async (args: StoreAuditEventArgs): Promise<AuditLoggingEvent> => {
|
|
30
|
-
const { event } = args
|
|
31
|
-
|
|
32
|
-
const auditEventEntity: AuditEventEntity = auditEventEntityFrom(event)
|
|
33
|
-
const connection: DataSource = await this.dbConnection
|
|
34
|
-
debug('Storing audit event', auditEventEntity)
|
|
35
|
-
const createdResult: AuditEventEntity = await connection.getRepository(AuditEventEntity).save(auditEventEntity)
|
|
36
|
-
|
|
37
|
-
return this.auditEventFrom(createdResult)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
private auditEventFrom = (event: AuditEventEntity): AuditLoggingEvent => {
|
|
41
|
-
return {
|
|
42
|
-
id: event.id,
|
|
43
|
-
description: event.description,
|
|
44
|
-
timestamp: event.timestamp,
|
|
45
|
-
level: event.level,
|
|
46
|
-
correlationId: event.correlationId,
|
|
47
|
-
actionType: event.actionType,
|
|
48
|
-
actionSubType: event.actionSubType,
|
|
49
|
-
initiatorType: event.initiatorType,
|
|
50
|
-
partyAlias: event.partyAlias,
|
|
51
|
-
partyCorrelationId: event.partyCorrelationId,
|
|
52
|
-
partyCorrelationType: event.partyCorrelationType,
|
|
53
|
-
subSystemType: event.subSystemType,
|
|
54
|
-
system: event.system,
|
|
55
|
-
systemAlias: event.systemAlias,
|
|
56
|
-
systemCorrelationId: event.systemCorrelationId,
|
|
57
|
-
systemCorrelationIdType: event.systemCorrelationIdType,
|
|
58
|
-
...(event.data && { data: JSON.parse(event.data) }),
|
|
59
|
-
...(event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }),
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
import Debug, { Debugger } from 'debug'
|
|
2
|
+
import { DataSource } from 'typeorm'
|
|
3
|
+
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core'
|
|
4
|
+
import { OrPromise } from '@sphereon/ssi-types'
|
|
5
|
+
import { AbstractEventLoggerStore } from './AbstractEventLoggerStore'
|
|
6
|
+
import { AuditEventEntity, auditEventEntityFrom } from '../entities/eventLogger/AuditEventEntity'
|
|
7
|
+
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types'
|
|
8
|
+
|
|
9
|
+
const debug: Debugger = Debug('sphereon:ssi-sdk:event-store')
|
|
10
|
+
|
|
11
|
+
export class EventLoggerStore extends AbstractEventLoggerStore {
|
|
12
|
+
private readonly dbConnection: OrPromise<DataSource>
|
|
13
|
+
|
|
14
|
+
constructor(dbConnection: OrPromise<DataSource>) {
|
|
15
|
+
super()
|
|
16
|
+
this.dbConnection = dbConnection
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
getAuditEvents = async (args?: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>> => {
|
|
20
|
+
const connection: DataSource = await this.dbConnection // TODO apply everywhere
|
|
21
|
+
debug('Getting audit events', args)
|
|
22
|
+
const result: Array<AuditEventEntity> = await connection.getRepository(AuditEventEntity).find({
|
|
23
|
+
...(args?.filter && { where: args?.filter }),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
return result.map((event: AuditEventEntity) => this.auditEventFrom(event))
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
storeAuditEvent = async (args: StoreAuditEventArgs): Promise<AuditLoggingEvent> => {
|
|
30
|
+
const { event } = args
|
|
31
|
+
|
|
32
|
+
const auditEventEntity: AuditEventEntity = auditEventEntityFrom(event)
|
|
33
|
+
const connection: DataSource = await this.dbConnection
|
|
34
|
+
debug('Storing audit event', auditEventEntity)
|
|
35
|
+
const createdResult: AuditEventEntity = await connection.getRepository(AuditEventEntity).save(auditEventEntity)
|
|
36
|
+
|
|
37
|
+
return this.auditEventFrom(createdResult)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
private auditEventFrom = (event: AuditEventEntity): AuditLoggingEvent => {
|
|
41
|
+
return {
|
|
42
|
+
id: event.id,
|
|
43
|
+
description: event.description,
|
|
44
|
+
timestamp: event.timestamp,
|
|
45
|
+
level: event.level,
|
|
46
|
+
correlationId: event.correlationId,
|
|
47
|
+
actionType: event.actionType,
|
|
48
|
+
actionSubType: event.actionSubType,
|
|
49
|
+
initiatorType: event.initiatorType,
|
|
50
|
+
partyAlias: event.partyAlias,
|
|
51
|
+
partyCorrelationId: event.partyCorrelationId,
|
|
52
|
+
partyCorrelationType: event.partyCorrelationType,
|
|
53
|
+
subSystemType: event.subSystemType,
|
|
54
|
+
system: event.system,
|
|
55
|
+
systemAlias: event.systemAlias,
|
|
56
|
+
systemCorrelationId: event.systemCorrelationId,
|
|
57
|
+
systemCorrelationIdType: event.systemCorrelationIdType,
|
|
58
|
+
...(event.data && { data: JSON.parse(event.data) }),
|
|
59
|
+
...(event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }),
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,113 +1,131 @@
|
|
|
1
|
-
import { BaseConfigEntity } from './entities/contact/BaseConfigEntity'
|
|
2
|
-
import { BaseLocaleBrandingEntity } from './entities/issuanceBranding/BaseLocaleBrandingEntity'
|
|
3
|
-
import { BaseContactEntity } from './entities/contact/BaseContactEntity'
|
|
4
|
-
import { ConnectionEntity } from './entities/contact/ConnectionEntity'
|
|
5
|
-
import { PartyEntity } from './entities/contact/PartyEntity'
|
|
6
|
-
import { CorrelationIdentifierEntity } from './entities/contact/CorrelationIdentifierEntity'
|
|
7
|
-
import { DidAuthConfigEntity } from './entities/contact/DidAuthConfigEntity'
|
|
8
|
-
import { IdentityEntity } from './entities/contact/IdentityEntity'
|
|
9
|
-
import { IdentityMetadataItemEntity } from './entities/contact/IdentityMetadataItemEntity'
|
|
10
|
-
import { OpenIdConfigEntity } from './entities/contact/OpenIdConfigEntity'
|
|
11
|
-
import { BackgroundAttributesEntity, backgroundAttributesEntityFrom } from './entities/issuanceBranding/BackgroundAttributesEntity'
|
|
12
|
-
import { CredentialBrandingEntity, credentialBrandingEntityFrom } from './entities/issuanceBranding/CredentialBrandingEntity'
|
|
13
|
-
import { CredentialLocaleBrandingEntity, credentialLocaleBrandingEntityFrom } from './entities/issuanceBranding/CredentialLocaleBrandingEntity'
|
|
14
|
-
import { ImageAttributesEntity, imageAttributesEntityFrom } from './entities/issuanceBranding/ImageAttributesEntity'
|
|
15
|
-
import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/issuanceBranding/ImageDimensionsEntity'
|
|
16
|
-
import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity'
|
|
17
|
-
import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity'
|
|
18
|
-
import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity'
|
|
19
|
-
import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity'
|
|
20
|
-
import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity'
|
|
21
|
-
import { IStatusListEntity, IStatusListEntryEntity } from './types'
|
|
22
|
-
import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEntity'
|
|
23
|
-
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity'
|
|
24
|
-
import { OrganizationEntity } from './entities/contact/OrganizationEntity'
|
|
25
|
-
import { NaturalPersonEntity } from './entities/contact/NaturalPersonEntity'
|
|
26
|
-
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity'
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
export
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
import { BaseConfigEntity } from './entities/contact/BaseConfigEntity'
|
|
2
|
+
import { BaseLocaleBrandingEntity } from './entities/issuanceBranding/BaseLocaleBrandingEntity'
|
|
3
|
+
import { BaseContactEntity } from './entities/contact/BaseContactEntity'
|
|
4
|
+
import { ConnectionEntity } from './entities/contact/ConnectionEntity'
|
|
5
|
+
import { PartyEntity } from './entities/contact/PartyEntity'
|
|
6
|
+
import { CorrelationIdentifierEntity } from './entities/contact/CorrelationIdentifierEntity'
|
|
7
|
+
import { DidAuthConfigEntity } from './entities/contact/DidAuthConfigEntity'
|
|
8
|
+
import { IdentityEntity } from './entities/contact/IdentityEntity'
|
|
9
|
+
import { IdentityMetadataItemEntity } from './entities/contact/IdentityMetadataItemEntity'
|
|
10
|
+
import { OpenIdConfigEntity } from './entities/contact/OpenIdConfigEntity'
|
|
11
|
+
import { BackgroundAttributesEntity, backgroundAttributesEntityFrom } from './entities/issuanceBranding/BackgroundAttributesEntity'
|
|
12
|
+
import { CredentialBrandingEntity, credentialBrandingEntityFrom } from './entities/issuanceBranding/CredentialBrandingEntity'
|
|
13
|
+
import { CredentialLocaleBrandingEntity, credentialLocaleBrandingEntityFrom } from './entities/issuanceBranding/CredentialLocaleBrandingEntity'
|
|
14
|
+
import { ImageAttributesEntity, imageAttributesEntityFrom } from './entities/issuanceBranding/ImageAttributesEntity'
|
|
15
|
+
import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/issuanceBranding/ImageDimensionsEntity'
|
|
16
|
+
import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity'
|
|
17
|
+
import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity'
|
|
18
|
+
import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity'
|
|
19
|
+
import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity'
|
|
20
|
+
import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity'
|
|
21
|
+
import { IStatusListEntity, IStatusListEntryEntity } from './types'
|
|
22
|
+
import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEntity'
|
|
23
|
+
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity'
|
|
24
|
+
import { OrganizationEntity } from './entities/contact/OrganizationEntity'
|
|
25
|
+
import { NaturalPersonEntity } from './entities/contact/NaturalPersonEntity'
|
|
26
|
+
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity'
|
|
27
|
+
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity'
|
|
28
|
+
export { ContactStore } from './contact/ContactStore'
|
|
29
|
+
export { AbstractContactStore } from './contact/AbstractContactStore'
|
|
30
|
+
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore'
|
|
31
|
+
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore'
|
|
32
|
+
export { StatusListStore } from './statusList/StatusListStore'
|
|
33
|
+
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity'
|
|
34
|
+
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
35
|
+
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils'
|
|
36
|
+
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore'
|
|
37
|
+
export { EventLoggerStore } from './eventLogger/EventLoggerStore'
|
|
38
|
+
export {
|
|
39
|
+
DataStoreMigrations,
|
|
40
|
+
DataStoreEventLoggerMigrations,
|
|
41
|
+
DataStoreContactMigrations,
|
|
42
|
+
DataStoreIssuanceBrandingMigrations,
|
|
43
|
+
DataStoreStatusListMigrations,
|
|
44
|
+
} from './migrations'
|
|
45
|
+
export * from './types'
|
|
46
|
+
export * from './utils/contact/MappingUtils'
|
|
47
|
+
|
|
48
|
+
export const DataStoreContactEntities = [
|
|
49
|
+
BaseConfigEntity,
|
|
50
|
+
ConnectionEntity,
|
|
51
|
+
PartyEntity,
|
|
52
|
+
IdentityEntity,
|
|
53
|
+
IdentityMetadataItemEntity,
|
|
54
|
+
CorrelationIdentifierEntity,
|
|
55
|
+
DidAuthConfigEntity,
|
|
56
|
+
OpenIdConfigEntity,
|
|
57
|
+
PartyRelationshipEntity,
|
|
58
|
+
PartyTypeEntity,
|
|
59
|
+
BaseContactEntity,
|
|
60
|
+
OrganizationEntity,
|
|
61
|
+
NaturalPersonEntity,
|
|
62
|
+
ElectronicAddressEntity,
|
|
63
|
+
PhysicalAddressEntity,
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
export const DataStoreIssuanceBrandingEntities = [
|
|
67
|
+
BackgroundAttributesEntity,
|
|
68
|
+
CredentialBrandingEntity,
|
|
69
|
+
ImageAttributesEntity,
|
|
70
|
+
ImageDimensionsEntity,
|
|
71
|
+
BaseLocaleBrandingEntity,
|
|
72
|
+
IssuerBrandingEntity,
|
|
73
|
+
TextAttributesEntity,
|
|
74
|
+
CredentialLocaleBrandingEntity,
|
|
75
|
+
IssuerLocaleBrandingEntity,
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
export const DataStoreStatusListEntities = [StatusListEntity, StatusListEntryEntity]
|
|
79
|
+
|
|
80
|
+
export const DataStoreEventLoggerEntities = [AuditEventEntity]
|
|
81
|
+
|
|
82
|
+
export const DataStoreDigitalCredentialEntities = [DigitalCredentialEntity]
|
|
83
|
+
|
|
84
|
+
// All entities combined if a party wants to enable them all at once
|
|
85
|
+
export const DataStoreEntities = [
|
|
86
|
+
...DataStoreContactEntities,
|
|
87
|
+
...DataStoreIssuanceBrandingEntities,
|
|
88
|
+
...DataStoreStatusListEntities,
|
|
89
|
+
...DataStoreEventLoggerEntities,
|
|
90
|
+
...DataStoreDigitalCredentialEntities,
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
BaseConfigEntity,
|
|
95
|
+
ConnectionEntity,
|
|
96
|
+
PartyEntity,
|
|
97
|
+
CorrelationIdentifierEntity,
|
|
98
|
+
DidAuthConfigEntity,
|
|
99
|
+
IdentityEntity,
|
|
100
|
+
IdentityMetadataItemEntity,
|
|
101
|
+
OpenIdConfigEntity,
|
|
102
|
+
BackgroundAttributesEntity,
|
|
103
|
+
CredentialBrandingEntity,
|
|
104
|
+
ImageAttributesEntity,
|
|
105
|
+
ImageDimensionsEntity,
|
|
106
|
+
BaseLocaleBrandingEntity,
|
|
107
|
+
IssuerBrandingEntity,
|
|
108
|
+
TextAttributesEntity,
|
|
109
|
+
CredentialLocaleBrandingEntity,
|
|
110
|
+
IssuerLocaleBrandingEntity,
|
|
111
|
+
ElectronicAddressEntity,
|
|
112
|
+
PhysicalAddressEntity,
|
|
113
|
+
backgroundAttributesEntityFrom,
|
|
114
|
+
credentialBrandingEntityFrom,
|
|
115
|
+
imageAttributesEntityFrom,
|
|
116
|
+
imageDimensionsEntityFrom,
|
|
117
|
+
issuerBrandingEntityFrom,
|
|
118
|
+
textAttributesEntityFrom,
|
|
119
|
+
issuerLocaleBrandingEntityFrom,
|
|
120
|
+
credentialLocaleBrandingEntityFrom,
|
|
121
|
+
IStatusListEntity,
|
|
122
|
+
IStatusListEntryEntity,
|
|
123
|
+
StatusListEntity,
|
|
124
|
+
StatusListEntryEntity,
|
|
125
|
+
AuditEventEntity,
|
|
126
|
+
auditEventEntityFrom,
|
|
127
|
+
DigitalCredentialEntity,
|
|
128
|
+
digitalCredentialFrom,
|
|
129
|
+
digitalCredentialsFrom,
|
|
130
|
+
nonPersistedDigitalCredentialEntityFromAddArgs,
|
|
131
|
+
}
|