@sphereon/ssi-sdk.data-store 0.33.0 → 0.33.1-feature.vcdm2.4

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 (210) hide show
  1. package/dist/contact/AbstractContactStore.js +1 -5
  2. package/dist/contact/AbstractContactStore.js.map +1 -1
  3. package/dist/contact/ContactStore.js +544 -545
  4. package/dist/contact/ContactStore.js.map +1 -1
  5. package/dist/digitalCredential/AbstractDigitalCredentialStore.js +1 -5
  6. package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +1 -1
  7. package/dist/digitalCredential/DigitalCredentialStore.js +131 -142
  8. package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
  9. package/dist/entities/contact/BaseConfigEntity.js +13 -14
  10. package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
  11. package/dist/entities/contact/BaseContactEntity.js +24 -22
  12. package/dist/entities/contact/BaseContactEntity.js.map +1 -1
  13. package/dist/entities/contact/ConnectionEntity.js +23 -20
  14. package/dist/entities/contact/ConnectionEntity.js.map +1 -1
  15. package/dist/entities/contact/ContactMetadataItemEntity.js +38 -44
  16. package/dist/entities/contact/ContactMetadataItemEntity.js.map +1 -1
  17. package/dist/entities/contact/CorrelationIdentifierEntity.js +34 -42
  18. package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
  19. package/dist/entities/contact/DidAuthConfigEntity.js +16 -14
  20. package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
  21. package/dist/entities/contact/ElectronicAddressEntity.js +42 -47
  22. package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
  23. package/dist/entities/contact/IdentityEntity.js +56 -57
  24. package/dist/entities/contact/IdentityEntity.js.map +1 -1
  25. package/dist/entities/contact/IdentityMetadataItemEntity.js +38 -44
  26. package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
  27. package/dist/entities/contact/NaturalPersonEntity.js +35 -43
  28. package/dist/entities/contact/NaturalPersonEntity.js.map +1 -1
  29. package/dist/entities/contact/OpenIdConfigEntity.js +24 -18
  30. package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
  31. package/dist/entities/contact/OrganizationEntity.js +28 -38
  32. package/dist/entities/contact/OrganizationEntity.js.map +1 -1
  33. package/dist/entities/contact/PartyEntity.js +57 -59
  34. package/dist/entities/contact/PartyEntity.js.map +1 -1
  35. package/dist/entities/contact/PartyRelationshipEntity.js +37 -43
  36. package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -1
  37. package/dist/entities/contact/PartyTypeEntity.js +44 -49
  38. package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
  39. package/dist/entities/contact/PhysicalAddressEntity.js +61 -60
  40. package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -1
  41. package/dist/entities/digitalCredential/DigitalCredentialEntity.js +63 -38
  42. package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
  43. package/dist/entities/eventLogger/AuditEventEntity.js +60 -37
  44. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  45. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +25 -36
  46. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
  47. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +48 -53
  48. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -1
  49. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +35 -43
  50. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
  51. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +28 -38
  52. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +1 -1
  53. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +18 -18
  54. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
  55. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +34 -42
  56. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
  57. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +11 -11
  58. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
  59. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +31 -40
  60. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
  61. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +27 -24
  62. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
  63. package/dist/entities/issuanceBranding/TextAttributesEntity.js +20 -32
  64. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
  65. package/dist/entities/machineState/MachineStateInfoEntity.js +31 -21
  66. package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
  67. package/dist/entities/oid4vcState/Oid4vcStateEntity.js +24 -18
  68. package/dist/entities/oid4vcState/Oid4vcStateEntity.js.map +1 -1
  69. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +34 -27
  70. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +1 -1
  71. package/dist/entities/statusList/StatusList2021EntryEntity.js +26 -22
  72. package/dist/entities/statusList/StatusList2021EntryEntity.js.map +1 -1
  73. package/dist/entities/statusList/StatusListEntities.js +48 -39
  74. package/dist/entities/statusList/StatusListEntities.js.map +1 -1
  75. package/dist/entities/validators/index.js +6 -10
  76. package/dist/entities/validators/index.js.map +1 -1
  77. package/dist/eventLogger/AbstractEventLoggerStore.js +1 -5
  78. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
  79. package/dist/eventLogger/EventLoggerStore.js +50 -65
  80. package/dist/eventLogger/EventLoggerStore.js.map +1 -1
  81. package/dist/index.js +96 -163
  82. package/dist/index.js.map +1 -1
  83. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +1 -5
  84. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +1 -1
  85. package/dist/issuanceBranding/IssuanceBrandingStore.js +331 -333
  86. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
  87. package/dist/machineState/IAbstractMachineStateStore.js +1 -5
  88. package/dist/machineState/IAbstractMachineStateStore.js.map +1 -1
  89. package/dist/machineState/MachineStateStore.js +102 -122
  90. package/dist/machineState/MachineStateStore.js.map +1 -1
  91. package/dist/migrations/generic/1-CreateContacts.js +50 -72
  92. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  93. package/dist/migrations/generic/10-CreatePresentationDefinitions.js +50 -72
  94. package/dist/migrations/generic/10-CreatePresentationDefinitions.js.map +1 -1
  95. package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js +52 -74
  96. package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js.map +1 -1
  97. package/dist/migrations/generic/2-CreateIssuanceBranding.js +50 -72
  98. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
  99. package/dist/migrations/generic/3-CreateContacts.js +50 -72
  100. package/dist/migrations/generic/3-CreateContacts.js.map +1 -1
  101. package/dist/migrations/generic/4-CreateStatusList.js +56 -78
  102. package/dist/migrations/generic/4-CreateStatusList.js.map +1 -1
  103. package/dist/migrations/generic/5-CreateAuditEvents.js +50 -72
  104. package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -1
  105. package/dist/migrations/generic/6-CreateDigitalCredential.js +50 -72
  106. package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -1
  107. package/dist/migrations/generic/7-CreateMachineStateStore.js +50 -72
  108. package/dist/migrations/generic/7-CreateMachineStateStore.js.map +1 -1
  109. package/dist/migrations/generic/8-CreateContacts.js +50 -72
  110. package/dist/migrations/generic/8-CreateContacts.js.map +1 -1
  111. package/dist/migrations/generic/9-CreateContacts.js +50 -72
  112. package/dist/migrations/generic/9-CreateContacts.js.map +1 -1
  113. package/dist/migrations/generic/index.js +30 -33
  114. package/dist/migrations/generic/index.js.map +1 -1
  115. package/dist/migrations/index.js +1 -12
  116. package/dist/migrations/index.js.map +1 -1
  117. package/dist/migrations/internal-migrations-ormconfig.js +6 -8
  118. package/dist/migrations/internal-migrations-ormconfig.js.map +1 -1
  119. package/dist/migrations/postgres/1659463079428-CreateContacts.js +34 -53
  120. package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
  121. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +50 -69
  122. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  123. package/dist/migrations/postgres/1690925872592-CreateContacts.js +87 -106
  124. package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
  125. package/dist/migrations/postgres/1693866470001-CreateStatusList.js +16 -35
  126. package/dist/migrations/postgres/1693866470001-CreateStatusList.js.map +1 -1
  127. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +22 -41
  128. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
  129. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +19 -38
  130. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -1
  131. package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +6 -25
  132. package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js.map +1 -1
  133. package/dist/migrations/postgres/1710438363001-CreateContacts.js +40 -59
  134. package/dist/migrations/postgres/1710438363001-CreateContacts.js.map +1 -1
  135. package/dist/migrations/postgres/1715761125001-CreateContacts.js +18 -37
  136. package/dist/migrations/postgres/1715761125001-CreateContacts.js.map +1 -1
  137. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +6 -25
  138. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +1 -1
  139. package/dist/migrations/postgres/1737110469001-UpdateStatusList.js +16 -35
  140. package/dist/migrations/postgres/1737110469001-UpdateStatusList.js.map +1 -1
  141. package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js +8 -27
  142. package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js.map +1 -1
  143. package/dist/migrations/sqlite/1659463069549-CreateContacts.js +56 -75
  144. package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +1 -1
  145. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +70 -89
  146. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
  147. package/dist/migrations/sqlite/1690925872693-CreateContacts.js +120 -139
  148. package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
  149. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +12 -31
  150. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +1 -1
  151. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +6 -25
  152. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
  153. package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +7 -26
  154. package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +1 -1
  155. package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +6 -25
  156. package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js.map +1 -1
  157. package/dist/migrations/sqlite/1710438363002-CreateContacts.js +43 -62
  158. package/dist/migrations/sqlite/1710438363002-CreateContacts.js.map +1 -1
  159. package/dist/migrations/sqlite/1715761125002-CreateContacts.js +18 -37
  160. package/dist/migrations/sqlite/1715761125002-CreateContacts.js.map +1 -1
  161. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +6 -25
  162. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +1 -1
  163. package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js +20 -39
  164. package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js.map +1 -1
  165. package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js +25 -44
  166. package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js.map +1 -1
  167. package/dist/presentationDefinition/AbstractPDStore.js +1 -5
  168. package/dist/presentationDefinition/AbstractPDStore.js.map +1 -1
  169. package/dist/presentationDefinition/PDStore.js +114 -123
  170. package/dist/presentationDefinition/PDStore.js.map +1 -1
  171. package/dist/statusList/IStatusListStore.js +1 -2
  172. package/dist/statusList/StatusListStore.js +196 -225
  173. package/dist/statusList/StatusListStore.js.map +1 -1
  174. package/dist/types/contact/IAbstractContactStore.js +1 -2
  175. package/dist/types/contact/contact.js +10 -13
  176. package/dist/types/contact/contact.js.map +1 -1
  177. package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +1 -2
  178. package/dist/types/digitalCredential/digitalCredential.js +13 -16
  179. package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
  180. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +1 -2
  181. package/dist/types/eventLogger/eventLogger.js +1 -2
  182. package/dist/types/index.js +14 -30
  183. package/dist/types/index.js.map +1 -1
  184. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +1 -2
  185. package/dist/types/issuanceBranding/issuanceBranding.js +1 -2
  186. package/dist/types/machineState/IAbstractMachineStateStore.js +1 -2
  187. package/dist/types/presentationDefinition/IAbstractPDStore.js +1 -2
  188. package/dist/types/presentationDefinition/presentationDefinition.js +1 -2
  189. package/dist/types/statusList/IAbstractStatusListStore.js +1 -2
  190. package/dist/types/statusList/statusList.js +1 -2
  191. package/dist/types/validation/validation.js +1 -2
  192. package/dist/utils/FormattingUtils.js +3 -7
  193. package/dist/utils/FormattingUtils.js.map +1 -1
  194. package/dist/utils/SortingUtils.js +1 -5
  195. package/dist/utils/SortingUtils.js.map +1 -1
  196. package/dist/utils/ValidatorUtils.js +2 -6
  197. package/dist/utils/ValidatorUtils.js.map +1 -1
  198. package/dist/utils/contact/MappingUtils.js +124 -150
  199. package/dist/utils/contact/MappingUtils.js.map +1 -1
  200. package/dist/utils/digitalCredential/MappingUtils.js +50 -47
  201. package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
  202. package/dist/utils/eventLogger/MappingUtils.js +60 -22
  203. package/dist/utils/eventLogger/MappingUtils.js.map +1 -1
  204. package/dist/utils/issuanceBranding/MappingUtils.js +71 -77
  205. package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -1
  206. package/dist/utils/presentationDefinition/MappingUtils.js +9 -15
  207. package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
  208. package/dist/utils/statusList/MappingUtils.js +27 -22
  209. package/dist/utils/statusList/MappingUtils.js.map +1 -1
  210. package/package.json +5 -5
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,82 +7,74 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
- return new (P || (P = Promise))(function (resolve, reject) {
14
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.IssuerBrandingEntity = void 0;
22
- const typeorm_1 = require("typeorm");
23
- const class_validator_1 = require("class-validator");
24
- const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
25
- const IssuerLocaleBrandingEntity_1 = require("./IssuerLocaleBrandingEntity");
26
- let IssuerBrandingEntity = class IssuerBrandingEntity extends typeorm_1.BaseEntity {
10
+ import { BaseEntity, BeforeInsert, BeforeUpdate, Column, CreateDateColumn, Entity, Index, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm';
11
+ import { ArrayMinSize, IsNotEmpty, validate } from 'class-validator';
12
+ import { typeOrmDateTime } from '@sphereon/ssi-sdk.agent-config';
13
+ import { IssuerLocaleBrandingEntity } from './IssuerLocaleBrandingEntity';
14
+ let IssuerBrandingEntity = class IssuerBrandingEntity extends BaseEntity {
15
+ id;
16
+ issuerCorrelationId;
17
+ localeBranding;
18
+ createdAt;
19
+ lastUpdatedAt;
27
20
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
28
21
  updateUpdatedDate() {
29
22
  this.lastUpdatedAt = new Date();
30
23
  }
31
- validate() {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- const validation = yield (0, class_validator_1.validate)(this);
34
- if (validation.length > 0) {
35
- return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
36
- }
37
- return;
38
- });
24
+ async validate() {
25
+ const validation = await validate(this);
26
+ if (validation.length > 0) {
27
+ return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
28
+ }
29
+ return;
39
30
  }
40
31
  };
41
- exports.IssuerBrandingEntity = IssuerBrandingEntity;
42
32
  __decorate([
43
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
33
+ PrimaryGeneratedColumn('uuid'),
44
34
  __metadata("design:type", String)
45
35
  ], IssuerBrandingEntity.prototype, "id", void 0);
46
36
  __decorate([
47
- (0, typeorm_1.Column)('varchar', { name: 'issuerCorrelationId', length: 255, nullable: false, unique: true }),
48
- (0, class_validator_1.IsNotEmpty)({ message: 'Blank issuerCorrelationIds are not allowed' }),
37
+ Column('varchar', { name: 'issuerCorrelationId', length: 255, nullable: false, unique: true }),
38
+ IsNotEmpty({ message: 'Blank issuerCorrelationIds are not allowed' }),
49
39
  __metadata("design:type", String)
50
40
  ], IssuerBrandingEntity.prototype, "issuerCorrelationId", void 0);
51
41
  __decorate([
52
- (0, typeorm_1.OneToMany)(() => IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity, (issuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.issuerBranding, {
42
+ OneToMany(() => IssuerLocaleBrandingEntity, (issuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.issuerBranding, {
53
43
  cascade: true,
54
44
  onDelete: 'CASCADE',
55
45
  eager: true,
56
46
  nullable: false,
57
47
  }),
58
- (0, class_validator_1.ArrayMinSize)(1, { message: 'localeBranding cannot be empty' }),
48
+ ArrayMinSize(1, { message: 'localeBranding cannot be empty' }),
59
49
  __metadata("design:type", Array)
60
50
  ], IssuerBrandingEntity.prototype, "localeBranding", void 0);
61
51
  __decorate([
62
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
52
+ CreateDateColumn({ name: 'created_at', nullable: false, type: typeOrmDateTime() }),
63
53
  __metadata("design:type", Date)
64
54
  ], IssuerBrandingEntity.prototype, "createdAt", void 0);
65
55
  __decorate([
66
- (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
56
+ UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: typeOrmDateTime() }),
67
57
  __metadata("design:type", Date
68
58
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
69
59
  )
70
60
  ], IssuerBrandingEntity.prototype, "lastUpdatedAt", void 0);
71
61
  __decorate([
72
- (0, typeorm_1.BeforeInsert)(),
73
- (0, typeorm_1.BeforeUpdate)(),
62
+ BeforeInsert(),
63
+ BeforeUpdate(),
74
64
  __metadata("design:type", Function),
75
65
  __metadata("design:paramtypes", []),
76
66
  __metadata("design:returntype", void 0)
77
67
  ], IssuerBrandingEntity.prototype, "updateUpdatedDate", null);
78
68
  __decorate([
79
- (0, typeorm_1.BeforeInsert)(),
80
- (0, typeorm_1.BeforeUpdate)(),
69
+ BeforeInsert(),
70
+ BeforeUpdate(),
81
71
  __metadata("design:type", Function),
82
72
  __metadata("design:paramtypes", []),
83
73
  __metadata("design:returntype", Promise)
84
74
  ], IssuerBrandingEntity.prototype, "validate", null);
85
- exports.IssuerBrandingEntity = IssuerBrandingEntity = __decorate([
86
- (0, typeorm_1.Entity)('IssuerBranding'),
87
- (0, typeorm_1.Index)('IDX_IssuerBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
75
+ IssuerBrandingEntity = __decorate([
76
+ Entity('IssuerBranding'),
77
+ Index('IDX_IssuerBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
88
78
  ], IssuerBrandingEntity);
79
+ export { IssuerBrandingEntity };
89
80
  //# sourceMappingURL=IssuerBrandingEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,6EAAyE;AAIlE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IA2BlD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5E,CAAC;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AA3CY,oDAAoB;A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,CAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;iEAC1C;AAa5B;IAXC,SAAS,CACR,GAAG,EAAE,CAAC,0BAA0B,EAChC,CAAC,0BAAsD,EAAE,EAAE,CAAC,0BAA0B,CAAC,cAAc,EACrG;QACE,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,KAAK;KAChB,CACF;IACA,YAAY,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;8BAC9C,KAAK;4DAA4B;AAGlD;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;8BACvE,IAAI;uDAAA;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;2DAFjG;AAKpB;IAFC,YAAY,EAAE;IACd,YAAY,EAAE;;;;6DAGd;AAIK;IAFL,YAAY,EAAE;IACd,YAAY,EAAE;;;;oDAOd;AA1CU,oBAAoB;IAFhC,MAAM,CAAC,gBAAgB,CAAC;IACxB,KAAK,CAAC,8CAA8C,EAAE,CAAC,qBAAqB,CAAC,CAAC;GAClE,oBAAoB,CA2ChC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,48 +7,52 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.IssuerLocaleBrandingEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const IssuerBrandingEntity_1 = require("./IssuerBrandingEntity");
15
- const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
16
- const validators_1 = require("../validators");
17
- const class_validator_1 = require("class-validator");
18
- let IssuerLocaleBrandingEntity = class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
10
+ import { ChildEntity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';
11
+ import { IssuerBrandingEntity } from './IssuerBrandingEntity';
12
+ import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
13
+ import { IsNonEmptyStringConstraint } from '../validators';
14
+ import { Validate } from 'class-validator';
15
+ let IssuerLocaleBrandingEntity = class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
16
+ issuerBranding;
17
+ clientUri;
18
+ tosUri;
19
+ policyUri;
20
+ contacts;
21
+ issuerBrandingId;
19
22
  };
20
- exports.IssuerLocaleBrandingEntity = IssuerLocaleBrandingEntity;
21
23
  __decorate([
22
- (0, typeorm_1.ManyToOne)(() => IssuerBrandingEntity_1.IssuerBrandingEntity, (issuerBranding) => issuerBranding.localeBranding, {
24
+ ManyToOne(() => IssuerBrandingEntity, (issuerBranding) => issuerBranding.localeBranding, {
23
25
  onDelete: 'CASCADE',
24
26
  }),
25
- (0, typeorm_1.JoinColumn)({ name: 'issuerBrandingId' }),
26
- __metadata("design:type", IssuerBrandingEntity_1.IssuerBrandingEntity)
27
+ JoinColumn({ name: 'issuerBrandingId' }),
28
+ __metadata("design:type", IssuerBrandingEntity)
27
29
  ], IssuerLocaleBrandingEntity.prototype, "issuerBranding", void 0);
28
30
  __decorate([
29
- (0, typeorm_1.Column)('text', { name: 'client_uri', nullable: true, unique: false }),
30
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank client uris are not allowed' }),
31
+ Column('text', { name: 'client_uri', nullable: true, unique: false }),
32
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank client uris are not allowed' }),
31
33
  __metadata("design:type", String)
32
34
  ], IssuerLocaleBrandingEntity.prototype, "clientUri", void 0);
33
35
  __decorate([
34
- (0, typeorm_1.Column)('text', { name: 'tos_uri', nullable: true, unique: false }),
35
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank tos uris are not allowed' }),
36
+ Column('text', { name: 'tos_uri', nullable: true, unique: false }),
37
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank tos uris are not allowed' }),
36
38
  __metadata("design:type", String)
37
39
  ], IssuerLocaleBrandingEntity.prototype, "tosUri", void 0);
38
40
  __decorate([
39
- (0, typeorm_1.Column)('text', { name: 'policy_uri', nullable: true, unique: false }),
40
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank policy uris are not allowed' }),
41
+ Column('text', { name: 'policy_uri', nullable: true, unique: false }),
42
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank policy uris are not allowed' }),
41
43
  __metadata("design:type", String)
42
44
  ], IssuerLocaleBrandingEntity.prototype, "policyUri", void 0);
43
45
  __decorate([
44
- (0, typeorm_1.Column)('simple-array', { name: 'contacts', nullable: true, unique: false }),
46
+ Column('simple-array', { name: 'contacts', nullable: true, unique: false }),
45
47
  __metadata("design:type", Array)
46
48
  ], IssuerLocaleBrandingEntity.prototype, "contacts", void 0);
47
49
  __decorate([
48
- (0, typeorm_1.Column)('text', { name: 'issuerBrandingId', nullable: false }),
50
+ Column('text', { name: 'issuerBrandingId', nullable: false }),
49
51
  __metadata("design:type", String)
50
52
  ], IssuerLocaleBrandingEntity.prototype, "issuerBrandingId", void 0);
51
- exports.IssuerLocaleBrandingEntity = IssuerLocaleBrandingEntity = __decorate([
52
- (0, typeorm_1.ChildEntity)('IssuerLocaleBranding'),
53
- (0, typeorm_1.Index)('IDX_IssuerLocaleBrandingEntity_issuerBranding_locale', ['issuerBranding', 'locale'], { unique: true })
53
+ IssuerLocaleBrandingEntity = __decorate([
54
+ ChildEntity('IssuerLocaleBranding'),
55
+ Index('IDX_IssuerLocaleBrandingEntity_issuerBranding_locale', ['issuerBranding', 'locale'], { unique: true })
54
56
  ], IssuerLocaleBrandingEntity);
57
+ export { IssuerLocaleBrandingEntity };
55
58
  //# sourceMappingURL=IssuerLocaleBrandingEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IssuerLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,iEAA6D;AAC7D,yEAAqE;AACrE,8CAA0D;AAC1D,qDAA0C;AAInC,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mDAAwB;CAwBvE,CAAA;AAxBY,gEAA0B;AAKrC;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAoB,EAAE,CAAC,cAAoC,EAAE,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE;QAC9G,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BACxB,2CAAoB;kEAAA;AAIrC;IAFC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;6DACrE;AAIlB;IAFC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,0BAAQ,EA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AA0B;IAFtC,WAAW,CAAC,sBAAsB,CAAC;IACnC,KAAK,CAAC,sDAAsD,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACjG,0BAA0B,CAwBtC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,49 +7,38 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
- return new (P || (P = Promise))(function (resolve, reject) {
14
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.TextAttributesEntity = void 0;
22
- const typeorm_1 = require("typeorm");
23
- const class_validator_1 = require("class-validator");
24
- const validators_1 = require("../validators");
25
- let TextAttributesEntity = class TextAttributesEntity extends typeorm_1.BaseEntity {
26
- validate() {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const validation = yield (0, class_validator_1.validate)(this);
29
- if (validation.length > 0) {
30
- return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
31
- }
32
- return;
33
- });
10
+ import { BaseEntity, BeforeInsert, BeforeUpdate, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
11
+ import { validate, Validate } from 'class-validator';
12
+ import { IsNonEmptyStringConstraint } from '../validators';
13
+ let TextAttributesEntity = class TextAttributesEntity extends BaseEntity {
14
+ id;
15
+ color;
16
+ async validate() {
17
+ const validation = await validate(this);
18
+ if (validation.length > 0) {
19
+ return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
20
+ }
21
+ return;
34
22
  }
35
23
  };
36
- exports.TextAttributesEntity = TextAttributesEntity;
37
24
  __decorate([
38
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
25
+ PrimaryGeneratedColumn('uuid'),
39
26
  __metadata("design:type", String)
40
27
  ], TextAttributesEntity.prototype, "id", void 0);
41
28
  __decorate([
42
- (0, typeorm_1.Column)('varchar', { name: 'color', length: 255, nullable: true, unique: false }),
43
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank text colors are not allowed' }),
29
+ Column('varchar', { name: 'color', length: 255, nullable: true, unique: false }),
30
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank text colors are not allowed' }),
44
31
  __metadata("design:type", String)
45
32
  ], TextAttributesEntity.prototype, "color", void 0);
46
33
  __decorate([
47
- (0, typeorm_1.BeforeInsert)(),
48
- (0, typeorm_1.BeforeUpdate)(),
34
+ BeforeInsert(),
35
+ BeforeUpdate(),
49
36
  __metadata("design:type", Function),
50
37
  __metadata("design:paramtypes", []),
51
38
  __metadata("design:returntype", Promise)
52
39
  ], TextAttributesEntity.prototype, "validate", null);
53
- exports.TextAttributesEntity = TextAttributesEntity = __decorate([
54
- (0, typeorm_1.Entity)('TextAttributes')
40
+ TextAttributesEntity = __decorate([
41
+ Entity('TextAttributes')
55
42
  ], TextAttributesEntity);
43
+ export { TextAttributesEntity };
56
44
  //# sourceMappingURL=TextAttributesEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwG;AACxG,qDAAqE;AACrE,8CAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAU5C,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5E,CAAC;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AAjBY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChF,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;mDACzE;AAIR;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;oDAOd;+BAhBU,oBAAoB;IADhC,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,oBAAoB,CAiBhC"}
1
+ {"version":3,"file":"TextAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACxG,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAA;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU;IAElD,EAAE,CAAS;IAIX,KAAK,CAAS;IAIR,AAAN,KAAK,CAAC,QAAQ;QACZ,MAAM,UAAU,GAA2B,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAA;QAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC5E,CAAC;QACD,OAAM;IACR,CAAC;CACF,CAAA;AAfC;IADC,sBAAsB,CAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChF,QAAQ,CAAC,0BAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;mDACzE;AAIR;IAFL,YAAY,EAAE;IACd,YAAY,EAAE;;;;oDAOd;AAhBU,oBAAoB;IADhC,MAAM,CAAC,gBAAgB,CAAC;GACZ,oBAAoB,CAiBhC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,10 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MachineStateInfoEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
10
+ import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryColumn, UpdateDateColumn } from 'typeorm';
11
+ import { typeOrmDateTime } from '@sphereon/ssi-sdk.agent-config';
15
12
  /**
16
13
  * @class MachineStateInfoEntity
17
14
  * Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
@@ -29,58 +26,71 @@ const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
29
26
  * @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
30
27
  * @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
31
28
  */
32
- let MachineStateInfoEntity = class MachineStateInfoEntity extends typeorm_1.BaseEntity {
29
+ let MachineStateInfoEntity = class MachineStateInfoEntity extends BaseEntity {
30
+ instanceId;
31
+ sessionId;
32
+ // Xstate moved to name instead of instanceId for V5. Also makes more sense
33
+ machineName;
34
+ latestStateName;
35
+ latestEventType;
36
+ state;
37
+ createdAt;
38
+ updatedAt;
39
+ updatedCount;
40
+ expiresAt;
41
+ completedAt;
42
+ tenantId;
33
43
  };
34
- exports.MachineStateInfoEntity = MachineStateInfoEntity;
35
44
  __decorate([
36
- (0, typeorm_1.PrimaryColumn)({ name: 'instance_id', type: 'varchar', nullable: false }),
45
+ PrimaryColumn({ name: 'instance_id', type: 'varchar', nullable: false }),
37
46
  __metadata("design:type", String)
38
47
  ], MachineStateInfoEntity.prototype, "instanceId", void 0);
39
48
  __decorate([
40
- (0, typeorm_1.Column)({ name: 'session_id', type: 'varchar', nullable: true }),
49
+ Column({ name: 'session_id', type: 'varchar', nullable: true }),
41
50
  __metadata("design:type", String)
42
51
  ], MachineStateInfoEntity.prototype, "sessionId", void 0);
43
52
  __decorate([
44
- (0, typeorm_1.Column)({ name: 'machine_name', type: 'varchar', nullable: false }),
53
+ Column({ name: 'machine_name', type: 'varchar', nullable: false }),
45
54
  __metadata("design:type", String)
46
55
  ], MachineStateInfoEntity.prototype, "machineName", void 0);
47
56
  __decorate([
48
- (0, typeorm_1.Column)({ name: 'latest_state_name', type: 'varchar', nullable: true }),
57
+ Column({ name: 'latest_state_name', type: 'varchar', nullable: true }),
49
58
  __metadata("design:type", String)
50
59
  ], MachineStateInfoEntity.prototype, "latestStateName", void 0);
51
60
  __decorate([
52
- (0, typeorm_1.Column)({ name: 'latest_event_type', type: 'varchar', nullable: false }),
61
+ Column({ name: 'latest_event_type', type: 'varchar', nullable: false }),
53
62
  __metadata("design:type", String)
54
63
  ], MachineStateInfoEntity.prototype, "latestEventType", void 0);
55
64
  __decorate([
56
- (0, typeorm_1.Column)({ name: 'state', type: 'text', nullable: false }),
65
+ Column({ name: 'state', type: 'text', nullable: false }),
57
66
  __metadata("design:type", String)
58
67
  ], MachineStateInfoEntity.prototype, "state", void 0);
59
68
  __decorate([
60
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
69
+ CreateDateColumn({ name: 'created_at', nullable: false, type: typeOrmDateTime() }),
61
70
  __metadata("design:type", Date)
62
71
  ], MachineStateInfoEntity.prototype, "createdAt", void 0);
63
72
  __decorate([
64
- (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
73
+ UpdateDateColumn({ name: 'updated_at', nullable: false, type: typeOrmDateTime() }),
65
74
  __metadata("design:type", Date)
66
75
  ], MachineStateInfoEntity.prototype, "updatedAt", void 0);
67
76
  __decorate([
68
- (0, typeorm_1.Column)({ name: 'updated_count', type: 'integer', nullable: false }),
77
+ Column({ name: 'updated_count', type: 'integer', nullable: false }),
69
78
  __metadata("design:type", Number)
70
79
  ], MachineStateInfoEntity.prototype, "updatedCount", void 0);
71
80
  __decorate([
72
- (0, typeorm_1.Column)({ name: 'expires_at', nullable: true, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
81
+ Column({ name: 'expires_at', nullable: true, type: typeOrmDateTime() }),
73
82
  __metadata("design:type", Date)
74
83
  ], MachineStateInfoEntity.prototype, "expiresAt", void 0);
75
84
  __decorate([
76
- (0, typeorm_1.Column)({ name: 'completed_at', nullable: true, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
85
+ Column({ name: 'completed_at', nullable: true, type: typeOrmDateTime() }),
77
86
  __metadata("design:type", Date)
78
87
  ], MachineStateInfoEntity.prototype, "completedAt", void 0);
79
88
  __decorate([
80
- (0, typeorm_1.Column)({ name: 'tenant_id', type: 'varchar', nullable: true }),
89
+ Column({ name: 'tenant_id', type: 'varchar', nullable: true }),
81
90
  __metadata("design:type", String)
82
91
  ], MachineStateInfoEntity.prototype, "tenantId", void 0);
83
- exports.MachineStateInfoEntity = MachineStateInfoEntity = __decorate([
84
- (0, typeorm_1.Entity)('MachineStateInfoEntity')
92
+ MachineStateInfoEntity = __decorate([
93
+ Entity('MachineStateInfoEntity')
85
94
  ], MachineStateInfoEntity);
95
+ export { MachineStateInfoEntity };
86
96
  //# sourceMappingURL=MachineStateInfoEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MachineStateInfoEntity.js","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,yEAAgE;AAEhE;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAU;CAqCrD,CAAA;AArCY,wDAAsB;AAEjC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACtD;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,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sBAAsB,CAqClC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,50 +7,57 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Oid4vcStateEntity = void 0;
13
- const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
14
- const typeorm_1 = require("typeorm");
15
- let Oid4vcStateEntity = class Oid4vcStateEntity extends typeorm_1.BaseEntity {
10
+ import { typeOrmDateTime } from '@sphereon/ssi-sdk.agent-config';
11
+ import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryColumn, UpdateDateColumn } from 'typeorm';
12
+ let Oid4vcStateEntity = class Oid4vcStateEntity extends BaseEntity {
13
+ id;
14
+ lookups;
15
+ stateId;
16
+ correlationId;
17
+ state;
18
+ createdAt;
19
+ updatedAt;
20
+ expiresAt;
21
+ tenantId;
16
22
  };
17
- exports.Oid4vcStateEntity = Oid4vcStateEntity;
18
23
  __decorate([
19
- (0, typeorm_1.PrimaryColumn)({ name: 'id', type: 'varchar', nullable: false }),
24
+ PrimaryColumn({ name: 'id', type: 'varchar', nullable: false }),
20
25
  __metadata("design:type", String)
21
26
  ], Oid4vcStateEntity.prototype, "id", void 0);
22
27
  __decorate([
23
- (0, typeorm_1.Column)({ name: 'lookup_ids', type: 'array', nullable: true }),
28
+ Column({ name: 'lookup_ids', type: 'array', nullable: true }),
24
29
  __metadata("design:type", Array)
25
30
  ], Oid4vcStateEntity.prototype, "lookups", void 0);
26
31
  __decorate([
27
- (0, typeorm_1.Column)({ name: 'state_id', type: 'varchar', nullable: true }),
32
+ Column({ name: 'state_id', type: 'varchar', nullable: true }),
28
33
  __metadata("design:type", String)
29
34
  ], Oid4vcStateEntity.prototype, "stateId", void 0);
30
35
  __decorate([
31
- (0, typeorm_1.Column)({ name: 'correlation_id', type: 'varchar', nullable: true }),
36
+ Column({ name: 'correlation_id', type: 'varchar', nullable: true }),
32
37
  __metadata("design:type", String)
33
38
  ], Oid4vcStateEntity.prototype, "correlationId", void 0);
34
39
  __decorate([
35
- (0, typeorm_1.Column)({ name: 'state', type: 'json', nullable: false }),
40
+ Column({ name: 'state', type: 'json', nullable: false }),
36
41
  __metadata("design:type", Object)
37
42
  ], Oid4vcStateEntity.prototype, "state", void 0);
38
43
  __decorate([
39
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
44
+ CreateDateColumn({ name: 'created_at', nullable: false, type: typeOrmDateTime() }),
40
45
  __metadata("design:type", Date)
41
46
  ], Oid4vcStateEntity.prototype, "createdAt", void 0);
42
47
  __decorate([
43
- (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
48
+ UpdateDateColumn({ name: 'updated_at', nullable: false, type: typeOrmDateTime() }),
44
49
  __metadata("design:type", Date)
45
50
  ], Oid4vcStateEntity.prototype, "updatedAt", void 0);
46
51
  __decorate([
47
- (0, typeorm_1.Column)({ name: 'expires_at', nullable: true, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
52
+ Column({ name: 'expires_at', nullable: true, type: typeOrmDateTime() }),
48
53
  __metadata("design:type", Date)
49
54
  ], Oid4vcStateEntity.prototype, "expiresAt", void 0);
50
55
  __decorate([
51
- (0, typeorm_1.Column)({ name: 'tenant_id', type: 'varchar', nullable: true }),
56
+ Column({ name: 'tenant_id', type: 'varchar', nullable: true }),
52
57
  __metadata("design:type", String)
53
58
  ], Oid4vcStateEntity.prototype, "tenantId", void 0);
54
- exports.Oid4vcStateEntity = Oid4vcStateEntity = __decorate([
55
- (0, typeorm_1.Entity)('Oid4vcStateEntity')
59
+ Oid4vcStateEntity = __decorate([
60
+ Entity('Oid4vcStateEntity')
56
61
  ], Oid4vcStateEntity);
62
+ export { Oid4vcStateEntity };
57
63
  //# sourceMappingURL=Oid4vcStateEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Oid4vcStateEntity.js","sourceRoot":"","sources":["../../../src/entities/oid4vcState/Oid4vcStateEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAgE;AAChE,qCAAuG;AAGhG,IAAM,iBAAiB,GAAvB,MAAM,iBAA6B,SAAQ,oBAAU;CA2B3D,CAAA;AA3BY,8CAAiB;AAE5B;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CACrD;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpD,KAAK;kDAAQ;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC9C;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC9C;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACxC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAA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