@sphereon/ssi-sdk.data-store 0.30.2-feature.SPRIND.61.JARM.pex.fixes.40 → 0.30.2-feature.SPRIND.77.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/contact/ContactStore.d.ts.map +1 -1
  2. package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +1 -1
  3. package/dist/digitalCredential/DigitalCredentialStore.js +1 -3
  4. package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
  5. package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +1 -1
  6. package/dist/entities/digitalCredential/DigitalCredentialEntity.js +1 -1
  7. package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
  8. package/dist/entities/eventLogger/AuditEventEntity.d.ts +8 -4
  9. package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +1 -1
  10. package/dist/entities/eventLogger/AuditEventEntity.js +28 -25
  11. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  12. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +0 -2
  13. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +1 -1
  14. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +1 -8
  15. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
  16. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +0 -2
  17. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +1 -1
  18. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +1 -9
  19. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
  20. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +0 -2
  21. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -1
  22. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +1 -16
  23. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
  24. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +0 -2
  25. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +1 -1
  26. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +1 -11
  27. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
  28. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +0 -2
  29. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +1 -1
  30. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +1 -8
  31. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
  32. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +0 -2
  33. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -1
  34. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +1 -8
  35. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
  36. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +4 -2
  37. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +1 -1
  38. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +21 -15
  39. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
  40. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +0 -2
  41. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +1 -1
  42. package/dist/entities/issuanceBranding/TextAttributesEntity.js +1 -7
  43. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
  44. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +4 -2
  45. package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -1
  46. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
  47. package/dist/eventLogger/EventLoggerStore.d.ts +5 -4
  48. package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
  49. package/dist/eventLogger/EventLoggerStore.js +35 -8
  50. package/dist/eventLogger/EventLoggerStore.js.map +1 -1
  51. package/dist/index.d.ts +14 -13
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +6 -18
  54. package/dist/index.js.map +1 -1
  55. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +1 -5
  56. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
  57. package/dist/issuanceBranding/IssuanceBrandingStore.js +17 -46
  58. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
  59. package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -1
  60. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +1 -1
  61. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  62. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +1 -1
  63. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +34 -6
  64. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
  65. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +3 -3
  66. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
  67. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +1 -1
  68. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +27 -1
  69. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
  70. package/dist/presentationDefinition/PDStore.d.ts.map +1 -1
  71. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -2
  72. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -1
  73. package/dist/types/eventLogger/eventLogger.d.ts +3 -2
  74. package/dist/types/eventLogger/eventLogger.d.ts.map +1 -1
  75. package/dist/types/issuanceBranding/issuanceBranding.d.ts +7 -2
  76. package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -1
  77. package/dist/utils/FormattingUtils.d.ts +2 -0
  78. package/dist/utils/FormattingUtils.d.ts.map +1 -0
  79. package/dist/utils/FormattingUtils.js +23 -0
  80. package/dist/utils/FormattingUtils.js.map +1 -0
  81. package/dist/utils/SortingUtils.d.ts.map +1 -1
  82. package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
  83. package/dist/utils/contact/MappingUtils.js +27 -14
  84. package/dist/utils/contact/MappingUtils.js.map +1 -1
  85. package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -1
  86. package/dist/utils/digitalCredential/MappingUtils.js +7 -5
  87. package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
  88. package/dist/utils/eventLogger/MappingUtils.d.ts +8 -0
  89. package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -0
  90. package/dist/utils/eventLogger/MappingUtils.js +70 -0
  91. package/dist/utils/eventLogger/MappingUtils.js.map +1 -0
  92. package/dist/utils/issuanceBranding/MappingUtils.d.ts +22 -0
  93. package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -0
  94. package/dist/utils/issuanceBranding/MappingUtils.js +100 -0
  95. package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -0
  96. package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +1 -1
  97. package/dist/utils/presentationDefinition/MappingUtils.js +5 -3
  98. package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
  99. package/package.json +7 -7
  100. package/src/__tests__/digitalCredential.entities.test.ts +5 -5
  101. package/src/__tests__/digitalCredential.store.test.ts +83 -4
  102. package/src/__tests__/eventLogger.entities.test.ts +60 -5
  103. package/src/__tests__/eventLogger.store.test.ts +480 -3
  104. package/src/__tests__/issuanceBranding.entities.test.ts +8 -0
  105. package/src/digitalCredential/DigitalCredentialStore.ts +1 -3
  106. package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
  107. package/src/entities/eventLogger/AuditEventEntity.ts +23 -28
  108. package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -11
  109. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +1 -13
  110. package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +0 -17
  111. package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -14
  112. package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +0 -9
  113. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +1 -12
  114. package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +17 -17
  115. package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -9
  116. package/src/eventLogger/AbstractEventLoggerStore.ts +9 -2
  117. package/src/eventLogger/EventLoggerStore.ts +55 -32
  118. package/src/index.ts +13 -26
  119. package/src/issuanceBranding/IssuanceBrandingStore.ts +26 -68
  120. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
  121. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +34 -6
  122. package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +3 -3
  123. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +27 -1
  124. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -2
  125. package/src/types/eventLogger/eventLogger.ts +3 -2
  126. package/src/types/issuanceBranding/issuanceBranding.ts +9 -3
  127. package/src/utils/FormattingUtils.ts +21 -0
  128. package/src/utils/contact/MappingUtils.ts +39 -13
  129. package/src/utils/digitalCredential/MappingUtils.ts +4 -1
  130. package/src/utils/eventLogger/MappingUtils.ts +116 -0
  131. package/src/utils/issuanceBranding/MappingUtils.ts +135 -0
  132. package/src/utils/presentationDefinition/MappingUtils.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"IssuerLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,qBAEa,0BAA2B,SAAQ,wBAAwB;IAKtE,cAAc,EAAG,oBAAoB,CAAA;IAGrC,gBAAgB,EAAG,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,8BAA8B,SAAU,0BAA0B,KAAG,0BAUjF,CAAA"}
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.issuerLocaleBrandingEntityFrom = exports.IssuerLocaleBrandingEntity = void 0;
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;AAE3E,6EAA6E;AAC7E,mEAAmE;AACnE,iEAA6D;AAC7D,yEAAqE;AACrE,iEAAiE;AACjE,8CAA6C;AAItC,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mDAAwB;CASvE,CAAA;AATY,gEAA0B;AAKrC;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAoB,EAAE,CAAC,cAAoC,EAAE,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE;QAC9G,QAAQ,EAAE,SAAS;KACp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,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;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,qBACa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,CAAC,EAAE,MAAM,CAAA;IAIR,QAAQ,IAAI,OAAO,CAAC,SAAS,CAAC;CAOrC;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAKrE,CAAA"}
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.textAttributesEntityFrom = exports.TextAttributesEntity = void 0;
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;AAExG,qDAAqE;AACrE,8CAAyE;AAGlE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAU5C,QAAQ;;YACZ,MAAM,UAAU,GAA2B,MAAM,IAA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,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 { GetAuditEventsArgs, StoreAuditEventArgs } from '../types';
2
- import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
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,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAChF"}
1
+ {"version":3,"file":"AbstractEventLoggerStore.d.ts","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAEjB,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpF,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC7F,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAC/E,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CACzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAGA,MAAsB,wBAAwB;CAG7C;AAHD,4DAGC"}
1
+ {"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAQA,MAAsB,wBAAwB;CAK7C;AALD,4DAKC"}
@@ -1,13 +1,14 @@
1
- import { DataSource } from 'typeorm';
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
- private auditEventFrom;
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":[],"mapp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O,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 connection = yield this.dbConnection; // TODO apply everywhere
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(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
27
- return result.map((event) => this.auditEventFrom(event));
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, AuditEventEntity_1.auditEventEntityFrom)(event);
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 this.auditEventFrom(createdResult);
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":";;;;;;;;;;;;;;;AAAA,kDAAuC;AAIvC,yEAAqE;AACrE,+EAAiG;AAGjG,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,UAAU,GAAe,MAAM,IAAI,CAAC,YAAY,CAAA,CAAC,wBAAwB;YAC/E,KAAK,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAA;YACnC,MAAM,MAAM,GAA4B,MAAM,UAAU,CAAC,aAAa,CAAC,mCAAgB,CAAC,CAAC,IAAI,mBACxF,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,KAAI,EAAE,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,CAAC,EAC5C,CAAA;YAEF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;QAC5E,CAAC,CAAA,CAAA;QAED,oBAAe,GAAG,CAAO,IAAyB,EAA8B,EAAE;YAChF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;YAEtB,MAAM,gBAAgB,GAAqB,IAAA,uCAAoB,EAAC,K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AAC,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, backgroundAttributesEntityFrom } from './entities/issuanceBranding/BackgroundAttributesEntity';
12
- import { CredentialBrandingEntity, credentialBrandingEntityFrom } from './entities/issuanceBranding/CredentialBrandingEntity';
13
- import { CredentialLocaleBrandingEntity, credentialLocaleBrandingEntityFrom } from './entities/issuanceBranding/CredentialLocaleBrandingEntity';
14
- import { ImageAttributesEntity, imageAttributesEntityFrom } from './entities/issuanceBranding/ImageAttributesEntity';
15
- import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/issuanceBranding/ImageDimensionsEntity';
16
- import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
17
- import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity';
18
- import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity';
11
+ import { BackgroundAttributesEntity } from './entities/issuanceBranding/BackgroundAttributesEntity';
12
+ import { CredentialBrandingEntity } from './entities/issuanceBranding/CredentialBrandingEntity';
13
+ import { CredentialLocaleBrandingEntity } from './entities/issuanceBranding/CredentialLocaleBrandingEntity';
14
+ import { ImageAttributesEntity } from './entities/issuanceBranding/ImageAttributesEntity';
15
+ import { ImageDimensionsEntity } from './entities/issuanceBranding/ImageDimensionsEntity';
16
+ import { IssuerLocaleBrandingEntity } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
17
+ import { IssuerBrandingEntity } from './entities/issuanceBranding/IssuerBrandingEntity';
18
+ import { TextAttributesEntity } from './entities/issuanceBranding/TextAttributesEntity';
19
19
  import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity';
20
20
  import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity';
21
21
  import { MachineStateInfoEntity } from './entities/machineState/MachineStateInfoEntity';
@@ -31,10 +31,8 @@ export { DigitalCredentialStore } from './digitalCredential/DigitalCredentialSto
31
31
  export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
32
32
  export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
33
33
  export { StatusListStore } from './statusList/StatusListStore';
34
- import { AuditEventEntity, auditEventEntityFrom } from './entities/eventLogger/AuditEventEntity';
34
+ import { AuditEventEntity } from './entities/eventLogger/AuditEventEntity';
35
35
  import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCredentialEntity';
36
- import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
37
- import { isPresentationDefinitionEqual } from './utils/presentationDefinition/MappingUtils';
38
36
  import { PresentationDefinitionItemEntity } from './entities/presentationDefinition/PresentationDefinitionItemEntity';
39
37
  import { ContactMetadataItemEntity } from './entities/contact/ContactMetadataItemEntity';
40
38
  export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
@@ -47,6 +45,10 @@ export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMi
47
45
  export * from './types';
48
46
  export * from './utils/contact/MappingUtils';
49
47
  export * from './utils/digitalCredential/MappingUtils';
48
+ export * from './utils/eventLogger/MappingUtils';
49
+ export * from './utils/issuanceBranding/MappingUtils';
50
+ export * from './utils/presentationDefinition/MappingUtils';
51
+ export * from './utils/hasher';
50
52
  export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
51
53
  export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
52
54
  export declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
@@ -55,6 +57,5 @@ export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
55
57
  export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
56
58
  export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
57
59
  export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof DigitalCredentialEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof ContactMetadataItemEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof PresentationDefinitionItemEntity)[];
58
- export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity, PresentationDefinitionItemEntity, isPresentationDefinitionEqual, ContactMetadataItemEntity, };
59
- export * from './utils/hasher';
60
+ export { BaseConfigEntity, ConnectionEntity, PartyEntity, BaseContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, DigitalCredentialEntity, MachineStateInfoEntity, PresentationDefinitionItemEntity, Contact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.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.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStorePresentationDefinitionEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.PDStore = exports.AbstractPDStore = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.DigitalCredentialStore = exports.AbstractDigitalCredentialStore = exports.AbstractContactStore = exports.ContactStore = void 0;
18
- exports.ContactMetadataItemEntity = exports.isPresentationDefinitionEqual = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = void 0;
17
+ exports.StatusListEntity = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.BaseContactEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStorePresentationDefinitionEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStorePresentationDefinitionMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.PDStore = exports.AbstractPDStore = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.DigitalCredentialStore = exports.AbstractDigitalCredentialStore = exports.AbstractContactStore = exports.ContactStore = void 0;
18
+ exports.ContactMetadataItemEntity = exports.PresentationDefinitionItemEntity = exports.MachineStateInfoEntity = exports.DigitalCredentialEntity = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
19
19
  const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
20
20
  Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
21
21
  const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
@@ -38,28 +38,20 @@ const OpenIdConfigEntity_1 = require("./entities/contact/OpenIdConfigEntity");
38
38
  Object.defineProperty(exports, "OpenIdConfigEntity", { enumerable: true, get: function () { return OpenIdConfigEntity_1.OpenIdConfigEntity; } });
39
39
  const BackgroundAttributesEntity_1 = require("./entities/issuanceBranding/BackgroundAttributesEntity");
40
40
  Object.defineProperty(exports, "BackgroundAttributesEntity", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.BackgroundAttributesEntity; } });
41
- Object.defineProperty(exports, "backgroundAttributesEntityFrom", { enumerable: true, get: function () { return BackgroundAttributesEntity_1.backgroundAttributesEntityFrom; } });
42
41
  const CredentialBrandingEntity_1 = require("./entities/issuanceBranding/CredentialBrandingEntity");
43
42
  Object.defineProperty(exports, "CredentialBrandingEntity", { enumerable: true, get: function () { return CredentialBrandingEntity_1.CredentialBrandingEntity; } });
44
- Object.defineProperty(exports, "credentialBrandingEntityFrom", { enumerable: true, get: function () { return CredentialBrandingEntity_1.credentialBrandingEntityFrom; } });
45
43
  const CredentialLocaleBrandingEntity_1 = require("./entities/issuanceBranding/CredentialLocaleBrandingEntity");
46
44
  Object.defineProperty(exports, "CredentialLocaleBrandingEntity", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity; } });
47
- Object.defineProperty(exports, "credentialLocaleBrandingEntityFrom", { enumerable: true, get: function () { return CredentialLocaleBrandingEntity_1.credentialLocaleBrandingEntityFrom; } });
48
45
  const ImageAttributesEntity_1 = require("./entities/issuanceBranding/ImageAttributesEntity");
49
46
  Object.defineProperty(exports, "ImageAttributesEntity", { enumerable: true, get: function () { return ImageAttributesEntity_1.ImageAttributesEntity; } });
50
- Object.defineProperty(exports, "imageAttributesEntityFrom", { enumerable: true, get: function () { return ImageAttributesEntity_1.imageAttributesEntityFrom; } });
51
47
  const ImageDimensionsEntity_1 = require("./entities/issuanceBranding/ImageDimensionsEntity");
52
48
  Object.defineProperty(exports, "ImageDimensionsEntity", { enumerable: true, get: function () { return ImageDimensionsEntity_1.ImageDimensionsEntity; } });
53
- Object.defineProperty(exports, "imageDimensionsEntityFrom", { enumerable: true, get: function () { return ImageDimensionsEntity_1.imageDimensionsEntityFrom; } });
54
49
  const IssuerLocaleBrandingEntity_1 = require("./entities/issuanceBranding/IssuerLocaleBrandingEntity");
55
50
  Object.defineProperty(exports, "IssuerLocaleBrandingEntity", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity; } });
56
- Object.defineProperty(exports, "issuerLocaleBrandingEntityFrom", { enumerable: true, get: function () { return IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom; } });
57
51
  const IssuerBrandingEntity_1 = require("./entities/issuanceBranding/IssuerBrandingEntity");
58
52
  Object.defineProperty(exports, "IssuerBrandingEntity", { enumerable: true, get: function () { return IssuerBrandingEntity_1.IssuerBrandingEntity; } });
59
- Object.defineProperty(exports, "issuerBrandingEntityFrom", { enumerable: true, get: function () { return IssuerBrandingEntity_1.issuerBrandingEntityFrom; } });
60
53
  const TextAttributesEntity_1 = require("./entities/issuanceBranding/TextAttributesEntity");
61
54
  Object.defineProperty(exports, "TextAttributesEntity", { enumerable: true, get: function () { return TextAttributesEntity_1.TextAttributesEntity; } });
62
- Object.defineProperty(exports, "textAttributesEntityFrom", { enumerable: true, get: function () { return TextAttributesEntity_1.textAttributesEntityFrom; } });
63
55
  const StatusList2021Entity_1 = require("./entities/statusList2021/StatusList2021Entity");
64
56
  Object.defineProperty(exports, "StatusListEntity", { enumerable: true, get: function () { return StatusList2021Entity_1.StatusListEntity; } });
65
57
  const StatusList2021EntryEntity_1 = require("./entities/statusList2021/StatusList2021EntryEntity");
@@ -90,15 +82,8 @@ var StatusListStore_1 = require("./statusList/StatusListStore");
90
82
  Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
91
83
  const AuditEventEntity_1 = require("./entities/eventLogger/AuditEventEntity");
92
84
  Object.defineProperty(exports, "AuditEventEntity", { enumerable: true, get: function () { return AuditEventEntity_1.AuditEventEntity; } });
93
- Object.defineProperty(exports, "auditEventEntityFrom", { enumerable: true, get: function () { return AuditEventEntity_1.auditEventEntityFrom; } });
94
85
  const DigitalCredentialEntity_1 = require("./entities/digitalCredential/DigitalCredentialEntity");
95
86
  Object.defineProperty(exports, "DigitalCredentialEntity", { enumerable: true, get: function () { return DigitalCredentialEntity_1.DigitalCredentialEntity; } });
96
- const MappingUtils_1 = require("./utils/digitalCredential/MappingUtils");
97
- Object.defineProperty(exports, "digitalCredentialFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialFrom; } });
98
- Object.defineProperty(exports, "digitalCredentialsFrom", { enumerable: true, get: function () { return MappingUtils_1.digitalCredentialsFrom; } });
99
- Object.defineProperty(exports, "nonPersistedDigitalCredentialEntityFromAddArgs", { enumerable: true, get: function () { return MappingUtils_1.nonPersistedDigitalCredentialEntityFromAddArgs; } });
100
- const MappingUtils_2 = require("./utils/presentationDefinition/MappingUtils");
101
- Object.defineProperty(exports, "isPresentationDefinitionEqual", { enumerable: true, get: function () { return MappingUtils_2.isPresentationDefinitionEqual; } });
102
87
  const PresentationDefinitionItemEntity_1 = require("./entities/presentationDefinition/PresentationDefinitionItemEntity");
103
88
  Object.defineProperty(exports, "PresentationDefinitionItemEntity", { enumerable: true, get: function () { return PresentationDefinitionItemEntity_1.PresentationDefinitionItemEntity; } });
104
89
  const ContactMetadataItemEntity_1 = require("./entities/contact/ContactMetadataItemEntity");
@@ -127,6 +112,10 @@ Object.defineProperty(exports, "DataStorePresentationDefinitionMigrations", { en
127
112
  __exportStar(require("./types"), exports);
128
113
  __exportStar(require("./utils/contact/MappingUtils"), exports);
129
114
  __exportStar(require("./utils/digitalCredential/MappingUtils"), exports);
115
+ __exportStar(require("./utils/eventLogger/MappingUtils"), exports);
116
+ __exportStar(require("./utils/issuanceBranding/MappingUtils"), exports);
117
+ __exportStar(require("./utils/presentationDefinition/MappingUtils"), exports);
118
+ __exportStar(require("./utils/hasher"), exports);
130
119
  exports.DataStoreContactEntities = [
131
120
  BaseConfigEntity_1.BaseConfigEntity,
132
121
  ConnectionEntity_1.ConnectionEntity,
@@ -171,5 +160,4 @@ exports.DataStoreEntities = [
171
160
  ...exports.DataStoreMachineStateEntities,
172
161
  ...exports.DataStorePresentationDefinitionEntities,
173
162
  ];
174
- __exportStar(require("./utils/hasher"), exports);
175
163
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAmHpE,iGAnHO,mCAAgB,OAmHP;AAlHlB,mGAA+F;AA+H7F,yGA/HO,mDAAwB,OA+HP;AA9H1B,4EAAwE;AAoHtE,kGApHO,qCAAiB,OAoHP;AAnHnB,0EAAsE;AAiHpE,iGAjHO,mCAAgB,OAiHP;AAhHlB,gEAA4D;AAiH1D,4FAjHO,yBAAW,OAiHP;AAhHb,gGAA4F;AAkH1F,4GAlHO,yDAA2B,OAkHP;AAjH7B,gFAA4E;AAkH1E,oGAlHO,yCAAmB,OAkHP;AAjHrB,sEAAkE;AAkHhE,+FAlHO,+BAAc,OAkHP;AAjHhB,8FAA0F;AAkHxF,2GAlHO,uDAA0B,OAkHP;AAjH5B,8EAA0E;AAkHxE,mGAlHO,uCAAkB,OAkHP;AAjHpB,uGAAmI;AAkHjI,2GAlHO,uDAA0B,OAkHP;AAW1B,+GA7HmC,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AC,CAAA;AAErE,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;IAC/B,GAAG,0CAAkC;IACrC,GAAG,qCAA6B;IAChC,GAAG,+CAAuC;CAC3C,CAAA"}
@@ -1,5 +1,5 @@
1
- import { DataSource } from 'typeorm';
2
1
  import { OrPromise } from '@sphereon/ssi-types';
2
+ import { DataSource } from 'typeorm';
3
3
  import { AbstractIssuanceBrandingStore } from './AbstractIssuanceBrandingStore';
4
4
  import { IAddCredentialBrandingArgs, IAddCredentialLocaleBrandingArgs, IAddIssuerBrandingArgs, IAddIssuerLocaleBrandingArgs, ICredentialBranding, ICredentialLocaleBranding, IGetCredentialBrandingArgs, IGetCredentialLocaleBrandingArgs, IGetIssuerBrandingArgs, IGetIssuerLocaleBrandingArgs, IIssuerBranding, IIssuerLocaleBranding, IRemoveCredentialBrandingArgs, IRemoveCredentialLocaleBrandingArgs, IRemoveIssuerBrandingArgs, IRemoveIssuerLocaleBrandingArgs, IUpdateCredentialBrandingArgs, IUpdateCredentialLocaleBrandingArgs, IUpdateIssuerBrandingArgs, IUpdateIssuerLocaleBrandingArgs } from '../types';
5
5
  export declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
@@ -21,10 +21,6 @@ export declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore
21
21
  getIssuerLocaleBranding: (args?: IGetIssuerLocaleBrandingArgs) => Promise<Array<IIssuerLocaleBranding>>;
22
22
  removeIssuerLocaleBranding: (args: IRemoveIssuerLocaleBrandingArgs) => Promise<void>;
23
23
  updateIssuerLocaleBranding: (args: IUpdateIssuerLocaleBrandingArgs) => Promise<IIssuerLocaleBranding>;
24
- private credentialBrandingFrom;
25
- private issuerBrandingFrom;
26
- private localeBrandingFrom;
27
- private replaceNullWithUndefined;
28
24
  private hasDuplicateLocales;
29
25
  private removeLocaleBranding;
30
26
  }
@@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