@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.62.241 → 0.34.1-feature.SSISDK.62.datastore.types.223

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.data-store",
3
- "version": "0.34.1-feature.SSISDK.62.241+d5d6efd5",
3
+ "version": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
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.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",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
32
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
33
+ "@sphereon/ssi-sdk.agent-config": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
34
+ "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
35
+ "@sphereon/ssi-sdk.data-store-types": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
36
+ "@sphereon/ssi-types": "0.34.1-feature.SSISDK.62.datastore.types.223+114814d9",
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": "d5d6efd53f092cb8e52cecd12bd7ade534376da5"
69
+ "gitHead": "114814d94a928333903008fa9f686ddc90ba5063"
70
70
  }
@@ -18,11 +18,17 @@ 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'
22
21
  import {
22
+ contactMetadataItemEntityFrom,
23
+ DataStoreContactEntities,
24
+ DataStoreMigrations,
25
+ identityMetadataItemEntityFrom,
23
26
  IdentityOrigin,
24
27
  MetadataTypes,
25
28
  PartyOrigin,
29
+ partyTypeFrom,
30
+ } from '../index'
31
+ import {
26
32
  ConnectionType,
27
33
  CorrelationIdentifierType,
28
34
  NaturalPerson,
@@ -38,7 +44,7 @@ import {
38
44
  NonPersistedPhysicalAddress,
39
45
  Organization,
40
46
  PartyTypeType,
41
- } from '@sphereon/ssi-sdk.data-store-types'
47
+ } from '../types'
42
48
  import {
43
49
  connectionEntityFrom,
44
50
  didAuthConfigEntityFrom,
@@ -1,6 +1,10 @@
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'
2
7
  import {
3
- ConnectionType,
4
8
  CorrelationIdentifierType,
5
9
  ElectronicAddress,
6
10
  GetElectronicAddressesArgs,
@@ -9,9 +13,6 @@ import {
9
13
  GetPhysicalAddressesArgs,
10
14
  GetRelationshipsArgs,
11
15
  Identity,
12
- IdentityOrigin,
13
- MetadataItem,
14
- MetadataTypes,
15
16
  NaturalPerson,
16
17
  NonPersistedElectronicAddress,
17
18
  NonPersistedIdentity,
@@ -21,17 +22,11 @@ import {
21
22
  NonPersistedPartyType,
22
23
  NonPersistedPhysicalAddress,
23
24
  Party,
24
- PartyOrigin,
25
25
  PartyRelationship,
26
26
  PartyType,
27
27
  PartyTypeType,
28
28
  PhysicalAddress,
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'
29
+ } from '../types'
35
30
 
36
31
  describe('Contact store tests', (): void => {
37
32
  let dbConnection: DataSource
@@ -54,7 +49,7 @@ describe('Contact store tests', (): void => {
54
49
  })
55
50
 
56
51
  afterEach(async (): Promise<void> => {
57
- await dbConnection.destroy()
52
+ await (await dbConnection).destroy()
58
53
  })
59
54
 
60
55
  it('should get party by contact metadata', async (): Promise<void> => {
@@ -1,12 +1,5 @@
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'
10
3
  import { CredentialRole } from '@sphereon/ssi-types'
11
4
  import { computeEntryHash } from '@veramo/utils'
12
5
  import { DataSource } from 'typeorm'
@@ -14,6 +7,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest'
14
7
  import { DigitalCredentialEntity } from '../entities/digitalCredential/DigitalCredentialEntity'
15
8
  import { DataStoreDigitalCredentialEntities } from '../index'
16
9
  import { DataStoreDigitalCredentialMigrations } from '../migrations'
10
+ import { AddCredentialArgs, CredentialCorrelationType, CredentialDocumentFormat, DocumentType, NonPersistedDigitalCredential } from '../types'
17
11
  import { nonPersistedDigitalCredentialEntityFromAddArgs } from '../utils/digitalCredential/MappingUtils'
18
12
 
19
13
  describe('Database entities tests', (): void => {
@@ -15,7 +15,7 @@ import {
15
15
  DocumentType,
16
16
  GetCredentialsArgs,
17
17
  GetCredentialsResponse,
18
- } from '@sphereon/ssi-sdk.data-store-types'
18
+ } from '../types'
19
19
 
20
20
  describe('Database entities tests', (): void => {
21
21
  let dbConnection: DataSource
@@ -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 '@sphereon/ssi-sdk.data-store-types'
9
+ import { NonPersistedActivityLoggingEvent, NonPersistedAuditLoggingEvent } from '../types'
10
10
  import { activityEventEntityFrom, auditEventEntityFrom } from '../utils/eventLogger/MappingUtils'
11
11
 
12
12
  describe('Database entities tests', (): void => {
@@ -6,12 +6,7 @@ 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 {
10
- GetActivityEventsArgs,
11
- GetAuditEventsArgs,
12
- NonPersistedActivityLoggingEvent,
13
- NonPersistedAuditLoggingEvent,
14
- } from '@sphereon/ssi-sdk.data-store-types'
9
+ import { GetActivityEventsArgs, GetAuditEventsArgs, NonPersistedActivityLoggingEvent, NonPersistedAuditLoggingEvent } from '../types'
15
10
 
16
11
  describe('Database entities tests', (): void => {
17
12
  let dbConnection: DataSource
@@ -9,7 +9,7 @@ import {
9
9
  ImportDcqlQueryItem,
10
10
  PDStore,
11
11
  } from '../index'
12
- import { DcqlQueryItem, GetDefinitionsArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types'
12
+ import { DcqlQueryItem, GetDefinitionsArgs, NonPersistedDcqlQueryItem } from '../types'
13
13
 
14
14
  export const SAMPLE_DCQL_QUERY_IMPORT: ImportDcqlQueryItem = {
15
15
  queryId: 'ajax-club',