@sphereon/ssi-sdk.data-store 0.19.1-unstable.93 → 0.21.0
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/dist/contact/ContactStore.d.ts.map +1 -1
- package/dist/contact/ContactStore.js +2 -0
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
- package/dist/entities/contact/BaseConfigEntity.js +2 -2
- package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
- package/dist/entities/contact/BaseContactEntity.js +2 -2
- package/dist/entities/contact/BaseContactEntity.js.map +1 -1
- package/dist/entities/contact/ConnectionEntity.js +2 -2
- package/dist/entities/contact/ConnectionEntity.js.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.js +2 -2
- package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
- package/dist/entities/contact/DidAuthConfigEntity.js +2 -2
- package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +2 -2
- package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +2 -2
- package/dist/entities/contact/IdentityEntity.js.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +2 -2
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
- package/dist/entities/contact/NaturalPersonEntity.js +2 -2
- package/dist/entities/contact/NaturalPersonEntity.js.map +1 -1
- package/dist/entities/contact/OpenIdConfigEntity.js +2 -2
- package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
- package/dist/entities/contact/OrganizationEntity.js +2 -2
- package/dist/entities/contact/OrganizationEntity.js.map +1 -1
- package/dist/entities/contact/PartyEntity.js +2 -2
- package/dist/entities/contact/PartyEntity.js.map +1 -1
- package/dist/entities/contact/PartyRelationshipEntity.js +3 -3
- package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.js +2 -2
- package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
- package/dist/entities/contact/PhysicalAddressEntity.js +2 -2
- package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +2 -2
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +2 -2
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +2 -2
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +2 -2
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +2 -2
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +2 -2
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +2 -2
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +2 -2
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +2 -2
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +2 -2
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +2 -2
- package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
- package/dist/entities/machineState/MachineStateInfoEntity.js +2 -2
- package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
- package/dist/entities/statusList2021/StatusList2021Entity.js +2 -2
- package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -1
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +2 -2
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js.map +1 -1
- package/dist/entities/validators/index.js +2 -2
- package/dist/entities/validators/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/machineState/MachineStateStore.js +2 -2
- package/dist/machineState/MachineStateStore.js.map +1 -1
- package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/generic/3-CreateContacts.js.map +1 -1
- package/dist/migrations/generic/4-CreateStatusList.js.map +1 -1
- package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.js.map +1 -1
- package/dist/statusList/StatusListStore.js.map +1 -1
- package/dist/types/contact/contact.js +4 -4
- package/dist/types/contact/contact.js.map +1 -1
- package/dist/types/digitalCredential/digitalCredential.js +4 -4
- package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
- package/dist/utils/SortingUtils.d.ts.map +1 -1
- package/dist/utils/SortingUtils.js.map +1 -1
- package/dist/utils/ValidatorUtils.js.map +1 -1
- package/dist/utils/contact/MappingUtils.js +2 -2
- package/dist/utils/contact/MappingUtils.js.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/contact.entities.test.ts +39 -39
- package/src/__tests__/contact.store.test.ts +10 -10
- package/src/__tests__/digitalCredential.store.test.ts +2 -2
- package/src/__tests__/issuanceBranding.entities.test.ts +18 -18
- package/src/__tests__/issuanceBranding.store.test.ts +42 -42
- package/src/contact/ContactStore.ts +2 -0
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +2 -2
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +2 -2
- package/src/index.ts +1 -0
- package/src/issuanceBranding/IssuanceBrandingStore.ts +19 -18
- package/src/machineState/MachineStateStore.ts +1 -1
- package/src/migrations/generic/1-CreateContacts.ts +2 -2
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +2 -2
- package/src/migrations/generic/3-CreateContacts.ts +2 -2
- package/src/migrations/generic/4-CreateStatusList.ts +2 -2
- package/src/migrations/generic/5-CreateAuditEvents.ts +2 -2
- package/src/migrations/generic/6-CreateDigitalCredential.ts +2 -2
- package/src/migrations/generic/7-CreateMachineStateStore.ts +2 -2
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +11 -11
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +16 -16
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +20 -20
- package/src/migrations/postgres/1693866470001-CreateStatusList.ts +4 -4
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +3 -3
- package/src/migrations/sqlite/1659463069549-CreateContacts.ts +22 -22
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +23 -23
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +34 -34
- package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +4 -4
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +1 -1
- package/src/statusList/StatusListStore.ts +1 -1
- package/src/utils/contact/MappingUtils.ts +1 -1
- package/src/utils/digitalCredential/MappingUtils.ts +2 -2
|
@@ -102,7 +102,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
await expect(issuanceBrandingStore.addCredentialBranding(credentialBranding2)).rejects.toThrowError(
|
|
105
|
-
`Credential branding already present for vc with hash: ${credentialBranding2.vcHash}
|
|
105
|
+
`Credential branding already present for vc with hash: ${credentialBranding2.vcHash}`,
|
|
106
106
|
)
|
|
107
107
|
})
|
|
108
108
|
|
|
@@ -123,7 +123,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
await expect(issuanceBrandingStore.addCredentialBranding(credentialBranding1)).rejects.toThrowError(
|
|
126
|
-
'Credential branding contains duplicate locales'
|
|
126
|
+
'Credential branding contains duplicate locales',
|
|
127
127
|
)
|
|
128
128
|
|
|
129
129
|
const credentialBranding2: IBasicCredentialBranding = {
|
|
@@ -140,7 +140,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
await expect(issuanceBrandingStore.addCredentialBranding(credentialBranding2)).rejects.toThrowError(
|
|
143
|
-
'Credential branding contains duplicate locales'
|
|
143
|
+
'Credential branding contains duplicate locales',
|
|
144
144
|
)
|
|
145
145
|
})
|
|
146
146
|
|
|
@@ -482,7 +482,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
await expect(issuanceBrandingStore.updateCredentialBranding({ credentialBranding })).rejects.toThrowError(
|
|
485
|
-
`No credential branding found for id: ${credentialBranding.id}
|
|
485
|
+
`No credential branding found for id: ${credentialBranding.id}`,
|
|
486
486
|
)
|
|
487
487
|
})
|
|
488
488
|
|
|
@@ -534,49 +534,49 @@ describe('Issuance branding store tests', (): void => {
|
|
|
534
534
|
expect(
|
|
535
535
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
536
536
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.image?.dimensions?.id },
|
|
537
|
-
})
|
|
537
|
+
}),
|
|
538
538
|
).toBeNull()
|
|
539
539
|
|
|
540
540
|
// check background image
|
|
541
541
|
expect(
|
|
542
542
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
543
543
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.image?.id },
|
|
544
|
-
})
|
|
544
|
+
}),
|
|
545
545
|
).toBeNull()
|
|
546
546
|
|
|
547
547
|
// check background
|
|
548
548
|
expect(
|
|
549
549
|
await dbConnection.getRepository(BackgroundAttributesEntity).findOne({
|
|
550
550
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.id },
|
|
551
|
-
})
|
|
551
|
+
}),
|
|
552
552
|
).toBeNull()
|
|
553
553
|
|
|
554
554
|
// check logo dimensions
|
|
555
555
|
expect(
|
|
556
556
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
557
557
|
where: { id: savedCredentialBranding?.localeBranding[0]?.logo?.dimensions?.id },
|
|
558
|
-
})
|
|
558
|
+
}),
|
|
559
559
|
).toBeNull()
|
|
560
560
|
|
|
561
561
|
// check logo
|
|
562
562
|
expect(
|
|
563
563
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
564
564
|
where: { id: savedCredentialBranding?.localeBranding[0]?.logo?.id },
|
|
565
|
-
})
|
|
565
|
+
}),
|
|
566
566
|
).toBeNull()
|
|
567
567
|
|
|
568
568
|
// check text
|
|
569
569
|
expect(
|
|
570
570
|
await dbConnection.getRepository(TextAttributesEntity).findOne({
|
|
571
571
|
where: { id: savedCredentialBranding?.localeBranding[0]?.text?.id },
|
|
572
|
-
})
|
|
572
|
+
}),
|
|
573
573
|
).toBeNull()
|
|
574
574
|
|
|
575
575
|
// check credential locale branding
|
|
576
576
|
expect(
|
|
577
577
|
await dbConnection.getRepository(CredentialLocaleBrandingEntity).findOne({
|
|
578
578
|
where: { id: savedCredentialBranding?.localeBranding[0]?.id },
|
|
579
|
-
})
|
|
579
|
+
}),
|
|
580
580
|
).toBeNull()
|
|
581
581
|
|
|
582
582
|
const result: Array<ICredentialBranding> = await issuanceBrandingStore.getCredentialBranding()
|
|
@@ -626,7 +626,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
await expect(issuanceBrandingStore.addCredentialLocaleBranding(addCredentialLocaleBrandingArgs)).rejects.toThrowError(
|
|
629
|
-
`No credential branding found for id: ${addCredentialLocaleBrandingArgs.credentialBrandingId}
|
|
629
|
+
`No credential branding found for id: ${addCredentialLocaleBrandingArgs.credentialBrandingId}`,
|
|
630
630
|
)
|
|
631
631
|
})
|
|
632
632
|
|
|
@@ -665,8 +665,8 @@ describe('Issuance branding store tests', (): void => {
|
|
|
665
665
|
|
|
666
666
|
await expect(issuanceBrandingStore.addCredentialLocaleBranding(addCredentialLocaleBrandingArgs)).rejects.toThrowError(
|
|
667
667
|
`Credential branding already contains locales: ${addCredentialLocaleBrandingArgs.localeBranding.map(
|
|
668
|
-
(localeBranding: IBasicCredentialLocaleBranding) => localeBranding.locale
|
|
669
|
-
)}
|
|
668
|
+
(localeBranding: IBasicCredentialLocaleBranding) => localeBranding.locale,
|
|
669
|
+
)}`,
|
|
670
670
|
)
|
|
671
671
|
})
|
|
672
672
|
|
|
@@ -790,7 +790,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
await expect(issuanceBrandingStore.updateCredentialLocaleBranding(updateCredentialLocaleBrandingArgs)).rejects.toThrowError(
|
|
793
|
-
`Credential branding: ${savedCredentialBranding.id} already contains locale: ${locale}
|
|
793
|
+
`Credential branding: ${savedCredentialBranding.id} already contains locale: ${locale}`,
|
|
794
794
|
)
|
|
795
795
|
})
|
|
796
796
|
|
|
@@ -842,49 +842,49 @@ describe('Issuance branding store tests', (): void => {
|
|
|
842
842
|
expect(
|
|
843
843
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
844
844
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.image?.dimensions?.id },
|
|
845
|
-
})
|
|
845
|
+
}),
|
|
846
846
|
).toBeNull()
|
|
847
847
|
|
|
848
848
|
// check background image
|
|
849
849
|
expect(
|
|
850
850
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
851
851
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.image?.id },
|
|
852
|
-
})
|
|
852
|
+
}),
|
|
853
853
|
).toBeNull()
|
|
854
854
|
|
|
855
855
|
// check background
|
|
856
856
|
expect(
|
|
857
857
|
await dbConnection.getRepository(BackgroundAttributesEntity).findOne({
|
|
858
858
|
where: { id: savedCredentialBranding?.localeBranding[0]?.background?.id },
|
|
859
|
-
})
|
|
859
|
+
}),
|
|
860
860
|
).toBeNull()
|
|
861
861
|
|
|
862
862
|
// check logo dimensions
|
|
863
863
|
expect(
|
|
864
864
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
865
865
|
where: { id: savedCredentialBranding?.localeBranding[0]?.logo?.dimensions?.id },
|
|
866
|
-
})
|
|
866
|
+
}),
|
|
867
867
|
).toBeNull()
|
|
868
868
|
|
|
869
869
|
// check logo
|
|
870
870
|
expect(
|
|
871
871
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
872
872
|
where: { id: savedCredentialBranding?.localeBranding[0]?.logo?.id },
|
|
873
|
-
})
|
|
873
|
+
}),
|
|
874
874
|
).toBeNull()
|
|
875
875
|
|
|
876
876
|
// check text
|
|
877
877
|
expect(
|
|
878
878
|
await dbConnection.getRepository(TextAttributesEntity).findOne({
|
|
879
879
|
where: { id: savedCredentialBranding?.localeBranding[0]?.text?.id },
|
|
880
|
-
})
|
|
880
|
+
}),
|
|
881
881
|
).toBeNull()
|
|
882
882
|
|
|
883
883
|
// check credential locale branding
|
|
884
884
|
expect(
|
|
885
885
|
await dbConnection.getRepository(CredentialLocaleBrandingEntity).findOne({
|
|
886
886
|
where: { id: savedCredentialBranding?.localeBranding[0]?.id },
|
|
887
|
-
})
|
|
887
|
+
}),
|
|
888
888
|
).toBeNull()
|
|
889
889
|
|
|
890
890
|
const result: Array<ICredentialLocaleBranding> = await issuanceBrandingStore.getCredentialLocaleBranding()
|
|
@@ -1037,7 +1037,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
await expect(issuanceBrandingStore.addIssuerBranding(issuerBranding2)).rejects.toThrowError(
|
|
1040
|
-
`Issuer branding already present for issuer with correlation id: ${issuerBranding2.issuerCorrelationId}
|
|
1040
|
+
`Issuer branding already present for issuer with correlation id: ${issuerBranding2.issuerCorrelationId}`,
|
|
1041
1041
|
)
|
|
1042
1042
|
})
|
|
1043
1043
|
|
|
@@ -1395,7 +1395,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
1397
1397
|
await expect(issuanceBrandingStore.updateIssuerBranding({ issuerBranding })).rejects.toThrowError(
|
|
1398
|
-
`No issuer branding found for id: ${issuerBranding.id}
|
|
1398
|
+
`No issuer branding found for id: ${issuerBranding.id}`,
|
|
1399
1399
|
)
|
|
1400
1400
|
})
|
|
1401
1401
|
|
|
@@ -1446,49 +1446,49 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1446
1446
|
expect(
|
|
1447
1447
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
1448
1448
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.image?.dimensions?.id },
|
|
1449
|
-
})
|
|
1449
|
+
}),
|
|
1450
1450
|
).toBeNull()
|
|
1451
1451
|
|
|
1452
1452
|
// check background image
|
|
1453
1453
|
expect(
|
|
1454
1454
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
1455
1455
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.image?.id },
|
|
1456
|
-
})
|
|
1456
|
+
}),
|
|
1457
1457
|
).toBeNull()
|
|
1458
1458
|
|
|
1459
1459
|
// check background
|
|
1460
1460
|
expect(
|
|
1461
1461
|
await dbConnection.getRepository(BackgroundAttributesEntity).findOne({
|
|
1462
1462
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.id },
|
|
1463
|
-
})
|
|
1463
|
+
}),
|
|
1464
1464
|
).toBeNull()
|
|
1465
1465
|
|
|
1466
1466
|
// check logo dimensions
|
|
1467
1467
|
expect(
|
|
1468
1468
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
1469
1469
|
where: { id: savedIssuerBranding?.localeBranding[0]?.logo?.dimensions?.id },
|
|
1470
|
-
})
|
|
1470
|
+
}),
|
|
1471
1471
|
).toBeNull()
|
|
1472
1472
|
|
|
1473
1473
|
// check logo
|
|
1474
1474
|
expect(
|
|
1475
1475
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
1476
1476
|
where: { id: savedIssuerBranding?.localeBranding[0]?.logo?.id },
|
|
1477
|
-
})
|
|
1477
|
+
}),
|
|
1478
1478
|
).toBeNull()
|
|
1479
1479
|
|
|
1480
1480
|
// check text
|
|
1481
1481
|
expect(
|
|
1482
1482
|
await dbConnection.getRepository(TextAttributesEntity).findOne({
|
|
1483
1483
|
where: { id: savedIssuerBranding?.localeBranding[0]?.text?.id },
|
|
1484
|
-
})
|
|
1484
|
+
}),
|
|
1485
1485
|
).toBeNull()
|
|
1486
1486
|
|
|
1487
1487
|
// check issuer locale branding
|
|
1488
1488
|
expect(
|
|
1489
1489
|
await dbConnection.getRepository(IssuerLocaleBrandingEntity).findOne({
|
|
1490
1490
|
where: { id: savedIssuerBranding?.localeBranding[0]?.id },
|
|
1491
|
-
})
|
|
1491
|
+
}),
|
|
1492
1492
|
).toBeNull()
|
|
1493
1493
|
})
|
|
1494
1494
|
|
|
@@ -1533,7 +1533,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
|
|
1535
1535
|
await expect(issuanceBrandingStore.addIssuerLocaleBranding(addIssuerLocaleBrandingArgs)).rejects.toThrowError(
|
|
1536
|
-
`No issuer branding found for id: ${addIssuerLocaleBrandingArgs.issuerBrandingId}
|
|
1536
|
+
`No issuer branding found for id: ${addIssuerLocaleBrandingArgs.issuerBrandingId}`,
|
|
1537
1537
|
)
|
|
1538
1538
|
})
|
|
1539
1539
|
|
|
@@ -1571,8 +1571,8 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1571
1571
|
|
|
1572
1572
|
await expect(issuanceBrandingStore.addIssuerLocaleBranding(addIssuerLocaleBrandingArgs)).rejects.toThrowError(
|
|
1573
1573
|
`Issuer branding already contains locales: ${addIssuerLocaleBrandingArgs.localeBranding.map(
|
|
1574
|
-
(localeBranding: IBasicIssuerLocaleBranding) => localeBranding.locale
|
|
1575
|
-
)}
|
|
1574
|
+
(localeBranding: IBasicIssuerLocaleBranding) => localeBranding.locale,
|
|
1575
|
+
)}`,
|
|
1576
1576
|
)
|
|
1577
1577
|
})
|
|
1578
1578
|
|
|
@@ -1692,7 +1692,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
1694
|
await expect(issuanceBrandingStore.updateIssuerLocaleBranding(updateIssuerLocaleBrandingArgs)).rejects.toThrowError(
|
|
1695
|
-
`Issuer branding: ${savedIssuerBranding.id} already contains locale: ${locale}
|
|
1695
|
+
`Issuer branding: ${savedIssuerBranding.id} already contains locale: ${locale}`,
|
|
1696
1696
|
)
|
|
1697
1697
|
})
|
|
1698
1698
|
|
|
@@ -1743,49 +1743,49 @@ describe('Issuance branding store tests', (): void => {
|
|
|
1743
1743
|
expect(
|
|
1744
1744
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
1745
1745
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.image?.dimensions?.id },
|
|
1746
|
-
})
|
|
1746
|
+
}),
|
|
1747
1747
|
).toBeNull()
|
|
1748
1748
|
|
|
1749
1749
|
// check background image
|
|
1750
1750
|
expect(
|
|
1751
1751
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
1752
1752
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.image?.id },
|
|
1753
|
-
})
|
|
1753
|
+
}),
|
|
1754
1754
|
).toBeNull()
|
|
1755
1755
|
|
|
1756
1756
|
// check background
|
|
1757
1757
|
expect(
|
|
1758
1758
|
await dbConnection.getRepository(BackgroundAttributesEntity).findOne({
|
|
1759
1759
|
where: { id: savedIssuerBranding?.localeBranding[0]?.background?.id },
|
|
1760
|
-
})
|
|
1760
|
+
}),
|
|
1761
1761
|
).toBeNull()
|
|
1762
1762
|
|
|
1763
1763
|
// check logo dimensions
|
|
1764
1764
|
expect(
|
|
1765
1765
|
await dbConnection.getRepository(ImageDimensionsEntity).findOne({
|
|
1766
1766
|
where: { id: savedIssuerBranding?.localeBranding[0]?.logo?.dimensions?.id },
|
|
1767
|
-
})
|
|
1767
|
+
}),
|
|
1768
1768
|
).toBeNull()
|
|
1769
1769
|
|
|
1770
1770
|
// check logo
|
|
1771
1771
|
expect(
|
|
1772
1772
|
await dbConnection.getRepository(ImageAttributesEntity).findOne({
|
|
1773
1773
|
where: { id: savedIssuerBranding?.localeBranding[0]?.logo?.id },
|
|
1774
|
-
})
|
|
1774
|
+
}),
|
|
1775
1775
|
).toBeNull()
|
|
1776
1776
|
|
|
1777
1777
|
// check text
|
|
1778
1778
|
expect(
|
|
1779
1779
|
await dbConnection.getRepository(TextAttributesEntity).findOne({
|
|
1780
1780
|
where: { id: savedIssuerBranding?.localeBranding[0]?.text?.id },
|
|
1781
|
-
})
|
|
1781
|
+
}),
|
|
1782
1782
|
).toBeNull()
|
|
1783
1783
|
|
|
1784
1784
|
// check issuer locale branding
|
|
1785
1785
|
expect(
|
|
1786
1786
|
await dbConnection.getRepository(IssuerLocaleBrandingEntity).findOne({
|
|
1787
1787
|
where: { id: savedIssuerBranding?.localeBranding[0]?.id },
|
|
1788
|
-
})
|
|
1788
|
+
}),
|
|
1789
1789
|
).toBeNull()
|
|
1790
1790
|
})
|
|
1791
1791
|
|
|
@@ -99,6 +99,7 @@ export class ContactStore extends AbstractContactStore {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
getParties = async (args?: GetPartiesArgs): Promise<Array<Party>> => {
|
|
102
|
+
debug(`getParties()`, args)
|
|
102
103
|
const { filter } = args ?? {}
|
|
103
104
|
const partyRepository: Repository<PartyEntity> = (await this.dbConnection).getRepository(PartyEntity)
|
|
104
105
|
const initialResult: Array<PartyEntity> = await partyRepository.find({
|
|
@@ -110,6 +111,7 @@ export class ContactStore extends AbstractContactStore {
|
|
|
110
111
|
id: In(initialResult.map((party: PartyEntity) => party.id)),
|
|
111
112
|
},
|
|
112
113
|
})
|
|
114
|
+
debug(`getParties() resulted in ${result.length} parties`)
|
|
113
115
|
|
|
114
116
|
return result.map((party: PartyEntity) => partyFrom(party))
|
|
115
117
|
}
|
|
@@ -37,7 +37,7 @@ export class CredentialBrandingEntity extends BaseEntity {
|
|
|
37
37
|
onDelete: 'CASCADE',
|
|
38
38
|
eager: true,
|
|
39
39
|
nullable: false,
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
41
|
)
|
|
42
42
|
@ArrayMinSize(1, { message: 'localeBranding cannot be empty' })
|
|
43
43
|
localeBranding!: Array<CredentialLocaleBrandingEntity>
|
|
@@ -71,7 +71,7 @@ export const credentialBrandingEntityFrom = (args: IBasicCredentialBranding): Cr
|
|
|
71
71
|
credentialBrandingEntity.issuerCorrelationId = args.issuerCorrelationId
|
|
72
72
|
credentialBrandingEntity.vcHash = args.vcHash
|
|
73
73
|
credentialBrandingEntity.localeBranding = args.localeBranding.map((localeBranding: IBasicCredentialLocaleBranding) =>
|
|
74
|
-
credentialLocaleBrandingEntityFrom(localeBranding)
|
|
74
|
+
credentialLocaleBrandingEntityFrom(localeBranding),
|
|
75
75
|
)
|
|
76
76
|
|
|
77
77
|
return credentialBrandingEntity
|
|
@@ -32,7 +32,7 @@ export class IssuerBrandingEntity extends BaseEntity {
|
|
|
32
32
|
onDelete: 'CASCADE',
|
|
33
33
|
eager: true,
|
|
34
34
|
nullable: false,
|
|
35
|
-
}
|
|
35
|
+
},
|
|
36
36
|
)
|
|
37
37
|
@ArrayMinSize(1, { message: 'localeBranding cannot be empty' })
|
|
38
38
|
localeBranding!: Array<IssuerLocaleBrandingEntity>
|
|
@@ -65,7 +65,7 @@ export const issuerBrandingEntityFrom = (args: IBasicIssuerBranding): IssuerBran
|
|
|
65
65
|
const issuerBrandingEntity: IssuerBrandingEntity = new IssuerBrandingEntity()
|
|
66
66
|
issuerBrandingEntity.issuerCorrelationId = args.issuerCorrelationId
|
|
67
67
|
issuerBrandingEntity.localeBranding = args.localeBranding.map((localeBranding: IBasicIssuerLocaleBranding) =>
|
|
68
|
-
issuerLocaleBrandingEntityFrom(localeBranding)
|
|
68
|
+
issuerLocaleBrandingEntityFrom(localeBranding),
|
|
69
69
|
)
|
|
70
70
|
|
|
71
71
|
return issuerBrandingEntity
|
package/src/index.ts
CHANGED
|
@@ -102,14 +102,14 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
102
102
|
debug('Removing credential locale branding', args)
|
|
103
103
|
const localeBrandingDeletions: Array<Array<Promise<void>>> = credentialBranding.map((credentialBranding: CredentialBrandingEntity) =>
|
|
104
104
|
credentialBranding.localeBranding.map(
|
|
105
|
-
async (localeBranding: CredentialLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding)
|
|
106
|
-
)
|
|
105
|
+
async (localeBranding: CredentialLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding),
|
|
106
|
+
),
|
|
107
107
|
)
|
|
108
108
|
await Promise.all(localeBrandingDeletions)
|
|
109
109
|
|
|
110
110
|
debug('Removing credential branding', args)
|
|
111
111
|
const credentialBrandingDeletions: Array<Promise<DeleteResult>> = filter.map(
|
|
112
|
-
async (filter: ICredentialBrandingFilter): Promise<DeleteResult> => await repository.delete(filter)
|
|
112
|
+
async (filter: ICredentialBrandingFilter): Promise<DeleteResult> => await repository.delete(filter),
|
|
113
113
|
)
|
|
114
114
|
await Promise.all(credentialBrandingDeletions)
|
|
115
115
|
}
|
|
@@ -160,14 +160,14 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
160
160
|
return Promise.reject(
|
|
161
161
|
Error(
|
|
162
162
|
`Credential branding already contains locales: ${locales?.map(
|
|
163
|
-
(credentialLocaleBrandingEntity: CredentialLocaleBrandingEntity) => credentialLocaleBrandingEntity.locale
|
|
164
|
-
)}
|
|
165
|
-
)
|
|
163
|
+
(credentialLocaleBrandingEntity: CredentialLocaleBrandingEntity) => credentialLocaleBrandingEntity.locale,
|
|
164
|
+
)}`,
|
|
165
|
+
),
|
|
166
166
|
)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const credentialLocaleBrandingRepository: Repository<CredentialLocaleBrandingEntity> = (await this.dbConnection).getRepository(
|
|
170
|
-
CredentialLocaleBrandingEntity
|
|
170
|
+
CredentialLocaleBrandingEntity,
|
|
171
171
|
)
|
|
172
172
|
const addCredentialLocaleBranding: Array<Promise<void>> = localeBranding.map(
|
|
173
173
|
async (localeBranding: IBasicCredentialLocaleBranding): Promise<void> => {
|
|
@@ -175,7 +175,7 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
175
175
|
debug('Adding credential locale branding', credentialLocaleBrandingEntity)
|
|
176
176
|
credentialLocaleBrandingEntity.credentialBranding = credentialBranding
|
|
177
177
|
await credentialLocaleBrandingRepository.save(credentialLocaleBrandingEntity, { transaction: true })
|
|
178
|
-
}
|
|
178
|
+
},
|
|
179
179
|
)
|
|
180
180
|
|
|
181
181
|
await Promise.all(addCredentialLocaleBranding)
|
|
@@ -210,7 +210,8 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
210
210
|
|
|
211
211
|
return credentialBrandingLocale
|
|
212
212
|
? credentialBrandingLocale.map(
|
|
213
|
-
(credentialLocaleBranding: CredentialLocaleBrandingEntity) =>
|
|
213
|
+
(credentialLocaleBranding: CredentialLocaleBrandingEntity) =>
|
|
214
|
+
this.localeBrandingFrom(credentialLocaleBranding) as ICredentialLocaleBranding,
|
|
214
215
|
)
|
|
215
216
|
: []
|
|
216
217
|
}
|
|
@@ -225,7 +226,7 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
225
226
|
|
|
226
227
|
debug('Removing credential locale branding', args)
|
|
227
228
|
const localeBrandingDeletions: Array<Promise<void>> = credentialLocaleBranding.map(
|
|
228
|
-
async (localeBranding: CredentialLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding)
|
|
229
|
+
async (localeBranding: CredentialLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding),
|
|
229
230
|
)
|
|
230
231
|
await Promise.all(localeBrandingDeletions)
|
|
231
232
|
}
|
|
@@ -311,14 +312,14 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
311
312
|
debug('Removing issuer locale branding', args)
|
|
312
313
|
const localeBrandingDeletions: Array<Array<Promise<void>>> = issuerBranding.map((issuerBranding: IssuerBrandingEntity) =>
|
|
313
314
|
issuerBranding.localeBranding.map(
|
|
314
|
-
async (localeBranding: IssuerLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding)
|
|
315
|
-
)
|
|
315
|
+
async (localeBranding: IssuerLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding),
|
|
316
|
+
),
|
|
316
317
|
)
|
|
317
318
|
await Promise.all(localeBrandingDeletions)
|
|
318
319
|
|
|
319
320
|
debug('Removing issuer branding', args)
|
|
320
321
|
const issuerBrandingDeletions: Array<Promise<DeleteResult>> = filter.map(
|
|
321
|
-
async (filter: IIssuerBrandingFilter): Promise<DeleteResult> => await repository.delete(filter)
|
|
322
|
+
async (filter: IIssuerBrandingFilter): Promise<DeleteResult> => await repository.delete(filter),
|
|
322
323
|
)
|
|
323
324
|
await Promise.all(issuerBrandingDeletions)
|
|
324
325
|
}
|
|
@@ -369,9 +370,9 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
369
370
|
return Promise.reject(
|
|
370
371
|
Error(
|
|
371
372
|
`Issuer branding already contains locales: ${locales?.map(
|
|
372
|
-
(issuerLocaleBrandingEntity: IssuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.locale
|
|
373
|
-
)}
|
|
374
|
-
)
|
|
373
|
+
(issuerLocaleBrandingEntity: IssuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.locale,
|
|
374
|
+
)}`,
|
|
375
|
+
),
|
|
375
376
|
)
|
|
376
377
|
}
|
|
377
378
|
|
|
@@ -415,7 +416,7 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
415
416
|
|
|
416
417
|
return issuerLocaleBranding
|
|
417
418
|
? issuerLocaleBranding.map(
|
|
418
|
-
(issuerLocaleBranding: IssuerLocaleBrandingEntity) => this.localeBrandingFrom(issuerLocaleBranding) as IIssuerLocaleBranding
|
|
419
|
+
(issuerLocaleBranding: IssuerLocaleBrandingEntity) => this.localeBrandingFrom(issuerLocaleBranding) as IIssuerLocaleBranding,
|
|
419
420
|
)
|
|
420
421
|
: []
|
|
421
422
|
}
|
|
@@ -428,7 +429,7 @@ export class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
|
428
429
|
|
|
429
430
|
debug('Removing credential locale branding', args)
|
|
430
431
|
const localeBrandingDeletions: Array<Promise<void>> = issuerLocaleBranding.map(
|
|
431
|
-
async (localeBranding: IssuerLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding)
|
|
432
|
+
async (localeBranding: IssuerLocaleBrandingEntity): Promise<void> => this.removeLocaleBranding(localeBranding),
|
|
432
433
|
)
|
|
433
434
|
await Promise.all(localeBrandingDeletions)
|
|
434
435
|
}
|
|
@@ -31,7 +31,7 @@ export class CreateContacts1659463079429 implements MigrationInterface {
|
|
|
31
31
|
}
|
|
32
32
|
default:
|
|
33
33
|
return Promise.reject(
|
|
34
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
34
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@ export class CreateContacts1659463079429 implements MigrationInterface {
|
|
|
59
59
|
}
|
|
60
60
|
default:
|
|
61
61
|
return Promise.reject(
|
|
62
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
62
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -30,7 +30,7 @@ export class CreateIssuanceBranding1659463079429 implements MigrationInterface {
|
|
|
30
30
|
}
|
|
31
31
|
default:
|
|
32
32
|
return Promise.reject(
|
|
33
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
33
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -57,7 +57,7 @@ export class CreateIssuanceBranding1659463079429 implements MigrationInterface {
|
|
|
57
57
|
}
|
|
58
58
|
default:
|
|
59
59
|
return Promise.reject(
|
|
60
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
60
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
61
61
|
)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -31,7 +31,7 @@ export class CreateContacts1690925872318 implements MigrationInterface {
|
|
|
31
31
|
}
|
|
32
32
|
default:
|
|
33
33
|
return Promise.reject(
|
|
34
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
34
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@ export class CreateContacts1690925872318 implements MigrationInterface {
|
|
|
59
59
|
}
|
|
60
60
|
default:
|
|
61
61
|
return Promise.reject(
|
|
62
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
62
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -25,7 +25,7 @@ export class CreateStatusList1693866470000 implements MigrationInterface {
|
|
|
25
25
|
return up
|
|
26
26
|
} else {
|
|
27
27
|
return Promise.reject(
|
|
28
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
28
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -47,7 +47,7 @@ export class CreateStatusList1693866470000 implements MigrationInterface {
|
|
|
47
47
|
return down
|
|
48
48
|
} else {
|
|
49
49
|
return Promise.reject(
|
|
50
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
50
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
51
51
|
)
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -31,7 +31,7 @@ export class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
|
31
31
|
}
|
|
32
32
|
default:
|
|
33
33
|
return Promise.reject(
|
|
34
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
34
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@ export class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
|
59
59
|
}
|
|
60
60
|
default:
|
|
61
61
|
return Promise.reject(
|
|
62
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
62
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -31,7 +31,7 @@ export class CreateDigitalCredential1708525189000 implements MigrationInterface
|
|
|
31
31
|
}
|
|
32
32
|
default:
|
|
33
33
|
return Promise.reject(
|
|
34
|
-
`Migrations are currently only supported for sqlite, react-native, expo, and postgres for UniformCredential. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
34
|
+
`Migrations are currently only supported for sqlite, react-native, expo, and postgres for UniformCredential. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@ export class CreateDigitalCredential1708525189000 implements MigrationInterface
|
|
|
59
59
|
}
|
|
60
60
|
default:
|
|
61
61
|
return Promise.reject(
|
|
62
|
-
`Migrations are currently only supported for sqlite, react-native, expo, and postgres for DigitalCredential. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
62
|
+
`Migrations are currently only supported for sqlite, react-native, expo, and postgres for DigitalCredential. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -31,7 +31,7 @@ export class CreateMachineStateStore1708098041262 implements MigrationInterface
|
|
|
31
31
|
}
|
|
32
32
|
default:
|
|
33
33
|
return Promise.reject(
|
|
34
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
34
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
35
35
|
)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@ export class CreateMachineStateStore1708098041262 implements MigrationInterface
|
|
|
59
59
|
}
|
|
60
60
|
default:
|
|
61
61
|
return Promise.reject(
|
|
62
|
-
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now
|
|
62
|
+
`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`,
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
}
|