@sphereon/ssi-sdk.data-store 0.30.1-unstable.4 → 0.30.1
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/ContactStore.d.ts.map +1 -1
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +1 -1
- package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +33 -33
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +16 -16
- package/dist/migrations/postgres/1715761125001-CreateContacts.js +33 -33
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +12 -12
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +32 -32
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +15 -15
- package/dist/migrations/sqlite/1710438363002-CreateContacts.js +13 -13
- package/dist/migrations/sqlite/1715761125002-CreateContacts.js +32 -32
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +9 -9
- package/dist/presentationDefinition/PDStore.d.ts.map +1 -1
- package/dist/utils/SortingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.js +4 -4
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +2 -2
- package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
- package/package.json +8 -8
- package/src/__tests__/contact.entities.test.ts +2642 -2642
- package/src/__tests__/contact.store.test.ts +2649 -2649
- package/src/__tests__/digitalCredential.entities.test.ts +274 -274
- package/src/__tests__/digitalCredential.store.test.ts +330 -330
- package/src/__tests__/eventLogger.entities.test.ts +76 -76
- package/src/__tests__/eventLogger.store.test.ts +130 -130
- package/src/__tests__/issuanceBranding.entities.test.ts +846 -846
- package/src/__tests__/issuanceBranding.store.test.ts +1886 -1886
- package/src/__tests__/machineState.entities.test.ts +53 -53
- package/src/__tests__/machineState.store.test.ts +176 -176
- package/src/__tests__/pd-manager.entities.test.ts +73 -73
- package/src/__tests__/pd-manager.store.test.ts +193 -193
- package/src/contact/AbstractContactStore.ts +71 -71
- package/src/contact/ContactStore.ts +768 -768
- package/src/digitalCredential/AbstractDigitalCredentialStore.ts +21 -21
- package/src/digitalCredential/DigitalCredentialStore.ts +189 -189
- package/src/entities/contact/BaseContactEntity.ts +51 -51
- package/src/entities/contact/ConnectionEntity.ts +35 -35
- package/src/entities/contact/ContactMetadataItemEntity.ts +51 -51
- package/src/entities/contact/CorrelationIdentifierEntity.ts +43 -43
- package/src/entities/contact/DidAuthConfigEntity.ts +20 -20
- package/src/entities/contact/ElectronicAddressEntity.ts +70 -70
- package/src/entities/contact/IdentityEntity.ts +107 -107
- package/src/entities/contact/IdentityMetadataItemEntity.ts +48 -48
- package/src/entities/contact/NaturalPersonEntity.ts +44 -44
- package/src/entities/contact/OpenIdConfigEntity.ts +32 -32
- package/src/entities/contact/OrganizationEntity.ts +35 -35
- package/src/entities/contact/PartyEntity.ts +117 -117
- package/src/entities/contact/PartyRelationshipEntity.ts +68 -68
- package/src/entities/contact/PartyTypeEntity.ts +63 -63
- package/src/entities/contact/PhysicalAddressEntity.ts +95 -95
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +98 -98
- package/src/entities/eventLogger/AuditEventEntity.ts +92 -92
- package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +42 -42
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +87 -87
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +79 -79
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +33 -33
- package/src/entities/issuanceBranding/ImageAttributesEntity.ts +57 -57
- package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +22 -22
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +73 -73
- package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +33 -33
- package/src/entities/issuanceBranding/TextAttributesEntity.ts +31 -31
- package/src/entities/machineState/MachineStateInfoEntity.ts +59 -59
- package/src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts +44 -44
- package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
- package/src/entities/statusList2021/StatusList2021EntryEntity.ts +29 -29
- package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
- package/src/eventLogger/EventLoggerStore.ts +62 -62
- package/src/index.ts +160 -160
- package/src/issuanceBranding/IssuanceBrandingStore.ts +559 -559
- package/src/machineState/IAbstractMachineStateStore.ts +65 -65
- package/src/machineState/MachineStateStore.ts +149 -149
- package/src/migrations/generic/1-CreateContacts.ts +66 -66
- package/src/migrations/generic/10-CreatePresentationDefinitions.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 -66
- package/src/migrations/generic/7-CreateMachineStateStore.ts +66 -66
- package/src/migrations/generic/8-CreateContacts.ts +66 -66
- package/src/migrations/generic/9-CreateContacts.ts +66 -66
- package/src/migrations/generic/index.ts +43 -43
- package/src/migrations/index.ts +10 -10
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +63 -63
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +85 -85
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +158 -158
- 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 +61 -61
- package/src/migrations/postgres/1708797018115-CreateMachineStateStore.ts +29 -29
- package/src/migrations/postgres/1710438363001-CreateContacts.ts +63 -63
- package/src/migrations/postgres/1715761125001-CreateContacts.ts +60 -60
- package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +25 -25
- package/src/migrations/sqlite/1659463069549-CreateContacts.ts +110 -110
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +119 -119
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +228 -228
- package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +24 -24
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
- package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +46 -46
- package/src/migrations/sqlite/1708796002272-CreateMachineStateStore.ts +28 -28
- package/src/migrations/sqlite/1710438363002-CreateContacts.ts +83 -83
- package/src/migrations/sqlite/1715761125002-CreateContacts.ts +59 -59
- package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +24 -24
- package/src/presentationDefinition/AbstractPDStore.ts +20 -20
- package/src/presentationDefinition/PDStore.ts +185 -185
- package/src/statusList/IStatusListStore.ts +44 -44
- package/src/statusList/StatusListStore.ts +236 -236
- package/src/types/contact/IAbstractContactStore.ts +161 -161
- package/src/types/contact/contact.ts +295 -295
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +42 -42
- package/src/types/digitalCredential/digitalCredential.ts +102 -102
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
- package/src/types/eventLogger/eventLogger.ts +3 -3
- package/src/types/index.ts +14 -14
- package/src/types/machineState/IAbstractMachineStateStore.ts +68 -68
- package/src/types/presentationDefinition/IAbstractPDStore.ts +25 -25
- package/src/types/presentationDefinition/presentationDefinition.ts +17 -17
- package/src/utils/SortingUtils.ts +16 -16
- package/src/utils/contact/MappingUtils.ts +506 -506
- package/src/utils/digitalCredential/MappingUtils.ts +160 -160
- package/src/utils/hasher.ts +19 -19
- package/src/utils/presentationDefinition/MappingUtils.ts +52 -52
- package/dist/entities/contact/IMetadataEntity.d.ts +0 -8
- package/dist/entities/contact/IMetadataEntity.d.ts.map +0 -1
- package/dist/entities/contact/IMetadataEntity.js +0 -2
- package/dist/entities/contact/IMetadataEntity.js.map +0 -1
- package/dist/migrations/generic/8-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/generic/8-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/generic/8-CreatePresentationDefinitions.js +0 -78
- package/dist/migrations/generic/8-CreatePresentationDefinitions.js.map +0 -1
package/src/index.ts
CHANGED
|
@@ -1,160 +1,160 @@
|
|
|
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 { MachineStateInfoEntity } from './entities/machineState/MachineStateInfoEntity'
|
|
22
|
-
import { IStatusListEntity, IStatusListEntryEntity } from './types'
|
|
23
|
-
import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEntity'
|
|
24
|
-
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity'
|
|
25
|
-
import { OrganizationEntity } from './entities/contact/OrganizationEntity'
|
|
26
|
-
import { NaturalPersonEntity } from './entities/contact/NaturalPersonEntity'
|
|
27
|
-
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity'
|
|
28
|
-
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity'
|
|
29
|
-
export { ContactStore } from './contact/ContactStore'
|
|
30
|
-
export { AbstractContactStore } from './contact/AbstractContactStore'
|
|
31
|
-
export { AbstractDigitalCredentialStore } from './digitalCredential/AbstractDigitalCredentialStore'
|
|
32
|
-
export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialStore'
|
|
33
|
-
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore'
|
|
34
|
-
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore'
|
|
35
|
-
export { StatusListStore } from './statusList/StatusListStore'
|
|
36
|
-
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity'
|
|
37
|
-
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
38
|
-
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils'
|
|
39
|
-
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils'
|
|
40
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
41
|
-
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity'
|
|
42
|
-
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore'
|
|
43
|
-
export { EventLoggerStore } from './eventLogger/EventLoggerStore'
|
|
44
|
-
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore'
|
|
45
|
-
export { MachineStateStore } from './machineState/MachineStateStore'
|
|
46
|
-
export { AbstractPDStore } from './presentationDefinition/AbstractPDStore'
|
|
47
|
-
export { PDStore } from './presentationDefinition/PDStore'
|
|
48
|
-
|
|
49
|
-
export {
|
|
50
|
-
DataStoreMigrations,
|
|
51
|
-
DataStoreEventLoggerMigrations,
|
|
52
|
-
DataStoreContactMigrations,
|
|
53
|
-
DataStoreDigitalCredentialMigrations,
|
|
54
|
-
DataStoreIssuanceBrandingMigrations,
|
|
55
|
-
DataStoreStatusListMigrations,
|
|
56
|
-
DataStoreMachineStateMigrations,
|
|
57
|
-
DataStorePresentationDefinitionMigrations,
|
|
58
|
-
} from './migrations'
|
|
59
|
-
export * from './types'
|
|
60
|
-
export * from './utils/contact/MappingUtils'
|
|
61
|
-
export * from './utils/digitalCredential/MappingUtils'
|
|
62
|
-
|
|
63
|
-
export const DataStoreContactEntities = [
|
|
64
|
-
BaseConfigEntity,
|
|
65
|
-
ConnectionEntity,
|
|
66
|
-
PartyEntity,
|
|
67
|
-
IdentityEntity,
|
|
68
|
-
IdentityMetadataItemEntity,
|
|
69
|
-
CorrelationIdentifierEntity,
|
|
70
|
-
DidAuthConfigEntity,
|
|
71
|
-
OpenIdConfigEntity,
|
|
72
|
-
PartyRelationshipEntity,
|
|
73
|
-
PartyTypeEntity,
|
|
74
|
-
BaseContactEntity,
|
|
75
|
-
OrganizationEntity,
|
|
76
|
-
NaturalPersonEntity,
|
|
77
|
-
ElectronicAddressEntity,
|
|
78
|
-
PhysicalAddressEntity,
|
|
79
|
-
ContactMetadataItemEntity,
|
|
80
|
-
]
|
|
81
|
-
|
|
82
|
-
export const DataStoreIssuanceBrandingEntities = [
|
|
83
|
-
BackgroundAttributesEntity,
|
|
84
|
-
CredentialBrandingEntity,
|
|
85
|
-
ImageAttributesEntity,
|
|
86
|
-
ImageDimensionsEntity,
|
|
87
|
-
BaseLocaleBrandingEntity,
|
|
88
|
-
IssuerBrandingEntity,
|
|
89
|
-
TextAttributesEntity,
|
|
90
|
-
CredentialLocaleBrandingEntity,
|
|
91
|
-
IssuerLocaleBrandingEntity,
|
|
92
|
-
]
|
|
93
|
-
|
|
94
|
-
export const DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity]
|
|
95
|
-
|
|
96
|
-
export const DataStoreStatusListEntities = [StatusListEntity, StatusListEntryEntity]
|
|
97
|
-
|
|
98
|
-
export const DataStoreEventLoggerEntities = [AuditEventEntity]
|
|
99
|
-
|
|
100
|
-
export const DataStoreDigitalCredentialEntities = [DigitalCredentialEntity]
|
|
101
|
-
|
|
102
|
-
export const DataStoreMachineStateEntities = [MachineStateInfoEntity]
|
|
103
|
-
|
|
104
|
-
// All entities combined if a party wants to enable them all at once
|
|
105
|
-
export const DataStoreEntities = [
|
|
106
|
-
...DataStoreContactEntities,
|
|
107
|
-
...DataStoreIssuanceBrandingEntities,
|
|
108
|
-
...DataStoreStatusListEntities,
|
|
109
|
-
...DataStoreEventLoggerEntities,
|
|
110
|
-
...DataStoreDigitalCredentialEntities,
|
|
111
|
-
...DataStoreMachineStateEntities,
|
|
112
|
-
...DataStorePresentationDefinitionEntities,
|
|
113
|
-
]
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
BaseConfigEntity,
|
|
117
|
-
ConnectionEntity,
|
|
118
|
-
PartyEntity,
|
|
119
|
-
BaseContactEntity,
|
|
120
|
-
CorrelationIdentifierEntity,
|
|
121
|
-
DidAuthConfigEntity,
|
|
122
|
-
IdentityEntity,
|
|
123
|
-
IdentityMetadataItemEntity,
|
|
124
|
-
OpenIdConfigEntity,
|
|
125
|
-
BackgroundAttributesEntity,
|
|
126
|
-
CredentialBrandingEntity,
|
|
127
|
-
ImageAttributesEntity,
|
|
128
|
-
ImageDimensionsEntity,
|
|
129
|
-
BaseLocaleBrandingEntity,
|
|
130
|
-
IssuerBrandingEntity,
|
|
131
|
-
TextAttributesEntity,
|
|
132
|
-
CredentialLocaleBrandingEntity,
|
|
133
|
-
IssuerLocaleBrandingEntity,
|
|
134
|
-
ElectronicAddressEntity,
|
|
135
|
-
PhysicalAddressEntity,
|
|
136
|
-
backgroundAttributesEntityFrom,
|
|
137
|
-
credentialBrandingEntityFrom,
|
|
138
|
-
imageAttributesEntityFrom,
|
|
139
|
-
imageDimensionsEntityFrom,
|
|
140
|
-
issuerBrandingEntityFrom,
|
|
141
|
-
textAttributesEntityFrom,
|
|
142
|
-
issuerLocaleBrandingEntityFrom,
|
|
143
|
-
credentialLocaleBrandingEntityFrom,
|
|
144
|
-
IStatusListEntity,
|
|
145
|
-
IStatusListEntryEntity,
|
|
146
|
-
StatusListEntity,
|
|
147
|
-
StatusListEntryEntity,
|
|
148
|
-
AuditEventEntity,
|
|
149
|
-
auditEventEntityFrom,
|
|
150
|
-
DigitalCredentialEntity,
|
|
151
|
-
digitalCredentialFrom,
|
|
152
|
-
digitalCredentialsFrom,
|
|
153
|
-
nonPersistedDigitalCredentialEntityFromAddArgs,
|
|
154
|
-
MachineStateInfoEntity,
|
|
155
|
-
PresentationDefinitionItemEntity,
|
|
156
|
-
isPresentationDefinitionEqual,
|
|
157
|
-
ContactMetadataItemEntity,
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export * from './utils/hasher'
|
|
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 { MachineStateInfoEntity } from './entities/machineState/MachineStateInfoEntity'
|
|
22
|
+
import { IStatusListEntity, IStatusListEntryEntity } from './types'
|
|
23
|
+
import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEntity'
|
|
24
|
+
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity'
|
|
25
|
+
import { OrganizationEntity } from './entities/contact/OrganizationEntity'
|
|
26
|
+
import { NaturalPersonEntity } from './entities/contact/NaturalPersonEntity'
|
|
27
|
+
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity'
|
|
28
|
+
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity'
|
|
29
|
+
export { ContactStore } from './contact/ContactStore'
|
|
30
|
+
export { AbstractContactStore } from './contact/AbstractContactStore'
|
|
31
|
+
export { AbstractDigitalCredentialStore } from './digitalCredential/AbstractDigitalCredentialStore'
|
|
32
|
+
export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialStore'
|
|
33
|
+
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore'
|
|
34
|
+
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore'
|
|
35
|
+
export { StatusListStore } from './statusList/StatusListStore'
|
|
36
|
+
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity'
|
|
37
|
+
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
38
|
+
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils'
|
|
39
|
+
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils'
|
|
40
|
+
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
41
|
+
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity'
|
|
42
|
+
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore'
|
|
43
|
+
export { EventLoggerStore } from './eventLogger/EventLoggerStore'
|
|
44
|
+
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore'
|
|
45
|
+
export { MachineStateStore } from './machineState/MachineStateStore'
|
|
46
|
+
export { AbstractPDStore } from './presentationDefinition/AbstractPDStore'
|
|
47
|
+
export { PDStore } from './presentationDefinition/PDStore'
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
DataStoreMigrations,
|
|
51
|
+
DataStoreEventLoggerMigrations,
|
|
52
|
+
DataStoreContactMigrations,
|
|
53
|
+
DataStoreDigitalCredentialMigrations,
|
|
54
|
+
DataStoreIssuanceBrandingMigrations,
|
|
55
|
+
DataStoreStatusListMigrations,
|
|
56
|
+
DataStoreMachineStateMigrations,
|
|
57
|
+
DataStorePresentationDefinitionMigrations,
|
|
58
|
+
} from './migrations'
|
|
59
|
+
export * from './types'
|
|
60
|
+
export * from './utils/contact/MappingUtils'
|
|
61
|
+
export * from './utils/digitalCredential/MappingUtils'
|
|
62
|
+
|
|
63
|
+
export const DataStoreContactEntities = [
|
|
64
|
+
BaseConfigEntity,
|
|
65
|
+
ConnectionEntity,
|
|
66
|
+
PartyEntity,
|
|
67
|
+
IdentityEntity,
|
|
68
|
+
IdentityMetadataItemEntity,
|
|
69
|
+
CorrelationIdentifierEntity,
|
|
70
|
+
DidAuthConfigEntity,
|
|
71
|
+
OpenIdConfigEntity,
|
|
72
|
+
PartyRelationshipEntity,
|
|
73
|
+
PartyTypeEntity,
|
|
74
|
+
BaseContactEntity,
|
|
75
|
+
OrganizationEntity,
|
|
76
|
+
NaturalPersonEntity,
|
|
77
|
+
ElectronicAddressEntity,
|
|
78
|
+
PhysicalAddressEntity,
|
|
79
|
+
ContactMetadataItemEntity,
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
export const DataStoreIssuanceBrandingEntities = [
|
|
83
|
+
BackgroundAttributesEntity,
|
|
84
|
+
CredentialBrandingEntity,
|
|
85
|
+
ImageAttributesEntity,
|
|
86
|
+
ImageDimensionsEntity,
|
|
87
|
+
BaseLocaleBrandingEntity,
|
|
88
|
+
IssuerBrandingEntity,
|
|
89
|
+
TextAttributesEntity,
|
|
90
|
+
CredentialLocaleBrandingEntity,
|
|
91
|
+
IssuerLocaleBrandingEntity,
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
export const DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity]
|
|
95
|
+
|
|
96
|
+
export const DataStoreStatusListEntities = [StatusListEntity, StatusListEntryEntity]
|
|
97
|
+
|
|
98
|
+
export const DataStoreEventLoggerEntities = [AuditEventEntity]
|
|
99
|
+
|
|
100
|
+
export const DataStoreDigitalCredentialEntities = [DigitalCredentialEntity]
|
|
101
|
+
|
|
102
|
+
export const DataStoreMachineStateEntities = [MachineStateInfoEntity]
|
|
103
|
+
|
|
104
|
+
// All entities combined if a party wants to enable them all at once
|
|
105
|
+
export const DataStoreEntities = [
|
|
106
|
+
...DataStoreContactEntities,
|
|
107
|
+
...DataStoreIssuanceBrandingEntities,
|
|
108
|
+
...DataStoreStatusListEntities,
|
|
109
|
+
...DataStoreEventLoggerEntities,
|
|
110
|
+
...DataStoreDigitalCredentialEntities,
|
|
111
|
+
...DataStoreMachineStateEntities,
|
|
112
|
+
...DataStorePresentationDefinitionEntities,
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
BaseConfigEntity,
|
|
117
|
+
ConnectionEntity,
|
|
118
|
+
PartyEntity,
|
|
119
|
+
BaseContactEntity,
|
|
120
|
+
CorrelationIdentifierEntity,
|
|
121
|
+
DidAuthConfigEntity,
|
|
122
|
+
IdentityEntity,
|
|
123
|
+
IdentityMetadataItemEntity,
|
|
124
|
+
OpenIdConfigEntity,
|
|
125
|
+
BackgroundAttributesEntity,
|
|
126
|
+
CredentialBrandingEntity,
|
|
127
|
+
ImageAttributesEntity,
|
|
128
|
+
ImageDimensionsEntity,
|
|
129
|
+
BaseLocaleBrandingEntity,
|
|
130
|
+
IssuerBrandingEntity,
|
|
131
|
+
TextAttributesEntity,
|
|
132
|
+
CredentialLocaleBrandingEntity,
|
|
133
|
+
IssuerLocaleBrandingEntity,
|
|
134
|
+
ElectronicAddressEntity,
|
|
135
|
+
PhysicalAddressEntity,
|
|
136
|
+
backgroundAttributesEntityFrom,
|
|
137
|
+
credentialBrandingEntityFrom,
|
|
138
|
+
imageAttributesEntityFrom,
|
|
139
|
+
imageDimensionsEntityFrom,
|
|
140
|
+
issuerBrandingEntityFrom,
|
|
141
|
+
textAttributesEntityFrom,
|
|
142
|
+
issuerLocaleBrandingEntityFrom,
|
|
143
|
+
credentialLocaleBrandingEntityFrom,
|
|
144
|
+
IStatusListEntity,
|
|
145
|
+
IStatusListEntryEntity,
|
|
146
|
+
StatusListEntity,
|
|
147
|
+
StatusListEntryEntity,
|
|
148
|
+
AuditEventEntity,
|
|
149
|
+
auditEventEntityFrom,
|
|
150
|
+
DigitalCredentialEntity,
|
|
151
|
+
digitalCredentialFrom,
|
|
152
|
+
digitalCredentialsFrom,
|
|
153
|
+
nonPersistedDigitalCredentialEntityFromAddArgs,
|
|
154
|
+
MachineStateInfoEntity,
|
|
155
|
+
PresentationDefinitionItemEntity,
|
|
156
|
+
isPresentationDefinitionEqual,
|
|
157
|
+
ContactMetadataItemEntity,
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export * from './utils/hasher'
|