@sphereon/ssi-sdk.data-store 0.23.5-unstable.40 → 0.23.5-unstable.42

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 (115) hide show
  1. package/dist/entities/presentationDefinitions/PresentationDefinitionItemEntity.d.ts +13 -0
  2. package/dist/entities/presentationDefinitions/PresentationDefinitionItemEntity.d.ts.map +1 -0
  3. package/dist/entities/presentationDefinitions/PresentationDefinitionItemEntity.js +71 -0
  4. package/dist/entities/presentationDefinitions/PresentationDefinitionItemEntity.js.map +1 -0
  5. package/dist/index.d.ts +9 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +15 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/migrations/generic/{3-CreateStatusList.d.ts → 8-CreatePresentationDefinitions.d.ts} +2 -2
  10. package/dist/migrations/generic/8-CreatePresentationDefinitions.d.ts.map +1 -0
  11. package/dist/migrations/generic/{9-CreateContacts.js → 8-CreatePresentationDefinitions.js} +12 -12
  12. package/dist/migrations/generic/8-CreatePresentationDefinitions.js.map +1 -0
  13. package/dist/migrations/generic/index.d.ts +2 -0
  14. package/dist/migrations/generic/index.d.ts.map +1 -1
  15. package/dist/migrations/generic/index.js +4 -1
  16. package/dist/migrations/generic/index.js.map +1 -1
  17. package/dist/migrations/index.d.ts +1 -1
  18. package/dist/migrations/index.d.ts.map +1 -1
  19. package/dist/migrations/index.js +2 -1
  20. package/dist/migrations/index.js.map +1 -1
  21. package/dist/migrations/{generic/8-CreateContacts.d.ts → postgres/1716475165345-CreatePresentationDefinitions.d.ts} +2 -2
  22. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts.map +1 -0
  23. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +40 -0
  24. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +1 -0
  25. package/dist/migrations/{generic/9-CreateContacts.d.ts → sqlite/1716475165344-CreatePresentationDefinitions.d.ts} +2 -2
  26. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts.map +1 -0
  27. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +37 -0
  28. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +1 -0
  29. package/dist/pd/AbstractPDStore.d.ts +10 -0
  30. package/dist/pd/AbstractPDStore.d.ts.map +1 -0
  31. package/dist/pd/AbstractPDStore.js +7 -0
  32. package/dist/pd/AbstractPDStore.js.map +1 -0
  33. package/dist/pd/PDStore.d.ts +14 -0
  34. package/dist/pd/PDStore.d.ts.map +1 -0
  35. package/dist/pd/PDStore.js +90 -0
  36. package/dist/pd/PDStore.js.map +1 -0
  37. package/dist/types/index.d.ts +2 -0
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/types/index.js +2 -0
  40. package/dist/types/index.js.map +1 -1
  41. package/dist/types/pd/IAbstractPDStore.d.ts +14 -0
  42. package/dist/types/pd/IAbstractPDStore.d.ts.map +1 -0
  43. package/dist/types/pd/IAbstractPDStore.js +3 -0
  44. package/dist/types/pd/IAbstractPDStore.js.map +1 -0
  45. package/dist/types/pd/pd.d.ts +15 -0
  46. package/dist/types/pd/pd.d.ts.map +1 -0
  47. package/dist/types/pd/pd.js +3 -0
  48. package/dist/types/pd/pd.js.map +1 -0
  49. package/dist/utils/presentationDefinitions/MappingUtils.d.ts +6 -0
  50. package/dist/utils/presentationDefinitions/MappingUtils.d.ts.map +1 -0
  51. package/dist/utils/presentationDefinitions/MappingUtils.js +50 -0
  52. package/dist/utils/presentationDefinitions/MappingUtils.js.map +1 -0
  53. package/package.json +5 -4
  54. package/src/entities/presentationDefinitions/PresentationDefinitionItemEntity.ts +41 -0
  55. package/src/index.ts +13 -0
  56. package/src/migrations/generic/8-CreatePresentationDefinitions.ts +66 -0
  57. package/src/migrations/generic/index.ts +3 -0
  58. package/src/migrations/index.ts +1 -0
  59. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +24 -0
  60. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +23 -0
  61. package/src/pd/AbstractPDStore.ts +10 -0
  62. package/src/pd/PDStore.ts +103 -0
  63. package/src/types/index.ts +2 -0
  64. package/src/types/pd/IAbstractPDStore.ts +19 -0
  65. package/src/types/pd/pd.ts +16 -0
  66. package/src/utils/contact/MappingUtils.ts +1 -1
  67. package/src/utils/presentationDefinitions/MappingUtils.ts +54 -0
  68. package/dist/entities/contact/ContactEntity.d.ts +0 -16
  69. package/dist/entities/contact/ContactEntity.d.ts.map +0 -1
  70. package/dist/entities/contact/ContactEntity.js +0 -164
  71. package/dist/entities/contact/ContactEntity.js.map +0 -1
  72. package/dist/entities/contact/ContactMetadataItemEntity.d.ts +0 -14
  73. package/dist/entities/contact/ContactMetadataItemEntity.d.ts.map +0 -1
  74. package/dist/entities/contact/ContactMetadataItemEntity.js +0 -88
  75. package/dist/entities/contact/ContactMetadataItemEntity.js.map +0 -1
  76. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +0 -7
  77. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +0 -1
  78. package/dist/migrations/generic/1-CreateIssuanceBranding.js +0 -96
  79. package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +0 -1
  80. package/dist/migrations/generic/2-CreateContacts.d.ts +0 -7
  81. package/dist/migrations/generic/2-CreateContacts.d.ts.map +0 -1
  82. package/dist/migrations/generic/2-CreateContacts.js +0 -78
  83. package/dist/migrations/generic/2-CreateContacts.js.map +0 -1
  84. package/dist/migrations/generic/3-CreateStatusList.d.ts.map +0 -1
  85. package/dist/migrations/generic/3-CreateStatusList.js +0 -72
  86. package/dist/migrations/generic/3-CreateStatusList.js.map +0 -1
  87. package/dist/migrations/generic/8-CreateContacts.d.ts.map +0 -1
  88. package/dist/migrations/generic/8-CreateContacts.js +0 -78
  89. package/dist/migrations/generic/8-CreateContacts.js.map +0 -1
  90. package/dist/migrations/generic/9-CreateContacts.d.ts.map +0 -1
  91. package/dist/migrations/generic/9-CreateContacts.js.map +0 -1
  92. package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts +0 -7
  93. package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts.map +0 -1
  94. package/dist/migrations/postgres/1710438363001-CreateContacts.js +0 -71
  95. package/dist/migrations/postgres/1710438363001-CreateContacts.js.map +0 -1
  96. package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts +0 -7
  97. package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts.map +0 -1
  98. package/dist/migrations/postgres/1715761125001-CreateContacts.js +0 -74
  99. package/dist/migrations/postgres/1715761125001-CreateContacts.js.map +0 -1
  100. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +0 -7
  101. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +0 -1
  102. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +0 -32
  103. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +0 -1
  104. package/dist/migrations/postgres/uuid.d.ts +0 -3
  105. package/dist/migrations/postgres/uuid.d.ts.map +0 -1
  106. package/dist/migrations/postgres/uuid.js +0 -25
  107. package/dist/migrations/postgres/uuid.js.map +0 -1
  108. package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts +0 -7
  109. package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts.map +0 -1
  110. package/dist/migrations/sqlite/1710438363002-CreateContacts.js +0 -68
  111. package/dist/migrations/sqlite/1710438363002-CreateContacts.js.map +0 -1
  112. package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts +0 -7
  113. package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts.map +0 -1
  114. package/dist/migrations/sqlite/1715761125002-CreateContacts.js +0 -73
  115. package/dist/migrations/sqlite/1715761125002-CreateContacts.js.map +0 -1
@@ -0,0 +1,13 @@
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
+ definitionPayload: string;
9
+ createdAt: Date;
10
+ lastUpdatedAt: Date;
11
+ updateUpdatedDate(): void;
12
+ }
13
+ //# sourceMappingURL=PresentationDefinitionItemEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationDefinitionItemEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/presentationDefinitions/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiH,MAAM,SAAS,CAAA;AAGnJ,qBAGa,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;IAIhB,iBAAiB,EAAG,MAAM,CAAA;IAG1B,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;CAG1B"}
@@ -0,0 +1,71 @@
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: 'definitionId field must not be empty' }),
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: 'version field must not be empty' }),
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: 'definition_payload', type: 'text', nullable: false, unique: false }),
46
+ (0, class_validator_1.IsNotEmpty)({ message: 'definitionPayload field must not be empty' }),
47
+ __metadata("design:type", String)
48
+ ], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
51
+ __metadata("design:type", Date)
52
+ ], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
55
+ __metadata("design:type", Date
56
+ // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
57
+ )
58
+ ], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.BeforeInsert)(),
61
+ (0, typeorm_1.BeforeUpdate)(),
62
+ __metadata("design:type", Function),
63
+ __metadata("design:paramtypes", []),
64
+ __metadata("design:returntype", void 0)
65
+ ], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
66
+ exports.PresentationDefinitionItemEntity = PresentationDefinitionItemEntity = __decorate([
67
+ (0, typeorm_1.Entity)('PresentationDefinitionItem'),
68
+ (0, typeorm_1.Index)(['version'], { unique: false }),
69
+ (0, typeorm_1.Index)(['version'], { unique: false })
70
+ ], PresentationDefinitionItemEntity);
71
+ //# sourceMappingURL=PresentationDefinitionItemEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationDefinitionItemEntity.js","sourceRoot":"","sources":["../../../src/entities/presentationDefinitions/PresentationDefinitionItemEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmJ;AACnJ,qDAA4C;AAKrC,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,oBAAU;IA4B9D,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;CACF,CAAA;AAlCY,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,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AAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrC,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACzB,gCAAgC,CAkC5C"}
package/dist/index.d.ts CHANGED
@@ -32,19 +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/presentationDefinitions/MappingUtils';
36
+ import { PresentationDefinitionItemEntity } from './entities/presentationDefinitions/PresentationDefinitionItemEntity';
35
37
  export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
36
38
  export { EventLoggerStore } from './eventLogger/EventLoggerStore';
37
39
  export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
38
40
  export { MachineStateStore } from './machineState/MachineStateStore';
39
- export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, } from './migrations';
41
+ export { AbstractPdStore } from './pd/AbstractPDStore';
42
+ export { PDStore } from './pd/PDStore';
43
+ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, DataStorePresentationsDefinitionsMigrations } from './migrations';
40
44
  export * from './types';
41
45
  export * from './utils/contact/MappingUtils';
42
46
  export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
47
+ export declare const DataStorePresentationDefinitionItemEntities: (typeof PresentationDefinitionItemEntity)[];
43
48
  export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
49
+ export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
44
50
  export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
45
51
  export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
46
52
  export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
47
53
  export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
48
- export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity)[];
49
- 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, };
54
+ export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof 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, };
50
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @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4C,CAAA;AAEpF,eAAO,MAAM,4BAA4B,6BAAqB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,oCAA4B,CAAA;AAE3E,eAAO,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,smBAS7B,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,GAC9B,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.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = void 0;
17
+ 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.DataStorePresentationDefinitionItemEntities = exports.DataStoreContactEntities = exports.DataStorePresentationsDefinitionsMigrations = 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.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 = exports.imageDimensionsEntityFrom = 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/presentationDefinitions/MappingUtils");
97
+ Object.defineProperty(exports, "isPresentationDefinitionEqual", { enumerable: true, get: function () { return MappingUtils_2.isPresentationDefinitionEqual; } });
98
+ const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinitions/PresentationDefinitionItemEntity");
99
+ Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
96
100
  var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
97
101
  Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
98
102
  var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
@@ -101,6 +105,10 @@ var IAbstractMachineStateStore_1 = require("./machineState/IAbstractMachineState
101
105
  Object.defineProperty(exports, "IAbstractMachineStateStore", { enumerable: true, get: function () { return IAbstractMachineStateStore_1.IAbstractMachineStateStore; } });
102
106
  var MachineStateStore_1 = require("./machineState/MachineStateStore");
103
107
  Object.defineProperty(exports, "MachineStateStore", { enumerable: true, get: function () { return MachineStateStore_1.MachineStateStore; } });
108
+ var AbstractPDStore_1 = require("./pd/AbstractPDStore");
109
+ Object.defineProperty(exports, "AbstractPdStore", { enumerable: true, get: function () { return AbstractPDStore_1.AbstractPdStore; } });
110
+ var PDStore_1 = require("./pd/PDStore");
111
+ Object.defineProperty(exports, "PDStore", { enumerable: true, get: function () { return PDStore_1.PDStore; } });
104
112
  var migrations_1 = require("./migrations");
105
113
  Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
106
114
  Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreEventLoggerMigrations; } });
@@ -108,6 +116,7 @@ Object.defineProperty(exports, "DataStoreContactMigrations", { enumerable: true,
108
116
  Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreIssuanceBrandingMigrations; } });
109
117
  Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreStatusListMigrations; } });
110
118
  Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMachineStateMigrations; } });
119
+ Object.defineProperty(exports, "DataStorePresentationsDefinitionsMigrations", { enumerable: true, get: function () { return migrations_1.DataStorePresentationsDefinitionsMigrations; } });
111
120
  __exportStar(require("./types"), exports);
112
121
  __exportStar(require("./utils/contact/MappingUtils"), exports);
113
122
  exports.DataStoreContactEntities = [
@@ -127,6 +136,7 @@ exports.DataStoreContactEntities = [
127
136
  ElectronicAddressEntity_1.ElectronicAddressEntity,
128
137
  PhysicalAddressEntity_1.PhysicalAddressEntity,
129
138
  ];
139
+ exports.DataStorePresentationDefinitionItemEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
130
140
  exports.DataStoreIssuanceBrandingEntities = [
131
141
  BackgroundAttributesEntity_1.BackgroundAttributesEntity,
132
142
  CredentialBrandingEntity_1.CredentialBrandingEntity,
@@ -138,6 +148,7 @@ exports.DataStoreIssuanceBrandingEntities = [
138
148
  CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
139
149
  IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
140
150
  ];
151
+ exports.DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
141
152
  exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
142
153
  exports.DataStoreEventLoggerEntities = [AuditEventEntity_1.AuditEventEntity];
143
154
  exports.DataStoreDigitalCredentialEntities = [DigitalCredentialEntity_1.DigitalCredentialEntity];
@@ -150,5 +161,7 @@ exports.DataStoreEntities = [
150
161
  ...exports.DataStoreEventLoggerEntities,
151
162
  ...exports.DataStoreDigitalCredentialEntities,
152
163
  ...exports.DataStoreMachineStateEntities,
164
+ ...exports.DataStorePresentationDefinitionEntities,
165
+ ...exports.DataStorePresentationDefinitionItemEntities
153
166
  ];
154
167
  //# 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;AAqGpE,iGArGO,mCAAgB,OAqGP;AApGlB,mGAA+F;AAiH7F,yGAjHO,mDAAwB,OAiHP;AAhH1B,4EAAwE;AAsGtE,kGAtGO,qCAAiB,OAsGP;AArGnB,0EAAsE;AAmGpE,iGAnGO,mCAAgB,OAmGP;AAlGlB,gEAA4D;AAmG1D,4FAnGO,yBAAW,OAmGP;AAlGb,gGAA4F;AAoG1F,4GApGO,yDAA2B,OAoGP;AAnG7B,gFAA4E;AAoG1E,oGApGO,yCAAmB,OAoGP;AAnGrB,sEAAkE;AAoGhE,+FApGO,+BAAc,OAoGP;AAnGhB,8FAA0F;AAoGxF,2GApGO,uDAA0B,OAoGP;AAnG5B,8EAA0E;AAoGxE,mGApGO,uCAAkB,OAoGP;AAnGpB,uGAAmI;AAoGjI,2GApGO,uDAA0B,OAoGP;AAW1B,+GA/GmC,2DAA8B,OA+GnC;AA9GhC,mGAA6H;AAoG3H,yGApGO,mDAAwB,OAoGP;AAWxB,6GA/GiC,uDAA4B,OA+GjC;AA9G9B,+GAA+I;AAyG7I,+GAzGO,+DAA8B,OAyGP;AAW9B,mHApHuC,mEAAkC,OAoHvC;AAnHpC,6FAAoH;AAmGlH,sGAnGO,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CAA2C,OAAA;AAE7C,0CAAuB;AACvB,+DAA4C;AAE/B,QAAA,wBAAwB,GAAG;IACtC,mCAAgB;IAChB,mCAAgB;IAChB,yBAAW;IACX,+BAAc;IACd,uDAA0B;IAC1B,yDAA2B;IAC3B,yCAAmB;IACnB,uCAAkB;IAClB,iDAAuB;IACvB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,yCAAmB;IACnB,iDAAuB;IACvB,6CAAqB;CACtB,CAAA;AAEY,QAAA,2CAA2C,GAAG,CAAC,mEAAgC,CAAC,CAAA;AAEhF,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;IAC1C,GAAG,mDAA2C;CAC/C,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class CreateStatusList1693866470000 implements MigrationInterface {
2
+ export declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
3
3
  name: string;
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=3-CreateStatusList.d.ts.map
7
+ //# sourceMappingURL=8-CreatePresentationDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"8-CreatePresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/8-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"}
@@ -12,23 +12,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.CreateContacts1715761125000 = void 0;
15
+ exports.CreatePresentationDefinitions1716533767523 = void 0;
16
16
  const debug_1 = __importDefault(require("debug"));
17
- const _1715761125001_CreateContacts_1 = require("../postgres/1715761125001-CreateContacts");
18
- const _1715761125002_CreateContacts_1 = require("../sqlite/1715761125002-CreateContacts");
17
+ const _1716475165345_CreatePresentationDefinitions_1 = require("../postgres/1716475165345-CreatePresentationDefinitions");
18
+ const _1716475165344_CreatePresentationDefinitions_1 = require("../sqlite/1716475165344-CreatePresentationDefinitions");
19
19
  const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
20
- class CreateContacts1715761125000 {
20
+ class CreatePresentationDefinitions1716533767523 {
21
21
  constructor() {
22
- this.name = 'CreateContacts1715761125000';
22
+ this.name = 'CreatePresentationDefinitionItems1716533767523';
23
23
  }
24
24
  up(queryRunner) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
- debug('migration: updating contact tables');
26
+ debug('migration: creating machine state tables');
27
27
  const dbType = queryRunner.connection.driver.options.type;
28
28
  switch (dbType) {
29
29
  case 'postgres': {
30
30
  debug('using postgres migration file');
31
- const mig = new _1715761125001_CreateContacts_1.CreateContacts1715761125001();
31
+ const mig = new _1716475165345_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165345();
32
32
  yield mig.up(queryRunner);
33
33
  debug('Migration statements executed');
34
34
  return;
@@ -37,7 +37,7 @@ class CreateContacts1715761125000 {
37
37
  case 'expo':
38
38
  case 'react-native': {
39
39
  debug('using sqlite/react-native migration file');
40
- const mig = new _1715761125002_CreateContacts_1.CreateContacts1715761125002();
40
+ const mig = new _1716475165344_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165344();
41
41
  yield mig.up(queryRunner);
42
42
  debug('Migration statements executed');
43
43
  return;
@@ -54,7 +54,7 @@ class CreateContacts1715761125000 {
54
54
  switch (dbType) {
55
55
  case 'postgres': {
56
56
  debug('using postgres migration file');
57
- const mig = new _1715761125001_CreateContacts_1.CreateContacts1715761125001();
57
+ const mig = new _1716475165345_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165345();
58
58
  yield mig.down(queryRunner);
59
59
  debug('Migration statements executed');
60
60
  return;
@@ -63,7 +63,7 @@ class CreateContacts1715761125000 {
63
63
  case 'expo':
64
64
  case 'react-native': {
65
65
  debug('using sqlite/react-native migration file');
66
- const mig = new _1715761125002_CreateContacts_1.CreateContacts1715761125002();
66
+ const mig = new _1716475165344_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716475165344();
67
67
  yield mig.down(queryRunner);
68
68
  debug('Migration statements executed');
69
69
  return;
@@ -74,5 +74,5 @@ class CreateContacts1715761125000 {
74
74
  });
75
75
  }
76
76
  }
77
- exports.CreateContacts1715761125000 = CreateContacts1715761125000;
78
- //# sourceMappingURL=9-CreateContacts.js.map
77
+ exports.CreatePresentationDefinitions1716533767523 = CreatePresentationDefinitions1716533767523;
78
+ //# sourceMappingURL=8-CreatePresentationDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"8-CreatePresentationDefinitions.js","sourceRoot":"","sources":["../../../src/migrations/generic/8-CreatePresentationDefinitions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,0HAAoH;AACpH,wHAAkH;AAElH,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,0CAA0C;IAAvD;QACE,SAAI,GAAG,gDAAgD,CAAA;IAyDzD,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACjD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE,CAAC;gBACf,KAAK,UAAU,CAAC,CAAC,CAAC;oBAChB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAA+C,IAAI,yFAA0C,EAAE,CAAA;oBACxG,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,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,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,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;IAEY,IAAI,CAAC,WAAwB;;YACxC,KAAK,CAAC,2CAA2C,CAAC,CAAA;YAClD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE,CAAC;gBACf,KAAK,UAAU,CAAC,CAAC,CAAC;oBAChB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,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,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 './8-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 DataStorePresentationsDefinitionsMigrations: (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;AAElF;;;;;;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;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;AAClF,OAAO,EAAE,0CAA0C,EAAE,MAAM,mCAAmC,CAAA;AAE9F;;;;;;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;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,+BAA+B,iDAAyC,CAAA;AACrF,eAAO,MAAM,2CAA2C,uDAA+C,CAAA;AAGvG,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.DataStorePresentationsDefinitionsMigrations = 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");
@@ -8,6 +8,7 @@ const _4_CreateStatusList_1 = require("./4-CreateStatusList");
8
8
  const _5_CreateAuditEvents_1 = require("./5-CreateAuditEvents");
9
9
  const _6_CreateDigitalCredential_1 = require("./6-CreateDigitalCredential");
10
10
  const _7_CreateMachineStateStore_1 = require("./7-CreateMachineStateStore");
11
+ const _8_CreatePresentationDefinitions_1 = require("./8-CreatePresentationDefinitions");
11
12
  /**
12
13
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
13
14
  *
@@ -22,6 +23,7 @@ exports.DataStoreStatusListMigrations = [_4_CreateStatusList_1.CreateStatusList1
22
23
  exports.DataStoreEventLoggerMigrations = [_5_CreateAuditEvents_1.CreateAuditEvents1701635835330];
23
24
  exports.DataStoreDigitalCredentialMigrations = [_6_CreateDigitalCredential_1.CreateDigitalCredential1708525189000];
24
25
  exports.DataStoreMachineStateMigrations = [_7_CreateMachineStateStore_1.CreateMachineStateStore1708098041262];
26
+ exports.DataStorePresentationsDefinitionsMigrations = [_8_CreatePresentationDefinitions_1.CreatePresentationDefinitions1716533767523];
25
27
  // All migrations together
26
28
  exports.DataStoreMigrations = [
27
29
  ...exports.DataStoreContactMigrations,
@@ -30,5 +32,6 @@ exports.DataStoreMigrations = [
30
32
  ...exports.DataStoreEventLoggerMigrations,
31
33
  ...exports.DataStoreDigitalCredentialMigrations,
32
34
  ...exports.DataStoreMachineStateMigrations,
35
+ ...exports.DataStorePresentationsDefinitionsMigrations
33
36
  ];
34
37
  //# 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;AAElF;;;;;;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;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,wFAA8F;AAE9F;;;;;;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;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,+BAA+B,GAAG,CAAC,iEAAoC,CAAC,CAAA;AACxE,QAAA,2CAA2C,GAAG,CAAC,6EAA0C,CAAC,CAAA;AAEvG,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,mDAA2C;CAC/C,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, DataStorePresentationsDefinitionsMigrations } 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,2CAA2C,EAC5C,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.DataStorePresentationsDefinitionsMigrations = 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, "DataStorePresentationsDefinitionsMigrations", { enumerable: true, get: function () { return generic_1.DataStorePresentationsDefinitionsMigrations; } });
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,sIAAA,2CAA2C,OAAA"}
@@ -1,7 +1,7 @@
1
1
  import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class CreateContacts1708525189000 implements MigrationInterface {
2
+ export declare class CreatePresentationDefinitions1716475165345 implements MigrationInterface {
3
3
  name: string;
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=8-CreateContacts.d.ts.map
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;IAe3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
@@ -0,0 +1,40 @@
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
+ "version" TEXT NOT NULL,
25
+ "purpose" TEXT,
26
+ "definition_payload" TEXT NOT NULL,
27
+ "created_at" TIMESTAMP NOT NULL DEFAULT now(),
28
+ "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(),
29
+ CONSTRAINT "PK_PresentationDefinitionItem_id" PRIMARY KEY ("id"))
30
+ `);
31
+ });
32
+ }
33
+ down(queryRunner) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ yield queryRunner.query(`DROP TABLE "PresentationDefinitionItem"`);
36
+ });
37
+ }
38
+ }
39
+ exports.CreatePresentationDefinitions1716475165345 = CreatePresentationDefinitions1716475165345;
40
+ //# 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;IAoBrD,CAAC;IAlBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;2CAWe,CAAC,CAAA;QAC1C,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;QACpE,CAAC;KAAA;CACF;AArBD,gGAqBC"}
@@ -1,7 +1,7 @@
1
1
  import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class CreateContacts1715761125000 implements MigrationInterface {
2
+ export declare class CreatePresentationDefinitions1716475165344 implements MigrationInterface {
3
3
  name: string;
4
4
  up(queryRunner: QueryRunner): Promise<void>;
5
5
  down(queryRunner: QueryRunner): Promise<void>;
6
6
  }
7
- //# sourceMappingURL=9-CreateContacts.d.ts.map
7
+ //# sourceMappingURL=1716475165344-CreatePresentationDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1716475165344-CreatePresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1716475165344-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;IAc3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
@@ -0,0 +1,37 @@
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.CreatePresentationDefinitions1716475165344 = void 0;
13
+ class CreatePresentationDefinitions1716475165344 {
14
+ constructor() {
15
+ this.name = 'CreatePresentationDefinitions1716475165344';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE "PresentationDefinitionItem" (
20
+ "id" varchar PRIMARY KEY NOT NULL,
21
+ "tenant_id" varchar,
22
+ "definition_id" varchar NOT NULL,
23
+ "version" varchar NOT NULL,
24
+ "purpose" varchar,
25
+ "definition_payload" varchar NOT NULL,
26
+ "created_at" datetime NOT NULL DEFAULT (datetime('now')),
27
+ "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')))`);
28
+ });
29
+ }
30
+ down(queryRunner) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ yield queryRunner.query(`DROP TABLE "PresentationDefinitionItem"`);
33
+ });
34
+ }
35
+ }
36
+ exports.CreatePresentationDefinitions1716475165344 = CreatePresentationDefinitions1716475165344;
37
+ //# sourceMappingURL=1716475165344-CreatePresentationDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1716475165344-CreatePresentationDefinitions.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0CAA0C;IAAvD;QACE,SAAI,GAAG,4CAA4C,CAAA;IAmBrD,CAAC;IAjBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB;;;;;;;;mEAQ6D,CAC9D,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;QACpE,CAAC;KAAA;CACF;AApBD,gGAoBC"}
@@ -0,0 +1,10 @@
1
+ import { GetGetDefinitionArgs, GetDefinitionsArgs, DeleteDefinitionArgs } from '../types/pd/IAbstractPDStore';
2
+ import { NonPersistedPresentationDefinitionItem, PresentationDefinitionItem } from '../types';
3
+ export declare abstract class AbstractPdStore {
4
+ abstract getDefinition(args: GetGetDefinitionArgs): Promise<PresentationDefinitionItem>;
5
+ abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
6
+ abstract addDefinition(args: NonPersistedPresentationDefinitionItem): Promise<PresentationDefinitionItem>;
7
+ abstract updateDefinition(args: PresentationDefinitionItem): Promise<PresentationDefinitionItem>;
8
+ abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=AbstractPDStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractPDStore.d.ts","sourceRoot":"","sources":["../../src/pd/AbstractPDStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC7G,OAAO,EAAE,sCAAsC,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE7F,8BAAsB,eAAe;IACnC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IACvF,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC7F,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,sCAAsC,GAAG,OAAO,CAAC,0BAA0B,CAAC;IACzG,QAAQ,CAAC,gBAAgB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAChG,QAAQ,CAAC,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CACrE"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AbstractPdStore = void 0;
4
+ class AbstractPdStore {
5
+ }
6
+ exports.AbstractPdStore = AbstractPdStore;
7
+ //# sourceMappingURL=AbstractPDStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractPDStore.js","sourceRoot":"","sources":["../../src/pd/AbstractPDStore.ts"],"names":[],"mappings":";;;AAGA,MAAsB,eAAe;CAMpC;AAND,0CAMC"}
@@ -0,0 +1,14 @@
1
+ import { OrPromise } from '@sphereon/ssi-types';
2
+ import { DataSource } from 'typeorm';
3
+ import { AbstractPdStore } from './AbstractPDStore';
4
+ import { GetGetDefinitionArgs, GetDefinitionsArgs, DeleteDefinitionArgs, NonPersistedPresentationDefinitionItem, PresentationDefinitionItem } from '../types';
5
+ export declare class PDStore extends AbstractPdStore {
6
+ private readonly dbConnection;
7
+ constructor(dbConnection: OrPromise<DataSource>);
8
+ getDefinition: (args: GetGetDefinitionArgs) => Promise<PresentationDefinitionItem>;
9
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
10
+ addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
11
+ updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
12
+ deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
13
+ }
14
+ //# sourceMappingURL=PDStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PDStore.d.ts","sourceRoot":"","sources":["../../src/pd/PDStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAM,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,sCAAsC,EACtC,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAMjB,qBAAa,OAAQ,SAAQ,eAAe;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;gBAExC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,aAAa,SAAgB,oBAAoB,KAAG,QAAQ,0BAA0B,CAAC,CAWtF;IAED,cAAc,SAAgB,kBAAkB,KAAG,QAAQ,MAAM,0BAA0B,CAAC,CAAC,CAiB5F;IAED,aAAa,SAAgB,sCAAsC,KAAG,QAAQ,0BAA0B,CAAC,CAUxG;IAED,gBAAgB,SAAgB,0BAA0B,KAAG,QAAQ,0BAA0B,CAAC,CAiB/F;IAED,gBAAgB,SAAgB,oBAAoB,KAAG,QAAQ,IAAI,CAAC,CAcnE;CACF"}