@sphereon/ssi-sdk.data-store 0.30.2-next.269 → 0.30.2-next.273
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/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts +10 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +70 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +2 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +11 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +4 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +4 -0
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +14 -2
- package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +3 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.js +12 -1
- package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/issuanceBranding.entities.test.ts +125 -4
- package/src/entities/issuanceBranding/CredentialClaimsEntity.ts +44 -0
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +11 -1
- package/src/index.ts +8 -5
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +8 -0
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +6 -0
- package/src/types/issuanceBranding/issuanceBranding.ts +15 -3
- package/src/utils/issuanceBranding/MappingUtils.ts +14 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { CredentialLocaleBrandingEntity } from './CredentialLocaleBrandingEntity';
|
|
3
|
+
export declare class CredentialClaimsEntity extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
credentialLocaleBranding: CredentialLocaleBrandingEntity;
|
|
8
|
+
validate(): Promise<undefined>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CredentialClaimsEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialClaimsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialClaimsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAQX,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAIjF,qBAEa,sBAAuB,SAAQ,UAAU;IAEpD,EAAE,EAAG,MAAM,CAAA;IAIX,GAAG,EAAG,MAAM,CAAA;IAIZ,IAAI,EAAG,MAAM,CAAA;IAMb,wBAAwB,EAAG,8BAA8B,CAAA;IAInD,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.CredentialClaimsEntity = void 0;
|
|
22
|
+
const typeorm_1 = require("typeorm");
|
|
23
|
+
const CredentialLocaleBrandingEntity_1 = require("./CredentialLocaleBrandingEntity");
|
|
24
|
+
const class_validator_1 = require("class-validator");
|
|
25
|
+
const validators_1 = require("../validators");
|
|
26
|
+
let CredentialClaimsEntity = class CredentialClaimsEntity extends typeorm_1.BaseEntity {
|
|
27
|
+
validate() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const validation = yield (0, class_validator_1.validate)(this);
|
|
30
|
+
if (validation.length > 0) {
|
|
31
|
+
return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
|
|
32
|
+
}
|
|
33
|
+
return;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.CredentialClaimsEntity = CredentialClaimsEntity;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CredentialClaimsEntity.prototype, "id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', length: 255, nullable: false, unique: false }),
|
|
44
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank claim keys are not allowed' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CredentialClaimsEntity.prototype, "key", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)('varchar', { name: 'name', length: 255, nullable: false, unique: false }),
|
|
49
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank claim names are not allowed' }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CredentialClaimsEntity.prototype, "name", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity, (credentialLocaleBranding) => credentialLocaleBranding.claims, {
|
|
54
|
+
cascade: ['insert', 'update'],
|
|
55
|
+
onDelete: 'CASCADE'
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity)
|
|
58
|
+
], CredentialClaimsEntity.prototype, "credentialLocaleBranding", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
61
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
62
|
+
__metadata("design:type", Function),
|
|
63
|
+
__metadata("design:paramtypes", []),
|
|
64
|
+
__metadata("design:returntype", Promise)
|
|
65
|
+
], CredentialClaimsEntity.prototype, "validate", null);
|
|
66
|
+
exports.CredentialClaimsEntity = CredentialClaimsEntity = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)('CredentialClaims'),
|
|
68
|
+
(0, typeorm_1.Index)('IDX_CredentialClaimsEntity_credentialLocaleBranding_locale', ['credentialLocaleBranding', 'key'], { unique: true })
|
|
69
|
+
], CredentialClaimsEntity);
|
|
70
|
+
//# sourceMappingURL=CredentialClaimsEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialClaimsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialClaimsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCASgB;AAChB,qFAAiF;AACjF,qDAAqE;AACrE,8CAA0D;AAInD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAU;IAoB9C,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC5E,CAAC;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AA3BY,wDAAsB;AAEjC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC/E,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;mDAC1E;AAIZ;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChF,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;oDAC1E;AAMb;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+DAA8B,EAAE,CAAC,wBAAwD,EAAE,EAAE,CAAC,wBAAwB,CAAC,MAAM,EAAE;QAC9I,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC7B,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACyB,+DAA8B;wEAAA;AAInD;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;sDAOd;iCA1BU,sBAAsB;IAFlC,IAAA,gBAAM,EAAC,kBAAkB,CAAC;IAC1B,IAAA,eAAK,EAAC,4DAA4D,EAAE,CAAC,0BAA0B,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC9G,sBAAsB,CA2BlC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CredentialBrandingEntity } from './CredentialBrandingEntity';
|
|
2
2
|
import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
|
|
3
|
+
import { CredentialClaimsEntity } from './CredentialClaimsEntity';
|
|
3
4
|
export declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
4
5
|
credentialBranding: CredentialBrandingEntity;
|
|
6
|
+
claims: Array<CredentialClaimsEntity>;
|
|
5
7
|
credentialBrandingId: string;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=CredentialLocaleBrandingEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"CredentialLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,qBAEa,8BAA+B,SAAQ,wBAAwB;IAK1E,kBAAkB,EAAG,wBAAwB,CAAA;IAS7C,MAAM,EAAG,KAAK,CAAC,sBAAsB,CAAC,CAAA;IAGtC,oBAAoB,EAAG,MAAM,CAAA;CAC9B"}
|
|
@@ -13,6 +13,7 @@ exports.CredentialLocaleBrandingEntity = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const CredentialBrandingEntity_1 = require("./CredentialBrandingEntity");
|
|
15
15
|
const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
|
|
16
|
+
const CredentialClaimsEntity_1 = require("./CredentialClaimsEntity");
|
|
16
17
|
let CredentialLocaleBrandingEntity = class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
|
|
17
18
|
};
|
|
18
19
|
exports.CredentialLocaleBrandingEntity = CredentialLocaleBrandingEntity;
|
|
@@ -23,6 +24,16 @@ __decorate([
|
|
|
23
24
|
(0, typeorm_1.JoinColumn)({ name: 'credentialBrandingId' }),
|
|
24
25
|
__metadata("design:type", CredentialBrandingEntity_1.CredentialBrandingEntity)
|
|
25
26
|
], CredentialLocaleBrandingEntity.prototype, "credentialBranding", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.OneToMany)(() => CredentialClaimsEntity_1.CredentialClaimsEntity, (claims) => claims.credentialLocaleBranding, {
|
|
29
|
+
cascade: true,
|
|
30
|
+
onDelete: 'CASCADE',
|
|
31
|
+
eager: true,
|
|
32
|
+
nullable: false,
|
|
33
|
+
}),
|
|
34
|
+
(0, typeorm_1.JoinColumn)({ name: 'claim_id' }),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], CredentialLocaleBrandingEntity.prototype, "claims", void 0);
|
|
26
37
|
__decorate([
|
|
27
38
|
(0, typeorm_1.Column)('text', { name: 'credentialBrandingId', nullable: false }),
|
|
28
39
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,yEAAqE;AACrE,yEAAqE;AACrE,qEAAiE;AAI1D,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,mDAAwB;CAkB3E,CAAA;AAlBY,wEAA8B;AAKzC;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mDAAwB,EAAE,CAAC,kBAA4C,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,EAAE;QAC9H,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;8BACxB,mDAAwB;0EAAA;AAS7C;IAPC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAsB,EAAE,CAAC,MAA8B,EAAE,EAAE,CAAC,MAAM,CAAC,wBAAwB,EAAE;QAC5G,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACxB,KAAK;8DAAwB;AAGtC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4EACrC;yCAjBlB,8BAA8B;IAF1C,IAAA,qBAAW,EAAC,0BAA0B,CAAC;IACvC,IAAA,eAAK,EAAC,8DAA8D,EAAE,CAAC,oBAAoB,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC7G,8BAA8B,CAkB1C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEnt
|
|
|
24
24
|
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity';
|
|
25
25
|
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity';
|
|
26
26
|
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity';
|
|
27
|
+
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity';
|
|
28
|
+
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
29
|
+
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
30
|
+
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
|
|
31
|
+
import { CredentialClaimsEntity } from './entities/issuanceBranding/CredentialClaimsEntity';
|
|
27
32
|
export { ContactStore } from './contact/ContactStore';
|
|
28
33
|
export { AbstractContactStore } from './contact/AbstractContactStore';
|
|
29
34
|
export { AbstractDigitalCredentialStore } from './digitalCredential/AbstractDigitalCredentialStore';
|
|
@@ -31,10 +36,6 @@ export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialSto
|
|
|
31
36
|
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
|
|
32
37
|
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
|
|
33
38
|
export { StatusListStore } from './statusList/StatusListStore';
|
|
34
|
-
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity';
|
|
35
|
-
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
36
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
37
|
-
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
|
|
38
39
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
|
|
39
40
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore';
|
|
40
41
|
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
|
|
@@ -50,12 +51,12 @@ export * from './utils/issuanceBranding/MappingUtils';
|
|
|
50
51
|
export * from './utils/presentationDefinition/MappingUtils';
|
|
51
52
|
export * from './utils/hasher';
|
|
52
53
|
export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
|
|
53
|
-
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
54
|
+
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialClaimsEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
54
55
|
export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
|
|
55
56
|
export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
|
|
56
57
|
export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
57
58
|
export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
58
59
|
export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
59
|
-
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof DigitalCredentialEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof PresentationDefinitionItemEntity)[];
|
|
60
|
-
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, DigitalCredentialEntity, MachineStateInfoEntity, PresentationDefinitionItemEntity, ContactMetadataItemEntity, };
|
|
60
|
+
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof DigitalCredentialEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialClaimsEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof PresentationDefinitionItemEntity)[];
|
|
61
|
+
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, DigitalCredentialEntity, MachineStateInfoEntity, PresentationDefinitionItemEntity, ContactMetadataItemEntity, CredentialClaimsEntity };
|
|
61
62
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,E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AAc,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wCAAwC,CAAA;AACtD,cAAc,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,gBAAgB,CAAA;AAE9B,eAAO,MAAM,wBAAwB,6UAiBpC,CAAA;AAED,eAAO,MAAM,iCAAiC,iOAW7C,CAAA;AAED,eAAO,MAAM,uCAAuC,6CAAqC,CAAA;AAEzF,eAAO,MAAM,2BAA2B,4DAA4C,CAAA;AAEpF,eAAO,MAAM,4BAA4B,6BAAqB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,oCAA4B,CAAA;AAE3E,eAAO,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,yuBAQ7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,yBAAyB,EACzB,sBAAsB,EACvB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.StatusListEntity = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStorePresentationDefinitionEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.PDStore = exports.AbstractPDStore = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.DigitalCredentialStore = exports.AbstractDigitalCredentialStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
|
-
exports.ContactMetadataItemEntity = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.DigitalCredentialEntity = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
|
|
18
|
+
exports.CredentialClaimsEntity = exports.ContactMetadataItemEntity = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.DigitalCredentialEntity = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
|
|
19
19
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
20
20
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
21
21
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
@@ -66,6 +66,16 @@ const ElectronicAddressEntity_1 = require("./entities/contact/ElectronicAddressE
|
|
|
66
66
|
Object.defineProperty(exports, "ElectronicAddressEntity", { enumerable: true, get: function () { return ElectronicAddressEntity_1.ElectronicAddressEntity; } });
|
|
67
67
|
const PhysicalAddressEntity_1 = require("./entities/contact/PhysicalAddressEntity");
|
|
68
68
|
Object.defineProperty(exports, "PhysicalAddressEntity", { enumerable: true, get: function () { return PhysicalAddressEntity_1.PhysicalAddressEntity; } });
|
|
69
|
+
const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
|
|
70
|
+
Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
|
|
71
|
+
const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
|
|
72
|
+
Object.defineProperty(exports, "DigitalCredentialEntity", { enumerable: true, get: function () { return DigitalCredentialEntity_1.DigitalCredentialEntity; } });
|
|
73
|
+
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
74
|
+
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
75
|
+
const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
|
|
76
|
+
Object.defineProperty(exports, "ContactMetadataItemEntity", { enumerable: true, get: function () { return ContactMetadataItemEntity_1.ContactMetadataItemEntity; } });
|
|
77
|
+
const CredentialClaimsEntity_1 = require("./entities/issuanceBranding/CredentialClaimsEntity");
|
|
78
|
+
Object.defineProperty(exports, "CredentialClaimsEntity", { enumerable: true, get: function () { return CredentialClaimsEntity_1.CredentialClaimsEntity; } });
|
|
69
79
|
var ContactStore_1 = require("./contact/ContactStore");
|
|
70
80
|
Object.defineProperty(exports, "ContactStore", { enumerable: true, get: function () { return ContactStore_1.ContactStore; } });
|
|
71
81
|
var AbstractContactStore_1 = require("./contact/AbstractContactStore");
|
|
@@ -80,14 +90,6 @@ var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore"
|
|
|
80
90
|
Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
|
|
81
91
|
var StatusListStore_1 = require("./statusList/StatusListStore");
|
|
82
92
|
Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
|
|
83
|
-
const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
|
|
84
|
-
Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
|
|
85
|
-
const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
|
|
86
|
-
Object.defineProperty(exports, "DigitalCredentialEntity", { enumerable: true, get: function () { return DigitalCredentialEntity_1.DigitalCredentialEntity; } });
|
|
87
|
-
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
88
|
-
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
89
|
-
const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
|
|
90
|
-
Object.defineProperty(exports, "ContactMetadataItemEntity", { enumerable: true, get: function () { return ContactMetadataItemEntity_1.ContactMetadataItemEntity; } });
|
|
91
93
|
var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
|
|
92
94
|
Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
|
|
93
95
|
var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
|
|
@@ -144,6 +146,7 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
144
146
|
TextAttributesEntity_1.TextAttributesEntity,
|
|
145
147
|
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
146
148
|
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
149
|
+
CredentialClaimsEntity_1.CredentialClaimsEntity
|
|
147
150
|
];
|
|
148
151
|
exports.DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
|
|
149
152
|
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAuHpE,iGAvHO,mCAAgB,OAuHP;AAtHlB,mGAA+F;AAmI7F,yGAnIO,mDAAwB,OAmIP;AAlI1B,4EAAwE;AAwHtE,kGAxHO,qCAAiB,OAwHP;AAvHnB,0EAAsE;AAqHpE,iGArHO,mCAAgB,OAqHP;AApHlB,gEAA4D;AAqH1D,4FArHO,yBAAW,OAqHP;AApHb,gGAA4F;AAsH1F,4GAtHO,yDAA2B,OAsHP;AArH7B,gFAA4E;AAsH1E,oGAtHO,yCAAmB,OAsHP;AArHrB,sEAAkE;AAsHhE,+FAtHO,+BAAc,OAsHP;AArHhB,8FAA0F;AAsHxF,2GAtHO,uDAA0B,OAsHP;AArH5B,8EAA0E;AAsHxE,mGAtHO,uCAAkB,OAsHP;AArHpB,uGAAmG;AAsHjG,2GAtHO,uDAA0B,OAsHP;AArH5B,mGAA+F;AAsH7F,yGAtHO,mDAAwB,OAsHP;AArH1B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,CAAA;AAErE,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;IAC/B,GAAG,0CAAkC;IACrC,GAAG,qCAA6B;IAChC,GAAG,+CAAuC;CAC3C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628974232-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"1685628974232-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA8D3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAwB3D"}
|
|
@@ -26,6 +26,8 @@ class CreateIssuanceBranding1685628974232 {
|
|
|
26
26
|
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
|
|
27
27
|
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
|
|
28
28
|
yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
|
|
29
|
+
yield queryRunner.query(`CREATE TABLE "CredentialClaims" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "key" character varying(255) NOT NULL, "name" character varying(255) NOT NULL, "credentialLocaleBrandingId" character varying, CONSTRAINT "PK_CredentialClaims_id" PRIMARY KEY ("id"))`);
|
|
30
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`);
|
|
29
31
|
yield queryRunner.query(`CREATE TABLE "CredentialBranding" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "vcHash" character varying(255) NOT NULL, "issuerCorrelationId" character varying(255) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"), CONSTRAINT "PK_CredentialBranding_id" PRIMARY KEY ("id"))`);
|
|
30
32
|
yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
|
|
31
33
|
yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
|
|
@@ -57,6 +59,8 @@ class CreateIssuanceBranding1685628974232 {
|
|
|
57
59
|
yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_BaseLocaleBranding_type"`);
|
|
58
60
|
yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
|
|
59
61
|
yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
|
|
62
|
+
yield queryRunner.query(`ALTER TABLE "CredentialClaims" DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`);
|
|
63
|
+
yield queryRunner.query(`DROP TABLE "CredentialClaims"`);
|
|
60
64
|
yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
|
|
61
65
|
yield queryRunner.query(`DROP TABLE "TextAttributes"`);
|
|
62
66
|
yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAwF9C,CAAC;IAtFc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CACrB,4LAA4L,CAC7L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,0UAA0U,CAC3U,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6OAA6O,CAC9O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,qKAAqK,CACtK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,ivBAAivB,CAClvB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,+IAA+I,CAChJ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mIAAmI,CACpI,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;YAEtG,M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M,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAA;YACjH,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAA;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,gGAAgG,CAAC,CAAA;YACzH,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAA;YACpG,MAAM,WAAW,CAAC,KAAK,CAAC,oGAAoG,CAAC,CAAA;YAC7H,MAAM,WAAW,CAAC,KAAK,CAAC,4GAA4G,CAAC,CAAA;YACrI,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAA;YACjI,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACxD,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAA;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AAzFD,kFAyFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628973231-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"1685628973231-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAoE3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAmD3D"}
|
|
@@ -24,6 +24,8 @@ class CreateIssuanceBranding1685628973231 {
|
|
|
24
24
|
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
|
|
25
25
|
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
|
|
26
26
|
yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
|
|
27
|
+
yield queryRunner.query(`CREATE TABLE "CredentialClaims" ("id" varchar PRIMARY KEY NOT NULL, "key" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "credentialLocaleBrandingId" varchar)`);
|
|
28
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`);
|
|
27
29
|
yield queryRunner.query(`CREATE TABLE "CredentialBranding" ("id" varchar PRIMARY KEY NOT NULL, "vcHash" varchar(255) NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"))`);
|
|
28
30
|
yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
|
|
29
31
|
yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
|
|
@@ -75,6 +77,8 @@ class CreateIssuanceBranding1685628973231 {
|
|
|
75
77
|
yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`);
|
|
76
78
|
yield queryRunner.query(`DROP TABLE "CredentialBranding"`);
|
|
77
79
|
yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
|
|
80
|
+
yield queryRunner.query(`DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`);
|
|
81
|
+
yield queryRunner.query(`DROP TABLE "CredentialClaims"`);
|
|
78
82
|
yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
|
|
79
83
|
yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
|
|
80
84
|
yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628973231-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"1685628973231-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAyH9C,CAAC;IAvHc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,y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vD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AA1HD,kFA0HC"}
|
|
@@ -51,17 +51,29 @@ export interface IBasicImageDimensions extends Omit<IImageDimensions, 'id'> {
|
|
|
51
51
|
}
|
|
52
52
|
export interface IPartialImageDimensions extends Partial<IImageDimensions> {
|
|
53
53
|
}
|
|
54
|
+
export interface ICredentialClaim {
|
|
55
|
+
id: string;
|
|
56
|
+
key: string;
|
|
57
|
+
name: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IBasicCredentialClaim extends Omit<ICredentialClaim, 'id'> {
|
|
60
|
+
}
|
|
61
|
+
export interface IPartialCredentialClaim extends Partial<ICredentialClaim> {
|
|
62
|
+
}
|
|
54
63
|
export interface ICredentialLocaleBranding extends ILocaleBranding {
|
|
64
|
+
claims?: Array<ICredentialClaim>;
|
|
55
65
|
}
|
|
56
|
-
export interface IBasicCredentialLocaleBranding extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text'> {
|
|
66
|
+
export interface IBasicCredentialLocaleBranding extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text' | 'claims'> {
|
|
57
67
|
logo?: IBasicImageAttributes;
|
|
58
68
|
background?: IBasicBackgroundAttributes;
|
|
59
69
|
text?: IBasicTextAttributes;
|
|
70
|
+
claims?: Array<IBasicCredentialClaim>;
|
|
60
71
|
}
|
|
61
|
-
export interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text'>> {
|
|
72
|
+
export interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text' | 'claims'>> {
|
|
62
73
|
logo?: IPartialImageAttributes;
|
|
63
74
|
background?: IPartialBackgroundAttributes;
|
|
64
75
|
text?: IPartialTextAttributes;
|
|
76
|
+
claims?: IPartialCredentialClaim;
|
|
65
77
|
}
|
|
66
78
|
export interface ICredentialBranding {
|
|
67
79
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/types/issuanceBranding/issuanceBranding.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,SAAS,EAAE,IAAI,CAAA;IACf,aAAa,EAAE,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AACD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,YAAY,CAAC;IACxF,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC;AACD,MAAM,WAAW,uBAAwB,SAAQ,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAC5F,UAAU,CAAC,EAAE,uBAAuB,CAAA;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;AACD,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,qBAAqB,EAAE,IAAI,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AAA;IAC3B,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;IAC5C,SAAS,EAAE,IAAI,CAAA;IACf,aAAa,EAAE,IAAI,CAAA;CACpB;AACD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,WAAW,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC1H,cAAc,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAA;CAClD;AACD,MAAM,WAAW,sBAAuB,SAAQ,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAC9F,cAAc,CAAC,EAAE,4BAA4B,CAAA;CAC9C;AAED,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;CAAG;AAEhF,MAAM,WAAW,+BAAgC,SAAQ,gCAAgC;IACvF,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;CAChD;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;CAAG;AAExE,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,cAAc,CAAC,EAAE,sBAAsB,CAAA;CACxC"}
|
|
@@ -7,7 +7,8 @@ import { TextAttributesEntity } from '../../entities/issuanceBranding/TextAttrib
|
|
|
7
7
|
import { IssuerLocaleBrandingEntity } from '../../entities/issuanceBranding/IssuerLocaleBrandingEntity';
|
|
8
8
|
import { CredentialLocaleBrandingEntity } from '../../entities/issuanceBranding/CredentialLocaleBrandingEntity';
|
|
9
9
|
import { ImageDimensionsEntity } from '../../entities/issuanceBranding/ImageDimensionsEntity';
|
|
10
|
-
import {
|
|
10
|
+
import { CredentialClaimsEntity } from '../../entities/issuanceBranding/CredentialClaimsEntity';
|
|
11
|
+
import { IBasicBackgroundAttributes, IBasicCredentialBranding, IBasicCredentialClaim, IBasicCredentialLocaleBranding, IBasicImageAttributes, IBasicImageDimensions, IBasicIssuerBranding, IBasicIssuerLocaleBranding, IBasicTextAttributes, ICredentialBranding, IIssuerBranding, ILocaleBranding } from '../../types';
|
|
11
12
|
export declare const credentialBrandingFrom: (credentialBranding: CredentialBrandingEntity) => ICredentialBranding;
|
|
12
13
|
export declare const issuerBrandingFrom: (issuerBranding: IssuerBrandingEntity) => IIssuerBranding;
|
|
13
14
|
export declare const localeBrandingFrom: (localeBranding: BaseLocaleBrandingEntity) => ILocaleBranding;
|
|
@@ -19,4 +20,5 @@ export declare const imageAttributesEntityFrom: (args: IBasicImageAttributes) =>
|
|
|
19
20
|
export declare const imageDimensionsEntityFrom: (args: IBasicImageDimensions) => ImageDimensionsEntity;
|
|
20
21
|
export declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBrandingEntity;
|
|
21
22
|
export declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
23
|
+
export declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
|
|
22
24
|
//# sourceMappingURL=MappingUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MappingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/issuanceBranding/MappingUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAA;AACnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAA;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAA;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAA;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAA;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAA;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAA;AACvG,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAA;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAA;AAC7F,OAAO,EACL,0BAA0B,EAC1B,wBA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AM,kCAAkC,SAAU,8BAA8B,KAAG,8BAazF,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,qBAAqB,KAAG,qBASvE,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,qBAAqB,KAAG,qBAMvE,CAAA;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAQrE,CAAA;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAKrE,CAAA;AAED,eAAO,MAAM,0BAA0B,SAAU,qBAAqB,KAAG,sBAMxE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialLocaleBrandingEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.localeBrandingFrom = exports.issuerBrandingFrom = exports.credentialBrandingFrom = void 0;
|
|
3
|
+
exports.credentialClaimsEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialLocaleBrandingEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.localeBrandingFrom = exports.issuerBrandingFrom = exports.credentialBrandingFrom = void 0;
|
|
4
4
|
const FormattingUtils_1 = require("../FormattingUtils");
|
|
5
5
|
const validators_1 = require("../../entities/validators");
|
|
6
6
|
const CredentialBrandingEntity_1 = require("../../entities/issuanceBranding/CredentialBrandingEntity");
|
|
@@ -11,6 +11,7 @@ const TextAttributesEntity_1 = require("../../entities/issuanceBranding/TextAttr
|
|
|
11
11
|
const IssuerLocaleBrandingEntity_1 = require("../../entities/issuanceBranding/IssuerLocaleBrandingEntity");
|
|
12
12
|
const CredentialLocaleBrandingEntity_1 = require("../../entities/issuanceBranding/CredentialLocaleBrandingEntity");
|
|
13
13
|
const ImageDimensionsEntity_1 = require("../../entities/issuanceBranding/ImageDimensionsEntity");
|
|
14
|
+
const CredentialClaimsEntity_1 = require("../../entities/issuanceBranding/CredentialClaimsEntity");
|
|
14
15
|
const credentialBrandingFrom = (credentialBranding) => {
|
|
15
16
|
const result = Object.assign(Object.assign({}, credentialBranding), { localeBranding: credentialBranding.localeBranding.map((localeBranding) => (0, exports.localeBrandingFrom)(localeBranding)) });
|
|
16
17
|
return (0, FormattingUtils_1.replaceNullWithUndefined)(result);
|
|
@@ -64,6 +65,9 @@ const credentialLocaleBrandingEntityFrom = (args) => {
|
|
|
64
65
|
credentialLocaleBrandingEntity.description = (0, validators_1.isEmptyString)(args.description) ? undefined : args.description;
|
|
65
66
|
credentialLocaleBrandingEntity.background = args.background ? (0, exports.backgroundAttributesEntityFrom)(args.background) : undefined;
|
|
66
67
|
credentialLocaleBrandingEntity.text = args.text ? (0, exports.textAttributesEntityFrom)(args.text) : undefined;
|
|
68
|
+
credentialLocaleBrandingEntity.claims = args.claims
|
|
69
|
+
? args.claims.map((claim) => (0, exports.credentialClaimsEntityFrom)(claim))
|
|
70
|
+
: [];
|
|
67
71
|
return credentialLocaleBrandingEntity;
|
|
68
72
|
};
|
|
69
73
|
exports.credentialLocaleBrandingEntityFrom = credentialLocaleBrandingEntityFrom;
|
|
@@ -97,4 +101,11 @@ const textAttributesEntityFrom = (args) => {
|
|
|
97
101
|
return textAttributesEntity;
|
|
98
102
|
};
|
|
99
103
|
exports.textAttributesEntityFrom = textAttributesEntityFrom;
|
|
104
|
+
const credentialClaimsEntityFrom = (args) => {
|
|
105
|
+
const credentialClaimsEntity = new CredentialClaimsEntity_1.CredentialClaimsEntity();
|
|
106
|
+
credentialClaimsEntity.key = args.key;
|
|
107
|
+
credentialClaimsEntity.name = args.name;
|
|
108
|
+
return credentialClaimsEntity;
|
|
109
|
+
};
|
|
110
|
+
exports.credentialClaimsEntityFrom = credentialClaimsEntityFrom;
|
|
100
111
|
//# sourceMappingURL=MappingUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MappingUtils.js","sourceRoot":"","sources":["../../../src/utils/issuanceBranding/MappingUtils.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,0DAAyD;AACzD,uGAAmG;AAEnG,+FAA2F;AAC3F,iGAA6F;AAC7F,2GAAuG;AACvG,+FAA2F;AAC3F,2GAAuG;AACvG,mHAA+G;AAC/G,iGAA6F;
|
|
1
|
+
{"version":3,"file":"MappingUtils.js","sourceRoot":"","sources":["../../../src/utils/issuanceBranding/MappingUtils.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,0DAAyD;AACzD,uGAAmG;AAEnG,+FAA2F;AAC3F,iGAA6F;AAC7F,2GAAuG;AACvG,+FAA2F;AAC3F,2GAAuG;AACvG,mHAA+G;AAC/G,iGAA6F;AAC7F,mGAA+F;AAexF,MAAM,sBAAsB,GAAG,CAAC,kBAA4C,EAAuB,EAAE;IAC1G,MAAM,MAAM,mCACP,kBAAkB,KACrB,cAAc,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,cAAwC,EAAE,EAAE,CAAC,IAAA,0BAAkB,EAAC,cAAc,CAAC,CAAC,GACxI,CAAA;IAED,OAAO,IAAA,0CAAwB,EAAC,MAAM,CAAC,CAAA;AACzC,CAAC,CAAA;AAPY,QAAA,sBAAsB,0BAOlC;AAEM,MAAM,kBAAkB,GAAG,CAAC,cAAoC,EAAmB,EAAE;IAC1F,MAAM,MAAM,mCACP,cAAc,KACjB,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,cAAwC,EAAE,EAAE,CAAC,IAAA,0BAAkB,EAAC,cAAc,CAAC,CAAC,GACpI,CAAA;IAED,OAAO,IAAA,0CAAwB,EAAC,MAAM,CAAC,CAAA;AACzC,CAAC,CAAA;AAPY,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.30.2-next.
|
|
3
|
+
"version": "0.30.2-next.273+25c20282",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@sphereon/pex": "5.0.0-unstable.27",
|
|
19
19
|
"@sphereon/ssi-sdk-ext.did-utils": "0.25.0",
|
|
20
20
|
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.25.0",
|
|
21
|
-
"@sphereon/ssi-sdk.agent-config": "0.30.2-next.
|
|
22
|
-
"@sphereon/ssi-sdk.core": "0.30.2-next.
|
|
23
|
-
"@sphereon/ssi-types": "0.30.2-next.
|
|
21
|
+
"@sphereon/ssi-sdk.agent-config": "0.30.2-next.273+25c20282",
|
|
22
|
+
"@sphereon/ssi-sdk.core": "0.30.2-next.273+25c20282",
|
|
23
|
+
"@sphereon/ssi-types": "0.30.2-next.273+25c20282",
|
|
24
24
|
"@veramo/core": "4.2.0",
|
|
25
25
|
"@veramo/utils": "4.2.0",
|
|
26
26
|
"blakejs": "^1.2.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"Contact Store"
|
|
55
55
|
],
|
|
56
56
|
"nx": {},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "25c202827384e0ad10890d708708727e7afb7216"
|
|
58
58
|
}
|
|
@@ -74,6 +74,16 @@ describe('Database entities tests', (): void => {
|
|
|
74
74
|
text: {
|
|
75
75
|
color: '#000000',
|
|
76
76
|
},
|
|
77
|
+
claims: [
|
|
78
|
+
{
|
|
79
|
+
key: 'given_name',
|
|
80
|
+
name: 'Given Name'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'family_name',
|
|
84
|
+
name: 'Surname'
|
|
85
|
+
}
|
|
86
|
+
]
|
|
77
87
|
},
|
|
78
88
|
],
|
|
79
89
|
}
|
|
@@ -112,6 +122,8 @@ describe('Database entities tests', (): void => {
|
|
|
112
122
|
)
|
|
113
123
|
expect(fromDb?.localeBranding[0].text).toBeDefined()
|
|
114
124
|
expect(fromDb?.localeBranding[0].text!.color).toEqual(credentialBranding.localeBranding[0].text!.color)
|
|
125
|
+
expect(fromDb?.localeBranding[0].claims).toBeDefined()
|
|
126
|
+
expect(fromDb?.localeBranding[0].claims.length).toEqual(credentialBranding.localeBranding[0].claims!.length)
|
|
115
127
|
expect(fromDb?.createdAt).toBeDefined()
|
|
116
128
|
expect(fromDb?.lastUpdatedAt).toBeDefined()
|
|
117
129
|
})
|
|
@@ -302,8 +314,8 @@ describe('Database entities tests', (): void => {
|
|
|
302
314
|
|
|
303
315
|
const credentialLocaleBrandingEntity: CredentialLocaleBrandingEntity = credentialLocaleBrandingEntityFrom(localeBranding)
|
|
304
316
|
const fromDb: CredentialLocaleBrandingEntity = await dbConnection
|
|
305
|
-
|
|
306
|
-
|
|
317
|
+
.getRepository(CredentialLocaleBrandingEntity)
|
|
318
|
+
.save(credentialLocaleBrandingEntity)
|
|
307
319
|
|
|
308
320
|
expect(fromDb).toBeDefined()
|
|
309
321
|
expect(fromDb?.alias).toEqual(localeBranding.alias)
|
|
@@ -453,13 +465,122 @@ describe('Database entities tests', (): void => {
|
|
|
453
465
|
}
|
|
454
466
|
|
|
455
467
|
const result: CredentialLocaleBrandingEntity = await dbConnection
|
|
456
|
-
|
|
457
|
-
|
|
468
|
+
.getRepository(CredentialLocaleBrandingEntity)
|
|
469
|
+
.save(updatedCredentialLocaleBranding)
|
|
458
470
|
|
|
459
471
|
expect(result).toBeDefined()
|
|
460
472
|
expect(result?.lastUpdatedAt).not.toEqual(fromDb?.localeBranding[0].lastUpdatedAt)
|
|
461
473
|
})
|
|
462
474
|
|
|
475
|
+
it('Should save only claims branding to database', async (): Promise<void> => {
|
|
476
|
+
const credentialBranding: IBasicCredentialBranding = {
|
|
477
|
+
issuerCorrelationId: 'issuerCorrelationId',
|
|
478
|
+
vcHash: 'vcHash',
|
|
479
|
+
localeBranding: [
|
|
480
|
+
{
|
|
481
|
+
claims: [
|
|
482
|
+
{
|
|
483
|
+
key: 'given_name',
|
|
484
|
+
name: 'Given Name'
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
key: 'family_name',
|
|
488
|
+
name: 'Surname'
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
],
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
|
|
496
|
+
const fromDb: CredentialBrandingEntity = await dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)
|
|
497
|
+
|
|
498
|
+
expect(fromDb).toBeDefined()
|
|
499
|
+
expect(fromDb?.id).toBeDefined()
|
|
500
|
+
expect(fromDb?.issuerCorrelationId).toEqual(credentialBranding.issuerCorrelationId)
|
|
501
|
+
expect(fromDb?.vcHash).toEqual(credentialBranding.vcHash)
|
|
502
|
+
expect(fromDb?.localeBranding).toBeDefined()
|
|
503
|
+
expect(fromDb?.localeBranding.length).toEqual(1)
|
|
504
|
+
expect(fromDb?.localeBranding[0].claims).toBeDefined()
|
|
505
|
+
expect(fromDb?.localeBranding[0].claims.length).toEqual(credentialBranding.localeBranding[0].claims!.length)
|
|
506
|
+
expect(fromDb?.createdAt).toBeDefined()
|
|
507
|
+
expect(fromDb?.lastUpdatedAt).toBeDefined()
|
|
508
|
+
})
|
|
509
|
+
|
|
510
|
+
it('Should enforce unique locale for a credential claim key', async (): Promise<void> => {
|
|
511
|
+
const credentialBranding: IBasicCredentialBranding = {
|
|
512
|
+
issuerCorrelationId: 'issuerCorrelationId',
|
|
513
|
+
vcHash: 'vcHash',
|
|
514
|
+
localeBranding: [
|
|
515
|
+
{
|
|
516
|
+
locale: 'en-US',
|
|
517
|
+
claims: [
|
|
518
|
+
{
|
|
519
|
+
key: 'given_name',
|
|
520
|
+
name: 'Given Name'
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
key: 'given_name',
|
|
524
|
+
name: 'Given Name'
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
|
|
532
|
+
|
|
533
|
+
await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
|
|
534
|
+
'SQLITE_CONSTRAINT: UNIQUE constraint failed: CredentialClaims.credentialLocaleBrandingId, CredentialClaims.key',
|
|
535
|
+
)
|
|
536
|
+
})
|
|
537
|
+
|
|
538
|
+
it('should throw error when saving credential branding with blank claim key', async (): Promise<void> => {
|
|
539
|
+
const credentialBranding: IBasicCredentialBranding = {
|
|
540
|
+
issuerCorrelationId: 'issuerCorrelationId',
|
|
541
|
+
vcHash: 'vcHash',
|
|
542
|
+
localeBranding: [
|
|
543
|
+
{
|
|
544
|
+
claims: [
|
|
545
|
+
{
|
|
546
|
+
key: '',
|
|
547
|
+
name: 'Given Name'
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
],
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
|
|
555
|
+
|
|
556
|
+
await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
|
|
557
|
+
'Blank claim keys are not allowed',
|
|
558
|
+
)
|
|
559
|
+
})
|
|
560
|
+
|
|
561
|
+
it('should throw error when saving credential branding with blank claim name', async (): Promise<void> => {
|
|
562
|
+
const credentialBranding: IBasicCredentialBranding = {
|
|
563
|
+
issuerCorrelationId: 'issuerCorrelationId',
|
|
564
|
+
vcHash: 'vcHash',
|
|
565
|
+
localeBranding: [
|
|
566
|
+
{
|
|
567
|
+
claims: [
|
|
568
|
+
{
|
|
569
|
+
key: 'given_name',
|
|
570
|
+
name: ''
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const credentialBrandingEntity: CredentialBrandingEntity = credentialBrandingEntityFrom(credentialBranding)
|
|
578
|
+
|
|
579
|
+
await expect(dbConnection.getRepository(CredentialBrandingEntity).save(credentialBrandingEntity)).rejects.toThrowError(
|
|
580
|
+
'Blank claim names are not allowed',
|
|
581
|
+
)
|
|
582
|
+
})
|
|
583
|
+
|
|
463
584
|
// Issuer tests
|
|
464
585
|
|
|
465
586
|
it('Should save issuer branding to database', async (): Promise<void> => {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseEntity,
|
|
3
|
+
BeforeInsert,
|
|
4
|
+
BeforeUpdate,
|
|
5
|
+
Column,
|
|
6
|
+
Entity,
|
|
7
|
+
Index,
|
|
8
|
+
ManyToOne,
|
|
9
|
+
PrimaryGeneratedColumn
|
|
10
|
+
} from 'typeorm'
|
|
11
|
+
import { CredentialLocaleBrandingEntity } from './CredentialLocaleBrandingEntity'
|
|
12
|
+
import { validate, Validate, ValidationError } from 'class-validator'
|
|
13
|
+
import { IsNonEmptyStringConstraint } from '../validators'
|
|
14
|
+
|
|
15
|
+
@Entity('CredentialClaims')
|
|
16
|
+
@Index('IDX_CredentialClaimsEntity_credentialLocaleBranding_locale', ['credentialLocaleBranding', 'key'], { unique: true })
|
|
17
|
+
export class CredentialClaimsEntity extends BaseEntity {
|
|
18
|
+
@PrimaryGeneratedColumn('uuid')
|
|
19
|
+
id!: string
|
|
20
|
+
|
|
21
|
+
@Column('varchar', { name: 'key', length: 255, nullable: false, unique: false })
|
|
22
|
+
@Validate(IsNonEmptyStringConstraint, { message: 'Blank claim keys are not allowed' })
|
|
23
|
+
key!: string
|
|
24
|
+
|
|
25
|
+
@Column('varchar', { name: 'name', length: 255, nullable: false, unique: false })
|
|
26
|
+
@Validate(IsNonEmptyStringConstraint, { message: 'Blank claim names are not allowed' })
|
|
27
|
+
name!: string
|
|
28
|
+
|
|
29
|
+
@ManyToOne(() => CredentialLocaleBrandingEntity, (credentialLocaleBranding: CredentialLocaleBrandingEntity) => credentialLocaleBranding.claims, {
|
|
30
|
+
cascade: ['insert', 'update'],
|
|
31
|
+
onDelete: 'CASCADE'
|
|
32
|
+
})
|
|
33
|
+
credentialLocaleBranding!: CredentialLocaleBrandingEntity
|
|
34
|
+
|
|
35
|
+
@BeforeInsert()
|
|
36
|
+
@BeforeUpdate()
|
|
37
|
+
async validate(): Promise<undefined> {
|
|
38
|
+
const validation: Array<ValidationError> = await validate(this)
|
|
39
|
+
if (validation.length > 0) {
|
|
40
|
+
return Promise.reject(Error(Object.values(validation[0].constraints!)[0]))
|
|
41
|
+
}
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ChildEntity, Column, JoinColumn, ManyToOne, Index } from 'typeorm'
|
|
1
|
+
import { ChildEntity, Column, JoinColumn, ManyToOne, Index, OneToMany } from 'typeorm'
|
|
2
2
|
import { CredentialBrandingEntity } from './CredentialBrandingEntity'
|
|
3
3
|
import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity'
|
|
4
|
+
import { CredentialClaimsEntity } from './CredentialClaimsEntity'
|
|
4
5
|
|
|
5
6
|
@ChildEntity('CredentialLocaleBranding')
|
|
6
7
|
@Index('IDX_CredentialLocaleBrandingEntity_credentialBranding_locale', ['credentialBranding', 'locale'], { unique: true })
|
|
@@ -11,6 +12,15 @@ export class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
|
11
12
|
@JoinColumn({ name: 'credentialBrandingId' })
|
|
12
13
|
credentialBranding!: CredentialBrandingEntity
|
|
13
14
|
|
|
15
|
+
@OneToMany(() => CredentialClaimsEntity, (claims: CredentialClaimsEntity) => claims.credentialLocaleBranding, {
|
|
16
|
+
cascade: true,
|
|
17
|
+
onDelete: 'CASCADE',
|
|
18
|
+
eager: true,
|
|
19
|
+
nullable: false,
|
|
20
|
+
})
|
|
21
|
+
@JoinColumn({ name: 'claim_id' })
|
|
22
|
+
claims!: Array<CredentialClaimsEntity>
|
|
23
|
+
|
|
14
24
|
@Column('text', { name: 'credentialBrandingId', nullable: false })
|
|
15
25
|
credentialBrandingId!: string
|
|
16
26
|
}
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,12 @@ import { OrganizationEntity } from './entities/contact/OrganizationEntity'
|
|
|
26
26
|
import { NaturalPersonEntity } from './entities/contact/NaturalPersonEntity'
|
|
27
27
|
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity'
|
|
28
28
|
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity'
|
|
29
|
+
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity'
|
|
30
|
+
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
31
|
+
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
32
|
+
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity'
|
|
33
|
+
import { CredentialClaimsEntity } from './entities/issuanceBranding/CredentialClaimsEntity'
|
|
34
|
+
|
|
29
35
|
export { ContactStore } from './contact/ContactStore'
|
|
30
36
|
export { AbstractContactStore } from './contact/AbstractContactStore'
|
|
31
37
|
export { AbstractDigitalCredentialStore } from './digitalCredential/AbstractDigitalCredentialStore'
|
|
@@ -33,17 +39,12 @@ export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialSto
|
|
|
33
39
|
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore'
|
|
34
40
|
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore'
|
|
35
41
|
export { StatusListStore } from './statusList/StatusListStore'
|
|
36
|
-
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity'
|
|
37
|
-
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity'
|
|
38
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity'
|
|
39
|
-
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity'
|
|
40
42
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore'
|
|
41
43
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore'
|
|
42
44
|
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore'
|
|
43
45
|
export { MachineStateStore } from './machineState/MachineStateStore'
|
|
44
46
|
export { AbstractPDStore } from './presentationDefinition/AbstractPDStore'
|
|
45
47
|
export { PDStore } from './presentationDefinition/PDStore'
|
|
46
|
-
|
|
47
48
|
export {
|
|
48
49
|
DataStoreMigrations,
|
|
49
50
|
DataStoreEventLoggerMigrations,
|
|
@@ -91,6 +92,7 @@ export const DataStoreIssuanceBrandingEntities = [
|
|
|
91
92
|
TextAttributesEntity,
|
|
92
93
|
CredentialLocaleBrandingEntity,
|
|
93
94
|
IssuerLocaleBrandingEntity,
|
|
95
|
+
CredentialClaimsEntity
|
|
94
96
|
]
|
|
95
97
|
|
|
96
98
|
export const DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity]
|
|
@@ -144,4 +146,5 @@ export {
|
|
|
144
146
|
MachineStateInfoEntity,
|
|
145
147
|
PresentationDefinitionItemEntity,
|
|
146
148
|
ContactMetadataItemEntity,
|
|
149
|
+
CredentialClaimsEntity
|
|
147
150
|
}
|
|
@@ -28,6 +28,12 @@ export class CreateIssuanceBranding1685628974232 implements MigrationInterface {
|
|
|
28
28
|
`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`,
|
|
29
29
|
)
|
|
30
30
|
await queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`)
|
|
31
|
+
|
|
32
|
+
await queryRunner.query(`CREATE TABLE "CredentialClaims" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "key" character varying(255) NOT NULL, "name" character varying(255) NOT NULL, "credentialLocaleBrandingId" character varying, CONSTRAINT "PK_CredentialClaims_id" PRIMARY KEY ("id"))`)
|
|
33
|
+
await queryRunner.query(
|
|
34
|
+
`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`
|
|
35
|
+
)
|
|
36
|
+
|
|
31
37
|
await queryRunner.query(
|
|
32
38
|
`CREATE TABLE "CredentialBranding" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "vcHash" character varying(255) NOT NULL, "issuerCorrelationId" character varying(255) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"), CONSTRAINT "PK_CredentialBranding_id" PRIMARY KEY ("id"))`,
|
|
33
39
|
)
|
|
@@ -76,6 +82,8 @@ export class CreateIssuanceBranding1685628974232 implements MigrationInterface {
|
|
|
76
82
|
await queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_BaseLocaleBranding_type"`)
|
|
77
83
|
await queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`)
|
|
78
84
|
await queryRunner.query(`ALTER TABLE "BaseLocaleBranding" DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`)
|
|
85
|
+
await queryRunner.query(`ALTER TABLE "CredentialClaims" DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`)
|
|
86
|
+
await queryRunner.query(`DROP TABLE "CredentialClaims"`)
|
|
79
87
|
await queryRunner.query(`DROP TABLE "BaseLocaleBranding"`)
|
|
80
88
|
await queryRunner.query(`DROP TABLE "TextAttributes"`)
|
|
81
89
|
await queryRunner.query(`DROP TABLE "BackgroundAttributes"`)
|
|
@@ -22,6 +22,10 @@ export class CreateIssuanceBranding1685628973231 implements MigrationInterface {
|
|
|
22
22
|
`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`,
|
|
23
23
|
)
|
|
24
24
|
await queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`)
|
|
25
|
+
await queryRunner.query(`CREATE TABLE "CredentialClaims" ("id" varchar PRIMARY KEY NOT NULL, "key" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "credentialLocaleBrandingId" varchar)`)
|
|
26
|
+
await queryRunner.query(
|
|
27
|
+
`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`
|
|
28
|
+
)
|
|
25
29
|
await queryRunner.query(
|
|
26
30
|
`CREATE TABLE "CredentialBranding" ("id" varchar PRIMARY KEY NOT NULL, "vcHash" varchar(255) NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"))`,
|
|
27
31
|
)
|
|
@@ -108,6 +112,8 @@ export class CreateIssuanceBranding1685628973231 implements MigrationInterface {
|
|
|
108
112
|
await queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`)
|
|
109
113
|
await queryRunner.query(`DROP TABLE "CredentialBranding"`)
|
|
110
114
|
await queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`)
|
|
115
|
+
await queryRunner.query(`DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`)
|
|
116
|
+
await queryRunner.query(`DROP TABLE "CredentialClaims"`)
|
|
111
117
|
await queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`)
|
|
112
118
|
await queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`)
|
|
113
119
|
await queryRunner.query(`DROP TABLE "BaseLocaleBranding"`)
|
|
@@ -52,17 +52,29 @@ export interface IImageDimensions {
|
|
|
52
52
|
export interface IBasicImageDimensions extends Omit<IImageDimensions, 'id'> {}
|
|
53
53
|
export interface IPartialImageDimensions extends Partial<IImageDimensions> {}
|
|
54
54
|
|
|
55
|
-
export interface
|
|
55
|
+
export interface ICredentialClaim {
|
|
56
|
+
id: string
|
|
57
|
+
key: string
|
|
58
|
+
name: string
|
|
59
|
+
}
|
|
60
|
+
export interface IBasicCredentialClaim extends Omit<ICredentialClaim, 'id'> {}
|
|
61
|
+
export interface IPartialCredentialClaim extends Partial<ICredentialClaim> {}
|
|
62
|
+
|
|
63
|
+
export interface ICredentialLocaleBranding extends ILocaleBranding {
|
|
64
|
+
claims?: Array<ICredentialClaim>
|
|
65
|
+
}
|
|
56
66
|
export interface IBasicCredentialLocaleBranding
|
|
57
|
-
extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text'> {
|
|
67
|
+
extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text' | 'claims'> {
|
|
58
68
|
logo?: IBasicImageAttributes
|
|
59
69
|
background?: IBasicBackgroundAttributes
|
|
60
70
|
text?: IBasicTextAttributes
|
|
71
|
+
claims?: Array<IBasicCredentialClaim>
|
|
61
72
|
}
|
|
62
|
-
export interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text'>> {
|
|
73
|
+
export interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text' | 'claims'>> {
|
|
63
74
|
logo?: IPartialImageAttributes
|
|
64
75
|
background?: IPartialBackgroundAttributes
|
|
65
76
|
text?: IPartialTextAttributes
|
|
77
|
+
claims?: IPartialCredentialClaim
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
export interface ICredentialBranding {
|
|
@@ -9,9 +9,10 @@ import { TextAttributesEntity } from '../../entities/issuanceBranding/TextAttrib
|
|
|
9
9
|
import { IssuerLocaleBrandingEntity } from '../../entities/issuanceBranding/IssuerLocaleBrandingEntity'
|
|
10
10
|
import { CredentialLocaleBrandingEntity } from '../../entities/issuanceBranding/CredentialLocaleBrandingEntity'
|
|
11
11
|
import { ImageDimensionsEntity } from '../../entities/issuanceBranding/ImageDimensionsEntity'
|
|
12
|
+
import { CredentialClaimsEntity } from '../../entities/issuanceBranding/CredentialClaimsEntity'
|
|
12
13
|
import {
|
|
13
14
|
IBasicBackgroundAttributes,
|
|
14
|
-
IBasicCredentialBranding,
|
|
15
|
+
IBasicCredentialBranding, IBasicCredentialClaim,
|
|
15
16
|
IBasicCredentialLocaleBranding,
|
|
16
17
|
IBasicImageAttributes,
|
|
17
18
|
IBasicImageDimensions,
|
|
@@ -94,6 +95,9 @@ export const credentialLocaleBrandingEntityFrom = (args: IBasicCredentialLocaleB
|
|
|
94
95
|
credentialLocaleBrandingEntity.description = isEmptyString(args.description) ? undefined : args.description
|
|
95
96
|
credentialLocaleBrandingEntity.background = args.background ? backgroundAttributesEntityFrom(args.background) : undefined
|
|
96
97
|
credentialLocaleBrandingEntity.text = args.text ? textAttributesEntityFrom(args.text) : undefined
|
|
98
|
+
credentialLocaleBrandingEntity.claims = args.claims
|
|
99
|
+
? args.claims.map((claim) => credentialClaimsEntityFrom(claim))
|
|
100
|
+
: []
|
|
97
101
|
|
|
98
102
|
return credentialLocaleBrandingEntity
|
|
99
103
|
}
|
|
@@ -133,3 +137,12 @@ export const textAttributesEntityFrom = (args: IBasicTextAttributes): TextAttrib
|
|
|
133
137
|
|
|
134
138
|
return textAttributesEntity
|
|
135
139
|
}
|
|
140
|
+
|
|
141
|
+
export const credentialClaimsEntityFrom = (args: IBasicCredentialClaim): CredentialClaimsEntity => {
|
|
142
|
+
const credentialClaimsEntity: CredentialClaimsEntity = new CredentialClaimsEntity()
|
|
143
|
+
credentialClaimsEntity.key = args.key
|
|
144
|
+
credentialClaimsEntity.name = args.name
|
|
145
|
+
|
|
146
|
+
return credentialClaimsEntity
|
|
147
|
+
}
|
|
148
|
+
|