@sphereon/ssi-sdk.data-store 0.18.2-unstable.8 → 0.18.2-unstable.85
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.
- package/LICENSE +201 -201
- package/README.md +77 -77
- package/dist/contact/AbstractContactStore.d.ts +33 -23
- package/dist/contact/AbstractContactStore.d.ts.map +1 -1
- package/dist/contact/AbstractContactStore.js +6 -6
- package/dist/contact/AbstractContactStore.js.map +1 -1
- package/dist/contact/ContactStore.d.ts +44 -32
- package/dist/contact/ContactStore.d.ts.map +1 -1
- package/dist/contact/ContactStore.js +528 -365
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts +10 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts.map +1 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js +7 -0
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +1 -0
- package/dist/digitalCredential/DigitalCredentialStore.d.ts +15 -0
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +1 -0
- package/dist/digitalCredential/DigitalCredentialStore.js +97 -0
- package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -0
- package/dist/entities/contact/BaseConfigEntity.d.ts +6 -6
- package/dist/entities/contact/BaseConfigEntity.js +33 -33
- package/dist/entities/contact/BaseContactEntity.d.ts +9 -9
- package/dist/entities/contact/BaseContactEntity.js +53 -53
- package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
- package/dist/entities/contact/ConnectionEntity.js +46 -46
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
- package/dist/entities/contact/CorrelationIdentifierEntity.js +71 -71
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +6 -6
- package/dist/entities/contact/DidAuthConfigEntity.js +32 -32
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +14 -13
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +1 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +95 -91
- package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
- package/dist/entities/contact/IdentityEntity.d.ts +20 -20
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +128 -128
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +9 -9
- package/dist/entities/contact/IdentityMetadataItemEntity.js +68 -68
- package/dist/entities/contact/NaturalPersonEntity.d.ts +8 -8
- package/dist/entities/contact/NaturalPersonEntity.js +71 -71
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +10 -10
- package/dist/entities/contact/OpenIdConfigEntity.js +48 -48
- package/dist/entities/contact/OrganizationEntity.d.ts +8 -8
- package/dist/entities/contact/OrganizationEntity.js +66 -66
- package/dist/entities/contact/PartyEntity.d.ts +21 -19
- package/dist/entities/contact/PartyEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyEntity.js +142 -131
- package/dist/entities/contact/PartyEntity.js.map +1 -1
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +12 -12
- package/dist/entities/contact/PartyRelationshipEntity.js +94 -94
- package/dist/entities/contact/PartyTypeEntity.d.ts +14 -14
- package/dist/entities/contact/PartyTypeEntity.js +103 -103
- package/dist/entities/contact/PhysicalAddressEntity.d.ts +21 -0
- package/dist/entities/contact/PhysicalAddressEntity.d.ts.map +1 -0
- package/dist/entities/contact/PhysicalAddressEntity.js +126 -0
- package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts +23 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +1 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +93 -0
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -0
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -26
- package/dist/entities/eventLogger/AuditEventEntity.js +123 -123
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +10 -10
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +73 -73
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +17 -17
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +119 -119
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +14 -14
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +101 -101
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +91 -91
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +38 -38
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +94 -94
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +61 -61
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts +18 -18
- package/dist/entities/statusList2021/StatusList2021Entity.js +114 -114
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +10 -10
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +50 -50
- package/dist/entities/validators/index.d.ts +6 -6
- package/dist/entities/validators/index.js +26 -26
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +6 -6
- package/dist/eventLogger/AbstractEventLoggerStore.js +6 -6
- package/dist/eventLogger/EventLoggerStore.d.ts +12 -12
- package/dist/eventLogger/EventLoggerStore.js +43 -43
- package/dist/index.d.ts +45 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -127
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +19 -19
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -6
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +30 -30
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +390 -374
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/migrations/generic/1-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/1-CreateContacts.js +77 -77
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +77 -77
- package/dist/migrations/generic/3-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/3-CreateContacts.js +77 -77
- package/dist/migrations/generic/4-CreateStatusList.d.ts +6 -6
- package/dist/migrations/generic/4-CreateStatusList.js +71 -71
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/generic/5-CreateAuditEvents.js +77 -77
- package/dist/migrations/generic/{2-CreateContacts.d.ts → 6-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/generic/{2-CreateContacts.js → 6-CreateDigitalCredential.js} +23 -23
- package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -0
- package/dist/migrations/generic/index.d.ts +18 -16
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +30 -27
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +10 -5
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +6 -6
- package/dist/migrations/internal-migrations-ormconfig.js +26 -26
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +56 -56
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +68 -68
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +68 -68
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +6 -6
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js +31 -31
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +42 -42
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/{generic/3-CreateStatusList.d.ts → postgres/1708525189001-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +59 -0
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -0
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +78 -78
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +88 -88
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +104 -107
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +6 -6
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +31 -31
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +28 -28
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/{postgres/CreateStatusList1693866470001-CreateStatusList.d.ts → sqlite/1708525189002-CreateDigitalCredential.d.ts} +2 -2
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts.map +1 -0
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +50 -0
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +1 -0
- package/dist/statusList/IStatusListStore.d.ts +19 -19
- package/dist/statusList/IStatusListStore.js +2 -2
- package/dist/statusList/StatusListStore.d.ts +35 -35
- package/dist/statusList/StatusListStore.js +212 -212
- package/dist/types/contact/IAbstractContactStore.d.ts +109 -74
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
- package/dist/types/contact/IAbstractContactStore.js +2 -2
- package/dist/types/contact/contact.d.ts +196 -173
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +25 -25
- package/dist/types/contact/contact.js.map +1 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts +27 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts.map +1 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +3 -0
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js.map +1 -0
- package/dist/types/digitalCredential/digitalCredential.d.ts +41 -0
- package/dist/types/digitalCredential/digitalCredential.d.ts.map +1 -0
- package/dist/types/digitalCredential/digitalCredential.js +28 -0
- package/dist/types/digitalCredential/digitalCredential.js.map +1 -0
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -9
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js +2 -2
- package/dist/types/eventLogger/eventLogger.d.ts +2 -2
- package/dist/types/eventLogger/eventLogger.js +2 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.js +25 -25
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +58 -58
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +2 -2
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +114 -114
- package/dist/types/issuanceBranding/issuanceBranding.js +2 -2
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +37 -37
- package/dist/types/statusList/IAbstractStatusListStore.js +2 -2
- package/dist/types/statusList/statusList.d.ts +24 -24
- package/dist/types/statusList/statusList.js +2 -2
- package/dist/types/validation/validation.d.ts +3 -3
- package/dist/types/validation/validation.js +2 -2
- package/dist/utils/ValidatorUtils.d.ts +3 -3
- package/dist/utils/ValidatorUtils.js +12 -12
- package/dist/utils/contact/MappingUtils.d.ts +49 -46
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.js +326 -290
- package/dist/utils/contact/MappingUtils.js.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts +9 -0
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -0
- package/dist/utils/digitalCredential/MappingUtils.js +92 -0
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -0
- package/package.json +5 -4
- package/src/__tests__/contact.entities.test.ts +323 -23
- package/src/__tests__/contact.store.test.ts +586 -10
- package/src/__tests__/digitalCredential.entities.test.ts +247 -0
- package/src/__tests__/digitalCredential.store.test.ts +194 -0
- package/src/__tests__/eventLogger.entities.test.ts +73 -73
- package/src/__tests__/eventLogger.store.test.ts +136 -136
- package/src/contact/AbstractContactStore.ts +38 -17
- package/src/contact/ContactStore.ts +715 -501
- package/src/digitalCredential/AbstractDigitalCredentialStore.ts +16 -0
- package/src/digitalCredential/DigitalCredentialStore.ts +107 -0
- package/src/entities/contact/ElectronicAddressEntity.ts +3 -0
- package/src/entities/contact/IdentityEntity.ts +1 -1
- package/src/entities/contact/PartyEntity.ts +11 -1
- package/src/entities/contact/PhysicalAddressEntity.ts +87 -0
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +64 -0
- package/src/entities/eventLogger/AuditEventEntity.ts +99 -99
- package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
- package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
- package/src/eventLogger/EventLoggerStore.ts +62 -62
- package/src/index.ts +131 -113
- package/src/issuanceBranding/IssuanceBrandingStore.ts +78 -62
- package/src/migrations/generic/1-CreateContacts.ts +66 -66
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +64 -64
- package/src/migrations/generic/3-CreateContacts.ts +66 -66
- package/src/migrations/generic/4-CreateStatusList.ts +54 -54
- package/src/migrations/generic/5-CreateAuditEvents.ts +66 -66
- package/src/migrations/generic/6-CreateDigitalCredential.ts +66 -0
- package/src/migrations/generic/index.ts +30 -27
- package/src/migrations/index.ts +8 -1
- package/src/migrations/postgres/1693866470001-CreateStatusList.ts +24 -24
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -33
- package/src/migrations/postgres/1708525189001-CreateDigitalCredential.ts +44 -0
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +158 -163
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
- package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +34 -0
- package/src/types/contact/IAbstractContactStore.ts +58 -8
- package/src/types/contact/contact.ts +29 -4
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +26 -0
- package/src/types/digitalCredential/digitalCredential.ts +45 -0
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
- package/src/types/eventLogger/eventLogger.ts +3 -3
- package/src/types/index.ts +9 -9
- package/src/utils/contact/MappingUtils.ts +39 -1
- package/src/utils/digitalCredential/MappingUtils.ts +112 -0
- package/dist/entities/contact/ContactEntity.d.ts +0 -16
- package/dist/entities/contact/ContactEntity.d.ts.map +0 -1
- package/dist/entities/contact/ContactEntity.js +0 -164
- package/dist/entities/contact/ContactEntity.js.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.js +0 -96
- package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/generic/2-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/2-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/3-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/generic/3-CreateStatusList.js +0 -72
- package/dist/migrations/generic/3-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +0 -32
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/uuid.d.ts +0 -3
- package/dist/migrations/postgres/uuid.d.ts.map +0 -1
- package/dist/migrations/postgres/uuid.js +0 -25
- package/dist/migrations/postgres/uuid.js.map +0 -1
|
@@ -1,95 +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;
|
|
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
95
|
//# sourceMappingURL=PartyRelationshipEntity.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PartyEntity } from './PartyEntity';
|
|
2
|
-
import { PartyTypeEnum } from '../../types';
|
|
3
|
-
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
|
-
}
|
|
1
|
+
import { PartyEntity } from './PartyEntity';
|
|
2
|
+
import { PartyTypeEnum } from '../../types';
|
|
3
|
+
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
15
|
//# sourceMappingURL=PartyTypeEntity.d.ts.map
|
|
@@ -1,104 +1,104 @@
|
|
|
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.PartyTypeEntity = void 0;
|
|
22
|
-
const typeorm_1 = require("typeorm");
|
|
23
|
-
const PartyEntity_1 = require("./PartyEntity");
|
|
24
|
-
const types_1 = require("../../types");
|
|
25
|
-
const class_validator_1 = require("class-validator");
|
|
26
|
-
const validators_1 = require("../validators");
|
|
27
|
-
const ValidatorUtils_1 = require("../../utils/ValidatorUtils");
|
|
28
|
-
let PartyTypeEntity = class PartyTypeEntity {
|
|
29
|
-
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
30
|
-
updateUpdatedDate() {
|
|
31
|
-
this.lastUpdatedAt = new Date();
|
|
32
|
-
}
|
|
33
|
-
validate() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
const validation = yield (0, class_validator_1.validate)(this);
|
|
36
|
-
if (validation.length > 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
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
48
|
-
__metadata("design:type", String)
|
|
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);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ name: 'name', length: 255, nullable: false, unique: true }),
|
|
56
|
-
(0, class_validator_1.IsNotEmpty)({ message: 'Blank names are not allowed' }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], PartyTypeEntity.prototype, "name", void 0);
|
|
59
|
-
__decorate([
|
|
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' }),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], PartyTypeEntity.prototype, "description", void 0);
|
|
64
|
-
__decorate([
|
|
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" }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], PartyTypeEntity.prototype, "tenantId", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.OneToMany)(() => PartyEntity_1.PartyEntity, (party) => party.partyType, {
|
|
71
|
-
nullable: false,
|
|
72
|
-
}),
|
|
73
|
-
__metadata("design:type", Array)
|
|
74
|
-
], PartyTypeEntity.prototype, "parties", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], PartyTypeEntity.prototype, "createdAt", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
81
|
-
__metadata("design:type", Date
|
|
82
|
-
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
83
|
-
)
|
|
84
|
-
], PartyTypeEntity.prototype, "lastUpdatedAt", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.BeforeInsert)(),
|
|
87
|
-
(0, typeorm_1.BeforeUpdate)(),
|
|
88
|
-
__metadata("design:type", Function),
|
|
89
|
-
__metadata("design:paramtypes", []),
|
|
90
|
-
__metadata("design:returntype", void 0)
|
|
91
|
-
], PartyTypeEntity.prototype, "updateUpdatedDate", null);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.BeforeInsert)(),
|
|
94
|
-
(0, typeorm_1.BeforeUpdate)(),
|
|
95
|
-
__metadata("design:type", Function),
|
|
96
|
-
__metadata("design:paramtypes", []),
|
|
97
|
-
__metadata("design:returntype", Promise)
|
|
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;
|
|
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.PartyTypeEntity = void 0;
|
|
22
|
+
const typeorm_1 = require("typeorm");
|
|
23
|
+
const PartyEntity_1 = require("./PartyEntity");
|
|
24
|
+
const types_1 = require("../../types");
|
|
25
|
+
const class_validator_1 = require("class-validator");
|
|
26
|
+
const validators_1 = require("../validators");
|
|
27
|
+
const ValidatorUtils_1 = require("../../utils/ValidatorUtils");
|
|
28
|
+
let PartyTypeEntity = class PartyTypeEntity {
|
|
29
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
30
|
+
updateUpdatedDate() {
|
|
31
|
+
this.lastUpdatedAt = new Date();
|
|
32
|
+
}
|
|
33
|
+
validate() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const validation = yield (0, class_validator_1.validate)(this);
|
|
36
|
+
if (validation.length > 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
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
48
|
+
__metadata("design:type", String)
|
|
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);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'name', length: 255, nullable: false, unique: true }),
|
|
56
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank names are not allowed' }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PartyTypeEntity.prototype, "name", void 0);
|
|
59
|
+
__decorate([
|
|
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' }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], PartyTypeEntity.prototype, "description", void 0);
|
|
64
|
+
__decorate([
|
|
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" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], PartyTypeEntity.prototype, "tenantId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.OneToMany)(() => PartyEntity_1.PartyEntity, (party) => party.partyType, {
|
|
71
|
+
nullable: false,
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], PartyTypeEntity.prototype, "parties", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], PartyTypeEntity.prototype, "createdAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
81
|
+
__metadata("design:type", Date
|
|
82
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
83
|
+
)
|
|
84
|
+
], PartyTypeEntity.prototype, "lastUpdatedAt", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
87
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
88
|
+
__metadata("design:type", Function),
|
|
89
|
+
__metadata("design:paramtypes", []),
|
|
90
|
+
__metadata("design:returntype", void 0)
|
|
91
|
+
], PartyTypeEntity.prototype, "updateUpdatedDate", null);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
94
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
95
|
+
__metadata("design:type", Function),
|
|
96
|
+
__metadata("design:paramtypes", []),
|
|
97
|
+
__metadata("design:returntype", Promise)
|
|
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
104
|
//# sourceMappingURL=PartyTypeEntity.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { PhysicalAddressType } from '../../types';
|
|
3
|
+
import { PartyEntity } from './PartyEntity';
|
|
4
|
+
export declare class PhysicalAddressEntity extends BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
type: PhysicalAddressType;
|
|
7
|
+
streetName: string;
|
|
8
|
+
streetNumber: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
cityName: string;
|
|
11
|
+
provinceName: string;
|
|
12
|
+
countryCode: string;
|
|
13
|
+
buildingName?: string;
|
|
14
|
+
party: PartyEntity;
|
|
15
|
+
partyId?: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
lastUpdatedAt: Date;
|
|
18
|
+
updateUpdatedDate(): void;
|
|
19
|
+
validate(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=PhysicalAddressEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhysicalAddressEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/contact/PhysicalAddressEntity.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EASX,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,mBAAmB,EAAwB,MAAM,aAAa,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,EAAG,MAAM,CAAA;IAIX,IAAI,EAAG,mBAAmB,CAAA;IAI1B,UAAU,EAAG,MAAM,CAAA;IAInB,YAAY,EAAG,MAAM,CAAA;IAIrB,UAAU,EAAG,MAAM,CAAA;IAInB,QAAQ,EAAG,MAAM,CAAA;IAIjB,YAAY,EAAG,MAAM,CAAA;IAIrB,WAAW,EAAG,MAAM,CAAA;IAIpB,YAAY,CAAC,EAAE,MAAM,CAAA;IAKrB,KAAK,EAAG,WAAW,CAAA;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAUhC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
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.PhysicalAddressEntity = void 0;
|
|
22
|
+
const class_validator_1 = require("class-validator");
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const ValidatorUtils_1 = require("../../utils/ValidatorUtils");
|
|
25
|
+
const PartyEntity_1 = require("./PartyEntity");
|
|
26
|
+
let PhysicalAddressEntity = class PhysicalAddressEntity extends typeorm_1.BaseEntity {
|
|
27
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
28
|
+
updateUpdatedDate() {
|
|
29
|
+
this.lastUpdatedAt = new Date();
|
|
30
|
+
}
|
|
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
|
+
const constraint = (0, ValidatorUtils_1.getConstraint)(validation[0]);
|
|
36
|
+
if (constraint) {
|
|
37
|
+
const message = Object.values(constraint)[0];
|
|
38
|
+
return Promise.reject(Error(message));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PhysicalAddressEntity.prototype, "id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'type', length: 255, nullable: false }),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank physical address types are not allowed' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PhysicalAddressEntity.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'street_name', length: 255, nullable: false }),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank street names are not allowed' }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PhysicalAddressEntity.prototype, "streetName", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'street_number', length: 255, nullable: false }),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank street numbers are not allowed' }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PhysicalAddressEntity.prototype, "streetNumber", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'postal_code', length: 255, nullable: false }),
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank postal codes are not allowed' }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PhysicalAddressEntity.prototype, "postalCode", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ name: 'city_name', length: 255, nullable: false }),
|
|
70
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank city names are not allowed' }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PhysicalAddressEntity.prototype, "cityName", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: 'province_name', length: 255, nullable: false }),
|
|
75
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank province names are not allowed' }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], PhysicalAddressEntity.prototype, "provinceName", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'country_code', length: 2, nullable: false }),
|
|
80
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank country codes are not allowed' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], PhysicalAddressEntity.prototype, "countryCode", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ name: 'building_name', length: 255, nullable: true }),
|
|
85
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank building names are not allowed' }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], PhysicalAddressEntity.prototype, "buildingName", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ManyToOne)(() => PartyEntity_1.PartyEntity, (party) => party.physicalAddresses, {
|
|
90
|
+
onDelete: 'CASCADE',
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", PartyEntity_1.PartyEntity)
|
|
93
|
+
], PhysicalAddressEntity.prototype, "party", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ name: 'partyId', nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], PhysicalAddressEntity.prototype, "partyId", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], PhysicalAddressEntity.prototype, "createdAt", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
104
|
+
__metadata("design:type", Date
|
|
105
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
106
|
+
)
|
|
107
|
+
], PhysicalAddressEntity.prototype, "lastUpdatedAt", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
110
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
111
|
+
__metadata("design:type", Function),
|
|
112
|
+
__metadata("design:paramtypes", []),
|
|
113
|
+
__metadata("design:returntype", void 0)
|
|
114
|
+
], PhysicalAddressEntity.prototype, "updateUpdatedDate", null);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
117
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
118
|
+
__metadata("design:type", Function),
|
|
119
|
+
__metadata("design:paramtypes", []),
|
|
120
|
+
__metadata("design:returntype", Promise)
|
|
121
|
+
], PhysicalAddressEntity.prototype, "validate", null);
|
|
122
|
+
PhysicalAddressEntity = __decorate([
|
|
123
|
+
(0, typeorm_1.Entity)('PhysicalAddress')
|
|
124
|
+
], PhysicalAddressEntity);
|
|
125
|
+
exports.PhysicalAddressEntity = PhysicalAddressEntity;
|
|
126
|
+
//# sourceMappingURL=PhysicalAddressEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhysicalAddressEntity.js","sourceRoot":"","sources":["../../../src/entities/contact/PhysicalAddressEntity.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { CredentialCorrelationType, CredentialDocumentFormat, CredentialStateType, CredentialType } from '../../types/digitalCredential/digitalCredential';
|
|
3
|
+
export declare class DigitalCredentialEntity extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
credentialType: CredentialType;
|
|
6
|
+
documentFormat: CredentialDocumentFormat;
|
|
7
|
+
raw: string;
|
|
8
|
+
uniformDocument: string;
|
|
9
|
+
hash: string;
|
|
10
|
+
issuerCorrelationType: CredentialCorrelationType;
|
|
11
|
+
subjectCorrelationType?: CredentialCorrelationType;
|
|
12
|
+
issuerCorrelationId: string;
|
|
13
|
+
subjectCorrelationId?: string;
|
|
14
|
+
verifiedState?: CredentialStateType;
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
lastUpdatedAt: Date;
|
|
18
|
+
expiresAt?: Date;
|
|
19
|
+
issuedAt?: Date;
|
|
20
|
+
verificationDate?: Date;
|
|
21
|
+
revocationDate?: Date;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=DigitalCredentialEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DigitalCredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/digitalCredential/DigitalCredentialEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAChH,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACf,MAAM,iDAAiD,CAAA;AAExD,qBACa,uBAAwB,SAAQ,UAAU;IAErD,EAAE,EAAG,MAAM,CAAA;IAGX,cAAc,EAAG,cAAc,CAAA;IAG/B,cAAc,EAAG,wBAAwB,CAAA;IAGzC,GAAG,EAAG,MAAM,CAAA;IAGZ,eAAe,EAAG,MAAM,CAAA;IAGxB,IAAI,EAAG,MAAM,CAAA;IAGb,qBAAqB,EAAG,yBAAyB,CAAA;IAGjD,sBAAsB,CAAC,EAAE,yBAAyB,CAAA;IAGlD,mBAAmB,EAAG,MAAM,CAAA;IAG5B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,aAAa,CAAC,EAAE,mBAAmB,CAAA;IAGnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAGpB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,QAAQ,CAAC,EAAE,IAAI,CAAA;IAGf,gBAAgB,CAAC,EAAE,IAAI,CAAA;IAGvB,cAAc,CAAC,EAAE,IAAI,CAAA;CACtB"}
|