@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.62.226 → 0.34.1-feature.SSISDK.62.241
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/package.json +8 -8
- package/src/__tests__/contact.entities.test.ts +2 -8
- package/src/__tests__/contact.store.test.ts +12 -7
- package/src/__tests__/digitalCredential.entities.test.ts +7 -1
- package/src/__tests__/digitalCredential.store.test.ts +1 -1
- package/src/__tests__/eventLogger.entities.test.ts +1 -1
- package/src/__tests__/eventLogger.store.test.ts +6 -1
- package/src/__tests__/pd-manager.store.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.34.1-feature.SSISDK.62.
|
|
3
|
+
"version": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
|
|
30
30
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
31
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.62.
|
|
32
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.62.
|
|
33
|
-
"@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.62.
|
|
34
|
-
"@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.62.
|
|
35
|
-
"@sphereon/ssi-sdk.data-store-types": "0.34.1-feature.SSISDK.62.
|
|
36
|
-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.62.
|
|
31
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
32
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
33
|
+
"@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
34
|
+
"@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
35
|
+
"@sphereon/ssi-sdk.data-store-types": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
36
|
+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
|
|
37
37
|
"@veramo/core": "4.2.0",
|
|
38
38
|
"@veramo/utils": "4.2.0",
|
|
39
39
|
"blakejs": "^1.2.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"PostgreSQL",
|
|
67
67
|
"Contact Store"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d5d6efd53f092cb8e52cecd12bd7ade534376da5"
|
|
70
70
|
}
|
|
@@ -18,17 +18,11 @@ import { PartyEntity } from '../entities/contact/PartyEntity'
|
|
|
18
18
|
import { PartyRelationshipEntity } from '../entities/contact/PartyRelationshipEntity'
|
|
19
19
|
import { PartyTypeEntity } from '../entities/contact/PartyTypeEntity'
|
|
20
20
|
import { PhysicalAddressEntity } from '../entities/contact/PhysicalAddressEntity'
|
|
21
|
+
import { contactMetadataItemEntityFrom, DataStoreContactEntities, DataStoreMigrations, identityMetadataItemEntityFrom, partyTypeFrom } from '../index'
|
|
21
22
|
import {
|
|
22
|
-
contactMetadataItemEntityFrom,
|
|
23
|
-
DataStoreContactEntities,
|
|
24
|
-
DataStoreMigrations,
|
|
25
|
-
identityMetadataItemEntityFrom,
|
|
26
23
|
IdentityOrigin,
|
|
27
24
|
MetadataTypes,
|
|
28
25
|
PartyOrigin,
|
|
29
|
-
partyTypeFrom,
|
|
30
|
-
} from '../index'
|
|
31
|
-
import {
|
|
32
26
|
ConnectionType,
|
|
33
27
|
CorrelationIdentifierType,
|
|
34
28
|
NaturalPerson,
|
|
@@ -44,7 +38,7 @@ import {
|
|
|
44
38
|
NonPersistedPhysicalAddress,
|
|
45
39
|
Organization,
|
|
46
40
|
PartyTypeType,
|
|
47
|
-
} from '
|
|
41
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
48
42
|
import {
|
|
49
43
|
connectionEntityFrom,
|
|
50
44
|
didAuthConfigEntityFrom,
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { DataSources } from '@sphereon/ssi-sdk.agent-config'
|
|
2
|
-
import { CredentialRole } from '@sphereon/ssi-types'
|
|
3
|
-
import { DataSource } from 'typeorm'
|
|
4
|
-
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
5
|
-
import { ContactStore } from '../contact/ContactStore'
|
|
6
|
-
import { ConnectionType, DataStoreContactEntities, DataStoreMigrations, IdentityOrigin, MetadataItem, MetadataTypes, PartyOrigin } from '../index'
|
|
7
2
|
import {
|
|
3
|
+
ConnectionType,
|
|
8
4
|
CorrelationIdentifierType,
|
|
9
5
|
ElectronicAddress,
|
|
10
6
|
GetElectronicAddressesArgs,
|
|
@@ -13,6 +9,9 @@ import {
|
|
|
13
9
|
GetPhysicalAddressesArgs,
|
|
14
10
|
GetRelationshipsArgs,
|
|
15
11
|
Identity,
|
|
12
|
+
IdentityOrigin,
|
|
13
|
+
MetadataItem,
|
|
14
|
+
MetadataTypes,
|
|
16
15
|
NaturalPerson,
|
|
17
16
|
NonPersistedElectronicAddress,
|
|
18
17
|
NonPersistedIdentity,
|
|
@@ -22,11 +21,17 @@ import {
|
|
|
22
21
|
NonPersistedPartyType,
|
|
23
22
|
NonPersistedPhysicalAddress,
|
|
24
23
|
Party,
|
|
24
|
+
PartyOrigin,
|
|
25
25
|
PartyRelationship,
|
|
26
26
|
PartyType,
|
|
27
27
|
PartyTypeType,
|
|
28
28
|
PhysicalAddress,
|
|
29
|
-
} from '
|
|
29
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
30
|
+
import { CredentialRole } from '@sphereon/ssi-types'
|
|
31
|
+
import { DataSource } from 'typeorm'
|
|
32
|
+
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
33
|
+
import { ContactStore } from '../contact/ContactStore'
|
|
34
|
+
import { DataStoreContactEntities, DataStoreMigrations } from '../index'
|
|
30
35
|
|
|
31
36
|
describe('Contact store tests', (): void => {
|
|
32
37
|
let dbConnection: DataSource
|
|
@@ -49,7 +54,7 @@ describe('Contact store tests', (): void => {
|
|
|
49
54
|
})
|
|
50
55
|
|
|
51
56
|
afterEach(async (): Promise<void> => {
|
|
52
|
-
await
|
|
57
|
+
await dbConnection.destroy()
|
|
53
58
|
})
|
|
54
59
|
|
|
55
60
|
it('should get party by contact metadata', async (): Promise<void> => {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { DataSources } from '@sphereon/ssi-sdk.agent-config'
|
|
2
2
|
import { defaultHasher } from '@sphereon/ssi-sdk.core'
|
|
3
|
+
import {
|
|
4
|
+
AddCredentialArgs,
|
|
5
|
+
CredentialCorrelationType,
|
|
6
|
+
CredentialDocumentFormat,
|
|
7
|
+
DocumentType,
|
|
8
|
+
NonPersistedDigitalCredential,
|
|
9
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
3
10
|
import { CredentialRole } from '@sphereon/ssi-types'
|
|
4
11
|
import { computeEntryHash } from '@veramo/utils'
|
|
5
12
|
import { DataSource } from 'typeorm'
|
|
@@ -7,7 +14,6 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
|
7
14
|
import { DigitalCredentialEntity } from '../entities/digitalCredential/DigitalCredentialEntity'
|
|
8
15
|
import { DataStoreDigitalCredentialEntities } from '../index'
|
|
9
16
|
import { DataStoreDigitalCredentialMigrations } from '../migrations'
|
|
10
|
-
import { AddCredentialArgs, CredentialCorrelationType, CredentialDocumentFormat, DocumentType, NonPersistedDigitalCredential } from '../types'
|
|
11
17
|
import { nonPersistedDigitalCredentialEntityFromAddArgs } from '../utils/digitalCredential/MappingUtils'
|
|
12
18
|
|
|
13
19
|
describe('Database entities tests', (): void => {
|
|
@@ -6,7 +6,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
|
6
6
|
import { AuditEventEntity } from '../entities/eventLogger/AuditEventEntity'
|
|
7
7
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
8
8
|
import { DataStoreEventLoggerMigrations } from '../migrations'
|
|
9
|
-
import { NonPersistedActivityLoggingEvent, NonPersistedAuditLoggingEvent } from '
|
|
9
|
+
import { NonPersistedActivityLoggingEvent, NonPersistedAuditLoggingEvent } from '@sphereon/ssi-sdk.data-store-types'
|
|
10
10
|
import { activityEventEntityFrom, auditEventEntityFrom } from '../utils/eventLogger/MappingUtils'
|
|
11
11
|
|
|
12
12
|
describe('Database entities tests', (): void => {
|
|
@@ -6,7 +6,12 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
|
6
6
|
import { EventLoggerStore } from '../eventLogger/EventLoggerStore'
|
|
7
7
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
8
8
|
import { DataStoreEventLoggerMigrations } from '../migrations'
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
GetActivityEventsArgs,
|
|
11
|
+
GetAuditEventsArgs,
|
|
12
|
+
NonPersistedActivityLoggingEvent,
|
|
13
|
+
NonPersistedAuditLoggingEvent,
|
|
14
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
10
15
|
|
|
11
16
|
describe('Database entities tests', (): void => {
|
|
12
17
|
let dbConnection: DataSource
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ImportDcqlQueryItem,
|
|
10
10
|
PDStore,
|
|
11
11
|
} from '../index'
|
|
12
|
-
import { DcqlQueryItem, GetDefinitionsArgs, NonPersistedDcqlQueryItem } from '
|
|
12
|
+
import { DcqlQueryItem, GetDefinitionsArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types'
|
|
13
13
|
|
|
14
14
|
export const SAMPLE_DCQL_QUERY_IMPORT: ImportDcqlQueryItem = {
|
|
15
15
|
queryId: 'ajax-club',
|