@sphereon/ssi-sdk.data-store 0.30.2-unstable.8 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -3
- package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
- package/dist/eventLogger/EventLoggerStore.js +32 -3
- 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 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +5 -5
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
- package/dist/migrations/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/SortingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.js +2 -2
- 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 +4 -4
- package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +5 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -1
- package/dist/utils/eventLogger/MappingUtils.js +62 -2
- package/dist/utils/eventLogger/MappingUtils.js.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +17 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -1
- package/dist/utils/issuanceBranding/MappingUtils.js +90 -1
- package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +2 -2
- 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 +46 -11
- package/src/index.ts +20 -30
- package/src/issuanceBranding/IssuanceBrandingStore.ts +15 -9
- 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/contact/MappingUtils.ts +5 -2
- package/src/utils/eventLogger/MappingUtils.ts +91 -2
- package/src/utils/issuanceBranding/MappingUtils.ts +115 -2
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import { IBasicImageDimensions } from '../../types';
|
|
3
2
|
export declare class ImageDimensionsEntity extends BaseEntity {
|
|
4
3
|
id: string;
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
7
6
|
}
|
|
8
|
-
export declare const imageDimensionsEntityFrom: (args: IBasicImageDimensions) => ImageDimensionsEntity;
|
|
9
7
|
//# sourceMappingURL=ImageDimensionsEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageDimensionsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"ImageDimensionsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;AAE5E,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,EAAG,MAAM,CAAA;IAGX,KAAK,EAAG,MAAM,CAAA;IAGd,MAAM,EAAG,MAAM,CAAA;CAChB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ImageDimensionsEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
let ImageDimensionsEntity = class ImageDimensionsEntity extends typeorm_1.BaseEntity {
|
|
15
15
|
};
|
|
@@ -29,11 +29,4 @@ __decorate([
|
|
|
29
29
|
exports.ImageDimensionsEntity = ImageDimensionsEntity = __decorate([
|
|
30
30
|
(0, typeorm_1.Entity)('ImageDimensions')
|
|
31
31
|
], ImageDimensionsEntity);
|
|
32
|
-
const imageDimensionsEntityFrom = (args) => {
|
|
33
|
-
const imageDimensionsEntity = new ImageDimensionsEntity();
|
|
34
|
-
imageDimensionsEntity.width = args.width;
|
|
35
|
-
imageDimensionsEntity.height = args.height;
|
|
36
|
-
return imageDimensionsEntity;
|
|
37
|
-
};
|
|
38
|
-
exports.imageDimensionsEntityFrom = imageDimensionsEntityFrom;
|
|
39
32
|
//# sourceMappingURL=ImageDimensionsEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;
|
|
1
|
+
{"version":3,"file":"ImageDimensionsEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAGrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAU;CASpD,CAAA;AATY,sDAAqB;AAEhC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;iDACpB;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACvD;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;qDACvD;gCARJ,qBAAqB;IADjC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,qBAAqB,CASjC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
2
|
import { IssuerLocaleBrandingEntity } from './IssuerLocaleBrandingEntity';
|
|
3
|
-
import { IBasicIssuerBranding } from '../../types';
|
|
4
3
|
export declare class IssuerBrandingEntity extends BaseEntity {
|
|
5
4
|
id: string;
|
|
6
5
|
issuerCorrelationId: string;
|
|
@@ -10,5 +9,4 @@ export declare class IssuerBrandingEntity extends BaseEntity {
|
|
|
10
9
|
updateUpdatedDate(): void;
|
|
11
10
|
validate(): Promise<undefined>;
|
|
12
11
|
}
|
|
13
|
-
export declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBrandingEntity;
|
|
14
12
|
//# sourceMappingURL=IssuerBrandingEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAUX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,qBAEa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,mBAAmB,EAAG,MAAM,CAAA;IAa5B,cAAc,EAAG,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAGlD,SAAS,EAAG,IAAI,CAAA;IAGhB,aAAa,EAAG,IAAI,CAAA;IAKpB,iBAAiB,IAAI,IAAI;IAMnB,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC"}
|
|
@@ -18,7 +18,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.IssuerBrandingEntity = void 0;
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
23
|
const class_validator_1 = require("class-validator");
|
|
24
24
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
@@ -86,11 +86,4 @@ exports.IssuerBrandingEntity = IssuerBrandingEntity = __decorate([
|
|
|
86
86
|
(0, typeorm_1.Entity)('IssuerBranding'),
|
|
87
87
|
(0, typeorm_1.Index)('IDX_IssuerBrandingEntity_issuerCorrelationId', ['issuerCorrelationId'])
|
|
88
88
|
], IssuerBrandingEntity);
|
|
89
|
-
const issuerBrandingEntityFrom = (args) => {
|
|
90
|
-
const issuerBrandingEntity = new IssuerBrandingEntity();
|
|
91
|
-
issuerBrandingEntity.issuerCorrelationId = args.issuerCorrelationId;
|
|
92
|
-
issuerBrandingEntity.localeBranding = args.localeBranding.map((localeBranding) => (0, IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom)(localeBranding));
|
|
93
|
-
return issuerBrandingEntity;
|
|
94
|
-
};
|
|
95
|
-
exports.issuerBrandingEntityFrom = issuerBrandingEntityFrom;
|
|
96
89
|
//# sourceMappingURL=IssuerBrandingEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"IssuerBrandingEntity.js","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerBrandingEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAWgB;AAChB,qDAAqF;AACrF,yEAAgE;AAChE,6EAAyE;AAIlE,IAAM,oBAAo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AC;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,qDAA0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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,12 +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
|
+
getActivityEvents: (args?: GetActivityEventsArgs) => Promise<Array<ActivityLoggingEvent>>;
|
|
12
|
+
storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
|
|
11
13
|
}
|
|
12
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,6 +13,7 @@ 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");
|
|
@@ -22,19 +23,47 @@ class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerSto
|
|
|
22
23
|
constructor(dbConnection) {
|
|
23
24
|
super();
|
|
24
25
|
this.getAuditEvents = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
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;
|
|
26
32
|
debug('Getting audit events', args);
|
|
27
|
-
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find(
|
|
33
|
+
const result = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).find({
|
|
34
|
+
where: auditEventsFilter,
|
|
35
|
+
});
|
|
28
36
|
return result.map((event) => (0, MappingUtils_1.auditEventFrom)(event));
|
|
29
37
|
});
|
|
30
38
|
this.storeAuditEvent = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
31
39
|
const { event } = args;
|
|
32
|
-
const auditEventEntity = (0,
|
|
40
|
+
const auditEventEntity = (0, MappingUtils_1.auditEventEntityFrom)(event);
|
|
33
41
|
const connection = yield this.dbConnection;
|
|
34
42
|
debug('Storing audit event', auditEventEntity);
|
|
35
43
|
const createdResult = yield connection.getRepository(AuditEventEntity_1.AuditEventEntity).save(auditEventEntity);
|
|
36
44
|
return (0, MappingUtils_1.auditEventFrom)(createdResult);
|
|
37
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);
|
|
66
|
+
});
|
|
38
67
|
this.dbConnection = dbConnection;
|
|
39
68
|
}
|
|
40
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,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,EAAE,IAAI,CAAC,CAAA;YACnC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,mCAAgB,CAAC,CAAC,IAAI,CAAC;gBACnE,KAAK,EAAE,iBAAiB;aAC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AAC,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';
|
|
@@ -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,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,0BAA0B,EAAE,
|
|
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,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAC1F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,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,yuBAQ7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,yBAAyB,EACzB,sBAAsB,GACvB,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.
|
|
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.CredentialClaimsEntity = exports.ContactMetadataItemEntity = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.DigitalCredentialEntity = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
|
|
19
19
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
20
20
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
21
21
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
@@ -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");
|
|
@@ -74,6 +66,16 @@ const ElectronicAddressEntity_1 = require("./entities/contact/ElectronicAddressE
|
|
|
74
66
|
Object.defineProperty(exports, "ElectronicAddressEntity", { enumerable: true, get: function () { return ElectronicAddressEntity_1.ElectronicAddressEntity; } });
|
|
75
67
|
const PhysicalAddressEntity_1 = require("./entities/contact/PhysicalAddressEntity");
|
|
76
68
|
Object.defineProperty(exports, "PhysicalAddressEntity", { enumerable: true, get: function () { return PhysicalAddressEntity_1.PhysicalAddressEntity; } });
|
|
69
|
+
const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
|
|
70
|
+
Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
|
|
71
|
+
const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
|
|
72
|
+
Object.defineProperty(exports, "DigitalCredentialEntity", { enumerable: true, get: function () { return DigitalCredentialEntity_1.DigitalCredentialEntity; } });
|
|
73
|
+
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
74
|
+
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
75
|
+
const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
|
|
76
|
+
Object.defineProperty(exports, "ContactMetadataItemEntity", { enumerable: true, get: function () { return ContactMetadataItemEntity_1.ContactMetadataItemEntity; } });
|
|
77
|
+
const CredentialClaimsEntity_1 = require("./entities/issuanceBranding/CredentialClaimsEntity");
|
|
78
|
+
Object.defineProperty(exports, "CredentialClaimsEntity", { enumerable: true, get: function () { return CredentialClaimsEntity_1.CredentialClaimsEntity; } });
|
|
77
79
|
var ContactStore_1 = require("./contact/ContactStore");
|
|
78
80
|
Object.defineProperty(exports, "ContactStore", { enumerable: true, get: function () { return ContactStore_1.ContactStore; } });
|
|
79
81
|
var AbstractContactStore_1 = require("./contact/AbstractContactStore");
|
|
@@ -88,21 +90,6 @@ var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore"
|
|
|
88
90
|
Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
|
|
89
91
|
var StatusListStore_1 = require("./statusList/StatusListStore");
|
|
90
92
|
Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
|
|
91
|
-
const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
|
|
92
|
-
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
|
-
const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
|
|
95
|
-
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
|
-
const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
|
|
103
|
-
Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
|
|
104
|
-
const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
|
|
105
|
-
Object.defineProperty(exports, "ContactMetadataItemEntity", { enumerable: true, get: function () { return ContactMetadataItemEntity_1.ContactMetadataItemEntity; } });
|
|
106
93
|
var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore");
|
|
107
94
|
Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
|
|
108
95
|
var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
|
|
@@ -127,6 +114,10 @@ Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { en
|
|
|
127
114
|
__exportStar(require("./types"), exports);
|
|
128
115
|
__exportStar(require("./utils/contact/MappingUtils"), exports);
|
|
129
116
|
__exportStar(require("./utils/digitalCredential/MappingUtils"), exports);
|
|
117
|
+
__exportStar(require("./utils/eventLogger/MappingUtils"), exports);
|
|
118
|
+
__exportStar(require("./utils/issuanceBranding/MappingUtils"), exports);
|
|
119
|
+
__exportStar(require("./utils/presentationDefinition/MappingUtils"), exports);
|
|
120
|
+
__exportStar(require("./utils/hasher"), exports);
|
|
130
121
|
exports.DataStoreContactEntities = [
|
|
131
122
|
BaseConfigEntity_1.BaseConfigEntity,
|
|
132
123
|
ConnectionEntity_1.ConnectionEntity,
|
|
@@ -155,6 +146,7 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
155
146
|
TextAttributesEntity_1.TextAttributesEntity,
|
|
156
147
|
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
157
148
|
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
149
|
+
CredentialClaimsEntity_1.CredentialClaimsEntity,
|
|
158
150
|
];
|
|
159
151
|
exports.DataStorePresentationDefinitionEntities = [PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity];
|
|
160
152
|
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
|
@@ -171,5 +163,4 @@ exports.DataStoreEntities = [
|
|
|
171
163
|
...exports.DataStoreMachineStateEntities,
|
|
172
164
|
...exports.DataStorePresentationDefinitionEntities,
|
|
173
165
|
];
|
|
174
|
-
__exportStar(require("./utils/hasher"), exports);
|
|
175
166
|
//# sourceMappingURL=index.js.map
|