@sphereon/ssi-sdk.data-store 0.30.2-unstable.9 → 0.31.1-fix.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) 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/CredentialClaimsEntity.d.ts +10 -0
  21. package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts.map +1 -0
  22. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +70 -0
  23. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +1 -0
  24. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +2 -2
  25. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -1
  26. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +12 -16
  27. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
  28. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +0 -2
  29. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +1 -1
  30. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +1 -11
  31. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
  32. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +0 -2
  33. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +1 -1
  34. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +1 -8
  35. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
  36. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +0 -2
  37. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -1
  38. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +1 -8
  39. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
  40. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +4 -2
  41. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +1 -1
  42. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +21 -15
  43. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
  44. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +0 -2
  45. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +1 -1
  46. package/dist/entities/issuanceBranding/TextAttributesEntity.js +1 -7
  47. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
  48. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +4 -2
  49. package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +1 -1
  50. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
  51. package/dist/eventLogger/EventLoggerStore.d.ts +5 -4
  52. package/dist/eventLogger/EventLoggerStore.d.ts.map +1 -1
  53. package/dist/eventLogger/EventLoggerStore.js +35 -8
  54. package/dist/eventLogger/EventLoggerStore.js.map +1 -1
  55. package/dist/index.d.ts +20 -18
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +17 -26
  58. package/dist/index.js.map +1 -1
  59. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +1 -5
  60. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -1
  61. package/dist/issuanceBranding/IssuanceBrandingStore.js +17 -46
  62. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
  63. package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -1
  64. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -1
  65. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +5 -1
  66. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  67. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +1 -1
  68. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +34 -6
  69. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
  70. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +1 -1
  71. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -1
  72. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +1 -1
  73. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +7 -3
  74. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
  75. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +1 -1
  76. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +27 -1
  77. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
  78. package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +1 -1
  79. package/dist/presentationDefinition/PDStore.d.ts.map +1 -1
  80. package/dist/statusList/StatusListStore.js.map +1 -1
  81. package/dist/types/contact/contact.d.ts +3 -3
  82. package/dist/types/contact/contact.d.ts.map +1 -1
  83. package/dist/types/digitalCredential/digitalCredential.d.ts +2 -1
  84. package/dist/types/digitalCredential/digitalCredential.d.ts.map +1 -1
  85. package/dist/types/digitalCredential/digitalCredential.js +1 -0
  86. package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
  87. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -2
  88. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +1 -1
  89. package/dist/types/eventLogger/eventLogger.d.ts +3 -2
  90. package/dist/types/eventLogger/eventLogger.d.ts.map +1 -1
  91. package/dist/types/issuanceBranding/issuanceBranding.d.ts +21 -4
  92. package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -1
  93. package/dist/utils/FormattingUtils.d.ts +2 -0
  94. package/dist/utils/FormattingUtils.d.ts.map +1 -0
  95. package/dist/utils/FormattingUtils.js +23 -0
  96. package/dist/utils/FormattingUtils.js.map +1 -0
  97. package/dist/utils/SortingUtils.d.ts.map +1 -1
  98. package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
  99. package/dist/utils/contact/MappingUtils.js +27 -14
  100. package/dist/utils/contact/MappingUtils.js.map +1 -1
  101. package/dist/utils/digitalCredential/MappingUtils.d.ts.map +1 -1
  102. package/dist/utils/digitalCredential/MappingUtils.js +7 -5
  103. package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
  104. package/dist/utils/eventLogger/MappingUtils.d.ts +8 -0
  105. package/dist/utils/eventLogger/MappingUtils.d.ts.map +1 -0
  106. package/dist/utils/eventLogger/MappingUtils.js +70 -0
  107. package/dist/utils/eventLogger/MappingUtils.js.map +1 -0
  108. package/dist/utils/issuanceBranding/MappingUtils.d.ts +24 -0
  109. package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +1 -0
  110. package/dist/utils/issuanceBranding/MappingUtils.js +109 -0
  111. package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -0
  112. package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +1 -1
  113. package/dist/utils/presentationDefinition/MappingUtils.js +5 -3
  114. package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
  115. package/package.json +10 -9
  116. package/src/__tests__/contact.store.test.ts +46 -4
  117. package/src/__tests__/digitalCredential.entities.test.ts +1 -7
  118. package/src/__tests__/digitalCredential.store.test.ts +85 -4
  119. package/src/__tests__/eventLogger.entities.test.ts +60 -5
  120. package/src/__tests__/eventLogger.store.test.ts +461 -3
  121. package/src/__tests__/issuanceBranding.entities.test.ts +129 -0
  122. package/src/digitalCredential/DigitalCredentialStore.ts +1 -3
  123. package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
  124. package/src/entities/eventLogger/AuditEventEntity.ts +23 -28
  125. package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -11
  126. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +1 -13
  127. package/src/entities/issuanceBranding/CredentialClaimsEntity.ts +35 -0
  128. package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +11 -18
  129. package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -14
  130. package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +0 -9
  131. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +1 -12
  132. package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +17 -17
  133. package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -9
  134. package/src/eventLogger/AbstractEventLoggerStore.ts +4 -2
  135. package/src/eventLogger/EventLoggerStore.ts +45 -32
  136. package/src/index.ts +20 -30
  137. package/src/issuanceBranding/IssuanceBrandingStore.ts +26 -68
  138. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +11 -1
  139. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +34 -6
  140. package/src/migrations/postgres/1708525189001-CreateDigitalCredential.ts +1 -1
  141. package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +11 -3
  142. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +27 -1
  143. package/src/migrations/sqlite/1708525189002-CreateDigitalCredential.ts +1 -1
  144. package/src/statusList/StatusListStore.ts +1 -1
  145. package/src/types/contact/contact.ts +3 -3
  146. package/src/types/digitalCredential/digitalCredential.ts +1 -0
  147. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -2
  148. package/src/types/eventLogger/eventLogger.ts +3 -2
  149. package/src/types/issuanceBranding/issuanceBranding.ts +24 -6
  150. package/src/utils/FormattingUtils.ts +21 -0
  151. package/src/utils/contact/MappingUtils.ts +39 -13
  152. package/src/utils/digitalCredential/MappingUtils.ts +4 -1
  153. package/src/utils/eventLogger/MappingUtils.ts +117 -0
  154. package/src/utils/issuanceBranding/MappingUtils.ts +145 -0
  155. package/src/utils/presentationDefinition/MappingUtils.ts +4 -1
@@ -1,9 +1,7 @@
1
1
  import { BaseEntity } from 'typeorm';
2
- import { IBasicImageDimensions } from '../../types';
3
2
  export declare class ImageDimensionsEntity extends BaseEntity {
4
3
  id: string;
5
4
  width: number;
6
5
  height: number;
7
6
  }
8
- export declare const imageDimensionsEntityFrom: (args: IBasicImageDimensions) => ImageDimensionsEntity;
9
7
  //# sourceMappingURL=ImageDimensionsEntity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageDimensionsEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/ImageDimensionsEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,EAAE,EAAG,MAAM,CAAA;IAGX,KAAK,EAAG,MAAM,CAAA;IAGd,MAAM,EAAG,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,yBAAyB,SAAU,qBAAqB,KAAG,qBAMvE,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.imageDimensionsEntityFrom = exports.ImageDimensionsEntity = void 0;
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":";;;;;;;;;;;;AA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AAE,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,EAAkC,MAAM,8BAA8B,CAAA;AACzG,OAAO,EAAE,oBAAoB,EAA8B,MAAM,aAAa,CAAA;AAE9E,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;AAED,eAAO,MAAM,wBAAwB,SAAU,oBAAoB,KAAG,oBAQrE,CAAA"}
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.issuerBrandingEntityFrom = exports.IssuerBrandingEntity = void 0;
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,6EAAyG;AAKlG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IA2BlD,qHAAqH;IAGrH,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;IACjC,CAAC;IAIK,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;AA3CY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9F,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;iEAC1C;AAa5B;IAXC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,uDAA0B,EAChC,CAAC,0BAAsD,EAAE,EAAE,CAAC,0BAA0B,CAAC,cAAc,EACrG;QACE,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;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C,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACvE,IAAI;uDAAA;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAA,sCAAe,GAAE,EAAE,CAAC;8BACxE,IAAI;IAEpB,qHAAqH;;2DAFjG;AAKpB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;6DAGd;AAIK;IAFL,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;oDAOd;+BA1CU,oBAAoB;IAFhC,IAAA,gBAAM,EAAC,gBAAgB,CAAC;IACxB,IAAA,eAAK,EAAC,8CAA8C,EAAE,CAAC,qBAAqB,CAAC,CAAC;GAClE,oBAAoB,CA2ChC"}
@@ -1,9 +1,11 @@
1
- import { IBasicIssuerLocaleBranding } from '../../types';
2
1
  import { IssuerBrandingEntity } from './IssuerBrandingEntity';
3
2
  import { BaseLocaleBrandingEntity } from './BaseLocaleBrandingEntity';
4
3
  export declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
5
4
  issuerBranding: IssuerBrandingEntity;
5
+ clientUri?: string;
6
+ tosUri?: string;
7
+ policyUri?: string;
8
+ contacts?: Array<string>;
6
9
  issuerBrandingId: string;
7
10
  }
8
- export declare const issuerLocaleBrandingEntityFrom: (args: IBasicIssuerLocaleBranding) => IssuerLocaleBrandingEntity;
9
11
  //# sourceMappingURL=IssuerLocaleBrandingEntity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IssuerLocaleBrandingEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,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,EA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AE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;6DACrE;AAGlB;IADC,IAAA,gBAAM,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;8BACjE,KAAK;4DAAQ;AAGxB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oEACrC;qCAvBd,0BAA0B;IAFtC,IAAA,qBAAW,EAAC,sBAAsB,CAAC;IACnC,IAAA,eAAK,EAAC,sDAAsD,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACjG,0BAA0B,CAwBtC"}
@@ -1,9 +1,7 @@
1
1
  import { BaseEntity } from 'typeorm';
2
- import { IBasicTextAttributes } from '../../types';
3
2
  export declare class TextAttributesEntity extends BaseEntity {
4
3
  id: string;
5
4
  color?: string;
6
5
  validate(): Promise<undefined>;
7
6
  }
8
- export declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
9
7
  //# sourceMappingURL=TextAttributesEntity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextAttributesEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/issuanceBranding/TextAttributesEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsE,MAAM,SAAS,CAAA;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;;Y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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 { 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,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;CAG7C;AAHD,4DAGC"}
1
+ {"version":3,"file":"AbstractEventLoggerStore.js","sourceRoot":"","sources":["../../src/eventLogger/AbstractEventLoggerStore.ts"],"names":[],"mappings":";;;AAGA,MAAsB,wBAAwB;CAK7C;AALD,4DAKC"}
@@ -1,13 +1,14 @@
1
- import { 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":["../../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IAED,eAAe,SAAgB,mBAAmB,KAAG,OAAO,CAAC,iBAAiB,CAAC,CAS9E;IAED,iBAAiB,UAAiB,qBAAqB,KAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAe7F;IAED,kBAAkB,SAAgB,sBAAsB,KAAG,OAAO,CAAC,oBAAoB,CAAC,CASvF;CACF"}
@@ -13,30 +13,57 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EventLoggerStore = void 0;
16
+ const ssi_types_1 = require("@sphereon/ssi-types");
16
17
  const debug_1 = __importDefault(require("debug"));
17
18
  const AbstractEventLoggerStore_1 = require("./AbstractEventLoggerStore");
18
19
  const AuditEventEntity_1 = require("../entities/eventLogger/AuditEventEntity");
20
+ const MappingUtils_1 = require("../utils/eventLogger/MappingUtils");
19
21
  const debug = (0, debug_1.default)('sphereon:ssi-sdk:event-store');
20
22
  class EventLoggerStore extends AbstractEventLoggerStore_1.AbstractEventLoggerStore {
21
23
  constructor(dbConnection) {
22
24
  super();
23
25
  this.getAuditEvents = (args) => __awaiter(this, void 0, void 0, function* () {
24
- const 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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AE,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, 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';
@@ -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, 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 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
@@ -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,8BAA8B,EAAE,MAAM,wDAAwD,CAAA;AACnI,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AAC7H,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAA;AAC/I,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AACpH,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AACpH,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAA;AACnI,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAA;AACjH,OAAO,EAAE,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