@sphereon/ssi-sdk.data-store 0.30.2-unstable.9 → 0.31.1-fix.4
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/CredentialClaimsEntity.d.ts +10 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts.map +1 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +70 -0
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +1 -0
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +2 -2
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +12 -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 +20 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -26
- 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.d.ts.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +5 -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/postgres/1708525189001-CreateDigitalCredential.js +1 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +1 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +7 -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/migrations/sqlite/1708525189002-CreateDigitalCredential.js +1 -1
- package/dist/presentationDefinition/PDStore.d.ts.map +1 -1
- package/dist/statusList/StatusListStore.js.map +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/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 +21 -4
- 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 +24 -0
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -0
- package/dist/utils/issuanceBranding/MappingUtils.js +109 -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 +10 -9
- package/src/__tests__/contact.store.test.ts +46 -4
- package/src/__tests__/digitalCredential.entities.test.ts +1 -7
- package/src/__tests__/digitalCredential.store.test.ts +85 -4
- package/src/__tests__/eventLogger.entities.test.ts +60 -5
- package/src/__tests__/eventLogger.store.test.ts +461 -3
- package/src/__tests__/issuanceBranding.entities.test.ts +129 -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/CredentialClaimsEntity.ts +35 -0
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +11 -18
- 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 +4 -2
- package/src/eventLogger/EventLoggerStore.ts +45 -32
- package/src/index.ts +20 -30
- package/src/issuanceBranding/IssuanceBrandingStore.ts +26 -68
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +11 -1
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +34 -6
- package/src/migrations/postgres/1708525189001-CreateDigitalCredential.ts +1 -1
- package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +11 -3
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +27 -1
- package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +1 -1
- package/src/statusList/StatusListStore.ts +1 -1
- package/src/types/contact/contact.ts +3 -3
- package/src/types/digitalCredential/digitalCredential.ts +1 -0
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -2
- package/src/types/eventLogger/eventLogger.ts +3 -2
- package/src/types/issuanceBranding/issuanceBranding.ts +24 -6
- 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 +117 -0
- package/src/utils/issuanceBranding/MappingUtils.ts +145 -0
- package/src/utils/presentationDefinition/MappingUtils.ts +4 -1
|
@@ -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":";;;;;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,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,KAAK;KAChB,CACF;IACA,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;8BAC9C,KAAK;4DAA4B;AAGlD;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/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,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;6DACrE;AAIlB;IAFC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;0DACrE;AAIf;IAFC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;6DACrE;AAGlB;IADC,IAAA,gBAAM,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;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
|
|
@@ -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,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEjH,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":";;;AAGA,MAAsB,wBAAwB;
|
|
1
|
+
{"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAGA,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;AAGrE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAIjH,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,oEAAoI;AAGpI,MAAM,KAAK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AK,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';
|
|
@@ -24,6 +24,11 @@ import { PartyRelationshipEntity } from './entities/contact/PartyRelationshipEnt
|
|
|
24
24
|
import { PartyTypeEntity } from './entities/contact/PartyTypeEntity';
|
|
25
25
|
import { ElectronicAddressEntity } from './entities/contact/ElectronicAddressEntity';
|
|
26
26
|
import { PhysicalAddressEntity } from './entities/contact/PhysicalAddressEntity';
|
|
27
|
+
import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity';
|
|
28
|
+
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
29
|
+
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
30
|
+
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
|
|
31
|
+
import { CredentialClaimsEntity } from './entities/issuanceBranding/CredentialClaimsEntity';
|
|
27
32
|
export { ContactStore } from './contact/ContactStore';
|
|
28
33
|
export { AbstractContactStore } from './contact/AbstractContactStore';
|
|
29
34
|
export { AbstractDigitalCredentialStore } from './digitalCredential/AbstractDigitalCredentialStore';
|
|
@@ -31,12 +36,6 @@ export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialSto
|
|
|
31
36
|
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
|
|
32
37
|
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
|
|
33
38
|
export { StatusListStore } from './statusList/StatusListStore';
|
|
34
|
-
import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity';
|
|
35
|
-
import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
|
|
36
|
-
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
|
|
37
|
-
import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils';
|
|
38
|
-
import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
|
|
39
|
-
import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
|
|
40
39
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
|
|
41
40
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore';
|
|
42
41
|
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
|
|
@@ -47,14 +46,17 @@ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMi
|
|
|
47
46
|
export * from './types';
|
|
48
47
|
export * from './utils/contact/MappingUtils';
|
|
49
48
|
export * from './utils/digitalCredential/MappingUtils';
|
|
49
|
+
export * from './utils/eventLogger/MappingUtils';
|
|
50
|
+
export * from './utils/issuanceBranding/MappingUtils';
|
|
51
|
+
export * from './utils/presentationDefinition/MappingUtils';
|
|
52
|
+
export * from './utils/hasher';
|
|
50
53
|
export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
|
|
51
|
-
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
54
|
+
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialClaimsEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
52
55
|
export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
|
|
53
56
|
export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
|
|
54
57
|
export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
55
58
|
export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
56
59
|
export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
57
|
-
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 declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof DigitalCredentialEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialClaimsEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof PresentationDefinitionItemEntity)[];
|
|
61
|
+
export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, DigitalCredentialEntity, MachineStateInfoEntity, PresentationDefinitionItemEntity, ContactMetadataItemEntity, CredentialClaimsEntity, };
|
|
60
62
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CA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