@sphereon/ssi-sdk.data-store 0.24.1-unstable.172 → 0.24.1-unstable.175
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/dist/migrations/postgres/1690925872592-CreateContacts.js +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.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/1690925872592-CreateContacts.ts +1 -1
|
@@ -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,Q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,cAAc,CAAC,CAAA;IAErE,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAtBY,QAAA,oBAAoB,wBAsBhC"}
|
|
@@ -58,7 +58,7 @@ class CreateContacts1690925872592 {
|
|
|
58
58
|
yield queryRunner.query(`ALTER TABLE "Identity" RENAME CONSTRAINT "UQ_Identity_Alias" TO "UQ_Identity_alias"`);
|
|
59
59
|
yield queryRunner.query(`INSERT INTO "BaseConfig"("id", "identifier", "redirect_url", "session_id", "client_id", "client_secret", "scopes", "issuer", "dangerously_allow_insecure_http_requests", "client_auth_method", "type", "connection_id") SELECT "id", "identifier", "redirect_url", "session_id", "client_id", "client_secret", "scopes", "issuer", "dangerously_allow_insecure_http_requests", "client_auth_method", "type", "connectionId" FROM "BaseConfigEntity"`);
|
|
60
60
|
yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
|
|
61
|
-
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL'
|
|
61
|
+
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL' 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`);
|
|
62
62
|
yield queryRunner.query(`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`);
|
|
63
63
|
yield queryRunner.query(`INSERT INTO "Party"(id, uri, created_at, last_updated_at, party_type_id) SELECT id, uri, created_at, last_updated_at, '3875c12e-fdaa-4ef6-a340-c936e054b627' FROM "Contact"`);
|
|
64
64
|
yield queryRunner.query(`INSERT INTO "BaseContact"(id, legal_name, display_name, party_id, created_at, last_updated_at, type) SELECT id, name, alias, id, created_at, last_updated_at, 'Organization' FROM "Contact"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAyJtC,CAAC;IAvJc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAA;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAA;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAA;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAA;YAC9G,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,CAAC,KAAK,CACrB,6eAA6e,CAC9e,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yFAAyF,CAAC,CAAA;YAClH,MAAM,WAAW,CAAC,KAAK,CACrB,0kBAA0kB,CAC3kB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;YACxF,MAAM,WAAW,CAAC,KAAK,CACrB,iSAAiS,CAClS,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,uGAAuG,CAAC,CAAA;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CAAC,wHAAwH,CAAC,CAAA;YACjJ,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAA;YAC9G,MAAM,WAAW,CAAC,KAAK,CACrB,qbAAqb,CACtb,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACxD,MAAM,WAAW,CAAC,KAAK,CACrB
|
|
1
|
+
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAyJtC,CAAC;IAvJc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAA;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAA;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAA;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAA;YAC9G,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,CAAC,KAAK,CACrB,6eAA6e,CAC9e,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yFAAyF,CAAC,CAAA;YAClH,MAAM,WAAW,CAAC,KAAK,CACrB,0kBAA0kB,CAC3kB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;YACxF,MAAM,WAAW,CAAC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ACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,uLAAuL,CACxL,CAAA;YAED,MAAM,WAAW,CAAC,KAAK,CACrB,uTAAuT,CACxT,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,8WAA8W,CAC/W,CAAA;QACH,CAAC;KAAA;CACF;AA1JD,kEA0JC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.24.1-unstable.
|
|
3
|
+
"version": "0.24.1-unstable.175+74a89943",
|
|
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-unstable.
|
|
19
|
-
"@sphereon/ssi-types": "0.24.1-unstable.
|
|
18
|
+
"@sphereon/ssi-sdk.core": "0.24.1-unstable.175+74a89943",
|
|
19
|
+
"@sphereon/ssi-types": "0.24.1-unstable.175+74a89943",
|
|
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": "74a89943e5623fb7fe5ee2dc570ea81956cb6147"
|
|
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')
|
|
@@ -87,7 +87,7 @@ export class CreateContacts1690925872592 implements MigrationInterface {
|
|
|
87
87
|
)
|
|
88
88
|
await queryRunner.query(`DROP TABLE "BaseConfigEntity"`)
|
|
89
89
|
await queryRunner.query(
|
|
90
|
-
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL'
|
|
90
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL' 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
|
91
91
|
)
|
|
92
92
|
await queryRunner.query(
|
|
93
93
|
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|