@sphereon/ssi-sdk.data-store 0.19.1-next.117 → 0.19.1-next.119

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.
Files changed (113) hide show
  1. package/dist/contact/ContactStore.js.map +1 -1
  2. package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
  3. package/dist/entities/contact/BaseConfigEntity.js +2 -2
  4. package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
  5. package/dist/entities/contact/BaseContactEntity.js +2 -2
  6. package/dist/entities/contact/BaseContactEntity.js.map +1 -1
  7. package/dist/entities/contact/ConnectionEntity.js +2 -2
  8. package/dist/entities/contact/ConnectionEntity.js.map +1 -1
  9. package/dist/entities/contact/CorrelationIdentifierEntity.js +2 -2
  10. package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
  11. package/dist/entities/contact/DidAuthConfigEntity.js +2 -2
  12. package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
  13. package/dist/entities/contact/ElectronicAddressEntity.js +2 -2
  14. package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
  15. package/dist/entities/contact/IdentityEntity.js +2 -2
  16. package/dist/entities/contact/IdentityEntity.js.map +1 -1
  17. package/dist/entities/contact/IdentityMetadataItemEntity.js +2 -2
  18. package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
  19. package/dist/entities/contact/NaturalPersonEntity.js +2 -2
  20. package/dist/entities/contact/NaturalPersonEntity.js.map +1 -1
  21. package/dist/entities/contact/OpenIdConfigEntity.js +2 -2
  22. package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
  23. package/dist/entities/contact/OrganizationEntity.js +2 -2
  24. package/dist/entities/contact/OrganizationEntity.js.map +1 -1
  25. package/dist/entities/contact/PartyEntity.js +2 -2
  26. package/dist/entities/contact/PartyEntity.js.map +1 -1
  27. package/dist/entities/contact/PartyRelationshipEntity.js +3 -3
  28. package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -1
  29. package/dist/entities/contact/PartyTypeEntity.js +2 -2
  30. package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
  31. package/dist/entities/contact/PhysicalAddressEntity.js +2 -2
  32. package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -1
  33. package/dist/entities/digitalCredential/DigitalCredentialEntity.js +2 -2
  34. package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
  35. package/dist/entities/eventLogger/AuditEventEntity.js +2 -2
  36. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  37. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +2 -2
  38. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
  39. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +2 -2
  40. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -1
  41. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +2 -2
  42. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
  43. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +2 -2
  44. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
  45. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +2 -2
  46. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
  47. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +2 -2
  48. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
  49. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +2 -2
  50. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
  51. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +2 -2
  52. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
  53. package/dist/entities/issuanceBranding/TextAttributesEntity.js +2 -2
  54. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
  55. package/dist/entities/machineState/MachineStateInfoEntity.js +2 -2
  56. package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
  57. package/dist/entities/statusList2021/StatusList2021Entity.js +2 -2
  58. package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -1
  59. package/dist/entities/statusList2021/StatusList2021EntryEntity.js +2 -2
  60. package/dist/entities/statusList2021/StatusList2021EntryEntity.js.map +1 -1
  61. package/dist/entities/validators/index.js +2 -2
  62. package/dist/entities/validators/index.js.map +1 -1
  63. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
  64. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
  65. package/dist/machineState/MachineStateStore.js +2 -2
  66. package/dist/machineState/MachineStateStore.js.map +1 -1
  67. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  68. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
  69. package/dist/migrations/generic/3-CreateContacts.js.map +1 -1
  70. package/dist/migrations/generic/4-CreateStatusList.js.map +1 -1
  71. package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -1
  72. package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -1
  73. package/dist/migrations/generic/7-CreateMachineStateStore.js.map +1 -1
  74. package/dist/statusList/StatusListStore.js.map +1 -1
  75. package/dist/types/contact/contact.js +4 -4
  76. package/dist/types/contact/contact.js.map +1 -1
  77. package/dist/types/digitalCredential/digitalCredential.js +4 -4
  78. package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
  79. package/dist/utils/SortingUtils.d.ts.map +1 -1
  80. package/dist/utils/SortingUtils.js.map +1 -1
  81. package/dist/utils/ValidatorUtils.js.map +1 -1
  82. package/dist/utils/contact/MappingUtils.js +1 -1
  83. package/dist/utils/contact/MappingUtils.js.map +1 -1
  84. package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
  85. package/package.json +4 -4
  86. package/src/__tests__/contact.entities.test.ts +39 -39
  87. package/src/__tests__/contact.store.test.ts +10 -10
  88. package/src/__tests__/digitalCredential.store.test.ts +2 -2
  89. package/src/__tests__/issuanceBranding.entities.test.ts +18 -18
  90. package/src/__tests__/issuanceBranding.store.test.ts +42 -42
  91. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +2 -2
  92. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +2 -2
  93. package/src/issuanceBranding/IssuanceBrandingStore.ts +19 -18
  94. package/src/machineState/MachineStateStore.ts +1 -1
  95. package/src/migrations/generic/1-CreateContacts.ts +2 -2
  96. package/src/migrations/generic/2-CreateIssuanceBranding.ts +2 -2
  97. package/src/migrations/generic/3-CreateContacts.ts +2 -2
  98. package/src/migrations/generic/4-CreateStatusList.ts +2 -2
  99. package/src/migrations/generic/5-CreateAuditEvents.ts +2 -2
  100. package/src/migrations/generic/6-CreateDigitalCredential.ts +2 -2
  101. package/src/migrations/generic/7-CreateMachineStateStore.ts +2 -2
  102. package/src/migrations/postgres/1659463079428-CreateContacts.ts +11 -11
  103. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +16 -16
  104. package/src/migrations/postgres/1690925872592-CreateContacts.ts +20 -20
  105. package/src/migrations/postgres/1693866470001-CreateStatusList.ts +4 -4
  106. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +3 -3
  107. package/src/migrations/sqlite/1659463069549-CreateContacts.ts +22 -22
  108. package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +23 -23
  109. package/src/migrations/sqlite/1690925872693-CreateContacts.ts +34 -34
  110. package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +4 -4
  111. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +1 -1
  112. package/src/statusList/StatusListStore.ts +1 -1
  113. package/src/utils/digitalCredential/MappingUtils.ts +2 -2
@@ -416,7 +416,7 @@ describe('Database entities tests', (): void => {
416
416
  }
417
417
  const identity2Entity: IdentityEntity = identityEntityFrom(identity2)
418
418
  await expect(dbConnection.getRepository(IdentityEntity).save(identity2Entity)).rejects.toThrowError(
419
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: Identity.alias'
419
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: Identity.alias',
420
420
  )
421
421
  })
422
422
 
@@ -443,7 +443,7 @@ describe('Database entities tests', (): void => {
443
443
  }
444
444
  const identity2Entity: IdentityEntity = identityEntityFrom(identity2)
445
445
  await expect(dbConnection.getRepository(IdentityEntity).save(identity2Entity)).rejects.toThrowError(
446
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: CorrelationIdentifier.correlation_id'
446
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: CorrelationIdentifier.correlation_id',
447
447
  )
448
448
  })
449
449
 
@@ -641,7 +641,7 @@ describe('Database entities tests', (): void => {
641
641
  expect(fromDb?.connection?.type).toEqual(identity.connection?.type)
642
642
  expect(fromDb?.connection?.config).toBeDefined()
643
643
  expect((<DidAuthConfigEntity>fromDb?.connection?.config).identifier).toEqual(
644
- (<NonPersistedDidAuthConfig>identity.connection?.config).identifier.did
644
+ (<NonPersistedDidAuthConfig>identity.connection?.config).identifier.did,
645
645
  )
646
646
  })
647
647
 
@@ -870,7 +870,7 @@ describe('Database entities tests', (): void => {
870
870
  expect(
871
871
  await dbConnection.getRepository(PartyEntity).findOne({
872
872
  where: { id: savedParty1.id },
873
- })
873
+ }),
874
874
  ).toBeDefined()
875
875
 
876
876
  await dbConnection.getRepository(PartyEntity).delete({ id: savedParty1.id })
@@ -879,70 +879,70 @@ describe('Database entities tests', (): void => {
879
879
  await expect(
880
880
  await dbConnection.getRepository(PartyEntity).findOne({
881
881
  where: { id: savedParty1.id },
882
- })
882
+ }),
883
883
  ).toBeNull()
884
884
 
885
885
  // check identity
886
886
  expect(
887
887
  await dbConnection.getRepository(IdentityEntity).findOne({
888
888
  where: { id: savedParty1.id },
889
- })
889
+ }),
890
890
  ).toBeNull()
891
891
 
892
892
  // check identity identifier
893
893
  expect(
894
894
  await dbConnection.getRepository(CorrelationIdentifierEntity).findOne({
895
895
  where: { id: savedIdentity.identifier.id },
896
- })
896
+ }),
897
897
  ).toBeNull()
898
898
 
899
899
  // check identity connection
900
900
  expect(
901
901
  await dbConnection.getRepository(ConnectionEntity).findOne({
902
902
  where: { id: savedIdentity.connection!.id },
903
- })
903
+ }),
904
904
  ).toBeNull()
905
905
 
906
906
  // check connection config
907
907
  expect(
908
908
  await dbConnection.getRepository(OpenIdConfigEntity).findOne({
909
909
  where: { id: savedIdentity.connection!.config.id },
910
- })
910
+ }),
911
911
  ).toBeNull()
912
912
 
913
913
  // check identity metadata
914
914
  expect(
915
915
  await dbConnection.getRepository(IdentityMetadataItemEntity).findOne({
916
916
  where: { id: savedIdentity.metadata![0].id },
917
- })
917
+ }),
918
918
  ).toBeNull()
919
919
 
920
920
  // check electronic address
921
921
  expect(
922
922
  await dbConnection.getRepository(ElectronicAddressEntity).findOne({
923
923
  where: { id: savedParty1.id },
924
- })
924
+ }),
925
925
  ).toBeNull()
926
926
 
927
927
  // check contact
928
928
  expect(
929
929
  await dbConnection.getRepository(BaseContactEntity).findOne({
930
930
  where: { id: savedParty1.contact.id },
931
- })
931
+ }),
932
932
  ).toBeNull()
933
933
 
934
934
  // check party type
935
935
  expect(
936
936
  await dbConnection.getRepository(PartyTypeEntity).findOne({
937
937
  where: { id: savedParty1.partyType.id },
938
- })
938
+ }),
939
939
  ).toBeDefined()
940
940
 
941
941
  // check relation
942
942
  expect(
943
943
  await dbConnection.getRepository(PartyRelationshipEntity).findOne({
944
944
  where: { id: savedRelationship.id },
945
- })
945
+ }),
946
946
  ).toBeNull()
947
947
  })
948
948
 
@@ -1005,7 +1005,7 @@ describe('Database entities tests', (): void => {
1005
1005
  expect(
1006
1006
  await dbConnection.getRepository(PartyEntity).findOne({
1007
1007
  where: { id: savedParty.id },
1008
- })
1008
+ }),
1009
1009
  ).toBeDefined()
1010
1010
 
1011
1011
  await dbConnection.getRepository(IdentityEntity).delete({ id: savedIdentity.id })
@@ -1014,35 +1014,35 @@ describe('Database entities tests', (): void => {
1014
1014
  expect(
1015
1015
  await dbConnection.getRepository(IdentityEntity).findOne({
1016
1016
  where: { alias: correlationId },
1017
- })
1017
+ }),
1018
1018
  ).toBeNull()
1019
1019
 
1020
1020
  // check identity identifier
1021
1021
  expect(
1022
1022
  await dbConnection.getRepository(CorrelationIdentifierEntity).findOne({
1023
1023
  where: { id: savedIdentity.identifier.id },
1024
- })
1024
+ }),
1025
1025
  ).toBeNull()
1026
1026
 
1027
1027
  // check identity connection
1028
1028
  expect(
1029
1029
  await dbConnection.getRepository(ConnectionEntity).findOne({
1030
1030
  where: { id: savedIdentity.connection!.id },
1031
- })
1031
+ }),
1032
1032
  ).toBeNull()
1033
1033
 
1034
1034
  // check connection config
1035
1035
  expect(
1036
1036
  await dbConnection.getRepository(OpenIdConfigEntity).findOne({
1037
1037
  where: { id: savedIdentity.connection!.config.id },
1038
- })
1038
+ }),
1039
1039
  ).toBeNull()
1040
1040
 
1041
1041
  // check identity metadata
1042
1042
  expect(
1043
1043
  await dbConnection.getRepository(IdentityMetadataItemEntity).findOne({
1044
1044
  where: { id: savedIdentity.metadata![0].id },
1045
- })
1045
+ }),
1046
1046
  ).toBeNull()
1047
1047
  })
1048
1048
 
@@ -1110,14 +1110,14 @@ describe('Database entities tests', (): void => {
1110
1110
  expect(
1111
1111
  await dbConnection.getRepository(IdentityEntity).findOne({
1112
1112
  where: { id: savedIdentity.id },
1113
- })
1113
+ }),
1114
1114
  ).toBeNull()
1115
1115
 
1116
1116
  // check party
1117
1117
  expect(
1118
1118
  await dbConnection.getRepository(PartyEntity).findOne({
1119
1119
  where: { id: savedParty.id },
1120
- })
1120
+ }),
1121
1121
  ).toBeDefined()
1122
1122
  })
1123
1123
 
@@ -1398,7 +1398,7 @@ describe('Database entities tests', (): void => {
1398
1398
 
1399
1399
  const partyTypeEntity2: PartyTypeEntity = partyTypeEntityFrom(partyType2)
1400
1400
  await expect(dbConnection.getRepository(PartyTypeEntity).save(partyTypeEntity2)).rejects.toThrowError(
1401
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyType.type, PartyType.tenant_id'
1401
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyType.type, PartyType.tenant_id',
1402
1402
  )
1403
1403
  })
1404
1404
 
@@ -1423,7 +1423,7 @@ describe('Database entities tests', (): void => {
1423
1423
 
1424
1424
  const partyTypeEntity2: PartyTypeEntity = partyTypeEntityFrom(partyType2)
1425
1425
  await expect(dbConnection.getRepository(PartyTypeEntity).save(partyTypeEntity2)).rejects.toThrowError(
1426
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyType.name'
1426
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyType.name',
1427
1427
  )
1428
1428
  })
1429
1429
 
@@ -1448,7 +1448,7 @@ describe('Database entities tests', (): void => {
1448
1448
 
1449
1449
  const organizationEntity2: OrganizationEntity = organizationEntityFrom(organization2)
1450
1450
  await expect(dbConnection.getRepository(OrganizationEntity).save(organizationEntity2)).rejects.toThrowError(
1451
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseContact.legal_name'
1451
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseContact.legal_name',
1452
1452
  )
1453
1453
  })
1454
1454
 
@@ -1473,7 +1473,7 @@ describe('Database entities tests', (): void => {
1473
1473
 
1474
1474
  const organizationEntity2: OrganizationEntity = organizationEntityFrom(organization2)
1475
1475
  await expect(dbConnection.getRepository(OrganizationEntity).save(organizationEntity2)).rejects.toThrowError(
1476
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseContact.legal_name'
1476
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseContact.legal_name',
1477
1477
  )
1478
1478
  })
1479
1479
 
@@ -1791,7 +1791,7 @@ describe('Database entities tests', (): void => {
1791
1791
  })
1792
1792
 
1793
1793
  await expect(dbConnection.getRepository(PartyRelationshipEntity).save(relationship2)).rejects.toThrowError(
1794
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyRelationship.left_id, PartyRelationship.right_id'
1794
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: PartyRelationship.left_id, PartyRelationship.right_id',
1795
1795
  )
1796
1796
  })
1797
1797
 
@@ -2020,7 +2020,7 @@ describe('Database entities tests', (): void => {
2020
2020
  })
2021
2021
 
2022
2022
  await expect(dbConnection.getRepository(PartyRelationshipEntity).save(relationship)).rejects.toThrowError(
2023
- 'Cannot use the same id for both sides of the relationship'
2023
+ 'Cannot use the same id for both sides of the relationship',
2024
2024
  )
2025
2025
  })
2026
2026
 
@@ -2085,7 +2085,7 @@ describe('Database entities tests', (): void => {
2085
2085
  await expect(
2086
2086
  await dbConnection.getRepository(PartyRelationshipEntity).findOne({
2087
2087
  where: { id: savedRelationship.id },
2088
- })
2088
+ }),
2089
2089
  ).toBeNull()
2090
2090
  })
2091
2091
 
@@ -2106,7 +2106,7 @@ describe('Database entities tests', (): void => {
2106
2106
  await expect(
2107
2107
  await dbConnection.getRepository(PartyTypeEntity).findOne({
2108
2108
  where: { id: savedPartyType.id },
2109
- })
2109
+ }),
2110
2110
  ).toBeNull()
2111
2111
  })
2112
2112
 
@@ -2134,7 +2134,7 @@ describe('Database entities tests', (): void => {
2134
2134
  expect(savedParty).toBeDefined()
2135
2135
 
2136
2136
  await expect(dbConnection.getRepository(PartyTypeEntity).delete({ id: savedParty.partyType.id })).rejects.toThrowError(
2137
- 'FOREIGN KEY constraint failed'
2137
+ 'FOREIGN KEY constraint failed',
2138
2138
  )
2139
2139
  })
2140
2140
 
@@ -2251,7 +2251,7 @@ describe('Database entities tests', (): void => {
2251
2251
  const electronicAddressEntity: ElectronicAddressEntity = electronicAddressEntityFrom(electronicAddress)
2252
2252
 
2253
2253
  await expect(dbConnection.getRepository(ElectronicAddressEntity).save(electronicAddressEntity)).rejects.toThrowError(
2254
- 'Blank electronic addresses are not allowed'
2254
+ 'Blank electronic addresses are not allowed',
2255
2255
  )
2256
2256
  })
2257
2257
 
@@ -2372,7 +2372,7 @@ describe('Database entities tests', (): void => {
2372
2372
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2373
2373
 
2374
2374
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2375
- 'Blank street names are not allowed'
2375
+ 'Blank street names are not allowed',
2376
2376
  )
2377
2377
  })
2378
2378
 
@@ -2391,7 +2391,7 @@ describe('Database entities tests', (): void => {
2391
2391
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2392
2392
 
2393
2393
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2394
- 'Blank street numbers are not allowed'
2394
+ 'Blank street numbers are not allowed',
2395
2395
  )
2396
2396
  })
2397
2397
 
@@ -2410,7 +2410,7 @@ describe('Database entities tests', (): void => {
2410
2410
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2411
2411
 
2412
2412
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2413
- 'Blank building names are not allowed'
2413
+ 'Blank building names are not allowed',
2414
2414
  )
2415
2415
  })
2416
2416
 
@@ -2429,7 +2429,7 @@ describe('Database entities tests', (): void => {
2429
2429
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2430
2430
 
2431
2431
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2432
- 'Blank postal codes are not allowed'
2432
+ 'Blank postal codes are not allowed',
2433
2433
  )
2434
2434
  })
2435
2435
 
@@ -2448,7 +2448,7 @@ describe('Database entities tests', (): void => {
2448
2448
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2449
2449
 
2450
2450
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2451
- 'Blank city names are not allowed'
2451
+ 'Blank city names are not allowed',
2452
2452
  )
2453
2453
  })
2454
2454
 
@@ -2467,7 +2467,7 @@ describe('Database entities tests', (): void => {
2467
2467
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2468
2468
 
2469
2469
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2470
- 'Blank province names are not allowed'
2470
+ 'Blank province names are not allowed',
2471
2471
  )
2472
2472
  })
2473
2473
 
@@ -2486,7 +2486,7 @@ describe('Database entities tests', (): void => {
2486
2486
  const physicalAddressEntity: PhysicalAddressEntity = physicalAddressEntityFrom(physicalAddress)
2487
2487
 
2488
2488
  await expect(dbConnection.getRepository(PhysicalAddressEntity).save(physicalAddressEntity)).rejects.toThrowError(
2489
- 'Blank country codes are not allowed'
2489
+ 'Blank country codes are not allowed',
2490
2490
  )
2491
2491
  })
2492
2492
  })
@@ -891,7 +891,7 @@ describe('Contact store tests', (): void => {
891
891
  }
892
892
 
893
893
  await expect(contactStore.addIdentity({ partyId: savedParty.id, identity })).rejects.toThrow(
894
- `Identity with correlation type url should contain a connection`
894
+ `Identity with correlation type url should contain a connection`,
895
895
  )
896
896
  })
897
897
 
@@ -926,7 +926,7 @@ describe('Contact store tests', (): void => {
926
926
  storedIdentity.identifier = { ...storedIdentity.identifier, type: CorrelationIdentifierEnum.URL }
927
927
 
928
928
  await expect(contactStore.updateIdentity({ identity: storedIdentity })).rejects.toThrow(
929
- `Identity with correlation type url should contain a connection`
929
+ `Identity with correlation type url should contain a connection`,
930
930
  )
931
931
  })
932
932
 
@@ -1426,7 +1426,7 @@ describe('Contact store tests', (): void => {
1426
1426
  }
1427
1427
 
1428
1428
  await expect(contactStore.updateRelationship({ relationship: updatedRelationship })).rejects.toThrow(
1429
- `No party relationship found for id: ${relationshipId}`
1429
+ `No party relationship found for id: ${relationshipId}`,
1430
1430
  )
1431
1431
  })
1432
1432
 
@@ -1478,7 +1478,7 @@ describe('Contact store tests', (): void => {
1478
1478
  }
1479
1479
 
1480
1480
  await expect(contactStore.updateRelationship({ relationship: updatedRelationship })).rejects.toThrow(
1481
- `No party found for right side of the relationship, party id: ${partyId}`
1481
+ `No party found for right side of the relationship, party id: ${partyId}`,
1482
1482
  )
1483
1483
  })
1484
1484
 
@@ -1530,7 +1530,7 @@ describe('Contact store tests', (): void => {
1530
1530
  }
1531
1531
 
1532
1532
  await expect(contactStore.updateRelationship({ relationship: updatedRelationship })).rejects.toThrow(
1533
- `No party found for left side of the relationship, party id: ${partyId}`
1533
+ `No party found for left side of the relationship, party id: ${partyId}`,
1534
1534
  )
1535
1535
  })
1536
1536
 
@@ -1712,7 +1712,7 @@ describe('Contact store tests', (): void => {
1712
1712
  expect(savedParty).toBeDefined()
1713
1713
 
1714
1714
  await expect(contactStore.removePartyType({ partyTypeId: savedParty.partyType.id })).rejects.toThrow(
1715
- `Unable to remove party type with id: ${savedParty.partyType.id}. Party type is in use`
1715
+ `Unable to remove party type with id: ${savedParty.partyType.id}. Party type is in use`,
1716
1716
  )
1717
1717
  })
1718
1718
 
@@ -1818,7 +1818,7 @@ describe('Contact store tests', (): void => {
1818
1818
  const electronicAddressId = 'unknownElectronicAddressId'
1819
1819
 
1820
1820
  await expect(contactStore.getElectronicAddress({ electronicAddressId })).rejects.toThrow(
1821
- `No electronic address found for id: ${electronicAddressId}`
1821
+ `No electronic address found for id: ${electronicAddressId}`,
1822
1822
  )
1823
1823
  })
1824
1824
 
@@ -2050,7 +2050,7 @@ describe('Contact store tests', (): void => {
2050
2050
  await contactStore.removeElectronicAddress({ electronicAddressId: savedElectronicAddress.id })
2051
2051
 
2052
2052
  await expect(contactStore.getElectronicAddress({ electronicAddressId: savedElectronicAddress.id })).rejects.toThrow(
2053
- `No electronic address found for id: ${savedElectronicAddress.id}`
2053
+ `No electronic address found for id: ${savedElectronicAddress.id}`,
2054
2054
  )
2055
2055
  })
2056
2056
 
@@ -2058,7 +2058,7 @@ describe('Contact store tests', (): void => {
2058
2058
  const electronicAddressId = 'unknownElectronicAddressId'
2059
2059
 
2060
2060
  await expect(contactStore.removeElectronicAddress({ electronicAddressId })).rejects.toThrow(
2061
- `No electronic address found for id: ${electronicAddressId}`
2061
+ `No electronic address found for id: ${electronicAddressId}`,
2062
2062
  )
2063
2063
  })
2064
2064
 
@@ -2386,7 +2386,7 @@ describe('Contact store tests', (): void => {
2386
2386
  await contactStore.removePhysicalAddress({ physicalAddressId: savedPhysicalAddress.id })
2387
2387
 
2388
2388
  await expect(contactStore.getPhysicalAddress({ physicalAddressId: savedPhysicalAddress.id })).rejects.toThrow(
2389
- `No physical address found for id: ${savedPhysicalAddress.id}`
2389
+ `No physical address found for id: ${savedPhysicalAddress.id}`,
2390
2390
  )
2391
2391
  })
2392
2392
 
@@ -64,7 +64,7 @@ describe('Database entities tests', (): void => {
64
64
  }
65
65
 
66
66
  await expect(digitalCredentialStore.addCredential(digitalCredential)).rejects.toThrowError(
67
- 'No hasher function is provided for SD_JWT credential.'
67
+ 'No hasher function is provided for SD_JWT credential.',
68
68
  )
69
69
  })
70
70
 
@@ -265,7 +265,7 @@ describe('Database entities tests', (): void => {
265
265
  digitalCredentialStore.updateCredentialState({
266
266
  id: savedDigitalCredential.id,
267
267
  verifiedState: CredentialStateType.REVOKED,
268
- })
268
+ }),
269
269
  ).rejects.toThrowError('No revokedAt param is provided.')
270
270
  })
271
271
 
@@ -103,10 +103,10 @@ describe('Database entities tests', (): void => {
103
103
  expect(fromDb?.localeBranding[0].background!.image!.mediaType).toEqual(credentialBranding.localeBranding[0].background!.image!.mediaType)
104
104
  expect(fromDb?.localeBranding[0].background!.image!.dimensions).toBeDefined()
105
105
  expect(fromDb?.localeBranding[0].background!.image!.dimensions!.width).toEqual(
106
- credentialBranding.localeBranding[0].background!.image!.dimensions!.width
106
+ credentialBranding.localeBranding[0].background!.image!.dimensions!.width,
107
107
  )
108
108
  expect(fromDb?.localeBranding[0].background!.image!.dimensions!.height).toEqual(
109
- credentialBranding.localeBranding[0].background!.image!.dimensions!.height
109
+ credentialBranding.localeBranding[0].background!.image!.dimensions!.height,
110
110
  )
111
111
  expect(fromDb?.localeBranding[0].text).toBeDefined()
112
112
  expect(fromDb?.localeBranding[0].text!.color).toEqual(credentialBranding.localeBranding[0].text!.color)
@@ -143,7 +143,7 @@ describe('Database entities tests', (): void => {
143
143
  const credentialBrandingEntity2: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding2)
144
144
 
145
145
  await expect(repository.save(credentialBrandingEntity2)).rejects.toThrowError(
146
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: CredentialBranding.vcHash'
146
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: CredentialBranding.vcHash',
147
147
  )
148
148
  })
149
149
 
@@ -161,7 +161,7 @@ describe('Database entities tests', (): void => {
161
161
  const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
162
162
 
163
163
  await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
164
- 'Blank vcHashes are not allowed'
164
+ 'Blank vcHashes are not allowed',
165
165
  )
166
166
  })
167
167
 
@@ -179,7 +179,7 @@ describe('Database entities tests', (): void => {
179
179
  const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
180
180
 
181
181
  await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
182
- 'Blank issuerCorrelationIds are not allowed'
182
+ 'Blank issuerCorrelationIds are not allowed',
183
183
  )
184
184
  })
185
185
 
@@ -192,7 +192,7 @@ describe('Database entities tests', (): void => {
192
192
 
193
193
  const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
194
194
  await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrow(
195
- 'localeBranding cannot be empty'
195
+ 'localeBranding cannot be empty',
196
196
  )
197
197
  })
198
198
 
@@ -242,7 +242,7 @@ describe('Database entities tests', (): void => {
242
242
  const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
243
243
 
244
244
  await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
245
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.credentialBrandingId, BaseLocaleBranding.locale'
245
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.credentialBrandingId, BaseLocaleBranding.locale',
246
246
  )
247
247
  })
248
248
 
@@ -263,7 +263,7 @@ describe('Database entities tests', (): void => {
263
263
  const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
264
264
 
265
265
  await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
266
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.credentialBrandingId, BaseLocaleBranding.locale'
266
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.credentialBrandingId, BaseLocaleBranding.locale',
267
267
  )
268
268
  })
269
269
 
@@ -366,7 +366,7 @@ describe('Database entities tests', (): void => {
366
366
  await expect(
367
367
  await repository.findOne({
368
368
  where: { id: fromDb.id },
369
- })
369
+ }),
370
370
  ).toBeNull()
371
371
  })
372
372
 
@@ -393,7 +393,7 @@ describe('Database entities tests', (): void => {
393
393
  await expect(
394
394
  await localeBrandingRepository.findOne({
395
395
  where: { id: fromDb.id },
396
- })
396
+ }),
397
397
  ).toBeNull()
398
398
 
399
399
  const result: CredentialBrandingEntity | null = await credentialBrandingRepository.findOne({ where: { id: fromDb.id } })
@@ -522,10 +522,10 @@ describe('Database entities tests', (): void => {
522
522
  expect(fromDb?.localeBranding[0].background!.image!.mediaType).toEqual(issuerBranding.localeBranding[0].background!.image!.mediaType)
523
523
  expect(fromDb?.localeBranding[0].background!.image!.dimensions).toBeDefined()
524
524
  expect(fromDb?.localeBranding[0].background!.image!.dimensions!.width).toEqual(
525
- issuerBranding.localeBranding[0].background!.image!.dimensions!.width
525
+ issuerBranding.localeBranding[0].background!.image!.dimensions!.width,
526
526
  )
527
527
  expect(fromDb?.localeBranding[0].background!.image!.dimensions!.height).toEqual(
528
- issuerBranding.localeBranding[0].background!.image!.dimensions!.height
528
+ issuerBranding.localeBranding[0].background!.image!.dimensions!.height,
529
529
  )
530
530
  expect(fromDb?.localeBranding[0].text).toBeDefined()
531
531
  expect(fromDb?.localeBranding[0].text!.color).toEqual(issuerBranding.localeBranding[0].text!.color)
@@ -560,7 +560,7 @@ describe('Database entities tests', (): void => {
560
560
  const issuerBrandingEntity2: IssuerBrandingEntity = issuerBrandingEntityFrom(issuerBranding2)
561
561
 
562
562
  await expect(repository.save(issuerBrandingEntity2)).rejects.toThrowError(
563
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: IssuerBranding.issuerCorrelationId'
563
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: IssuerBranding.issuerCorrelationId',
564
564
  )
565
565
  })
566
566
 
@@ -577,7 +577,7 @@ describe('Database entities tests', (): void => {
577
577
  const issuerBrandingEntity: IssuerBrandingEntity = issuerBrandingEntityFrom(issuerBranding)
578
578
 
579
579
  await expect(dbConnection.getRepository(IssuerBrandingEntity).save(issuerBrandingEntity)).rejects.toThrowError(
580
- 'Blank issuerCorrelationIds are not allowed'
580
+ 'Blank issuerCorrelationIds are not allowed',
581
581
  )
582
582
  })
583
583
 
@@ -635,7 +635,7 @@ describe('Database entities tests', (): void => {
635
635
  const issuerBrandingEntity: IssuerBrandingEntity = issuerBrandingEntityFrom(issuerBranding)
636
636
 
637
637
  await expect(dbConnection.getRepository(IssuerBrandingEntity).save(issuerBrandingEntity)).rejects.toThrowError(
638
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.issuerBrandingId, BaseLocaleBranding.locale'
638
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.issuerBrandingId, BaseLocaleBranding.locale',
639
639
  )
640
640
  })
641
641
 
@@ -655,7 +655,7 @@ describe('Database entities tests', (): void => {
655
655
  const issuerBrandingEntity: IssuerBrandingEntity = issuerBrandingEntityFrom(issuerBranding)
656
656
 
657
657
  await expect(dbConnection.getRepository(IssuerBrandingEntity).save(issuerBrandingEntity)).rejects.toThrowError(
658
- 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.issuerBrandingId, BaseLocaleBranding.locale'
658
+ 'SQLITE_CONSTRAINT: UNIQUE constraint failed: BaseLocaleBranding.issuerBrandingId, BaseLocaleBranding.locale',
659
659
  )
660
660
  })
661
661
 
@@ -755,7 +755,7 @@ describe('Database entities tests', (): void => {
755
755
  await expect(
756
756
  await repository.findOne({
757
757
  where: { id: fromDb.id },
758
- })
758
+ }),
759
759
  ).toBeNull()
760
760
  })
761
761
 
@@ -781,7 +781,7 @@ describe('Database entities tests', (): void => {
781
781
  await expect(
782
782
  await localeBrandingRepository.findOne({
783
783
  where: { id: fromDb.id },
784
- })
784
+ }),
785
785
  ).toBeNull()
786
786
 
787
787
  const result: IssuerBrandingEntity | null = await issuerBrandingRepository.findOne({ where: { id: fromDb.id } })