@sphereon/ssi-sdk.data-store 0.30.2-feature.SPRIND.61.JARM.pex.fixes.40 → 0.30.2-feature.SPRIND.77.133
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/contact/ContactStore.d.ts.map +1 -1
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +1 -1
- package/dist/digitalCredential/DigitalCredentialStore.js +1 -3
- package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
- 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 +8 -4
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +28 -25
- 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/AbstractEventLoggerStore.d.ts +4 -2
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
- package/dist/eventLogger/EventLoggerStore.d.ts +5 -4
- package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/EventLoggerStore.js +35 -8
- 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 -5
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +17 -46
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts.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/1701634812183-CreateAuditEvents.d.ts.map +1 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +34 -6
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.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/1701634819487-CreateAuditEvents.d.ts.map +1 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +27 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
- package/dist/presentationDefinition/PDStore.d.ts.map +1 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -2
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -1
- package/dist/types/eventLogger/eventLogger.d.ts +3 -2
- package/dist/types/eventLogger/eventLogger.d.ts.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/FormattingUtils.d.ts +2 -0
- package/dist/utils/FormattingUtils.d.ts.map +1 -0
- package/dist/utils/FormattingUtils.js +23 -0
- package/dist/utils/FormattingUtils.js.map +1 -0
- package/dist/utils/SortingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.js +27 -14
- package/dist/utils/contact/MappingUtils.js.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -1
- package/dist/utils/digitalCredential/MappingUtils.js +7 -5
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +8 -0
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -0
- package/dist/utils/eventLogger/MappingUtils.js +70 -0
- package/dist/utils/eventLogger/MappingUtils.js.map +1 -0
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +22 -0
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -0
- package/dist/utils/issuanceBranding/MappingUtils.js +100 -0
- package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -0
- package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +1 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +5 -3
- package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
- package/package.json +7 -7
- package/src/__tests__/digitalCredential.entities.test.ts +5 -5
- package/src/__tests__/digitalCredential.store.test.ts +83 -4
- package/src/__tests__/eventLogger.entities.test.ts +60 -5
- package/src/__tests__/eventLogger.store.test.ts +480 -3
- package/src/__tests__/issuanceBranding.entities.test.ts +8 -0
- package/src/digitalCredential/DigitalCredentialStore.ts +1 -3
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
- package/src/entities/eventLogger/AuditEventEntity.ts +23 -28
- 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/AbstractEventLoggerStore.ts +9 -2
- package/src/eventLogger/EventLoggerStore.ts +55 -32
- package/src/index.ts +13 -26
- package/src/issuanceBranding/IssuanceBrandingStore.ts +26 -68
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +34 -6
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +3 -3
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +27 -1
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -2
- package/src/types/eventLogger/eventLogger.ts +3 -2
- package/src/types/issuanceBranding/issuanceBranding.ts +9 -3
- package/src/utils/FormattingUtils.ts +21 -0
- package/src/utils/contact/MappingUtils.ts +39 -13
- package/src/utils/digitalCredential/MappingUtils.ts +4 -1
- package/src/utils/eventLogger/MappingUtils.ts +116 -0
- package/src/utils/issuanceBranding/MappingUtils.ts +135 -0
- package/src/utils/presentationDefinition/MappingUtils.ts +4 -1
|
@@ -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/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,iEAA6D;AAC7D,yEAAqE;AACrE,8CAA0D;AAC1D,qDAA0C;AAInC,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mDAAwB;CAwBvE,CAAA;AAxBY,gEAA0B;AAKrC;IAJC,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;AAIrC;IAFC,IAAA,gBAAM,EAA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
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
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"TextAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsE,MAAM,SAAS,CAAA;AAIxG,qBACa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,CAAC,EAAE,MAAM,CAAA;IAIR,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.TextAttributesEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
24
|
const validators_1 = require("../validators");
|
|
@@ -53,10 +53,4 @@ __decorate([
|
|
|
53
53
|
exports.TextAttributesEntity = TextAttributesEntity = __decorate([
|
|
54
54
|
(0, typeorm_1.Entity)('TextAttributes')
|
|
55
55
|
], 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
56
|
//# sourceMappingURL=TextAttributesEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwG;
|
|
1
|
+
{"version":3,"file":"TextAttributesEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwG;AACxG,qDAAqE;AACrE,8CAA0D;AAGnD,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,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;AAjBY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChF,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;mDACzE;AAIR;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;oDAOd;+BAhBU,oBAAoB;IADhC,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,oBAAoB,CAiBhC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
2
|
+
import { GetActivityEventsArgs, GetAuditEventsArgs, StoreActivityEventArgs, StoreAuditEventArgs } from '../types';
|
|
3
3
|
export declare abstract class AbstractEventLoggerStore {
|
|
4
4
|
abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
|
|
5
|
+
abstract getActivityEvents(args: GetActivityEventsArgs): Promise<Array<ActivityLoggingEvent>>;
|
|
5
6
|
abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
|
|
7
|
+
abstract storeActivityEvent(args: StoreActivityEventArgs): Promise<ActivityLoggingEvent>;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=AbstractEventLoggerStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAEjB,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC7F,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAC/E,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CACzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAQA,MAAsB,wBAAwB;CAK7C;AALD,4DAKC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
1
|
+
import { ActivityLoggingEvent, AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
3
2
|
import { OrPromise } from '@sphereon/ssi-types';
|
|
3
|
+
import { DataSource } from 'typeorm';
|
|
4
4
|
import { AbstractEventLoggerStore } from './AbstractEventLoggerStore';
|
|
5
|
-
import { GetAuditEventsArgs, StoreAuditEventArgs } from '../types';
|
|
5
|
+
import { GetActivityEventsArgs, GetAuditEventsArgs, StoreActivityEventArgs, StoreAuditEventArgs } from '../types';
|
|
6
6
|
export declare class EventLoggerStore extends AbstractEventLoggerStore {
|
|
7
7
|
private readonly dbConnection;
|
|
8
8
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
9
9
|
getAuditEvents: (args?: GetAuditEventsArgs) => Promise<Array<AuditLoggingEvent>>;
|
|
10
10
|
storeAuditEvent: (args: StoreAuditEventArgs) => Promise<AuditLoggingEvent>;
|
|
11
|
-
|
|
11
|
+
getActivityEvents: (args?: GetActivityEventsArgs) => Promise<Array<ActivityLoggingEvent>>;
|
|
12
|
+
storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=EventLoggerStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAoB,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQrE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAIjB,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuB;gBAExC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAK/C,cAAc,UAAiB,kBAAkB,KAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAepF;IAED,eAAe,SAAgB,mBAAmB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAS9E;IAED,iBAAiB,UAAiB,qBAAqB,KAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAe7F;IAED,kBAAkB,SAAgB,sBAAsB,KAAG,OAAO,CAAC,oBAAoB,CAAC,CASvF;CACF"}
|
|
@@ -13,30 +13,57 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.EventLoggerStore = void 0;
|
|
16
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
16
17
|
const debug_1 = __importDefault(require("debug"));
|
|
17
18
|
const AbstractEventLoggerStore_1 = require("./AbstractEventLoggerStore");
|
|
18
19
|
const AuditEventEntity_1 = require("../entities/eventLogger/AuditEventEntity");
|
|
20
|
+
const MappingUtils_1 = require("../utils/eventLogger/MappingUtils");
|
|
19
21
|
const debug = (0, debug_1.default)('sphereon:ssi-sdk:event-store');
|
|
20
22
|
class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerStore {
|
|
21
23
|
constructor(dbConnection) {
|
|
22
24
|
super();
|
|
23
25
|
this.getAuditEvents = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const
|
|
26
|
+
const { filter = [] } = args !== null && args !== void 0 ? args : {};
|
|
27
|
+
const auditEventsFilter = filter.map((item) => (Object.assign(Object.assign({}, item), { type: ssi_types_1.LoggingEventType.AUDIT })));
|
|
28
|
+
if (auditEventsFilter.length === 0) {
|
|
29
|
+
auditEventsFilter.push({ type: ssi_types_1.LoggingEventType.AUDIT });
|
|
30
|
+
}
|
|
31
|
+
const connection = yield this.dbConnection;
|
|
25
32
|
debug('Getting audit events', args);
|
|
26
|
-
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find(
|
|
27
|
-
|
|
33
|
+
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find({
|
|
34
|
+
where: auditEventsFilter
|
|
35
|
+
});
|
|
36
|
+
return result.map((event) => (0, MappingUtils_1.auditEventFrom)(event));
|
|
28
37
|
});
|
|
29
38
|
this.storeAuditEvent = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
30
39
|
const { event } = args;
|
|
31
|
-
const auditEventEntity = (0,
|
|
40
|
+
const auditEventEntity = (0, MappingUtils_1.auditEventEntityFrom)(event);
|
|
32
41
|
const connection = yield this.dbConnection;
|
|
33
42
|
debug('Storing audit event', auditEventEntity);
|
|
34
43
|
const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(auditEventEntity);
|
|
35
|
-
return
|
|
44
|
+
return (0, MappingUtils_1.auditEventFrom)(createdResult);
|
|
45
|
+
});
|
|
46
|
+
this.getActivityEvents = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const { filter = [] } = args !== null && args !== void 0 ? args : {};
|
|
48
|
+
const activityEventsFilter = filter.map((item) => (Object.assign(Object.assign({}, item), { type: ssi_types_1.LoggingEventType.ACTIVITY })));
|
|
49
|
+
if (activityEventsFilter.length === 0) {
|
|
50
|
+
activityEventsFilter.push({ type: ssi_types_1.LoggingEventType.ACTIVITY });
|
|
51
|
+
}
|
|
52
|
+
const connection = yield this.dbConnection;
|
|
53
|
+
debug('Getting activity events', args);
|
|
54
|
+
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find({
|
|
55
|
+
where: activityEventsFilter
|
|
56
|
+
});
|
|
57
|
+
return result.map((event) => (0, MappingUtils_1.activityEventFrom)(event));
|
|
58
|
+
});
|
|
59
|
+
this.storeActivityEvent = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const { event } = args;
|
|
61
|
+
const activityEventEntity = (0, MappingUtils_1.activityEventEntityFrom)(event);
|
|
62
|
+
const connection = yield this.dbConnection;
|
|
63
|
+
debug('Storing activity event', activityEventEntity);
|
|
64
|
+
const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(activityEventEntity);
|
|
65
|
+
return (0, MappingUtils_1.activityEventFrom)(createdResult);
|
|
36
66
|
});
|
|
37
|
-
this.auditEventFrom = (event) => {
|
|
38
|
-
return Object.assign(Object.assign({ id: event.id, description: event.description, timestamp: event.timestamp, level: event.level, correlationId: event.correlationId, actionType: event.actionType, actionSubType: event.actionSubType, initiatorType: event.initiatorType, partyAlias: event.partyAlias, partyCorrelationId: event.partyCorrelationId, partyCorrelationType: event.partyCorrelationType, subSystemType: event.subSystemType, system: event.system, systemAlias: event.systemAlias, systemCorrelationId: event.systemCorrelationId, systemCorrelationIdType: event.systemCorrelationIdType }, (event.data && { data: JSON.parse(event.data) })), (event.diagnosticData && { diagnosticData: JSON.parse(event.diagnosticData) }));
|
|
39
|
-
};
|
|
40
67
|
this.dbConnection = dbConnection;
|
|
41
68
|
}
|
|
42
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"EventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/EventLoggerStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mDAAiE;AACjE,kDAAuC;AAEvC,yEAAqE;AACrE,+EAA2E;AAC3E,oEAK0C;AAQ1C,MAAM,KAAK,GAAa,IAAA,eAAK,EAAC,8BAA8B,CAAC,CAAA;AAE7D,MAAa,gBAAiB,SAAQ,mDAAwB;IAG5D,YAAY,YAAmC;QAC7C,KAAK,EAAE,CAAA;QAIT,mBAAc,GAAG,CAAO,IAAyB,EAAqC,EAAE;YACtF,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YAElC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCAAM,IAAI,KAAE,IAAI,EAAE,4BAAgB,CAAC,KAAK,IAAG,CAAC,CAAA;YAC3F,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACnC,iBAAiB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,4BAAgB,CAAC,KAAK,EAAE,CAAC,CAAA;YAC1D,CAAC;YAED,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,YAAY,CAAA;YAC1C,KAAK,CAAC,sBAAsB,EAA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AC,YAAY,CAAA;YAC1C,KAAK,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAA;YACtC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,mCAAgB,CAAC,CAAC,IAAI,CAAC;gBACnE,KAAK,EAAE,oBAAoB;aAC5B,CAAC,CAAA;YAEF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAuB,EAAE,EAAE,CAAC,IAAA,gCAAiB,EAAC,KAAK,CAAC,CAAC,CAAA;QAC1E,CAAC,CAAA,CAAA;QAED,uBAAkB,GAAG,CAAO,IAA4B,EAAiC,EAAE;YACzF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;YAEtB,MAAM,mBAAmB,GAAG,IAAA,sCAAuB,EAAC,KAAK,CAAC,CAAA;YAC1D,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,YAAY,CAAA;YAC1C,KAAK,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAA;YACpD,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,mCAAgB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;YAEhG,OAAO,IAAA,gCAAiB,EAAC,aAAa,CAAC,CAAA;QACzC,CAAC,CAAA,CAAA;QAzDC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CAyDF;AA/DD,4CA+DC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ import { DidAuthConfigEntity } from './entities/contact/DidAuthConfigEntity';
|
|
|
8
8
|
import { IdentityEntity } from './entities/contact/IdentityEntity';
|
|
9
9
|
import { IdentityMetadataItemEntity } from './entities/contact/IdentityMetadataItemEntity';
|
|
10
10
|
import { OpenIdConfigEntity } from './entities/contact/OpenIdConfigEntity';
|
|
11
|
-
import { BackgroundAttributesEntity
|
|
12
|
-
import { CredentialBrandingEntity
|
|
13
|
-
import { CredentialLocaleBrandingEntity
|
|
14
|
-
import { ImageAttributesEntity
|
|
15
|
-
import { ImageDimensionsEntity
|
|
16
|
-
import { IssuerLocaleBrandingEntity
|
|
17
|
-
import { IssuerBrandingEntity
|
|
18
|
-
import { TextAttributesEntity
|
|
11
|
+
import { BackgroundAttributesEntity } from './entities/issuanceBranding/BackgroundAttributesEntity';
|
|
12
|
+
import { CredentialBrandingEntity } from './entities/issuanceBranding/CredentialBrandingEntity';
|
|
13
|
+
import { CredentialLocaleBrandingEntity } from './entities/issuanceBranding/CredentialLocaleBrandingEntity';
|
|
14
|
+
import { ImageAttributesEntity } from './entities/issuanceBranding/ImageAttributesEntity';
|
|
15
|
+
import { ImageDimensionsEntity } from './entities/issuanceBranding/ImageDimensionsEntity';
|
|
16
|
+
import { IssuerLocaleBrandingEntity } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
|
|
17
|
+
import { IssuerBrandingEntity } from './entities/issuanceBranding/IssuerBrandingEntity';
|
|
18
|
+
import { TextAttributesEntity } from './entities/issuanceBranding/TextAttributesEntity';
|
|
19
19
|
import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity';
|
|
20
20
|
import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity';
|
|
21
21
|
import { MachineStateInfoEntity } from './entities/machineState/MachineStateInfoEntity';
|
|
@@ -31,10 +31,8 @@ export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialSto
|
|
|
31
31
|
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
|
|
32
32
|
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
|
|
33
33
|
export { StatusListStore } from './statusList/StatusListStore';
|
|
34
|
-
import { AuditEventEntity
|
|
34
|
+
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity';
|
|
35
35
|
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
36
|
-
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
|
|
37
|
-
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils';
|
|
38
36
|
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
39
37
|
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
|
|
40
38
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
|
|
@@ -47,6 +45,10 @@ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMi
|
|
|
47
45
|
export * from './types';
|
|
48
46
|
export * from './utils/contact/MappingUtils';
|
|
49
47
|
export * from './utils/digitalCredential/MappingUtils';
|
|
48
|
+
export * from './utils/eventLogger/MappingUtils';
|
|
49
|
+
export * from './utils/issuanceBranding/MappingUtils';
|
|
50
|
+
export * from './utils/presentationDefinition/MappingUtils';
|
|
51
|
+
export * from './utils/hasher';
|
|
50
52
|
export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
|
|
51
53
|
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
52
54
|
export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
|
|
@@ -55,6 +57,5 @@ export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
|
55
57
|
export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
56
58
|
export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
57
59
|
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof DigitalCredentialEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof PresentationDefinitionItemEntity)[];
|
|
58
|
-
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity,
|
|
59
|
-
export * from './utils/hasher';
|
|
60
|
+
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, DigitalCredentialEntity, MachineStateInfoEntity, PresentationDefinitionItemEntity, ContactMetadataItemEntity, };
|
|
60
61
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index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WAAW,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,yBAAyB,GAC1B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ 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.
|
|
18
|
-
exports.ContactMetadataItemEntity = exports.
|
|
17
|
+
exports.StatusListEntity = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStorePresentationDefinitionEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.PDStore = exports.AbstractPDStore = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.DigitalCredentialStore = exports.AbstractDigitalCredentialStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
|
+
exports.ContactMetadataItemEntity = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.DigitalCredentialEntity = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
|
|
19
19
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
20
20
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
21
21
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
@@ -38,28 +38,20 @@ const OpenIdConfigEntity_1 = require("./entities/contact/OpenIdConfigEntity");
|
|
|
38
38
|
Object.defineProperty(exports, "OpenIdConfigEntity", { enumerable: true, get: function () { return OpenIdConfigEntity_1.OpenIdConfigEntity; } });
|
|
39
39
|
const BackgroundAttributesEntity_1 = require("./entities/issuanceBranding/BackgroundAttributesEntity");
|
|
40
40
|
Object.defineProperty(exports, "BackgroundAttributesEntity", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.BackgroundAttributesEntity; } });
|
|
41
|
-
Object.defineProperty(exports, "backgroundAttributesEntityFrom", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.backgroundAttributesEntityFrom; } });
|
|
42
41
|
const CredentialBrandingEntity_1 = require("./entities/issuanceBranding/CredentialBrandingEntity");
|
|
43
42
|
Object.defineProperty(exports, "CredentialBrandingEntity", { enumerable: true, get: function () { return CredentialBrandingEntity_1.CredentialBrandingEntity; } });
|
|
44
|
-
Object.defineProperty(exports, "credentialBrandingEntityFrom", { enumerable: true, get: function () { return CredentialBrandingEntity_1.credentialBrandingEntityFrom; } });
|
|
45
43
|
const CredentialLocaleBrandingEntity_1 = require("./entities/issuanceBranding/CredentialLocaleBrandingEntity");
|
|
46
44
|
Object.defineProperty(exports, "CredentialLocaleBrandingEntity", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity; } });
|
|
47
|
-
Object.defineProperty(exports, "credentialLocaleBrandingEntityFrom", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.credentialLocaleBrandingEntityFrom; } });
|
|
48
45
|
const ImageAttributesEntity_1 = require("./entities/issuanceBranding/ImageAttributesEntity");
|
|
49
46
|
Object.defineProperty(exports, "ImageAttributesEntity", { enumerable: true, get: function () { return ImageAttributesEntity_1.ImageAttributesEntity; } });
|
|
50
|
-
Object.defineProperty(exports, "imageAttributesEntityFrom", { enumerable: true, get: function () { return ImageAttributesEntity_1.imageAttributesEntityFrom; } });
|
|
51
47
|
const ImageDimensionsEntity_1 = require("./entities/issuanceBranding/ImageDimensionsEntity");
|
|
52
48
|
Object.defineProperty(exports, "ImageDimensionsEntity", { enumerable: true, get: function () { return ImageDimensionsEntity_1.ImageDimensionsEntity; } });
|
|
53
|
-
Object.defineProperty(exports, "imageDimensionsEntityFrom", { enumerable: true, get: function () { return ImageDimensionsEntity_1.imageDimensionsEntityFrom; } });
|
|
54
49
|
const IssuerLocaleBrandingEntity_1 = require("./entities/issuanceBranding/IssuerLocaleBrandingEntity");
|
|
55
50
|
Object.defineProperty(exports, "IssuerLocaleBrandingEntity", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity; } });
|
|
56
|
-
Object.defineProperty(exports, "issuerLocaleBrandingEntityFrom", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom; } });
|
|
57
51
|
const IssuerBrandingEntity_1 = require("./entities/issuanceBranding/IssuerBrandingEntity");
|
|
58
52
|
Object.defineProperty(exports, "IssuerBrandingEntity", { enumerable: true, get: function () { return IssuerBrandingEntity_1.IssuerBrandingEntity; } });
|
|
59
|
-
Object.defineProperty(exports, "issuerBrandingEntityFrom", { enumerable: true, get: function () { return IssuerBrandingEntity_1.issuerBrandingEntityFrom; } });
|
|
60
53
|
const TextAttributesEntity_1 = require("./entities/issuanceBranding/TextAttributesEntity");
|
|
61
54
|
Object.defineProperty(exports, "TextAttributesEntity", { enumerable: true, get: function () { return TextAttributesEntity_1.TextAttributesEntity; } });
|
|
62
|
-
Object.defineProperty(exports, "textAttributesEntityFrom", { enumerable: true, get: function () { return TextAttributesEntity_1.textAttributesEntityFrom; } });
|
|
63
55
|
const StatusList2021Entity_1 = require("./entities/statusList2021/StatusList2021Entity");
|
|
64
56
|
Object.defineProperty(exports, "StatusListEntity", { enumerable: true, get: function () { return StatusList2021Entity_1.StatusListEntity; } });
|
|
65
57
|
const StatusList2021EntryEntity_1 = require("./entities/statusList2021/StatusList2021EntryEntity");
|
|
@@ -90,15 +82,8 @@ var StatusListStore_1 = require("./statusList/StatusListStore");
|
|
|
90
82
|
Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
|
|
91
83
|
const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
|
|
92
84
|
Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
|
|
93
|
-
Object.defineProperty(exports, "auditEventEntityFrom", { enumerable: true, get: function () { return AuditEventEntity_1.auditEventEntityFrom; } });
|
|
94
85
|
const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
|
|
95
86
|
Object.defineProperty(exports, "DigitalCredentialEntity", { enumerable: true, get: function () { return DigitalCredentialEntity_1.DigitalCredentialEntity; } });
|
|
96
|
-
const MappingUtils_1 = require("./utils/digitalCredential/MappingUtils");
|
|
97
|
-
Object.defineProperty(exports, "digitalCredentialFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialFrom; } });
|
|
98
|
-
Object.defineProperty(exports, "digitalCredentialsFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialsFrom; } });
|
|
99
|
-
Object.defineProperty(exports, "nonPersistedDigitalCredentialEntityFromAddArgs", { enumerable: true, get: function () { return MappingUtils_1.nonPersistedDigitalCredentialEntityFromAddArgs; } });
|
|
100
|
-
const MappingUtils_2 = require("./utils/presentationDefinition/MappingUtils");
|
|
101
|
-
Object.defineProperty(exports, "isPresentationDefinitionEqual", { enumerable: true, get: function () { return MappingUtils_2.isPresentationDefinitionEqual; } });
|
|
102
87
|
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
103
88
|
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
104
89
|
const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
|
|
@@ -127,6 +112,10 @@ Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { en
|
|
|
127
112
|
__exportStar(require("./types"), exports);
|
|
128
113
|
__exportStar(require("./utils/contact/MappingUtils"), exports);
|
|
129
114
|
__exportStar(require("./utils/digitalCredential/MappingUtils"), exports);
|
|
115
|
+
__exportStar(require("./utils/eventLogger/MappingUtils"), exports);
|
|
116
|
+
__exportStar(require("./utils/issuanceBranding/MappingUtils"), exports);
|
|
117
|
+
__exportStar(require("./utils/presentationDefinition/MappingUtils"), exports);
|
|
118
|
+
__exportStar(require("./utils/hasher"), exports);
|
|
130
119
|
exports.DataStoreContactEntities = [
|
|
131
120
|
BaseConfigEntity_1.BaseConfigEntity,
|
|
132
121
|
ConnectionEntity_1.ConnectionEntity,
|
|
@@ -171,5 +160,4 @@ exports.DataStoreEntities = [
|
|
|
171
160
|
...exports.DataStoreMachineStateEntities,
|
|
172
161
|
...exports.DataStorePresentationDefinitionEntities,
|
|
173
162
|
];
|
|
174
|
-
__exportStar(require("./utils/hasher"), exports);
|
|
175
163
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAqHpE,iGArHO,mCAAgB,OAqHP;AApHlB,mGAA+F;AAiI7F,yGAjIO,mDAAwB,OAiIP;AAhI1B,4EAAwE;AAsHtE,kGAtHO,qCAAiB,OAsHP;AArHnB,0EAAsE;AAmHpE,iGAnHO,mCAAgB,OAmHP;AAlHlB,gEAA4D;AAmH1D,4FAnHO,yBAAW,OAmHP;AAlHb,gGAA4F;AAoH1F,4GApHO,yDAA2B,OAoHP;AAnH7B,gFAA4E;AAoH1E,oGApHO,yCAAmB,OAoHP;AAnHrB,sEAAkE;AAoHhE,+FApHO,+BAAc,OAoHP;AAnHhB,8FAA0F;AAoHxF,2GApHO,uDAA0B,OAoHP;AAnH5B,8EAA0E;AAoHxE,mGApHO,uCAAkB,OAoHP;AAnHpB,uGAAmG;AAoHjG,2GApHO,uDAA0B,OAoHP;AAnH5B,mGAA+F;AAoH7F,yGApHO,mDAAwB,OAoHP;AAnH1B,+GAA2G;AAyHzG,+GAzHO,+DAA8B,OAyHP;AAxHhC,6FAAyF;AAmHvF,sGAnHO,6CAAqB,OAmHP;AAlHvB,6FAAyF;AAmHvF,sGAnHO,6CAAqB,OAmHP;AAlHvB,uGAAmG;AAuHjG,2GAvHO,uDAA0B,OAuHP;AAtH5B,2FAAuF;AAmHrF,qGAnHO,2CAAoB,OAmH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Promise } from '@sphereon/ssi-types';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
3
|
import { AbstractIssuanceBrandingStore } from './AbstractIssuanceBrandingStore';
|
|
4
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
5
|
export declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
@@ -21,10 +21,6 @@ export declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore
|
|
|
21
21
|
getIssuerLocaleBranding: (args?: IGetIssuerLocaleBrandingArgs) => Promise<Array<IIssuerLocaleBranding>>;
|
|
22
22
|
removeIssuerLocaleBranding: (args: IRemoveIssuerLocaleBrandingArgs) => Promise<void>;
|
|
23
23
|
updateIssuerLocaleBranding: (args: IUpdateIssuerLocaleBrandingArgs) => Promise<IIssuerLocaleBranding>;
|
|
24
|
-
private credentialBrandingFrom;
|
|
25
|
-
private issuerBrandingFrom;
|
|
26
|
-
private localeBrandingFrom;
|
|
27
|
-
private replaceNullWithUndefined;
|
|
28
24
|
private hasDuplicateLocales;
|
|
29
25
|
private removeLocaleBranding;
|
|
30
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuanceBrandingStore.d.ts","sourceRoot":"","sources":["../../src/issuanceBranding/IssuanceBrandingStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IssuanceBrandingStore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