@sphereon/ssi-sdk.data-store 0.15.2-next.6 → 0.15.2-next.95

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 (213) hide show
  1. package/dist/contact/AbstractContactStore.d.ts +21 -11
  2. package/dist/contact/AbstractContactStore.d.ts.map +1 -1
  3. package/dist/contact/AbstractContactStore.js.map +1 -1
  4. package/dist/contact/ContactStore.d.ts +25 -21
  5. package/dist/contact/ContactStore.d.ts.map +1 -1
  6. package/dist/contact/ContactStore.js +216 -136
  7. package/dist/contact/ContactStore.js.map +1 -1
  8. package/dist/entities/contact/BaseConfigEntity.d.ts +2 -0
  9. package/dist/entities/contact/BaseConfigEntity.d.ts.map +1 -1
  10. package/dist/entities/contact/BaseConfigEntity.js +10 -2
  11. package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
  12. package/dist/entities/contact/BaseContactEntity.d.ts +10 -0
  13. package/dist/entities/contact/BaseContactEntity.d.ts.map +1 -0
  14. package/dist/entities/contact/BaseContactEntity.js +54 -0
  15. package/dist/entities/contact/BaseContactEntity.js.map +1 -0
  16. package/dist/entities/contact/ConnectionEntity.d.ts +1 -2
  17. package/dist/entities/contact/ConnectionEntity.d.ts.map +1 -1
  18. package/dist/entities/contact/ConnectionEntity.js +2 -21
  19. package/dist/entities/contact/ConnectionEntity.js.map +1 -1
  20. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +2 -3
  21. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +1 -1
  22. package/dist/entities/contact/CorrelationIdentifierEntity.js +8 -11
  23. package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
  24. package/dist/entities/contact/DidAuthConfigEntity.d.ts +0 -4
  25. package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +1 -1
  26. package/dist/entities/contact/DidAuthConfigEntity.js +1 -17
  27. package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
  28. package/dist/entities/contact/ElectronicAddressEntity.d.ts +14 -0
  29. package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +1 -0
  30. package/dist/entities/contact/ElectronicAddressEntity.js +92 -0
  31. package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -0
  32. package/dist/entities/contact/IdentityEntity.d.ts +5 -6
  33. package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
  34. package/dist/entities/contact/IdentityEntity.js +15 -20
  35. package/dist/entities/contact/IdentityEntity.js.map +1 -1
  36. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +1 -3
  37. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +1 -1
  38. package/dist/entities/contact/IdentityMetadataItemEntity.js +7 -10
  39. package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
  40. package/dist/entities/contact/NaturalPersonEntity.d.ts +9 -0
  41. package/dist/entities/contact/NaturalPersonEntity.d.ts.map +1 -0
  42. package/dist/entities/contact/NaturalPersonEntity.js +72 -0
  43. package/dist/entities/contact/NaturalPersonEntity.js.map +1 -0
  44. package/dist/entities/contact/OpenIdConfigEntity.d.ts +0 -4
  45. package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +1 -1
  46. package/dist/entities/contact/OpenIdConfigEntity.js +1 -22
  47. package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
  48. package/dist/entities/contact/OrganizationEntity.d.ts +9 -0
  49. package/dist/entities/contact/OrganizationEntity.d.ts.map +1 -0
  50. package/dist/entities/contact/OrganizationEntity.js +67 -0
  51. package/dist/entities/contact/OrganizationEntity.js.map +1 -0
  52. package/dist/entities/contact/PartyEntity.d.ts +21 -0
  53. package/dist/entities/contact/PartyEntity.d.ts.map +1 -0
  54. package/dist/entities/contact/PartyEntity.js +155 -0
  55. package/dist/entities/contact/PartyEntity.js.map +1 -0
  56. package/dist/entities/contact/PartyRelationshipEntity.d.ts +13 -0
  57. package/dist/entities/contact/PartyRelationshipEntity.d.ts.map +1 -0
  58. package/dist/entities/contact/PartyRelationshipEntity.js +95 -0
  59. package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -0
  60. package/dist/entities/contact/PartyTypeEntity.d.ts +15 -0
  61. package/dist/entities/contact/PartyTypeEntity.d.ts.map +1 -0
  62. package/dist/entities/contact/{ContactEntity.js → PartyTypeEntity.js} +35 -36
  63. package/dist/entities/contact/PartyTypeEntity.js.map +1 -0
  64. package/dist/entities/statusList2021/StatusList2021Entity.d.ts +19 -0
  65. package/dist/entities/statusList2021/StatusList2021Entity.d.ts.map +1 -0
  66. package/dist/entities/statusList2021/StatusList2021Entity.js +115 -0
  67. package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -0
  68. package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +11 -0
  69. package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts.map +1 -0
  70. package/dist/entities/statusList2021/StatusList2021EntryEntity.js +51 -0
  71. package/dist/entities/statusList2021/StatusList2021EntryEntity.js.map +1 -0
  72. package/dist/index.d.ts +20 -9
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +27 -11
  75. package/dist/index.js.map +1 -1
  76. package/dist/migrations/generic/1-CreateContacts.d.ts.map +1 -1
  77. package/dist/migrations/generic/1-CreateContacts.js +36 -32
  78. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  79. package/dist/migrations/generic/2-CreateContacts.d.ts +7 -0
  80. package/dist/migrations/generic/2-CreateContacts.d.ts.map +1 -0
  81. package/dist/migrations/generic/2-CreateContacts.js +76 -0
  82. package/dist/migrations/generic/2-CreateContacts.js.map +1 -0
  83. package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts → 2-CreateIssuanceBranding.d.ts} +1 -1
  84. package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts.map +1 -0
  85. package/dist/migrations/generic/2-CreateIssuanceBranding.js +76 -0
  86. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -0
  87. package/dist/migrations/generic/3-CreateStatusList.d.ts +7 -0
  88. package/dist/migrations/generic/3-CreateStatusList.d.ts.map +1 -0
  89. package/dist/migrations/generic/{1-CreateIssuanceBranding.js → 3-CreateStatusList.js} +11 -11
  90. package/dist/migrations/generic/3-CreateStatusList.js.map +1 -0
  91. package/dist/migrations/generic/index.d.ts +5 -0
  92. package/dist/migrations/generic/index.d.ts.map +1 -1
  93. package/dist/migrations/generic/index.js +10 -3
  94. package/dist/migrations/generic/index.js.map +1 -1
  95. package/dist/migrations/internal-migrations-ormconfig.d.ts +2 -1
  96. package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -1
  97. package/dist/migrations/internal-migrations-ormconfig.js +0 -2
  98. package/dist/migrations/internal-migrations-ormconfig.js.map +1 -1
  99. package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts.map +1 -1
  100. package/dist/migrations/postgres/1659463079428-CreateContacts.js +4 -2
  101. package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
  102. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -1
  103. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -0
  104. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  105. package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +7 -0
  106. package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +1 -0
  107. package/dist/migrations/postgres/1690925872592-CreateContacts.js +69 -0
  108. package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -0
  109. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +7 -0
  110. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +1 -0
  111. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +32 -0
  112. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +1 -0
  113. package/dist/migrations/postgres/uuid.d.ts +3 -0
  114. package/dist/migrations/postgres/uuid.d.ts.map +1 -0
  115. package/dist/migrations/postgres/uuid.js +25 -0
  116. package/dist/migrations/postgres/uuid.js.map +1 -0
  117. package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +7 -0
  118. package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -0
  119. package/dist/migrations/sqlite/1690925872693-CreateContacts.js +108 -0
  120. package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -0
  121. package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +7 -0
  122. package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts.map +1 -0
  123. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +32 -0
  124. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +1 -0
  125. package/dist/statusList/IStatusListStore.d.ts +20 -0
  126. package/dist/statusList/IStatusListStore.d.ts.map +1 -0
  127. package/dist/statusList/IStatusListStore.js +3 -0
  128. package/dist/statusList/IStatusListStore.js.map +1 -0
  129. package/dist/statusList/StatusListStore.d.ts +36 -0
  130. package/dist/statusList/StatusListStore.d.ts.map +1 -0
  131. package/dist/statusList/StatusListStore.js +213 -0
  132. package/dist/statusList/StatusListStore.js.map +1 -0
  133. package/dist/types/contact/IAbstractContactStore.d.ts +70 -36
  134. package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
  135. package/dist/types/contact/contact.d.ts +139 -56
  136. package/dist/types/contact/contact.d.ts.map +1 -1
  137. package/dist/types/contact/contact.js +6 -1
  138. package/dist/types/contact/contact.js.map +1 -1
  139. package/dist/types/index.d.ts +3 -0
  140. package/dist/types/index.d.ts.map +1 -1
  141. package/dist/types/index.js +3 -0
  142. package/dist/types/index.js.map +1 -1
  143. package/dist/types/statusList/IAbstractStatusListStore.d.ts +38 -0
  144. package/dist/types/statusList/IAbstractStatusListStore.d.ts.map +1 -0
  145. package/dist/types/statusList/IAbstractStatusListStore.js +3 -0
  146. package/dist/types/statusList/IAbstractStatusListStore.js.map +1 -0
  147. package/dist/types/statusList/statusList.d.ts +25 -0
  148. package/dist/types/statusList/statusList.d.ts.map +1 -0
  149. package/dist/types/statusList/statusList.js +3 -0
  150. package/dist/types/statusList/statusList.js.map +1 -0
  151. package/dist/types/validation/validation.d.ts +4 -0
  152. package/dist/types/validation/validation.d.ts.map +1 -0
  153. package/dist/types/validation/validation.js +3 -0
  154. package/dist/types/validation/validation.js.map +1 -0
  155. package/dist/utils/ValidatorUtils.d.ts +4 -0
  156. package/dist/utils/ValidatorUtils.d.ts.map +1 -0
  157. package/dist/utils/ValidatorUtils.js +13 -0
  158. package/dist/utils/ValidatorUtils.js.map +1 -0
  159. package/dist/utils/contact/MappingUtils.d.ts +47 -0
  160. package/dist/utils/contact/MappingUtils.d.ts.map +1 -0
  161. package/dist/utils/contact/MappingUtils.js +291 -0
  162. package/dist/utils/contact/MappingUtils.js.map +1 -0
  163. package/package.json +5 -4
  164. package/src/__tests__/contact.entities.test.ts +1457 -195
  165. package/src/__tests__/contact.store.test.ts +1302 -266
  166. package/src/contact/AbstractContactStore.ts +44 -22
  167. package/src/contact/ContactStore.ts +328 -204
  168. package/src/entities/contact/BaseConfigEntity.ts +10 -2
  169. package/src/entities/contact/BaseContactEntity.ts +30 -0
  170. package/src/entities/contact/ConnectionEntity.ts +4 -23
  171. package/src/entities/contact/CorrelationIdentifierEntity.ts +9 -13
  172. package/src/entities/contact/DidAuthConfigEntity.ts +1 -18
  173. package/src/entities/contact/ElectronicAddressEntity.ts +60 -0
  174. package/src/entities/contact/IdentityEntity.ts +18 -25
  175. package/src/entities/contact/IdentityMetadataItemEntity.ts +8 -12
  176. package/src/entities/contact/NaturalPersonEntity.ts +38 -0
  177. package/src/entities/contact/OpenIdConfigEntity.ts +1 -23
  178. package/src/entities/contact/OrganizationEntity.ts +34 -0
  179. package/src/entities/contact/PartyEntity.ts +118 -0
  180. package/src/entities/contact/PartyRelationshipEntity.ts +61 -0
  181. package/src/entities/contact/PartyTypeEntity.ts +59 -0
  182. package/src/entities/statusList2021/StatusList2021Entity.ts +95 -0
  183. package/src/entities/statusList2021/StatusList2021EntryEntity.ts +29 -0
  184. package/src/index.ts +36 -17
  185. package/src/migrations/generic/1-CreateContacts.ts +46 -36
  186. package/src/migrations/generic/2-CreateContacts.ts +64 -0
  187. package/src/migrations/generic/2-CreateIssuanceBranding.ts +62 -0
  188. package/src/migrations/generic/{1-CreateIssuanceBranding.ts → 3-CreateStatusList.ts} +9 -9
  189. package/src/migrations/generic/index.ts +11 -2
  190. package/src/migrations/internal-migrations-ormconfig.ts +2 -4
  191. package/src/migrations/postgres/1659463079428-CreateContacts.ts +4 -2
  192. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -0
  193. package/src/migrations/postgres/1690925872592-CreateContacts.ts +94 -0
  194. package/src/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.ts +24 -0
  195. package/src/migrations/postgres/uuid.ts +12 -0
  196. package/src/migrations/sqlite/1690925872693-CreateContacts.ts +163 -0
  197. package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +24 -0
  198. package/src/statusList/IStatusListStore.ts +44 -0
  199. package/src/statusList/StatusListStore.ts +237 -0
  200. package/src/types/contact/IAbstractContactStore.ts +84 -27
  201. package/src/types/contact/contact.ts +144 -50
  202. package/src/types/index.ts +4 -0
  203. package/src/types/statusList/IAbstractStatusListStore.ts +47 -0
  204. package/src/types/statusList/statusList.ts +39 -0
  205. package/src/types/validation/validation.ts +3 -0
  206. package/src/utils/ValidatorUtils.ts +10 -0
  207. package/src/utils/contact/MappingUtils.ts +344 -0
  208. package/dist/entities/contact/ContactEntity.d.ts +0 -16
  209. package/dist/entities/contact/ContactEntity.d.ts.map +0 -1
  210. package/dist/entities/contact/ContactEntity.js.map +0 -1
  211. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +0 -1
  212. package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +0 -1
  213. package/src/entities/contact/ContactEntity.ts +0 -74
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ 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.PartyRelationshipEntity = void 0;
22
+ const typeorm_1 = require("typeorm");
23
+ const PartyEntity_1 = require("./PartyEntity");
24
+ let PartyRelationshipEntity = class PartyRelationshipEntity {
25
+ // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
26
+ updateUpdatedDate() {
27
+ this.lastUpdatedAt = new Date();
28
+ }
29
+ checkRelationshipSides() {
30
+ var _a, _b, _c, _d;
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ if (((_b = (_a = this.left) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this.leftId) === ((_d = (_c = this.right) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : this.rightId)) {
33
+ return Promise.reject(Error('Cannot use the same id for both sides of the relationship'));
34
+ }
35
+ });
36
+ }
37
+ };
38
+ __decorate([
39
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
40
+ __metadata("design:type", String)
41
+ ], PartyRelationshipEntity.prototype, "id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.ManyToOne)(() => PartyEntity_1.PartyEntity, {
44
+ nullable: false,
45
+ onDelete: 'CASCADE',
46
+ }),
47
+ (0, typeorm_1.JoinColumn)({ name: 'left_id' }),
48
+ __metadata("design:type", PartyEntity_1.PartyEntity)
49
+ ], PartyRelationshipEntity.prototype, "left", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ name: 'left_id', nullable: false }),
52
+ __metadata("design:type", String)
53
+ ], PartyRelationshipEntity.prototype, "leftId", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.ManyToOne)(() => PartyEntity_1.PartyEntity, {
56
+ nullable: false,
57
+ onDelete: 'CASCADE',
58
+ }),
59
+ (0, typeorm_1.JoinColumn)({ name: 'right_id' }),
60
+ __metadata("design:type", PartyEntity_1.PartyEntity)
61
+ ], PartyRelationshipEntity.prototype, "right", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ name: 'right_id', nullable: false }),
64
+ __metadata("design:type", String)
65
+ ], PartyRelationshipEntity.prototype, "rightId", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
68
+ __metadata("design:type", Date)
69
+ ], PartyRelationshipEntity.prototype, "createdAt", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
72
+ __metadata("design:type", Date
73
+ // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
74
+ )
75
+ ], PartyRelationshipEntity.prototype, "lastUpdatedAt", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.BeforeInsert)(),
78
+ (0, typeorm_1.BeforeUpdate)(),
79
+ __metadata("design:type", Function),
80
+ __metadata("design:paramtypes", []),
81
+ __metadata("design:returntype", void 0)
82
+ ], PartyRelationshipEntity.prototype, "updateUpdatedDate", null);
83
+ __decorate([
84
+ (0, typeorm_1.BeforeInsert)(),
85
+ (0, typeorm_1.BeforeUpdate)(),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", []),
88
+ __metadata("design:returntype", Promise)
89
+ ], PartyRelationshipEntity.prototype, "checkRelationshipSides", null);
90
+ PartyRelationshipEntity = __decorate([
91
+ (0, typeorm_1.Entity)('PartyRelationship'),
92
+ (0, typeorm_1.Index)('IDX_PartyRelationship_left_right', ['left', 'right'], { unique: true })
93
+ ], PartyRelationshipEntity);
94
+ exports.PartyRelationshipEntity = PartyRelationshipEntity;
95
+ //# sourceMappingURL=PartyRelationshipEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartyRelationshipEntity.js","sourceRoot":"","sources":["../../../src/entities/contact/PartyRelationshipEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,+CAA2C;AAIpC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IA8BlC,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,sBAAsB;;;YAC1B,IAAI,CAAC,MAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,EAAE,mCAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,EAAE,mCAAI,IAAI,CAAC,OAAO,CAAC,EAAE;gBACvE,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC,CAAA;aAC1F;;KACF;CACF,CAAA;AA3CC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mDACpB;AAEX;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yBAAW,EAAE;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 export declare class PartyTypeEntity {
4
+ id: string;
5
+ type: PartyTypeEnum;
6
+ name: string;
7
+ description?: string;
8
+ tenantId: string;
9
+ parties: Array<PartyEntity>;
10
+ createdAt: Date;
11
+ lastUpdatedAt: Date;
12
+ updateUpdatedDate(): void;
13
+ validate(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=PartyTypeEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartyTypeEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/contact/PartyTypeEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAwB,MAAM,aAAa,CAAA;AAKjE,qBAEa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAA;IAGX,IAAI,EAAG,aAAa,CAAA;IAIpB,IAAI,EAAG,MAAM,CAAA;IAIb,WAAW,CAAC,EAAE,MAAM,CAAA;IAIpB,QAAQ,EAAG,MAAM,CAAA;IAKjB,OAAO,EAAG,KAAK,CAAC,WAAW,CAAC,CAAA;IAG5B,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAUhC"}
@@ -18,11 +18,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
18
18
  });
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.contactEntityFrom = exports.ContactEntity = void 0;
21
+ exports.PartyTypeEntity = void 0;
22
22
  const typeorm_1 = require("typeorm");
23
- const IdentityEntity_1 = require("./IdentityEntity");
23
+ const PartyEntity_1 = require("./PartyEntity");
24
+ const types_1 = require("../../types");
24
25
  const class_validator_1 = require("class-validator");
25
- let ContactEntity = class ContactEntity extends typeorm_1.BaseEntity {
26
+ const validators_1 = require("../validators");
27
+ const ValidatorUtils_1 = require("../../utils/ValidatorUtils");
28
+ let PartyTypeEntity = class PartyTypeEntity {
26
29
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
27
30
  updateUpdatedDate() {
28
31
  this.lastUpdatedAt = new Date();
@@ -31,75 +34,71 @@ let ContactEntity = class ContactEntity extends typeorm_1.BaseEntity {
31
34
  return __awaiter(this, void 0, void 0, function* () {
32
35
  const validation = yield (0, class_validator_1.validate)(this);
33
36
  if (validation.length > 0) {
34
- return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
37
+ const constraint = (0, ValidatorUtils_1.getConstraint)(validation[0]);
38
+ if (constraint) {
39
+ const message = Object.values(constraint)[0];
40
+ return Promise.reject(Error(message));
41
+ }
35
42
  }
36
- return;
37
43
  });
38
44
  }
39
45
  };
40
46
  __decorate([
41
47
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
42
48
  __metadata("design:type", String)
43
- ], ContactEntity.prototype, "id", void 0);
49
+ ], PartyTypeEntity.prototype, "id", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)('simple-enum', { name: 'type', enum: types_1.PartyTypeEnum, nullable: false, unique: false }),
52
+ __metadata("design:type", String)
53
+ ], PartyTypeEntity.prototype, "type", void 0);
44
54
  __decorate([
45
55
  (0, typeorm_1.Column)({ name: 'name', length: 255, nullable: false, unique: true }),
46
56
  (0, class_validator_1.IsNotEmpty)({ message: 'Blank names are not allowed' }),
47
57
  __metadata("design:type", String)
48
- ], ContactEntity.prototype, "name", void 0);
58
+ ], PartyTypeEntity.prototype, "name", void 0);
49
59
  __decorate([
50
- (0, typeorm_1.Column)({ name: 'alias', length: 255, nullable: false, unique: true }),
51
- (0, class_validator_1.IsNotEmpty)({ message: 'Blank aliases are not allowed' }),
60
+ (0, typeorm_1.Column)({ name: 'description', length: 255, nullable: true, unique: false }),
61
+ (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank descriptions are not allowed' }),
52
62
  __metadata("design:type", String)
53
- ], ContactEntity.prototype, "alias", void 0);
63
+ ], PartyTypeEntity.prototype, "description", void 0);
54
64
  __decorate([
55
- (0, typeorm_1.Column)({ name: 'uri', length: 255 }),
65
+ (0, typeorm_1.Column)({ name: 'tenant_id', length: 255, nullable: false, unique: false }),
66
+ (0, class_validator_1.IsNotEmpty)({ message: "Blank tenant id's are not allowed" }),
56
67
  __metadata("design:type", String)
57
- ], ContactEntity.prototype, "uri", void 0);
68
+ ], PartyTypeEntity.prototype, "tenantId", void 0);
58
69
  __decorate([
59
- (0, typeorm_1.OneToMany)(() => IdentityEntity_1.IdentityEntity, (identity) => identity.contact, {
60
- cascade: true,
61
- onDelete: 'CASCADE',
62
- eager: true,
70
+ (0, typeorm_1.OneToMany)(() => PartyEntity_1.PartyEntity, (party) => party.partyType, {
63
71
  nullable: false,
64
72
  }),
65
- (0, typeorm_1.JoinColumn)({ name: 'identityId' }),
66
73
  __metadata("design:type", Array)
67
- ], ContactEntity.prototype, "identities", void 0);
74
+ ], PartyTypeEntity.prototype, "parties", void 0);
68
75
  __decorate([
69
76
  (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
70
77
  __metadata("design:type", Date)
71
- ], ContactEntity.prototype, "createdAt", void 0);
78
+ ], PartyTypeEntity.prototype, "createdAt", void 0);
72
79
  __decorate([
73
80
  (0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
74
81
  __metadata("design:type", Date
75
82
  // By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
76
83
  )
77
- ], ContactEntity.prototype, "lastUpdatedAt", void 0);
84
+ ], PartyTypeEntity.prototype, "lastUpdatedAt", void 0);
78
85
  __decorate([
79
86
  (0, typeorm_1.BeforeInsert)(),
80
87
  (0, typeorm_1.BeforeUpdate)(),
81
88
  __metadata("design:type", Function),
82
89
  __metadata("design:paramtypes", []),
83
90
  __metadata("design:returntype", void 0)
84
- ], ContactEntity.prototype, "updateUpdatedDate", null);
91
+ ], PartyTypeEntity.prototype, "updateUpdatedDate", null);
85
92
  __decorate([
86
93
  (0, typeorm_1.BeforeInsert)(),
87
94
  (0, typeorm_1.BeforeUpdate)(),
88
95
  __metadata("design:type", Function),
89
96
  __metadata("design:paramtypes", []),
90
97
  __metadata("design:returntype", Promise)
91
- ], ContactEntity.prototype, "validate", null);
92
- ContactEntity = __decorate([
93
- (0, typeorm_1.Entity)('Contact')
94
- ], ContactEntity);
95
- exports.ContactEntity = ContactEntity;
96
- const contactEntityFrom = (args) => {
97
- const contactEntity = new ContactEntity();
98
- contactEntity.name = args.name;
99
- contactEntity.alias = args.alias;
100
- contactEntity.uri = args.uri;
101
- contactEntity.identities = args.identities ? args.identities.map((identity) => (0, IdentityEntity_1.identityEntityFrom)(identity)) : [];
102
- return contactEntity;
103
- };
104
- exports.contactEntityFrom = contactEntityFrom;
105
- //# sourceMappingURL=ContactEntity.js.map
98
+ ], PartyTypeEntity.prototype, "validate", null);
99
+ PartyTypeEntity = __decorate([
100
+ (0, typeorm_1.Entity)('PartyType'),
101
+ (0, typeorm_1.Index)('IDX_PartyType_type_tenant_id', ['type', 'tenantId'], { unique: true })
102
+ ], PartyTypeEntity);
103
+ exports.PartyTypeEntity = PartyTypeEntity;
104
+ //# sourceMappingURL=PartyTypeEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartyTypeEntity.js","sourceRoot":"","sources":["../../../src/entities/contact/PartyTypeEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkJ;AAClJ,+CAA2C;AAC3C,uCAAiE;AACjE,qDAAiF;AACjF,8CAA0D;AAC1D,+DAA0D;AAInD,IAAM,eAAe,GAArB,MAAM,eAAe;IA8B1B,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,IA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AC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yBAAW,EAAE,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE;QACrE,QAAQ,EAAE,KAAK;KAChB,CAAC;8BACQ,KAAK;gDAAa;AAE5B;IAAC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC9C,IAAI;kDAAA;AAEhB;IAAC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,IAAI;IAEpB,qHAAqH;;sDAFjG;AAGpB;IAAC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;wDAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;+CAUd;AAhDU,eAAe;IAF3B,IAAA,gBAAM,EAAC,WAAW,CAAC;IACnB,IAAA,eAAK,EAAC,8BAA8B,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACjE,eAAe,CAiD3B;AAjDY,0CAAe"}
@@ -0,0 +1,19 @@
1
+ import { IIssuer, OriginalVerifiableCredential, StatusListCredentialIdMode, StatusListDriverType, StatusListIndexingDirection, StatusListType, StatusPurpose2021 } from '@sphereon/ssi-types';
2
+ import { ProofFormat } from '@veramo/core';
3
+ import { BaseEntity } from 'typeorm';
4
+ import { StatusListEntryEntity } from './StatusList2021EntryEntity';
5
+ export declare class StatusListEntity extends BaseEntity {
6
+ id: string;
7
+ correlationId: string;
8
+ length: number;
9
+ issuer: string | IIssuer;
10
+ type: StatusListType;
11
+ driverType: StatusListDriverType;
12
+ credentialIdMode: StatusListCredentialIdMode;
13
+ proofFormat: ProofFormat;
14
+ indexingDirection: StatusListIndexingDirection;
15
+ statusPurpose: StatusPurpose2021;
16
+ statusListCredential?: OriginalVerifiableCredential;
17
+ statusListEntries: StatusListEntryEntity[];
18
+ }
19
+ //# sourceMappingURL=StatusList2021Entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusList2021Entity.d.ts","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAoD,MAAM,SAAS,CAAA;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,qBAEa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAsBf,MAAM,EAAG,MAAM,GAAG,OAAO,CAAA;IAGzB,IAAI,EAAG,cAAc,CAAA;IAGrB,UAAU,EAAG,oBAAoB,CAAA;IAQjC,gBAAgB,EAAG,0BAA0B,CAAA;IAG7C,WAAW,EAAG,WAAW,CAAA;IAGzB,iBAAiB,EAAG,2BAA2B,CAAA;IAG/C,aAAa,EAAG,iBAAiB,CAAA;IAsBjC,oBAAoB,CAAC,EAAE,4BAA4B,CAAA;IAGnD,iBAAiB,EAAG,qBAAqB,EAAE,CAAA;CAC5C"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StatusListEntity = void 0;
13
+ const ssi_types_1 = require("@sphereon/ssi-types");
14
+ const typeorm_1 = require("typeorm");
15
+ const StatusList2021EntryEntity_1 = require("./StatusList2021EntryEntity");
16
+ let StatusListEntity = class StatusListEntity extends typeorm_1.BaseEntity {
17
+ };
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryColumn)({ name: 'id', type: 'varchar' }),
20
+ __metadata("design:type", String)
21
+ ], StatusListEntity.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ name: 'correlationId', type: 'varchar', nullable: false }),
24
+ __metadata("design:type", String)
25
+ ], StatusListEntity.prototype, "correlationId", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ name: 'length', nullable: false, unique: false }),
28
+ __metadata("design:type", Number)
29
+ ], StatusListEntity.prototype, "length", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({
32
+ name: 'issuer',
33
+ type: 'text',
34
+ nullable: false,
35
+ unique: false,
36
+ transformer: {
37
+ from(value) {
38
+ var _a;
39
+ if ((_a = value === null || value === void 0 ? void 0 : value.trim()) === null || _a === void 0 ? void 0 : _a.startsWith('{')) {
40
+ return JSON.parse(value);
41
+ }
42
+ return value;
43
+ },
44
+ to(value) {
45
+ if (typeof value === 'string') {
46
+ return value;
47
+ }
48
+ return JSON.stringify(value);
49
+ },
50
+ },
51
+ }),
52
+ __metadata("design:type", Object)
53
+ ], StatusListEntity.prototype, "issuer", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)('simple-enum', { name: 'type', enum: ssi_types_1.StatusListType, nullable: false, default: ssi_types_1.StatusListType.StatusList2021 }),
56
+ __metadata("design:type", String)
57
+ ], StatusListEntity.prototype, "type", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)('simple-enum', { name: 'driverType', enum: ssi_types_1.StatusListDriverType, nullable: false, default: ssi_types_1.StatusListDriverType.AGENT_TYPEORM }),
60
+ __metadata("design:type", String)
61
+ ], StatusListEntity.prototype, "driverType", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)('simple-enum', {
64
+ name: 'credentialIdMode',
65
+ enum: ssi_types_1.StatusListCredentialIdMode,
66
+ nullable: false,
67
+ default: ssi_types_1.StatusListCredentialIdMode.ISSUANCE,
68
+ }),
69
+ __metadata("design:type", String)
70
+ ], StatusListEntity.prototype, "credentialIdMode", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'proofFormat', enum: ['lds', 'jwt'], nullable: false, default: 'lds' }),
73
+ __metadata("design:type", String)
74
+ ], StatusListEntity.prototype, "proofFormat", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'indexingDirection', enum: ['rightToLeft'], nullable: false, default: 'rightToLeft' }),
77
+ __metadata("design:type", String)
78
+ ], StatusListEntity.prototype, "indexingDirection", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'statusPurpose', nullable: false, default: 'revocation' }),
81
+ __metadata("design:type", String)
82
+ ], StatusListEntity.prototype, "statusPurpose", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({
85
+ name: 'statusListCredential',
86
+ type: 'text',
87
+ nullable: true,
88
+ unique: false,
89
+ transformer: {
90
+ from(value) {
91
+ if (value === null || value === void 0 ? void 0 : value.startsWith('ey')) {
92
+ return value;
93
+ }
94
+ return JSON.parse(value);
95
+ },
96
+ to(value) {
97
+ if (typeof value === 'string') {
98
+ return value;
99
+ }
100
+ return JSON.stringify(value);
101
+ },
102
+ },
103
+ }),
104
+ __metadata("design:type", Object)
105
+ ], StatusListEntity.prototype, "statusListCredential", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.OneToMany)((type) => StatusList2021EntryEntity_1.StatusListEntryEntity, (entry) => entry.statusList),
108
+ __metadata("design:type", Array)
109
+ ], StatusListEntity.prototype, "statusListEntries", void 0);
110
+ StatusListEntity = __decorate([
111
+ (0, typeorm_1.Entity)('StatusList'),
112
+ (0, typeorm_1.Unique)('UQ_correlationId', ['correlationId'])
113
+ ], StatusListEntity);
114
+ exports.StatusListEntity = StatusListEntity;
115
+ //# sourceMappingURL=StatusList2021Entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusList2021Entity.js","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021Entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAQ4B;AAE5B,qCAAsF;AACtF,2EAAmE;AAI5D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA+E/C,CAAA;AA9EC;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACpC;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDAC9C;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;gDAC5C;AAEf;IAAC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,KAAK;QACb,WAAW,EAAE;YACX,IAAI,CAAC,KAAa;;gBAChB,IAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,0CAAE,UAAU,CAAC,GAAG,CAAC,EAAE;oBAClC,OAAO,IAAI,CAAC,KAAK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EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;;uDAC1D;AAEjC;IAAC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,KAAK;QACb,WAAW,EAAE;YACX,IAAI,CAAC,KAAa;gBAChB,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAA;iBACb;gBACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC;YACD,EAAE,CAAC,KAAmC;gBACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;oBAC7B,OAAO,KAAK,CAAA;iBACb;gBACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;SACF;KACF,CAAC;;8DACiD;AAEnD;IAAC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iDAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;;2DAC7B;AA9EhC,gBAAgB;IAF5B,IAAA,gBAAM,EAAC,YAAY,CAAC;IACpB,IAAA,gBAAM,EAAC,kBAAkB,EAAE,CAAC,eAAe,CAAC,CAAC;GACjC,gBAAgB,CA+E5B;AA/EY,4CAAgB"}
@@ -0,0 +1,11 @@
1
+ import { BaseEntity } from 'typeorm';
2
+ import { StatusListEntity } from './StatusList2021Entity';
3
+ export declare class StatusListEntryEntity extends BaseEntity {
4
+ statusList: StatusListEntity;
5
+ statusListIndex: number;
6
+ credentialId?: string;
7
+ credentialHash?: string;
8
+ correlationId?: string;
9
+ value?: string;
10
+ }
11
+ //# sourceMappingURL=StatusList2021EntryEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusList2021EntryEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021EntryEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA4C,MAAM,SAAS,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,qBAGa,qBAAsB,SAAQ,UAAU;IAGnD,UAAU,EAAG,gBAAgB,CAAA;IAI7B,eAAe,EAAG,MAAM,CAAA;IAGxB,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StatusListEntryEntity = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ const validators_1 = require("../validators");
16
+ const StatusList2021Entity_1 = require("./StatusList2021Entity");
17
+ let StatusListEntryEntity = class StatusListEntryEntity extends typeorm_1.BaseEntity {
18
+ };
19
+ __decorate([
20
+ (0, typeorm_1.PrimaryColumn)({ name: 'statusListId', type: 'varchar' }),
21
+ (0, typeorm_1.ManyToOne)(() => StatusList2021Entity_1.StatusListEntity, (statusList) => statusList.statusListEntries),
22
+ __metadata("design:type", StatusList2021Entity_1.StatusListEntity)
23
+ ], StatusListEntryEntity.prototype, "statusList", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.PrimaryColumn)({ name: 'statusListIndex', nullable: false, unique: false }),
26
+ (0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Status list index is required' }),
27
+ __metadata("design:type", Number)
28
+ ], StatusListEntryEntity.prototype, "statusListIndex", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'credentialId', nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], StatusListEntryEntity.prototype, "credentialId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ name: 'credentialHash', length: 128, nullable: true, unique: false }),
35
+ __metadata("design:type", String)
36
+ ], StatusListEntryEntity.prototype, "credentialHash", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ name: 'correlationId', length: 255, nullable: true, unique: false }),
39
+ __metadata("design:type", String)
40
+ ], StatusListEntryEntity.prototype, "correlationId", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: 'value', length: 50, nullable: true, unique: false }),
43
+ __metadata("design:type", String)
44
+ ], StatusListEntryEntity.prototype, "value", void 0);
45
+ StatusListEntryEntity = __decorate([
46
+ (0, typeorm_1.Entity)('StatusListEntry')
47
+ // @Unique('uq_credential_statuslist', ['statusList', 'credentialId']) // disabled because one prop can be null
48
+ // @Unique('uq_credentialHash_statuslistId', ['statusList', 'credentialHash']) // disabled because one prop can be null
49
+ ], StatusListEntryEntity);
50
+ exports.StatusListEntryEntity = StatusListEntryEntity;
51
+ //# sourceMappingURL=StatusList2021EntryEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusList2021EntryEntity.js","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021EntryEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDA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ApBY,sDAAqB"}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import { BaseConfigEntity } from './entities/contact/BaseConfigEntity';
2
2
  import { BaseLocaleBrandingEntity } from './entities/issuanceBranding/BaseLocaleBrandingEntity';
3
- import { ConnectionEntity, connectionEntityFrom } from './entities/contact/ConnectionEntity';
4
- import { ContactEntity, contactEntityFrom } from './entities/contact/ContactEntity';
5
- import { CorrelationIdentifierEntity, correlationIdentifierEntityFrom } from './entities/contact/CorrelationIdentifierEntity';
6
- import { DidAuthConfigEntity, didAuthConfigEntityFrom } from './entities/contact/DidAuthConfigEntity';
7
- import { IdentityEntity, identityEntityFrom } from './entities/contact/IdentityEntity';
8
- import { IdentityMetadataItemEntity, metadataItemEntityFrom } from './entities/contact/IdentityMetadataItemEntity';
9
- import { OpenIdConfigEntity, openIdConfigEntityFrom } from './entities/contact/OpenIdConfigEntity';
3
+ import { BaseContactEntity } from './entities/contact/BaseContactEntity';
4
+ import { ConnectionEntity } from './entities/contact/ConnectionEntity';
5
+ import { PartyEntity } from './entities/contact/PartyEntity';
6
+ import { CorrelationIdentifierEntity } from './entities/contact/CorrelationIdentifierEntity';
7
+ import { DidAuthConfigEntity } from './entities/contact/DidAuthConfigEntity';
8
+ import { IdentityEntity } from './entities/contact/IdentityEntity';
9
+ import { IdentityMetadataItemEntity } from './entities/contact/IdentityMetadataItemEntity';
10
+ import { OpenIdConfigEntity } from './entities/contact/OpenIdConfigEntity';
10
11
  import { BackgroundAttributesEntity, backgroundAttributesEntityFrom } from './entities/issuanceBranding/BackgroundAttributesEntity';
11
12
  import { CredentialBrandingEntity, credentialBrandingEntityFrom } from './entities/issuanceBranding/CredentialBrandingEntity';
12
13
  import { CredentialLocaleBrandingEntity, credentialLocaleBrandingEntityFrom } from './entities/issuanceBranding/CredentialLocaleBrandingEntity';
@@ -15,13 +16,23 @@ import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/iss
15
16
  import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
16
17
  import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity';
17
18
  import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity';
19
+ import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity';
20
+ import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity';
21
+ import { IStatusListEntity, IStatusListEntryEntity } from './types';
22
+ import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEntity';
23
+ import { PartyTypeEntity } from './entities/contact/PartyTypeEntity';
24
+ import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity';
18
25
  export { ContactStore } from './contact/ContactStore';
19
26
  export { AbstractContactStore } from './contact/AbstractContactStore';
20
27
  export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
21
28
  export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
29
+ export { StatusListStore } from './statusList/StatusListStore';
22
30
  export { DataStoreMigrations } from './migrations';
23
31
  export * from './types';
24
- export declare const DataStoreContactEntities: (typeof BaseConfigEntity)[];
32
+ export * from './utils/contact/MappingUtils';
33
+ export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
25
34
  export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
26
- export { BaseConfigEntity, ConnectionEntity, ContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, metadataItemEntityFrom, connectionEntityFrom, contactEntityFrom, correlationIdentifierEntityFrom, identityEntityFrom, didAuthConfigEntityFrom, openIdConfigEntityFrom, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, };
35
+ export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
36
+ export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
37
+ export { BaseConfigEntity, ConnectionEntity, PartyEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, };
27
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","source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