@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,88 +7,81 @@ 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.CredentialBrandingEntity = 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 CredentialLocaleBrandingEntity_1 = require("./CredentialLocaleBrandingEntity");
26
- let CredentialBrandingEntity = class CredentialBrandingEntity 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 { CredentialLocaleBrandingEntity } from './CredentialLocaleBrandingEntity';
14
+ let CredentialBrandingEntity = class CredentialBrandingEntity extends BaseEntity {
15
+ id;
16
+ vcHash;
17
+ issuerCorrelationId;
18
+ localeBranding;
19
+ createdAt;
20
+ lastUpdatedAt;
27
21
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
28
22
  updateUpdatedDate() {
29
23
  this.lastUpdatedAt = new Date();
30
24
  }
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
- });
25
+ async validate() {
26
+ const validation = await validate(this);
27
+ if (validation.length > 0) {
28
+ return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
29
+ }
30
+ return;
39
31
  }
40
32
  };
41
- exports.CredentialBrandingEntity = CredentialBrandingEntity;
42
33
  __decorate([
43
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
34
+ PrimaryGeneratedColumn('uuid'),
44
35
  __metadata("design:type", String)
45
36
  ], CredentialBrandingEntity.prototype, "id", void 0);
46
37
  __decorate([
47
- (0, typeorm_1.Column)('varchar', { name: 'vcHash', length: 255, nullable: false, unique: true }),
48
- (0, class_validator_1.IsNotEmpty)({ message: 'Blank vcHashes are not allowed' }),
38
+ Column('varchar', { name: 'vcHash', length: 255, nullable: false, unique: true }),
39
+ IsNotEmpty({ message: 'Blank vcHashes are not allowed' }),
49
40
  __metadata("design:type", String)
50
41
  ], CredentialBrandingEntity.prototype, "vcHash", void 0);
51
42
  __decorate([
52
- (0, typeorm_1.Column)('varchar', { name: 'issuerCorrelationId', length: 255, nullable: false, unique: false }),
53
- (0, class_validator_1.IsNotEmpty)({ message: 'Blank issuerCorrelationIds are not allowed' }),
43
+ Column('varchar', { name: 'issuerCorrelationId', length: 255, nullable: false, unique: false }),
44
+ IsNotEmpty({ message: 'Blank issuerCorrelationIds are not allowed' }),
54
45
  __metadata("design:type", String)
55
46
  ], CredentialBrandingEntity.prototype, "issuerCorrelationId", void 0);
56
47
  __decorate([
57
- (0, typeorm_1.OneToMany)(() => CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity, (credentialLocaleBrandingEntity) => credentialLocaleBrandingEntity.credentialBranding, {
48
+ OneToMany(() => CredentialLocaleBrandingEntity, (credentialLocaleBrandingEntity) => credentialLocaleBrandingEntity.credentialBranding, {
58
49
  cascade: true,
59
50
  onDelete: 'CASCADE',
60
51
  eager: true,
61
52
  nullable: false,
62
53
  }),
63
- (0, class_validator_1.ArrayMinSize)(1, { message: 'localeBranding cannot be empty' }),
54
+ ArrayMinSize(1, { message: 'localeBranding cannot be empty' }),
64
55
  __metadata("design:type", Array)
65
56
  ], CredentialBrandingEntity.prototype, "localeBranding", void 0);
66
57
  __decorate([
67
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
58
+ CreateDateColumn({ name: 'created_at', nullable: false, type: typeOrmDateTime() }),
68
59
  __metadata("design:type", Date)
69
60
  ], CredentialBrandingEntity.prototype, "createdAt", void 0);
70
61
  __decorate([
71
- (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }),
62
+ UpdateDateColumn({ name: 'last_updated_at', nullable: false, type: typeOrmDateTime() }),
72
63
  __metadata("design:type", Date
73
64
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
74
65
  )
75
66
  ], CredentialBrandingEntity.prototype, "lastUpdatedAt", void 0);
76
67
  __decorate([
77
- (0, typeorm_1.BeforeInsert)(),
78
- (0, typeorm_1.BeforeUpdate)(),
68
+ BeforeInsert(),
69
+ BeforeUpdate(),
79
70
  __metadata("design:type", Function),
80
71
  __metadata("design:paramtypes", []),
81
72
  __metadata("design:returntype", void 0)
82
73
  ], CredentialBrandingEntity.prototype, "updateUpdatedDate", null);
83
74
  __decorate([
84
- (0, typeorm_1.BeforeInsert)(),
85
- (0, typeorm_1.BeforeUpdate)(),
75
+ BeforeInsert(),
76
+ BeforeUpdate(),
86
77
  __metadata("design:type", Function),
87
78
  __metadata("design:paramtypes", []),
88
79
  __metadata("design:returntype", Promise)
89
80
  ], CredentialBrandingEntity.prototype, "validate", null);
90
- exports.CredentialBrandingEntity = CredentialBrandingEntity = __decorate([
91
- (0, typeorm_1.Entity)('CredentialBranding'),
92
- (0, typeorm_1.Index)('IDX_CredentialBrandingEntity_vcHash', ['vcHash']),
93
- (0, typeorm_1.Index)('IDX_CredentialBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
81
+ CredentialBrandingEntity = __decorate([
82
+ Entity('CredentialBranding'),
83
+ Index('IDX_CredentialBrandingEntity_vcHash', ['vcHash']),
84
+ Index('IDX_CredentialBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
94
85
  ], CredentialBrandingEntity);
86
+ export { CredentialBrandingEntity };
95
87
  //# sourceMappingURL=CredentialBrandingEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,qFAAiF;AAK1E,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAU;IA+BtD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,I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D;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACvE,IAAI;2DAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;+DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;iEAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;wDAOd;mCA9CU,wBAAwB;IAHpC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAA,eAAK,EAAC,kDAAkD,EAAE,CAAC,qBAAqB,CAAC,CAAC;GACtE,wBAAwB,CA+CpC"}
1
+ {"version":3,"file":"CredentialBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,KAAK,EACL,SAAS,EACT,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAK1E,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,UAAU;IAEtD,EAAE,CAAS;IAIX,MAAM,CAAS;IAIf,mBAAmB,CAAS;IAa5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AAO,EAAE,gCAAgC,EAAE,CAAC;8BAC9C,KAAK;gEAAgC;AAGtD;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;8BACvE,IAAI;2DAAA;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;+DAFjG;AAKpB;IAFC,YAAY,EAAE;IACd,YAAY,EAAE;;;;iEAGd;AAIK;IAFL,YAAY,EAAE;IACd,YAAY,EAAE;;;;wDAOd;AA9CU,wBAAwB;IAHpC,MAAM,CAAC,oBAAoB,CAAC;IAC5B,KAAK,CAAC,qCAAqC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACxD,KAAK,CAAC,kDAAkD,EAAE,CAAC,qBAAqB,CAAC,CAAC;GACtE,wBAAwB,CA+CpC"}
@@ -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,63 +7,54 @@ 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.CredentialClaimsEntity = void 0;
22
- const typeorm_1 = require("typeorm");
23
- const CredentialLocaleBrandingEntity_1 = require("./CredentialLocaleBrandingEntity");
24
- const class_validator_1 = require("class-validator");
25
- const validators_1 = require("../validators");
26
- let CredentialClaimsEntity = class CredentialClaimsEntity extends typeorm_1.BaseEntity {
27
- validate() {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const validation = yield (0, class_validator_1.validate)(this);
30
- if (validation.length > 0) {
31
- return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
32
- }
33
- return;
34
- });
10
+ import { BaseEntity, BeforeInsert, BeforeUpdate, Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
11
+ import { CredentialLocaleBrandingEntity } from './CredentialLocaleBrandingEntity';
12
+ import { validate, Validate } from 'class-validator';
13
+ import { IsNonEmptyStringConstraint } from '../validators';
14
+ let CredentialClaimsEntity = class CredentialClaimsEntity extends BaseEntity {
15
+ id;
16
+ key;
17
+ name;
18
+ credentialLocaleBranding;
19
+ async validate() {
20
+ const validation = await validate(this);
21
+ if (validation.length > 0) {
22
+ return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
23
+ }
24
+ return;
35
25
  }
36
26
  };
37
- exports.CredentialClaimsEntity = CredentialClaimsEntity;
38
27
  __decorate([
39
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
28
+ PrimaryGeneratedColumn('uuid'),
40
29
  __metadata("design:type", String)
41
30
  ], CredentialClaimsEntity.prototype, "id", void 0);
42
31
  __decorate([
43
- (0, typeorm_1.Column)('varchar', { name: 'key', length: 255, nullable: false, unique: false }),
44
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank claim keys are not allowed' }),
32
+ Column('varchar', { name: 'key', length: 255, nullable: false, unique: false }),
33
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank claim keys are not allowed' }),
45
34
  __metadata("design:type", String)
46
35
  ], CredentialClaimsEntity.prototype, "key", void 0);
47
36
  __decorate([
48
- (0, typeorm_1.Column)('varchar', { name: 'name', length: 255, nullable: false, unique: false }),
49
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank claim names are not allowed' }),
37
+ Column('varchar', { name: 'name', length: 255, nullable: false, unique: false }),
38
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank claim names are not allowed' }),
50
39
  __metadata("design:type", String)
51
40
  ], CredentialClaimsEntity.prototype, "name", void 0);
52
41
  __decorate([
53
- (0, typeorm_1.ManyToOne)(() => CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity, (credentialLocaleBranding) => credentialLocaleBranding.claims, {
42
+ ManyToOne(() => CredentialLocaleBrandingEntity, (credentialLocaleBranding) => credentialLocaleBranding.claims, {
54
43
  cascade: ['insert', 'update'],
55
44
  onDelete: 'CASCADE',
56
45
  }),
57
- __metadata("design:type", CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity)
46
+ __metadata("design:type", CredentialLocaleBrandingEntity)
58
47
  ], CredentialClaimsEntity.prototype, "credentialLocaleBranding", void 0);
59
48
  __decorate([
60
- (0, typeorm_1.BeforeInsert)(),
61
- (0, typeorm_1.BeforeUpdate)(),
49
+ BeforeInsert(),
50
+ BeforeUpdate(),
62
51
  __metadata("design:type", Function),
63
52
  __metadata("design:paramtypes", []),
64
53
  __metadata("design:returntype", Promise)
65
54
  ], CredentialClaimsEntity.prototype, "validate", null);
66
- exports.CredentialClaimsEntity = CredentialClaimsEntity = __decorate([
67
- (0, typeorm_1.Entity)('CredentialClaims'),
68
- (0, typeorm_1.Index)('IDX_CredentialClaimsEntity_credentialLocaleBranding_locale', ['credentialLocaleBranding', 'key'], { unique: true })
55
+ CredentialClaimsEntity = __decorate([
56
+ Entity('CredentialClaims'),
57
+ Index('IDX_CredentialClaimsEntity_credentialLocaleBranding_locale', ['credentialLocaleBranding', 'key'], { unique: true })
69
58
  ], CredentialClaimsEntity);
59
+ export { CredentialClaimsEntity };
70
60
  //# sourceMappingURL=CredentialClaimsEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialClaimsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialClaimsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAA0H;AAC1H,qFAAiF;AACjF,qDAAqE;AACrE,8CAA0D;AAInD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAU;IAoB9C,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;AA3BY,wDAAsB;AAEjC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC/E,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;mDAC1E;AAIZ;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KA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lC"}
@@ -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,38 +7,39 @@ 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.CredentialLocaleBrandingEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const CredentialBrandingEntity_1 = require("./CredentialBrandingEntity");
15
- const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
16
- const CredentialClaimsEntity_1 = require("./CredentialClaimsEntity");
17
- let CredentialLocaleBrandingEntity = class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
10
+ import { ChildEntity, Column, JoinColumn, ManyToOne, Index, OneToMany } from 'typeorm';
11
+ import { CredentialBrandingEntity } from './CredentialBrandingEntity';
12
+ import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
13
+ import { CredentialClaimsEntity } from './CredentialClaimsEntity';
14
+ let CredentialLocaleBrandingEntity = class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
15
+ credentialBranding;
16
+ claims;
17
+ credentialBrandingId;
18
18
  };
19
- exports.CredentialLocaleBrandingEntity = CredentialLocaleBrandingEntity;
20
19
  __decorate([
21
- (0, typeorm_1.ManyToOne)(() => CredentialBrandingEntity_1.CredentialBrandingEntity, (credentialBranding) => credentialBranding.localeBranding, {
20
+ ManyToOne(() => CredentialBrandingEntity, (credentialBranding) => credentialBranding.localeBranding, {
22
21
  onDelete: 'CASCADE',
23
22
  }),
24
- (0, typeorm_1.JoinColumn)({ name: 'credentialBrandingId' }),
25
- __metadata("design:type", CredentialBrandingEntity_1.CredentialBrandingEntity)
23
+ JoinColumn({ name: 'credentialBrandingId' }),
24
+ __metadata("design:type", CredentialBrandingEntity)
26
25
  ], CredentialLocaleBrandingEntity.prototype, "credentialBranding", void 0);
27
26
  __decorate([
28
- (0, typeorm_1.OneToMany)(() => CredentialClaimsEntity_1.CredentialClaimsEntity, (claims) => claims.credentialLocaleBranding, {
27
+ OneToMany(() => CredentialClaimsEntity, (claims) => claims.credentialLocaleBranding, {
29
28
  cascade: true,
30
29
  onDelete: 'CASCADE',
31
30
  eager: true,
32
31
  nullable: false,
33
32
  }),
34
- (0, typeorm_1.JoinColumn)({ name: 'claim_id' }),
33
+ JoinColumn({ name: 'claim_id' }),
35
34
  __metadata("design:type", Array)
36
35
  ], CredentialLocaleBrandingEntity.prototype, "claims", void 0);
37
36
  __decorate([
38
- (0, typeorm_1.Column)('uuid', { name: 'credentialBrandingId', nullable: false }),
37
+ Column('uuid', { name: 'credentialBrandingId', nullable: false }),
39
38
  __metadata("design:type", String)
40
39
  ], CredentialLocaleBrandingEntity.prototype, "credentialBrandingId", void 0);
41
- exports.CredentialLocaleBrandingEntity = CredentialLocaleBrandingEntity = __decorate([
42
- (0, typeorm_1.ChildEntity)('CredentialLocaleBranding'),
43
- (0, typeorm_1.Index)('IDX_CredentialLocaleBrandingEntity_credentialBranding_locale', ['credentialBranding', 'locale'], { unique: true })
40
+ CredentialLocaleBrandingEntity = __decorate([
41
+ ChildEntity('CredentialLocaleBranding'),
42
+ Index('IDX_CredentialLocaleBrandingEntity_credentialBranding_locale', ['credentialBranding', 'locale'], { unique: true })
44
43
  ], CredentialLocaleBrandingEntity);
44
+ export { CredentialLocaleBrandingEntity };
45
45
  //# sourceMappingURL=CredentialLocaleBrandingEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,yEAAqE;AACrE,yEAAqE;AACrE,qEAAiE;AAI1D,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,mDAAwB;CAkB3E,CAAA;AAlBY,wEAA8B;AAKzC;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mDAAwB,EAAE,CAAC,kBAA4C,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,EAAE;QAC9H,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;8BACxB,mDAAwB;0EAAA;AAS7C;IAPC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAsB,EAAE,CAAC,MAA8B,EAAE,EAAE,CAAC,MAAM,CAAC,wBAAwB,EAAE;QAC5G,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACxB,KAAK;8DAAwB;AAGtC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4EACrC;yCAjBlB,8BAA8B;IAF1C,IAAA,qBAAW,EAAC,0BAA0B,CAAC;IACvC,IAAA,eAAK,EAAC,8DAA8D,EAAE,CAAC,oBAAoB,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC7G,8BAA8B,CAkB1C"}
1
+ {"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,E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ate = (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,75 +7,68 @@ 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.ImageAttributesEntity = void 0;
22
- const typeorm_1 = require("typeorm");
23
- const ImageDimensionsEntity_1 = require("./ImageDimensionsEntity");
24
- const class_validator_1 = require("class-validator");
25
- const validators_1 = require("../validators");
26
- let ImageAttributesEntity = class ImageAttributesEntity extends typeorm_1.BaseEntity {
27
- validate() {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const validation = yield (0, class_validator_1.validate)(this);
30
- if (validation.length > 0) {
31
- return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
32
- }
33
- return;
34
- });
10
+ import { BaseEntity, BeforeInsert, BeforeUpdate, Column, Entity, JoinColumn, OneToOne, PrimaryGeneratedColumn } from 'typeorm';
11
+ import { ImageDimensionsEntity } from './ImageDimensionsEntity';
12
+ import { validate, Validate } from 'class-validator';
13
+ import { IsNonEmptyStringConstraint } from '../validators';
14
+ let ImageAttributesEntity = class ImageAttributesEntity extends BaseEntity {
15
+ id;
16
+ uri;
17
+ dataUri;
18
+ mediaType;
19
+ alt;
20
+ dimensions;
21
+ async validate() {
22
+ const validation = await validate(this);
23
+ if (validation.length > 0) {
24
+ return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
25
+ }
26
+ return;
35
27
  }
36
28
  };
37
- exports.ImageAttributesEntity = ImageAttributesEntity;
38
29
  __decorate([
39
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
30
+ PrimaryGeneratedColumn('uuid'),
40
31
  __metadata("design:type", String)
41
32
  ], ImageAttributesEntity.prototype, "id", void 0);
42
33
  __decorate([
43
- (0, typeorm_1.Column)('text', { name: 'uri', nullable: true, unique: false }),
44
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank image uri are not allowed' }),
34
+ Column('text', { name: 'uri', nullable: true, unique: false }),
35
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank image uri are not allowed' }),
45
36
  __metadata("design:type", String)
46
37
  ], ImageAttributesEntity.prototype, "uri", void 0);
47
38
  __decorate([
48
- (0, typeorm_1.Column)('text', { name: 'dataUri', nullable: true, unique: false }),
49
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank image data uri are not allowed' }),
39
+ Column('text', { name: 'dataUri', nullable: true, unique: false }),
40
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank image data uri are not allowed' }),
50
41
  __metadata("design:type", String)
51
42
  ], ImageAttributesEntity.prototype, "dataUri", void 0);
52
43
  __decorate([
53
- (0, typeorm_1.Column)('varchar', { name: 'mediaType', length: 255, nullable: true, unique: false }),
54
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank image types are not allowed' }),
44
+ Column('varchar', { name: 'mediaType', length: 255, nullable: true, unique: false }),
45
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank image types are not allowed' }),
55
46
  __metadata("design:type", String)
56
47
  ], ImageAttributesEntity.prototype, "mediaType", void 0);
57
48
  __decorate([
58
- (0, typeorm_1.Column)('varchar', { name: 'alt', length: 255, nullable: true, unique: false }),
59
- (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank image alts are not allowed' }),
49
+ Column('varchar', { name: 'alt', length: 255, nullable: true, unique: false }),
50
+ Validate(IsNonEmptyStringConstraint, { message: 'Blank image alts are not allowed' }),
60
51
  __metadata("design:type", String)
61
52
  ], ImageAttributesEntity.prototype, "alt", void 0);
62
53
  __decorate([
63
- (0, typeorm_1.OneToOne)(() => ImageDimensionsEntity_1.ImageDimensionsEntity, {
54
+ OneToOne(() => ImageDimensionsEntity, {
64
55
  cascade: true,
65
56
  onDelete: 'CASCADE',
66
57
  eager: true,
67
58
  nullable: true,
68
59
  }),
69
- (0, typeorm_1.JoinColumn)({ name: 'dimensionsId' }),
70
- __metadata("design:type", ImageDimensionsEntity_1.ImageDimensionsEntity)
60
+ JoinColumn({ name: 'dimensionsId' }),
61
+ __metadata("design:type", ImageDimensionsEntity)
71
62
  ], ImageAttributesEntity.prototype, "dimensions", void 0);
72
63
  __decorate([
73
- (0, typeorm_1.BeforeInsert)(),
74
- (0, typeorm_1.BeforeUpdate)(),
64
+ BeforeInsert(),
65
+ BeforeUpdate(),
75
66
  __metadata("design:type", Function),
76
67
  __metadata("design:paramtypes", []),
77
68
  __metadata("design:returntype", Promise)
78
69
  ], ImageAttributesEntity.prototype, "validate", null);
79
- exports.ImageAttributesEntity = ImageAttributesEntity = __decorate([
80
- (0, typeorm_1.Entity)('ImageAttributes')
70
+ ImageAttributesEntity = __decorate([
71
+ Entity('ImageAttributes')
81
72
  ], ImageAttributesEntity);
73
+ export { ImageAttributesEntity };
82
74
  //# sourceMappingURL=ImageAttributesEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;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CAAC;;kDAC1E;AASZ;IAPC,QAAQ,CAAC,GAAG,EAAE,CAAC,qBAAqB,EAAE;QACrC,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACxB,qBAAqB;yDAAA;AAI5B;IAFL,YAAY,EAAE;IACd,YAAY,EAAE;;;;qDAOd;AArCU,qBAAqB;IADjC,MAAM,CAAC,iBAAiB,CAAC;GACb,qBAAqB,CAsCjC"}
@@ -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,25 +7,26 @@ 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.ImageDimensionsEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let ImageDimensionsEntity = class ImageDimensionsEntity extends typeorm_1.BaseEntity {
10
+ import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
11
+ let ImageDimensionsEntity = class ImageDimensionsEntity extends BaseEntity {
12
+ id;
13
+ width;
14
+ height;
15
15
  };
16
- exports.ImageDimensionsEntity = ImageDimensionsEntity;
17
16
  __decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
17
+ PrimaryGeneratedColumn('uuid'),
19
18
  __metadata("design:type", String)
20
19
  ], ImageDimensionsEntity.prototype, "id", void 0);
21
20
  __decorate([
22
- (0, typeorm_1.Column)('integer', { name: 'width', nullable: false, unique: false }),
21
+ Column('integer', { name: 'width', nullable: false, unique: false }),
23
22
  __metadata("design:type", Number)
24
23
  ], ImageDimensionsEntity.prototype, "width", void 0);
25
24
  __decorate([
26
- (0, typeorm_1.Column)('integer', { name: 'height', nullable: false, unique: false }),
25
+ Column('integer', { name: 'height', nullable: false, unique: false }),
27
26
  __metadata("design:type", Number)
28
27
  ], ImageDimensionsEntity.prototype, "height", void 0);
29
- exports.ImageDimensionsEntity = ImageDimensionsEntity = __decorate([
30
- (0, typeorm_1.Entity)('ImageDimensions')
28
+ ImageDimensionsEntity = __decorate([
29
+ Entity('ImageDimensions')
31
30
  ], ImageDimensionsEntity);
31
+ export { ImageDimensionsEntity };
32
32
  //# sourceMappingURL=ImageDimensionsEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAGrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAU;CASpD,CAAA;AATY,sDAAqB;AAEhC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;iDACpB;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACvD;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;qDACvD;gCARJ,qBAAqB;IADjC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,qBAAqB,CASjC"}
1
+ {"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAGrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,MAAM,CAAS;CAChB,CAAA;AAPC;IADC,sBAAsB,CAAC,MAAM,CAAC;;iDACpB;AAGX;IADC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACvD;AAGd;IADC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;qDACvD;AARJ,qBAAqB;IADjC,MAAM,CAAC,iBAAiB,CAAC;GACb,qBAAqB,CASjC"}