@sphereon/ssi-sdk.data-store 0.24.1-next.98 → 0.24.1-unstable.109
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/eventLogger/AuditEventEntity.d.ts +2 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +7 -6
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/eventLogger.entities.test.ts +2 -1
- package/src/__tests__/eventLogger.store.test.ts +2 -10
- package/src/entities/eventLogger/AuditEventEntity.ts +2 -10
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
|
|
1
2
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import {
|
|
3
|
+
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core';
|
|
3
4
|
import { NonPersistedAuditLoggingEvent } from '../../types';
|
|
4
5
|
export declare class AuditEventEntity extends BaseEntity {
|
|
5
6
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
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;AACpI,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAE3D,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,SAAS,EAAG,IAAI,CAAA;IAGhB,KAAK,EAAG,QAAQ,CAAA;IAGhB,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAGf,aAAa,EAAG,SAAS,CAAA;IAGzB,UAAU,EAAG,UAAU,CAAA;IAGvB,aAAa,EAAG,aAAa,CAAA;IAG7B,aAAa,EAAG,aAAa,CAAA;IAG7B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IAGjD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IAG3C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAG3B,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAG,MAAM,CAAA;IAGpB,IAAI,CAAC,EAAE,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,gBAsB1E,CAAA"}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.auditEventEntityFrom = exports.AuditEventEntity = void 0;
|
|
13
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
13
14
|
const typeorm_1 = require("typeorm");
|
|
14
15
|
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
15
16
|
let AuditEventEntity = class AuditEventEntity extends typeorm_1.BaseEntity {
|
|
@@ -24,7 +25,7 @@ __decorate([
|
|
|
24
25
|
__metadata("design:type", Date)
|
|
25
26
|
], AuditEventEntity.prototype, "timestamp", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'level', enum:
|
|
28
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'level', enum: ssi_types_1.LogLevel, nullable: false, unique: false }),
|
|
28
29
|
__metadata("design:type", Number)
|
|
29
30
|
], AuditEventEntity.prototype, "level", void 0);
|
|
30
31
|
__decorate([
|
|
@@ -32,15 +33,15 @@ __decorate([
|
|
|
32
33
|
__metadata("design:type", String)
|
|
33
34
|
], AuditEventEntity.prototype, "correlationId", void 0);
|
|
34
35
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'system', enum:
|
|
36
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'system', enum: ssi_types_1.System, nullable: false, unique: false }),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], AuditEventEntity.prototype, "system", void 0);
|
|
38
39
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'subSystemType', enum:
|
|
40
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'subSystemType', enum: ssi_types_1.SubSystem, nullable: false, unique: false }),
|
|
40
41
|
__metadata("design:type", String)
|
|
41
42
|
], AuditEventEntity.prototype, "subSystemType", void 0);
|
|
42
43
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'actionType', enum:
|
|
44
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'actionType', enum: ssi_types_1.ActionType, nullable: false, unique: false }),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], AuditEventEntity.prototype, "actionType", void 0);
|
|
46
47
|
__decorate([
|
|
@@ -48,11 +49,11 @@ __decorate([
|
|
|
48
49
|
__metadata("design:type", String)
|
|
49
50
|
], AuditEventEntity.prototype, "actionSubType", void 0);
|
|
50
51
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'initiatorType', enum:
|
|
52
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'initiatorType', enum: ssi_types_1.InitiatorType, nullable: false, unique: false }),
|
|
52
53
|
__metadata("design:type", String)
|
|
53
54
|
], AuditEventEntity.prototype, "initiatorType", void 0);
|
|
54
55
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)('simple-enum', { name: 'systemCorrelationIdType', enum:
|
|
56
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'systemCorrelationIdType', enum: ssi_types_1.SystemCorrelationIdType, nullable: true, unique: false }),
|
|
56
57
|
__metadata("design:type", String)
|
|
57
58
|
], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
|
|
58
59
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgH;AAChH,
|
|
1
|
+
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAoI;AACpI,qCAAgH;AAChH,yDAA6D;AAItD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA4D/C,CAAA;AA5DY,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,CAAC;8BAClD,IAAI;mDAAA;AAGhB;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,oBAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;+CACzE;AAGhB;IADC,IAAA,gB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B,wBAsBhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.24.1-
|
|
3
|
+
"version": "0.24.1-unstable.109+d24d5bdb",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@sphereon/pex": "^3.3.3",
|
|
18
|
-
"@sphereon/ssi-sdk.core": "0.24.1-
|
|
19
|
-
"@sphereon/ssi-types": "0.24.1-
|
|
18
|
+
"@sphereon/ssi-sdk.core": "0.24.1-unstable.109+d24d5bdb",
|
|
19
|
+
"@sphereon/ssi-types": "0.24.1-unstable.109+d24d5bdb",
|
|
20
20
|
"@veramo/core": "4.2.0",
|
|
21
21
|
"@veramo/utils": "4.2.0",
|
|
22
22
|
"blakejs": "^1.1.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"PostgreSQL",
|
|
48
48
|
"Contact Store"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d24d5bdba5745458a3b9e401029ee4e4d9de4c49"
|
|
51
51
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
2
|
+
import { ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
1
3
|
import { DataSource } from 'typeorm'
|
|
2
4
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
3
5
|
import { DataStoreEventLoggerMigrations } from '../migrations/generic'
|
|
4
|
-
import { ActionType, InitiatorType, LogLevel, PartyCorrelationType, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-sdk.core'
|
|
5
6
|
import { auditEventEntityFrom, AuditEventEntity } from '../entities/eventLogger/AuditEventEntity'
|
|
6
7
|
import { NonPersistedAuditLoggingEvent } from '../types'
|
|
7
8
|
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
+
import { ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
1
2
|
import { DataSource } from 'typeorm'
|
|
2
3
|
import { DataStoreEventLoggerMigrations } from '../migrations/generic'
|
|
3
4
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
4
|
-
import {
|
|
5
|
-
ActionType,
|
|
6
|
-
AuditLoggingEvent,
|
|
7
|
-
InitiatorType,
|
|
8
|
-
LogLevel,
|
|
9
|
-
PartyCorrelationType,
|
|
10
|
-
SubSystem,
|
|
11
|
-
System,
|
|
12
|
-
SystemCorrelationIdType,
|
|
13
|
-
} from '@sphereon/ssi-sdk.core'
|
|
5
|
+
import { AuditLoggingEvent, PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
14
6
|
import { EventLoggerStore } from '../eventLogger/EventLoggerStore'
|
|
15
7
|
import { GetAuditEventsArgs, NonPersistedAuditLoggingEvent } from '../types'
|
|
16
8
|
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
+
import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
1
2
|
import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
-
import {
|
|
3
|
-
ActionType,
|
|
4
|
-
InitiatorType,
|
|
5
|
-
LogLevel,
|
|
6
|
-
PartyCorrelationType,
|
|
7
|
-
SubSystem,
|
|
8
|
-
System,
|
|
9
|
-
SystemCorrelationIdType,
|
|
10
|
-
ActionSubType,
|
|
11
|
-
} from '@sphereon/ssi-sdk.core'
|
|
3
|
+
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
12
4
|
import { NonPersistedAuditLoggingEvent } from '../../types'
|
|
13
5
|
|
|
14
6
|
@Entity('AuditEvents')
|
|
@@ -6,17 +6,17 @@ export class CreateAuditEvents1701634812183 implements MigrationInterface {
|
|
|
6
6
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
7
|
await queryRunner.query(`CREATE TYPE "public"."Level_enum" AS ENUM('0', '1', '2', '3')`)
|
|
8
8
|
await queryRunner.query(
|
|
9
|
-
`CREATE TYPE "public"."System_enum" AS ENUM('general', 'kms', 'identity', 'oid4vci', 'credentials', 'web3', 'profile', 'contact')
|
|
9
|
+
`CREATE TYPE "public"."System_enum" AS ENUM('general', 'kms', 'identity', 'oid4vci', 'credentials', 'web3', 'profile', 'contact')`,
|
|
10
10
|
)
|
|
11
11
|
await queryRunner.query(
|
|
12
|
-
`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')
|
|
12
|
+
`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')`,
|
|
13
13
|
)
|
|
14
14
|
await queryRunner.query(`CREATE TYPE "public"."Action_type_enum" AS ENUM('create', 'read', 'update', 'delete', 'execute')`)
|
|
15
15
|
await queryRunner.query(`CREATE TYPE "public"."Initiator_type_enum" AS ENUM('user', 'system', 'external')`)
|
|
16
16
|
await queryRunner.query(`CREATE TYPE "public"."System_correlation_id_type_enum" AS ENUM('did', 'email', 'hostname', 'phone', 'user')`)
|
|
17
17
|
await queryRunner.query(`CREATE TYPE "public"."Party_correlation_type_enum" AS ENUM('did', 'email', 'hostname', 'phone')`)
|
|
18
18
|
await queryRunner.query(
|
|
19
|
-
`CREATE TABLE "AuditEvents" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "timestamp" TIMESTAMP NOT NULL, "level" "public"."Level_enum" NOT NULL, "correlationId" TEXT NOT NULL, "system" "public"."System_enum" NOT NULL, "subSystemType" "public"."Subsystem_type_enum" NOT NULL, "actionType" "public"."Action_type_enum" NOT NULL, "actionSubType" TEXT NOT NULL, "initiatorType" "public"."Initiator_type_enum" NOT NULL, "systemCorrelationIdType" "public"."System_correlation_id_type_enum", "systemCorrelationId" TEXT, "systemAlias" TEXT, "partyCorrelationType" "public"."Party_correlation_type_enum", "partyCorrelationId" TEXT, "partyAlias" TEXT, "description" TEXT NOT NULL, "data" TEXT, "diagnosticData" TEXT, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_AuditEvents_id" PRIMARY KEY ("id"))
|
|
19
|
+
`CREATE TABLE "AuditEvents" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "timestamp" TIMESTAMP NOT NULL, "level" "public"."Level_enum" NOT NULL, "correlationId" TEXT NOT NULL, "system" "public"."System_enum" NOT NULL, "subSystemType" "public"."Subsystem_type_enum" NOT NULL, "actionType" "public"."Action_type_enum" NOT NULL, "actionSubType" TEXT NOT NULL, "initiatorType" "public"."Initiator_type_enum" NOT NULL, "systemCorrelationIdType" "public"."System_correlation_id_type_enum", "systemCorrelationId" TEXT, "systemAlias" TEXT, "partyCorrelationType" "public"."Party_correlation_type_enum", "partyCorrelationId" TEXT, "partyAlias" TEXT, "description" TEXT NOT NULL, "data" TEXT, "diagnosticData" TEXT, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_AuditEvents_id" PRIMARY KEY ("id"))`,
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|