@sphereon/ssi-sdk.data-store 0.30.2-next.103 → 0.30.2-next.125
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/digitalCredential/DigitalCredentialStore.d.ts.map +1 -1
- package/dist/digitalCredential/DigitalCredentialStore.js +1 -3
- package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +10 -3
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +57 -1
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +4 -2
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
- package/dist/eventLogger/EventLoggerStore.d.ts +5 -3
- package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/EventLoggerStore.js +31 -2
- package/dist/eventLogger/EventLoggerStore.js.map +1 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +1 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +34 -6
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +1 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +27 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -2
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -1
- package/dist/types/eventLogger/eventLogger.d.ts +3 -2
- package/dist/types/eventLogger/eventLogger.d.ts.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +2 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.js +8 -2
- package/dist/utils/eventLogger/MappingUtils.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/digitalCredential.store.test.ts +83 -4
- package/src/__tests__/eventLogger.entities.test.ts +60 -5
- package/src/__tests__/eventLogger.store.test.ts +480 -3
- package/src/digitalCredential/DigitalCredentialStore.ts +1 -3
- package/src/entities/eventLogger/AuditEventEntity.ts +54 -3
- package/src/eventLogger/AbstractEventLoggerStore.ts +9 -2
- package/src/eventLogger/EventLoggerStore.ts +55 -11
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +34 -6
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +27 -1
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -2
- package/src/types/eventLogger/eventLogger.ts +3 -2
- package/src/utils/eventLogger/MappingUtils.ts +34 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialStore.d.ts","sourceRoot":"","sources":["../../src/digitalCredential/DigitalCredentialStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EACL,iBAAiB,EAGjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EAEtB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAgC,MAAM,SAAS,CAAA;AAalE,qBAAa,sBAAuB,SAAQ,8BAA8B;IACxE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;IACpD,OAAO,CAAC,MAAM,CAAiD;gBAEnD,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,aAAa,SAAgB,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAU1E;IAED,aAAa,SAAgB,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAU1E;IAED,cAAc,UAAiB,kBAAkB,KAAG,OAAO,CAAC,sBAAsB,CAAC,CAiBlF;IAED,gBAAgB,SAAgB,oBAAoB,KAAG,OAAO,CAAC,OAAO,CAAC,CAuBtE;YAEa,UAAU;
|
|
1
|
+
{"version":3,"file":"DigitalCredentialStore.d.ts","sourceRoot":"","sources":["../../src/digitalCredential/DigitalCredentialStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EACL,iBAAiB,EAGjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EAEtB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAgC,MAAM,SAAS,CAAA;AAalE,qBAAa,sBAAuB,SAAQ,8BAA8B;IACxE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;IACpD,OAAO,CAAC,MAAM,CAAiD;gBAEnD,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,aAAa,SAAgB,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAU1E;IAED,aAAa,SAAgB,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAU1E;IAED,cAAc,UAAiB,kBAAkB,KAAG,OAAO,CAAC,sBAAsB,CAAC,CAiBlF;IAED,gBAAgB,SAAgB,oBAAoB,KAAG,OAAO,CAAC,OAAO,CAAC,CAuBtE;YAEa,UAAU;YAaV,aAAa;IAW3B,qBAAqB,SAAgB,yBAAyB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAqC1F;IAED,OAAO,CAAC,4BAA4B;CAmBrC"}
|
|
@@ -125,9 +125,7 @@ class DigitalCredentialStore extends AbstractDigitalCredentialStore_1.AbstractDi
|
|
|
125
125
|
let affected = 0;
|
|
126
126
|
const findResult = yield dcRepo.findBy(query);
|
|
127
127
|
for (const dc of findResult) {
|
|
128
|
-
|
|
129
|
-
affected += yield this.deleteTree(dcRepo, { id: dc.parentId });
|
|
130
|
-
}
|
|
128
|
+
affected += yield this.deleteTree(dcRepo, { parentId: dc.id });
|
|
131
129
|
const result = yield dcRepo.delete(dc.id);
|
|
132
130
|
if (result.affected) {
|
|
133
131
|
affected += result.affected;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialStore.js","sourceRoot":"","sources":["../../src/digitalCredential/DigitalCredentialStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qFAAiF;AACjF,oCAWiB;AAGjB,kDAAyB;AACzB,mGAA+F;AAC/F,0EAIgD;AAEhD,wDAAoE;AAEpE,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,mCAAmC,CAAC,CAAA;AAExE,MAAa,sBAAuB,SAAQ,+DAA8B;IAIxE,YAAY,YAAmC;QAC7C,KAAK,EAAE,CAAA;QAIT,kBAAa,GAAG,CAAO,IAAuB,EAA8B,EAAE;YAC5E,KAAK,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;YAChC,MAAM,gBAAgB,GAAkC,IAAA,6DAA8C,EAAC,IAAI,CAAC,CAAA;YAC5G,MAAM,eAAe,GAAG,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAA;YAC3E,IAAI,eAAe,EAAE,CAAC;gBACpB,OAAO,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;YACxC,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAA;YACzC,MAAM,aAAa,GAA4B,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;YAClF,OAAO,OAAO,CAAC,OAAO,CAAC,IAAA,oCAAqB,EAAC,aAAa,CAAC,CAAC,CAAA;QAC9D,CAAC,CAAA,CAAA;QAED,kBAAa,GAAG,CAAO,IAAuB,EAA8B,EAAE;Y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G,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,iDAAuB,CAAC,CAAA;YAC9E,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBAC9B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC,CAAA;YAClF,CAAC;YACD,OAAO,IAAI,CAAC,MAAM,CAAA;QACpB,CAAC;KAAA;IAyCO,4BAA4B,CAAC,gBAA+C;QAClF,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,GAAG,gBAAgB,CAAA;QAExF,MAAM,aAAa,GAAG,cAAc,KAAK,sBAAc,CAAC,MAAM,IAAI,CAAC,cAAc,KAAK,sBAAc,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,CAAA;QAE/H,IAAI,aAAa,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACvD,MAAM,aAAa,GAAG,EAAE,CAAA;YAExB,IAAI,CAAC,SAAS;gBAAE,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YAC/C,IAAI,CAAC,gBAAgB;gBAAE,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;YAE7D,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC1C,OAAO,IAAI,KAAK,CACd,8BAA8B,MAAM,wCAAwC,cAAc,wBAAwB,cAAc,GAAG,CACpI,CAAA;QACH,CAAC;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AA/JD,wDA+JC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
|
|
1
|
+
import { ActionSubType, ActionType, InitiatorType, LoggingEventType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
|
|
2
2
|
import { BaseEntity } from 'typeorm';
|
|
3
|
-
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core';
|
|
4
|
-
import { NonPersistedAuditLoggingEvent } from '../../types';
|
|
3
|
+
import { CredentialType, PartyCorrelationType } from '@sphereon/ssi-sdk.core';
|
|
4
|
+
import { NonPersistedAuditLoggingEvent, NonPersistedActivityLoggingEvent } from '../../types';
|
|
5
5
|
export declare class AuditEventEntity extends BaseEntity {
|
|
6
6
|
id: string;
|
|
7
7
|
timestamp: Date;
|
|
8
|
+
type: LoggingEventType;
|
|
8
9
|
level: LogLevel;
|
|
9
10
|
correlationId: string;
|
|
10
11
|
system: System;
|
|
@@ -19,10 +20,16 @@ export declare class AuditEventEntity extends BaseEntity {
|
|
|
19
20
|
partyCorrelationId?: string;
|
|
20
21
|
partyAlias?: string;
|
|
21
22
|
description: string;
|
|
23
|
+
credentialType?: CredentialType;
|
|
24
|
+
credentialHash?: string;
|
|
25
|
+
parentCredentialHash?: string;
|
|
26
|
+
originalCredential?: string;
|
|
27
|
+
sharePurpose?: string;
|
|
22
28
|
data?: string;
|
|
23
29
|
diagnosticData?: string;
|
|
24
30
|
createdAt: Date;
|
|
25
31
|
lastUpdatedAt: Date;
|
|
26
32
|
}
|
|
27
33
|
export declare const auditEventEntityFrom: (args: NonPersistedAuditLoggingEvent) => AuditEventEntity;
|
|
34
|
+
export declare const activityEventEntityFrom: (args: NonPersistedActivityLoggingEvent) => AuditEventEntity;
|
|
28
35
|
//# sourceMappingURL=AuditEventEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"Audit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MAAM,CAAA;IAGb,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,SAAU,6BAA6B,KAAG,gBAuB1E,CAAA;AAED,eAAO,MAAM,uBAAuB,SAAU,gCAAgC,KAAG,gBA4BhF,CAAA"}
|
|
@@ -9,11 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.auditEventEntityFrom = exports.AuditEventEntity = void 0;
|
|
12
|
+
exports.activityEventEntityFrom = exports.auditEventEntityFrom = exports.AuditEventEntity = void 0;
|
|
13
13
|
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
16
16
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
17
|
+
//TODO this entity, also contains some optional fields that are related to another event type (Activity) later we might want to refactor and reorganize this.
|
|
18
|
+
// For now I've added a discriminator value called eventType that can be one of the three types of events: 1. General, 2. Audit, and 3. Activity
|
|
17
19
|
let AuditEventEntity = class AuditEventEntity extends typeorm_1.BaseEntity {
|
|
18
20
|
};
|
|
19
21
|
exports.AuditEventEntity = AuditEventEntity;
|
|
@@ -25,6 +27,10 @@ __decorate([
|
|
|
25
27
|
(0, typeorm_1.Column)({ name: 'timestamp', nullable: false, unique: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
|
|
26
28
|
__metadata("design:type", Date)
|
|
27
29
|
], AuditEventEntity.prototype, "timestamp", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'eventType', enum: ssi_types_1.LoggingEventType, nullable: false, unique: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AuditEventEntity.prototype, "type", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, typeorm_1.Column)('simple-enum', { name: 'level', enum: ssi_types_1.LogLevel, nullable: false, unique: false }),
|
|
30
36
|
__metadata("design:type", Number)
|
|
@@ -81,6 +87,26 @@ __decorate([
|
|
|
81
87
|
(0, typeorm_1.Column)('text', { name: 'description', nullable: false, unique: false }),
|
|
82
88
|
__metadata("design:type", String)
|
|
83
89
|
], AuditEventEntity.prototype, "description", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'credentialType', enum: ssi_sdk_core_1.CredentialType, nullable: true, unique: false }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], AuditEventEntity.prototype, "credentialType", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)('text', { name: 'credentialHash', nullable: true, unique: false }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], AuditEventEntity.prototype, "credentialHash", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)('text', { name: 'parentCredentialHash', nullable: true, unique: false }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], AuditEventEntity.prototype, "parentCredentialHash", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)('text', { name: 'originalCredential', nullable: true, unique: false }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], AuditEventEntity.prototype, "originalCredential", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)('text', { name: 'sharePurpose', nullable: true, unique: false }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], AuditEventEntity.prototype, "sharePurpose", void 0);
|
|
84
110
|
__decorate([
|
|
85
111
|
(0, typeorm_1.Column)('text', { name: 'data', nullable: true, unique: false }),
|
|
86
112
|
__metadata("design:type", String)
|
|
@@ -102,6 +128,7 @@ exports.AuditEventEntity = AuditEventEntity = __decorate([
|
|
|
102
128
|
], AuditEventEntity);
|
|
103
129
|
const auditEventEntityFrom = (args) => {
|
|
104
130
|
const auditEventEntity = new AuditEventEntity();
|
|
131
|
+
auditEventEntity.type = ssi_types_1.LoggingEventType.AUDIT;
|
|
105
132
|
auditEventEntity.timestamp = args.timestamp;
|
|
106
133
|
auditEventEntity.level = args.level;
|
|
107
134
|
auditEventEntity.correlationId = args.correlationId;
|
|
@@ -123,4 +150,33 @@ const auditEventEntityFrom = (args) => {
|
|
|
123
150
|
return auditEventEntity;
|
|
124
151
|
};
|
|
125
152
|
exports.auditEventEntityFrom = auditEventEntityFrom;
|
|
153
|
+
const activityEventEntityFrom = (args) => {
|
|
154
|
+
const activityEventEntity = new AuditEventEntity();
|
|
155
|
+
activityEventEntity.type = ssi_types_1.LoggingEventType.ACTIVITY;
|
|
156
|
+
activityEventEntity.timestamp = args.timestamp;
|
|
157
|
+
activityEventEntity.level = args.level;
|
|
158
|
+
activityEventEntity.correlationId = args.correlationId;
|
|
159
|
+
activityEventEntity.system = args.system;
|
|
160
|
+
activityEventEntity.subSystemType = args.subSystemType;
|
|
161
|
+
activityEventEntity.actionType = args.actionType;
|
|
162
|
+
activityEventEntity.actionSubType = args.actionSubType;
|
|
163
|
+
activityEventEntity.initiatorType = args.initiatorType;
|
|
164
|
+
activityEventEntity.systemCorrelationIdType = args.systemCorrelationIdType;
|
|
165
|
+
activityEventEntity.systemCorrelationId = args.systemCorrelationId;
|
|
166
|
+
activityEventEntity.systemAlias = args.systemAlias;
|
|
167
|
+
activityEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
168
|
+
activityEventEntity.partyCorrelationId = args.partyCorrelationId;
|
|
169
|
+
activityEventEntity.partyAlias = args.partyAlias;
|
|
170
|
+
activityEventEntity.description = args.description;
|
|
171
|
+
activityEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
172
|
+
activityEventEntity.data = JSON.stringify(args.data);
|
|
173
|
+
activityEventEntity.sharePurpose = args.sharePurpose;
|
|
174
|
+
activityEventEntity.credentialType = args.credentialType;
|
|
175
|
+
activityEventEntity.originalCredential = args.originalCredential;
|
|
176
|
+
activityEventEntity.credentialHash = args.credentialHash;
|
|
177
|
+
activityEventEntity.parentCredentialHash = args.parentCredentialHash;
|
|
178
|
+
activityEventEntity.diagnosticData = JSON.stringify(args.diagnosticData);
|
|
179
|
+
return activityEventEntity;
|
|
180
|
+
};
|
|
181
|
+
exports.activityEventEntityFrom = activityEventEntityFrom;
|
|
126
182
|
//# sourceMappingURL=AuditEventEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAsJ;AACtJ,qCAAgH;AAChH,yDAA6E;AAC7E,yEAAgE;AAGhE,6JAA6J;AAC7J,gJAAgJ;AAEzI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA8E/C,CAAA;AA9EY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACpB;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BAC3E,IAAI;mDAAA;AAGhB;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,4BAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,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Ac,CAAA;IACxD,mBAAmB,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAA;IAChE,mBAAmB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAA;IACxD,mBAAmB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAA;IACpE,mBAAmB,CAAC,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAExE,OAAO,mBAAmB,CAAA;AAC5B,CAAC,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
+
import { GetActivityEventsArgs, GetAuditEventsArgs, StoreActivityEventArgs, StoreAuditEventArgs } from '../types';
|
|
3
3
|
export declare abstract class AbstractEventLoggerStore {
|
|
4
4
|
abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
|
|
5
|
+
abstract getActivityEvents(args: GetActivityEventsArgs): Promise<Array<ActivityLoggingEvent>>;
|
|
5
6
|
abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
|
|
7
|
+
abstract storeActivityEvent(args: StoreActivityEventArgs): Promise<ActivityLoggingEvent>;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=AbstractEventLoggerStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAEjB,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC7F,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAC/E,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CACzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAQA,MAAsB,wBAAwB;CAK7C;AALD,4DAKC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
1
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
3
2
|
import { OrPromise } from '@sphereon/ssi-types';
|
|
3
|
+
import { DataSource } from 'typeorm';
|
|
4
4
|
import { AbstractEventLoggerStore } from './AbstractEventLoggerStore';
|
|
5
|
-
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types';
|
|
5
|
+
import { GetActivityEventsArgs, GetAuditEventsArgs, StoreActivityEventArgs, StoreAuditEventArgs } from '../types';
|
|
6
6
|
export declare class EventLoggerStore extends AbstractEventLoggerStore {
|
|
7
7
|
private readonly dbConnection;
|
|
8
8
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
9
9
|
getAuditEvents: (args?: GetAuditEventsArgs) => Promise<Array<AuditLoggingEvent>>;
|
|
10
10
|
storeAuditEvent: (args: StoreAuditEventArgs) => Promise<AuditLoggingEvent>;
|
|
11
|
+
getActivityEvents: (args?: GetActivityEventsArgs) => Promise<Array<ActivityLoggingEvent>>;
|
|
12
|
+
storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=EventLoggerStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAoB,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAOrE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAIjB,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;gBAExC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,cAAc,UAAiB,kBAAkB,KAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAepF;IAED,eAAe,SAAgB,mBAAmB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAS9E;IAED,iBAAiB,UAAiB,qBAAqB,KAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAe7F;IAED,kBAAkB,SAAgB,sBAAsB,KAAG,OAAO,CAAC,oBAAoB,CAAC,CASvF;CACF"}
|
|
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.EventLoggerStore = void 0;
|
|
16
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
16
17
|
const debug_1 = __importDefault(require("debug"));
|
|
17
18
|
const AbstractEventLoggerStore_1 = require("./AbstractEventLoggerStore");
|
|
18
19
|
const AuditEventEntity_1 = require("../entities/eventLogger/AuditEventEntity");
|
|
@@ -22,9 +23,16 @@ class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerSto
|
|
|
22
23
|
constructor(dbConnection) {
|
|
23
24
|
super();
|
|
24
25
|
this.getAuditEvents = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const
|
|
26
|
+
const { filter = [] } = args !== null && args !== void 0 ? args : {};
|
|
27
|
+
const auditEventsFilter = filter.map((item) => (Object.assign(Object.assign({}, item), { type: ssi_types_1.LoggingEventType.AUDIT })));
|
|
28
|
+
if (auditEventsFilter.length === 0) {
|
|
29
|
+
auditEventsFilter.push({ type: ssi_types_1.LoggingEventType.AUDIT });
|
|
30
|
+
}
|
|
31
|
+
const connection = yield this.dbConnection;
|
|
26
32
|
debug('Getting audit events', args);
|
|
27
|
-
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find(
|
|
33
|
+
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find({
|
|
34
|
+
where: auditEventsFilter
|
|
35
|
+
});
|
|
28
36
|
return result.map((event) => (0, MappingUtils_1.auditEventFrom)(event));
|
|
29
37
|
});
|
|
30
38
|
this.storeAuditEvent = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,6 +43,27 @@ class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerSto
|
|
|
35
43
|
const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(auditEventEntity);
|
|
36
44
|
return (0, MappingUtils_1.auditEventFrom)(createdResult);
|
|
37
45
|
});
|
|
46
|
+
this.getActivityEvents = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const { filter = [] } = args !== null && args !== void 0 ? args : {};
|
|
48
|
+
const activityEventsFilter = filter.map((item) => (Object.assign(Object.assign({}, item), { type: ssi_types_1.LoggingEventType.ACTIVITY })));
|
|
49
|
+
if (activityEventsFilter.length === 0) {
|
|
50
|
+
activityEventsFilter.push({ type: ssi_types_1.LoggingEventType.ACTIVITY });
|
|
51
|
+
}
|
|
52
|
+
const connection = yield this.dbConnection;
|
|
53
|
+
debug('Getting activity events', args);
|
|
54
|
+
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find({
|
|
55
|
+
where: activityEventsFilter
|
|
56
|
+
});
|
|
57
|
+
return result.map((event) => (0, MappingUtils_1.activityEventFrom)(event));
|
|
58
|
+
});
|
|
59
|
+
this.storeActivityEvent = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const { event } = args;
|
|
61
|
+
const activityEventEntity = (0, AuditEventEntity_1.activityEventEntityFrom)(event);
|
|
62
|
+
const connection = yield this.dbConnection;
|
|
63
|
+
debug('Storing activity event', activityEventEntity);
|
|
64
|
+
const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(activityEventEntity);
|
|
65
|
+
return (0, MappingUtils_1.activityEventFrom)(createdResult);
|
|
66
|
+
});
|
|
38
67
|
this.dbConnection = dbConnection;
|
|
39
68
|
}
|
|
40
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
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,IAA4B,EAAiC,EAAE;YACzF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;YAEtB,MAAM,mBAAmB,GAAG,IAAA,0CAAuB,EAAC,KAAK,CAAC,CAAA;YAC1D,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,YAAY,CAAA;YAC1C,KAAK,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAA;YACpD,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,mCAAgB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;YAEhG,OAAO,IAAA,gCAAiB,EAAC,aAAa,CAAC,CAAA;QACzC,CAAC,CAAA,CAAA;QAzDC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CAyDF;AA/DD,4CA+DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1701634812183-CreateAuditEvents.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1701634812183-CreateAuditEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,8BAA+B,YAAW,kBAAkB;IACvE,IAAI,SAAmC;IAE1B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"1701634812183-CreateAuditEvents.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1701634812183-CreateAuditEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,8BAA+B,YAAW,kBAAkB;IACvE,IAAI,SAAmC;IAE1B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA6C3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAU3D"}
|
|
@@ -16,14 +16,42 @@ class CreateAuditEvents1701634812183 {
|
|
|
16
16
|
}
|
|
17
17
|
up(queryRunner) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
yield queryRunner.query(`CREATE TYPE "public"."Level_enum" AS ENUM('0', '1', '2', '3')`);
|
|
20
|
-
yield queryRunner.query(`CREATE TYPE "public"."System_enum" AS ENUM('general', 'kms', 'identity', 'oid4vci', 'credentials', 'web3', 'profile', 'contact')`);
|
|
21
|
-
yield queryRunner.query(`CREATE TYPE "public"."Subsystem_type_enum" AS ENUM('key', 'did_provider', 'did_resolver', 'oid4vp_op', 'oid4vci_client', 'siopv2_op', 'contact_manager', 'vc_issuer', 'vc_verifier', 'vc_persistence', 'transport', 'profile')`);
|
|
19
|
+
yield queryRunner.query(`CREATE TYPE "public"."Level_enum" AS ENUM('0', '1', '2', '3', '4')`);
|
|
20
|
+
yield queryRunner.query(`CREATE TYPE "public"."System_enum" AS ENUM('general', 'kms', 'identity', 'oid4vci', 'oid4vp', 'siopv2', 'PE', 'credentials', 'web3', 'profile', 'contact')`);
|
|
21
|
+
yield queryRunner.query(`CREATE TYPE "public"."Subsystem_type_enum" AS ENUM('key', 'did_provider', 'did_resolver', 'oid4vp_op', 'oid4vci_client', 'siopv2_op', 'contact_manager', 'vc_issuer', 'vc_verifier', 'vc_persistence', 'transport', 'profile', 'api')`);
|
|
22
22
|
yield queryRunner.query(`CREATE TYPE "public"."Action_type_enum" AS ENUM('create', 'read', 'update', 'delete', 'execute')`);
|
|
23
23
|
yield queryRunner.query(`CREATE TYPE "public"."Initiator_type_enum" AS ENUM('user', 'system', 'external')`);
|
|
24
|
-
yield queryRunner.query(`CREATE TYPE "public"."System_correlation_id_type_enum" AS ENUM('did', 'email', 'hostname', 'phone', 'user')`);
|
|
25
|
-
yield queryRunner.query(`CREATE TYPE "public"."Party_correlation_type_enum" AS ENUM('did', 'email', 'hostname', 'phone')`);
|
|
26
|
-
yield queryRunner.query(`CREATE
|
|
24
|
+
yield queryRunner.query(`CREATE TYPE "public"."System_correlation_id_type_enum" AS ENUM('did', 'url', 'email', 'hostname', 'phone', 'user')`);
|
|
25
|
+
yield queryRunner.query(`CREATE TYPE "public"."Party_correlation_type_enum" AS ENUM('did', 'url', 'email', 'hostname', 'phone')`);
|
|
26
|
+
yield queryRunner.query(`CREATE TYPE "public"."Event_type_enum" AS ENUM('audit', 'activity', 'general')`);
|
|
27
|
+
yield queryRunner.query(`CREATE TYPE "public"."Event_credential_type_enum" AS ENUM('JSON_LD', 'JWT', 'SD_JWT', 'MSO_MDOC')`);
|
|
28
|
+
yield queryRunner.query(`CREATE TABLE "AuditEvents" (
|
|
29
|
+
"id" uuid NOT NULL DEFAULT uuid_generate_v4(),
|
|
30
|
+
"eventType" "public"."Event_type_enum" NOT NULL,
|
|
31
|
+
"timestamp" TIMESTAMP NOT NULL,
|
|
32
|
+
"level" "public"."Level_enum" NOT NULL,
|
|
33
|
+
"correlationId" TEXT NOT NULL,
|
|
34
|
+
"system" "public"."System_enum" NOT NULL,
|
|
35
|
+
"subSystemType" "public"."Subsystem_type_enum" NOT NULL,
|
|
36
|
+
"actionType" "public"."Action_type_enum" NOT NULL,
|
|
37
|
+
"actionSubType" TEXT NOT NULL,
|
|
38
|
+
"initiatorType" "public"."Initiator_type_enum" NOT NULL,
|
|
39
|
+
"systemCorrelationIdType" "public"."System_correlation_id_type_enum",
|
|
40
|
+
"systemCorrelationId" TEXT,
|
|
41
|
+
"systemAlias" TEXT,
|
|
42
|
+
"partyCorrelationType" "public"."Party_correlation_type_enum",
|
|
43
|
+
"partyCorrelationId" TEXT,
|
|
44
|
+
"partyAlias" TEXT,
|
|
45
|
+
"credentialType" "public"."Event_credential_type_enum",
|
|
46
|
+
"credentialHash" TEXT,
|
|
47
|
+
"originalCredential" TEXT,
|
|
48
|
+
"sharePurpose" TEXT,
|
|
49
|
+
"description" TEXT NOT NULL,
|
|
50
|
+
"data" TEXT,
|
|
51
|
+
"diagnosticData" TEXT,
|
|
52
|
+
"created_at" TIMESTAMP NOT NULL DEFAULT now(),
|
|
53
|
+
"last_updated_at" TIMESTAMP NOT NULL DEFAULT now(),
|
|
54
|
+
CONSTRAINT "PK_AuditEvents_id" PRIMARY KEY ("id"))`);
|
|
27
55
|
});
|
|
28
56
|
}
|
|
29
57
|
down(queryRunner) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1701634812183-CreateAuditEvents.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1701634812183-CreateAuditEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACE,SAAI,GAAG,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"1701634812183-CreateAuditEvents.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1701634812183-CreateAuditEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACE,SAAI,GAAG,gCAAgC,CAAA;IAyDzC,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAA;YAC7F,MAAM,WAAW,CAAC,KAAK,CACrB,4JAA4J,CAC7J,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,uOAAuO,CACxO,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,kGAAkG,CAAC,CAAA;YAC3H,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAA;YAC3G,MAAM,WAAW,CAAC,KAAK,CAAC,oHAAoH,CAAC,CAAA;YAC7I,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAA;YACjI,MAAM,WAAW,CAAC,KAAK,CAAC,gFAAgF,CAAC,CAAA;YACzG,MAAM,WAAW,CAAC,KAAK,CAAC,mGAAmG,CAAC,CAAA;YAC5H,MAAM,WAAW,CAAC,KAAK,CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;mEA0B6D,CAC9D,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;YACnD,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAA;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAA;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACnE,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;YAChE,MAAM,WAAW,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACnE,MAAM,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAA;YAC3D,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;QAC5D,CAAC;KAAA;CACF;AA1DD,wEA0DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1701634819487-CreateAuditEvents.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1701634819487-CreateAuditEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,8BAA+B,YAAW,kBAAkB;IACvE,IAAI,SAAmC;IAE1B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"1701634819487-CreateAuditEvents.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1701634819487-CreateAuditEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,8BAA+B,YAAW,kBAAkB;IACvE,IAAI,SAAmC;IAE1B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAgC3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
|
|
@@ -16,7 +16,33 @@ class CreateAuditEvents1701634819487 {
|
|
|
16
16
|
}
|
|
17
17
|
up(queryRunner) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
yield queryRunner.query(`CREATE TABLE "AuditEvents" (
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE "AuditEvents" (
|
|
20
|
+
"id" varchar PRIMARY KEY NOT NULL,
|
|
21
|
+
"eventType" varchar CHECK( "eventType" IN ('audit','activity','general') ) NOT NULL,
|
|
22
|
+
"timestamp" datetime NOT NULL,
|
|
23
|
+
"level" varchar CHECK( "level" IN ('0','1','2','3','4') ) NOT NULL,
|
|
24
|
+
"correlationId" varchar NOT NULL,
|
|
25
|
+
"system" varchar CHECK( "system" IN ('general','kms','identity','oid4vci','oid4vp','siopv2','PE','credentials','web3','profile','contact') ) NOT NULL,
|
|
26
|
+
"subSystemType" varchar CHECK( "subSystemType" IN ('key','did_provider','did_resolver','oid4vp_op','oid4vci_client','siopv2_op','contact_manager','vc_issuer','vc_verifier','vc_persistence','transport','profile','api') ) NOT NULL,
|
|
27
|
+
"actionType" varchar CHECK( "actionType" IN ('create','read','update','delete','execute') ) NOT NULL,
|
|
28
|
+
"actionSubType" varchar NOT NULL,
|
|
29
|
+
"initiatorType" varchar CHECK( "initiatorType" IN ('user','system','external') ) NOT NULL,
|
|
30
|
+
"systemCorrelationIdType" varchar CHECK( "systemCorrelationIdType" IN ('did','url','email','hostname','phone','user') ),
|
|
31
|
+
"systemCorrelationId" varchar,
|
|
32
|
+
"systemAlias" varchar,
|
|
33
|
+
"partyCorrelationType" varchar CHECK( "partyCorrelationType" IN ('did','url','email','hostname','phone') ),
|
|
34
|
+
"partyCorrelationId" varchar,
|
|
35
|
+
"partyAlias" varchar,
|
|
36
|
+
"credentialType" varchar CHECK( "credentialType" IN ('JSON_LD','JWT','SD_JWT','MSO_MDOC') ),
|
|
37
|
+
"credentialHash" varchar,
|
|
38
|
+
"parentCredentialHash" varchar,
|
|
39
|
+
"originalCredential" varchar,
|
|
40
|
+
"sharePurpose" varchar,
|
|
41
|
+
"description" varchar NOT NULL,
|
|
42
|
+
"data" varchar,
|
|
43
|
+
"diagnosticData" varchar,
|
|
44
|
+
"created_at" datetime NOT NULL DEFAULT (datetime('now')),
|
|
45
|
+
"last_updated_at" datetime NOT NULL DEFAULT (datetime('now')))`);
|
|
20
46
|
});
|
|
21
47
|
}
|
|
22
48
|
down(queryRunner) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1701634819487-CreateAuditEvents.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1701634819487-CreateAuditEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACE,SAAI,GAAG,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"1701634819487-CreateAuditEvents.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1701634819487-CreateAuditEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACE,SAAI,GAAG,gCAAgC,CAAA;IAqCzC,CAAC;IAnCc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;+EA0ByE,CAC1E,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACrD,CAAC;KAAA;CACF;AAtCD,wEAsCC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { PartialAuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
-
import { NonPersistedAuditLoggingEvent } from './eventLogger';
|
|
1
|
+
import { PartialActivityLoggingEvent, PartialAuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
+
import { NonPersistedActivityLoggingEvent, NonPersistedAuditLoggingEvent } from './eventLogger';
|
|
3
3
|
export type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
|
|
4
|
+
export type FindActivityLoggingEventArgs = Array<PartialActivityLoggingEvent>;
|
|
4
5
|
export type StoreAuditEventArgs = {
|
|
5
6
|
event: NonPersistedAuditLoggingEvent;
|
|
6
7
|
};
|
|
8
|
+
export type StoreActivityEventArgs = {
|
|
9
|
+
event: NonPersistedActivityLoggingEvent;
|
|
10
|
+
};
|
|
7
11
|
export type GetAuditEventsArgs = {
|
|
8
12
|
filter?: FindAuditLoggingEventArgs;
|
|
9
13
|
};
|
|
14
|
+
export type GetActivityEventsArgs = {
|
|
15
|
+
filter?: FindActivityLoggingEventArgs;
|
|
16
|
+
};
|
|
10
17
|
//# sourceMappingURL=IAbstractEventLoggerStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../../src/types/eventLogger/IAbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"IAbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../../src/types/eventLogger/IAbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAC9F,OAAO,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAE/F,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAA;AAEvE,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,2BAA2B,CAAC,CAAA;AAE7E,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,6BAA6B,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,gCAAgC,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,yBAAyB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,4BAA4B,CAAA;CACtC,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
-
export type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id'>;
|
|
1
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
+
export type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
|
|
3
|
+
export type NonPersistedActivityLoggingEvent = Omit<ActivityLoggingEvent, 'id' | 'type'>;
|
|
3
4
|
//# sourceMappingURL=eventLogger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventLogger.d.ts","sourceRoot":"","sources":["../../../src/types/eventLogger/eventLogger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"eventLogger.d.ts","sourceRoot":"","sources":["../../../src/types/eventLogger/eventLogger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;AAClF,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,oBAAoB,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AuditEventEntity } from '../../entities/eventLogger/AuditEventEntity';
|
|
2
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
3
3
|
export declare const auditEventFrom: (event: AuditEventEntity) => AuditLoggingEvent;
|
|
4
|
+
export declare const activityEventFrom: (event: AuditEventEntity) => ActivityLoggingEvent;
|
|
4
5
|
//# sourceMappingURL=MappingUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MappingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/eventLogger/MappingUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"MappingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/eventLogger/MappingUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAIhF,eAAO,MAAM,cAAc,UAAW,gBAAgB,KAAG,iBAwBxD,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAW,gBAAgB,KAAG,oBA6B3D,CAAA"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.auditEventFrom = void 0;
|
|
3
|
+
exports.activityEventFrom = exports.auditEventFrom = void 0;
|
|
4
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
4
5
|
const FormattingUtils_1 = require("../FormattingUtils");
|
|
5
6
|
const auditEventFrom = (event) => {
|
|
6
|
-
const result = Object.assign(Object.assign({ id: event.id, description: event.description, timestamp: event.timestamp, level: event.level, correlationId: event.correlationId, actionType: event.actionType, actionSubType: event.actionSubType, initiatorType: event.initiatorType, partyAlias: event.partyAlias, partyCorrelationId: event.partyCorrelationId, partyCorrelationType: event.partyCorrelationType, subSystemType: event.subSystemType, system: event.system, systemAlias: event.systemAlias, systemCorrelationId: event.systemCorrelationId, systemCorrelationIdType: event.systemCorrelationIdType }, (event.data && { data: JSON.parse(event.data) })), (event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }));
|
|
7
|
+
const result = Object.assign(Object.assign({ id: event.id, type: ssi_types_1.LoggingEventType.AUDIT, description: event.description, timestamp: event.timestamp, level: event.level, correlationId: event.correlationId, actionType: event.actionType, actionSubType: event.actionSubType, initiatorType: event.initiatorType, partyAlias: event.partyAlias, partyCorrelationId: event.partyCorrelationId, partyCorrelationType: event.partyCorrelationType, subSystemType: event.subSystemType, system: event.system, systemAlias: event.systemAlias, systemCorrelationId: event.systemCorrelationId, systemCorrelationIdType: event.systemCorrelationIdType }, (event.data && { data: JSON.parse(event.data) })), (event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }));
|
|
7
8
|
return (0, FormattingUtils_1.replaceNullWithUndefined)(result);
|
|
8
9
|
};
|
|
9
10
|
exports.auditEventFrom = auditEventFrom;
|
|
11
|
+
const activityEventFrom = (event) => {
|
|
12
|
+
const result = Object.assign(Object.assign({ id: event.id, type: ssi_types_1.LoggingEventType.ACTIVITY, credentialType: event.credentialType, originalCredential: event.originalCredential, credentialHash: event.credentialHash, sharePurpose: event.sharePurpose, description: event.description, timestamp: event.timestamp, level: event.level, correlationId: event.correlationId, actionType: event.actionType, actionSubType: event.actionSubType, initiatorType: event.initiatorType, partyAlias: event.partyAlias, partyCorrelationId: event.partyCorrelationId, partyCorrelationType: event.partyCorrelationType, subSystemType: event.subSystemType, system: event.system, systemAlias: event.systemAlias, systemCorrelationId: event.systemCorrelationId, systemCorrelationIdType: event.systemCorrelationIdType }, (event.data && { data: JSON.parse(event.data) })), (event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }));
|
|
13
|
+
return (0, FormattingUtils_1.replaceNullWithUndefined)(result);
|
|
14
|
+
};
|
|
15
|
+
exports.activityEventFrom = activityEventFrom;
|
|
10
16
|
//# sourceMappingURL=MappingUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MappingUtils.js","sourceRoot":"","sources":["../../../src/utils/eventLogger/MappingUtils.ts"],"names":[],"mappings":";;;AAEA,wDAA6D;AAEtD,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAqB,EAAE;IAC3E,MAAM,MAAM,iCACV,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAC5C,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,EAChD,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,EAC9C,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,IACnD,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAChD,CAAC,KAAK,CAAC,cAAc,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAClF,CAAA;IAED,OAAO,IAAA,0CAAwB,EAAC,MAAM,CAAC,CAAA;AACzC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"MappingUtils.js","sourceRoot":"","sources":["../../../src/utils/eventLogger/MappingUtils.ts"],"names":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
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@sphereon/pex": "5.0.0-unstable.18",
|
|
19
19
|
"@sphereon/ssi-sdk-ext.did-utils": "0.25.0",
|
|
20
20
|
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.25.0",
|
|
21
|
-
"@sphereon/ssi-sdk.agent-config": "0.30.2-next.
|
|
22
|
-
"@sphereon/ssi-sdk.core": "0.30.2-next.
|
|
23
|
-
"@sphereon/ssi-types": "0.30.2-next.
|
|
21
|
+
"@sphereon/ssi-sdk.agent-config": "0.30.2-next.125+9e12eec7",
|
|
22
|
+
"@sphereon/ssi-sdk.core": "0.30.2-next.125+9e12eec7",
|
|
23
|
+
"@sphereon/ssi-types": "0.30.2-next.125+9e12eec7",
|
|
24
24
|
"@veramo/core": "4.2.0",
|
|
25
25
|
"@veramo/utils": "4.2.0",
|
|
26
26
|
"blakejs": "^1.2.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"Contact Store"
|
|
55
55
|
],
|
|
56
56
|
"nx": {},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "9e12eec7dd0c298204913456c65263a36119cf98"
|
|
58
58
|
}
|