@sphereon/ssi-sdk.data-store 0.23.5-unstable.70 → 0.23.5-unstable.73
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/index.d.ts +3 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/dist/migrations/generic/index.d.ts +0 -2
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +1 -4
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +1 -2
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -8
- package/src/index.ts +0 -10
- package/src/migrations/generic/index.ts +0 -3
- package/src/migrations/index.ts +0 -1
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +1 -1
- package/src/types/index.ts +0 -2
- package/src/utils/contact/MappingUtils.ts +1 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts +0 -14
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts.map +0 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +0 -74
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +0 -1
- package/dist/migrations/generic/8-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/generic/8-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/generic/8-CreatePresentationDefinitions.js +0 -78
- package/dist/migrations/generic/8-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +0 -41
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +0 -38
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.d.ts +0 -12
- package/dist/presentationDefinition/AbstractPDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.js +0 -7
- package/dist/presentationDefinition/AbstractPDStore.js.map +0 -1
- package/dist/presentationDefinition/PDStore.d.ts +0 -19
- package/dist/presentationDefinition/PDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/PDStore.js +0 -146
- package/dist/presentationDefinition/PDStore.js.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts +0 -17
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.js +0 -3
- package/dist/types/presentationDefinition/IAbstractPDStore.js.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.d.ts +0 -21
- package/dist/types/presentationDefinition/presentationDefinition.d.ts.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.js +0 -3
- package/dist/types/presentationDefinition/presentationDefinition.js.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.d.ts +0 -6
- package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +0 -58
- package/dist/utils/presentationDefinition/MappingUtils.js.map +0 -1
- package/src/__tests__/pd-manager.entities.test.ts +0 -71
- package/src/__tests__/pd-manager.store.test.ts +0 -191
- package/src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts +0 -43
- package/src/migrations/generic/8-CreatePresentationDefinitions.ts +0 -66
- package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +0 -25
- package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +0 -24
- package/src/presentationDefinition/AbstractPDStore.ts +0 -20
- package/src/presentationDefinition/PDStore.ts +0 -176
- package/src/types/presentationDefinition/IAbstractPDStore.ts +0 -25
- package/src/types/presentationDefinition/presentationDefinition.ts +0 -24
- package/src/utils/presentationDefinition/MappingUtils.ts +0 -59
package/dist/index.d.ts
CHANGED
|
@@ -32,24 +32,19 @@ export { StatusListStore } from './statusList/StatusListStore';
|
|
|
32
32
|
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity';
|
|
33
33
|
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
34
34
|
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
|
|
35
|
-
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils';
|
|
36
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
37
35
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
|
|
38
36
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore';
|
|
39
37
|
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
|
|
40
38
|
export { MachineStateStore } from './machineState/MachineStateStore';
|
|
41
|
-
export {
|
|
42
|
-
export { PDStore } from './presentationDefinition/PDStore';
|
|
43
|
-
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, DataStorePresentationDefinitionMigrations, } from './migrations';
|
|
39
|
+
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, } from './migrations';
|
|
44
40
|
export * from './types';
|
|
45
41
|
export * from './utils/contact/MappingUtils';
|
|
46
42
|
export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
|
|
47
43
|
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
48
|
-
export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
|
|
49
44
|
export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
|
|
50
45
|
export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
51
46
|
export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
52
47
|
export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
53
|
-
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity
|
|
54
|
-
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity,
|
|
48
|
+
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity)[];
|
|
49
|
+
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity, };
|
|
55
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAA;AACnI,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AAC7H,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAA;AAC/I,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AACpH,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AACpH,OAAO,EAAE,0BAA0B,EAA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9D,eAAO,MAAM,kCAAkC,oCAA4B,CAAA;AAE3E,eAAO,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,4jBAO7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,8CAA8C,EAC9C,sBAAsB,GACvB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ 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.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = 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.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.
|
|
18
|
-
exports.
|
|
17
|
+
exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = 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.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
|
+
exports.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = void 0;
|
|
19
19
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
20
20
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
21
21
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
@@ -93,10 +93,6 @@ const MappingUtils_1 = require("./utils/digitalCredential/MappingUtils");
|
|
|
93
93
|
Object.defineProperty(exports, "digitalCredentialFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialFrom; } });
|
|
94
94
|
Object.defineProperty(exports, "digitalCredentialsFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialsFrom; } });
|
|
95
95
|
Object.defineProperty(exports, "nonPersistedDigitalCredentialEntityFromAddArgs", { enumerable: true, get: function () { return MappingUtils_1.nonPersistedDigitalCredentialEntityFromAddArgs; } });
|
|
96
|
-
const MappingUtils_2 = require("./utils/presentationDefinition/MappingUtils");
|
|
97
|
-
Object.defineProperty(exports, "isPresentationDefinitionEqual", { enumerable: true, get: function () { return MappingUtils_2.isPresentationDefinitionEqual; } });
|
|
98
|
-
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
99
|
-
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
100
96
|
var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
|
|
101
97
|
Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
|
|
102
98
|
var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
|
|
@@ -105,10 +101,6 @@ var IAbstractMachineStateStore_1 = require("./machineState/IAbstractMachineState
|
|
|
105
101
|
Object.defineProperty(exports, "IAbstractMachineStateStore", { enumerable: true, get: function () { return IAbstractMachineStateStore_1.IAbstractMachineStateStore; } });
|
|
106
102
|
var MachineStateStore_1 = require("./machineState/MachineStateStore");
|
|
107
103
|
Object.defineProperty(exports, "MachineStateStore", { enumerable: true, get: function () { return MachineStateStore_1.MachineStateStore; } });
|
|
108
|
-
var AbstractPDStore_1 = require("./presentationDefinition/AbstractPDStore");
|
|
109
|
-
Object.defineProperty(exports, "AbstractPDStore", { enumerable: true, get: function () { return AbstractPDStore_1.AbstractPDStore; } });
|
|
110
|
-
var PDStore_1 = require("./presentationDefinition/PDStore");
|
|
111
|
-
Object.defineProperty(exports, "PDStore", { enumerable: true, get: function () { return PDStore_1.PDStore; } });
|
|
112
104
|
var migrations_1 = require("./migrations");
|
|
113
105
|
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
|
|
114
106
|
Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreEventLoggerMigrations; } });
|
|
@@ -116,7 +108,6 @@ Object.defineProperty(exports, "DataStoreContactMigrations", { enumerable: true,
|
|
|
116
108
|
Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreIssuanceBrandingMigrations; } });
|
|
117
109
|
Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreStatusListMigrations; } });
|
|
118
110
|
Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMachineStateMigrations; } });
|
|
119
|
-
Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { enumerable: true, get: function () { return migrations_1.DataStorePresentationDefinitionMigrations; } });
|
|
120
111
|
__exportStar(require("./types"), exports);
|
|
121
112
|
__exportStar(require("./utils/contact/MappingUtils"), exports);
|
|
122
113
|
exports.DataStoreContactEntities = [
|
|
@@ -147,7 +138,6 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
147
138
|
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
148
139
|
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
149
140
|
];
|
|
150
|
-
exports.DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
|
|
151
141
|
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
|
152
142
|
exports.DataStoreEventLoggerEntities = [AuditEventEntity_1.AuditEventEntity];
|
|
153
143
|
exports.DataStoreDigitalCredentialEntities = [DigitalCredentialEntity_1.DigitalCredentialEntity];
|
|
@@ -160,6 +150,5 @@ exports.DataStoreEntities = [
|
|
|
160
150
|
...exports.DataStoreEventLoggerEntities,
|
|
161
151
|
...exports.DataStoreDigitalCredentialEntities,
|
|
162
152
|
...exports.DataStoreMachineStateEntities,
|
|
163
|
-
...exports.DataStorePresentationDefinitionEntities,
|
|
164
153
|
];
|
|
165
154
|
//# 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;AAqGpE,iGArGO,mCAAgB,OAqGP;AApGlB,mGAA+F;AAiH7F,yGAjHO,mDAAwB,OAiHP;AAhH1B,4EAAwE;AAsGtE,kGAtGO,qCAAiB,OAsGP;AArGnB,0EAAsE;AAmGpE,iGAnGO,mCAAg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,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA;AAEY,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEvE,QAAA,4BAA4B,GAAG,CAAC,mCAAgB,CAAC,CAAA;AAEjD,QAAA,kCAAkC,GAAG,CAAC,iDAAuB,CAAC,CAAA;AAE9D,QAAA,6BAA6B,GAAG,CAAC,+CAAsB,CAAC,CAAA;AAErE,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;IAC/B,GAAG,0CAAkC;IACrC,GAAG,qCAA6B;CACjC,CAAA"}
|
|
@@ -4,7 +4,6 @@ import { CreateStatusList1693866470000 } from './4-CreateStatusList';
|
|
|
4
4
|
import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents';
|
|
5
5
|
import { CreateDigitalCredential1708525189000 } from './6-CreateDigitalCredential';
|
|
6
6
|
import { CreateMachineStateStore1708098041262 } from './7-CreateMachineStateStore';
|
|
7
|
-
import { CreatePresentationDefinitions1716533767523 } from './8-CreatePresentationDefinitions';
|
|
8
7
|
/**
|
|
9
8
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
10
9
|
*
|
|
@@ -18,6 +17,5 @@ export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693
|
|
|
18
17
|
export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
19
18
|
export declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
|
|
20
19
|
export declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
|
|
21
|
-
export declare const DataStorePresentationDefinitionMigrations: (typeof CreatePresentationDefinitions1716533767523)[];
|
|
22
20
|
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
23
21
|
//# 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;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,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;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAElF;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,+BAA+B,iDAAyC,CAAA;AAGrF,eAAO,MAAM,mBAAmB,wCAO/B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataStoreMigrations = exports.
|
|
3
|
+
exports.DataStoreMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
|
|
4
4
|
const _1_CreateContacts_1 = require("./1-CreateContacts");
|
|
5
5
|
const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
|
|
6
6
|
const _3_CreateContacts_1 = require("./3-CreateContacts");
|
|
@@ -8,7 +8,6 @@ const _4_CreateStatusList_1 = require("./4-CreateStatusList");
|
|
|
8
8
|
const _5_CreateAuditEvents_1 = require("./5-CreateAuditEvents");
|
|
9
9
|
const _6_CreateDigitalCredential_1 = require("./6-CreateDigitalCredential");
|
|
10
10
|
const _7_CreateMachineStateStore_1 = require("./7-CreateMachineStateStore");
|
|
11
|
-
const _8_CreatePresentationDefinitions_1 = require("./8-CreatePresentationDefinitions");
|
|
12
11
|
/**
|
|
13
12
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
14
13
|
*
|
|
@@ -23,7 +22,6 @@ exports.DataStoreStatusListMigrations = [_4_CreateStatusList_1.CreateStatusList1
|
|
|
23
22
|
exports.DataStoreEventLoggerMigrations = [_5_CreateAuditEvents_1.CreateAuditEvents1701635835330];
|
|
24
23
|
exports.DataStoreDigitalCredentialMigrations = [_6_CreateDigitalCredential_1.CreateDigitalCredential1708525189000];
|
|
25
24
|
exports.DataStoreMachineStateMigrations = [_7_CreateMachineStateStore_1.CreateMachineStateStore1708098041262];
|
|
26
|
-
exports.DataStorePresentationDefinitionMigrations = [_8_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716533767523];
|
|
27
25
|
// All migrations together
|
|
28
26
|
exports.DataStoreMigrations = [
|
|
29
27
|
...exports.DataStoreContactMigrations,
|
|
@@ -32,6 +30,5 @@ exports.DataStoreMigrations = [
|
|
|
32
30
|
...exports.DataStoreEventLoggerMigrations,
|
|
33
31
|
...exports.DataStoreDigitalCredentialMigrations,
|
|
34
32
|
...exports.DataStoreMachineStateMigrations,
|
|
35
|
-
...exports.DataStorePresentationDefinitionMigrations,
|
|
36
33
|
];
|
|
37
34
|
//# 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;AAChF,0DAAgE;AAChE,8DAAoE;AACpE,gEAAsE;AACtE,4EAAkF;AAClF,4EAAkF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAChF,0DAAgE;AAChE,8DAAoE;AACpE,gEAAsE;AACtE,4EAAkF;AAClF,4EAAkF;AAElF;;;;;;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;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,+BAA+B,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAErF,0BAA0B;AACb,QAAA,mBAAmB,GAAG;IACjC,GAAG,kCAA0B;IAC7B,GAAG,2CAAmC;IACtC,GAAG,qCAA6B;IAChC,GAAG,sCAA8B;IACjC,GAAG,4CAAoC;IACvC,GAAG,uCAA+B;CACnC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations, DataStoreMachineStateMigrations,
|
|
1
|
+
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations, DataStoreMachineStateMigrations, } from './generic';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,WAAW,CAAA"}
|
package/dist/migrations/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = void 0;
|
|
4
4
|
var generic_1 = require("./generic");
|
|
5
5
|
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return generic_1.DataStoreMigrations; } });
|
|
6
6
|
Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return generic_1.DataStoreEventLoggerMigrations; } });
|
|
@@ -9,5 +9,4 @@ Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerab
|
|
|
9
9
|
Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return generic_1.DataStoreStatusListMigrations; } });
|
|
10
10
|
Object.defineProperty(exports, "DataStoreDigitalCredentialMigrations", { enumerable: true, get: function () { return generic_1.DataStoreDigitalCredentialMigrations; } });
|
|
11
11
|
Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return generic_1.DataStoreMachineStateMigrations; } });
|
|
12
|
-
Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { enumerable: true, get: function () { return generic_1.DataStorePresentationDefinitionMigrations; } });
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAQkB;AAPhB,8GAAA,mBAAmB,OAAA;AACnB,yHAAA,8BAA8B,OAAA;AAC9B,qHAAA,0BAA0B,OAAA;AAC1B,8HAAA,mCAAmC,OAAA;AACnC,wHAAA,6BAA6B,OAAA;AAC7B,+HAAA,oCAAoC,OAAA;AACpC,0HAAA,+BAA+B,OAAA"}
|
|
@@ -55,7 +55,7 @@ class CreateContacts1690925872592 {
|
|
|
55
55
|
yield queryRunner.query(`ALTER TABLE "Identity" RENAME CONSTRAINT "UQ_Identity_Alias" TO "UQ_Identity_alias"`);
|
|
56
56
|
yield queryRunner.query(`INSERT INTO "BaseConfig"("id", "identifier", "redirect_url", "session_id", "client_id", "client_secret", "scopes", "issuer", "dangerously_allow_insecure_http_requests", "client_auth_method", "type", "connection_id") SELECT "id", "identifier", "redirect_url", "session_id", "client_id", "client_secret", "scopes", "issuer", "dangerously_allow_insecure_http_requests", "client_auth_method", "type", "connectionId" FROM "BaseConfigEntity"`);
|
|
57
57
|
yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
|
|
58
|
-
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL' 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`);
|
|
58
|
+
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL', 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`);
|
|
59
59
|
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`);
|
|
60
60
|
yield queryRunner.query(`INSERT INTO "Party"(id, uri, created_at, last_updated_at, party_type_id) SELECT id, uri, created_at, last_updated_at, '3875c12e-fdaa-4ef6-a340-c936e054b627' FROM "Contact"`);
|
|
61
61
|
yield queryRunner.query(`INSERT INTO "BaseContact"(id, legal_name, display_name, party_id, created_at, last_updated_at, type) SELECT id, name, alias, id, created_at, last_updated_at, 'Organization' FROM "Contact"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAmGtC,CAAC;IAjGc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAA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K,CACrB,yLAAyL,CAC1L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,4JAA4J,CAC7J,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sKAAsK,CACvK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,wKAAwK,CACzK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sKAAsK,CACvK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mKAAmK,CACpK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,gKAAgK,CACjK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,oJAAoJ,CACrJ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mKAAmK,CACpK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,yKAAyK,CAC1K,CAAA;YAED,wBAAwB;YACxB,MAAM,WAAW,CAAC,KAAK,CAAC,wHAAwH,CAAC,CAAA;YACjJ,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAA;YAC9G,MAAM,WAAW,CAAC,KAAK,CACrB,qbAAqb,CACtb,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACxD,MAAM,WAAW,CAAC,KAAK,CACrB,
|
|
1
|
+
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAmGtC,CAAC;IAjGc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CA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dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './issuanceBranding/issuanceBranding';
|
|
2
2
|
export * from './issuanceBranding/IAbstractIssuanceBrandingStore';
|
|
3
3
|
export * from './contact/contact';
|
|
4
|
-
export * from './presentationDefinition/presentationDefinition';
|
|
5
|
-
export * from './presentationDefinition/IAbstractPDStore';
|
|
6
4
|
export * from './contact/IAbstractContactStore';
|
|
7
5
|
export * from './validation/validation';
|
|
8
6
|
export * from './statusList/statusList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mBAAmB,CAAA;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mBAAmB,CAAA;AACjC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,2BAA2B,CAAA;AACzC,cAAc,2CAA2C,CAAA"}
|
package/dist/types/index.js
CHANGED
|
@@ -17,8 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./issuanceBranding/issuanceBranding"), exports);
|
|
18
18
|
__exportStar(require("./issuanceBranding/IAbstractIssuanceBrandingStore"), exports);
|
|
19
19
|
__exportStar(require("./contact/contact"), exports);
|
|
20
|
-
__exportStar(require("./presentationDefinition/presentationDefinition"), exports);
|
|
21
|
-
__exportStar(require("./presentationDefinition/IAbstractPDStore"), exports);
|
|
22
20
|
__exportStar(require("./contact/IAbstractContactStore"), exports);
|
|
23
21
|
__exportStar(require("./validation/validation"), exports);
|
|
24
22
|
__exportStar(require("./statusList/statusList"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAmD;AACnD,oFAAiE;AACjE,oDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAmD;AACnD,oFAAiE;AACjE,oDAAiC;AACjC,kEAA+C;AAC/C,0DAAuC;AACvC,0DAAuC;AACvC,wEAAqD;AACrD,0EAAuD;AACvD,4DAAyC;AACzC,4EAAyD"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.23.5-unstable.
|
|
3
|
+
"version": "0.23.5-unstable.73+72a9ea63",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc --build",
|
|
9
|
-
"build:clean": "tsc --build --clean && tsc --build",
|
|
10
9
|
"typeorm": "ts-node --project ./tsconfig.json -r tsconfig-paths/register ../../node_modules/.pnpm/typeorm@0.3.12_sqlite3@5.1.6_ts-node@10.9.1/node_modules/typeorm/cli.js --config src/migrations/internal-migrations-ormconfig.ts",
|
|
11
10
|
"typeorm-sqlite:migration:generate": "pnpm run typeorm -- migration:generate -c migration-sqlite -d src/migrations/sqlite -n",
|
|
12
11
|
"typeorm-sqlite:migration:run": "pnpm run typeorm -- migration:run -c migration-sqlite",
|
|
@@ -14,18 +13,15 @@
|
|
|
14
13
|
"typeorm-postgres:migration:run": "pnpm run typeorm -- migration:run -c migration-postgres"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
|
-
"@sphereon/
|
|
18
|
-
"@sphereon/ssi-
|
|
19
|
-
"@sphereon/ssi-types": "0.23.5-unstable.70+3dac39bb",
|
|
16
|
+
"@sphereon/ssi-sdk.core": "0.23.5-unstable.73+72a9ea63",
|
|
17
|
+
"@sphereon/ssi-types": "0.23.5-unstable.73+72a9ea63",
|
|
20
18
|
"@veramo/core": "4.2.0",
|
|
21
19
|
"@veramo/utils": "4.2.0",
|
|
22
20
|
"class-validator": "^0.14.0",
|
|
23
21
|
"debug": "^4.3.4",
|
|
24
|
-
"md5": "^2.3.0",
|
|
25
22
|
"typeorm": "^0.3.20"
|
|
26
23
|
},
|
|
27
24
|
"devDependencies": {
|
|
28
|
-
"@types/md5": "^2.3.5",
|
|
29
25
|
"pg": "^8.11.3",
|
|
30
26
|
"sqlite3": "^5.1.6"
|
|
31
27
|
},
|
|
@@ -48,5 +44,5 @@
|
|
|
48
44
|
"PostgreSQL",
|
|
49
45
|
"Contact Store"
|
|
50
46
|
],
|
|
51
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "72a9ea637815ecf75692ecc0b704bbd5b7c0ae97"
|
|
52
48
|
}
|
package/src/index.ts
CHANGED
|
@@ -34,14 +34,10 @@ export { StatusListStore } from './statusList/StatusListStore'
|
|
|
34
34
|
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity'
|
|
35
35
|
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
36
36
|
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils'
|
|
37
|
-
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils'
|
|
38
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
39
37
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore'
|
|
40
38
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore'
|
|
41
39
|
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore'
|
|
42
40
|
export { MachineStateStore } from './machineState/MachineStateStore'
|
|
43
|
-
export { AbstractPDStore } from './presentationDefinition/AbstractPDStore'
|
|
44
|
-
export { PDStore } from './presentationDefinition/PDStore'
|
|
45
41
|
|
|
46
42
|
export {
|
|
47
43
|
DataStoreMigrations,
|
|
@@ -50,7 +46,6 @@ export {
|
|
|
50
46
|
DataStoreIssuanceBrandingMigrations,
|
|
51
47
|
DataStoreStatusListMigrations,
|
|
52
48
|
DataStoreMachineStateMigrations,
|
|
53
|
-
DataStorePresentationDefinitionMigrations,
|
|
54
49
|
} from './migrations'
|
|
55
50
|
export * from './types'
|
|
56
51
|
export * from './utils/contact/MappingUtils'
|
|
@@ -85,8 +80,6 @@ export const DataStoreIssuanceBrandingEntities = [
|
|
|
85
80
|
IssuerLocaleBrandingEntity,
|
|
86
81
|
]
|
|
87
82
|
|
|
88
|
-
export const DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity]
|
|
89
|
-
|
|
90
83
|
export const DataStoreStatusListEntities = [StatusListEntity, StatusListEntryEntity]
|
|
91
84
|
|
|
92
85
|
export const DataStoreEventLoggerEntities = [AuditEventEntity]
|
|
@@ -103,7 +96,6 @@ export const DataStoreEntities = [
|
|
|
103
96
|
...DataStoreEventLoggerEntities,
|
|
104
97
|
...DataStoreDigitalCredentialEntities,
|
|
105
98
|
...DataStoreMachineStateEntities,
|
|
106
|
-
...DataStorePresentationDefinitionEntities,
|
|
107
99
|
]
|
|
108
100
|
|
|
109
101
|
export {
|
|
@@ -146,6 +138,4 @@ export {
|
|
|
146
138
|
digitalCredentialsFrom,
|
|
147
139
|
nonPersistedDigitalCredentialEntityFromAddArgs,
|
|
148
140
|
MachineStateInfoEntity,
|
|
149
|
-
PresentationDefinitionItemEntity,
|
|
150
|
-
isPresentationDefinitionEqual,
|
|
151
141
|
}
|
|
@@ -5,7 +5,6 @@ import { CreateStatusList1693866470000 } from './4-CreateStatusList'
|
|
|
5
5
|
import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents'
|
|
6
6
|
import { CreateDigitalCredential1708525189000 } from './6-CreateDigitalCredential'
|
|
7
7
|
import { CreateMachineStateStore1708098041262 } from './7-CreateMachineStateStore'
|
|
8
|
-
import { CreatePresentationDefinitions1716533767523 } from './8-CreatePresentationDefinitions'
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
@@ -22,7 +21,6 @@ export const DataStoreStatusListMigrations = [CreateStatusList1693866470000]
|
|
|
22
21
|
export const DataStoreEventLoggerMigrations = [CreateAuditEvents1701635835330]
|
|
23
22
|
export const DataStoreDigitalCredentialMigrations = [CreateDigitalCredential1708525189000]
|
|
24
23
|
export const DataStoreMachineStateMigrations = [CreateMachineStateStore1708098041262]
|
|
25
|
-
export const DataStorePresentationDefinitionMigrations = [CreatePresentationDefinitions1716533767523]
|
|
26
24
|
|
|
27
25
|
// All migrations together
|
|
28
26
|
export const DataStoreMigrations = [
|
|
@@ -32,5 +30,4 @@ export const DataStoreMigrations = [
|
|
|
32
30
|
...DataStoreEventLoggerMigrations,
|
|
33
31
|
...DataStoreDigitalCredentialMigrations,
|
|
34
32
|
...DataStoreMachineStateMigrations,
|
|
35
|
-
...DataStorePresentationDefinitionMigrations,
|
|
36
33
|
]
|
package/src/migrations/index.ts
CHANGED
|
@@ -83,7 +83,7 @@ export class CreateContacts1690925872592 implements MigrationInterface {
|
|
|
83
83
|
)
|
|
84
84
|
await queryRunner.query(`DROP TABLE "BaseConfigEntity"`)
|
|
85
85
|
await queryRunner.query(
|
|
86
|
-
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL' 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
|
86
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL', 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
|
87
87
|
)
|
|
88
88
|
await queryRunner.query(
|
|
89
89
|
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
package/src/types/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './issuanceBranding/issuanceBranding'
|
|
2
2
|
export * from './issuanceBranding/IAbstractIssuanceBrandingStore'
|
|
3
3
|
export * from './contact/contact'
|
|
4
|
-
export * from './presentationDefinition/presentationDefinition'
|
|
5
|
-
export * from './presentationDefinition/IAbstractPDStore'
|
|
6
4
|
export * from './contact/IAbstractContactStore'
|
|
7
5
|
export * from './validation/validation'
|
|
8
6
|
export * from './statusList/statusList'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from 'typeorm';
|
|
2
|
-
export declare class PresentationDefinitionItemEntity extends BaseEntity {
|
|
3
|
-
id: string;
|
|
4
|
-
definitionId: string;
|
|
5
|
-
version: string;
|
|
6
|
-
tenantId?: string;
|
|
7
|
-
purpose?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
definitionPayload: string;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
lastUpdatedAt: Date;
|
|
12
|
-
updateUpdatedDate(): void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=PresentationDefinitionItemEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationDefinitionItemEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiH,MAAM,SAAS,CAAA;AAGnJ,qBAEa,gCAAiC,SAAQ,UAAU;IAE9D,EAAE,EAAG,MAAM,CAAA;IAIX,YAAY,EAAG,MAAM,CAAA;IAIrB,OAAO,EAAG,MAAM,CAAA;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,iBAAiB,EAAG,MAAM,CAAA;IAG1B,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;CAG1B"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PresentationDefinitionItemEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
let PresentationDefinitionItemEntity = class PresentationDefinitionItemEntity extends typeorm_1.BaseEntity {
|
|
16
|
-
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
17
|
-
updateUpdatedDate() {
|
|
18
|
-
this.lastUpdatedAt = new Date();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.PresentationDefinitionItemEntity = PresentationDefinitionItemEntity;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], PresentationDefinitionItemEntity.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ name: 'definition_id', length: 255, nullable: false, unique: false }),
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)({ message: 'A blank definitionId field is not allowed' }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ name: 'version', length: 255, nullable: false, unique: false }),
|
|
33
|
-
(0, class_validator_1.IsNotEmpty)({ message: 'A blank version field is not allowed' }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], PresentationDefinitionItemEntity.prototype, "version", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ name: 'tenant_id', length: 255, nullable: true, unique: false }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ name: 'purpose', length: 255, nullable: true, unique: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ name: 'name', length: 255, nullable: true, unique: false }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], PresentationDefinitionItemEntity.prototype, "name", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ name: 'definition_payload', type: 'text', nullable: false, unique: false }),
|
|
50
|
-
(0, class_validator_1.IsNotEmpty)({ message: 'A blank definitionPayload field is not allowed' }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
55
|
-
__metadata("design:type", Date)
|
|
56
|
-
], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
59
|
-
__metadata("design:type", Date
|
|
60
|
-
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
61
|
-
)
|
|
62
|
-
], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.BeforeInsert)(),
|
|
65
|
-
(0, typeorm_1.BeforeUpdate)(),
|
|
66
|
-
__metadata("design:type", Function),
|
|
67
|
-
__metadata("design:paramtypes", []),
|
|
68
|
-
__metadata("design:returntype", void 0)
|
|
69
|
-
], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
|
|
70
|
-
exports.PresentationDefinitionItemEntity = PresentationDefinitionItemEntity = __decorate([
|
|
71
|
-
(0, typeorm_1.Entity)('PresentationDefinitionItem'),
|
|
72
|
-
(0, typeorm_1.Index)(['version'], { unique: false })
|
|
73
|
-
], PresentationDefinitionItemEntity);
|
|
74
|
-
//# sourceMappingURL=PresentationDefinitionItemEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationDefinitionItemEntity.js","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.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AE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACpF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;;2EAChD;AAG1B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC9C,IAAI;mEAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,IAAI;IAEpB,qHAAqH;;uEAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;yEAGd;2CApCU,gCAAgC;IAF5C,IAAA,gBAAM,EAAC,4BAA4B,CAAC;IACpC,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACzB,gCAAgC,CAqC5C"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
export declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
|
|
3
|
-
name: string;
|
|
4
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=8-CreatePresentationDefinitions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8-CreatePresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/8-CreatePresentationDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,0CAA2C,YAAW,kBAAkB;IACnF,IAAI,SAAmD;IAE1C,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA2B3D"}
|