@sphereon/ssi-sdk.data-store 0.24.1-next.42 → 0.24.1-unstable.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/LICENSE +1 -1
  2. package/dist/entities/eventLogger/AuditEventEntity.d.ts +2 -1
  3. package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
  4. package/dist/entities/eventLogger/AuditEventEntity.js +7 -6
  5. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  6. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts +14 -0
  7. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts.map +1 -0
  8. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +74 -0
  9. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +1 -0
  10. package/dist/index.d.ts +8 -3
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +13 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts +7 -0
  15. package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts.map +1 -0
  16. package/dist/migrations/generic/10-CreatePresentationDefinitions.js +78 -0
  17. package/dist/migrations/generic/10-CreatePresentationDefinitions.js.map +1 -0
  18. package/dist/migrations/generic/index.d.ts +2 -0
  19. package/dist/migrations/generic/index.d.ts.map +1 -1
  20. package/dist/migrations/generic/index.js +4 -1
  21. package/dist/migrations/generic/index.js.map +1 -1
  22. package/dist/migrations/index.d.ts +1 -1
  23. package/dist/migrations/index.d.ts.map +1 -1
  24. package/dist/migrations/index.js +2 -1
  25. package/dist/migrations/index.js.map +1 -1
  26. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts +7 -0
  27. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts.map +1 -0
  28. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +41 -0
  29. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +1 -0
  30. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts +7 -0
  31. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts.map +1 -0
  32. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +38 -0
  33. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +1 -0
  34. package/dist/presentationDefinition/AbstractPDStore.d.ts +12 -0
  35. package/dist/presentationDefinition/AbstractPDStore.d.ts.map +1 -0
  36. package/dist/presentationDefinition/AbstractPDStore.js +7 -0
  37. package/dist/presentationDefinition/AbstractPDStore.js.map +1 -0
  38. package/dist/presentationDefinition/PDStore.d.ts +19 -0
  39. package/dist/presentationDefinition/PDStore.d.ts.map +1 -0
  40. package/dist/presentationDefinition/PDStore.js +152 -0
  41. package/dist/presentationDefinition/PDStore.js.map +1 -0
  42. package/dist/types/index.d.ts +2 -0
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +2 -0
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/presentationDefinition/IAbstractPDStore.d.ts +17 -0
  47. package/dist/types/presentationDefinition/IAbstractPDStore.d.ts.map +1 -0
  48. package/dist/types/presentationDefinition/IAbstractPDStore.js +3 -0
  49. package/dist/types/presentationDefinition/IAbstractPDStore.js.map +1 -0
  50. package/dist/types/presentationDefinition/presentationDefinition.d.ts +16 -0
  51. package/dist/types/presentationDefinition/presentationDefinition.d.ts.map +1 -0
  52. package/dist/types/presentationDefinition/presentationDefinition.js +3 -0
  53. package/dist/types/presentationDefinition/presentationDefinition.js.map +1 -0
  54. package/dist/utils/presentationDefinition/MappingUtils.d.ts +6 -0
  55. package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +1 -0
  56. package/dist/utils/presentationDefinition/MappingUtils.js +48 -0
  57. package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -0
  58. package/package.json +7 -4
  59. package/src/__tests__/eventLogger.entities.test.ts +2 -1
  60. package/src/__tests__/eventLogger.store.test.ts +2 -10
  61. package/src/__tests__/pd-manager.entities.test.ts +71 -0
  62. package/src/__tests__/pd-manager.store.test.ts +191 -0
  63. package/src/entities/eventLogger/AuditEventEntity.ts +2 -10
  64. package/src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts +43 -0
  65. package/src/index.ts +10 -0
  66. package/src/migrations/generic/10-CreatePresentationDefinitions.ts +66 -0
  67. package/src/migrations/generic/index.ts +3 -0
  68. package/src/migrations/index.ts +1 -0
  69. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +3 -3
  70. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +25 -0
  71. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +24 -0
  72. package/src/presentationDefinition/AbstractPDStore.ts +20 -0
  73. package/src/presentationDefinition/PDStore.ts +185 -0
  74. package/src/types/index.ts +2 -0
  75. package/src/types/presentationDefinition/IAbstractPDStore.ts +25 -0
  76. package/src/types/presentationDefinition/presentationDefinition.ts +17 -0
  77. package/src/utils/contact/MappingUtils.ts +1 -1
  78. package/src/utils/presentationDefinition/MappingUtils.ts +52 -0
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2022 Sphereon BV
189
+ Copyright [2024] [Sphereon International B.V.]
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,5 +1,6 @@
1
+ import { ActionSubType, ActionType, InitiatorType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
1
2
  import { BaseEntity } from 'typeorm';
2
- import { ActionType, InitiatorType, LogLevel, PartyCorrelationType, SubSystem, System, SystemCorrelationIdType, ActionSubType } from '@sphereon/ssi-sdk.core';
3
+ import { PartyCorrelationType } from '@sphereon/ssi-sdk.core';
3
4
  import { NonPersistedAuditLoggingEvent } from '../../types';
4
5
  export declare class AuditEventEntity extends BaseEntity {
5
6
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAChH,OAAO,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,aAAa,EACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAE3D,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,SAAS,EAAG,IAAI,CAAA;IAGhB,KAAK,EAAG,QAAQ,CAAA;IAGhB,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAGf,aAAa,EAAG,SAAS,CAAA;IAGzB,UAAU,EAAG,UAAU,CAAA;IAGvB,aAAa,EAAG,aAAa,CAAA;IAG7B,aAAa,EAAG,aAAa,CAAA;IAG7B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IAGjD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IAG3C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAG3B,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAG,MAAM,CAAA;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,SAAU,6BAA6B,KAAG,gBAsB1E,CAAA"}
1
+ {"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AACpI,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAE3D,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,SAAS,EAAG,IAAI,CAAA;IAGhB,KAAK,EAAG,QAAQ,CAAA;IAGhB,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAGf,aAAa,EAAG,SAAS,CAAA;IAGzB,UAAU,EAAG,UAAU,CAAA;IAGvB,aAAa,EAAG,aAAa,CAAA;IAG7B,aAAa,EAAG,aAAa,CAAA;IAG7B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IAGjD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IAG3C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAG3B,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAG,MAAM,CAAA;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;CACrB;AAED,eAAO,MAAM,oBAAoB,SAAU,6BAA6B,KAAG,gBAsB1E,CAAA"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.auditEventEntityFrom = exports.AuditEventEntity = void 0;
13
+ const ssi_types_1 = require("@sphereon/ssi-types");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
15
16
  let AuditEventEntity = class AuditEventEntity extends typeorm_1.BaseEntity {
@@ -24,7 +25,7 @@ __decorate([
24
25
  __metadata("design:type", Date)
25
26
  ], AuditEventEntity.prototype, "timestamp", void 0);
26
27
  __decorate([
27
- (0, typeorm_1.Column)('simple-enum', { name: 'level', enum: ssi_sdk_core_1.LogLevel, nullable: false, unique: false }),
28
+ (0, typeorm_1.Column)('simple-enum', { name: 'level', enum: ssi_types_1.LogLevel, nullable: false, unique: false }),
28
29
  __metadata("design:type", Number)
29
30
  ], AuditEventEntity.prototype, "level", void 0);
30
31
  __decorate([
@@ -32,15 +33,15 @@ __decorate([
32
33
  __metadata("design:type", String)
33
34
  ], AuditEventEntity.prototype, "correlationId", void 0);
34
35
  __decorate([
35
- (0, typeorm_1.Column)('simple-enum', { name: 'system', enum: ssi_sdk_core_1.System, nullable: false, unique: false }),
36
+ (0, typeorm_1.Column)('simple-enum', { name: 'system', enum: ssi_types_1.System, nullable: false, unique: false }),
36
37
  __metadata("design:type", String)
37
38
  ], AuditEventEntity.prototype, "system", void 0);
38
39
  __decorate([
39
- (0, typeorm_1.Column)('simple-enum', { name: 'subSystemType', enum: ssi_sdk_core_1.SubSystem, nullable: false, unique: false }),
40
+ (0, typeorm_1.Column)('simple-enum', { name: 'subSystemType', enum: ssi_types_1.SubSystem, nullable: false, unique: false }),
40
41
  __metadata("design:type", String)
41
42
  ], AuditEventEntity.prototype, "subSystemType", void 0);
42
43
  __decorate([
43
- (0, typeorm_1.Column)('simple-enum', { name: 'actionType', enum: ssi_sdk_core_1.ActionType, nullable: false, unique: false }),
44
+ (0, typeorm_1.Column)('simple-enum', { name: 'actionType', enum: ssi_types_1.ActionType, nullable: false, unique: false }),
44
45
  __metadata("design:type", String)
45
46
  ], AuditEventEntity.prototype, "actionType", void 0);
46
47
  __decorate([
@@ -48,11 +49,11 @@ __decorate([
48
49
  __metadata("design:type", String)
49
50
  ], AuditEventEntity.prototype, "actionSubType", void 0);
50
51
  __decorate([
51
- (0, typeorm_1.Column)('simple-enum', { name: 'initiatorType', enum: ssi_sdk_core_1.InitiatorType, nullable: false, unique: false }),
52
+ (0, typeorm_1.Column)('simple-enum', { name: 'initiatorType', enum: ssi_types_1.InitiatorType, nullable: false, unique: false }),
52
53
  __metadata("design:type", String)
53
54
  ], AuditEventEntity.prototype, "initiatorType", void 0);
54
55
  __decorate([
55
- (0, typeorm_1.Column)('simple-enum', { name: 'systemCorrelationIdType', enum: ssi_sdk_core_1.SystemCorrelationIdType, nullable: true, unique: false }),
56
+ (0, typeorm_1.Column)('simple-enum', { name: 'systemCorrelationIdType', enum: ssi_types_1.SystemCorrelationIdType, nullable: true, unique: false }),
56
57
  __metadata("design:type", String)
57
58
  ], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
58
59
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgH;AAChH,yDAS+B;AAIxB,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA4D/C,CAAA;AA5DY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACpB;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;8BAClD,IAAI;mDAAA;AAGhB;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;+CACzE;AAGh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mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;IAC/D,gBAAgB,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,14 @@
1
+ import { BaseEntity } from 'typeorm';
2
+ export declare class PresentationDefinitionItemEntity extends BaseEntity {
3
+ id: string;
4
+ definitionId: string;
5
+ version: string;
6
+ tenantId?: string;
7
+ purpose?: string;
8
+ name?: string;
9
+ definitionPayload: string;
10
+ createdAt: Date;
11
+ lastUpdatedAt: Date;
12
+ updateUpdatedDate(): void;
13
+ }
14
+ //# sourceMappingURL=PresentationDefinitionItemEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationDefinitionItemEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiH,MAAM,SAAS,CAAA;AAGnJ,qBAEa,gCAAiC,SAAQ,UAAU;IAE9D,EAAE,EAAG,MAAM,CAAA;IAIX,YAAY,EAAG,MAAM,CAAA;IAIrB,OAAO,EAAG,MAAM,CAAA;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,iBAAiB,EAAG,MAAM,CAAA;IAG1B,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;CAG1B"}
@@ -0,0 +1,74 @@
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.PresentationDefinitionItemEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const class_validator_1 = require("class-validator");
15
+ let PresentationDefinitionItemEntity = class PresentationDefinitionItemEntity extends typeorm_1.BaseEntity {
16
+ // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
17
+ updateUpdatedDate() {
18
+ this.lastUpdatedAt = new Date();
19
+ }
20
+ };
21
+ exports.PresentationDefinitionItemEntity = PresentationDefinitionItemEntity;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
24
+ __metadata("design:type", String)
25
+ ], PresentationDefinitionItemEntity.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ name: 'definition_id', length: 255, nullable: false, unique: false }),
28
+ (0, class_validator_1.IsNotEmpty)({ message: 'A blank definition id field is not allowed' }),
29
+ __metadata("design:type", String)
30
+ ], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ name: 'version', length: 255, nullable: false, unique: false }),
33
+ (0, class_validator_1.IsNotEmpty)({ message: 'A blank version field is not allowed' }),
34
+ __metadata("design:type", String)
35
+ ], PresentationDefinitionItemEntity.prototype, "version", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ name: 'tenant_id', length: 255, nullable: true, unique: false }),
38
+ __metadata("design:type", String)
39
+ ], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ name: 'purpose', length: 255, nullable: true, unique: false }),
42
+ __metadata("design:type", String)
43
+ ], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ name: 'name', length: 255, nullable: true, unique: false }),
46
+ __metadata("design:type", String)
47
+ ], PresentationDefinitionItemEntity.prototype, "name", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ name: 'definition_payload', type: 'text', nullable: false, unique: false }),
50
+ (0, class_validator_1.IsNotEmpty)({ message: 'A blank definition payload field is not allowed' }),
51
+ __metadata("design:type", String)
52
+ ], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
55
+ __metadata("design:type", Date)
56
+ ], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
59
+ __metadata("design:type", Date
60
+ // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
61
+ )
62
+ ], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.BeforeInsert)(),
65
+ (0, typeorm_1.BeforeUpdate)(),
66
+ __metadata("design:type", Function),
67
+ __metadata("design:paramtypes", []),
68
+ __metadata("design:returntype", void 0)
69
+ ], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
70
+ exports.PresentationDefinitionItemEntity = PresentationDefinitionItemEntity = __decorate([
71
+ (0, typeorm_1.Entity)('PresentationDefinitionItem'),
72
+ (0, typeorm_1.Index)(['version'], { unique: false })
73
+ ], PresentationDefinitionItemEntity);
74
+ //# sourceMappingURL=PresentationDefinitionItemEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationDefinitionItemEntity.js","sourceRoot":"","sources":["../../../src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmJ;AACnJ,qDAA4C;AAIrC,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,oBAAU;IA+B9D,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;CACF,CAAA;AArCY,4EAAgC;AAE3C;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4DACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9E,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;sEACjD;AAIrB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACxE,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;;iEAChD;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;kEACzD;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;iEACxD;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;8DACxD;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACpF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,iDAAiD,EAAE,CAAC;;2EACjD;AAG1B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC9C,IAAI;mEAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,IAAI;IAEpB,qHAAqH;;uEAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;yEAGd;2CApCU,gCAAgC;IAF5C,IAAA,gBAAM,EAAC,4BAA4B,CAAC;IACpC,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACzB,gCAAgC,CAqC5C"}
package/dist/index.d.ts CHANGED
@@ -32,20 +32,25 @@ export { StatusListStore } from './statusList/StatusListStore';
32
32
  import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity';
33
33
  import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
34
34
  import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
35
+ import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils';
36
+ import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
35
37
  import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
36
38
  export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
37
39
  export { EventLoggerStore } from './eventLogger/EventLoggerStore';
38
40
  export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
39
41
  export { MachineStateStore } from './machineState/MachineStateStore';
40
- export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, } from './migrations';
42
+ export { AbstractPDStore } from './presentationDefinition/AbstractPDStore';
43
+ export { PDStore } from './presentationDefinition/PDStore';
44
+ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, DataStorePresentationDefinitionMigrations, } from './migrations';
41
45
  export * from './types';
42
46
  export * from './utils/contact/MappingUtils';
43
47
  export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
44
48
  export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
49
+ export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
45
50
  export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
46
51
  export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
47
52
  export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
48
53
  export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
49
- export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity)[];
50
- export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity, ContactMetadataItemEntity, };
54
+ export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof PresentationDefinitionItemEntity)[];
55
+ export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity, PresentationDefinitionItemEntity, isPresentationDefinitionEqual, ContactMetadataItemEntity, };
51
56
  //# 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,qCA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AM,4BAA4B,6BAAqB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,oCAA4B,CAAA;AAE3E,eAAO,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,ysBAQ7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,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,qBAAqB,EACrB,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,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,8CAA8C,EAC9C,sBAAsB,EACtB,gCAAgC,EAChC,6BAA6B,EAC7B,yBAAyB,GAC1B,CAAA"}
package/dist/index.js CHANGED
@@ -14,8 +14,8 @@ 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.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = 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.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
18
- exports.ContactMetadataItemEntity = exports.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = void 0;
17
+ exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = 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.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStorePresentationDefinitionEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.PDStore = exports.AbstractPDStore = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
18
+ exports.ContactMetadataItemEntity = exports.isPresentationDefinitionEqual = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = void 0;
19
19
  const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
20
20
  Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
21
21
  const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
@@ -93,6 +93,10 @@ const MappingUtils_1 = require("./utils/digitalCredential/MappingUtils");
93
93
  Object.defineProperty(exports, "digitalCredentialFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialFrom; } });
94
94
  Object.defineProperty(exports, "digitalCredentialsFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialsFrom; } });
95
95
  Object.defineProperty(exports, "nonPersistedDigitalCredentialEntityFromAddArgs", { enumerable: true, get: function () { return MappingUtils_1.nonPersistedDigitalCredentialEntityFromAddArgs; } });
96
+ const MappingUtils_2 = require("./utils/presentationDefinition/MappingUtils");
97
+ Object.defineProperty(exports, "isPresentationDefinitionEqual", { enumerable: true, get: function () { return MappingUtils_2.isPresentationDefinitionEqual; } });
98
+ const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
99
+ Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
96
100
  const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
97
101
  Object.defineProperty(exports, "ContactMetadataItemEntity", { enumerable: true, get: function () { return ContactMetadataItemEntity_1.ContactMetadataItemEntity; } });
98
102
  var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
@@ -103,6 +107,10 @@ var IAbstractMachineStateStore_1 = require("./machineState/IAbstractMachineState
103
107
  Object.defineProperty(exports, "IAbstractMachineStateStore", { enumerable: true, get: function () { return IAbstractMachineStateStore_1.IAbstractMachineStateStore; } });
104
108
  var MachineStateStore_1 = require("./machineState/MachineStateStore");
105
109
  Object.defineProperty(exports, "MachineStateStore", { enumerable: true, get: function () { return MachineStateStore_1.MachineStateStore; } });
110
+ var AbstractPDStore_1 = require("./presentationDefinition/AbstractPDStore");
111
+ Object.defineProperty(exports, "AbstractPDStore", { enumerable: true, get: function () { return AbstractPDStore_1.AbstractPDStore; } });
112
+ var PDStore_1 = require("./presentationDefinition/PDStore");
113
+ Object.defineProperty(exports, "PDStore", { enumerable: true, get: function () { return PDStore_1.PDStore; } });
106
114
  var migrations_1 = require("./migrations");
107
115
  Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
108
116
  Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreEventLoggerMigrations; } });
@@ -110,6 +118,7 @@ Object.defineProperty(exports, "DataStoreContactMigrations", { enumerable: true,
110
118
  Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreIssuanceBrandingMigrations; } });
111
119
  Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreStatusListMigrations; } });
112
120
  Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMachineStateMigrations; } });
121
+ Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { enumerable: true, get: function () { return migrations_1.DataStorePresentationDefinitionMigrations; } });
113
122
  __exportStar(require("./types"), exports);
114
123
  __exportStar(require("./utils/contact/MappingUtils"), exports);
115
124
  exports.DataStoreContactEntities = [
@@ -141,6 +150,7 @@ exports.DataStoreIssuanceBrandingEntities = [
141
150
  CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
142
151
  IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
143
152
  ];
153
+ exports.DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
144
154
  exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
145
155
  exports.DataStoreEventLoggerEntities = [AuditEventEntity_1.AuditEventEntity];
146
156
  exports.DataStoreDigitalCredentialEntities = [DigitalCredentialEntity_1.DigitalCredentialEntity];
@@ -153,5 +163,6 @@ exports.DataStoreEntities = [
153
163
  ...exports.DataStoreEventLoggerEntities,
154
164
  ...exports.DataStoreDigitalCredentialEntities,
155
165
  ...exports.DataStoreMachineStateEntities,
166
+ ...exports.DataStorePresentationDefinitionEntities,
156
167
  ];
157
168
  //# 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;AAuGpE,iGAvGO,mCAAgB,OAuGP;AAtGlB,mGAA+F;AAmH7F,yGAnHO,mDAAwB,OAmHP;AAlH1B,4EAAwE;AAwGtE,kGAxGO,qCAAiB,OAwGP;AAvGnB,0EAAsE;AAqGpE,iGArGO,mCAAgB,OAqGP;AApGlB,gEAA4D;AAqG1D,4FArGO,yBAAW,OAqGP;AApGb,gGAA4F;AAsG1F,4GAtGO,yDAA2B,OAsGP;AArG7B,gFAA4E;AAsG1E,oGAtGO,yCAAmB,OAsGP;AArGrB,sEAAkE;AAsGhE,+FAtGO,+BAAc,OAsGP;AArGhB,8FAA0F;AAsGxF,2GAtGO,uDAA0B,OAsGP;AArG5B,8EAA0E;AAsGxE,mGAtGO,uCAAkB,OAsGP;AArGpB,uGAAmI;AAsGjI,2GAtGO,uDAA0B,OAsGP;AAW1B,+GAjHmC,2DAA8B,OAiHnC;AAhHhC,mGAA6H;AAsG3H,yGAtGO,mDAAwB,OAsGP;AAWxB,6GAjHiC,uDAA4B,OAiHjC;AAhH9B,+GAA+I;AA2G7I,+GA3GO,+DAA8B,OA2GP;AAW9B,mHAtHuC,mEAAkC,OAsHvC;AArHpC,6FAAoH;AAqGlH,sGArGO,6CAAqB,OAqGP;AAWrB,0GAhH8B,iDAAyB,OAgH9B;AA/G3B,6FAAoH;AAqGlH,sGArGO,6CAAqB,OAqGP;AAWrB,0GAhH8B,iDAAyB,OAgH9B;AA/G3B,uGAAmI;AAyGjI,2GAzGO,uDAA0B,OAyGP;AAS1B,+GAlHmC,2DAA8B,OAkHnC;AAjHhC,2FAAiH;AAqG/G,qGArGO,2CAAoB,OAqGP;AAUpB,yGA/G6B,+CAAwB,OA+G7B;AA9G1B,2FAAiH;AAqG/G,qGArGO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CAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,yCAAmB;IACnB,iDAAuB;IACvB,6CAAqB;IACrB,qDAAyB;CAC1B,CAAA;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,uCAAuC,GAAG,CAAC,mEAAgC,CAAC,CAAA;AAE5E,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEvE,QAAA,4BAA4B,GAAG,CAAC,mCAAgB,CAAC,CAAA;AAEjD,QAAA,kCAAkC,GAAG,CAAC,iDAAuB,CAAC,CAAA;AAE9D,QAAA,6BAA6B,GAAG,CAAC,+CAAsB,CAAC,CAAA;AAErE,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;IAC/B,GAAG,0CAAkC;IACrC,GAAG,qCAA6B;IAChC,GAAG,+CAAuC;CAC3C,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=10-CreatePresentationDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"10-CreatePresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/10-CreatePresentationDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOvE,qBAAa,0CAA2C,YAAW,kBAAkB;IACnF,IAAI,SAAmD;IAE1C,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.CreatePresentationDefinitions1716533767523 = void 0;
16
+ const debug_1 = __importDefault(require("debug"));
17
+ const _1716475165345_CreatePresentationDefinitions_1 = require("../postgres/1716475165345-CreatePresentationDefinitions");
18
+ const _1716475165344_CreatePresentationDefinitions_1 = require("../sqlite/1716475165344-CreatePresentationDefinitions");
19
+ const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
20
+ class CreatePresentationDefinitions1716533767523 {
21
+ constructor() {
22
+ this.name = 'CreatePresentationDefinitionItems1716533767523';
23
+ }
24
+ up(queryRunner) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ debug('migration: creating machine state 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 _1716475165345_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165345();
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 _1716475165344_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165344();
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 machine state 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 _1716475165345_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165345();
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 _1716475165344_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165344();
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.CreatePresentationDefinitions1716533767523 = CreatePresentationDefinitions1716533767523;
78
+ //# sourceMappingURL=10-CreatePresentationDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"10-CreatePresentationDefinitions.js","sourceRoot":"","sources":["../../../src/migrations/generic/10-CreatePresentationDefinitions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,0HAAoH;AACpH,wHAAkH;AAElH,MAAM,KAAK,GAAmB,IAAA,e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,yFAA0C,EAAE,CAAA;oBACxG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;gBACR,CAAC;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC,CAAC;oBACpB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAA+C,IAAI,yFAA0C,EAAE,CAAA;oBACxG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;gBACR,CAAC;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;YACL,CAAC;QACH,CAAC;KAAA;CACF;AA1DD,gGA0DC"}
@@ -4,6 +4,7 @@ import { CreateStatusList1693866470000 } from './4-CreateStatusList';
4
4
  import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents';
5
5
  import { CreateDigitalCredential1708525189000 } from './6-CreateDigitalCredential';
6
6
  import { CreateMachineStateStore1708098041262 } from './7-CreateMachineStateStore';
7
+ import { CreatePresentationDefinitions1716533767523 } from './10-CreatePresentationDefinitions';
7
8
  /**
8
9
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
9
10
  *
@@ -17,5 +18,6 @@ export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693
17
18
  export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
18
19
  export declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
19
20
  export declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
21
+ export declare const DataStorePresentationDefinitionMigrations: (typeof CreatePresentationDefinitions1716533767523)[];
20
22
  export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
21
23
  //# 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;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAIlF;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAKtC,CAAA;AACD,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,+BAA+B,iDAAyC,CAAA;AAGrF,eAAO,MAAM,mBAAmB,wCAO/B,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;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAGlF,OAAO,EAAE,0CAA0C,EAAE,MAAM,oCAAoC,CAAA;AAE/F;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAKtC,CAAA;AACD,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,+BAA+B,iDAAyC,CAAA;AACrF,eAAO,MAAM,yCAAyC,uDAA+C,CAAA;AAGrG,eAAO,MAAM,mBAAmB,wCAQ/B,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataStoreMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
3
+ exports.DataStoreMigrations = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
4
4
  const _1_CreateContacts_1 = require("./1-CreateContacts");
5
5
  const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
6
6
  const _3_CreateContacts_1 = require("./3-CreateContacts");
@@ -10,6 +10,7 @@ const _6_CreateDigitalCredential_1 = require("./6-CreateDigitalCredential");
10
10
  const _7_CreateMachineStateStore_1 = require("./7-CreateMachineStateStore");
11
11
  const _8_CreateContacts_1 = require("./8-CreateContacts");
12
12
  const _9_CreateContacts_1 = require("./9-CreateContacts");
13
+ const _10_CreatePresentationDefinitions_1 = require("./10-CreatePresentationDefinitions");
13
14
  /**
14
15
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
15
16
  *
@@ -29,6 +30,7 @@ exports.DataStoreStatusListMigrations = [_4_CreateStatusList_1.CreateStatusList1
29
30
  exports.DataStoreEventLoggerMigrations = [_5_CreateAuditEvents_1.CreateAuditEvents1701635835330];
30
31
  exports.DataStoreDigitalCredentialMigrations = [_6_CreateDigitalCredential_1.CreateDigitalCredential1708525189000];
31
32
  exports.DataStoreMachineStateMigrations = [_7_CreateMachineStateStore_1.CreateMachineStateStore1708098041262];
33
+ exports.DataStorePresentationDefinitionMigrations = [_10_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716533767523];
32
34
  // All migrations together
33
35
  exports.DataStoreMigrations = [
34
36
  ...exports.DataStoreContactMigrations,
@@ -37,5 +39,6 @@ exports.DataStoreMigrations = [
37
39
  ...exports.DataStoreEventLoggerMigrations,
38
40
  ...exports.DataStoreDigitalCredentialMigrations,
39
41
  ...exports.DataStoreMachineStateMigrations,
42
+ ...exports.DataStorePresentationDefinitionMigrations,
40
43
  ];
41
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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;AACtE,4EAAkF;AAClF,4EAAkF;AAClF,0DAAgE;AAChE,0DAAgE;AAEhE;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG;IACxC,+CAA2B;IAC3B,+CAA2B;IAC3B,+CAA2B;IAC3B,+CAA2B;CAC5B,CAAA;AACY,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,+BAA+B,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAErF,0BAA0B;AACb,QAAA,mBAAmB,GAAG;IACjC,GAAG,kCAA0B;IAC7B,GAAG,2CAAmC;IACtC,GAAG,qCAA6B;IAChC,GAAG,sCAA8B;IACjC,GAAG,4CAAoC;IACvC,GAAG,uCAA+B;CACnC,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;AACtE,4EAAkF;AAClF,4EAAkF;AAClF,0DAAgE;AAChE,0DAAgE;AAChE,0FAA+F;AAE/F;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG;IACxC,+CAA2B;IAC3B,+CAA2B;IAC3B,+CAA2B;IAC3B,+CAA2B;CAC5B,CAAA;AACY,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,+BAA+B,GAAG,CAAC,iEAAoC,CAAC,CAAA;AACxE,QAAA,yCAAyC,GAAG,CAAC,8EAA0C,CAAC,CAAA;AAErG,0BAA0B;AACb,QAAA,mBAAmB,GAAG;IACjC,GAAG,kCAA0B;IAC7B,GAAG,2CAAmC;IACtC,GAAG,qCAA6B;IAChC,GAAG,sCAA8B;IACjC,GAAG,4CAAoC;IACvC,GAAG,uCAA+B;IAClC,GAAG,iDAAyC;CAC7C,CAAA"}
@@ -1,2 +1,2 @@
1
- export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations, DataStoreMachineStateMigrations, } from './generic';
1
+ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations, DataStoreMachineStateMigrations, DataStorePresentationDefinitionMigrations, } from './generic';
2
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,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,+BAA+B,EAC/B,yCAAyC,GAC1C,MAAM,WAAW,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = void 0;
3
+ exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = 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
6
  Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return generic_1.DataStoreEventLoggerMigrations; } });
@@ -9,4 +9,5 @@ Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerab
9
9
  Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return generic_1.DataStoreStatusListMigrations; } });
10
10
  Object.defineProperty(exports, "DataStoreDigitalCredentialMigrations", { enumerable: true, get: function () { return generic_1.DataStoreDigitalCredentialMigrations; } });
11
11
  Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return generic_1.DataStoreMachineStateMigrations; } });
12
+ Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { enumerable: true, get: function () { return generic_1.DataStorePresentationDefinitionMigrations; } });
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAQkB;AAPhB,8GAAA,mBAAmB,OAAA;AACnB,yHAAA,8BAA8B,OAAA;AAC9B,qHAAA,0BAA0B,OAAA;AAC1B,8HAAA,mCAAmC,OAAA;AACnC,wHAAA,6BAA6B,OAAA;AAC7B,+HAAA,oCAAoC,OAAA;AACpC,0HAAA,+BAA+B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCASkB;AARhB,8GAAA,mBAAmB,OAAA;AACnB,yHAAA,8BAA8B,OAAA;AAC9B,qHAAA,0BAA0B,OAAA;AAC1B,8HAAA,mCAAmC,OAAA;AACnC,wHAAA,6BAA6B,OAAA;AAC7B,+HAAA,oCAAoC,OAAA;AACpC,0HAAA,+BAA+B,OAAA;AAC/B,oIAAA,yCAAyC,OAAA"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreatePresentationDefinitions1716475165345 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1716475165345-CreatePresentationDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1716475165345-CreatePresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,0CAA2C,YAAW,kBAAkB;IACnF,IAAI,SAA+C;IAEtC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
@@ -0,0 +1,41 @@
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.CreatePresentationDefinitions1716475165345 = void 0;
13
+ class CreatePresentationDefinitions1716475165345 {
14
+ constructor() {
15
+ this.name = 'CreatePresentationDefinitions1716475165345';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`
20
+ CREATE TABLE "PresentationDefinitionItem" (
21
+ "id" uuid NOT NULL DEFAULT uuid_generate_v4(),
22
+ "tenant_id" TEXT,
23
+ "definition_id" TEXT NOT NULL,
24
+ "name" TEXT,
25
+ "version" TEXT NOT NULL,
26
+ "purpose" TEXT,
27
+ "definition_payload" TEXT NOT NULL,
28
+ "created_at" TIMESTAMP NOT NULL DEFAULT now(),
29
+ "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(),
30
+ CONSTRAINT "PK_PresentationDefinitionItem_id" PRIMARY KEY ("id"))
31
+ `);
32
+ });
33
+ }
34
+ down(queryRunner) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ yield queryRunner.query(`DROP TABLE "PresentationDefinitionItem"`);
37
+ });
38
+ }
39
+ }
40
+ exports.CreatePresentationDefinitions1716475165345 = CreatePresentationDefinitions1716475165345;
41
+ //# sourceMappingURL=1716475165345-CreatePresentationDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1716475165345-CreatePresentationDefinitions.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0CAA0C;IAAvD;QACE,SAAI,GAAG,4CAA4C,CAAA;IAqBrD,CAAC;IAnBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;2CAYe,CAAC,CAAA;QAC1C,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;QACpE,CAAC;KAAA;CACF;AAtBD,gGAsBC"}