@sphereon/ssi-sdk.data-store 0.11.1-unstable.73 → 0.12.0
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/README.md +5 -0
- package/dist/contact/AbstractContactStore.d.ts +1 -2
- package/dist/contact/AbstractContactStore.d.ts.map +1 -1
- package/dist/contact/AbstractContactStore.js.map +1 -1
- package/dist/contact/ContactStore.d.ts +1 -2
- package/dist/contact/ContactStore.d.ts.map +1 -1
- package/dist/contact/ContactStore.js +11 -11
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/entities/contact/ConnectionEntity.d.ts +1 -1
- package/dist/entities/contact/ConnectionEntity.d.ts.map +1 -1
- package/dist/entities/contact/ConnectionEntity.js +4 -4
- package/dist/entities/contact/ConnectionEntity.js.map +1 -1
- package/dist/entities/contact/ContactEntity.d.ts +1 -1
- package/dist/entities/contact/ContactEntity.d.ts.map +1 -1
- package/dist/entities/contact/ContactEntity.js +2 -5
- package/dist/entities/contact/ContactEntity.js.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.js +3 -4
- package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +1 -1
- package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.d.ts +2 -2
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js +4 -7
- package/dist/entities/contact/IdentityEntity.js.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +1 -2
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +1 -1
- package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +11 -0
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +74 -0
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +18 -0
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +120 -0
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +15 -0
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +102 -0
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +9 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +49 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +14 -0
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +92 -0
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +9 -0
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +39 -0
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +14 -0
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +95 -0
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +9 -0
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +49 -0
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +9 -0
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +62 -0
- package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -0
- package/dist/entities/validators/index.d.ts +7 -0
- package/dist/entities/validators/index.d.ts.map +1 -0
- package/dist/entities/validators/index.js +27 -0
- package/dist/entities/validators/index.js.map +1 -0
- package/dist/index.d.ts +15 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -5
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +20 -0
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts.map +1 -0
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +7 -0
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +1 -0
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +31 -0
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -0
- package/dist/issuanceBranding/IssuanceBrandingStore.js +375 -0
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -0
- package/dist/migrations/generic/1-CreateContacts.js +1 -1
- package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +7 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +1 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.js +72 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +1 -0
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +2 -1
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +7 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +67 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -0
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +7 -0
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +1 -0
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +89 -0
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -0
- package/dist/types/{IAbstractContactStore.d.ts → contact/IAbstractContactStore.d.ts} +2 -2
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -0
- package/dist/types/contact/IAbstractContactStore.js.map +1 -0
- package/dist/types/contact/contact.d.ts.map +1 -0
- package/dist/types/contact/contact.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +21 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +59 -0
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts.map +1 -0
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +3 -0
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js.map +1 -0
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +115 -0
- package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -0
- package/dist/types/issuanceBranding/issuanceBranding.js +3 -0
- package/dist/types/issuanceBranding/issuanceBranding.js.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/contact.entities.test.ts +31 -31
- package/src/__tests__/contact.store.test.ts +32 -32
- package/src/__tests__/issuanceBranding.entities.test.ts +844 -0
- package/src/__tests__/issuanceBranding.store.test.ts +1884 -0
- package/src/contact/AbstractContactStore.ts +3 -2
- package/src/contact/ContactStore.ts +2 -4
- package/src/entities/contact/ConnectionEntity.ts +1 -1
- package/src/entities/contact/ContactEntity.ts +5 -7
- package/src/entities/contact/CorrelationIdentifierEntity.ts +4 -4
- package/src/entities/contact/DidAuthConfigEntity.ts +1 -1
- package/src/entities/contact/IdentityEntity.ts +6 -8
- package/src/entities/contact/IdentityMetadataItemEntity.ts +4 -4
- package/src/entities/contact/OpenIdConfigEntity.ts +1 -1
- package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +42 -0
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +86 -0
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +78 -0
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +33 -0
- package/src/entities/issuanceBranding/ImageAttributesEntity.ts +57 -0
- package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +22 -0
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +72 -0
- package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +33 -0
- package/src/entities/issuanceBranding/TextAttributesEntity.ts +31 -0
- package/src/entities/validators/index.ts +16 -0
- package/src/index.ts +42 -5
- package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +41 -0
- package/src/issuanceBranding/IssuanceBrandingStore.ts +544 -0
- package/src/migrations/generic/1-CreateContacts.ts +1 -1
- package/src/migrations/generic/1-CreateIssuanceBranding.ts +54 -0
- package/src/migrations/generic/index.ts +2 -1
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +83 -0
- package/src/migrations/sqlite/1659463069549-CreateContacts.ts +0 -1
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +119 -0
- package/src/types/{IAbstractContactStore.ts → contact/IAbstractContactStore.ts} +3 -2
- package/src/types/index.ts +4 -0
- package/src/types/issuanceBranding/IAbstractIssuanceBrandingStore.ts +85 -0
- package/src/types/issuanceBranding/issuanceBranding.ts +120 -0
- package/dist/types/IAbstractContactStore.d.ts.map +0 -1
- package/dist/types/IAbstractContactStore.js.map +0 -1
- package/dist/types/contact.d.ts.map +0 -1
- package/dist/types/contact.js.map +0 -1
- /package/dist/types/{IAbstractContactStore.js → contact/IAbstractContactStore.js} +0 -0
- /package/dist/types/{contact.d.ts → contact/contact.d.ts} +0 -0
- /package/dist/types/{contact.js → contact/contact.js} +0 -0
- /package/src/types/{contact.ts → contact/contact.ts} +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.issuerBrandingEntityFrom = exports.IssuerBrandingEntity = void 0;
|
|
22
|
+
const typeorm_1 = require("typeorm");
|
|
23
|
+
const class_validator_1 = require("class-validator");
|
|
24
|
+
const IssuerLocaleBrandingEntity_1 = require("./IssuerLocaleBrandingEntity");
|
|
25
|
+
let IssuerBrandingEntity = class IssuerBrandingEntity extends typeorm_1.BaseEntity {
|
|
26
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
27
|
+
updateUpdatedDate() {
|
|
28
|
+
this.lastUpdatedAt = new Date();
|
|
29
|
+
}
|
|
30
|
+
validate() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
const validation = yield (0, class_validator_1.validate)(this);
|
|
33
|
+
if (validation.length > 0) {
|
|
34
|
+
return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], IssuerBrandingEntity.prototype, "id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'issuerCorrelationId', length: 255, nullable: false, unique: true }),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Blank issuerCorrelationIds are not allowed' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], IssuerBrandingEntity.prototype, "issuerCorrelationId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.OneToMany)(() => IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity, (issuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.issuerBranding, {
|
|
51
|
+
cascade: true,
|
|
52
|
+
onDelete: 'CASCADE',
|
|
53
|
+
eager: true,
|
|
54
|
+
nullable: false,
|
|
55
|
+
}),
|
|
56
|
+
(0, class_validator_1.ArrayMinSize)(1, { message: 'localeBranding cannot be empty' }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], IssuerBrandingEntity.prototype, "localeBranding", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], IssuerBrandingEntity.prototype, "createdAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'last_updated_at', nullable: false }),
|
|
65
|
+
__metadata("design:type", Date
|
|
66
|
+
// By default, @UpdateDateColumn in TypeORM updates the timestamp only when the entity's top-level properties change.
|
|
67
|
+
)
|
|
68
|
+
], IssuerBrandingEntity.prototype, "lastUpdatedAt", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
71
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
72
|
+
__metadata("design:type", Function),
|
|
73
|
+
__metadata("design:paramtypes", []),
|
|
74
|
+
__metadata("design:returntype", void 0)
|
|
75
|
+
], IssuerBrandingEntity.prototype, "updateUpdatedDate", null);
|
|
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", Promise)
|
|
82
|
+
], IssuerBrandingEntity.prototype, "validate", null);
|
|
83
|
+
IssuerBrandingEntity = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)('IssuerBranding'),
|
|
85
|
+
(0, typeorm_1.Index)('IDX_IssuerBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
|
|
86
|
+
], IssuerBrandingEntity);
|
|
87
|
+
exports.IssuerBrandingEntity = IssuerBrandingEntity;
|
|
88
|
+
const issuerBrandingEntityFrom = (args) => {
|
|
89
|
+
const issuerBrandingEntity = new IssuerBrandingEntity();
|
|
90
|
+
issuerBrandingEntity.issuerCorrelationId = args.issuerCorrelationId;
|
|
91
|
+
issuerBrandingEntity.localeBranding = args.localeBranding.map((localeBranding) => (0, IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom)(localeBranding));
|
|
92
|
+
return issuerBrandingEntity;
|
|
93
|
+
};
|
|
94
|
+
exports.issuerBrandingEntityFrom = issuerBrandingEntityFrom;
|
|
95
|
+
//# sourceMappingURL=IssuerBrandingEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,6EAAyG;AAKlG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IA2BlD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,M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,CAAC;GAClE,oBAAoB,CA2ChC;AA3CY,oDAAoB;AA6C1B,MAAM,wBAAwB,GAAG,CAAC,IAA0B,EAAwB,EAAE;IAC3F,MAAM,oBAAoB,GAAyB,IAAI,oBAAoB,EAAE,CAAA;IAC7E,oBAAoB,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAA;IACnE,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,cAA0C,EAAE,EAAE,CAC3G,IAAA,2DAA8B,EAAC,cAAc,CAAC,CAC/C,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AARY,QAAA,wBAAwB,4BAQpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBasicIssuerLocaleBranding } from '../../types';
|
|
2
|
+
import { IssuerBrandingEntity } from './IssuerBrandingEntity';
|
|
3
|
+
import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
|
|
4
|
+
export declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
5
|
+
issuerBranding: IssuerBrandingEntity;
|
|
6
|
+
issuerBrandingId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const issuerLocaleBrandingEntityFrom: (args: IBasicIssuerLocaleBranding) => IssuerLocaleBrandingEntity;
|
|
9
|
+
//# sourceMappingURL=IssuerLocaleBrandingEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssuerLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,qBAEa,0BAA2B,SAAQ,wBAAwB;IAKtE,cAAc,EAAG,oBAAoB,CAAA;IAGrC,gBAAgB,EAAG,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,8BAA8B,SAAU,0BAA0B,KAAG,0BAUjF,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.issuerLocaleBrandingEntityFrom = exports.IssuerLocaleBrandingEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BackgroundAttributesEntity_1 = require("./BackgroundAttributesEntity");
|
|
15
|
+
const ImageAttributesEntity_1 = require("./ImageAttributesEntity");
|
|
16
|
+
const IssuerBrandingEntity_1 = require("./IssuerBrandingEntity");
|
|
17
|
+
const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
|
|
18
|
+
const TextAttributesEntity_1 = require("./TextAttributesEntity");
|
|
19
|
+
const validators_1 = require("../validators");
|
|
20
|
+
let IssuerLocaleBrandingEntity = class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.ManyToOne)(() => IssuerBrandingEntity_1.IssuerBrandingEntity, (issuerBranding) => issuerBranding.localeBranding, {
|
|
24
|
+
onDelete: 'CASCADE',
|
|
25
|
+
}),
|
|
26
|
+
(0, typeorm_1.JoinColumn)({ name: 'issuerBrandingId' }),
|
|
27
|
+
__metadata("design:type", IssuerBrandingEntity_1.IssuerBrandingEntity)
|
|
28
|
+
], IssuerLocaleBrandingEntity.prototype, "issuerBranding", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'issuerBrandingId', nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], IssuerLocaleBrandingEntity.prototype, "issuerBrandingId", void 0);
|
|
33
|
+
IssuerLocaleBrandingEntity = __decorate([
|
|
34
|
+
(0, typeorm_1.ChildEntity)('IssuerLocaleBranding'),
|
|
35
|
+
(0, typeorm_1.Index)('IDX_IssuerLocaleBrandingEntity_issuerBranding_locale', ['issuerBranding', 'locale'], { unique: true })
|
|
36
|
+
], IssuerLocaleBrandingEntity);
|
|
37
|
+
exports.IssuerLocaleBrandingEntity = IssuerLocaleBrandingEntity;
|
|
38
|
+
const issuerLocaleBrandingEntityFrom = (args) => {
|
|
39
|
+
const issuerLocaleBrandingEntity = new IssuerLocaleBrandingEntity();
|
|
40
|
+
issuerLocaleBrandingEntity.alias = (0, validators_1.isEmptyString)(args.alias) ? undefined : args.alias;
|
|
41
|
+
issuerLocaleBrandingEntity.locale = args.locale ? args.locale : '';
|
|
42
|
+
issuerLocaleBrandingEntity.logo = args.logo ? (0, ImageAttributesEntity_1.imageAttributesEntityFrom)(args.logo) : undefined;
|
|
43
|
+
issuerLocaleBrandingEntity.description = (0, validators_1.isEmptyString)(args.description) ? undefined : args.description;
|
|
44
|
+
issuerLocaleBrandingEntity.background = args.background ? (0, BackgroundAttributesEntity_1.backgroundAttributesEntityFrom)(args.background) : undefined;
|
|
45
|
+
issuerLocaleBrandingEntity.text = args.text ? (0, TextAttributesEntity_1.textAttributesEntityFrom)(args.text) : undefined;
|
|
46
|
+
return issuerLocaleBrandingEntity;
|
|
47
|
+
};
|
|
48
|
+
exports.issuerLocaleBrandingEntityFrom = issuerLocaleBrandingEntityFrom;
|
|
49
|
+
//# sourceMappingURL=IssuerLocaleBrandingEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssuerLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAE3E,6EAA6E;AAC7E,mEAAmE;AACnE,iEAA6D;AAC7D,yEAAqE;AACrE,iEAAiE;AACjE,8CAA6C;AAItC,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mDAAwB;CASvE,CAAA;AARC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAoB,EAAE,CAAC,cAAoC,EAAE,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE;QAC9G,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BACxB,2CAAoB;kEAAA;AAErC;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oEAC7B;AARd,0BAA0B;IAFtC,IAAA,qBAAW,EAAC,sBAAsB,CAAC;IACnC,IAAA,eAAK,EAAC,sDAAsD,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACjG,0BAA0B,CAStC;AATY,gEAA0B;AAWhC,MAAM,8BAA8B,GAAG,CAAC,IAAgC,EAA8B,EAAE;IAC7G,MAAM,0BAA0B,GAA+B,IAAI,0BAA0B,EAAE,CAAA;IAC/F,0BAA0B,CAAC,KAAK,GAAG,IAAA,0BAAa,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IACrF,0BAA0B,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;IAClE,0BAA0B,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,iDAAyB,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAC9F,0BAA0B,CAAC,WAAW,GAAG,IAAA,0BAAa,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAA;IACvG,0BAA0B,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,2DAA8B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACrH,0BAA0B,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,+CAAwB,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAE7F,OAAO,0BAA0B,CAAA;AACnC,CAAC,CAAA;AAVY,QAAA,8BAA8B,kCAU1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { IBasicTextAttributes } from '../../types';
|
|
3
|
+
export declare class TextAttributesEntity extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
validate(): Promise<undefined>;
|
|
7
|
+
}
|
|
8
|
+
export declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
9
|
+
//# sourceMappingURL=TextAttributesEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsE,MAAM,SAAS,CAAA;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,qBACa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,CAAC,EAAE,MAAM,CAAA;IAIR,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAKrE,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.textAttributesEntityFrom = exports.TextAttributesEntity = void 0;
|
|
22
|
+
const typeorm_1 = require("typeorm");
|
|
23
|
+
const class_validator_1 = require("class-validator");
|
|
24
|
+
const validators_1 = require("../validators");
|
|
25
|
+
let TextAttributesEntity = class TextAttributesEntity extends typeorm_1.BaseEntity {
|
|
26
|
+
validate() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const validation = yield (0, class_validator_1.validate)(this);
|
|
29
|
+
if (validation.length > 0) {
|
|
30
|
+
return Promise.reject(Error(Object.values(validation[0].constraints)[0]));
|
|
31
|
+
}
|
|
32
|
+
return;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TextAttributesEntity.prototype, "id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'color', length: 255, nullable: true, unique: false }),
|
|
42
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank text colors are not allowed' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TextAttributesEntity.prototype, "color", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
47
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], TextAttributesEntity.prototype, "validate", null);
|
|
52
|
+
TextAttributesEntity = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)('TextAttributes')
|
|
54
|
+
], TextAttributesEntity);
|
|
55
|
+
exports.TextAttributesEntity = TextAttributesEntity;
|
|
56
|
+
const textAttributesEntityFrom = (args) => {
|
|
57
|
+
const textAttributesEntity = new TextAttributesEntity();
|
|
58
|
+
textAttributesEntity.color = (0, validators_1.isEmptyString)(args.color) ? undefined : args.color;
|
|
59
|
+
return textAttributesEntity;
|
|
60
|
+
};
|
|
61
|
+
exports.textAttributesEntityFrom = textAttributesEntityFrom;
|
|
62
|
+
//# sourceMappingURL=TextAttributesEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwG;AAExG,qDAAqE;AACrE,8CAAyE;AAGlE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAU5C,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAA;YAC/D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;aAC3E;YACD,OAAM;QACR,CAAC;KAAA;CACF,CAAA;AAhBC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACpB;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;mDACzE;AAIR;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;oDAOd;AAhBU,oBAAoB;IADhC,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,oBAAoB,CAiBhC;AAjBY,oDAAoB;AAmB1B,MAAM,wBAAwB,GAAG,CAAC,IAA0B,EAAwB,EAAE;IAC3F,MAAM,oBAAoB,GAAyB,IAAI,oBAAoB,EAAE,CAAA;IAC7E,oBAAoB,CAAC,KAAK,GAAG,IAAA,0BAAa,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IAE/E,OAAO,oBAAoB,CAAA;AAC7B,CAAC,CAAA;AALY,QAAA,wBAAwB,4BAKpC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ValidationArguments, ValidatorConstraintInterface } from 'class-validator';
|
|
2
|
+
export declare class IsNonEmptyStringConstraint implements ValidatorConstraintInterface {
|
|
3
|
+
validate(value: string, args: ValidationArguments): boolean;
|
|
4
|
+
defaultMessage(args: ValidationArguments): string;
|
|
5
|
+
}
|
|
6
|
+
export declare const isEmptyString: (value: any) => boolean;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAuB,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAExG,qBACa,0BAA2B,YAAW,4BAA4B;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO;IAI3D,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM;CAGlD;AAED,eAAO,MAAM,aAAa,UAAW,GAAG,KAAG,OAE1C,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.isEmptyString = exports.IsNonEmptyStringConstraint = void 0;
|
|
10
|
+
const class_validator_1 = require("class-validator");
|
|
11
|
+
let IsNonEmptyStringConstraint = class IsNonEmptyStringConstraint {
|
|
12
|
+
validate(value, args) {
|
|
13
|
+
return !(0, exports.isEmptyString)(value);
|
|
14
|
+
}
|
|
15
|
+
defaultMessage(args) {
|
|
16
|
+
return `${args.property} must not be an empty string.`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
IsNonEmptyStringConstraint = __decorate([
|
|
20
|
+
(0, class_validator_1.ValidatorConstraint)({ name: 'isNonEmptyString', async: false })
|
|
21
|
+
], IsNonEmptyStringConstraint);
|
|
22
|
+
exports.IsNonEmptyStringConstraint = IsNonEmptyStringConstraint;
|
|
23
|
+
const isEmptyString = (value) => {
|
|
24
|
+
return typeof value === 'string' && value.trim().length === 0;
|
|
25
|
+
};
|
|
26
|
+
exports.isEmptyString = isEmptyString;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/validators/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAAwG;AAGjG,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,QAAQ,CAAC,KAAa,EAAE,IAAyB;QAC/C,OAAO,CAAC,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAED,cAAc,CAAC,IAAyB;QACtC,OAAO,GAAG,IAAI,CAAC,QAAQ,+BAA+B,CAAA;IACxD,CAAC;CACF,CAAA;AARY,0BAA0B;IADtC,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACnD,0BAA0B,CAQtC;AARY,gEAA0B;AAUhC,MAAM,aAAa,GAAG,CAAC,KAAU,EAAW,EAAE;IACnD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAA;AAC/D,CAAC,CAAA;AAFY,QAAA,aAAa,iBAEzB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseConfigEntity } from './entities/contact/BaseConfigEntity';
|
|
2
|
+
import { BaseLocaleBrandingEntity } from './entities/issuanceBranding/BaseLocaleBrandingEntity';
|
|
2
3
|
import { ConnectionEntity, connectionEntityFrom } from './entities/contact/ConnectionEntity';
|
|
3
4
|
import { ContactEntity, contactEntityFrom } from './entities/contact/ContactEntity';
|
|
4
5
|
import { CorrelationIdentifierEntity, correlationIdentifierEntityFrom } from './entities/contact/CorrelationIdentifierEntity';
|
|
@@ -6,11 +7,21 @@ import { DidAuthConfigEntity, didAuthConfigEntityFrom } from './entities/contact
|
|
|
6
7
|
import { IdentityEntity, identityEntityFrom } from './entities/contact/IdentityEntity';
|
|
7
8
|
import { IdentityMetadataItemEntity, metadataItemEntityFrom } from './entities/contact/IdentityMetadataItemEntity';
|
|
8
9
|
import { OpenIdConfigEntity, openIdConfigEntityFrom } from './entities/contact/OpenIdConfigEntity';
|
|
10
|
+
import { BackgroundAttributesEntity, backgroundAttributesEntityFrom } from './entities/issuanceBranding/BackgroundAttributesEntity';
|
|
11
|
+
import { CredentialBrandingEntity, credentialBrandingEntityFrom } from './entities/issuanceBranding/CredentialBrandingEntity';
|
|
12
|
+
import { CredentialLocaleBrandingEntity, credentialLocaleBrandingEntityFrom } from './entities/issuanceBranding/CredentialLocaleBrandingEntity';
|
|
13
|
+
import { ImageAttributesEntity, imageAttributesEntityFrom } from './entities/issuanceBranding/ImageAttributesEntity';
|
|
14
|
+
import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/issuanceBranding/ImageDimensionsEntity';
|
|
15
|
+
import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
|
|
16
|
+
import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity';
|
|
17
|
+
import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity';
|
|
9
18
|
export { ContactStore } from './contact/ContactStore';
|
|
10
19
|
export { AbstractContactStore } from './contact/AbstractContactStore';
|
|
11
|
-
export
|
|
12
|
-
export {
|
|
13
|
-
export * from './types/contact';
|
|
14
|
-
export * from './types/IAbstractContactStore';
|
|
20
|
+
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
|
|
21
|
+
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
|
|
15
22
|
export { DataStoreMigrations } from './migrations';
|
|
23
|
+
export * from './types';
|
|
24
|
+
export declare const DataStoreContactEntities: (typeof BaseConfigEntity)[];
|
|
25
|
+
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
26
|
+
export { BaseConfigEntity, ConnectionEntity, ContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, metadataItemEntityFrom, connectionEntityFrom, contactEntityFrom, correlationIdentifierEntityFrom, identityEntityFrom, didAuthConfigEntityFrom, openIdConfigEntityFrom, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, };
|
|
16
27
|
//# 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,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACnF,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAA;AAC7H,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AACrG,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtF,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AAClH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAA;
|
|
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,gBAAgB,EAAE,oBAAo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;AAClD,cAAc,SAAS,CAAA;AAEvB,eAAO,MAAM,wBAAwB,6BASpC,CAAA;AAED,eAAO,MAAM,iCAAiC,iMAU7C,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,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,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,+BAA+B,EAC/B,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,GACnC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.openIdConfigEntityFrom = exports.didAuthConfigEntityFrom = exports.identityEntityFrom = exports.correlationIdentifierEntityFrom = exports.contactEntityFrom = exports.connectionEntityFrom = exports.metadataItemEntityFrom = 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.ContactEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
18
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
19
19
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
20
|
+
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
21
|
+
Object.defineProperty(exports, "BaseLocaleBrandingEntity", { enumerable: true, get: function () { return BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity; } });
|
|
20
22
|
const ConnectionEntity_1 = require("./entities/contact/ConnectionEntity");
|
|
21
23
|
Object.defineProperty(exports, "ConnectionEntity", { enumerable: true, get: function () { return ConnectionEntity_1.ConnectionEntity; } });
|
|
22
24
|
Object.defineProperty(exports, "connectionEntityFrom", { enumerable: true, get: function () { return ConnectionEntity_1.connectionEntityFrom; } });
|
|
@@ -38,10 +40,41 @@ Object.defineProperty(exports, "metadataItemEntityFrom", { enumerable: true, get
|
|
|
38
40
|
const OpenIdConfigEntity_1 = require("./entities/contact/OpenIdConfigEntity");
|
|
39
41
|
Object.defineProperty(exports, "OpenIdConfigEntity", { enumerable: true, get: function () { return OpenIdConfigEntity_1.OpenIdConfigEntity; } });
|
|
40
42
|
Object.defineProperty(exports, "openIdConfigEntityFrom", { enumerable: true, get: function () { return OpenIdConfigEntity_1.openIdConfigEntityFrom; } });
|
|
43
|
+
const BackgroundAttributesEntity_1 = require("./entities/issuanceBranding/BackgroundAttributesEntity");
|
|
44
|
+
Object.defineProperty(exports, "BackgroundAttributesEntity", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.BackgroundAttributesEntity; } });
|
|
45
|
+
Object.defineProperty(exports, "backgroundAttributesEntityFrom", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.backgroundAttributesEntityFrom; } });
|
|
46
|
+
const CredentialBrandingEntity_1 = require("./entities/issuanceBranding/CredentialBrandingEntity");
|
|
47
|
+
Object.defineProperty(exports, "CredentialBrandingEntity", { enumerable: true, get: function () { return CredentialBrandingEntity_1.CredentialBrandingEntity; } });
|
|
48
|
+
Object.defineProperty(exports, "credentialBrandingEntityFrom", { enumerable: true, get: function () { return CredentialBrandingEntity_1.credentialBrandingEntityFrom; } });
|
|
49
|
+
const CredentialLocaleBrandingEntity_1 = require("./entities/issuanceBranding/CredentialLocaleBrandingEntity");
|
|
50
|
+
Object.defineProperty(exports, "CredentialLocaleBrandingEntity", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity; } });
|
|
51
|
+
Object.defineProperty(exports, "credentialLocaleBrandingEntityFrom", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.credentialLocaleBrandingEntityFrom; } });
|
|
52
|
+
const ImageAttributesEntity_1 = require("./entities/issuanceBranding/ImageAttributesEntity");
|
|
53
|
+
Object.defineProperty(exports, "ImageAttributesEntity", { enumerable: true, get: function () { return ImageAttributesEntity_1.ImageAttributesEntity; } });
|
|
54
|
+
Object.defineProperty(exports, "imageAttributesEntityFrom", { enumerable: true, get: function () { return ImageAttributesEntity_1.imageAttributesEntityFrom; } });
|
|
55
|
+
const ImageDimensionsEntity_1 = require("./entities/issuanceBranding/ImageDimensionsEntity");
|
|
56
|
+
Object.defineProperty(exports, "ImageDimensionsEntity", { enumerable: true, get: function () { return ImageDimensionsEntity_1.ImageDimensionsEntity; } });
|
|
57
|
+
Object.defineProperty(exports, "imageDimensionsEntityFrom", { enumerable: true, get: function () { return ImageDimensionsEntity_1.imageDimensionsEntityFrom; } });
|
|
58
|
+
const IssuerLocaleBrandingEntity_1 = require("./entities/issuanceBranding/IssuerLocaleBrandingEntity");
|
|
59
|
+
Object.defineProperty(exports, "IssuerLocaleBrandingEntity", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity; } });
|
|
60
|
+
Object.defineProperty(exports, "issuerLocaleBrandingEntityFrom", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom; } });
|
|
61
|
+
const IssuerBrandingEntity_1 = require("./entities/issuanceBranding/IssuerBrandingEntity");
|
|
62
|
+
Object.defineProperty(exports, "IssuerBrandingEntity", { enumerable: true, get: function () { return IssuerBrandingEntity_1.IssuerBrandingEntity; } });
|
|
63
|
+
Object.defineProperty(exports, "issuerBrandingEntityFrom", { enumerable: true, get: function () { return IssuerBrandingEntity_1.issuerBrandingEntityFrom; } });
|
|
64
|
+
const TextAttributesEntity_1 = require("./entities/issuanceBranding/TextAttributesEntity");
|
|
65
|
+
Object.defineProperty(exports, "TextAttributesEntity", { enumerable: true, get: function () { return TextAttributesEntity_1.TextAttributesEntity; } });
|
|
66
|
+
Object.defineProperty(exports, "textAttributesEntityFrom", { enumerable: true, get: function () { return TextAttributesEntity_1.textAttributesEntityFrom; } });
|
|
41
67
|
var ContactStore_1 = require("./contact/ContactStore");
|
|
42
68
|
Object.defineProperty(exports, "ContactStore", { enumerable: true, get: function () { return ContactStore_1.ContactStore; } });
|
|
43
69
|
var AbstractContactStore_1 = require("./contact/AbstractContactStore");
|
|
44
70
|
Object.defineProperty(exports, "AbstractContactStore", { enumerable: true, get: function () { return AbstractContactStore_1.AbstractContactStore; } });
|
|
71
|
+
var AbstractIssuanceBrandingStore_1 = require("./issuanceBranding/AbstractIssuanceBrandingStore");
|
|
72
|
+
Object.defineProperty(exports, "AbstractIssuanceBrandingStore", { enumerable: true, get: function () { return AbstractIssuanceBrandingStore_1.AbstractIssuanceBrandingStore; } });
|
|
73
|
+
var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore");
|
|
74
|
+
Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
|
|
75
|
+
var migrations_1 = require("./migrations");
|
|
76
|
+
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
|
|
77
|
+
__exportStar(require("./types"), exports);
|
|
45
78
|
exports.DataStoreContactEntities = [
|
|
46
79
|
BaseConfigEntity_1.BaseConfigEntity,
|
|
47
80
|
ConnectionEntity_1.ConnectionEntity,
|
|
@@ -52,8 +85,15 @@ exports.DataStoreContactEntities = [
|
|
|
52
85
|
DidAuthConfigEntity_1.DidAuthConfigEntity,
|
|
53
86
|
OpenIdConfigEntity_1.OpenIdConfigEntity,
|
|
54
87
|
];
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
88
|
+
exports.DataStoreIssuanceBrandingEntities = [
|
|
89
|
+
BackgroundAttributesEntity_1.BackgroundAttributesEntity,
|
|
90
|
+
CredentialBrandingEntity_1.CredentialBrandingEntity,
|
|
91
|
+
ImageAttributesEntity_1.ImageAttributesEntity,
|
|
92
|
+
ImageDimensionsEntity_1.ImageDimensionsEntity,
|
|
93
|
+
BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity,
|
|
94
|
+
IssuerBrandingEntity_1.IssuerBrandingEntity,
|
|
95
|
+
TextAttributesEntity_1.TextAttributesEntity,
|
|
96
|
+
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
97
|
+
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
98
|
+
];
|
|
59
99
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"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B,uGAAmI;AAmDjI,2GAnDO,uDAA0B,OAmDP;AAc1B,+GAjEmC,2DAA8B,OAiEnC;AAhEhC,2FAAiH;AA+C/G,qGA/CO,2CAAoB,OA+CP;AAepB,yGA9D6B,+CAAwB,OA8D7B;AA7D1B,2FAAiH;AA+C/G,qGA/CO,2CAAoB,OA+CP;AAepB,yGA9D6B,+CAAwB,OA8D7B;AA5D1B,uDAAqD;AAA5C,4GAAA,YAAY,OAAA;AACrB,uEAAqE;AAA5D,4HAAA,oBAAoB,OAAA;AAC7B,kGAAgG;AAAvF,8IAAA,6BAA6B,OAAA;AACtC,kFAAgF;AAAvE,8HAAA,qBAAqB,OAAA;AAC9B,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,0CAAuB;AAEV,QAAA,wBAAwB,GAAG;IACtC,mCAAgB;IAChB,mCAAgB;IAChB,6BAAa;IACb,+BAAc;IACd,uDAA0B;IAC1B,yDAA2B;IAC3B,yCAAmB;IACnB,uCAAkB;CACnB,CAAA;AAEY,QAAA,iCAAiC,GAAG;IAC/C,uDAA0B;IAC1B,mDAAwB;IACxB,6CAAqB;IACrB,6CAAqB;IACrB,mDAAwB;IACxB,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAddCredentialBrandingArgs, IAddCredentialLocaleBrandingArgs, IAddIssuerBrandingArgs, IAddIssuerLocaleBrandingArgs, ICredentialBranding, ICredentialLocaleBranding, IGetCredentialBrandingArgs, IGetCredentialLocaleBrandingArgs, IGetIssuerBrandingArgs, IGetIssuerLocaleBrandingArgs, IIssuerBranding, IIssuerLocaleBranding, IRemoveCredentialBrandingArgs, IRemoveCredentialLocaleBrandingArgs, IRemoveIssuerBrandingArgs, IRemoveIssuerLocaleBrandingArgs, IUpdateCredentialBrandingArgs, IUpdateCredentialLocaleBrandingArgs, IUpdateIssuerBrandingArgs, IUpdateIssuerLocaleBrandingArgs } from '../types';
|
|
2
|
+
export declare abstract class AbstractIssuanceBrandingStore {
|
|
3
|
+
abstract addCredentialBranding(args: IAddCredentialBrandingArgs): Promise<ICredentialBranding>;
|
|
4
|
+
abstract getCredentialBranding(args?: IGetCredentialBrandingArgs): Promise<Array<ICredentialBranding>>;
|
|
5
|
+
abstract updateCredentialBranding(args: IUpdateCredentialBrandingArgs): Promise<ICredentialBranding>;
|
|
6
|
+
abstract removeCredentialBranding(args: IRemoveCredentialBrandingArgs): Promise<void>;
|
|
7
|
+
abstract addCredentialLocaleBranding(args: IAddCredentialLocaleBrandingArgs): Promise<ICredentialBranding>;
|
|
8
|
+
abstract getCredentialLocaleBranding(args?: IGetCredentialLocaleBrandingArgs): Promise<Array<ICredentialLocaleBranding>>;
|
|
9
|
+
abstract updateCredentialLocaleBranding(args: IUpdateCredentialLocaleBrandingArgs): Promise<ICredentialLocaleBranding>;
|
|
10
|
+
abstract removeCredentialLocaleBranding(args: IRemoveCredentialLocaleBrandingArgs): Promise<void>;
|
|
11
|
+
abstract addIssuerBranding(args: IAddIssuerBrandingArgs): Promise<IIssuerBranding>;
|
|
12
|
+
abstract getIssuerBranding(args?: IGetIssuerBrandingArgs): Promise<Array<IIssuerBranding>>;
|
|
13
|
+
abstract updateIssuerBranding(args: IUpdateIssuerBrandingArgs): Promise<IIssuerBranding>;
|
|
14
|
+
abstract removeIssuerBranding(args: IRemoveIssuerBrandingArgs): Promise<void>;
|
|
15
|
+
abstract addIssuerLocaleBranding(args: IAddIssuerLocaleBrandingArgs): Promise<IIssuerBranding>;
|
|
16
|
+
abstract getIssuerLocaleBranding(args?: IGetIssuerLocaleBrandingArgs): Promise<Array<IIssuerLocaleBranding>>;
|
|
17
|
+
abstract updateIssuerLocaleBranding(args: IUpdateIssuerLocaleBrandingArgs): Promise<IIssuerLocaleBranding>;
|
|
18
|
+
abstract removeIssuerLocaleBranding(args: IRemoveIssuerLocaleBrandingArgs): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=AbstractIssuanceBrandingStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractIssuanceBrandingStore.d.ts","sourceRoot":"","sources":["../../src/issuanceBranding/AbstractIssuanceBrandingStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,4BAA4B,EAC5B,eAAe,EACf,qBAAqB,EACrB,6BAA6B,EAC7B,mCAAmC,EACnC,yBAAyB,EACzB,+BAA+B,EAC/B,6BAA6B,EAC7B,mCAAmC,EACnC,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,UAAU,CAAA;AAEjB,8BAAsB,6BAA6B;aACjC,qBAAqB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC;aACrF,qBAAqB,CAAC,IAAI,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;aAC7F,wBAAwB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;aAC3F,wBAAwB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;aAC5E,2BAA2B,CAAC,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC;aACjG,2BAA2B,CAAC,IAAI,CAAC,EAAE,gCAAgC,GAAG,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;aAC/G,8BAA8B,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,yBAAyB,CAAC;aAC7G,8BAA8B,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,IAAI,CAAC;aACxF,iBAAiB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;aACzE,iBAAiB,CAAC,IAAI,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;aACjF,oBAAoB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;aAC/E,oBAAoB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;aACpE,uBAAuB,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,eAAe,CAAC;aACrF,uBAAuB,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;aACnG,0BAA0B,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,qBAAqB,CAAC;aACjG,0BAA0B,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;CACjG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractIssuanceBrandingStore = void 0;
|
|
4
|
+
class AbstractIssuanceBrandingStore {
|
|
5
|
+
}
|
|
6
|
+
exports.AbstractIssuanceBrandingStore = AbstractIssuanceBrandingStore;
|
|
7
|
+
//# sourceMappingURL=AbstractIssuanceBrandingStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractIssuanceBrandingStore.js","sourceRoot":"","sources":["../../src/issuanceBranding/AbstractIssuanceBrandingStore.ts"],"names":[],"mappings":";;;AAuBA,MAAsB,6BAA6B;CAiBlD;AAjBD,sEAiBC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DataSource } from 'typeorm';
|
|
2
|
+
import { OrPromise } from '@sphereon/ssi-types';
|
|
3
|
+
import { AbstractIssuanceBrandingStore } from './AbstractIssuanceBrandingStore';
|
|
4
|
+
import { IAddCredentialBrandingArgs, IAddCredentialLocaleBrandingArgs, IAddIssuerBrandingArgs, IAddIssuerLocaleBrandingArgs, ICredentialBranding, ICredentialLocaleBranding, IGetCredentialBrandingArgs, IGetCredentialLocaleBrandingArgs, IGetIssuerBrandingArgs, IGetIssuerLocaleBrandingArgs, IIssuerBranding, IIssuerLocaleBranding, IRemoveCredentialBrandingArgs, IRemoveCredentialLocaleBrandingArgs, IRemoveIssuerBrandingArgs, IRemoveIssuerLocaleBrandingArgs, IUpdateCredentialBrandingArgs, IUpdateCredentialLocaleBrandingArgs, IUpdateIssuerBrandingArgs, IUpdateIssuerLocaleBrandingArgs } from '../types';
|
|
5
|
+
export declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
6
|
+
private readonly dbConnection;
|
|
7
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
8
|
+
addCredentialBranding: (args: IAddCredentialBrandingArgs) => Promise<ICredentialBranding>;
|
|
9
|
+
getCredentialBranding: (args?: IGetCredentialBrandingArgs) => Promise<Array<ICredentialBranding>>;
|
|
10
|
+
removeCredentialBranding: (args: IRemoveCredentialBrandingArgs) => Promise<void>;
|
|
11
|
+
updateCredentialBranding: (args: IUpdateCredentialBrandingArgs) => Promise<ICredentialBranding>;
|
|
12
|
+
addCredentialLocaleBranding: (args: IAddCredentialLocaleBrandingArgs) => Promise<ICredentialBranding>;
|
|
13
|
+
getCredentialLocaleBranding: (args?: IGetCredentialLocaleBrandingArgs) => Promise<Array<ICredentialLocaleBranding>>;
|
|
14
|
+
removeCredentialLocaleBranding: (args: IRemoveCredentialLocaleBrandingArgs) => Promise<void>;
|
|
15
|
+
updateCredentialLocaleBranding: (args: IUpdateCredentialLocaleBrandingArgs) => Promise<ICredentialLocaleBranding>;
|
|
16
|
+
addIssuerBranding: (args: IAddIssuerBrandingArgs) => Promise<IIssuerBranding>;
|
|
17
|
+
getIssuerBranding: (args?: IGetIssuerBrandingArgs) => Promise<Array<IIssuerBranding>>;
|
|
18
|
+
removeIssuerBranding: (args: IRemoveIssuerBrandingArgs) => Promise<void>;
|
|
19
|
+
updateIssuerBranding: (args: IUpdateIssuerBrandingArgs) => Promise<IIssuerBranding>;
|
|
20
|
+
addIssuerLocaleBranding: (args: IAddIssuerLocaleBrandingArgs) => Promise<IIssuerBranding>;
|
|
21
|
+
getIssuerLocaleBranding: (args?: IGetIssuerLocaleBrandingArgs) => Promise<Array<IIssuerLocaleBranding>>;
|
|
22
|
+
removeIssuerLocaleBranding: (args: IRemoveIssuerLocaleBrandingArgs) => Promise<void>;
|
|
23
|
+
updateIssuerLocaleBranding: (args: IUpdateIssuerLocaleBrandingArgs) => Promise<IIssuerLocaleBranding>;
|
|
24
|
+
private credentialBrandingFrom;
|
|
25
|
+
private issuerBrandingFrom;
|
|
26
|
+
private localeBrandingFrom;
|
|
27
|
+
private replaceNullWithUndefined;
|
|
28
|
+
private hasDuplicateLocales;
|
|
29
|
+
private removeLocaleBranding;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=IssuanceBrandingStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssuanceBrandingStore.d.ts","sourceRoot":"","sources":["../../src/issuanceBranding/IssuanceBrandingStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAqC,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAU/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,4BAA4B,EAG5B,mBAAmB,EAEnB,yBAAyB,EAEzB,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,4BAA4B,EAC5B,eAAe,EAEf,qBAAqB,EAGrB,6BAA6B,EAC7B,mCAAmC,EACnC,yBAAyB,EACzB,+BAA+B,EAC/B,6BAA6B,EAC7B,mCAAmC,EACnC,yBAAyB,EACzB,+BAA+B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