@sphereon/ssi-sdk.data-store 0.30.2-fix.139 → 0.30.2-fix.198
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/digitalCredential/DigitalCredentialEntity.d.ts.map +1 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +1 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +1 -4
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +2 -55
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +1 -8
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +1 -9
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +1 -16
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +1 -11
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +1 -8
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +1 -8
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +4 -2
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +21 -15
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +0 -2
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +1 -7
- package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
- package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/EventLoggerStore.js +2 -2
- package/dist/eventLogger/EventLoggerStore.js.map +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -18
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +5 -5
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +1 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +3 -3
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +1 -1
- package/dist/types/contact/contact.d.ts +3 -3
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/digitalCredential/digitalCredential.d.ts +2 -1
- package/dist/types/digitalCredential/digitalCredential.d.ts.map +1 -1
- package/dist/types/digitalCredential/digitalCredential.js +1 -0
- package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +7 -2
- package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +4 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.js +55 -1
- package/dist/utils/eventLogger/MappingUtils.js.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +15 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.js +81 -1
- package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/contact.store.test.ts +59 -4
- package/src/__tests__/digitalCredential.entities.test.ts +5 -5
- package/src/__tests__/digitalCredential.store.test.ts +1 -1
- package/src/__tests__/eventLogger.entities.test.ts +24 -24
- package/src/__tests__/issuanceBranding.entities.test.ts +8 -0
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
- package/src/entities/eventLogger/AuditEventEntity.ts +1 -57
- package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -11
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +1 -13
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +0 -17
- package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -14
- package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +0 -9
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +1 -12
- package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +17 -17
- package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -9
- package/src/eventLogger/EventLoggerStore.ts +5 -4
- package/src/index.ts +13 -26
- package/src/issuanceBranding/IssuanceBrandingStore.ts +14 -6
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
- package/src/migrations/postgres/1708525189001-CreateDigitalCredential.ts +1 -1
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +3 -3
- package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +1 -1
- package/src/types/contact/contact.ts +3 -3
- package/src/types/digitalCredential/digitalCredential.ts +1 -0
- package/src/types/issuanceBranding/issuanceBranding.ts +9 -3
- package/src/utils/eventLogger/MappingUtils.ts +57 -2
- package/src/utils/issuanceBranding/MappingUtils.ts +105 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/digitalCredential/DigitalCredentialEntity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DigitalCredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/digitalCredential/DigitalCredentialEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAChH,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACf,MAAM,aAAa,CAAA;AAEpB,qBACa,uBAAwB,SAAQ,UAAW,YAAW,iBAAiB;IAElF,EAAE,EAAG,MAAM,CAAA;IAGX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,YAAY,EAAG,YAAY,CAAA;IAG3B,cAAc,EAAG,cAAc,CAAA;IAG/B,cAAc,EAAG,wBAAwB,CAAA;IAGzC,cAAc,EAAG,cAAc,CAAA;IAG/B,WAAW,EAAG,MAAM,CAAA;IAGpB,eAAe,EAAG,MAAM,CAAA;IAGxB,YAAY,EAAG,MAAM,CAAA;IAGrB,IAAI,EAAG,MAAM,CAAA;IAGb,SAAS,EAAG,MAAM,CAAA;IAGlB,gBAAgB,EAAG,MAAM,CAAA;IAGzB,qBAAqB,EAAG,yBAAyB,CAAA;IAGjD,sBAAsB,CAAC,EAAE,yBAAyB,CAAA;IAGlD,iBAAiB,CAAC,EAAE,yBAAyB,CAAA;IAG7C,cAAc,CAAC,EAAE,OAAO,CAAA;IAGxB,mBAAmB,EAAG,MAAM,CAAA;IAG5B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,eAAe,CAAC,EAAE,MAAM,CAAA;IAGxB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IAGnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAG,IAAI,CAAA;IAGhB,WAAW,CAAC,EAAE,IAAI,CAAA;IAGlB,aAAa,EAAG,IAAI,CAAA;IAGpB,UAAU,CAAC,EAAE,IAAI,CAAA;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,UAAU,CAAC,EAAE,IAAI,CAAA;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DigitalCredentialEntity = void 0;
|
|
13
|
+
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
13
14
|
const typeorm_1 = require("typeorm");
|
|
14
15
|
const types_1 = require("../../types");
|
|
15
|
-
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
16
16
|
let DigitalCredentialEntity = class DigitalCredentialEntity extends typeorm_1.BaseEntity {
|
|
17
17
|
};
|
|
18
18
|
exports.DigitalCredentialEntity = DigitalCredentialEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialEntity.js","sourceRoot":"","sources":["../../../src/entities/digitalCredential/DigitalCredentialEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgH;AAChH,uCAQoB;
|
|
1
|
+
{"version":3,"file":"DigitalCredentialEntity.js","sourceRoot":"","sources":["../../../src/entities/digitalCredential/DigitalCredentialEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAA6E;AAC7E,qCAAgH;AAChH,uCAQoB;AAGb,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oBAAU;CAoFtD,CAAA;AApFY,0DAAuB;AAElC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mDACpB;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrC;AAGjB;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,oBAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6DAC3D;AAG3B;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DAC3D;AAG/B;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,gCAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DAC3D;AAGzC;IADC,IAAA,gBAAM,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DAC3D;AAG/B;IADC,IAAA,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AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAA,kCAAW,GAAE,EAAE,CAAC;8BACxD,IAAI;0DAAA;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BAC5D,IAAI;2DAAA;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BAC5D,IAAI;0DAAA;kCAnFL,uBAAuB;IADnC,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,uBAAuB,CAoFnC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ActionSubType, ActionType, InitiatorType, LoggingEventType, LogLevel, SubSystem, System, SystemCorrelationIdType } from '@sphereon/ssi-types';
|
|
2
|
-
import { BaseEntity } from 'typeorm';
|
|
3
2
|
import { CredentialType, PartyCorrelationType } from '@sphereon/ssi-sdk.core';
|
|
4
|
-
import {
|
|
3
|
+
import { BaseEntity } from 'typeorm';
|
|
5
4
|
export declare class AuditEventEntity extends BaseEntity {
|
|
6
5
|
id: string;
|
|
7
6
|
timestamp: Date;
|
|
@@ -30,6 +29,4 @@ export declare class AuditEventEntity extends BaseEntity {
|
|
|
30
29
|
createdAt: Date;
|
|
31
30
|
lastUpdatedAt: Date;
|
|
32
31
|
}
|
|
33
|
-
export declare const auditEventEntityFrom: (args: NonPersistedAuditLoggingEvent) => AuditEventEntity;
|
|
34
|
-
export declare const activityEventEntityFrom: (args: NonPersistedActivityLoggingEvent) => AuditEventEntity;
|
|
35
32
|
//# sourceMappingURL=AuditEventEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AACtJ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AuditEventEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AACtJ,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,EAAE,UAAU,EAA8E,MAAM,SAAS,CAAA;AAIhH,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,SAAS,EAAG,IAAI,CAAA;IAGhB,IAAI,EAAG,gBAAgB,CAAA;IAGvB,KAAK,EAAG,QAAQ,CAAA;IAGhB,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAGf,aAAa,EAAG,SAAS,CAAA;IAGzB,UAAU,EAAG,UAAU,CAAA;IAGvB,aAAa,EAAG,aAAa,CAAA;IAG7B,aAAa,EAAG,aAAa,CAAA;IAG7B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IAGjD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IAG3C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAG3B,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAG,MAAM,CAAA;IAGpB,cAAc,CAAC,EAAE,cAAc,CAAA;IAG/B,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAG3B,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;CACrB"}
|
|
@@ -9,11 +9,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AuditEventEntity = void 0;
|
|
13
13
|
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
14
|
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
16
15
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
17
|
//TODO this entity, also contains some optional fields that are related to another event type (Activity) later we might want to refactor and reorganize this.
|
|
18
18
|
// For now I've added a discriminator value called eventType that can be one of the three types of events: 1. General, 2. Audit, and 3. Activity
|
|
19
19
|
let AuditEventEntity = class AuditEventEntity extends typeorm_1.BaseEntity {
|
|
@@ -126,57 +126,4 @@ __decorate([
|
|
|
126
126
|
exports.AuditEventEntity = AuditEventEntity = __decorate([
|
|
127
127
|
(0, typeorm_1.Entity)('AuditEvents')
|
|
128
128
|
], AuditEventEntity);
|
|
129
|
-
const auditEventEntityFrom = (args) => {
|
|
130
|
-
const auditEventEntity = new AuditEventEntity();
|
|
131
|
-
auditEventEntity.type = ssi_types_1.LoggingEventType.AUDIT;
|
|
132
|
-
auditEventEntity.timestamp = args.timestamp;
|
|
133
|
-
auditEventEntity.level = args.level;
|
|
134
|
-
auditEventEntity.correlationId = args.correlationId;
|
|
135
|
-
auditEventEntity.system = args.system;
|
|
136
|
-
auditEventEntity.subSystemType = args.subSystemType;
|
|
137
|
-
auditEventEntity.actionType = args.actionType;
|
|
138
|
-
auditEventEntity.actionSubType = args.actionSubType;
|
|
139
|
-
auditEventEntity.initiatorType = args.initiatorType;
|
|
140
|
-
auditEventEntity.systemCorrelationIdType = args.systemCorrelationIdType;
|
|
141
|
-
auditEventEntity.systemCorrelationId = args.systemCorrelationId;
|
|
142
|
-
auditEventEntity.systemAlias = args.systemAlias;
|
|
143
|
-
auditEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
144
|
-
auditEventEntity.partyCorrelationId = args.partyCorrelationId;
|
|
145
|
-
auditEventEntity.partyAlias = args.partyAlias;
|
|
146
|
-
auditEventEntity.description = args.description;
|
|
147
|
-
auditEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
148
|
-
auditEventEntity.data = JSON.stringify(args.data);
|
|
149
|
-
auditEventEntity.diagnosticData = JSON.stringify(args.diagnosticData);
|
|
150
|
-
return auditEventEntity;
|
|
151
|
-
};
|
|
152
|
-
exports.auditEventEntityFrom = auditEventEntityFrom;
|
|
153
|
-
const activityEventEntityFrom = (args) => {
|
|
154
|
-
const activityEventEntity = new AuditEventEntity();
|
|
155
|
-
activityEventEntity.type = ssi_types_1.LoggingEventType.ACTIVITY;
|
|
156
|
-
activityEventEntity.timestamp = args.timestamp;
|
|
157
|
-
activityEventEntity.level = args.level;
|
|
158
|
-
activityEventEntity.correlationId = args.correlationId;
|
|
159
|
-
activityEventEntity.system = args.system;
|
|
160
|
-
activityEventEntity.subSystemType = args.subSystemType;
|
|
161
|
-
activityEventEntity.actionType = args.actionType;
|
|
162
|
-
activityEventEntity.actionSubType = args.actionSubType;
|
|
163
|
-
activityEventEntity.initiatorType = args.initiatorType;
|
|
164
|
-
activityEventEntity.systemCorrelationIdType = args.systemCorrelationIdType;
|
|
165
|
-
activityEventEntity.systemCorrelationId = args.systemCorrelationId;
|
|
166
|
-
activityEventEntity.systemAlias = args.systemAlias;
|
|
167
|
-
activityEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
168
|
-
activityEventEntity.partyCorrelationId = args.partyCorrelationId;
|
|
169
|
-
activityEventEntity.partyAlias = args.partyAlias;
|
|
170
|
-
activityEventEntity.description = args.description;
|
|
171
|
-
activityEventEntity.partyCorrelationType = args.partyCorrelationType;
|
|
172
|
-
activityEventEntity.data = JSON.stringify(args.data);
|
|
173
|
-
activityEventEntity.sharePurpose = args.sharePurpose;
|
|
174
|
-
activityEventEntity.credentialType = args.credentialType;
|
|
175
|
-
activityEventEntity.originalCredential = args.originalCredential;
|
|
176
|
-
activityEventEntity.credentialHash = args.credentialHash;
|
|
177
|
-
activityEventEntity.parentCredentialHash = args.parentCredentialHash;
|
|
178
|
-
activityEventEntity.diagnosticData = JSON.stringify(args.diagnosticData);
|
|
179
|
-
return activityEventEntity;
|
|
180
|
-
};
|
|
181
|
-
exports.activityEventEntityFrom = activityEventEntityFrom;
|
|
182
129
|
//# sourceMappingURL=AuditEventEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAsJ;AACtJ,
|
|
1
|
+
{"version":3,"file":"AuditEventEntity.js","sourceRoot":"","sources":["../../../src/entities/eventLogger/AuditEventEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAsJ;AACtJ,yDAA6E;AAC7E,yEAAgE;AAChE,qCAAgH;AAEhH,6JAA6J;AAC7J,gJAAgJ;AAEzI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA8E/C,CAAA;AA9EY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;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AAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACxE,IAAI;uDAAA;2BA7ET,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,gBAAgB,CA8E5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import { IBasicBackgroundAttributes } from '../../types';
|
|
3
2
|
import { ImageAttributesEntity } from './ImageAttributesEntity';
|
|
4
3
|
export declare class BackgroundAttributesEntity extends BaseEntity {
|
|
5
4
|
id: string;
|
|
@@ -7,5 +6,4 @@ export declare class BackgroundAttributesEntity extends BaseEntity {
|
|
|
7
6
|
image?: ImageAttributesEntity;
|
|
8
7
|
validate(): Promise<undefined>;
|
|
9
8
|
}
|
|
10
|
-
export declare const backgroundAttributesEntityFrom: (args: IBasicBackgroundAttributes) => BackgroundAttributesEntity;
|
|
11
9
|
//# sourceMappingURL=BackgroundAttributesEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/BackgroundAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4F,MAAM,SAAS,CAAA;AAC9H,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BackgroundAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/BackgroundAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4F,MAAM,SAAS,CAAA;AAC9H,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAI/D,qBACa,0BAA2B,SAAQ,UAAU;IAExD,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,CAAC,EAAE,MAAM,CAAA;IASd,KAAK,CAAC,EAAE,qBAAqB,CAAA;IAIvB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -18,7 +18,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.BackgroundAttributesEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const ImageAttributesEntity_1 = require("./ImageAttributesEntity");
|
|
24
24
|
const class_validator_1 = require("class-validator");
|
|
@@ -64,11 +64,4 @@ __decorate([
|
|
|
64
64
|
exports.BackgroundAttributesEntity = BackgroundAttributesEntity = __decorate([
|
|
65
65
|
(0, typeorm_1.Entity)('BackgroundAttributes')
|
|
66
66
|
], BackgroundAttributesEntity);
|
|
67
|
-
const backgroundAttributesEntityFrom = (args) => {
|
|
68
|
-
const backgroundAttributesEntity = new BackgroundAttributesEntity();
|
|
69
|
-
backgroundAttributesEntity.color = (0, validators_1.isEmptyString)(args.color) ? undefined : args.color;
|
|
70
|
-
backgroundAttributesEntity.image = args.image ? (0, ImageAttributesEntity_1.imageAttributesEntityFrom)(args.image) : undefined;
|
|
71
|
-
return backgroundAttributesEntity;
|
|
72
|
-
};
|
|
73
|
-
exports.backgroundAttributesEntityFrom = backgroundAttributesEntityFrom;
|
|
74
67
|
//# sourceMappingURL=BackgroundAttributesEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/BackgroundAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8H;
|
|
1
|
+
{"version":3,"file":"BackgroundAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/BackgroundAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8H;AAC9H,mEAA+D;AAC/D,qDAAqE;AACrE,8CAA0D;AAGnD,IAAM,0BAA0B,GA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ialBranding } from '../../types';
|
|
4
3
|
export declare class CredentialBrandingEntity extends BaseEntity {
|
|
5
4
|
id: string;
|
|
6
5
|
vcHash: string;
|
|
@@ -11,5 +10,4 @@ export declare class CredentialBrandingEntity extends BaseEntity {
|
|
|
11
10
|
updateUpdatedDate(): void;
|
|
12
11
|
validate(): Promise<undefined>;
|
|
13
12
|
}
|
|
14
|
-
export declare const credentialBrandingEntityFrom: (args: IBasicCredentialBranding) => CredentialBrandingEntity;
|
|
15
13
|
//# sourceMappingURL=CredentialBrandingEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,8BAA8B,
|
|
1
|
+
{"version":3,"file":"CredentialBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAEjF,qBAGa,wBAAyB,SAAQ,UAAU;IAEtD,EAAE,EAAG,MAAM,CAAA;IAIX,MAAM,EAAG,MAAM,CAAA;IAIf,mBAAmB,EAAG,MAAM,CAAA;IAa5B,cAAc,EAAG,KAAK,CAAC,8BAA8B,CAAC,CAAA;IAGtD,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -18,7 +18,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.CredentialBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
24
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
@@ -92,12 +92,4 @@ exports.CredentialBrandingEntity = CredentialBrandingEntity = __decorate([
|
|
|
92
92
|
(0, typeorm_1.Index)('IDX_CredentialBrandingEntity_vcHash', ['vcHash']),
|
|
93
93
|
(0, typeorm_1.Index)('IDX_CredentialBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
|
|
94
94
|
], CredentialBrandingEntity);
|
|
95
|
-
const credentialBrandingEntityFrom = (args) => {
|
|
96
|
-
const credentialBrandingEntity = new CredentialBrandingEntity();
|
|
97
|
-
credentialBrandingEntity.issuerCorrelationId = args.issuerCorrelationId;
|
|
98
|
-
credentialBrandingEntity.vcHash = args.vcHash;
|
|
99
|
-
credentialBrandingEntity.localeBranding = args.localeBranding.map((localeBranding) => (0, CredentialLocaleBrandingEntity_1.credentialLocaleBrandingEntityFrom)(localeBranding));
|
|
100
|
-
return credentialBrandingEntity;
|
|
101
|
-
};
|
|
102
|
-
exports.credentialBrandingEntityFrom = credentialBrandingEntityFrom;
|
|
103
95
|
//# sourceMappingURL=CredentialBrandingEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"CredentialBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,qFAAiF;AAK1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E,KAAK;KAChB,CACF;IACA,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;8BAC9C,KAAK;gEAAgC;AAGtD;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACvE,IAAI;2DAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;+DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;iEAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;wDAOd;mCA9CU,wBAAwB;IAHpC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAA,eAAK,EAAC,kDAAkD,EAAE,CAAC,qBAAqB,CAAC,CAAC;GACtE,wBAAwB,CA+CpC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { IBasicCredentialLocaleBranding } from '../../types';
|
|
2
1
|
import { CredentialBrandingEntity } from './CredentialBrandingEntity';
|
|
3
2
|
import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
|
|
4
3
|
export declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
5
4
|
credentialBranding: CredentialBrandingEntity;
|
|
6
5
|
credentialBrandingId: string;
|
|
7
6
|
}
|
|
8
|
-
export declare const credentialLocaleBrandingEntityFrom: (args: IBasicCredentialLocaleBranding) => CredentialLocaleBrandingEntity;
|
|
9
7
|
//# 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,
|
|
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;AAErE,qBAEa,8BAA+B,SAAQ,wBAAwB;IAK1E,kBAAkB,EAAG,wBAAwB,CAAA;IAG7C,oBAAoB,EAAG,MAAM,CAAA;CAC9B"}
|
|
@@ -9,14 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CredentialLocaleBrandingEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BackgroundAttributesEntity_1 = require("./BackgroundAttributesEntity");
|
|
15
14
|
const CredentialBrandingEntity_1 = require("./CredentialBrandingEntity");
|
|
16
|
-
const ImageAttributesEntity_1 = require("./ImageAttributesEntity");
|
|
17
15
|
const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
|
|
18
|
-
const TextAttributesEntity_1 = require("./TextAttributesEntity");
|
|
19
|
-
const validators_1 = require("../validators");
|
|
20
16
|
let CredentialLocaleBrandingEntity = class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
|
|
21
17
|
};
|
|
22
18
|
exports.CredentialLocaleBrandingEntity = CredentialLocaleBrandingEntity;
|
|
@@ -35,15 +31,4 @@ exports.CredentialLocaleBrandingEntity = CredentialLocaleBrandingEntity = __deco
|
|
|
35
31
|
(0, typeorm_1.ChildEntity)('CredentialLocaleBranding'),
|
|
36
32
|
(0, typeorm_1.Index)('IDX_CredentialLocaleBrandingEntity_credentialBranding_locale', ['credentialBranding', 'locale'], { unique: true })
|
|
37
33
|
], CredentialLocaleBrandingEntity);
|
|
38
|
-
const credentialLocaleBrandingEntityFrom = (args) => {
|
|
39
|
-
const credentialLocaleBrandingEntity = new CredentialLocaleBrandingEntity();
|
|
40
|
-
credentialLocaleBrandingEntity.alias = (0, validators_1.isEmptyString)(args.alias) ? undefined : args.alias;
|
|
41
|
-
credentialLocaleBrandingEntity.locale = args.locale ? args.locale : '';
|
|
42
|
-
credentialLocaleBrandingEntity.logo = args.logo ? (0, ImageAttributesEntity_1.imageAttributesEntityFrom)(args.logo) : undefined;
|
|
43
|
-
credentialLocaleBrandingEntity.description = (0, validators_1.isEmptyString)(args.description) ? undefined : args.description;
|
|
44
|
-
credentialLocaleBrandingEntity.background = args.background ? (0, BackgroundAttributesEntity_1.backgroundAttributesEntityFrom)(args.background) : undefined;
|
|
45
|
-
credentialLocaleBrandingEntity.text = args.text ? (0, TextAttributesEntity_1.textAttributesEntityFrom)(args.text) : undefined;
|
|
46
|
-
return credentialLocaleBrandingEntity;
|
|
47
|
-
};
|
|
48
|
-
exports.credentialLocaleBrandingEntityFrom = credentialLocaleBrandingEntityFrom;
|
|
49
34
|
//# sourceMappingURL=CredentialLocaleBrandingEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;
|
|
1
|
+
{"version":3,"file":"CredentialLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,yEAAqE;AACrE,yEAAqE;AAI9D,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,mDAAwB;CAS3E,CAAA;AATY,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;AAG7C;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4EACrC;yCARlB,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,CAS1C"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import { IBasicImageAttributes } from '../../types';
|
|
3
2
|
import { ImageDimensionsEntity } from './ImageDimensionsEntity';
|
|
4
3
|
export declare class ImageAttributesEntity extends BaseEntity {
|
|
5
4
|
id: string;
|
|
@@ -10,5 +9,4 @@ export declare class ImageAttributesEntity extends BaseEntity {
|
|
|
10
9
|
dimensions?: ImageDimensionsEntity;
|
|
11
10
|
validate(): Promise<undefined>;
|
|
12
11
|
}
|
|
13
|
-
export declare const imageAttributesEntityFrom: (args: IBasicImageAttributes) => ImageAttributesEntity;
|
|
14
12
|
//# sourceMappingURL=ImageAttributesEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4F,MAAM,SAAS,CAAA;AAC9H,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ImageAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4F,MAAM,SAAS,CAAA;AAC9H,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAI/D,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,EAAG,MAAM,CAAA;IAIX,GAAG,CAAC,EAAE,MAAM,CAAA;IAIZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAIhB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,GAAG,CAAC,EAAE,MAAM,CAAA;IASZ,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAI5B,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -18,7 +18,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.ImageAttributesEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const ImageDimensionsEntity_1 = require("./ImageDimensionsEntity");
|
|
24
24
|
const class_validator_1 = require("class-validator");
|
|
@@ -79,14 +79,4 @@ __decorate([
|
|
|
79
79
|
exports.ImageAttributesEntity = ImageAttributesEntity = __decorate([
|
|
80
80
|
(0, typeorm_1.Entity)('ImageAttributes')
|
|
81
81
|
], ImageAttributesEntity);
|
|
82
|
-
const imageAttributesEntityFrom = (args) => {
|
|
83
|
-
const imageAttributesEntity = new ImageAttributesEntity();
|
|
84
|
-
imageAttributesEntity.uri = (0, validators_1.isEmptyString)(args.uri) ? undefined : args.uri;
|
|
85
|
-
imageAttributesEntity.dataUri = (0, validators_1.isEmptyString)(args.dataUri) ? undefined : args.dataUri;
|
|
86
|
-
imageAttributesEntity.mediaType = (0, validators_1.isEmptyString)(args.mediaType) ? undefined : args.mediaType;
|
|
87
|
-
imageAttributesEntity.alt = (0, validators_1.isEmptyString)(args.alt) ? undefined : args.alt;
|
|
88
|
-
imageAttributesEntity.dimensions = args.dimensions ? (0, ImageDimensionsEntity_1.imageDimensionsEntityFrom)(args.dimensions) : undefined;
|
|
89
|
-
return imageAttributesEntity;
|
|
90
|
-
};
|
|
91
|
-
exports.imageAttributesEntityFrom = imageAttributesEntityFrom;
|
|
92
82
|
//# sourceMappingURL=ImageAttributesEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8H;
|
|
1
|
+
{"version":3,"file":"ImageAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8H;AAC9H,mEAA+D;AAC/D,qDAAqE;AACrE,8CAA0D;AAGnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAU;IA+B7C,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;AAt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qB;yDAAA;AAI5B;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;qDAOd;gCArCU,qBAAqB;IADjC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,qBAAqB,CAsCjC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import { IBasicImageDimensions } from '../../types';
|
|
3
2
|
export declare class ImageDimensionsEntity extends BaseEntity {
|
|
4
3
|
id: string;
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
7
6
|
}
|
|
8
|
-
export declare const imageDimensionsEntityFrom: (args: IBasicImageDimensions) => ImageDimensionsEntity;
|
|
9
7
|
//# sourceMappingURL=ImageDimensionsEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageDimensionsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"ImageDimensionsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;AAE5E,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,EAAG,MAAM,CAAA;IAGX,KAAK,EAAG,MAAM,CAAA;IAGd,MAAM,EAAG,MAAM,CAAA;CAChB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ImageDimensionsEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
let ImageDimensionsEntity = class ImageDimensionsEntity extends typeorm_1.BaseEntity {
|
|
15
15
|
};
|
|
@@ -29,11 +29,4 @@ __decorate([
|
|
|
29
29
|
exports.ImageDimensionsEntity = ImageDimensionsEntity = __decorate([
|
|
30
30
|
(0, typeorm_1.Entity)('ImageDimensions')
|
|
31
31
|
], ImageDimensionsEntity);
|
|
32
|
-
const imageDimensionsEntityFrom = (args) => {
|
|
33
|
-
const imageDimensionsEntity = new ImageDimensionsEntity();
|
|
34
|
-
imageDimensionsEntity.width = args.width;
|
|
35
|
-
imageDimensionsEntity.height = args.height;
|
|
36
|
-
return imageDimensionsEntity;
|
|
37
|
-
};
|
|
38
|
-
exports.imageDimensionsEntityFrom = imageDimensionsEntityFrom;
|
|
39
32
|
//# sourceMappingURL=ImageDimensionsEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;
|
|
1
|
+
{"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAGrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAU;CASpD,CAAA;AATY,sDAAqB;AAEhC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;iDACpB;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACvD;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;qDACvD;gCARJ,qBAAqB;IADjC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,qBAAqB,CASjC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
2
|
import { IssuerLocaleBrandingEntity } from './IssuerLocaleBrandingEntity';
|
|
3
|
-
import { IBasicIssuerBranding } from '../../types';
|
|
4
3
|
export declare class IssuerBrandingEntity extends BaseEntity {
|
|
5
4
|
id: string;
|
|
6
5
|
issuerCorrelationId: string;
|
|
@@ -10,5 +9,4 @@ export declare class IssuerBrandingEntity extends BaseEntity {
|
|
|
10
9
|
updateUpdatedDate(): void;
|
|
11
10
|
validate(): Promise<undefined>;
|
|
12
11
|
}
|
|
13
|
-
export declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBrandingEntity;
|
|
14
12
|
//# sourceMappingURL=IssuerBrandingEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,qBAEa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,mBAAmB,EAAG,MAAM,CAAA;IAa5B,cAAc,EAAG,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAGlD,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -18,7 +18,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.IssuerBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
24
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
@@ -86,11 +86,4 @@ exports.IssuerBrandingEntity = IssuerBrandingEntity = __decorate([
|
|
|
86
86
|
(0, typeorm_1.Entity)('IssuerBranding'),
|
|
87
87
|
(0, typeorm_1.Index)('IDX_IssuerBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
|
|
88
88
|
], IssuerBrandingEntity);
|
|
89
|
-
const issuerBrandingEntityFrom = (args) => {
|
|
90
|
-
const issuerBrandingEntity = new IssuerBrandingEntity();
|
|
91
|
-
issuerBrandingEntity.issuerCorrelationId = args.issuerCorrelationId;
|
|
92
|
-
issuerBrandingEntity.localeBranding = args.localeBranding.map((localeBranding) => (0, IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom)(localeBranding));
|
|
93
|
-
return issuerBrandingEntity;
|
|
94
|
-
};
|
|
95
|
-
exports.issuerBrandingEntityFrom = issuerBrandingEntityFrom;
|
|
96
89
|
//# sourceMappingURL=IssuerBrandingEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEnt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;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACvE,IAAI;uDAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;2DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;6DAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;oDAOd;+BA1CU,oBAAoB;IAFhC,IAAA,gBAAM,EAAC,gBAAgB,CAAC;IACxB,IAAA,eAAK,EAAC,8CAA8C,EAAE,CAAC,qBAAqB,CAAC,CAAC;GAClE,oBAAoB,CA2ChC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { IBasicIssuerLocaleBranding } from '../../types';
|
|
2
1
|
import { IssuerBrandingEntity } from './IssuerBrandingEntity';
|
|
3
2
|
import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
|
|
4
3
|
export declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
5
4
|
issuerBranding: IssuerBrandingEntity;
|
|
5
|
+
clientUri?: string;
|
|
6
|
+
tosUri?: string;
|
|
7
|
+
policyUri?: string;
|
|
8
|
+
contacts?: Array<string>;
|
|
6
9
|
issuerBrandingId: string;
|
|
7
10
|
}
|
|
8
|
-
export declare const issuerLocaleBrandingEntityFrom: (args: IBasicIssuerLocaleBranding) => IssuerLocaleBrandingEntity;
|
|
9
11
|
//# sourceMappingURL=IssuerLocaleBrandingEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IssuerLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,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;IAIrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,MAAM,CAAC,EAAE,MAAM,CAAA;IAIf,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAGxB,gBAAgB,EAAG,MAAM,CAAA;CAC1B"}
|
|
@@ -9,14 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.IssuerLocaleBrandingEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BackgroundAttributesEntity_1 = require("./BackgroundAttributesEntity");
|
|
15
|
-
const ImageAttributesEntity_1 = require("./ImageAttributesEntity");
|
|
16
14
|
const IssuerBrandingEntity_1 = require("./IssuerBrandingEntity");
|
|
17
15
|
const BaseLocaleBrandingEntity_1 = require("./BaseLocaleBrandingEntity");
|
|
18
|
-
const TextAttributesEntity_1 = require("./TextAttributesEntity");
|
|
19
16
|
const validators_1 = require("../validators");
|
|
17
|
+
const class_validator_1 = require("class-validator");
|
|
20
18
|
let IssuerLocaleBrandingEntity = class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity_1.BaseLocaleBrandingEntity {
|
|
21
19
|
};
|
|
22
20
|
exports.IssuerLocaleBrandingEntity = IssuerLocaleBrandingEntity;
|
|
@@ -27,6 +25,25 @@ __decorate([
|
|
|
27
25
|
(0, typeorm_1.JoinColumn)({ name: 'issuerBrandingId' }),
|
|
28
26
|
__metadata("design:type", IssuerBrandingEntity_1.IssuerBrandingEntity)
|
|
29
27
|
], IssuerLocaleBrandingEntity.prototype, "issuerBranding", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('text', { name: 'client_uri', nullable: true, unique: false }),
|
|
30
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank client uris are not allowed' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], IssuerLocaleBrandingEntity.prototype, "clientUri", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)('text', { name: 'tos_uri', nullable: true, unique: false }),
|
|
35
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank tos uris are not allowed' }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], IssuerLocaleBrandingEntity.prototype, "tosUri", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)('text', { name: 'policy_uri', nullable: true, unique: false }),
|
|
40
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Blank policy uris are not allowed' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], IssuerLocaleBrandingEntity.prototype, "policyUri", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)('simple-array', { name: 'contacts', nullable: true, unique: false }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], IssuerLocaleBrandingEntity.prototype, "contacts", void 0);
|
|
30
47
|
__decorate([
|
|
31
48
|
(0, typeorm_1.Column)('text', { name: 'issuerBrandingId', nullable: false }),
|
|
32
49
|
__metadata("design:type", String)
|
|
@@ -35,15 +52,4 @@ exports.IssuerLocaleBrandingEntity = IssuerLocaleBrandingEntity = __decorate([
|
|
|
35
52
|
(0, typeorm_1.ChildEntity)('IssuerLocaleBranding'),
|
|
36
53
|
(0, typeorm_1.Index)('IDX_IssuerLocaleBrandingEntity_issuerBranding_locale', ['issuerBranding', 'locale'], { unique: true })
|
|
37
54
|
], 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
55
|
//# sourceMappingURL=IssuerLocaleBrandingEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;
|
|
1
|
+
{"version":3,"file":"IssuerLocaleBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/Iss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AAC;8BACjE,KAAK;4DAAQ;AAGxB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oEACrC;qCAvBd,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,CAwBtC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import { IBasicTextAttributes } from '../../types';
|
|
3
2
|
export declare class TextAttributesEntity extends BaseEntity {
|
|
4
3
|
id: string;
|
|
5
4
|
color?: string;
|
|
6
5
|
validate(): Promise<undefined>;
|
|
7
6
|
}
|
|
8
|
-
export declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
9
7
|
//# sourceMappingURL=TextAttributesEntity.d.ts.map
|