@sphereon/ssi-sdk.data-store 0.17.6-unstable.18 → 0.17.6-unstable.23

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.
Files changed (83) hide show
  1. package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -0
  2. package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -0
  3. package/dist/entities/eventLogger/AuditEventEntity.js +124 -0
  4. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -0
  5. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +7 -0
  6. package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -0
  7. package/dist/eventLogger/AbstractEventLoggerStore.js +7 -0
  8. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -0
  9. package/dist/eventLogger/EventLoggerStore.d.ts +13 -0
  10. package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -0
  11. package/dist/eventLogger/EventLoggerStore.js +44 -0
  12. package/dist/eventLogger/EventLoggerStore.js.map +1 -0
  13. package/dist/index.d.ts +6 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +17 -2
  16. package/dist/index.js.map +1 -1
  17. package/dist/migrations/generic/1-CreateContacts.js +2 -2
  18. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  19. package/dist/migrations/generic/2-CreateIssuanceBranding.js +2 -2
  20. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
  21. package/dist/migrations/generic/{2-CreateContacts.d.ts → 3-CreateContacts.d.ts} +1 -1
  22. package/dist/migrations/generic/{2-CreateContacts.d.ts.map → 3-CreateContacts.d.ts.map} +1 -1
  23. package/dist/migrations/generic/{2-CreateContacts.js → 3-CreateContacts.js} +3 -3
  24. package/dist/migrations/generic/{2-CreateContacts.js.map → 3-CreateContacts.js.map} +1 -1
  25. package/dist/migrations/generic/{3-CreateStatusList.d.ts → 4-CreateStatusList.d.ts} +1 -1
  26. package/dist/migrations/generic/{3-CreateStatusList.d.ts.map → 4-CreateStatusList.d.ts.map} +1 -1
  27. package/dist/migrations/generic/{3-CreateStatusList.js → 4-CreateStatusList.js} +3 -3
  28. package/dist/migrations/generic/{3-CreateStatusList.js.map → 4-CreateStatusList.js.map} +1 -1
  29. package/dist/migrations/generic/5-CreateAuditEvents.d.ts +7 -0
  30. package/dist/migrations/generic/5-CreateAuditEvents.d.ts.map +1 -0
  31. package/dist/migrations/generic/5-CreateAuditEvents.js +78 -0
  32. package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -0
  33. package/dist/migrations/generic/index.d.ts +3 -1
  34. package/dist/migrations/generic/index.d.ts.map +1 -1
  35. package/dist/migrations/generic/index.js +13 -6
  36. package/dist/migrations/generic/index.js.map +1 -1
  37. package/dist/migrations/postgres/1659463079428-CreateContacts.js +2 -2
  38. package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
  39. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -2
  40. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  41. package/dist/migrations/postgres/1690925872592-CreateContacts.js +2 -2
  42. package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
  43. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +7 -0
  44. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +1 -0
  45. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +43 -0
  46. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -0
  47. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +7 -0
  48. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +1 -0
  49. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +29 -0
  50. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -0
  51. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -0
  52. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -0
  53. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +3 -0
  54. package/dist/types/eventLogger/IAbstractEventLoggerStore.js.map +1 -0
  55. package/dist/types/index.d.ts +1 -0
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/dist/types/index.js +1 -0
  58. package/dist/types/index.js.map +1 -1
  59. package/package.json +4 -3
  60. package/src/__tests__/eventLogger.entities.test.ts +82 -0
  61. package/src/__tests__/eventLogger.store.test.ts +140 -0
  62. package/src/entities/eventLogger/AuditEventEntity.ts +106 -0
  63. package/src/eventLogger/AbstractEventLoggerStore.ts +8 -0
  64. package/src/eventLogger/EventLoggerStore.ts +62 -0
  65. package/src/index.ts +16 -1
  66. package/src/migrations/generic/1-CreateContacts.ts +2 -2
  67. package/src/migrations/generic/2-CreateIssuanceBranding.ts +2 -2
  68. package/src/migrations/generic/{2-CreateContacts.ts → 3-CreateContacts.ts} +2 -2
  69. package/src/migrations/generic/{3-CreateStatusList.ts → 4-CreateStatusList.ts} +2 -2
  70. package/src/migrations/generic/5-CreateAuditEvents.ts +66 -0
  71. package/src/migrations/generic/index.ts +10 -3
  72. package/src/migrations/postgres/1659463079428-CreateContacts.ts +2 -2
  73. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -2
  74. package/src/migrations/postgres/1690925872592-CreateContacts.ts +2 -2
  75. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +27 -0
  76. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +13 -0
  77. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +14 -0
  78. package/src/types/index.ts +1 -1
  79. package/dist/migrations/postgres/uuid.d.ts +0 -3
  80. package/dist/migrations/postgres/uuid.d.ts.map +0 -1
  81. package/dist/migrations/postgres/uuid.js +0 -25
  82. package/dist/migrations/postgres/uuid.js.map +0 -1
  83. package/src/migrations/postgres/uuid.ts +0 -12
@@ -0,0 +1,26 @@
1
+ import { BaseEntity } from 'typeorm';
2
+ import { ActionType, InitiatorType, LogLevel, PartyCorrelationType, SubSystem, System, SystemCorrelationIdType, AuditLoggingEvent, ActionSubType } from '@sphereon/ssi-sdk.core';
3
+ export declare class AuditEventEntity extends BaseEntity {
4
+ id: string;
5
+ timestamp: Date;
6
+ level: LogLevel;
7
+ correlationId: string;
8
+ system: System;
9
+ subSystemType: SubSystem;
10
+ actionType: ActionType;
11
+ actionSubType: ActionSubType;
12
+ initiatorType: InitiatorType;
13
+ systemCorrelationIdType?: SystemCorrelationIdType;
14
+ systemCorrelationId?: string;
15
+ systemAlias?: string;
16
+ partyCorrelationType?: PartyCorrelationType;
17
+ partyCorrelationId?: string;
18
+ partyAlias?: string;
19
+ description: string;
20
+ data?: string;
21
+ diagnosticData?: string;
22
+ createdAt: Date;
23
+ lastUpdatedAt: Date;
24
+ }
25
+ export declare const auditEventEntityFrom: (args: Omit<AuditLoggingEvent, 'id'>) => AuditEventEntity;
26
+ //# sourceMappingURL=AuditEventEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAMX,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACd,MAAM,wBAAwB,CAAA;AAE/B,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,KAAK,iBAAiB,EAAE,IAAI,CAAC,KAAG,gBAsB1E,CAAA"}
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.auditEventEntityFrom = exports.AuditEventEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
15
+ let AuditEventEntity = class AuditEventEntity extends typeorm_1.BaseEntity {
16
+ };
17
+ __decorate([
18
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
19
+ __metadata("design:type", String)
20
+ ], AuditEventEntity.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.Column)({ name: 'timestamp', nullable: false, unique: false }),
23
+ __metadata("design:type", Date)
24
+ ], AuditEventEntity.prototype, "timestamp", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)('simple-enum', { name: 'level', enum: ssi_sdk_core_1.LogLevel, nullable: false, unique: false }),
27
+ __metadata("design:type", Number)
28
+ ], AuditEventEntity.prototype, "level", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'correlationId', length: 255, nullable: false, unique: false }),
31
+ __metadata("design:type", String)
32
+ ], AuditEventEntity.prototype, "correlationId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)('simple-enum', { name: 'system', enum: ssi_sdk_core_1.System, nullable: false, unique: false }),
35
+ __metadata("design:type", String)
36
+ ], AuditEventEntity.prototype, "system", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)('simple-enum', { name: 'subSystemType', enum: ssi_sdk_core_1.SubSystem, nullable: false, unique: false }),
39
+ __metadata("design:type", String)
40
+ ], AuditEventEntity.prototype, "subSystemType", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)('simple-enum', { name: 'actionType', enum: ssi_sdk_core_1.ActionType, nullable: false, unique: false }),
43
+ __metadata("design:type", String)
44
+ ], AuditEventEntity.prototype, "actionType", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ name: 'actionSubType', length: 255, nullable: false, unique: false }),
47
+ __metadata("design:type", String)
48
+ ], AuditEventEntity.prototype, "actionSubType", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)('simple-enum', { name: 'initiatorType', enum: ssi_sdk_core_1.InitiatorType, nullable: false, unique: false }),
51
+ __metadata("design:type", String)
52
+ ], AuditEventEntity.prototype, "initiatorType", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)('simple-enum', { name: 'systemCorrelationIdType', enum: ssi_sdk_core_1.SystemCorrelationIdType, nullable: true, unique: false }),
55
+ __metadata("design:type", String)
56
+ ], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'systemCorrelationId', length: 255, nullable: true, unique: false }),
59
+ __metadata("design:type", String)
60
+ ], AuditEventEntity.prototype, "systemCorrelationId", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'systemAlias', length: 255, nullable: false, unique: false }),
63
+ __metadata("design:type", String)
64
+ ], AuditEventEntity.prototype, "systemAlias", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)('simple-enum', { name: 'partyCorrelationType', enum: ssi_sdk_core_1.PartyCorrelationType, nullable: true, unique: false }),
67
+ __metadata("design:type", String)
68
+ ], AuditEventEntity.prototype, "partyCorrelationType", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'partyCorrelationId', length: 255, nullable: true, unique: false }),
71
+ __metadata("design:type", String)
72
+ ], AuditEventEntity.prototype, "partyCorrelationId", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ name: 'partyAlias', length: 255, nullable: true, unique: false }),
75
+ __metadata("design:type", String)
76
+ ], AuditEventEntity.prototype, "partyAlias", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ name: 'description', length: 255, nullable: false, unique: false }),
79
+ __metadata("design:type", String)
80
+ ], AuditEventEntity.prototype, "description", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ name: 'data', length: 255, nullable: true, unique: false }),
83
+ __metadata("design:type", String)
84
+ ], AuditEventEntity.prototype, "data", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ name: 'diagnosticData', length: 255, nullable: true, unique: false }),
87
+ __metadata("design:type", String)
88
+ ], AuditEventEntity.prototype, "diagnosticData", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
91
+ __metadata("design:type", Date)
92
+ ], AuditEventEntity.prototype, "createdAt", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
95
+ __metadata("design:type", Date)
96
+ ], AuditEventEntity.prototype, "lastUpdatedAt", void 0);
97
+ AuditEventEntity = __decorate([
98
+ (0, typeorm_1.Entity)('AuditEvents')
99
+ ], AuditEventEntity);
100
+ exports.AuditEventEntity = AuditEventEntity;
101
+ const auditEventEntityFrom = (args) => {
102
+ const auditEventEntity = new AuditEventEntity();
103
+ auditEventEntity.timestamp = args.timestamp;
104
+ auditEventEntity.level = args.level;
105
+ auditEventEntity.correlationId = args.correlationId;
106
+ auditEventEntity.system = args.system;
107
+ auditEventEntity.subSystemType = args.subSystemType;
108
+ auditEventEntity.actionType = args.actionType;
109
+ auditEventEntity.actionSubType = args.actionSubType;
110
+ auditEventEntity.initiatorType = args.initiatorType;
111
+ auditEventEntity.systemCorrelationIdType = args.systemCorrelationIdType;
112
+ auditEventEntity.systemCorrelationId = args.systemCorrelationId;
113
+ auditEventEntity.systemAlias = args.systemAlias;
114
+ auditEventEntity.partyCorrelationType = args.partyCorrelationType;
115
+ auditEventEntity.partyCorrelationId = args.partyCorrelationId;
116
+ auditEventEntity.partyAlias = args.partyAlias;
117
+ auditEventEntity.description = args.description;
118
+ auditEventEntity.partyCorrelationType = args.partyCorrelationType;
119
+ auditEventEntity.data = JSON.stringify(args.data);
120
+ auditEventEntity.diagnosticData = JSON.stringify(args.diagnosticData);
121
+ return auditEventEntity;
122
+ };
123
+ exports.auditEventEntityFrom = auditEventEntityFrom;
124
+ //# sourceMappingURL=AuditEventEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOgB;AAChB,yDAU+B;AAGxB,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA4D/C,CAAA;AA3DC;IAAC,IAAA,gCAAsB,EAAC,MA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gB,CAAC,WAAW,GAAG,IAAI,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"}
@@ -0,0 +1,7 @@
1
+ import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types';
2
+ import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
3
+ export declare abstract class AbstractEventLoggerStore {
4
+ abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
5
+ abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
6
+ }
7
+ //# sourceMappingURL=AbstractEventLoggerStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAChF"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AbstractEventLoggerStore = void 0;
4
+ class AbstractEventLoggerStore {
5
+ }
6
+ exports.AbstractEventLoggerStore = AbstractEventLoggerStore;
7
+ //# sourceMappingURL=AbstractEventLoggerStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAGA,MAAsB,wBAAwB;CAG7C;AAHD,4DAGC"}
@@ -0,0 +1,13 @@
1
+ import { DataSource } from 'typeorm';
2
+ import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
3
+ import { OrPromise } from '@sphereon/ssi-types';
4
+ import { AbstractEventLoggerStore } from './AbstractEventLoggerStore';
5
+ import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types';
6
+ export declare class EventLoggerStore extends AbstractEventLoggerStore {
7
+ private readonly dbConnection;
8
+ constructor(dbConnection: OrPromise<DataSource>);
9
+ getAuditEvents: (args?: GetAuditEventsArgs) => Promise<Array<AuditLoggingEvent>>;
10
+ storeAuditEvent: (args: StoreAuditEventArgs) => Promise<AuditLoggingEvent>;
11
+ private auditEventFrom;
12
+ }
13
+ //# sourceMappingURL=EventLoggerStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;AAClC,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AAEnE,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,UAAU,CAAA;AAIhE,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;gBAExC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,cAAc,UAAiB,kBAAkB,KAAG,QAAQ,MAAM,iBAAiB,CAAC,CAAC,CAQpF;IAED,eAAe,SAAgB,mBAAmB,KAAG,QAAQ,iBAAiB,CAAC,CAS9E;IAED,OAAO,CAAC,cAAc,CAqBrB;CACF"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.EventLoggerStore = void 0;
16
+ const debug_1 = __importDefault(require("debug"));
17
+ const AbstractEventLoggerStore_1 = require("./AbstractEventLoggerStore");
18
+ const AuditEventEntity_1 = require("../entities/eventLogger/AuditEventEntity");
19
+ const debug = (0, debug_1.default)('sphereon:ssi-sdk:event-store');
20
+ class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerStore {
21
+ constructor(dbConnection) {
22
+ super();
23
+ this.getAuditEvents = (args) => __awaiter(this, void 0, void 0, function* () {
24
+ const connection = yield this.dbConnection; // TODO apply everywhere
25
+ debug('Getting audit events', args);
26
+ const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
27
+ return result.map((event) => this.auditEventFrom(event));
28
+ });
29
+ this.storeAuditEvent = (args) => __awaiter(this, void 0, void 0, function* () {
30
+ const { event } = args;
31
+ const auditEventEntity = (0, AuditEventEntity_1.auditEventEntityFrom)(event);
32
+ const connection = yield this.dbConnection;
33
+ debug('Storing audit event', auditEventEntity);
34
+ const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(auditEventEntity);
35
+ return this.auditEventFrom(createdResult);
36
+ });
37
+ this.auditEventFrom = (event) => {
38
+ return 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) }));
39
+ };
40
+ this.dbConnection = dbConnection;
41
+ }
42
+ }
43
+ exports.EventLoggerStore = EventLoggerStore;
44
+ //# sourceMappingURL=EventLoggerStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAqC;AAIrC,yEAAmE;AACnE,+EAA+F;AAG/F,MAAM,KAAK,GAAa,IAAA,eAAK,EAAC,8BAA8B,CAAC,CAAA;AAE7D,MAAa,gBAAiB,SAAQ,mDAAwB;IAG5D,YAAY,YAAmC;QAC7C,KAAK,E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,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,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAC,CAAC,GAC9C,CAAC,KAAK,CAAC,cAAc,IAAI,EAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,EAAC,CAAC,EAChF;QACH,CAAC,CAAA;QA7CC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CA6CF;AAnDD,4CAmDC"}
package/dist/index.d.ts CHANGED
@@ -27,12 +27,16 @@ export { AbstractContactStore } from './contact/AbstractContactStore';
27
27
  export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
28
28
  export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
29
29
  export { StatusListStore } from './statusList/StatusListStore';
30
+ import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity';
31
+ export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
32
+ export { EventLoggerStore } from './eventLogger/EventLoggerStore';
30
33
  export { DataStoreMigrations } from './migrations';
31
34
  export * from './types';
32
35
  export * from './utils/contact/MappingUtils';
33
36
  export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
34
37
  export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
35
38
  export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
36
- export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
37
- export { BaseConfigEntity, ConnectionEntity, PartyEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, };
39
+ export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
40
+ export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof AuditEventEntity)[];
41
+ export { BaseConfigEntity, ConnectionEntity, PartyEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom };
38
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AA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D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAClD,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAE5C,eAAO,MAAM,wBAAwB,0OAepC,CAAA;AAED,eAAO,MAAM,iCAAiC,iMAU7C,CAAA;AAED,eAAO,MAAM,2BAA2B,4DAA4C,CAAA;AAEpF,eAAO,MAAM,4BAA4B,6BAExC,CAAA;AAID,eAAO,MAAM,iBAAiB,2fAK7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACrB,CAAA"}
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
17
+ exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
18
18
  const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
19
19
  Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
20
20
  const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
@@ -78,6 +78,13 @@ var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore"
78
78
  Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
79
79
  var StatusListStore_1 = require("./statusList/StatusListStore");
80
80
  Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
81
+ const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
82
+ Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
83
+ Object.defineProperty(exports, "auditEventEntityFrom", { enumerable: true, get: function () { return AuditEventEntity_1.auditEventEntityFrom; } });
84
+ var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
85
+ Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
86
+ var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
87
+ Object.defineProperty(exports, "EventLoggerStore", { enumerable: true, get: function () { return EventLoggerStore_1.EventLoggerStore; } });
81
88
  var migrations_1 = require("./migrations");
82
89
  Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
83
90
  __exportStar(require("./types"), exports);
@@ -110,6 +117,14 @@ exports.DataStoreIssuanceBrandingEntities = [
110
117
  IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
111
118
  ];
112
119
  exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
120
+ exports.DataStoreEventLoggerEntities = [
121
+ AuditEventEntity_1.AuditEventEntity
122
+ ];
113
123
  // All entities combined if a party wants to enable them all at once
114
- exports.DataStoreEntities = [...exports.DataStoreContactEntities, ...exports.DataStoreIssuanceBrandingEntities, ...exports.DataStoreStatusListEntities];
124
+ exports.DataStoreEntities = [
125
+ ...exports.DataStoreContactEntities,
126
+ ...exports.DataStoreIssuanceBrandingEntities,
127
+ ...exports.DataStoreStatusListEntities,
128
+ ...exports.DataStoreEventLoggerEntities
129
+ ];
115
130
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAsEpE,iGAtEO,mCAAgB,OAsEP;AArElB,mGAA+F;AAiF7F,yGAjFO,mDAAwB,OAiFP;AAhF1B,4EAAwE;AACxE,0EAAsE;AAoEpE,iGApEO,mCAAgB,OAoEP;AAnElB,gEAA4D;AAoE1D,4FApEO,yBAAW,OAoEP;AAnEb,gGAA4F;AAoE1F,4GApEO,yDAA2B,OAoEP;AAnE7B,gFAA4E;AAoE1E,oGApEO,yCAAmB,OAoEP;AAnErB,sEAAkE;AAoEhE,+FApEO,+BAAc,OAoEP;AAnEhB,8FAA0F;AAoExF,2GApEO,uDAA0B,OAoEP;AAnE5B,8EAA0E;AAoExE,mGApEO,uCAAkB,OAoEP;AAnEpB,uGAAmI;AAoEjI,2GApEO,uDAA0B,OAoEP;AAU1B,+GA9EmC,2DAA8B,OA8EnC;AA7EhC,mGAA6H;AAoE3H,yGApEO,mDAAwB,OAoEP;AAUxB,6GA9EiC,uDA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;AAEY,QAAA,iCAAiC,GAAG;IAC/C,uDAA0B;IAC1B,mDAAwB;IACxB,6CAAqB;IACrB,6CAAqB;IACrB,mDAAwB;IACxB,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA;AAEY,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEvE,QAAA,4BAA4B,GAAG;IAC1C,mCAAgB;CACjB,CAAA;AAGD,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;CAChC,CAAA"}
@@ -43,7 +43,7 @@ class CreateContacts1659463079429 {
43
43
  return;
44
44
  }
45
45
  default:
46
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
46
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
47
47
  }
48
48
  });
49
49
  }
@@ -69,7 +69,7 @@ class CreateContacts1659463079429 {
69
69
  return;
70
70
  }
71
71
  default:
72
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
72
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
73
73
  }
74
74
  });
75
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"1-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4FAAsF;AACtF,0FAAoF;AAEpF,MAAM,KAAK,GAAmB,IAAA,eAAK,EA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I,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAgC,IAAI,2DAA2B,EAAE,CAAA;oBAC1E,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,6FAA6F,MAAM,+GAA+G,CACnN,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AA1DD,kEA0DC"}
1
+ {"version":3,"file":"1-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4FAAsF;AACtF,0FAAoF;AAEpF,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAyDtC,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,qCAAqC,CAAC,CAAA;YAC5C,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAgC,IAAI,2DAA2B,EAAE,CAAA;oBAC1E,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd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
43
  return;
44
44
  }
45
45
  default:
46
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
46
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
47
47
  }
48
48
  });
49
49
  }
@@ -69,7 +69,7 @@ class CreateIssuanceBranding1659463079429 {
69
69
  return;
70
70
  }
71
71
  default:
72
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
72
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
73
73
  }
74
74
  });
75
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"2-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4GAAsG;AACtG,0GAAoG;AAEpG,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAuD9C,CAAC;IArDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,8CAA8C,CAAC,CAAA;YACrD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,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CAAC;KAAA;CACF;AAxDD,kFAwDC"}
1
+ {"version":3,"file":"2-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4GAAsG;AACtG,0GAAoG;AAEpG,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAuD9C,CAAC;IArDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,8CAA8C,CAAC,CAAA;YACrD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,KAAK,CAAC,+CAA+C,CAAC,CAAA;YACtD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAwC,IAAI,2EAAmC,EAAE,CAAA;oBAC1F,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AAxDD,kFAwDC"}
@@ -4,4 +4,4 @@ export declare class CreateContacts1690925872318 implements MigrationInterface {
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=2-CreateContacts.d.ts.map
7
+ //# sourceMappingURL=3-CreateContacts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"2-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA2B3D"}
1
+ {"version":3,"file":"3-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA2B3D"}
@@ -43,7 +43,7 @@ class CreateContacts1690925872318 {
43
43
  return;
44
44
  }
45
45
  default:
46
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
46
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
47
47
  }
48
48
  });
49
49
  }
@@ -69,10 +69,10 @@ class CreateContacts1690925872318 {
69
69
  return;
70
70
  }
71
71
  default:
72
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
72
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
73
73
  }
74
74
  });
75
75
  }
76
76
  }
77
77
  exports.CreateContacts1690925872318 = CreateContacts1690925872318;
78
- //# sourceMappingURL=2-CreateContacts.js.map
78
+ //# sourceMappingURL=3-CreateContacts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"2-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateContacts.ts"],"names":[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AA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AA1DD,kEA0DC"}
@@ -4,4 +4,4 @@ export declare class CreateStatusList1693866470000 implements MigrationInterface
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=3-CreateStatusList.d.ts.map
7
+ //# sourceMappingURL=4-CreateStatusList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"3-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
1
+ {"version":3,"file":"4-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/4-CreateStatusList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
@@ -40,7 +40,7 @@ class CreateStatusList1693866470000 {
40
40
  return up;
41
41
  }
42
42
  else {
43
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
43
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
44
44
  }
45
45
  });
46
46
  }
@@ -63,10 +63,10 @@ class CreateStatusList1693866470000 {
63
63
  return down;
64
64
  }
65
65
  else {
66
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
66
+ return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
67
67
  }
68
68
  });
69
69
  }
70
70
  }
71
71
  exports.CreateStatusList1693866470000 = CreateStatusList1693866470000;
72
- //# sourceMappingURL=3-CreateStatusList.js.map
72
+ //# sourceMappingURL=4-CreateStatusList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"3-CreateStatusList.js","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,+HAA0G;AAC1G,8FAAwF;AAExF,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,6BAA6B;IAA1C;QACE,SAAI,GAAG,+BAA+B,CAAA;IA6CxC,CAAC;IA3Cc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,8CAA8C,CAAC,CAAA;YACrD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,8EAA6B,EAAE,CAAA;gBAC/C,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;gBACpC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,EAAE,CAAA;aACV;iBAAM,IAAI,MAAM,K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,CAAA;YACtD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,+DAA6B,EAAE,CAAA;gBAC/C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,cAAc,IAAI,MAAM,KAAK,MAAM,EAAE;gBAChF,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,+DAA6B,EAAE,CAAA;gBAC/C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM;gBACL,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACF;QACH,CAAC;KAAA;CACF;AA9CD,sEA8CC"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateAuditEvents1701635835330 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=5-CreateAuditEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"5-CreateAuditEvents.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/5-CreateAuditEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,8BAA+B,YAAW,kBAAkB;IACvE,IAAI,EAAE,MAAM,CAAmC;IAElC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CA2B3D"}