@sphereon/ssi-sdk.data-store 0.17.6-unstable.8 → 0.18.0

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 (105) hide show
  1. package/README.md +5 -0
  2. package/dist/entities/eventLogger/AuditEventEntity.d.ts +27 -0
  3. package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -0
  4. package/dist/entities/eventLogger/AuditEventEntity.js +124 -0
  5. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -0
  6. package/dist/entities/statusList2021/StatusList2021Entity.d.ts +2 -2
  7. package/dist/entities/statusList2021/StatusList2021Entity.d.ts.map +1 -1
  8. package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -1
  9. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +7 -0
  10. package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -0
  11. package/dist/eventLogger/AbstractEventLoggerStore.js +7 -0
  12. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -0
  13. package/dist/eventLogger/EventLoggerStore.d.ts +13 -0
  14. package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -0
  15. package/dist/eventLogger/EventLoggerStore.js +44 -0
  16. package/dist/eventLogger/EventLoggerStore.js.map +1 -0
  17. package/dist/index.d.ts +7 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +15 -3
  20. package/dist/index.js.map +1 -1
  21. package/dist/migrations/generic/1-CreateContacts.js +2 -2
  22. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  23. package/dist/migrations/generic/2-CreateIssuanceBranding.js +2 -2
  24. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
  25. package/dist/migrations/generic/{2-CreateContacts.d.ts → 3-CreateContacts.d.ts} +1 -1
  26. package/dist/migrations/generic/{2-CreateContacts.d.ts.map → 3-CreateContacts.d.ts.map} +1 -1
  27. package/dist/migrations/generic/{2-CreateContacts.js → 3-CreateContacts.js} +3 -3
  28. package/dist/migrations/generic/{2-CreateContacts.js.map → 3-CreateContacts.js.map} +1 -1
  29. package/dist/migrations/generic/{3-CreateStatusList.d.ts → 4-CreateStatusList.d.ts} +1 -1
  30. package/dist/migrations/generic/{3-CreateStatusList.d.ts.map → 4-CreateStatusList.d.ts.map} +1 -1
  31. package/dist/migrations/generic/{3-CreateStatusList.js → 4-CreateStatusList.js} +5 -5
  32. package/dist/migrations/generic/{3-CreateStatusList.js.map → 4-CreateStatusList.js.map} +1 -1
  33. package/dist/migrations/generic/5-CreateAuditEvents.d.ts +7 -0
  34. package/dist/migrations/generic/5-CreateAuditEvents.d.ts.map +1 -0
  35. package/dist/migrations/generic/5-CreateAuditEvents.js +78 -0
  36. package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -0
  37. package/dist/migrations/generic/index.d.ts +3 -1
  38. package/dist/migrations/generic/index.d.ts.map +1 -1
  39. package/dist/migrations/generic/index.js +13 -6
  40. package/dist/migrations/generic/index.js.map +1 -1
  41. package/dist/migrations/index.d.ts +0 -1
  42. package/dist/migrations/index.d.ts.map +1 -1
  43. package/dist/migrations/index.js +1 -3
  44. package/dist/migrations/index.js.map +1 -1
  45. package/dist/migrations/postgres/1659463079428-CreateContacts.js +2 -2
  46. package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
  47. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -2
  48. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  49. package/dist/migrations/postgres/1690925872592-CreateContacts.js +2 -2
  50. package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
  51. package/dist/migrations/postgres/{CreateStatusList1693866470001-CreateStatusList.d.ts → 1693866470001-CreateStatusList.d.ts} +1 -1
  52. package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts.map +1 -0
  53. package/dist/migrations/postgres/{CreateStatusList1693866470001-CreateStatusList.js → 1693866470001-CreateStatusList.js} +1 -1
  54. package/dist/migrations/postgres/1693866470001-CreateStatusList.js.map +1 -0
  55. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +7 -0
  56. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +1 -0
  57. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +43 -0
  58. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -0
  59. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +7 -0
  60. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +1 -0
  61. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +29 -0
  62. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -0
  63. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +10 -0
  64. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -0
  65. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +3 -0
  66. package/dist/types/eventLogger/IAbstractEventLoggerStore.js.map +1 -0
  67. package/dist/types/eventLogger/eventLogger.d.ts +3 -0
  68. package/dist/types/eventLogger/eventLogger.d.ts.map +1 -0
  69. package/dist/types/eventLogger/eventLogger.js +3 -0
  70. package/dist/types/eventLogger/eventLogger.js.map +1 -0
  71. package/dist/types/index.d.ts +2 -0
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/index.js +2 -0
  74. package/dist/types/index.js.map +1 -1
  75. package/package.json +4 -3
  76. package/src/__tests__/eventLogger.entities.test.ts +73 -0
  77. package/src/__tests__/eventLogger.store.test.ts +136 -0
  78. package/src/entities/eventLogger/AuditEventEntity.ts +99 -0
  79. package/src/entities/statusList2021/StatusList2021Entity.ts +5 -4
  80. package/src/eventLogger/AbstractEventLoggerStore.ts +7 -0
  81. package/src/eventLogger/EventLoggerStore.ts +62 -0
  82. package/src/index.ts +14 -2
  83. package/src/migrations/generic/1-CreateContacts.ts +2 -2
  84. package/src/migrations/generic/2-CreateIssuanceBranding.ts +2 -2
  85. package/src/migrations/generic/{2-CreateContacts.ts → 3-CreateContacts.ts} +2 -2
  86. package/src/migrations/generic/{3-CreateStatusList.ts → 4-CreateStatusList.ts} +3 -3
  87. package/src/migrations/generic/5-CreateAuditEvents.ts +66 -0
  88. package/src/migrations/generic/index.ts +10 -3
  89. package/src/migrations/index.ts +0 -1
  90. package/src/migrations/postgres/1659463079428-CreateContacts.ts +2 -2
  91. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -2
  92. package/src/migrations/postgres/1690925872592-CreateContacts.ts +2 -2
  93. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -0
  94. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -0
  95. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -0
  96. package/src/types/eventLogger/eventLogger.ts +3 -0
  97. package/src/types/index.ts +2 -1
  98. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +0 -1
  99. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +0 -1
  100. package/dist/migrations/postgres/uuid.d.ts +0 -3
  101. package/dist/migrations/postgres/uuid.d.ts.map +0 -1
  102. package/dist/migrations/postgres/uuid.js +0 -25
  103. package/dist/migrations/postgres/uuid.js.map +0 -1
  104. package/src/migrations/postgres/uuid.ts +0 -12
  105. /package/src/migrations/postgres/{CreateStatusList1693866470001-CreateStatusList.ts → 1693866470001-CreateStatusList.ts} +0 -0
@@ -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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"}
@@ -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"}
@@ -0,0 +1,78 @@
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.CreateAuditEvents1701635835330 = void 0;
16
+ const debug_1 = __importDefault(require("debug"));
17
+ const _1701634819487_CreateAuditEvents_1 = require("../sqlite/1701634819487-CreateAuditEvents");
18
+ const _1701634812183_CreateAuditEvents_1 = require("../postgres/1701634812183-CreateAuditEvents");
19
+ const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
20
+ class CreateAuditEvents1701635835330 {
21
+ constructor() {
22
+ this.name = 'CreateAuditEvents1701635835330';
23
+ }
24
+ up(queryRunner) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ debug('migration: creating audit events tables');
27
+ const dbType = queryRunner.connection.driver.options.type;
28
+ switch (dbType) {
29
+ case 'postgres': {
30
+ debug('using postgres migration file');
31
+ const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
32
+ yield mig.up(queryRunner);
33
+ debug('Migration statements executed');
34
+ return;
35
+ }
36
+ case 'sqlite':
37
+ case 'expo':
38
+ case 'react-native': {
39
+ debug('using sqlite/react-native migration file');
40
+ const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
41
+ yield mig.up(queryRunner);
42
+ debug('Migration statements executed');
43
+ return;
44
+ }
45
+ default:
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
+ }
48
+ });
49
+ }
50
+ down(queryRunner) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ debug('migration: reverting audit events tables');
53
+ const dbType = queryRunner.connection.driver.options.type;
54
+ switch (dbType) {
55
+ case 'postgres': {
56
+ debug('using postgres migration file');
57
+ const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
58
+ yield mig.down(queryRunner);
59
+ debug('Migration statements executed');
60
+ return;
61
+ }
62
+ case 'sqlite':
63
+ case 'expo':
64
+ case 'react-native': {
65
+ debug('using sqlite/react-native migration file');
66
+ const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
67
+ yield mig.down(queryRunner);
68
+ debug('Migration statements executed');
69
+ return;
70
+ }
71
+ default:
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
+ }
74
+ });
75
+ }
76
+ }
77
+ exports.CreateAuditEvents1701635835330 = CreateAuditEvents1701635835330;
78
+ //# sourceMappingURL=5-CreateAuditEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"5-CreateAuditEvents.js","sourceRoot":"","sources":["../../../src/migrations/generic/5-CreateAuditEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAuC;AACvC,gGAA0F;AAC1F,kGAA4F;AAE5F,MAAM,KAAK,GAAa,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAE5D,MAAa,8BAA8B;IAA3C;QACE,SAAI,GAAW,gCAAgC,CAAA;IAyDjD,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,yCAAyC,CAAC,CAAA;YAChD,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,GAAmC,IAAI,iEAA8B,EAAE,CAAA;oBAChF,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,GAAmC,IAAI,iEAA8B,EAAE,CAAA;oBAChF,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,0CAA0C,CAAC,CAAA;YACjD,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,GAAmC,IAAI,iEAA8B,EAAE,CAAA;oBAChF,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,GAAmC,IAAI,iEAA8B,EAAE,CAAA;oBAChF,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;AA1DD,wEA0DC"}
@@ -1,6 +1,7 @@
1
1
  import { CreateContacts1659463079429 } from './1-CreateContacts';
2
2
  import { CreateIssuanceBranding1659463079429 } from './2-CreateIssuanceBranding';
3
- import { CreateStatusList1693866470000 } from './3-CreateStatusList';
3
+ import { CreateStatusList1693866470000 } from './4-CreateStatusList';
4
+ import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents';
4
5
  /**
5
6
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
6
7
  *
@@ -11,5 +12,6 @@ import { CreateStatusList1693866470000 } from './3-CreateStatusList';
11
12
  export declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
12
13
  export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
13
14
  export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
15
+ export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
14
16
  export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAEhE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAEpE;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAG5E,eAAO,MAAM,mBAAmB,wCAA4G,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AAEtE;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAG9E,eAAO,MAAM,mBAAmB,wCAK/B,CAAA"}
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataStoreMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
3
+ exports.DataStoreMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
4
4
  const _1_CreateContacts_1 = require("./1-CreateContacts");
5
- const _2_CreateContacts_1 = require("./2-CreateContacts");
6
5
  const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
7
- const _3_CreateStatusList_1 = require("./3-CreateStatusList");
6
+ const _3_CreateContacts_1 = require("./3-CreateContacts");
7
+ const _4_CreateStatusList_1 = require("./4-CreateStatusList");
8
+ const _5_CreateAuditEvents_1 = require("./5-CreateAuditEvents");
8
9
  /**
9
10
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
10
11
  *
@@ -13,9 +14,15 @@ const _3_CreateStatusList_1 = require("./3-CreateStatusList");
13
14
  * @public
14
15
  */
15
16
  // Individual migrations per purpose. Allows parties to not run migrations and thus create/update tables if they are not using a particular feature (yet)
16
- exports.DataStoreContactMigrations = [_1_CreateContacts_1.CreateContacts1659463079429, _2_CreateContacts_1.CreateContacts1690925872318];
17
+ exports.DataStoreContactMigrations = [_1_CreateContacts_1.CreateContacts1659463079429, _3_CreateContacts_1.CreateContacts1690925872318];
17
18
  exports.DataStoreIssuanceBrandingMigrations = [_2_CreateIssuanceBranding_1.CreateIssuanceBranding1659463079429];
18
- exports.DataStoreStatusListMigrations = [_3_CreateStatusList_1.CreateStatusList1693866470000];
19
+ exports.DataStoreStatusListMigrations = [_4_CreateStatusList_1.CreateStatusList1693866470000];
20
+ exports.DataStoreEventLoggerMigrations = [_5_CreateAuditEvents_1.CreateAuditEvents1701635835330];
19
21
  // All migrations together
20
- exports.DataStoreMigrations = [...exports.DataStoreContactMigrations, ...exports.DataStoreIssuanceBrandingMigrations, ...exports.DataStoreStatusListMigrations];
22
+ exports.DataStoreMigrations = [
23
+ ...exports.DataStoreContactMigrations,
24
+ ...exports.DataStoreIssuanceBrandingMigrations,
25
+ ...exports.DataStoreStatusListMigrations,
26
+ ...exports.DataStoreEventLoggerMigrations,
27
+ ];
21
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0DAAgE;AAChE,0EAAgF;AAChF,8DAAoE;AAEpE;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,EAAE,+CAA2B,CAAC,CAAA;AACvF,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAE5E,0BAA0B;AACb,QAAA,mBAAmB,GAAG,CAAC,GAAG,kCAA0B,EAAE,GAAG,2CAAmC,EAAE,GAAG,qCAA6B,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAChF,0DAAgE;AAChE,8DAAoE;AACpE,gEAAsE;AAEtE;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,EAAE,+CAA2B,CAAC,CAAA;AACvF,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AAE9E,0BAA0B;AACb,QAAA,mBAAmB,GAAG;IACjC,GAAG,kCAA0B;IAC7B,GAAG,2CAAmC;IACtC,GAAG,qCAA6B;IAChC,GAAG,sCAA8B;CAClC,CAAA"}
@@ -1,3 +1,2 @@
1
1
  export { DataStoreMigrations } from './generic';
2
- export { enableUuidv4 } from './postgres/uuid';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA"}
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enableUuidv4 = exports.DataStoreMigrations = void 0;
3
+ exports.DataStoreMigrations = void 0;
4
4
  var generic_1 = require("./generic");
5
5
  Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return generic_1.DataStoreMigrations; } });
6
- var uuid_1 = require("./postgres/uuid");
7
- Object.defineProperty(exports, "enableUuidv4", { enumerable: true, get: function () { return uuid_1.enableUuidv4; } });
8
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA;AAC5B,wCAA8C;AAArC,oGAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA"}
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateContacts1659463079428 = void 0;
13
- const uuid_1 = require("./uuid");
13
+ const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
14
14
  class CreateContacts1659463079428 {
15
15
  constructor() {
16
16
  this.name = 'CreateContacts1659463079428';
17
17
  }
18
18
  up(queryRunner) {
19
19
  return __awaiter(this, void 0, void 0, function* () {
20
- yield (0, uuid_1.enableUuidv4)(queryRunner);
20
+ yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
21
21
  yield queryRunner.query(`CREATE TABLE "BaseConfigEntity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "client_id" character varying(255), "client_secret" character varying(255), "scopes" text, "issuer" character varying(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" character varying(255), "session_id" character varying(255), "type" character varying NOT NULL, "connectionId" uuid, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "PK_BaseConfigEntity_id" PRIMARY KEY ("id"))`);
22
22
  yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
23
23
  yield queryRunner.query(`CREATE TYPE "public"."CorrelationIdentifier_type_enum" AS ENUM('did', 'url')`);
@@ -1 +1 @@
1
- {"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAqC;AAErC,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA0DtC,CAAC;IAxDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;YAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,6iBAA6iB,CAC9iB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,C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KAAK,CAAC,oCAAoC,CAAC,CAAA;YAC7D,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAA;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAA;YAC1E,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;QAC1D,CAAC;KAAA;CACF;AA3DD,kEA2DC"}
1
+ {"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA0DtC,CAAC;IAxDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CACrB,6iBAA6iB,CAC9iB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,CAAC,KAAK,CACrB,qYAAqY,CACtY,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,waAAwa,CACza,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,8OAA8O,CAC/O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sVAAsV,CACvV,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CACrB,+PAA+P,CAChQ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,uLAAuL,CACxL,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,0JAA0J,CAC3J,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,iKAAiK,CAClK,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAA;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAA;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;YACtG,MAAM,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;YAClD,MAAM,WAAW,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAA;YACpE,MAAM,WAAW,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;YAChD,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACxD,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;YAC/C,MAAM,WAAW,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAA;YAC7D,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAA;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAA;YAC1E,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;QAC1D,CAAC;KAAA;CACF;AA3DD,kEA2DC"}
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateIssuanceBranding1685628974232 = void 0;
13
- const uuid_1 = require("./uuid");
13
+ const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
14
14
  class CreateIssuanceBranding1685628974232 {
15
15
  constructor() {
16
16
  this.name = 'CreateIssuanceBranding1685628974232';
17
17
  }
18
18
  up(queryRunner) {
19
19
  return __awaiter(this, void 0, void 0, function* () {
20
- yield (0, uuid_1.enableUuidv4)(queryRunner);
20
+ yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
21
21
  yield queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "width" integer NOT NULL, "height" integer NOT NULL, CONSTRAINT "PK_ImageDimensions_id" PRIMARY KEY ("id"))`);
22
22
  yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "uri" character varying(255), "dataUri" character varying(255), "mediaType" character varying(255), "alt" character varying(255), "dimensionsId" uuid, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"), CONSTRAINT "PK_ImageAttributes_id" PRIMARY KEY ("id"))`);
23
23
  yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "color" character varying(255), "imageId" uuid, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"), CONSTRAINT "PK_BackgroundAttributes_id" PRIMARY KEY ("id"))`);
@@ -1 +1 @@
1
- {"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAqC;AAErC,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAgF9C,CAAC;IA9Ec,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;YAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,4LAA4L,CAC7L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,oVAAoV,CACrV,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6OAA6O,CAC9O,CAAA;YACD,MAAM,WAAW,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AK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAA;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAA;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAA;YACjH,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAA;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,gGAAgG,CAAC,CAAA;YACzH,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAA;YACpG,MAAM,WAAW,CAAC,KAAK,CAAC,oGAAoG,CAAC,CAAA;YAC7H,MAAM,WAAW,CAAC,KAAK,CAAC,4GAA4G,CAAC,CAAA;YACrI,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAA;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AAjFD,kFAiFC"}
1
+ {"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAgF9C,CAAC;IA9Ec,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAA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AC,KAAK,CAAC,+FAA+F,CAAC,CAAA;YACxH,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,uFAAuF,CAAC,CAAA;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAA;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAA;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAA;YACjH,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAA;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,gGAAgG,CAAC,CAAA;YACzH,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAA;YACpG,MAAM,WAAW,CAAC,KAAK,CAAC,oGAAoG,CAAC,CAAA;YAC7H,MAAM,WAAW,CAAC,KAAK,CAAC,4GAA4G,CAAC,CAAA;YACrI,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAA;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AAjFD,kFAiFC"}
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateContacts1690925872592 = void 0;
13
- const uuid_1 = require("./uuid");
13
+ const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
14
14
  class CreateContacts1690925872592 {
15
15
  constructor() {
16
16
  this.name = 'CreateContacts1690925872592';
17
17
  }
18
18
  up(queryRunner) {
19
19
  return __awaiter(this, void 0, void 0, function* () {
20
- yield (0, uuid_1.enableUuidv4)(queryRunner);
20
+ yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
21
21
  yield queryRunner.query(`ALTER TABLE "CorrelationIdentifier" DROP CONSTRAINT "FK_CorrelationIdentifier_identityId"`);
22
22
  yield queryRunner.query(`ALTER TABLE "IdentityMetadata" DROP CONSTRAINT "FK_IdentityMetadata_identityId"`);
23
23
  yield queryRunner.query(`ALTER TABLE "Identity" DROP CONSTRAINT "FK_Identity_contactId"`);
@@ -1 +1 @@
1
- {"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAqC;AAErC,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IAyFtC,CAAC;IAvFc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;YAC/B,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,CAA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AwB;YACxB,MAAM,WAAW,CAAC,KAAK,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,8QAA8Q,CAC/Q,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6LAA6L,CAC9L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;QACjD,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,kCAAkC;YAClC,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QACnF,CAAC;KAAA;CACF;AA1FD,kEA0FC"}
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;IAyFtC,CAAC;IAvFc,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,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rJ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mKAAmK,CACpK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,yKAAyK,CAC1K,CAAA;YAED,wBAAwB;YACxB,MAAM,WAAW,CAAC,KAAK,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,8QAA8Q,CAC/Q,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6LAA6L,CAC9L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;QACjD,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,kCAAkC;YAClC,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QACnF,CAAC;KAAA;CACF;AA1FD,kEA0FC"}
@@ -4,4 +4,4 @@ export declare class CreateStatusList1693866470001 implements MigrationInterface
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=CreateStatusList1693866470001-CreateStatusList.d.ts.map
7
+ //# sourceMappingURL=1693866470001-CreateStatusList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1693866470001-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1693866470001-CreateStatusList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAC3D"}
@@ -29,4 +29,4 @@ class CreateStatusList1693866470001 {
29
29
  }
30
30
  }
31
31
  exports.CreateStatusList1693866470001 = CreateStatusList1693866470001;
32
- //# sourceMappingURL=CreateStatusList1693866470001-CreateStatusList.js.map
32
+ //# sourceMappingURL=1693866470001-CreateStatusList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1693866470001-CreateStatusList.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1693866470001-CreateStatusList.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACE,SAAI,GAAG,+BAA+B,CAAA;IAoBxC,CAAC;IAlBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,+VAA+V,CAChW,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAA;YAChG,MAAM,WAAW,CAAC,KAAK,CACrB,4HAA4H,CAC7H,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,qGAAqG,CAAC,CAAA;YAC9H,MAAM,WAAW,CAAC,KAAK,CACrB,6tBAA6tB,CAC9tB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mLAAmL,CACpL,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;8DAAkB,CAAC;KAAA;CAC9D;AArBD,sEAqBC"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateAuditEvents1701634812183 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1701634812183-CreateAuditEvents.d.ts.map
@@ -0,0 +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;IAiB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAU3D"}
@@ -0,0 +1,43 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateAuditEvents1701634812183 = void 0;
13
+ class CreateAuditEvents1701634812183 {
14
+ constructor() {
15
+ this.name = 'CreateAuditEvents1701634812183';
16
+ }
17
+ up(queryRunner) {
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')`);
22
+ yield queryRunner.query(`CREATE TYPE "public"."Action_type_enum" AS ENUM('create', 'read', 'update', 'delete', 'execute')`);
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 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 NOT NULL, "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"))`);
27
+ });
28
+ }
29
+ down(queryRunner) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield queryRunner.query(`DROP TABLE "AuditEvents"`);
32
+ yield queryRunner.query(`DROP TYPE "public"."Party_correlation_type_enum`);
33
+ yield queryRunner.query(`DROP TYPE "public"."System_correlation_id_type_enum`);
34
+ yield queryRunner.query(`DROP TYPE "public"."Initiator_type_enum`);
35
+ yield queryRunner.query(`DROP TYPE "public"."Action_type_enum`);
36
+ yield queryRunner.query(`DROP TYPE "public"."Subsystem_type_enum`);
37
+ yield queryRunner.query(`DROP TYPE "public"."System_enum`);
38
+ yield queryRunner.query(`DROP TYPE "public"."Level_enum`);
39
+ });
40
+ }
41
+ }
42
+ exports.CreateAuditEvents1701634812183 = CreateAuditEvents1701634812183;
43
+ //# sourceMappingURL=1701634812183-CreateAuditEvents.js.map
@@ -0,0 +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;IA6BzC,CAAC;IA3Bc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;YACxF,MAAM,WAAW,CAAC,KAAK,CACrB,kIAAkI,CACnI,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,gOAAgO,CACjO,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,6GAA6G,CAAC,CAAA;YACtI,MAAM,WAAW,CAAC,KAAK,CAAC,iGAAiG,CAAC,CAAA;YAC1H,MAAM,WAAW,CAAC,KAAK,CACrB,o2BAAo2B,CACr2B,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;YACnD,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAA;YAC1E,MAAM,WAAW,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAA;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;YAClE,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;YAC/D,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;YAClE,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC3D,CAAC;KAAA;CACF;AA9BD,wEA8BC"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateAuditEvents1701634819487 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1701634819487-CreateAuditEvents.d.ts.map
@@ -0,0 +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;IAM3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
@@ -0,0 +1,29 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateAuditEvents1701634819487 = void 0;
13
+ class CreateAuditEvents1701634819487 {
14
+ constructor() {
15
+ this.name = 'CreateAuditEvents1701634819487';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE "AuditEvents" ("id" varchar PRIMARY KEY NOT NULL, "timestamp" datetime NOT NULL, "level" varchar CHECK( "level" IN ('0','1','2','3') ) NOT NULL, "correlationId" varchar NOT NULL, "system" varchar CHECK( "system" IN ('general','kms','identity','oid4vci','credentials','web3','profile','contact') ) NOT NULL, "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') ) NOT NULL, "actionType" varchar CHECK( "actionType" IN ('create','read','update','delete','execute') ) NOT NULL, "actionSubType" varchar NOT NULL, "initiatorType" varchar CHECK( "initiatorType" IN ('user','system','external') ) NOT NULL, "systemCorrelationIdType" varchar CHECK( "systemCorrelationIdType" IN ('did','email','hostname','phone','user') ), "systemCorrelationId" varchar, "systemAlias" varchar NOT NULL, "partyCorrelationType" varchar CHECK( "partyCorrelationType" IN ('did','email','hostname','phone') ), "partyCorrelationId" varchar, "partyAlias" varchar, "description" varchar NOT NULL, "data" varchar, "diagnosticData" varchar, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')))`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`DROP TABLE "AuditEvents"`);
25
+ });
26
+ }
27
+ }
28
+ exports.CreateAuditEvents1701634819487 = CreateAuditEvents1701634819487;
29
+ //# sourceMappingURL=1701634819487-CreateAuditEvents.js.map
@@ -0,0 +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;IAWzC,CAAC;IATc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,mxCAAmxC,CACpxC,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACrD,CAAC;KAAA;CACF;AAZD,wEAYC"}
@@ -0,0 +1,10 @@
1
+ import { PartialAuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
+ import { NonPersistedAuditLoggingEvent } from './eventLogger';
3
+ export type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
4
+ export type StoreAuditEventArgs = {
5
+ event: NonPersistedAuditLoggingEvent;
6
+ };
7
+ export type GetAuditEventsArgs = {
8
+ filter?: FindAuditLoggingEventArgs;
9
+ };
10
+ //# sourceMappingURL=IAbstractEventLoggerStore.d.ts.map
@@ -0,0 +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;AACjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAA;AAEvE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,6BAA6B,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,yBAAyB,CAAA;CACnC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAbstractEventLoggerStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAbstractEventLoggerStore.js","sourceRoot":"","sources":["../../../src/types/eventLogger/IAbstractEventLoggerStore.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
+ export type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id'>;
3
+ //# sourceMappingURL=eventLogger.d.ts.map
@@ -0,0 +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;AAE1D,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=eventLogger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventLogger.js","sourceRoot":"","sources":["../../../src/types/eventLogger/eventLogger.ts"],"names":[],"mappings":""}
@@ -5,4 +5,6 @@ export * from './contact/IAbstractContactStore';
5
5
  export * from './validation/validation';
6
6
  export * from './statusList/statusList';
7
7
  export * from './statusList/IAbstractStatusListStore';
8
+ export * from './eventLogger/IAbstractEventLoggerStore';
9
+ export * from './eventLogger/eventLogger';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mBAAmB,CAAA;AACjC,cAAc,iCAAiC,CAAA;AAE/C,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uCAAuC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mBAAmB,CAAA;AACjC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,2BAA2B,CAAA"}
@@ -21,4 +21,6 @@ __exportStar(require("./contact/IAbstractContactStore"), exports);
21
21
  __exportStar(require("./validation/validation"), exports);
22
22
  __exportStar(require("./statusList/statusList"), exports);
23
23
  __exportStar(require("./statusList/IAbstractStatusListStore"), exports);
24
+ __exportStar(require("./eventLogger/IAbstractEventLoggerStore"), exports);
25
+ __exportStar(require("./eventLogger/eventLogger"), exports);
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAmD;AACnD,oFAAiE;AACjE,oDAAiC;AACjC,kEAA+C;AAE/C,0DAAuC;AACvC,0DAAuC;AACvC,wEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAmD;AACnD,oFAAiE;AACjE,oDAAiC;AACjC,kEAA+C;AAC/C,0DAAuC;AACvC,0DAAuC;AACvC,wEAAqD;AACrD,0EAAuD;AACvD,4DAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.data-store",
3
- "version": "0.17.6-unstable.8+d7c1237c",
3
+ "version": "0.18.0",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,8 @@
13
13
  "typeorm-postgres:migration:run": "pnpm run typeorm -- migration:run -c migration-postgres"
14
14
  },
15
15
  "dependencies": {
16
- "@sphereon/ssi-types": "0.17.6-unstable.8+d7c1237c",
16
+ "@sphereon/ssi-sdk.core": "0.18.0",
17
+ "@sphereon/ssi-types": "0.18.0",
17
18
  "@veramo/core": "4.2.0",
18
19
  "class-validator": "^0.14.0",
19
20
  "debug": "^4.3.4",
@@ -42,5 +43,5 @@
42
43
  "PostgreSQL",
43
44
  "Contact Store"
44
45
  ],
45
- "gitHead": "d7c1237c3c384fa6fc9d775f8f165abb6a96a40a"
46
+ "gitHead": "afad00bef1e0ce6ac1637169b2e8a3b46f287255"
46
47
  }