@sphereon/ssi-sdk.data-store 0.15.2-next.6 → 0.15.2-next.77
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/AbstractContactStore.d.ts +21 -11
- package/dist/contact/AbstractContactStore.d.ts.map +1 -1
- package/dist/contact/AbstractContactStore.js.map +1 -1
- package/dist/contact/ContactStore.d.ts +25 -21
- package/dist/contact/ContactStore.d.ts.map +1 -1
- package/dist/contact/ContactStore.js +216 -136
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/entities/contact/BaseConfigEntity.d.ts +2 -0
- package/dist/entities/contact/BaseConfigEntity.d.ts.map +1 -1
- package/dist/entities/contact/BaseConfigEntity.js +10 -2
- package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
- package/dist/entities/contact/BaseContactEntity.d.ts +10 -0
- package/dist/entities/contact/BaseContactEntity.d.ts.map +1 -0
- package/dist/entities/contact/BaseContactEntity.js +54 -0
- package/dist/entities/contact/BaseContactEntity.js.map +1 -0
- package/dist/entities/contact/ConnectionEntity.d.ts +1 -2
- package/dist/entities/contact/ConnectionEntity.d.ts.map +1 -1
- package/dist/entities/contact/ConnectionEntity.js +2 -21
- package/dist/entities/contact/ConnectionEntity.js.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +2 -3
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.js +8 -11
- package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +0 -4
- package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +1 -1
- package/dist/entities/contact/DidAuthConfigEntity.js +1 -17
- package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +14 -0
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +1 -0
- package/dist/entities/contact/ElectronicAddressEntity.js +92 -0
- package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -0
- package/dist/entities/contact/IdentityEntity.d.ts +5 -6
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +15 -20
- package/dist/entities/contact/IdentityEntity.js.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +1 -3
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +7 -10
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
- package/dist/entities/contact/NaturalPersonEntity.d.ts +9 -0
- package/dist/entities/contact/NaturalPersonEntity.d.ts.map +1 -0
- package/dist/entities/contact/NaturalPersonEntity.js +72 -0
- package/dist/entities/contact/NaturalPersonEntity.js.map +1 -0
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +0 -4
- package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +1 -1
- package/dist/entities/contact/OpenIdConfigEntity.js +1 -22
- package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
- package/dist/entities/contact/OrganizationEntity.d.ts +9 -0
- package/dist/entities/contact/OrganizationEntity.d.ts.map +1 -0
- package/dist/entities/contact/OrganizationEntity.js +67 -0
- package/dist/entities/contact/OrganizationEntity.js.map +1 -0
- package/dist/entities/contact/PartyEntity.d.ts +21 -0
- package/dist/entities/contact/PartyEntity.d.ts.map +1 -0
- package/dist/entities/contact/PartyEntity.js +155 -0
- package/dist/entities/contact/PartyEntity.js.map +1 -0
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +13 -0
- package/dist/entities/contact/PartyRelationshipEntity.d.ts.map +1 -0
- package/dist/entities/contact/PartyRelationshipEntity.js +95 -0
- package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -0
- package/dist/entities/contact/PartyTypeEntity.d.ts +15 -0
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +1 -0
- package/dist/entities/contact/{ContactEntity.js → PartyTypeEntity.js} +35 -36
- package/dist/entities/contact/PartyTypeEntity.js.map +1 -0
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts +19 -0
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts.map +1 -0
- package/dist/entities/statusList2021/StatusList2021Entity.js +115 -0
- package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +11 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts.map +1 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +51 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js.map +1 -0
- package/dist/index.d.ts +20 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -11
- package/dist/index.js.map +1 -1
- package/dist/migrations/generic/1-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/generic/1-CreateContacts.js +36 -32
- package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
- package/dist/migrations/generic/2-CreateContacts.d.ts +7 -0
- package/dist/migrations/generic/2-CreateContacts.d.ts.map +1 -0
- package/dist/migrations/generic/2-CreateContacts.js +76 -0
- package/dist/migrations/generic/2-CreateContacts.js.map +1 -0
- package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts → 2-CreateIssuanceBranding.d.ts} +1 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts.map +1 -0
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +76 -0
- package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -0
- package/dist/migrations/generic/3-CreateStatusList.d.ts +7 -0
- package/dist/migrations/generic/3-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/generic/{1-CreateIssuanceBranding.js → 3-CreateStatusList.js} +11 -11
- package/dist/migrations/generic/3-CreateStatusList.js.map +1 -0
- package/dist/migrations/generic/index.d.ts +5 -0
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +10 -3
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +2 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.js +0 -2
- package/dist/migrations/internal-migrations-ormconfig.js.map +1 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +4 -2
- package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +7 -0
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +1 -0
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +69 -0
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +7 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +32 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +1 -0
- package/dist/migrations/postgres/uuid.d.ts +3 -0
- package/dist/migrations/postgres/uuid.d.ts.map +1 -0
- package/dist/migrations/postgres/uuid.js +25 -0
- package/dist/migrations/postgres/uuid.js.map +1 -0
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +7 -0
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -0
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +108 -0
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +7 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +32 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +1 -0
- package/dist/statusList/IStatusListStore.d.ts +20 -0
- package/dist/statusList/IStatusListStore.d.ts.map +1 -0
- package/dist/statusList/IStatusListStore.js +3 -0
- package/dist/statusList/IStatusListStore.js.map +1 -0
- package/dist/statusList/StatusListStore.d.ts +36 -0
- package/dist/statusList/StatusListStore.d.ts.map +1 -0
- package/dist/statusList/StatusListStore.js +213 -0
- package/dist/statusList/StatusListStore.js.map +1 -0
- package/dist/types/contact/IAbstractContactStore.d.ts +70 -36
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
- package/dist/types/contact/contact.d.ts +139 -56
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +6 -1
- package/dist/types/contact/contact.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +38 -0
- package/dist/types/statusList/IAbstractStatusListStore.d.ts.map +1 -0
- package/dist/types/statusList/IAbstractStatusListStore.js +3 -0
- package/dist/types/statusList/IAbstractStatusListStore.js.map +1 -0
- package/dist/types/statusList/statusList.d.ts +25 -0
- package/dist/types/statusList/statusList.d.ts.map +1 -0
- package/dist/types/statusList/statusList.js +3 -0
- package/dist/types/statusList/statusList.js.map +1 -0
- package/dist/types/validation/validation.d.ts +4 -0
- package/dist/types/validation/validation.d.ts.map +1 -0
- package/dist/types/validation/validation.js +3 -0
- package/dist/types/validation/validation.js.map +1 -0
- package/dist/utils/ValidatorUtils.d.ts +4 -0
- package/dist/utils/ValidatorUtils.d.ts.map +1 -0
- package/dist/utils/ValidatorUtils.js +13 -0
- package/dist/utils/ValidatorUtils.js.map +1 -0
- package/dist/utils/contact/MappingUtils.d.ts +47 -0
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -0
- package/dist/utils/contact/MappingUtils.js +291 -0
- package/dist/utils/contact/MappingUtils.js.map +1 -0
- package/package.json +5 -4
- package/src/__tests__/contact.entities.test.ts +1457 -195
- package/src/__tests__/contact.store.test.ts +1302 -266
- package/src/contact/AbstractContactStore.ts +44 -22
- package/src/contact/ContactStore.ts +328 -204
- package/src/entities/contact/BaseConfigEntity.ts +10 -2
- package/src/entities/contact/BaseContactEntity.ts +30 -0
- package/src/entities/contact/ConnectionEntity.ts +4 -23
- package/src/entities/contact/CorrelationIdentifierEntity.ts +9 -13
- package/src/entities/contact/DidAuthConfigEntity.ts +1 -18
- package/src/entities/contact/ElectronicAddressEntity.ts +60 -0
- package/src/entities/contact/IdentityEntity.ts +18 -25
- package/src/entities/contact/IdentityMetadataItemEntity.ts +8 -12
- package/src/entities/contact/NaturalPersonEntity.ts +38 -0
- package/src/entities/contact/OpenIdConfigEntity.ts +1 -23
- package/src/entities/contact/OrganizationEntity.ts +34 -0
- package/src/entities/contact/PartyEntity.ts +118 -0
- package/src/entities/contact/PartyRelationshipEntity.ts +61 -0
- package/src/entities/contact/PartyTypeEntity.ts +59 -0
- package/src/entities/statusList2021/StatusList2021Entity.ts +95 -0
- package/src/entities/statusList2021/StatusList2021EntryEntity.ts +29 -0
- package/src/index.ts +36 -17
- package/src/migrations/generic/1-CreateContacts.ts +46 -36
- package/src/migrations/generic/2-CreateContacts.ts +64 -0
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +62 -0
- package/src/migrations/generic/{1-CreateIssuanceBranding.ts → 3-CreateStatusList.ts} +9 -9
- package/src/migrations/generic/index.ts +11 -2
- package/src/migrations/internal-migrations-ormconfig.ts +2 -4
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +4 -2
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -0
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +94 -0
- package/src/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.ts +24 -0
- package/src/migrations/postgres/uuid.ts +12 -0
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +163 -0
- package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +24 -0
- package/src/statusList/IStatusListStore.ts +44 -0
- package/src/statusList/StatusListStore.ts +237 -0
- package/src/types/contact/IAbstractContactStore.ts +84 -27
- package/src/types/contact/contact.ts +144 -50
- package/src/types/index.ts +4 -0
- package/src/types/statusList/IAbstractStatusListStore.ts +47 -0
- package/src/types/statusList/statusList.ts +39 -0
- package/src/types/validation/validation.ts +3 -0
- package/src/utils/ValidatorUtils.ts +10 -0
- package/src/utils/contact/MappingUtils.ts +344 -0
- package/dist/entities/contact/ContactEntity.d.ts +0 -16
- package/dist/entities/contact/ContactEntity.d.ts.map +0 -1
- package/dist/entities/contact/ContactEntity.js.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +0 -1
- package/src/entities/contact/ContactEntity.ts +0 -74
package/dist/index.js
CHANGED
|
@@ -14,32 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
18
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
19
19
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
20
20
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
21
21
|
Object.defineProperty(exports, "BaseLocaleBrandingEntity", { enumerable: true, get: function () { return BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity; } });
|
|
22
|
+
const BaseContactEntity_1 = require("./entities/contact/BaseContactEntity");
|
|
22
23
|
const ConnectionEntity_1 = require("./entities/contact/ConnectionEntity");
|
|
23
24
|
Object.defineProperty(exports, "ConnectionEntity", { enumerable: true, get: function () { return ConnectionEntity_1.ConnectionEntity; } });
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(exports, "ContactEntity", { enumerable: true, get: function () { return ContactEntity_1.ContactEntity; } });
|
|
27
|
-
Object.defineProperty(exports, "contactEntityFrom", { enumerable: true, get: function () { return ContactEntity_1.contactEntityFrom; } });
|
|
25
|
+
const PartyEntity_1 = require("./entities/contact/PartyEntity");
|
|
26
|
+
Object.defineProperty(exports, "PartyEntity", { enumerable: true, get: function () { return PartyEntity_1.PartyEntity; } });
|
|
28
27
|
const CorrelationIdentifierEntity_1 = require("./entities/contact/CorrelationIdentifierEntity");
|
|
29
28
|
Object.defineProperty(exports, "CorrelationIdentifierEntity", { enumerable: true, get: function () { return CorrelationIdentifierEntity_1.CorrelationIdentifierEntity; } });
|
|
30
|
-
Object.defineProperty(exports, "correlationIdentifierEntityFrom", { enumerable: true, get: function () { return CorrelationIdentifierEntity_1.correlationIdentifierEntityFrom; } });
|
|
31
29
|
const DidAuthConfigEntity_1 = require("./entities/contact/DidAuthConfigEntity");
|
|
32
30
|
Object.defineProperty(exports, "DidAuthConfigEntity", { enumerable: true, get: function () { return DidAuthConfigEntity_1.DidAuthConfigEntity; } });
|
|
33
|
-
Object.defineProperty(exports, "didAuthConfigEntityFrom", { enumerable: true, get: function () { return DidAuthConfigEntity_1.didAuthConfigEntityFrom; } });
|
|
34
31
|
const IdentityEntity_1 = require("./entities/contact/IdentityEntity");
|
|
35
32
|
Object.defineProperty(exports, "IdentityEntity", { enumerable: true, get: function () { return IdentityEntity_1.IdentityEntity; } });
|
|
36
|
-
Object.defineProperty(exports, "identityEntityFrom", { enumerable: true, get: function () { return IdentityEntity_1.identityEntityFrom; } });
|
|
37
33
|
const IdentityMetadataItemEntity_1 = require("./entities/contact/IdentityMetadataItemEntity");
|
|
38
34
|
Object.defineProperty(exports, "IdentityMetadataItemEntity", { enumerable: true, get: function () { return IdentityMetadataItemEntity_1.IdentityMetadataItemEntity; } });
|
|
39
|
-
Object.defineProperty(exports, "metadataItemEntityFrom", { enumerable: true, get: function () { return IdentityMetadataItemEntity_1.metadataItemEntityFrom; } });
|
|
40
35
|
const OpenIdConfigEntity_1 = require("./entities/contact/OpenIdConfigEntity");
|
|
41
36
|
Object.defineProperty(exports, "OpenIdConfigEntity", { enumerable: true, get: function () { return OpenIdConfigEntity_1.OpenIdConfigEntity; } });
|
|
42
|
-
Object.defineProperty(exports, "openIdConfigEntityFrom", { enumerable: true, get: function () { return OpenIdConfigEntity_1.openIdConfigEntityFrom; } });
|
|
43
37
|
const BackgroundAttributesEntity_1 = require("./entities/issuanceBranding/BackgroundAttributesEntity");
|
|
44
38
|
Object.defineProperty(exports, "BackgroundAttributesEntity", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.BackgroundAttributesEntity; } });
|
|
45
39
|
Object.defineProperty(exports, "backgroundAttributesEntityFrom", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.backgroundAttributesEntityFrom; } });
|
|
@@ -64,6 +58,16 @@ Object.defineProperty(exports, "issuerBrandingEntityFrom", { enumerable: true, g
|
|
|
64
58
|
const TextAttributesEntity_1 = require("./entities/issuanceBranding/TextAttributesEntity");
|
|
65
59
|
Object.defineProperty(exports, "TextAttributesEntity", { enumerable: true, get: function () { return TextAttributesEntity_1.TextAttributesEntity; } });
|
|
66
60
|
Object.defineProperty(exports, "textAttributesEntityFrom", { enumerable: true, get: function () { return TextAttributesEntity_1.textAttributesEntityFrom; } });
|
|
61
|
+
const StatusList2021Entity_1 = require("./entities/statusList2021/StatusList2021Entity");
|
|
62
|
+
Object.defineProperty(exports, "StatusListEntity", { enumerable: true, get: function () { return StatusList2021Entity_1.StatusListEntity; } });
|
|
63
|
+
const StatusList2021EntryEntity_1 = require("./entities/statusList2021/StatusList2021EntryEntity");
|
|
64
|
+
Object.defineProperty(exports, "StatusListEntryEntity", { enumerable: true, get: function () { return StatusList2021EntryEntity_1.StatusListEntryEntity; } });
|
|
65
|
+
const PartyRelationshipEntity_1 = require("./entities/contact/PartyRelationshipEntity");
|
|
66
|
+
const PartyTypeEntity_1 = require("./entities/contact/PartyTypeEntity");
|
|
67
|
+
const OrganizationEntity_1 = require("./entities/contact/OrganizationEntity");
|
|
68
|
+
const NaturalPersonEntity_1 = require("./entities/contact/NaturalPersonEntity");
|
|
69
|
+
const ElectronicAddressEntity_1 = require("./entities/contact/ElectronicAddressEntity");
|
|
70
|
+
Object.defineProperty(exports, "ElectronicAddressEntity", { enumerable: true, get: function () { return ElectronicAddressEntity_1.ElectronicAddressEntity; } });
|
|
67
71
|
var ContactStore_1 = require("./contact/ContactStore");
|
|
68
72
|
Object.defineProperty(exports, "ContactStore", { enumerable: true, get: function () { return ContactStore_1.ContactStore; } });
|
|
69
73
|
var AbstractContactStore_1 = require("./contact/AbstractContactStore");
|
|
@@ -72,18 +76,27 @@ var AbstractIssuanceBrandingStore_1 = require("./issuanceBranding/AbstractIssuan
|
|
|
72
76
|
Object.defineProperty(exports, "AbstractIssuanceBrandingStore", { enumerable: true, get: function () { return AbstractIssuanceBrandingStore_1.AbstractIssuanceBrandingStore; } });
|
|
73
77
|
var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore");
|
|
74
78
|
Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
|
|
79
|
+
var StatusListStore_1 = require("./statusList/StatusListStore");
|
|
80
|
+
Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
|
|
75
81
|
var migrations_1 = require("./migrations");
|
|
76
82
|
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
|
|
77
83
|
__exportStar(require("./types"), exports);
|
|
84
|
+
__exportStar(require("./utils/contact/MappingUtils"), exports);
|
|
78
85
|
exports.DataStoreContactEntities = [
|
|
79
86
|
BaseConfigEntity_1.BaseConfigEntity,
|
|
80
87
|
ConnectionEntity_1.ConnectionEntity,
|
|
81
|
-
|
|
88
|
+
PartyEntity_1.PartyEntity,
|
|
82
89
|
IdentityEntity_1.IdentityEntity,
|
|
83
90
|
IdentityMetadataItemEntity_1.IdentityMetadataItemEntity,
|
|
84
91
|
CorrelationIdentifierEntity_1.CorrelationIdentifierEntity,
|
|
85
92
|
DidAuthConfigEntity_1.DidAuthConfigEntity,
|
|
86
93
|
OpenIdConfigEntity_1.OpenIdConfigEntity,
|
|
94
|
+
PartyRelationshipEntity_1.PartyRelationshipEntity,
|
|
95
|
+
PartyTypeEntity_1.PartyTypeEntity,
|
|
96
|
+
BaseContactEntity_1.BaseContactEntity,
|
|
97
|
+
OrganizationEntity_1.OrganizationEntity,
|
|
98
|
+
NaturalPersonEntity_1.NaturalPersonEntity,
|
|
99
|
+
ElectronicAddressEntity_1.ElectronicAddressEntity,
|
|
87
100
|
];
|
|
88
101
|
exports.DataStoreIssuanceBrandingEntities = [
|
|
89
102
|
BackgroundAttributesEntity_1.BackgroundAttributesEntity,
|
|
@@ -96,4 +109,7 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
96
109
|
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
97
110
|
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
98
111
|
];
|
|
112
|
+
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
|
113
|
+
// All entities combined if a party wants to enable them all at once
|
|
114
|
+
exports.DataStoreEntities = [...exports.DataStoreContactEntities, ...exports.DataStoreIssuanceBrandingEntities, ...exports.DataStoreStatusListEntities];
|
|
99
115
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAsEpE,iGAtEO,mCAAgB,OAsEP;AArElB,mGAA+F;AAiF7F,yGAjFO,mDAAwB,OAiFP;AAhF1B,4EAAwE;AACxE,0EAAsE;AAoEpE,iGApEO,mCAAgB,OAoEP;AAnElB,gEAA4D;AAoE1D,4FApEO,yBAAW,OAoEP;AAnEb,gGAA4F;AAoE1F,4GApEO,yDAA2B,OAoEP;AAnE7B,gFAA4E;AAoE1E,oGApEO,yCAAmB,OAoEP;AAnErB,sEAAkE;AAoEhE,+FApEO,+BAAc,OAoEP;AAnEh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B,+DAA4C;AAE/B,QAAA,wBAAwB,GAAG;IACtC,mCAAgB;IAChB,mCAAgB;IAChB,yBAAW;IACX,+BAAc;IACd,uDAA0B;IAC1B,yDAA2B;IAC3B,yCAAmB;IACnB,uCAAkB;IAClB,iDAAuB;IACvB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,yCAAmB;IACnB,iDAAuB;CACxB,CAAA;AAEY,QAAA,iCAAiC,GAAG;IAC/C,uDAA0B;IAC1B,mDAAwB;IACxB,6CAAqB;IACrB,6CAAqB;IACrB,mDAAwB;IACxB,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA;AAEY,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEpF,oEAAoE;AACvD,QAAA,iBAAiB,GAAG,CAAC,GAAG,gCAAwB,EAAE,GAAG,yCAAiC,EAAE,GAAG,mCAA2B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"1-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA0B3D"}
|
|
@@ -25,22 +25,24 @@ class CreateContacts1659463079429 {
|
|
|
25
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
debug('migration: creating contacts tables');
|
|
27
27
|
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
switch (dbType) {
|
|
29
|
+
case 'postgres': {
|
|
30
|
+
debug('using postgres migration file');
|
|
31
|
+
const mig = new _1659463079428_CreateContacts_1.CreateContacts1659463079428();
|
|
32
|
+
yield mig.up(queryRunner);
|
|
33
|
+
debug('Migration statements executed');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
case 'sqlite':
|
|
37
|
+
case 'react-native': {
|
|
38
|
+
debug('using sqlite/react-native migration file');
|
|
39
|
+
const mig = new _1659463069549_CreateContacts_1.CreateContacts1659463069549();
|
|
40
|
+
yield mig.up(queryRunner);
|
|
41
|
+
debug('Migration statements executed');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
default:
|
|
45
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
}
|
|
@@ -48,22 +50,24 @@ class CreateContacts1659463079429 {
|
|
|
48
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
51
|
debug('migration: reverting contacts tables');
|
|
50
52
|
const dbType = queryRunner.connection.driver.options.type;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
switch (dbType) {
|
|
54
|
+
case 'postgres': {
|
|
55
|
+
debug('using postgres migration file');
|
|
56
|
+
const mig = new _1659463079428_CreateContacts_1.CreateContacts1659463079428();
|
|
57
|
+
yield mig.down(queryRunner);
|
|
58
|
+
debug('Migration statements executed');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
case 'sqlite':
|
|
62
|
+
case 'react-native': {
|
|
63
|
+
debug('using sqlite/react-native migration file');
|
|
64
|
+
const mig = new _1659463069549_CreateContacts_1.CreateContacts1659463069549();
|
|
65
|
+
yield mig.down(queryRunner);
|
|
66
|
+
debug('Migration statements executed');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
default:
|
|
70
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
67
71
|
}
|
|
68
72
|
});
|
|
69
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4FAAsF;AACtF,0FAAoF;AAEpF,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"1-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4FAAsF;AACtF,0FAAoF;AAEpF,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAuDtC,CAAC;IArDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,qCAAqC,CAAC,CAAA;YAC5C,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;o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M,CACnB,4LAA4L,CAC7L,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AAxDD,kEAwDC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateContacts1690925872318 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=2-CreateContacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA0B3D"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateContacts1690925872318 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const _1690925872693_CreateContacts_1 = require("../sqlite/1690925872693-CreateContacts");
|
|
18
|
+
const _1690925872592_CreateContacts_1 = require("../postgres/1690925872592-CreateContacts");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateContacts1690925872318 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateContacts1690925872318';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating contacts tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
switch (dbType) {
|
|
29
|
+
case 'postgres': {
|
|
30
|
+
debug('using postgres migration file');
|
|
31
|
+
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
32
|
+
yield mig.up(queryRunner);
|
|
33
|
+
debug('Migration statements executed');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
case 'sqlite':
|
|
37
|
+
case 'react-native': {
|
|
38
|
+
debug('using sqlite/react-native migration file');
|
|
39
|
+
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
40
|
+
yield mig.up(queryRunner);
|
|
41
|
+
debug('Migration statements executed');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
default:
|
|
45
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
down(queryRunner) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
debug('migration: reverting contacts tables');
|
|
52
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
53
|
+
switch (dbType) {
|
|
54
|
+
case 'postgres': {
|
|
55
|
+
debug('using postgres migration file');
|
|
56
|
+
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
57
|
+
yield mig.down(queryRunner);
|
|
58
|
+
debug('Migration statements executed');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
case 'sqlite':
|
|
62
|
+
case 'react-native': {
|
|
63
|
+
debug('using sqlite/react-native migration file');
|
|
64
|
+
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
65
|
+
yield mig.down(queryRunner);
|
|
66
|
+
debug('Migration statements executed');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
default:
|
|
70
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.CreateContacts1690925872318 = CreateContacts1690925872318;
|
|
76
|
+
//# sourceMappingURL=2-CreateContacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,0FAAoF;AACpF,4FAAsF;AAEtF,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAuDtC,CAAC;IArDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,qCAAqC,CAAC,CAAA;YAC5C,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;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A+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4LAA4L,CAC7L,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AAxDD,kEAwDC"}
|
package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts → 2-CreateIssuanceBranding.d.ts}
RENAMED
|
@@ -4,4 +4,4 @@ export declare class CreateIssuanceBranding1659463079429 implements MigrationInt
|
|
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=2-CreateIssuanceBranding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAyB3D"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateIssuanceBranding1659463079429 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const _1685628974232_CreateIssuanceBranding_1 = require("../postgres/1685628974232-CreateIssuanceBranding");
|
|
18
|
+
const _1685628973231_CreateIssuanceBranding_1 = require("../sqlite/1685628973231-CreateIssuanceBranding");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateIssuanceBranding1659463079429 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateIssuanceBranding1659463079429';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating issuance branding tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
switch (dbType) {
|
|
29
|
+
case 'postgres': {
|
|
30
|
+
debug('using postgres migration file');
|
|
31
|
+
const mig = new _1685628974232_CreateIssuanceBranding_1.CreateIssuanceBranding1685628974232();
|
|
32
|
+
yield mig.up(queryRunner);
|
|
33
|
+
debug('Migration statements executed');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
case 'sqlite':
|
|
37
|
+
case 'react-native': {
|
|
38
|
+
debug('using sqlite/react-native migration file');
|
|
39
|
+
const mig = new _1685628973231_CreateIssuanceBranding_1.CreateIssuanceBranding1685628973231();
|
|
40
|
+
yield mig.up(queryRunner);
|
|
41
|
+
debug('Migration statements executed');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
default:
|
|
45
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
down(queryRunner) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
debug('migration: reverting issuance branding tables');
|
|
52
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
53
|
+
switch (dbType) {
|
|
54
|
+
case 'postgres': {
|
|
55
|
+
debug('using postgres migration file');
|
|
56
|
+
const mig = new _1685628974232_CreateIssuanceBranding_1.CreateIssuanceBranding1685628974232();
|
|
57
|
+
yield mig.down(queryRunner);
|
|
58
|
+
debug('Migration statements executed');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
case 'sqlite':
|
|
62
|
+
case 'react-native': {
|
|
63
|
+
debug('using sqlite/react-native migration file');
|
|
64
|
+
const mig = new _1685628973231_CreateIssuanceBranding_1.CreateIssuanceBranding1685628973231();
|
|
65
|
+
yield mig.down(queryRunner);
|
|
66
|
+
debug('Migration statements executed');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
default:
|
|
70
|
+
return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.CreateIssuanceBranding1659463079429 = CreateIssuanceBranding1659463079429;
|
|
76
|
+
//# sourceMappingURL=2-CreateIssuanceBranding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4GAAsG;AACtG,0GAAoG;AAEpG,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAA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AM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4LAA4L,CAC7L,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AAtDD,kFAsDC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateStatusList1693866470000 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=3-CreateStatusList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
|
|
@@ -12,14 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.CreateStatusList1693866470000 = void 0;
|
|
16
16
|
const debug_1 = __importDefault(require("debug"));
|
|
17
|
-
const
|
|
18
|
-
const
|
|
17
|
+
const CreateStatusList1693866470001_CreateStatusList_1 = require("../postgres/CreateStatusList1693866470001-CreateStatusList");
|
|
18
|
+
const _1693866470000_CreateStatusList_1 = require("../sqlite/1693866470000-CreateStatusList");
|
|
19
19
|
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
-
class
|
|
20
|
+
class CreateStatusList1693866470000 {
|
|
21
21
|
constructor() {
|
|
22
|
-
this.name = '
|
|
22
|
+
this.name = 'CreateStatusList1693866470000';
|
|
23
23
|
}
|
|
24
24
|
up(queryRunner) {
|
|
25
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -27,14 +27,14 @@ class CreateIssuanceBranding1659463079429 {
|
|
|
27
27
|
const dbType = queryRunner.connection.driver.options.type;
|
|
28
28
|
if (dbType === 'postgres') {
|
|
29
29
|
debug('using postgres migration file');
|
|
30
|
-
const mig = new
|
|
30
|
+
const mig = new CreateStatusList1693866470001_CreateStatusList_1.CreateStatusList1693866470001();
|
|
31
31
|
const up = yield mig.up(queryRunner);
|
|
32
32
|
debug('Migration statements executed');
|
|
33
33
|
return up;
|
|
34
34
|
}
|
|
35
35
|
else if (dbType === 'sqlite' || 'react-native') {
|
|
36
36
|
debug('using sqlite/react-native migration file');
|
|
37
|
-
const mig = new
|
|
37
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
38
38
|
const up = yield mig.up(queryRunner);
|
|
39
39
|
debug('Migration statements executed');
|
|
40
40
|
return up;
|
|
@@ -50,14 +50,14 @@ class CreateIssuanceBranding1659463079429 {
|
|
|
50
50
|
const dbType = queryRunner.connection.driver.options.type;
|
|
51
51
|
if (dbType === 'postgres') {
|
|
52
52
|
debug('using postgres migration file');
|
|
53
|
-
const mig = new
|
|
53
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
54
54
|
const down = yield mig.down(queryRunner);
|
|
55
55
|
debug('Migration statements executed');
|
|
56
56
|
return down;
|
|
57
57
|
}
|
|
58
58
|
else if (dbType === 'sqlite' || 'react-native') {
|
|
59
59
|
debug('using sqlite/react-native migration file');
|
|
60
|
-
const mig = new
|
|
60
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
61
61
|
const down = yield mig.down(queryRunner);
|
|
62
62
|
debug('Migration statements executed');
|
|
63
63
|
return down;
|
|
@@ -68,5 +68,5 @@ class CreateIssuanceBranding1659463079429 {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
exports.
|
|
72
|
-
//# sourceMappingURL=
|
|
71
|
+
exports.CreateStatusList1693866470000 = CreateStatusList1693866470000;
|
|
72
|
+
//# sourceMappingURL=3-CreateStatusList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-CreateStatusList.js","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,+HAA0G;AAC1G,8FAAwF;AAExF,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,6BAA6B;IAA1C;QACE,SAAI,GAAG,+BAA+B,CAAA;IA6CxC,CAAC;IA3Cc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,8CAA8C,CAAC,CAAA;YACrD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,8EAA6B,EAAE,CAAA;gBAC/C,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;gBACpC,K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ACF;AA9CD,sEA8CC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { CreateContacts1659463079429 } from './1-CreateContacts';
|
|
2
|
+
import { CreateIssuanceBranding1659463079429 } from './2-CreateIssuanceBranding';
|
|
3
|
+
import { CreateStatusList1693866470000 } from './3-CreateStatusList';
|
|
2
4
|
/**
|
|
3
5
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
4
6
|
*
|
|
@@ -6,5 +8,8 @@ import { CreateContacts1659463079429 } from './1-CreateContacts';
|
|
|
6
8
|
*
|
|
7
9
|
* @public
|
|
8
10
|
*/
|
|
11
|
+
export declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
12
|
+
export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
|
|
13
|
+
export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
9
14
|
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
10
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAEhE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAEpE;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAG5E,eAAO,MAAM,mBAAmB,wCAA4G,CAAA"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataStoreMigrations = void 0;
|
|
3
|
+
exports.DataStoreMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
|
|
4
4
|
const _1_CreateContacts_1 = require("./1-CreateContacts");
|
|
5
|
-
const
|
|
5
|
+
const _2_CreateContacts_1 = require("./2-CreateContacts");
|
|
6
|
+
const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
|
|
7
|
+
const _3_CreateStatusList_1 = require("./3-CreateStatusList");
|
|
6
8
|
/**
|
|
7
9
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
8
10
|
*
|
|
@@ -10,5 +12,10 @@ const _1_CreateIssuanceBranding_1 = require("./1-CreateIssuanceBranding");
|
|
|
10
12
|
*
|
|
11
13
|
* @public
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
// Individual migrations per purpose. Allows parties to not run migrations and thus create/update tables if they are not using a particular feature (yet)
|
|
16
|
+
exports.DataStoreContactMigrations = [_1_CreateContacts_1.CreateContacts1659463079429, _2_CreateContacts_1.CreateContacts1690925872318];
|
|
17
|
+
exports.DataStoreIssuanceBrandingMigrations = [_2_CreateIssuanceBranding_1.CreateIssuanceBranding1659463079429];
|
|
18
|
+
exports.DataStoreStatusListMigrations = [_3_CreateStatusList_1.CreateStatusList1693866470000];
|
|
19
|
+
// All migrations together
|
|
20
|
+
exports.DataStoreMigrations = [...exports.DataStoreContactMigrations, ...exports.DataStoreIssuanceBrandingMigrations, ...exports.DataStoreStatusListMigrations];
|
|
14
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0DAAgE;AAChE,0EAAgF;AAChF,8DAAoE;AAEpE;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,EAAE,+CAA2B,CAAC,CAAA;AACvF,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAE5E,0BAA0B;AACb,QAAA,mBAAmB,GAAG,CAAC,GAAG,kCAA0B,EAAE,GAAG,2CAAmC,EAAE,GAAG,qCAA6B,CAAC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DataSourceOptions } from 'typeorm';
|
|
1
2
|
/**
|
|
2
3
|
* Do Not use these connections in production!. They are only here to create/test migration files!
|
|
3
4
|
*/
|
|
4
|
-
declare const _default:
|
|
5
|
+
declare const _default: DataSourceOptions[];
|
|
5
6
|
export default _default;
|
|
6
7
|
//# sourceMappingURL=internal-migrations-ormconfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-migrations-ormconfig.d.ts","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"internal-migrations-ormconfig.d.ts","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAG3C;;GAEG;;AACH,wBAmBwB"}
|
|
@@ -7,7 +7,6 @@ const index_1 = require("../index");
|
|
|
7
7
|
exports.default = [
|
|
8
8
|
{
|
|
9
9
|
type: 'sqlite',
|
|
10
|
-
name: 'migration-sqlite',
|
|
11
10
|
database: 'migration.sqlite',
|
|
12
11
|
migrationsRun: false,
|
|
13
12
|
synchronize: false,
|
|
@@ -17,7 +16,6 @@ exports.default = [
|
|
|
17
16
|
},
|
|
18
17
|
{
|
|
19
18
|
type: 'postgres',
|
|
20
|
-
name: 'migration-postgres',
|
|
21
19
|
database: 'migration-postgres',
|
|
22
20
|
migrationsRun: false,
|
|
23
21
|
synchronize: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-migrations-ormconfig.js","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":";;AACA,oCAAwE;AAExE;;GAEG;AACH,kBAAe;IACb;QACE,IAAI,EAAE,QAAQ;QACd,
|
|
1
|
+
{"version":3,"file":"internal-migrations-ormconfig.js","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":";;AACA,oCAAwE;AAExE;;GAEG;AACH,kBAAe;IACb;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,kBAAkB;QAC5B,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACzC,QAAQ,EAAE,CAAC,GAAG,gCAAwB,CAAC;QACvC,UAAU,EAAE,CAAC,GAAG,2BAAmB,CAAC;KACrC;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,oBAAoB;QAC9B,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACzC,QAAQ,EAAE,CAAC,GAAG,gCAAwB,CAAC;QACvC,UAAU,EAAE,CAAC,GAAG,2BAAmB,CAAC;KACrC;CACqB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1659463079428-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"1659463079428-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGzD,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAwC3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAgB3D"}
|