@sphereon/ssi-sdk.data-store 0.24.1-unstable.7 → 0.24.1-unstable.9
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 -2
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +5 -5
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/eventLogger.entities.test.ts +2 -2
- package/src/__tests__/eventLogger.store.test.ts +1 -6
- package/src/entities/eventLogger/AuditEventEntity.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LogLevel } from '@sphereon/ssi-types';
|
|
1
|
+
import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
|
|
2
2
|
import { BaseEntity } from 'typeorm';
|
|
3
|
-
import {
|
|
3
|
+
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core';
|
|
4
4
|
import { NonPersistedAuditLoggingEvent } from '../../types';
|
|
5
5
|
export declare class AuditEventEntity extends BaseEntity {
|
|
6
6
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;
|
|
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"}
|
|
@@ -33,15 +33,15 @@ __decorate([
|
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], AuditEventEntity.prototype, "correlationId", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(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 }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], AuditEventEntity.prototype, "system", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(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 }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], AuditEventEntity.prototype, "subSystemType", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(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 }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], AuditEventEntity.prototype, "actionType", void 0);
|
|
47
47
|
__decorate([
|
|
@@ -49,11 +49,11 @@ __decorate([
|
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], AuditEventEntity.prototype, "actionSubType", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
(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 }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], AuditEventEntity.prototype, "initiatorType", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(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 }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
|
|
59
59
|
__decorate([
|
|
@@ -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":["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AAI,CAAC,WAAW,CAAA;IAC/C,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAA;IACjE,gBAAgB,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAA;IAC7D,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;IAC7C,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;IAC/C,gBAAgB,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAA;IACjE,gBAAgB,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAErE,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAtBY,QAAA,oBAAoB,wBAsBhC"}
|
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.9+db95d24f",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"typeorm-postgres:migration:run": "pnpm run typeorm -- migration:run -c migration-postgres"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sphereon/ssi-sdk.core": "0.24.1-unstable.
|
|
17
|
-
"@sphereon/ssi-types": "0.24.1-unstable.
|
|
16
|
+
"@sphereon/ssi-sdk.core": "0.24.1-unstable.9+db95d24f",
|
|
17
|
+
"@sphereon/ssi-types": "0.24.1-unstable.9+db95d24f",
|
|
18
18
|
"@veramo/core": "4.2.0",
|
|
19
19
|
"@veramo/utils": "4.2.0",
|
|
20
20
|
"class-validator": "^0.14.0",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"PostgreSQL",
|
|
45
45
|
"Contact Store"
|
|
46
46
|
],
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "db95d24fac7d4b0f6500aced34d5cf7e58620be7"
|
|
48
48
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {PartyCorrelationType} from "@sphereon/ssi-sdk.core";
|
|
2
|
+
import {ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType} from '@sphereon/ssi-types'
|
|
2
3
|
import { DataSource } from 'typeorm'
|
|
3
4
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
4
5
|
import { DataStoreEventLoggerMigrations } from '../migrations/generic'
|
|
5
|
-
import { ActionType, InitiatorType, PartyCorrelationType, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-sdk.core'
|
|
6
6
|
import { auditEventEntityFrom, AuditEventEntity } from '../entities/eventLogger/AuditEventEntity'
|
|
7
7
|
import { NonPersistedAuditLoggingEvent } from '../types'
|
|
8
8
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { LogLevel } from '@sphereon/ssi-types'
|
|
1
|
+
import {ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType} from '@sphereon/ssi-types'
|
|
2
2
|
import { DataSource } from 'typeorm'
|
|
3
3
|
import { DataStoreEventLoggerMigrations } from '../migrations/generic'
|
|
4
4
|
import { DataStoreEventLoggerEntities } from '../index'
|
|
5
5
|
import {
|
|
6
|
-
ActionType,
|
|
7
6
|
AuditLoggingEvent,
|
|
8
|
-
InitiatorType,
|
|
9
7
|
PartyCorrelationType,
|
|
10
|
-
SubSystem,
|
|
11
|
-
System,
|
|
12
|
-
SystemCorrelationIdType,
|
|
13
8
|
} from '@sphereon/ssi-sdk.core'
|
|
14
9
|
import { EventLoggerStore } from '../eventLogger/EventLoggerStore'
|
|
15
10
|
import { GetAuditEventsArgs, NonPersistedAuditLoggingEvent } from '../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LogLevel } from '@sphereon/ssi-types'
|
|
1
|
+
import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types'
|
|
2
2
|
import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
3
|
-
import {
|
|
3
|
+
import { PartyCorrelationType } from '@sphereon/ssi-sdk.core'
|
|
4
4
|
import { NonPersistedAuditLoggingEvent } from '../../types'
|
|
5
5
|
|
|
6
6
|
@Entity('AuditEvents')
|