@sphereon/ssi-sdk.data-store 0.28.1-unstable.89 → 0.29.1-next.2
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/entities/contact/BaseContactEntity.d.ts.map +1 -1
- package/dist/entities/contact/BaseContactEntity.js +3 -2
- package/dist/entities/contact/BaseContactEntity.js.map +1 -1
- package/dist/entities/contact/ContactMetadataItemEntity.d.ts.map +1 -1
- package/dist/entities/contact/ContactMetadataItemEntity.js +2 -1
- package/dist/entities/contact/ContactMetadataItemEntity.js.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +3 -2
- package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +3 -2
- package/dist/entities/contact/IdentityEntity.js.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +2 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
- package/dist/entities/contact/OrganizationEntity.d.ts +0 -2
- package/dist/entities/contact/OrganizationEntity.d.ts.map +1 -1
- package/dist/entities/contact/OrganizationEntity.js +2 -8
- package/dist/entities/contact/OrganizationEntity.js.map +1 -1
- package/dist/entities/contact/PartyEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyEntity.js +3 -2
- package/dist/entities/contact/PartyEntity.js.map +1 -1
- package/dist/entities/contact/PartyRelationshipEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyRelationshipEntity.js +3 -2
- package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.js +3 -2
- package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
- package/dist/entities/contact/PhysicalAddressEntity.d.ts.map +1 -1
- package/dist/entities/contact/PhysicalAddressEntity.js +3 -2
- package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +1 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +7 -6
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +4 -3
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +3 -2
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +3 -2
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +3 -2
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts.map +1 -1
- package/dist/entities/machineState/MachineStateInfoEntity.js +5 -4
- package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts.map +1 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +3 -2
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +1 -1
- package/package.json +6 -5
- package/src/__tests__/contact.entities.test.ts +3 -0
- package/src/__tests__/contact.store.test.ts +2 -0
- package/src/__tests__/digitalCredential.entities.test.ts +2 -0
- package/src/__tests__/digitalCredential.store.test.ts +2 -0
- package/src/__tests__/eventLogger.entities.test.ts +2 -0
- package/src/__tests__/eventLogger.store.test.ts +3 -1
- package/src/__tests__/issuanceBranding.entities.test.ts +2 -0
- package/src/__tests__/issuanceBranding.store.test.ts +2 -0
- package/src/__tests__/machineState.entities.test.ts +2 -0
- package/src/__tests__/machineState.store.test.ts +2 -0
- package/src/__tests__/pd-manager.entities.test.ts +2 -0
- package/src/__tests__/pd-manager.store.test.ts +2 -0
- package/src/entities/contact/BaseContactEntity.ts +3 -2
- package/src/entities/contact/ContactMetadataItemEntity.ts +2 -1
- package/src/entities/contact/ElectronicAddressEntity.ts +3 -2
- package/src/entities/contact/IdentityEntity.ts +3 -2
- package/src/entities/contact/IdentityMetadataItemEntity.ts +2 -1
- package/src/entities/contact/OrganizationEntity.ts +5 -10
- package/src/entities/contact/PartyEntity.ts +3 -2
- package/src/entities/contact/PartyRelationshipEntity.ts +3 -2
- package/src/entities/contact/PartyTypeEntity.ts +3 -2
- package/src/entities/contact/PhysicalAddressEntity.ts +3 -2
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +7 -6
- package/src/entities/eventLogger/AuditEventEntity.ts +4 -3
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +3 -2
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +3 -2
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +3 -2
- package/src/entities/machineState/MachineStateInfoEntity.ts +5 -4
- package/src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts +3 -2
|
@@ -20,6 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.BaseLocaleBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
23
24
|
const ImageAttributesEntity_1 = require("./ImageAttributesEntity");
|
|
24
25
|
const BackgroundAttributesEntity_1 = require("./BackgroundAttributesEntity");
|
|
25
26
|
const TextAttributesEntity_1 = require("./TextAttributesEntity");
|
|
@@ -90,11 +91,11 @@ __decorate([
|
|
|
90
91
|
__metadata("design:type", TextAttributesEntity_1.TextAttributesEntity)
|
|
91
92
|
], BaseLocaleBrandingEntity.prototype, "text", void 0);
|
|
92
93
|
__decorate([
|
|
93
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
94
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
94
95
|
__metadata("design:type", Date)
|
|
95
96
|
], BaseLocaleBrandingEntity.prototype, "createdAt", void 0);
|
|
96
97
|
__decorate([
|
|
97
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
98
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
98
99
|
__metadata("design:type", Date
|
|
99
100
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
100
101
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAYgB;AAChB,mEAA+D;AAC/D,6EAAyE;AACzE,iEAA6D;AAC7D,qDAAqE;AACrE,8CAA0D;AAInD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAU;IAgDtD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MA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AA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACxB,uDAA0B;4DAAA;AASvC;IAPC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,2CAAoB,EAAE;QACpC,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;8BACxB,2CAAoB;sDAAA;AAG3B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,6CAAsB,EAAE,CAAC;8BAC5E,IAAI;2DAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,6CAAsB,EAAE,CAAC;8BAC7E,IAAI;IAEpB,qHAAqH;;+DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;iEAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;wDAOd;mCA/DU,wBAAwB;IAFpC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,0BAAgB,EAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;GACnD,wBAAwB,CAgEpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"CredentialBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,8BAA8B,EAAsC,MAAM,kCAAkC,CAAA;AACrH,OAAO,EAAE,wBAAwB,EAAkC,MAAM,aAAa,CAAA;AAEtF,qBAGa,wBAAyB,SAAQ,UAAU;IAEtD,EAAE,EAAG,MAAM,CAAA;IAIX,MAAM,EAAG,MAAM,CAAA;IAIf,mBAAmB,EAAG,MAAM,CAAA;IAa5B,cAAc,EAAG,KAAK,CAAC,8BAA8B,CAAC,CAAA;IAGtD,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC;AAED,eAAO,MAAM,4BAA4B,SAAU,wBAAwB,KAAG,wBAS7E,CAAA"}
|
|
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.credentialBrandingEntityFrom = exports.CredentialBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
24
25
|
const CredentialLocaleBrandingEntity_1 = require("./CredentialLocaleBrandingEntity");
|
|
25
26
|
let CredentialBrandingEntity = class CredentialBrandingEntity extends typeorm_1.BaseEntity {
|
|
26
27
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
@@ -63,11 +64,11 @@ __decorate([
|
|
|
63
64
|
__metadata("design:type", Array)
|
|
64
65
|
], CredentialBrandingEntity.prototype, "localeBranding", void 0);
|
|
65
66
|
__decorate([
|
|
66
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
67
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
67
68
|
__metadata("design:type", Date)
|
|
68
69
|
], CredentialBrandingEntity.prototype, "createdAt", void 0);
|
|
69
70
|
__decorate([
|
|
70
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
71
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
71
72
|
__metadata("design:type", Date
|
|
72
73
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
73
74
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,qFAAqH;AAM9G,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAU;IA+BtD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5E,CAAC;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AA/CY,4DAAwB;AAEnC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;oDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAA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sB,EAAE,CAAC;8BAC5E,IAAI;2DAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,6CAAsB,EAAE,CAAC;8BAC7E,IAAI;IAEpB,qHAAqH;;+DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;iEAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;wDAOd;mCA9CU,wBAAwB;IAHpC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAA,eAAK,EAAC,kDAAkD,EAAE,CAAC,qBAAqB,CAAC,CAAC;GACtE,wBAAwB,CA+CpC;AAEM,MAAM,4BAA4B,GAAG,CAAC,IAA8B,EAA4B,EAAE;IACvG,MAAM,wBAAwB,GAA6B,IAAI,wBAAwB,EAAE,CAAA;IACzF,wBAAwB,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;IACvE,wBAAwB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAC7C,wBAAwB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,cAA8C,EAAE,EAAE,CACnH,IAAA,mEAAkC,EAAC,cAAc,CAAC,CACnD,CAAA;IAED,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AATY,QAAA,4BAA4B,gCASxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,0BAA0B,EAAkC,MAAM,8BAA8B,CAAA;AACzG,OAAO,EAAE,oBAAoB,EAA8B,MAAM,aAAa,CAAA;AAE9E,qBAEa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,mBAAmB,EAAG,MAAM,CAAA;IAa5B,cAAc,EAAG,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAGlD,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAQrE,CAAA"}
|
|
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.issuerBrandingEntityFrom = exports.IssuerBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
24
25
|
const IssuerLocaleBrandingEntity_1 = require("./IssuerLocaleBrandingEntity");
|
|
25
26
|
let IssuerBrandingEntity = class IssuerBrandingEntity extends typeorm_1.BaseEntity {
|
|
26
27
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
@@ -58,11 +59,11 @@ __decorate([
|
|
|
58
59
|
__metadata("design:type", Array)
|
|
59
60
|
], IssuerBrandingEntity.prototype, "localeBranding", void 0);
|
|
60
61
|
__decorate([
|
|
61
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
62
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
62
63
|
__metadata("design:type", Date)
|
|
63
64
|
], IssuerBrandingEntity.prototype, "createdAt", void 0);
|
|
64
65
|
__decorate([
|
|
65
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
66
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
66
67
|
__metadata("design:type", Date
|
|
67
68
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
68
69
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,6EAAyG;AAKlG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IA2BlD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5E,CAAC;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AA3CY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE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,CA2ChC;AAEM,MAAM,wBAAwB,GAAG,CAAC,IAA0B,EAAwB,EAAE;IAC3F,MAAM,oBAAoB,GAAyB,IAAI,oBAAoB,EAAE,CAAA;IAC7E,oBAAoB,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;IACnE,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,cAA0C,EAAE,EAAE,CAC3G,IAAA,2DAA8B,EAAC,cAAc,CAAC,CAC/C,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AARY,QAAA,wBAAwB,4BAQpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineStateInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"MachineStateInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqE,MAAM,SAAS,CAAA;AAGvG;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAEpD,UAAU,EAAG,MAAM,CAAA;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,WAAW,EAAG,MAAM,CAAA;IAGpB,eAAe,CAAC,EAAE,MAAM,CAAA;IAGxB,eAAe,EAAG,MAAM,CAAA;IAGxB,KAAK,EAAG,MAAM,CAAA;IAGd,SAAS,EAAG,IAAI,CAAA;IAGhB,SAAS,EAAG,IAAI,CAAA;IAGhB,YAAY,EAAG,MAAM,CAAA;IAGrB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,WAAW,CAAC,EAAE,IAAI,CAAA;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MachineStateInfoEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
14
15
|
/**
|
|
15
16
|
* @class MachineStateInfoEntity
|
|
16
17
|
* Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
|
|
@@ -56,11 +57,11 @@ __decorate([
|
|
|
56
57
|
__metadata("design:type", String)
|
|
57
58
|
], MachineStateInfoEntity.prototype, "state", void 0);
|
|
58
59
|
__decorate([
|
|
59
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
60
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
60
61
|
__metadata("design:type", Date)
|
|
61
62
|
], MachineStateInfoEntity.prototype, "createdAt", void 0);
|
|
62
63
|
__decorate([
|
|
63
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false }),
|
|
64
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
64
65
|
__metadata("design:type", Date)
|
|
65
66
|
], MachineStateInfoEntity.prototype, "updatedAt", void 0);
|
|
66
67
|
__decorate([
|
|
@@ -68,11 +69,11 @@ __decorate([
|
|
|
68
69
|
__metadata("design:type", Number)
|
|
69
70
|
], MachineStateInfoEntity.prototype, "updatedCount", void 0);
|
|
70
71
|
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ name: 'expires_at', nullable: true }),
|
|
72
|
+
(0, typeorm_1.Column)({ name: 'expires_at', nullable: true, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
72
73
|
__metadata("design:type", Date)
|
|
73
74
|
], MachineStateInfoEntity.prototype, "expiresAt", void 0);
|
|
74
75
|
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ name: 'completed_at', nullable: true }),
|
|
76
|
+
(0, typeorm_1.Column)({ name: 'completed_at', nullable: true, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
76
77
|
__metadata("design:type", Date)
|
|
77
78
|
], MachineStateInfoEntity.prototype, "completedAt", void 0);
|
|
78
79
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineStateInfoEntity.js","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;
|
|
1
|
+
{"version":3,"file":"MachineStateInfoEntity.js","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,yEAAsE;AAEtE;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAU;CAqCrD,CAAA;AArCY,wDAAsB;AAEjC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACtD;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC9C;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DAC/C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAC/C;A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../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiH,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"PresentationDefinitionItemEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiH,MAAM,SAAS,CAAA;AAInJ,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"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PresentationDefinitionItemEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
15
16
|
let PresentationDefinitionItemEntity = class PresentationDefinitionItemEntity extends typeorm_1.BaseEntity {
|
|
16
17
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
17
18
|
updateUpdatedDate() {
|
|
@@ -51,11 +52,11 @@ __decorate([
|
|
|
51
52
|
__metadata("design:type", String)
|
|
52
53
|
], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
|
|
53
54
|
__decorate([
|
|
54
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
55
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
55
56
|
__metadata("design:type", Date)
|
|
56
57
|
], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
|
|
57
58
|
__decorate([
|
|
58
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
59
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: ssi_sdk_agent_config_1.TYPEORM_DATE_TIME_TYPE }),
|
|
59
60
|
__metadata("design:type", Date
|
|
60
61
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
61
62
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationDefinitionItemEntity.js","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmJ;AACnJ,qDAA4C;
|
|
1
|
+
{"version":3,"file":"PresentationDefinitionItemEntity.js","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmJ;AACnJ,qDAA4C;AAC5C,yEAAsE;AAI/D,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,oBAAU;IA+B9D,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;CACF,CAAA;AArCY,4EAAgC;AAE3C;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4DACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,4BAAU,EAAC,E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,EAAE,KAAK,EAAE,IAAI,EAAE,6CAAsB,EAAE,CAAC;8BAC7E,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1-next.2+4f933534",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@sphereon/pex": "^4.0.1",
|
|
18
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.
|
|
19
|
-
"@sphereon/ssi-sdk.
|
|
20
|
-
"@sphereon/ssi-
|
|
18
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.24.1-next.3",
|
|
19
|
+
"@sphereon/ssi-sdk.agent-config": "0.29.1-next.2+4f933534",
|
|
20
|
+
"@sphereon/ssi-sdk.core": "0.29.1-next.2+4f933534",
|
|
21
|
+
"@sphereon/ssi-types": "0.29.1-next.2+4f933534",
|
|
21
22
|
"@veramo/core": "4.2.0",
|
|
22
23
|
"@veramo/utils": "4.2.0",
|
|
23
24
|
"blakejs": "^1.2.1",
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"PostgreSQL",
|
|
49
50
|
"Contact Store"
|
|
50
51
|
],
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4f9335344636d773bdcd9b7bc604f076394bc5c6"
|
|
52
53
|
}
|
|
@@ -56,6 +56,8 @@ import {
|
|
|
56
56
|
physicalAddressEntityFrom,
|
|
57
57
|
} from '../utils/contact/MappingUtils'
|
|
58
58
|
import { ContactMetadataItemEntity } from '../entities/contact/ContactMetadataItemEntity'
|
|
59
|
+
import { DataSources } from '@sphereon/ssi-sdk.agent-config'
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
// TODO write test adding two contacts reusing the same contactType
|
|
61
63
|
|
|
@@ -63,6 +65,7 @@ describe('Database entities tests', (): void => {
|
|
|
63
65
|
let dbConnection: DataSource
|
|
64
66
|
|
|
65
67
|
beforeEach(async (): Promise<void> => {
|
|
68
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
66
69
|
dbConnection = await new DataSource({
|
|
67
70
|
type: 'sqlite',
|
|
68
71
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { DataStoreContactEntities, DataStoreMigrations, IdentityOrigin, MetadataItem, MetadataTypes, PartyOrigin } from '../index'
|
|
3
4
|
import { ContactStore } from '../contact/ContactStore'
|
|
@@ -31,6 +32,7 @@ describe('Contact store tests', (): void => {
|
|
|
31
32
|
let contactStore: ContactStore
|
|
32
33
|
|
|
33
34
|
beforeEach(async (): Promise<void> => {
|
|
35
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
34
36
|
dbConnection = await new DataSource({
|
|
35
37
|
type: 'sqlite',
|
|
36
38
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { CredentialRole, DataStoreDigitalCredentialEntities } from '../index'
|
|
3
4
|
import { DataStoreDigitalCredentialMigrations } from '../migrations'
|
|
@@ -17,6 +18,7 @@ describe('Database entities tests', (): void => {
|
|
|
17
18
|
let dbConnection: DataSource
|
|
18
19
|
|
|
19
20
|
beforeEach(async (): Promise<void> => {
|
|
21
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
20
22
|
dbConnection = await new DataSource({
|
|
21
23
|
type: 'sqlite',
|
|
22
24
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { DataStoreDigitalCredentialMigrations } from '../migrations'
|
|
3
4
|
import { CredentialRole, DataStoreDigitalCredentialEntities } from '../index'
|
|
@@ -18,6 +19,7 @@ describe('Database entities tests', (): void => {
|
|
|
18
19
|
let digitalCredentialStore: DigitalCredentialStore
|
|
19
20
|
|
|
20
21
|
beforeEach(async (): Promise<void> => {
|
|
22
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
21
23
|
dbConnection = await new DataSource({
|
|
22
24
|
type: 'sqlite',
|
|
23
25
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
2
3
|
import { ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
3
4
|
import { DataSource } from 'typeorm'
|
|
@@ -10,6 +11,7 @@ describe('Database entities tests', (): void => {
|
|
|
10
11
|
let dbConnection: DataSource
|
|
11
12
|
|
|
12
13
|
beforeEach(async (): Promise<void> => {
|
|
14
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
13
15
|
dbConnection = await new DataSource({
|
|
14
16
|
type: 'sqlite',
|
|
15
17
|
database: ':memory:',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
2
3
|
import { DataSource } from 'typeorm'
|
|
3
|
-
import { DataStoreEventLoggerMigrations } from '../migrations
|
|
4
|
+
import { DataStoreEventLoggerMigrations } from '../migrations'
|
|
4
5
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
5
6
|
import { AuditLoggingEvent, PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
6
7
|
import { EventLoggerStore } from '../eventLogger/EventLoggerStore'
|
|
@@ -11,6 +12,7 @@ describe('Database entities tests', (): void => {
|
|
|
11
12
|
let eventLoggerStore: EventLoggerStore
|
|
12
13
|
|
|
13
14
|
beforeEach(async (): Promise<void> => {
|
|
15
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
14
16
|
dbConnection = await new DataSource({
|
|
15
17
|
type: 'sqlite',
|
|
16
18
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource, Repository } from 'typeorm'
|
|
2
3
|
import { DataStoreMigrations } from '../migrations'
|
|
3
4
|
import {
|
|
@@ -20,6 +21,7 @@ describe('Database entities tests', (): void => {
|
|
|
20
21
|
let dbConnection: DataSource
|
|
21
22
|
|
|
22
23
|
beforeEach(async (): Promise<void> => {
|
|
24
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
23
25
|
dbConnection = await new DataSource({
|
|
24
26
|
type: 'sqlite',
|
|
25
27
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { IssuanceBrandingStore } from '../issuanceBranding/IssuanceBrandingStore'
|
|
3
4
|
import { DataStoreMigrations } from '../migrations'
|
|
@@ -31,6 +32,7 @@ describe('Issuance branding store tests', (): void => {
|
|
|
31
32
|
let issuanceBrandingStore: IssuanceBrandingStore
|
|
32
33
|
|
|
33
34
|
beforeEach(async (): Promise<void> => {
|
|
35
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
34
36
|
dbConnection = await new DataSource({
|
|
35
37
|
type: 'sqlite',
|
|
36
38
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { MachineStateInfoEntity } from '../entities/machineState/MachineStateInfoEntity'
|
|
3
4
|
|
|
@@ -7,6 +8,7 @@ describe('Machine State Info Database entities tests', (): void => {
|
|
|
7
8
|
let dbConnection: DataSource
|
|
8
9
|
|
|
9
10
|
beforeEach(async (): Promise<void> => {
|
|
11
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
10
12
|
dbConnection = await new DataSource({
|
|
11
13
|
type: 'sqlite',
|
|
12
14
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { DataStoreMachineStateEntities, MachineStateStore, StoreMachineStatesFindActiveArgs, StoreMachineStatePersistArgs } from '../index'
|
|
3
4
|
import { DataStoreMachineStateMigrations } from '../migrations'
|
|
@@ -7,6 +8,7 @@ describe('Machine State store tests', (): void => {
|
|
|
7
8
|
let store: MachineStateStore
|
|
8
9
|
|
|
9
10
|
beforeEach(async (): Promise<void> => {
|
|
11
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
10
12
|
dbConnection = await new DataSource({
|
|
11
13
|
type: 'sqlite',
|
|
12
14
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { PresentationDefinitionItemEntity } from '../entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
3
4
|
import { DataStorePresentationDefinitionMigrations } from '../migrations'
|
|
@@ -7,6 +8,7 @@ describe('PresentationDefinitionItemEntity tests', (): void => {
|
|
|
7
8
|
let dbConnection: DataSource
|
|
8
9
|
|
|
9
10
|
beforeEach(async (): Promise<void> => {
|
|
11
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
10
12
|
dbConnection = await new DataSource({
|
|
11
13
|
type: 'sqlite',
|
|
12
14
|
database: ':memory:',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DataSources} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, PDStore } from '../index'
|
|
3
4
|
import { GetDefinitionsArgs, NonPersistedPresentationDefinitionItem, PresentationDefinitionItem } from '../types'
|
|
@@ -7,6 +8,7 @@ describe('PDStore tests', (): void => {
|
|
|
7
8
|
let pdStore: PDStore
|
|
8
9
|
|
|
9
10
|
beforeEach(async (): Promise<void> => {
|
|
11
|
+
DataSources.singleInstance().defaultDbType = 'sqlite'
|
|
10
12
|
dbConnection = await new DataSource({
|
|
11
13
|
type: 'sqlite',
|
|
12
14
|
database: ':memory:',
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
TableInheritance,
|
|
12
12
|
UpdateDateColumn,
|
|
13
13
|
} from 'typeorm'
|
|
14
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
14
15
|
import { PartyEntity } from './PartyEntity'
|
|
15
16
|
import { ContactMetadataItemEntity } from './ContactMetadataItemEntity'
|
|
16
17
|
|
|
@@ -20,10 +21,10 @@ export abstract class BaseContactEntity extends BaseEntity {
|
|
|
20
21
|
@PrimaryGeneratedColumn('uuid')
|
|
21
22
|
id!: string
|
|
22
23
|
|
|
23
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
24
|
+
@CreateDateColumn({ name: 'created_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
24
25
|
createdAt!: Date
|
|
25
26
|
|
|
26
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
27
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
27
28
|
lastUpdatedAt!: Date
|
|
28
29
|
|
|
29
30
|
@OneToOne(() => PartyEntity, (party: PartyEntity) => party.contact, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Entity, Column, PrimaryGeneratedColumn, BaseEntity, ManyToOne, BeforeInsert, BeforeUpdate } from 'typeorm'
|
|
2
2
|
import { IMetadataEntity, ValidationConstraint } from '../../types'
|
|
3
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
3
4
|
import { BaseContactEntity } from './BaseContactEntity'
|
|
4
5
|
import { IsNotEmpty, validate, ValidationError } from 'class-validator'
|
|
5
6
|
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
@@ -23,7 +24,7 @@ export class ContactMetadataItemEntity extends BaseEntity implements IMetadataEn
|
|
|
23
24
|
@Column('numeric', { name: 'numberValue', nullable: true })
|
|
24
25
|
numberValue?: number
|
|
25
26
|
|
|
26
|
-
@Column({ name: 'dateValue', nullable: true })
|
|
27
|
+
@Column({ name: 'dateValue', nullable: true, type: TYPEORM_DATE_TIME_TYPE })
|
|
27
28
|
dateValue?: Date
|
|
28
29
|
|
|
29
30
|
@Column('boolean', { name: 'boolValue', nullable: true })
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
CreateDateColumn,
|
|
11
11
|
UpdateDateColumn,
|
|
12
12
|
} from 'typeorm'
|
|
13
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
13
14
|
import { PartyEntity } from './PartyEntity'
|
|
14
15
|
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
15
16
|
import { ElectronicAddressType, ValidationConstraint } from '../../types'
|
|
@@ -41,10 +42,10 @@ export class ElectronicAddressEntity extends BaseEntity {
|
|
|
41
42
|
@Column('text', { name: 'tenant_id', nullable: true })
|
|
42
43
|
tenantId?: string
|
|
43
44
|
|
|
44
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
45
|
+
@CreateDateColumn({ name: 'created_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
45
46
|
createdAt!: Date
|
|
46
47
|
|
|
47
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
48
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
48
49
|
lastUpdatedAt!: Date
|
|
49
50
|
|
|
50
51
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
BeforeUpdate,
|
|
14
14
|
} from 'typeorm'
|
|
15
15
|
import { IsNotEmpty, validate, ValidationError } from 'class-validator'
|
|
16
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
16
17
|
import { CorrelationIdentifierEntity } from './CorrelationIdentifierEntity'
|
|
17
18
|
import { ConnectionEntity } from './ConnectionEntity'
|
|
18
19
|
import { IdentityMetadataItemEntity } from './IdentityMetadataItemEntity'
|
|
@@ -70,10 +71,10 @@ export class IdentityEntity extends BaseEntity {
|
|
|
70
71
|
@JoinColumn({ name: 'metadata_id' }) // TODO check in db file
|
|
71
72
|
metadata!: Array<IdentityMetadataItemEntity>
|
|
72
73
|
|
|
73
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
74
|
+
@CreateDateColumn({ name: 'created_at', nullable: false , type: TYPEORM_DATE_TIME_TYPE})
|
|
74
75
|
createdAt!: Date
|
|
75
76
|
|
|
76
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
77
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
77
78
|
lastUpdatedAt!: Date
|
|
78
79
|
|
|
79
80
|
@ManyToOne(() => PartyEntity, (party: PartyEntity) => party.identities, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
1
2
|
import { Entity, Column, PrimaryGeneratedColumn, BaseEntity, ManyToOne, BeforeInsert, BeforeUpdate } from 'typeorm'
|
|
2
3
|
import { IMetadataEntity, ValidationConstraint } from '../../types'
|
|
3
4
|
import { IdentityEntity } from './IdentityEntity'
|
|
@@ -23,7 +24,7 @@ export class IdentityMetadataItemEntity extends BaseEntity implements IMetadataE
|
|
|
23
24
|
@Column('numeric', { name: 'numberValue', nullable: true })
|
|
24
25
|
numberValue?: number
|
|
25
26
|
|
|
26
|
-
@Column({ name: 'dateValue', nullable: true })
|
|
27
|
+
@Column({ name: 'dateValue', nullable: true, type: TYPEORM_DATE_TIME_TYPE })
|
|
27
28
|
dateValue?: Date
|
|
28
29
|
|
|
29
30
|
@Column('boolean', { name: 'boolValue', nullable: true })
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
1
|
+
import {IsNotEmpty, validate, ValidationError} from 'class-validator'
|
|
2
|
+
import {BeforeInsert, BeforeUpdate, ChildEntity, Column} from 'typeorm'
|
|
3
|
+
import {ValidationConstraint} from '../../types'
|
|
4
|
+
import {getConstraint} from '../../utils/ValidatorUtils'
|
|
5
|
+
import {BaseContactEntity} from './BaseContactEntity'
|
|
7
6
|
|
|
8
7
|
@ChildEntity('Organization')
|
|
9
8
|
export class OrganizationEntity extends BaseContactEntity {
|
|
@@ -21,10 +20,6 @@ export class OrganizationEntity extends BaseContactEntity {
|
|
|
21
20
|
@Column('text', { name: 'tenant_id', nullable: true })
|
|
22
21
|
tenantId?: string
|
|
23
22
|
|
|
24
|
-
@OneToOne(() => PartyEntity)
|
|
25
|
-
@JoinColumn({ name: 'party_id' })
|
|
26
|
-
party!: PartyEntity
|
|
27
|
-
|
|
28
23
|
@BeforeInsert()
|
|
29
24
|
@BeforeUpdate()
|
|
30
25
|
async validate(): Promise<void> {
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
UpdateDateColumn,
|
|
14
14
|
} from 'typeorm'
|
|
15
15
|
import { ValidationConstraint } from '../../types'
|
|
16
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
16
17
|
import { IdentityEntity } from './IdentityEntity'
|
|
17
18
|
import { validate, ValidationError } from 'class-validator'
|
|
18
19
|
import { PartyTypeEntity } from './PartyTypeEntity'
|
|
@@ -88,10 +89,10 @@ export class PartyEntity extends BaseEntity {
|
|
|
88
89
|
@JoinColumn({ name: 'relationship_id' })
|
|
89
90
|
relationships!: Array<PartyRelationshipEntity>
|
|
90
91
|
|
|
91
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
92
|
+
@CreateDateColumn({ name: 'created_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
92
93
|
createdAt!: Date
|
|
93
94
|
|
|
94
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
95
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
95
96
|
lastUpdatedAt!: Date
|
|
96
97
|
|
|
97
98
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
BeforeUpdate,
|
|
11
11
|
JoinColumn,
|
|
12
12
|
} from 'typeorm'
|
|
13
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
13
14
|
import { PartyEntity } from './PartyEntity'
|
|
14
15
|
|
|
15
16
|
@Entity('PartyRelationship')
|
|
@@ -44,10 +45,10 @@ export class PartyRelationshipEntity {
|
|
|
44
45
|
@Column('text', { name: 'tenant_id', nullable: true })
|
|
45
46
|
tenantId?: string
|
|
46
47
|
|
|
47
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
48
|
+
@CreateDateColumn({ name: 'created_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
48
49
|
createdAt!: Date
|
|
49
50
|
|
|
50
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
51
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
51
52
|
lastUpdatedAt!: Date
|
|
52
53
|
|
|
53
54
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BeforeInsert, BeforeUpdate, Column, CreateDateColumn, Entity, Index, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
+
import {TYPEORM_DATE_TIME_TYPE} from "@sphereon/ssi-sdk.agent-config";
|
|
2
3
|
import { PartyEntity } from './PartyEntity'
|
|
3
4
|
import { PartyOrigin, PartyTypeType, ValidationConstraint } from '../../types'
|
|
4
5
|
import { IsNotEmpty, Validate, validate, ValidationError } from 'class-validator'
|
|
@@ -34,10 +35,10 @@ export class PartyTypeEntity {
|
|
|
34
35
|
})
|
|
35
36
|
parties!: Array<PartyEntity>
|
|
36
37
|
|
|
37
|
-
@CreateDateColumn({ name: 'created_at', nullable: false })
|
|
38
|
+
@CreateDateColumn({ name: 'created_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
38
39
|
createdAt!: Date
|
|
39
40
|
|
|
40
|
-
@UpdateDateColumn({ name: 'last_updated_at', nullable: false })
|
|
41
|
+
@UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: TYPEORM_DATE_TIME_TYPE })
|
|
41
42
|
lastUpdatedAt!: Date
|
|
42
43
|
|
|
43
44
|
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|