@nmshd/runtime 3.7.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/Runtime.d.ts +1 -1
  2. package/dist/Runtime.d.ts.map +1 -1
  3. package/dist/Runtime.js +2 -2
  4. package/dist/Runtime.js.map +1 -1
  5. package/dist/buildInformation.js +4 -4
  6. package/dist/dataViews/DataViewExpander.d.ts +4 -4
  7. package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
  8. package/dist/dataViews/DataViewExpander.js.map +1 -1
  9. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +1 -1
  10. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
  11. package/dist/dataViews/consumption/LocalRequestDVO.d.ts +1 -1
  12. package/dist/dataViews/consumption/LocalRequestDVO.d.ts.map +1 -1
  13. package/dist/dataViews/content/ResponseItemDVOs.d.ts +1 -1
  14. package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
  15. package/dist/dataViews/transport/RelationshipDVO.d.ts +1 -1
  16. package/dist/dataViews/transport/RelationshipDVO.d.ts.map +1 -1
  17. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +14 -14
  18. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  19. package/dist/extensibility/facades/consumption/AttributesFacade.js +25 -25
  20. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  21. package/dist/modules/AttributeListenerModule.d.ts.map +1 -1
  22. package/dist/modules/AttributeListenerModule.js.map +1 -1
  23. package/dist/modules/DeciderModule.d.ts.map +1 -1
  24. package/dist/modules/DeciderModule.js.map +1 -1
  25. package/dist/modules/RequestModule.d.ts.map +1 -1
  26. package/dist/modules/RequestModule.js.map +1 -1
  27. package/dist/useCases/common/RuntimeErrors.d.ts +4 -4
  28. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  29. package/dist/useCases/common/RuntimeErrors.js +8 -8
  30. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  31. package/dist/useCases/common/Schemas.d.ts +6 -6
  32. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  33. package/dist/useCases/common/Schemas.js +694 -694
  34. package/dist/useCases/common/Schemas.js.map +1 -1
  35. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.d.ts → CreateRepositoryAttribute.d.ts} +5 -5
  36. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts.map +1 -0
  37. package/dist/useCases/consumption/attributes/{CreateIdentityAttribute.js → CreateRepositoryAttribute.js} +7 -7
  38. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.js.map +1 -0
  39. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts +19 -0
  40. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +1 -0
  41. package/dist/useCases/consumption/attributes/{GetOwnIdentityAttributes.js → GetRepositoryAttributes.js} +9 -9
  42. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +1 -0
  43. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.d.ts → GetSharedVersionsOfRepositoryAttribute.d.ts} +5 -5
  44. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.d.ts.map +1 -0
  45. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfIdentityAttribute.js → GetSharedVersionsOfRepositoryAttribute.js} +8 -8
  46. package/dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js.map +1 -0
  47. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.d.ts → NotifyPeerAboutRepositoryAttributeSuccession.d.ts} +6 -6
  48. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map +1 -0
  49. package/dist/useCases/consumption/attributes/{NotifyPeerAboutIdentityAttributeSuccession.js → NotifyPeerAboutRepositoryAttributeSuccession.js} +10 -10
  50. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +1 -0
  51. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.d.ts → ShareRepositoryAttribute.d.ts} +5 -5
  52. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.d.ts.map +1 -0
  53. package/dist/useCases/consumption/attributes/{ShareIdentityAttribute.js → ShareRepositoryAttribute.js} +12 -12
  54. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.js.map +1 -0
  55. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -1
  56. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.d.ts → SucceedRepositoryAttribute.d.ts} +6 -6
  57. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.d.ts.map +1 -0
  58. package/dist/useCases/consumption/attributes/{SucceedIdentityAttribute.js → SucceedRepositoryAttribute.js} +7 -7
  59. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js.map +1 -0
  60. package/dist/useCases/consumption/attributes/index.d.ts +6 -6
  61. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  62. package/dist/useCases/consumption/attributes/index.js +6 -6
  63. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  64. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts +1 -1
  65. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponse.d.ts.map +1 -1
  66. package/lib-web/nmshd.runtime.js +926 -926
  67. package/lib-web/nmshd.runtime.js.map +1 -1
  68. package/lib-web/nmshd.runtime.min.js +1 -1
  69. package/lib-web/nmshd.runtime.min.js.map +1 -1
  70. package/package.json +1 -1
  71. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.d.ts.map +0 -1
  72. package/dist/useCases/consumption/attributes/CreateIdentityAttribute.js.map +0 -1
  73. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts +0 -19
  74. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts.map +0 -1
  75. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js.map +0 -1
  76. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.d.ts.map +0 -1
  77. package/dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js.map +0 -1
  78. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.d.ts.map +0 -1
  79. package/dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js.map +0 -1
  80. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.d.ts.map +0 -1
  81. package/dist/useCases/consumption/attributes/ShareIdentityAttribute.js.map +0 -1
  82. package/dist/useCases/consumption/attributes/SucceedIdentityAttribute.d.ts.map +0 -1
  83. package/dist/useCases/consumption/attributes/SucceedIdentityAttribute.js.map +0 -1
@@ -45343,14 +45343,14 @@ const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modu
45343
45343
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
45344
45344
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
45345
45345
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
45346
- const DatabaseSchemaUpgrader_1 = __webpack_require__(/*! ./DatabaseSchemaUpgrader */ "./dist/DatabaseSchemaUpgrader.js");
45347
- const RuntimeLoggerFactory_1 = __webpack_require__(/*! ./RuntimeLoggerFactory */ "./dist/RuntimeLoggerFactory.js");
45348
45346
  const buildInformation_1 = __webpack_require__(/*! ./buildInformation */ "./dist/buildInformation.js");
45347
+ const DatabaseSchemaUpgrader_1 = __webpack_require__(/*! ./DatabaseSchemaUpgrader */ "./dist/DatabaseSchemaUpgrader.js");
45349
45348
  const dataViews_1 = __webpack_require__(/*! ./dataViews */ "./dist/dataViews/index.js");
45350
45349
  const events_1 = __webpack_require__(/*! ./events */ "./dist/events/index.js");
45351
45350
  const EventProxy_1 = __webpack_require__(/*! ./events/EventProxy */ "./dist/events/EventProxy.js");
45352
45351
  const extensibility_1 = __webpack_require__(/*! ./extensibility */ "./dist/extensibility/index.js");
45353
45352
  const modules_1 = __webpack_require__(/*! ./modules */ "./dist/modules/index.js");
45353
+ const RuntimeLoggerFactory_1 = __webpack_require__(/*! ./RuntimeLoggerFactory */ "./dist/RuntimeLoggerFactory.js");
45354
45354
  const useCases_1 = __webpack_require__(/*! ./useCases */ "./dist/useCases/index.js");
45355
45355
  const SchemaRepository_1 = __webpack_require__(/*! ./useCases/common/SchemaRepository */ "./dist/useCases/common/SchemaRepository.js");
45356
45356
  class Runtime {
@@ -45705,10 +45705,10 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
45705
45705
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
45706
45706
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
45707
45707
  exports.buildInformation = {
45708
- version: "3.7.0",
45709
- build: "16",
45710
- date: "2024-02-09T13:19:21+00:00",
45711
- commit: "76c5bb66d22a3a01f0a29723ab3bbeffb8539de0",
45708
+ version: "4.0.0",
45709
+ build: "19",
45710
+ date: "2024-02-12T12:42:50+00:00",
45711
+ commit: "d1e6aeea6af9c7398bb1e86f795d8257515e1903",
45712
45712
  dependencies: {"@js-soft/docdb-querytranslator":"^1.1.2","@js-soft/logging-abstractions":"^1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.9.3","@nmshd/content":"2.8.4","@nmshd/crypto":"2.0.6","@nmshd/transport":"2.2.2","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.4","qrcode":"1.5.3","reflect-metadata":"^0.2.1","ts-simple-nameof":"^1.3.1","typescript-ioc":"3.2.2"},
45713
45713
  libraries: {
45714
45714
  serval: ts_serval_1.buildInformation,
@@ -48948,17 +48948,17 @@ exports.AttributesFacade = void 0;
48948
48948
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
48949
48949
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
48950
48950
  let AttributesFacade = class AttributesFacade {
48951
- constructor(createIdentityAttributeUseCase, shareIdentityAttributeUseCase, getPeerSharedAttributesUseCase, getOwnSharedAttributesUseCase, getOwnIdentityAttributesUseCase, getAttributeUseCase, getAttributesUseCase, getVersionsOfAttributeUseCase, getSharedVersionsOfIdentityAttributeUseCase, succeedIdentityAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, succeedRelationshipAttributeAndNotifyPeerUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, validateIQLQueryUseCase, createAndShareRelationshipAttributeUseCase, notifyPeerAboutIdentityAttributeSuccessionUseCase) {
48952
- this.createIdentityAttributeUseCase = createIdentityAttributeUseCase;
48953
- this.shareIdentityAttributeUseCase = shareIdentityAttributeUseCase;
48951
+ constructor(createRepositoryAttributeUseCase, shareRepositoryAttributeUseCase, getPeerSharedAttributesUseCase, getOwnSharedAttributesUseCase, getRepositoryAttributesUseCase, getAttributeUseCase, getAttributesUseCase, getVersionsOfAttributeUseCase, getSharedVersionsOfRepositoryAttributeUseCase, succeedRepositoryAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, succeedRelationshipAttributeAndNotifyPeerUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, validateIQLQueryUseCase, createAndShareRelationshipAttributeUseCase, notifyPeerAboutRepositoryAttributeSuccessionUseCase) {
48952
+ this.createRepositoryAttributeUseCase = createRepositoryAttributeUseCase;
48953
+ this.shareRepositoryAttributeUseCase = shareRepositoryAttributeUseCase;
48954
48954
  this.getPeerSharedAttributesUseCase = getPeerSharedAttributesUseCase;
48955
48955
  this.getOwnSharedAttributesUseCase = getOwnSharedAttributesUseCase;
48956
- this.getOwnIdentityAttributesUseCase = getOwnIdentityAttributesUseCase;
48956
+ this.getRepositoryAttributesUseCase = getRepositoryAttributesUseCase;
48957
48957
  this.getAttributeUseCase = getAttributeUseCase;
48958
48958
  this.getAttributesUseCase = getAttributesUseCase;
48959
48959
  this.getVersionsOfAttributeUseCase = getVersionsOfAttributeUseCase;
48960
- this.getSharedVersionsOfIdentityAttributeUseCase = getSharedVersionsOfIdentityAttributeUseCase;
48961
- this.succeedIdentityAttributeUseCase = succeedIdentityAttributeUseCase;
48960
+ this.getSharedVersionsOfRepositoryAttributeUseCase = getSharedVersionsOfRepositoryAttributeUseCase;
48961
+ this.succeedRepositoryAttributeUseCase = succeedRepositoryAttributeUseCase;
48962
48962
  this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
48963
48963
  this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
48964
48964
  this.succeedRelationshipAttributeAndNotifyPeerUseCase = succeedRelationshipAttributeAndNotifyPeerUseCase;
@@ -48966,10 +48966,10 @@ let AttributesFacade = class AttributesFacade {
48966
48966
  this.executeIQLQueryUseCase = executeIQLQueryUseCase;
48967
48967
  this.validateIQLQueryUseCase = validateIQLQueryUseCase;
48968
48968
  this.createAndShareRelationshipAttributeUseCase = createAndShareRelationshipAttributeUseCase;
48969
- this.notifyPeerAboutIdentityAttributeSuccessionUseCase = notifyPeerAboutIdentityAttributeSuccessionUseCase;
48969
+ this.notifyPeerAboutRepositoryAttributeSuccessionUseCase = notifyPeerAboutRepositoryAttributeSuccessionUseCase;
48970
48970
  }
48971
- async createIdentityAttribute(request) {
48972
- return await this.createIdentityAttributeUseCase.execute(request);
48971
+ async createRepositoryAttribute(request) {
48972
+ return await this.createRepositoryAttributeUseCase.execute(request);
48973
48973
  }
48974
48974
  async getPeerSharedAttributes(request) {
48975
48975
  return await this.getPeerSharedAttributesUseCase.execute(request);
@@ -48977,8 +48977,8 @@ let AttributesFacade = class AttributesFacade {
48977
48977
  async getOwnSharedAttributes(request) {
48978
48978
  return await this.getOwnSharedAttributesUseCase.execute(request);
48979
48979
  }
48980
- async getOwnIdentityAttributes(request) {
48981
- return await this.getOwnIdentityAttributesUseCase.execute(request);
48980
+ async getRepositoryAttributes(request) {
48981
+ return await this.getRepositoryAttributesUseCase.execute(request);
48982
48982
  }
48983
48983
  async getAttribute(request) {
48984
48984
  return await this.getAttributeUseCase.execute(request);
@@ -48989,8 +48989,8 @@ let AttributesFacade = class AttributesFacade {
48989
48989
  async getVersionsOfAttribute(request) {
48990
48990
  return await this.getVersionsOfAttributeUseCase.execute(request);
48991
48991
  }
48992
- async getSharedVersionsOfIdentityAttribute(request) {
48993
- return await this.getSharedVersionsOfIdentityAttributeUseCase.execute(request);
48992
+ async getSharedVersionsOfRepositoryAttribute(request) {
48993
+ return await this.getSharedVersionsOfRepositoryAttributeUseCase.execute(request);
48994
48994
  }
48995
48995
  async executeIdentityAttributeQuery(request) {
48996
48996
  return await this.executeIdentityAttributeQueryUseCase.execute(request);
@@ -49010,17 +49010,17 @@ let AttributesFacade = class AttributesFacade {
49010
49010
  async validateIQLQuery(request) {
49011
49011
  return await this.validateIQLQueryUseCase.execute(request);
49012
49012
  }
49013
- async succeedIdentityAttribute(request) {
49014
- return await this.succeedIdentityAttributeUseCase.execute(request);
49013
+ async succeedRepositoryAttribute(request) {
49014
+ return await this.succeedRepositoryAttributeUseCase.execute(request);
49015
49015
  }
49016
- async shareIdentityAttribute(request) {
49017
- return await this.shareIdentityAttributeUseCase.execute(request);
49016
+ async shareRepositoryAttribute(request) {
49017
+ return await this.shareRepositoryAttributeUseCase.execute(request);
49018
49018
  }
49019
49019
  async createAndShareRelationshipAttribute(request) {
49020
49020
  return await this.createAndShareRelationshipAttributeUseCase.execute(request);
49021
49021
  }
49022
- async notifyPeerAboutIdentityAttributeSuccession(request) {
49023
- return await this.notifyPeerAboutIdentityAttributeSuccessionUseCase.execute(request);
49022
+ async notifyPeerAboutRepositoryAttributeSuccession(request) {
49023
+ return await this.notifyPeerAboutRepositoryAttributeSuccessionUseCase.execute(request);
49024
49024
  }
49025
49025
  };
49026
49026
  exports.AttributesFacade = AttributesFacade;
@@ -49043,16 +49043,16 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49043
49043
  __param(15, typescript_ioc_1.Inject),
49044
49044
  __param(16, typescript_ioc_1.Inject),
49045
49045
  __param(17, typescript_ioc_1.Inject),
49046
- __metadata("design:paramtypes", [useCases_1.CreateIdentityAttributeUseCase,
49047
- useCases_1.ShareIdentityAttributeUseCase,
49046
+ __metadata("design:paramtypes", [useCases_1.CreateRepositoryAttributeUseCase,
49047
+ useCases_1.ShareRepositoryAttributeUseCase,
49048
49048
  useCases_1.GetPeerSharedAttributesUseCase,
49049
49049
  useCases_1.GetOwnSharedAttributesUseCase,
49050
- useCases_1.GetOwnIdentityAttributesUseCase,
49050
+ useCases_1.GetRepositoryAttributesUseCase,
49051
49051
  useCases_1.GetAttributeUseCase,
49052
49052
  useCases_1.GetAttributesUseCase,
49053
49053
  useCases_1.GetVersionsOfAttributeUseCase,
49054
- useCases_1.GetSharedVersionsOfIdentityAttributeUseCase,
49055
- useCases_1.SucceedIdentityAttributeUseCase,
49054
+ useCases_1.GetSharedVersionsOfRepositoryAttributeUseCase,
49055
+ useCases_1.SucceedRepositoryAttributeUseCase,
49056
49056
  useCases_1.ExecuteIdentityAttributeQueryUseCase,
49057
49057
  useCases_1.ExecuteRelationshipAttributeQueryUseCase,
49058
49058
  useCases_1.SucceedRelationshipAttributeAndNotifyPeerUseCase,
@@ -49060,7 +49060,7 @@ exports.AttributesFacade = AttributesFacade = __decorate([
49060
49060
  useCases_1.ExecuteIQLQueryUseCase,
49061
49061
  useCases_1.ValidateIQLQueryUseCase,
49062
49062
  useCases_1.CreateAndShareRelationshipAttributeUseCase,
49063
- useCases_1.NotifyPeerAboutIdentityAttributeSuccessionUseCase])
49063
+ useCases_1.NotifyPeerAboutRepositoryAttributeSuccessionUseCase])
49064
49064
  ], AttributesFacade);
49065
49065
  //# sourceMappingURL=AttributesFacade.js.map
49066
49066
 
@@ -51682,17 +51682,17 @@ class Notifications {
51682
51682
  }
51683
51683
  }
51684
51684
  class Attributes {
51685
- isNoIdentityAttribute(attributeId) {
51686
- return new ts_utils_1.ApplicationError("error.runtime.attributes.isNoIdentityAttribute", `Attribute '${attributeId.toString()}' is not an identity attribute.`);
51685
+ isNotRepositoryAttribute(attributeId) {
51686
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.isNotRepositoryAttribute", `Attribute '${attributeId.toString()}' is not a repository attribute.`);
51687
51687
  }
51688
- identityAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51689
- return new ts_utils_1.ApplicationError("error.runtime.attributes.identityAttributeHasAlreadyBeenSharedWithPeer", `Identity attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. Id of shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51688
+ repositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51689
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer", `Repository attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. ID of own shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51690
51690
  }
51691
- anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51692
- return new ts_utils_1.ApplicationError("error.runtime.attributes.anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer", `Another version of identity attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. Id of previously shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51691
+ anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(repositoryAttributeId, peer, ownSharedIdentityAttributeId) {
51692
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer", `Another version of repository attribute '${repositoryAttributeId.toString()}' has already been shared with peer '${peer.toString()}'. ID of previous own shared identity attribute: ${ownSharedIdentityAttributeId.toString()}.`);
51693
51693
  }
51694
- noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId, peer) {
51695
- return new ts_utils_1.ApplicationError("error.runtime.attributes.noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore", `No other version of identity attribute '${repositoryAttributeId.toString()}' has been shared with peer '${peer.toString()}' before. If you wish to execute an initial sharing of this attribute, use 'ShareIdentityAttribute'.`);
51694
+ noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeId, peer) {
51695
+ return new ts_utils_1.ApplicationError("error.runtime.attributes.noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore", `No other version of repository attribute '${repositoryAttributeId.toString()}' has been shared with peer '${peer.toString()}' before. If you wish to execute an initial sharing of this attribute, use 'ShareRepositoryAttribute'.`);
51696
51696
  }
51697
51697
  }
51698
51698
  class RuntimeErrors {
@@ -51799,7 +51799,7 @@ exports.JsonSchema = JsonSchema;
51799
51799
  "use strict";
51800
51800
 
51801
51801
  Object.defineProperty(exports, "__esModule", ({ value: true }));
51802
- exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.ValidateIQLQueryRequest = exports.SucceedRelationshipAttributeAndNotifyPeerRequest = exports.SucceedIdentityAttributeRequest = exports.ShareIdentityAttributeRequest = exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = exports.GetVersionsOfAttributeRequest = exports.GetSharedVersionsOfIdentityAttributeRequest = exports.GetPeerSharedAttributesRequest = exports.GetOwnSharedAttributesRequest = exports.GetOwnIdentityAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.CreateIdentityAttributeRequest = exports.CreateAndShareRelationshipAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
51802
+ exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentNotificationRequest = exports.ReceivedNotificationRequest = exports.ProcessNotificationByIdRequest = exports.GetNotificationsRequest = exports.GetNotificationRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.ValidateIQLQueryRequest = exports.SucceedRepositoryAttributeRequest = exports.SucceedRelationshipAttributeAndNotifyPeerRequest = exports.ShareRepositoryAttributeRequest = exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = exports.GetVersionsOfAttributeRequest = exports.GetSharedVersionsOfRepositoryAttributeRequest = exports.GetRepositoryAttributesRequest = exports.GetPeerSharedAttributesRequest = exports.GetOwnSharedAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.CreateRepositoryAttributeRequest = exports.CreateAndShareRelationshipAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
51803
51803
  exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQRCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQRCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQRCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQRCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingByKeyRequest = void 0;
51804
51804
  exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = void 0;
51805
51805
  exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
@@ -66345,11 +66345,11 @@ exports.CreateAndShareRelationshipAttributeRequest = {
66345
66345
  }
66346
66346
  }
66347
66347
  };
66348
- exports.CreateIdentityAttributeRequest = {
66348
+ exports.CreateRepositoryAttributeRequest = {
66349
66349
  "$schema": "http://json-schema.org/draft-07/schema#",
66350
- "$ref": "#/definitions/CreateIdentityAttributeRequest",
66350
+ "$ref": "#/definitions/CreateRepositoryAttributeRequest",
66351
66351
  "definitions": {
66352
- "CreateIdentityAttributeRequest": {
66352
+ "CreateRepositoryAttributeRequest": {
66353
66353
  "type": "object",
66354
66354
  "properties": {
66355
66355
  "content": {
@@ -68327,21 +68327,6 @@ exports.GetAttributesRequest = {
68327
68327
  }
68328
68328
  }
68329
68329
  };
68330
- exports.GetOwnIdentityAttributesRequest = {
68331
- "$schema": "http://json-schema.org/draft-07/schema#",
68332
- "$ref": "#/definitions/GetOwnIdentityAttributesRequest",
68333
- "definitions": {
68334
- "GetOwnIdentityAttributesRequest": {
68335
- "type": "object",
68336
- "properties": {
68337
- "onlyLatestVersions": {
68338
- "type": "boolean"
68339
- }
68340
- },
68341
- "additionalProperties": false
68342
- }
68343
- }
68344
- };
68345
68330
  exports.GetOwnSharedAttributesRequest = {
68346
68331
  "$schema": "http://json-schema.org/draft-07/schema#",
68347
68332
  "$ref": "#/definitions/GetOwnSharedAttributesRequest",
@@ -68727,11 +68712,26 @@ exports.GetPeerSharedAttributesRequest = {
68727
68712
  }
68728
68713
  }
68729
68714
  };
68730
- exports.GetSharedVersionsOfIdentityAttributeRequest = {
68715
+ exports.GetRepositoryAttributesRequest = {
68731
68716
  "$schema": "http://json-schema.org/draft-07/schema#",
68732
- "$ref": "#/definitions/GetSharedVersionsOfIdentityAttributeRequest",
68717
+ "$ref": "#/definitions/GetRepositoryAttributesRequest",
68733
68718
  "definitions": {
68734
- "GetSharedVersionsOfIdentityAttributeRequest": {
68719
+ "GetRepositoryAttributesRequest": {
68720
+ "type": "object",
68721
+ "properties": {
68722
+ "onlyLatestVersions": {
68723
+ "type": "boolean"
68724
+ }
68725
+ },
68726
+ "additionalProperties": false
68727
+ }
68728
+ }
68729
+ };
68730
+ exports.GetSharedVersionsOfRepositoryAttributeRequest = {
68731
+ "$schema": "http://json-schema.org/draft-07/schema#",
68732
+ "$ref": "#/definitions/GetSharedVersionsOfRepositoryAttributeRequest",
68733
+ "definitions": {
68734
+ "GetSharedVersionsOfRepositoryAttributeRequest": {
68735
68735
  "type": "object",
68736
68736
  "properties": {
68737
68737
  "attributeId": {
@@ -68784,11 +68784,11 @@ exports.GetVersionsOfAttributeRequest = {
68784
68784
  }
68785
68785
  }
68786
68786
  };
68787
- exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68787
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionRequest = {
68788
68788
  "$schema": "http://json-schema.org/draft-07/schema#",
68789
- "$ref": "#/definitions/NotifyPeerAboutIdentityAttributeSuccessionRequest",
68789
+ "$ref": "#/definitions/NotifyPeerAboutRepositoryAttributeSuccessionRequest",
68790
68790
  "definitions": {
68791
- "NotifyPeerAboutIdentityAttributeSuccessionRequest": {
68791
+ "NotifyPeerAboutRepositoryAttributeSuccessionRequest": {
68792
68792
  "type": "object",
68793
68793
  "properties": {
68794
68794
  "attributeId": {
@@ -68814,11 +68814,11 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionRequest = {
68814
68814
  }
68815
68815
  }
68816
68816
  };
68817
- exports.ShareIdentityAttributeRequest = {
68817
+ exports.ShareRepositoryAttributeRequest = {
68818
68818
  "$schema": "http://json-schema.org/draft-07/schema#",
68819
- "$ref": "#/definitions/ShareIdentityAttributeRequest",
68819
+ "$ref": "#/definitions/ShareRepositoryAttributeRequest",
68820
68820
  "definitions": {
68821
- "ShareIdentityAttributeRequest": {
68821
+ "ShareRepositoryAttributeRequest": {
68822
68822
  "type": "object",
68823
68823
  "properties": {
68824
68824
  "attributeId": {
@@ -68885,27 +68885,21 @@ exports.ShareIdentityAttributeRequest = {
68885
68885
  }
68886
68886
  }
68887
68887
  };
68888
- exports.SucceedIdentityAttributeRequest = {
68888
+ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
68889
68889
  "$schema": "http://json-schema.org/draft-07/schema#",
68890
- "$ref": "#/definitions/SucceedIdentityAttributeRequest",
68890
+ "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
68891
68891
  "definitions": {
68892
- "SucceedIdentityAttributeRequest": {
68892
+ "SucceedRelationshipAttributeAndNotifyPeerRequest": {
68893
68893
  "type": "object",
68894
68894
  "properties": {
68895
68895
  "predecessorId": {
68896
- "type": "string"
68896
+ "$ref": "#/definitions/AttributeIdString"
68897
68897
  },
68898
68898
  "successorContent": {
68899
68899
  "type": "object",
68900
68900
  "properties": {
68901
68901
  "value": {
68902
- "$ref": "#/definitions/AttributeValues.Identity.Json"
68903
- },
68904
- "tags": {
68905
- "type": "array",
68906
- "items": {
68907
- "type": "string"
68908
- }
68902
+ "$ref": "#/definitions/AttributeValues.Relationship.Json"
68909
68903
  },
68910
68904
  "validFrom": {
68911
68905
  "$ref": "#/definitions/ISO8601DateTimeString"
@@ -68926,86 +68920,62 @@ exports.SucceedIdentityAttributeRequest = {
68926
68920
  ],
68927
68921
  "additionalProperties": false
68928
68922
  },
68929
- "AttributeValues.Identity.Json": {
68930
- "anyOf": [
68931
- {
68932
- "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
68933
- },
68934
- {
68935
- "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
68936
- }
68937
- ]
68923
+ "AttributeIdString": {
68924
+ "type": "string",
68925
+ "pattern": "ATT[A-Za-z0-9]{17}"
68938
68926
  },
68939
- "AttributeValues.Identity.Editable.Json": {
68927
+ "AttributeValues.Relationship.Json": {
68940
68928
  "anyOf": [
68941
68929
  {
68942
- "$ref": "#/definitions/AffiliationJSON"
68943
- },
68944
- {
68945
- "$ref": "#/definitions/BirthDateJSON"
68946
- },
68947
- {
68948
- "$ref": "#/definitions/BirthNameJSON"
68949
- },
68950
- {
68951
- "$ref": "#/definitions/BirthPlaceJSON"
68952
- },
68953
- {
68954
- "$ref": "#/definitions/CitizenshipJSON"
68955
- },
68956
- {
68957
- "$ref": "#/definitions/CommunicationLanguageJSON"
68958
- },
68959
- {
68960
- "$ref": "#/definitions/DeliveryBoxAddressJSON"
68930
+ "$ref": "#/definitions/ProprietaryBooleanJSON"
68961
68931
  },
68962
68932
  {
68963
- "$ref": "#/definitions/DisplayNameJSON"
68933
+ "$ref": "#/definitions/ProprietaryCountryJSON"
68964
68934
  },
68965
68935
  {
68966
- "$ref": "#/definitions/EMailAddressJSON"
68936
+ "$ref": "#/definitions/ProprietaryEMailAddressJSON"
68967
68937
  },
68968
68938
  {
68969
- "$ref": "#/definitions/FaxNumberJSON"
68939
+ "$ref": "#/definitions/ProprietaryFileReferenceJSON"
68970
68940
  },
68971
68941
  {
68972
- "$ref": "#/definitions/IdentityFileReferenceJSON"
68942
+ "$ref": "#/definitions/ProprietaryFloatJSON"
68973
68943
  },
68974
68944
  {
68975
- "$ref": "#/definitions/JobTitleJSON"
68945
+ "$ref": "#/definitions/ProprietaryHEXColorJSON"
68976
68946
  },
68977
68947
  {
68978
- "$ref": "#/definitions/NationalityJSON"
68948
+ "$ref": "#/definitions/ProprietaryIntegerJSON"
68979
68949
  },
68980
68950
  {
68981
- "$ref": "#/definitions/PersonNameJSON"
68951
+ "$ref": "#/definitions/ProprietaryLanguageJSON"
68982
68952
  },
68983
68953
  {
68984
- "$ref": "#/definitions/PhoneNumberJSON"
68954
+ "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
68985
68955
  },
68986
68956
  {
68987
- "$ref": "#/definitions/PostOfficeBoxAddressJSON"
68957
+ "$ref": "#/definitions/ProprietaryStringJSON"
68988
68958
  },
68989
68959
  {
68990
- "$ref": "#/definitions/PseudonymJSON"
68960
+ "$ref": "#/definitions/ProprietaryURLJSON"
68991
68961
  },
68992
68962
  {
68993
- "$ref": "#/definitions/SexJSON"
68963
+ "$ref": "#/definitions/ProprietaryJSONJSON"
68994
68964
  },
68995
68965
  {
68996
- "$ref": "#/definitions/StreetAddressJSON"
68966
+ "$ref": "#/definitions/ProprietaryXMLJSON"
68997
68967
  },
68998
68968
  {
68999
- "$ref": "#/definitions/WebsiteJSON"
68969
+ "$ref": "#/definitions/ConsentJSON"
69000
68970
  }
69001
68971
  ]
69002
68972
  },
69003
- "AffiliationJSON": {
68973
+ "ProprietaryBooleanJSON": {
69004
68974
  "type": "object",
69005
68975
  "properties": {
69006
68976
  "@type": {
69007
68977
  "type": "string",
69008
- "const": "Affiliation"
68978
+ "const": "ProprietaryBoolean"
69009
68979
  },
69010
68980
  "@context": {
69011
68981
  "type": "string"
@@ -69013,59 +68983,99 @@ exports.SucceedIdentityAttributeRequest = {
69013
68983
  "@version": {
69014
68984
  "type": "string"
69015
68985
  },
69016
- "organization": {
69017
- "type": "string"
68986
+ "value": {
68987
+ "type": "boolean"
69018
68988
  },
69019
- "role": {
68989
+ "title": {
69020
68990
  "type": "string"
69021
68991
  },
69022
- "unit": {
68992
+ "description": {
69023
68993
  "type": "string"
68994
+ },
68995
+ "valueHintsOverride": {
68996
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69024
68997
  }
69025
68998
  },
69026
68999
  "required": [
69027
69000
  "@type",
69028
- "organization"
69001
+ "title",
69002
+ "value"
69029
69003
  ],
69030
69004
  "additionalProperties": false
69031
69005
  },
69032
- "BirthDateJSON": {
69006
+ "ValueHintsOverrideJSON": {
69033
69007
  "type": "object",
69008
+ "additionalProperties": false,
69034
69009
  "properties": {
69035
69010
  "@type": {
69036
69011
  "type": "string",
69037
- "const": "BirthDate"
69038
- },
69039
- "@context": {
69040
- "type": "string"
69012
+ "const": "ValueHints"
69041
69013
  },
69042
- "@version": {
69014
+ "editHelp": {
69043
69015
  "type": "string"
69044
69016
  },
69045
- "day": {
69017
+ "min": {
69046
69018
  "type": "number"
69047
69019
  },
69048
- "month": {
69020
+ "max": {
69049
69021
  "type": "number"
69050
69022
  },
69051
- "year": {
69052
- "type": "number"
69023
+ "pattern": {
69024
+ "type": "string"
69025
+ },
69026
+ "values": {
69027
+ "type": "array",
69028
+ "items": {
69029
+ "$ref": "#/definitions/ValueHintsValueJSON"
69030
+ }
69031
+ },
69032
+ "defaultValue": {
69033
+ "type": [
69034
+ "string",
69035
+ "number",
69036
+ "boolean"
69037
+ ]
69038
+ },
69039
+ "propertyHints": {
69040
+ "type": "object",
69041
+ "additionalProperties": {
69042
+ "$ref": "#/definitions/ValueHintsJSON"
69043
+ }
69044
+ },
69045
+ "@context": {
69046
+ "type": "string"
69047
+ },
69048
+ "@version": {
69049
+ "type": "string"
69050
+ }
69051
+ }
69052
+ },
69053
+ "ValueHintsValueJSON": {
69054
+ "type": "object",
69055
+ "properties": {
69056
+ "key": {
69057
+ "type": [
69058
+ "string",
69059
+ "number",
69060
+ "boolean"
69061
+ ]
69062
+ },
69063
+ "displayName": {
69064
+ "type": "string"
69053
69065
  }
69054
69066
  },
69055
69067
  "required": [
69056
- "@type",
69057
- "day",
69058
- "month",
69059
- "year"
69068
+ "key",
69069
+ "displayName"
69060
69070
  ],
69061
69071
  "additionalProperties": false
69062
69072
  },
69063
- "BirthNameJSON": {
69073
+ "ValueHintsJSON": {
69064
69074
  "type": "object",
69065
69075
  "properties": {
69066
69076
  "@type": {
69067
69077
  "type": "string",
69068
- "const": "BirthName"
69078
+ "const": "ValueHints"
69069
69079
  },
69070
69080
  "@context": {
69071
69081
  "type": "string"
@@ -69073,22 +69083,49 @@ exports.SucceedIdentityAttributeRequest = {
69073
69083
  "@version": {
69074
69084
  "type": "string"
69075
69085
  },
69076
- "value": {
69086
+ "editHelp": {
69087
+ "type": "string"
69088
+ },
69089
+ "min": {
69090
+ "type": "number"
69091
+ },
69092
+ "max": {
69093
+ "type": "number"
69094
+ },
69095
+ "pattern": {
69077
69096
  "type": "string"
69097
+ },
69098
+ "values": {
69099
+ "type": "array",
69100
+ "items": {
69101
+ "$ref": "#/definitions/ValueHintsValueJSON"
69102
+ }
69103
+ },
69104
+ "defaultValue": {
69105
+ "type": [
69106
+ "string",
69107
+ "number",
69108
+ "boolean"
69109
+ ]
69110
+ },
69111
+ "propertyHints": {
69112
+ "type": "object",
69113
+ "additionalProperties": {
69114
+ "$ref": "#/definitions/ValueHintsJSON"
69115
+ }
69078
69116
  }
69079
69117
  },
69080
69118
  "required": [
69081
- "@type",
69082
- "value"
69119
+ "@type"
69083
69120
  ],
69084
69121
  "additionalProperties": false
69085
69122
  },
69086
- "BirthPlaceJSON": {
69123
+ "ProprietaryCountryJSON": {
69087
69124
  "type": "object",
69088
69125
  "properties": {
69089
69126
  "@type": {
69090
69127
  "type": "string",
69091
- "const": "BirthPlace"
69128
+ "const": "ProprietaryCountry"
69092
69129
  },
69093
69130
  "@context": {
69094
69131
  "type": "string"
@@ -69096,29 +69133,32 @@ exports.SucceedIdentityAttributeRequest = {
69096
69133
  "@version": {
69097
69134
  "type": "string"
69098
69135
  },
69099
- "city": {
69136
+ "value": {
69100
69137
  "type": "string"
69101
69138
  },
69102
- "country": {
69139
+ "title": {
69103
69140
  "type": "string"
69104
69141
  },
69105
- "state": {
69142
+ "description": {
69106
69143
  "type": "string"
69144
+ },
69145
+ "valueHintsOverride": {
69146
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69107
69147
  }
69108
69148
  },
69109
69149
  "required": [
69110
69150
  "@type",
69111
- "city",
69112
- "country"
69151
+ "title",
69152
+ "value"
69113
69153
  ],
69114
69154
  "additionalProperties": false
69115
69155
  },
69116
- "CitizenshipJSON": {
69156
+ "ProprietaryEMailAddressJSON": {
69117
69157
  "type": "object",
69118
69158
  "properties": {
69119
69159
  "@type": {
69120
69160
  "type": "string",
69121
- "const": "Citizenship"
69161
+ "const": "ProprietaryEMailAddress"
69122
69162
  },
69123
69163
  "@context": {
69124
69164
  "type": "string"
@@ -69128,20 +69168,30 @@ exports.SucceedIdentityAttributeRequest = {
69128
69168
  },
69129
69169
  "value": {
69130
69170
  "type": "string"
69171
+ },
69172
+ "title": {
69173
+ "type": "string"
69174
+ },
69175
+ "description": {
69176
+ "type": "string"
69177
+ },
69178
+ "valueHintsOverride": {
69179
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69131
69180
  }
69132
69181
  },
69133
69182
  "required": [
69134
69183
  "@type",
69184
+ "title",
69135
69185
  "value"
69136
69186
  ],
69137
69187
  "additionalProperties": false
69138
69188
  },
69139
- "CommunicationLanguageJSON": {
69189
+ "ProprietaryFileReferenceJSON": {
69140
69190
  "type": "object",
69141
69191
  "properties": {
69142
69192
  "@type": {
69143
69193
  "type": "string",
69144
- "const": "CommunicationLanguage"
69194
+ "const": "ProprietaryFileReference"
69145
69195
  },
69146
69196
  "@context": {
69147
69197
  "type": "string"
@@ -69151,20 +69201,30 @@ exports.SucceedIdentityAttributeRequest = {
69151
69201
  },
69152
69202
  "value": {
69153
69203
  "type": "string"
69154
- }
69204
+ },
69205
+ "title": {
69206
+ "type": "string"
69207
+ },
69208
+ "description": {
69209
+ "type": "string"
69210
+ },
69211
+ "valueHintsOverride": {
69212
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69213
+ }
69155
69214
  },
69156
69215
  "required": [
69157
69216
  "@type",
69217
+ "title",
69158
69218
  "value"
69159
69219
  ],
69160
69220
  "additionalProperties": false
69161
69221
  },
69162
- "DeliveryBoxAddressJSON": {
69222
+ "ProprietaryFloatJSON": {
69163
69223
  "type": "object",
69164
69224
  "properties": {
69165
69225
  "@type": {
69166
69226
  "type": "string",
69167
- "const": "DeliveryBoxAddress"
69227
+ "const": "ProprietaryFloat"
69168
69228
  },
69169
69229
  "@context": {
69170
69230
  "type": "string"
@@ -69172,48 +69232,32 @@ exports.SucceedIdentityAttributeRequest = {
69172
69232
  "@version": {
69173
69233
  "type": "string"
69174
69234
  },
69175
- "recipient": {
69176
- "type": "string"
69177
- },
69178
- "userId": {
69179
- "type": "string"
69180
- },
69181
- "deliveryBoxId": {
69182
- "type": "string"
69183
- },
69184
- "zipCode": {
69185
- "type": "string"
69186
- },
69187
- "city": {
69188
- "type": "string"
69235
+ "value": {
69236
+ "type": "number"
69189
69237
  },
69190
- "country": {
69238
+ "title": {
69191
69239
  "type": "string"
69192
69240
  },
69193
- "phoneNumber": {
69241
+ "description": {
69194
69242
  "type": "string"
69195
69243
  },
69196
- "state": {
69197
- "type": "string"
69244
+ "valueHintsOverride": {
69245
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69198
69246
  }
69199
69247
  },
69200
69248
  "required": [
69201
69249
  "@type",
69202
- "city",
69203
- "country",
69204
- "deliveryBoxId",
69205
- "recipient",
69206
- "userId",
69207
- "zipCode"
69250
+ "title",
69251
+ "value"
69208
69252
  ],
69209
69253
  "additionalProperties": false
69210
69254
  },
69211
- "DisplayNameJSON": {
69255
+ "ProprietaryHEXColorJSON": {
69212
69256
  "type": "object",
69213
69257
  "properties": {
69214
69258
  "@type": {
69215
69259
  "type": "string",
69216
- "const": "DisplayName"
69260
+ "const": "ProprietaryHEXColor"
69217
69261
  },
69218
69262
  "@context": {
69219
69263
  "type": "string"
@@ -69223,43 +69267,30 @@ exports.SucceedIdentityAttributeRequest = {
69223
69267
  },
69224
69268
  "value": {
69225
69269
  "type": "string"
69226
- }
69227
- },
69228
- "required": [
69229
- "@type",
69230
- "value"
69231
- ],
69232
- "additionalProperties": false
69233
- },
69234
- "EMailAddressJSON": {
69235
- "type": "object",
69236
- "properties": {
69237
- "@type": {
69238
- "type": "string",
69239
- "const": "EMailAddress"
69240
69270
  },
69241
- "@context": {
69271
+ "title": {
69242
69272
  "type": "string"
69243
69273
  },
69244
- "@version": {
69274
+ "description": {
69245
69275
  "type": "string"
69246
69276
  },
69247
- "value": {
69248
- "type": "string"
69277
+ "valueHintsOverride": {
69278
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69249
69279
  }
69250
69280
  },
69251
69281
  "required": [
69252
69282
  "@type",
69283
+ "title",
69253
69284
  "value"
69254
69285
  ],
69255
69286
  "additionalProperties": false
69256
69287
  },
69257
- "FaxNumberJSON": {
69288
+ "ProprietaryIntegerJSON": {
69258
69289
  "type": "object",
69259
69290
  "properties": {
69260
69291
  "@type": {
69261
69292
  "type": "string",
69262
- "const": "FaxNumber"
69293
+ "const": "ProprietaryInteger"
69263
69294
  },
69264
69295
  "@context": {
69265
69296
  "type": "string"
@@ -69268,21 +69299,31 @@ exports.SucceedIdentityAttributeRequest = {
69268
69299
  "type": "string"
69269
69300
  },
69270
69301
  "value": {
69302
+ "type": "number"
69303
+ },
69304
+ "title": {
69305
+ "type": "string"
69306
+ },
69307
+ "description": {
69271
69308
  "type": "string"
69309
+ },
69310
+ "valueHintsOverride": {
69311
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69272
69312
  }
69273
69313
  },
69274
69314
  "required": [
69275
69315
  "@type",
69316
+ "title",
69276
69317
  "value"
69277
69318
  ],
69278
69319
  "additionalProperties": false
69279
69320
  },
69280
- "IdentityFileReferenceJSON": {
69321
+ "ProprietaryLanguageJSON": {
69281
69322
  "type": "object",
69282
69323
  "properties": {
69283
69324
  "@type": {
69284
69325
  "type": "string",
69285
- "const": "IdentityFileReference"
69326
+ "const": "ProprietaryLanguage"
69286
69327
  },
69287
69328
  "@context": {
69288
69329
  "type": "string"
@@ -69292,43 +69333,30 @@ exports.SucceedIdentityAttributeRequest = {
69292
69333
  },
69293
69334
  "value": {
69294
69335
  "type": "string"
69295
- }
69296
- },
69297
- "required": [
69298
- "@type",
69299
- "value"
69300
- ],
69301
- "additionalProperties": false
69302
- },
69303
- "JobTitleJSON": {
69304
- "type": "object",
69305
- "properties": {
69306
- "@type": {
69307
- "type": "string",
69308
- "const": "JobTitle"
69309
69336
  },
69310
- "@context": {
69337
+ "title": {
69311
69338
  "type": "string"
69312
69339
  },
69313
- "@version": {
69340
+ "description": {
69314
69341
  "type": "string"
69315
69342
  },
69316
- "value": {
69317
- "type": "string"
69343
+ "valueHintsOverride": {
69344
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69318
69345
  }
69319
69346
  },
69320
69347
  "required": [
69321
69348
  "@type",
69349
+ "title",
69322
69350
  "value"
69323
69351
  ],
69324
69352
  "additionalProperties": false
69325
69353
  },
69326
- "NationalityJSON": {
69354
+ "ProprietaryPhoneNumberJSON": {
69327
69355
  "type": "object",
69328
69356
  "properties": {
69329
69357
  "@type": {
69330
69358
  "type": "string",
69331
- "const": "Nationality"
69359
+ "const": "ProprietaryPhoneNumber"
69332
69360
  },
69333
69361
  "@context": {
69334
69362
  "type": "string"
@@ -69338,20 +69366,30 @@ exports.SucceedIdentityAttributeRequest = {
69338
69366
  },
69339
69367
  "value": {
69340
69368
  "type": "string"
69369
+ },
69370
+ "title": {
69371
+ "type": "string"
69372
+ },
69373
+ "description": {
69374
+ "type": "string"
69375
+ },
69376
+ "valueHintsOverride": {
69377
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69341
69378
  }
69342
69379
  },
69343
69380
  "required": [
69344
69381
  "@type",
69382
+ "title",
69345
69383
  "value"
69346
69384
  ],
69347
69385
  "additionalProperties": false
69348
69386
  },
69349
- "PersonNameJSON": {
69387
+ "ProprietaryStringJSON": {
69350
69388
  "type": "object",
69351
69389
  "properties": {
69352
69390
  "@type": {
69353
69391
  "type": "string",
69354
- "const": "PersonName"
69392
+ "const": "ProprietaryString"
69355
69393
  },
69356
69394
  "@context": {
69357
69395
  "type": "string"
@@ -69359,35 +69397,32 @@ exports.SucceedIdentityAttributeRequest = {
69359
69397
  "@version": {
69360
69398
  "type": "string"
69361
69399
  },
69362
- "givenName": {
69363
- "type": "string"
69364
- },
69365
- "middleName": {
69400
+ "value": {
69366
69401
  "type": "string"
69367
69402
  },
69368
- "surname": {
69403
+ "title": {
69369
69404
  "type": "string"
69370
69405
  },
69371
- "honorificSuffix": {
69406
+ "description": {
69372
69407
  "type": "string"
69373
69408
  },
69374
- "honorificPrefix": {
69375
- "type": "string"
69409
+ "valueHintsOverride": {
69410
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69376
69411
  }
69377
69412
  },
69378
69413
  "required": [
69379
69414
  "@type",
69380
- "givenName",
69381
- "surname"
69415
+ "title",
69416
+ "value"
69382
69417
  ],
69383
69418
  "additionalProperties": false
69384
69419
  },
69385
- "PhoneNumberJSON": {
69420
+ "ProprietaryURLJSON": {
69386
69421
  "type": "object",
69387
69422
  "properties": {
69388
69423
  "@type": {
69389
69424
  "type": "string",
69390
- "const": "PhoneNumber"
69425
+ "const": "ProprietaryURL"
69391
69426
  },
69392
69427
  "@context": {
69393
69428
  "type": "string"
@@ -69397,20 +69432,30 @@ exports.SucceedIdentityAttributeRequest = {
69397
69432
  },
69398
69433
  "value": {
69399
69434
  "type": "string"
69435
+ },
69436
+ "title": {
69437
+ "type": "string"
69438
+ },
69439
+ "description": {
69440
+ "type": "string"
69441
+ },
69442
+ "valueHintsOverride": {
69443
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69400
69444
  }
69401
69445
  },
69402
69446
  "required": [
69403
69447
  "@type",
69448
+ "title",
69404
69449
  "value"
69405
69450
  ],
69406
69451
  "additionalProperties": false
69407
69452
  },
69408
- "PostOfficeBoxAddressJSON": {
69453
+ "ProprietaryJSONJSON": {
69409
69454
  "type": "object",
69410
69455
  "properties": {
69411
69456
  "@type": {
69412
69457
  "type": "string",
69413
- "const": "PostOfficeBoxAddress"
69458
+ "const": "ProprietaryJSON"
69414
69459
  },
69415
69460
  "@context": {
69416
69461
  "type": "string"
@@ -69418,41 +69463,27 @@ exports.SucceedIdentityAttributeRequest = {
69418
69463
  "@version": {
69419
69464
  "type": "string"
69420
69465
  },
69421
- "recipient": {
69422
- "type": "string"
69423
- },
69424
- "boxId": {
69425
- "type": "string"
69426
- },
69427
- "zipCode": {
69428
- "type": "string"
69429
- },
69430
- "city": {
69466
+ "title": {
69431
69467
  "type": "string"
69432
69468
  },
69433
- "country": {
69469
+ "description": {
69434
69470
  "type": "string"
69435
69471
  },
69436
- "state": {
69437
- "type": "string"
69438
- }
69472
+ "value": {}
69439
69473
  },
69440
69474
  "required": [
69441
69475
  "@type",
69442
- "boxId",
69443
- "city",
69444
- "country",
69445
- "recipient",
69446
- "zipCode"
69476
+ "title",
69477
+ "value"
69447
69478
  ],
69448
69479
  "additionalProperties": false
69449
69480
  },
69450
- "PseudonymJSON": {
69481
+ "ProprietaryXMLJSON": {
69451
69482
  "type": "object",
69452
69483
  "properties": {
69453
69484
  "@type": {
69454
69485
  "type": "string",
69455
- "const": "Pseudonym"
69486
+ "const": "ProprietaryXML"
69456
69487
  },
69457
69488
  "@context": {
69458
69489
  "type": "string"
@@ -69462,43 +69493,32 @@ exports.SucceedIdentityAttributeRequest = {
69462
69493
  },
69463
69494
  "value": {
69464
69495
  "type": "string"
69465
- }
69466
- },
69467
- "required": [
69468
- "@type",
69469
- "value"
69470
- ],
69471
- "additionalProperties": false
69472
- },
69473
- "SexJSON": {
69474
- "type": "object",
69475
- "properties": {
69476
- "@type": {
69477
- "type": "string",
69478
- "const": "Sex"
69479
69496
  },
69480
- "@context": {
69497
+ "title": {
69481
69498
  "type": "string"
69482
69499
  },
69483
- "@version": {
69500
+ "description": {
69484
69501
  "type": "string"
69485
69502
  },
69486
- "value": {
69503
+ "valueHintsOverride": {
69504
+ "$ref": "#/definitions/ValueHintsOverrideJSON"
69505
+ },
69506
+ "schemaURL": {
69487
69507
  "type": "string"
69488
69508
  }
69489
69509
  },
69490
69510
  "required": [
69491
69511
  "@type",
69512
+ "title",
69492
69513
  "value"
69493
69514
  ],
69494
69515
  "additionalProperties": false
69495
69516
  },
69496
- "StreetAddressJSON": {
69517
+ "ConsentJSON": {
69497
69518
  "type": "object",
69498
69519
  "properties": {
69499
69520
  "@type": {
69500
- "type": "string",
69501
- "const": "StreetAddress"
69521
+ "type": "string"
69502
69522
  },
69503
69523
  "@context": {
69504
69524
  "type": "string"
@@ -69506,135 +69526,147 @@ exports.SucceedIdentityAttributeRequest = {
69506
69526
  "@version": {
69507
69527
  "type": "string"
69508
69528
  },
69509
- "recipient": {
69510
- "type": "string"
69511
- },
69512
- "street": {
69513
- "type": "string"
69514
- },
69515
- "houseNo": {
69516
- "type": "string"
69517
- },
69518
- "zipCode": {
69519
- "type": "string"
69520
- },
69521
- "city": {
69522
- "type": "string"
69523
- },
69524
- "country": {
69529
+ "consent": {
69525
69530
  "type": "string"
69526
69531
  },
69527
- "state": {
69532
+ "link": {
69528
69533
  "type": "string"
69529
69534
  }
69530
69535
  },
69531
69536
  "required": [
69532
69537
  "@type",
69533
- "city",
69534
- "country",
69535
- "houseNo",
69536
- "recipient",
69537
- "street",
69538
- "zipCode"
69538
+ "consent"
69539
69539
  ],
69540
69540
  "additionalProperties": false
69541
69541
  },
69542
- "WebsiteJSON": {
69543
- "type": "object",
69544
- "properties": {
69545
- "@type": {
69546
- "type": "string",
69547
- "const": "Website"
69548
- },
69549
- "@context": {
69550
- "type": "string"
69551
- },
69552
- "@version": {
69542
+ "ISO8601DateTimeString": {
69543
+ "type": "string",
69544
+ "errorMessage": "must match ISO8601 datetime format",
69545
+ "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
69546
+ }
69547
+ }
69548
+ };
69549
+ exports.SucceedRepositoryAttributeRequest = {
69550
+ "$schema": "http://json-schema.org/draft-07/schema#",
69551
+ "$ref": "#/definitions/SucceedRepositoryAttributeRequest",
69552
+ "definitions": {
69553
+ "SucceedRepositoryAttributeRequest": {
69554
+ "type": "object",
69555
+ "properties": {
69556
+ "predecessorId": {
69553
69557
  "type": "string"
69554
69558
  },
69555
- "value": {
69556
- "type": "string"
69559
+ "successorContent": {
69560
+ "type": "object",
69561
+ "properties": {
69562
+ "value": {
69563
+ "$ref": "#/definitions/AttributeValues.Identity.Json"
69564
+ },
69565
+ "tags": {
69566
+ "type": "array",
69567
+ "items": {
69568
+ "type": "string"
69569
+ }
69570
+ },
69571
+ "validFrom": {
69572
+ "$ref": "#/definitions/ISO8601DateTimeString"
69573
+ },
69574
+ "validTo": {
69575
+ "$ref": "#/definitions/ISO8601DateTimeString"
69576
+ }
69577
+ },
69578
+ "required": [
69579
+ "value"
69580
+ ],
69581
+ "additionalProperties": false
69557
69582
  }
69558
69583
  },
69559
69584
  "required": [
69560
- "@type",
69561
- "value"
69585
+ "predecessorId",
69586
+ "successorContent"
69562
69587
  ],
69563
69588
  "additionalProperties": false
69564
69589
  },
69565
- "AttributeValues.Identity.Uneditable.Json": {
69590
+ "AttributeValues.Identity.Json": {
69566
69591
  "anyOf": [
69567
69592
  {
69568
- "$ref": "#/definitions/AffiliationOrganizationJSON"
69593
+ "$ref": "#/definitions/AttributeValues.Identity.Editable.Json"
69569
69594
  },
69570
69595
  {
69571
- "$ref": "#/definitions/AffiliationRoleJSON"
69596
+ "$ref": "#/definitions/AttributeValues.Identity.Uneditable.Json"
69597
+ }
69598
+ ]
69599
+ },
69600
+ "AttributeValues.Identity.Editable.Json": {
69601
+ "anyOf": [
69602
+ {
69603
+ "$ref": "#/definitions/AffiliationJSON"
69572
69604
  },
69573
69605
  {
69574
- "$ref": "#/definitions/AffiliationUnitJSON"
69606
+ "$ref": "#/definitions/BirthDateJSON"
69575
69607
  },
69576
69608
  {
69577
- "$ref": "#/definitions/BirthCityJSON"
69609
+ "$ref": "#/definitions/BirthNameJSON"
69578
69610
  },
69579
69611
  {
69580
- "$ref": "#/definitions/BirthCountryJSON"
69612
+ "$ref": "#/definitions/BirthPlaceJSON"
69581
69613
  },
69582
69614
  {
69583
- "$ref": "#/definitions/BirthDayJSON"
69615
+ "$ref": "#/definitions/CitizenshipJSON"
69584
69616
  },
69585
69617
  {
69586
- "$ref": "#/definitions/BirthMonthJSON"
69618
+ "$ref": "#/definitions/CommunicationLanguageJSON"
69587
69619
  },
69588
69620
  {
69589
- "$ref": "#/definitions/BirthStateJSON"
69621
+ "$ref": "#/definitions/DeliveryBoxAddressJSON"
69590
69622
  },
69591
69623
  {
69592
- "$ref": "#/definitions/BirthYearJSON"
69624
+ "$ref": "#/definitions/DisplayNameJSON"
69593
69625
  },
69594
69626
  {
69595
- "$ref": "#/definitions/CityJSON"
69627
+ "$ref": "#/definitions/EMailAddressJSON"
69596
69628
  },
69597
69629
  {
69598
- "$ref": "#/definitions/CountryJSON"
69630
+ "$ref": "#/definitions/FaxNumberJSON"
69599
69631
  },
69600
69632
  {
69601
- "$ref": "#/definitions/GivenNameJSON"
69633
+ "$ref": "#/definitions/IdentityFileReferenceJSON"
69602
69634
  },
69603
69635
  {
69604
- "$ref": "#/definitions/HonorificPrefixJSON"
69636
+ "$ref": "#/definitions/JobTitleJSON"
69605
69637
  },
69606
69638
  {
69607
- "$ref": "#/definitions/HonorificSuffixJSON"
69639
+ "$ref": "#/definitions/NationalityJSON"
69608
69640
  },
69609
69641
  {
69610
- "$ref": "#/definitions/HouseNumberJSON"
69642
+ "$ref": "#/definitions/PersonNameJSON"
69611
69643
  },
69612
69644
  {
69613
- "$ref": "#/definitions/MiddleNameJSON"
69645
+ "$ref": "#/definitions/PhoneNumberJSON"
69614
69646
  },
69615
69647
  {
69616
- "$ref": "#/definitions/SchematizedXMLJSON"
69648
+ "$ref": "#/definitions/PostOfficeBoxAddressJSON"
69617
69649
  },
69618
69650
  {
69619
- "$ref": "#/definitions/StateJSON"
69651
+ "$ref": "#/definitions/PseudonymJSON"
69620
69652
  },
69621
69653
  {
69622
- "$ref": "#/definitions/StreetJSON"
69654
+ "$ref": "#/definitions/SexJSON"
69623
69655
  },
69624
69656
  {
69625
- "$ref": "#/definitions/SurnameJSON"
69657
+ "$ref": "#/definitions/StreetAddressJSON"
69626
69658
  },
69627
69659
  {
69628
- "$ref": "#/definitions/ZipCodeJSON"
69660
+ "$ref": "#/definitions/WebsiteJSON"
69629
69661
  }
69630
69662
  ]
69631
69663
  },
69632
- "AffiliationOrganizationJSON": {
69664
+ "AffiliationJSON": {
69633
69665
  "type": "object",
69634
69666
  "properties": {
69635
69667
  "@type": {
69636
69668
  "type": "string",
69637
- "const": "AffiliationOrganization"
69669
+ "const": "Affiliation"
69638
69670
  },
69639
69671
  "@context": {
69640
69672
  "type": "string"
@@ -69642,22 +69674,28 @@ exports.SucceedIdentityAttributeRequest = {
69642
69674
  "@version": {
69643
69675
  "type": "string"
69644
69676
  },
69645
- "value": {
69677
+ "organization": {
69678
+ "type": "string"
69679
+ },
69680
+ "role": {
69681
+ "type": "string"
69682
+ },
69683
+ "unit": {
69646
69684
  "type": "string"
69647
69685
  }
69648
69686
  },
69649
69687
  "required": [
69650
69688
  "@type",
69651
- "value"
69689
+ "organization"
69652
69690
  ],
69653
69691
  "additionalProperties": false
69654
69692
  },
69655
- "AffiliationRoleJSON": {
69693
+ "BirthDateJSON": {
69656
69694
  "type": "object",
69657
69695
  "properties": {
69658
69696
  "@type": {
69659
69697
  "type": "string",
69660
- "const": "AffiliationRole"
69698
+ "const": "BirthDate"
69661
69699
  },
69662
69700
  "@context": {
69663
69701
  "type": "string"
@@ -69665,22 +69703,30 @@ exports.SucceedIdentityAttributeRequest = {
69665
69703
  "@version": {
69666
69704
  "type": "string"
69667
69705
  },
69668
- "value": {
69669
- "type": "string"
69706
+ "day": {
69707
+ "type": "number"
69708
+ },
69709
+ "month": {
69710
+ "type": "number"
69711
+ },
69712
+ "year": {
69713
+ "type": "number"
69670
69714
  }
69671
69715
  },
69672
69716
  "required": [
69673
69717
  "@type",
69674
- "value"
69718
+ "day",
69719
+ "month",
69720
+ "year"
69675
69721
  ],
69676
69722
  "additionalProperties": false
69677
69723
  },
69678
- "AffiliationUnitJSON": {
69724
+ "BirthNameJSON": {
69679
69725
  "type": "object",
69680
69726
  "properties": {
69681
69727
  "@type": {
69682
69728
  "type": "string",
69683
- "const": "AffiliationUnit"
69729
+ "const": "BirthName"
69684
69730
  },
69685
69731
  "@context": {
69686
69732
  "type": "string"
@@ -69698,11 +69744,12 @@ exports.SucceedIdentityAttributeRequest = {
69698
69744
  ],
69699
69745
  "additionalProperties": false
69700
69746
  },
69701
- "BirthCityJSON": {
69747
+ "BirthPlaceJSON": {
69702
69748
  "type": "object",
69703
69749
  "properties": {
69704
- "value": {
69705
- "type": "string"
69750
+ "@type": {
69751
+ "type": "string",
69752
+ "const": "BirthPlace"
69706
69753
  },
69707
69754
  "@context": {
69708
69755
  "type": "string"
@@ -69710,22 +69757,29 @@ exports.SucceedIdentityAttributeRequest = {
69710
69757
  "@version": {
69711
69758
  "type": "string"
69712
69759
  },
69713
- "@type": {
69714
- "type": "string",
69715
- "const": "BirthCity"
69760
+ "city": {
69761
+ "type": "string"
69762
+ },
69763
+ "country": {
69764
+ "type": "string"
69765
+ },
69766
+ "state": {
69767
+ "type": "string"
69716
69768
  }
69717
69769
  },
69718
69770
  "required": [
69719
69771
  "@type",
69720
- "value"
69772
+ "city",
69773
+ "country"
69721
69774
  ],
69722
69775
  "additionalProperties": false
69723
69776
  },
69724
- "BirthCountryJSON": {
69777
+ "CitizenshipJSON": {
69725
69778
  "type": "object",
69726
69779
  "properties": {
69727
- "value": {
69728
- "type": "string"
69780
+ "@type": {
69781
+ "type": "string",
69782
+ "const": "Citizenship"
69729
69783
  },
69730
69784
  "@context": {
69731
69785
  "type": "string"
@@ -69733,9 +69787,8 @@ exports.SucceedIdentityAttributeRequest = {
69733
69787
  "@version": {
69734
69788
  "type": "string"
69735
69789
  },
69736
- "@type": {
69737
- "type": "string",
69738
- "const": "BirthCountry"
69790
+ "value": {
69791
+ "type": "string"
69739
69792
  }
69740
69793
  },
69741
69794
  "required": [
@@ -69744,12 +69797,12 @@ exports.SucceedIdentityAttributeRequest = {
69744
69797
  ],
69745
69798
  "additionalProperties": false
69746
69799
  },
69747
- "BirthDayJSON": {
69800
+ "CommunicationLanguageJSON": {
69748
69801
  "type": "object",
69749
69802
  "properties": {
69750
69803
  "@type": {
69751
69804
  "type": "string",
69752
- "const": "BirthDay"
69805
+ "const": "CommunicationLanguage"
69753
69806
  },
69754
69807
  "@context": {
69755
69808
  "type": "string"
@@ -69758,7 +69811,7 @@ exports.SucceedIdentityAttributeRequest = {
69758
69811
  "type": "string"
69759
69812
  },
69760
69813
  "value": {
69761
- "type": "number"
69814
+ "type": "string"
69762
69815
  }
69763
69816
  },
69764
69817
  "required": [
@@ -69767,12 +69820,12 @@ exports.SucceedIdentityAttributeRequest = {
69767
69820
  ],
69768
69821
  "additionalProperties": false
69769
69822
  },
69770
- "BirthMonthJSON": {
69823
+ "DeliveryBoxAddressJSON": {
69771
69824
  "type": "object",
69772
69825
  "properties": {
69773
69826
  "@type": {
69774
69827
  "type": "string",
69775
- "const": "BirthMonth"
69828
+ "const": "DeliveryBoxAddress"
69776
69829
  },
69777
69830
  "@context": {
69778
69831
  "type": "string"
@@ -69780,36 +69833,48 @@ exports.SucceedIdentityAttributeRequest = {
69780
69833
  "@version": {
69781
69834
  "type": "string"
69782
69835
  },
69783
- "value": {
69784
- "type": "number",
69785
- "enum": [
69786
- 1,
69787
- 2,
69788
- 3,
69789
- 4,
69790
- 5,
69791
- 6,
69792
- 7,
69793
- 8,
69794
- 9,
69795
- 10,
69796
- 11,
69797
- 12
69798
- ],
69799
- "description": "Month values: 1 (january) - 12 (december)"
69836
+ "recipient": {
69837
+ "type": "string"
69838
+ },
69839
+ "userId": {
69840
+ "type": "string"
69841
+ },
69842
+ "deliveryBoxId": {
69843
+ "type": "string"
69844
+ },
69845
+ "zipCode": {
69846
+ "type": "string"
69847
+ },
69848
+ "city": {
69849
+ "type": "string"
69850
+ },
69851
+ "country": {
69852
+ "type": "string"
69853
+ },
69854
+ "phoneNumber": {
69855
+ "type": "string"
69856
+ },
69857
+ "state": {
69858
+ "type": "string"
69800
69859
  }
69801
69860
  },
69802
69861
  "required": [
69803
69862
  "@type",
69804
- "value"
69863
+ "city",
69864
+ "country",
69865
+ "deliveryBoxId",
69866
+ "recipient",
69867
+ "userId",
69868
+ "zipCode"
69805
69869
  ],
69806
69870
  "additionalProperties": false
69807
69871
  },
69808
- "BirthStateJSON": {
69872
+ "DisplayNameJSON": {
69809
69873
  "type": "object",
69810
69874
  "properties": {
69811
- "value": {
69812
- "type": "string"
69875
+ "@type": {
69876
+ "type": "string",
69877
+ "const": "DisplayName"
69813
69878
  },
69814
69879
  "@context": {
69815
69880
  "type": "string"
@@ -69817,9 +69882,8 @@ exports.SucceedIdentityAttributeRequest = {
69817
69882
  "@version": {
69818
69883
  "type": "string"
69819
69884
  },
69820
- "@type": {
69821
- "type": "string",
69822
- "const": "BirthState"
69885
+ "value": {
69886
+ "type": "string"
69823
69887
  }
69824
69888
  },
69825
69889
  "required": [
@@ -69828,12 +69892,12 @@ exports.SucceedIdentityAttributeRequest = {
69828
69892
  ],
69829
69893
  "additionalProperties": false
69830
69894
  },
69831
- "BirthYearJSON": {
69895
+ "EMailAddressJSON": {
69832
69896
  "type": "object",
69833
69897
  "properties": {
69834
69898
  "@type": {
69835
69899
  "type": "string",
69836
- "const": "BirthYear"
69900
+ "const": "EMailAddress"
69837
69901
  },
69838
69902
  "@context": {
69839
69903
  "type": "string"
@@ -69842,7 +69906,7 @@ exports.SucceedIdentityAttributeRequest = {
69842
69906
  "type": "string"
69843
69907
  },
69844
69908
  "value": {
69845
- "type": "number"
69909
+ "type": "string"
69846
69910
  }
69847
69911
  },
69848
69912
  "required": [
@@ -69851,12 +69915,12 @@ exports.SucceedIdentityAttributeRequest = {
69851
69915
  ],
69852
69916
  "additionalProperties": false
69853
69917
  },
69854
- "CityJSON": {
69918
+ "FaxNumberJSON": {
69855
69919
  "type": "object",
69856
69920
  "properties": {
69857
69921
  "@type": {
69858
69922
  "type": "string",
69859
- "const": "City"
69923
+ "const": "FaxNumber"
69860
69924
  },
69861
69925
  "@context": {
69862
69926
  "type": "string"
@@ -69874,12 +69938,12 @@ exports.SucceedIdentityAttributeRequest = {
69874
69938
  ],
69875
69939
  "additionalProperties": false
69876
69940
  },
69877
- "CountryJSON": {
69941
+ "IdentityFileReferenceJSON": {
69878
69942
  "type": "object",
69879
69943
  "properties": {
69880
69944
  "@type": {
69881
69945
  "type": "string",
69882
- "const": "Country"
69946
+ "const": "IdentityFileReference"
69883
69947
  },
69884
69948
  "@context": {
69885
69949
  "type": "string"
@@ -69897,12 +69961,12 @@ exports.SucceedIdentityAttributeRequest = {
69897
69961
  ],
69898
69962
  "additionalProperties": false
69899
69963
  },
69900
- "GivenNameJSON": {
69964
+ "JobTitleJSON": {
69901
69965
  "type": "object",
69902
69966
  "properties": {
69903
69967
  "@type": {
69904
69968
  "type": "string",
69905
- "const": "GivenName"
69969
+ "const": "JobTitle"
69906
69970
  },
69907
69971
  "@context": {
69908
69972
  "type": "string"
@@ -69920,12 +69984,12 @@ exports.SucceedIdentityAttributeRequest = {
69920
69984
  ],
69921
69985
  "additionalProperties": false
69922
69986
  },
69923
- "HonorificPrefixJSON": {
69987
+ "NationalityJSON": {
69924
69988
  "type": "object",
69925
69989
  "properties": {
69926
69990
  "@type": {
69927
69991
  "type": "string",
69928
- "const": "HonorificPrefix"
69992
+ "const": "Nationality"
69929
69993
  },
69930
69994
  "@context": {
69931
69995
  "type": "string"
@@ -69943,12 +70007,12 @@ exports.SucceedIdentityAttributeRequest = {
69943
70007
  ],
69944
70008
  "additionalProperties": false
69945
70009
  },
69946
- "HonorificSuffixJSON": {
70010
+ "PersonNameJSON": {
69947
70011
  "type": "object",
69948
70012
  "properties": {
69949
70013
  "@type": {
69950
70014
  "type": "string",
69951
- "const": "HonorificSuffix"
70015
+ "const": "PersonName"
69952
70016
  },
69953
70017
  "@context": {
69954
70018
  "type": "string"
@@ -69956,45 +70020,35 @@ exports.SucceedIdentityAttributeRequest = {
69956
70020
  "@version": {
69957
70021
  "type": "string"
69958
70022
  },
69959
- "value": {
70023
+ "givenName": {
69960
70024
  "type": "string"
69961
- }
69962
- },
69963
- "required": [
69964
- "@type",
69965
- "value"
69966
- ],
69967
- "additionalProperties": false
69968
- },
69969
- "HouseNumberJSON": {
69970
- "type": "object",
69971
- "properties": {
69972
- "@type": {
69973
- "type": "string",
69974
- "const": "HouseNumber"
69975
70025
  },
69976
- "@context": {
70026
+ "middleName": {
69977
70027
  "type": "string"
69978
70028
  },
69979
- "@version": {
70029
+ "surname": {
69980
70030
  "type": "string"
69981
70031
  },
69982
- "value": {
70032
+ "honorificSuffix": {
70033
+ "type": "string"
70034
+ },
70035
+ "honorificPrefix": {
69983
70036
  "type": "string"
69984
70037
  }
69985
70038
  },
69986
70039
  "required": [
69987
70040
  "@type",
69988
- "value"
70041
+ "givenName",
70042
+ "surname"
69989
70043
  ],
69990
70044
  "additionalProperties": false
69991
70045
  },
69992
- "MiddleNameJSON": {
70046
+ "PhoneNumberJSON": {
69993
70047
  "type": "object",
69994
70048
  "properties": {
69995
70049
  "@type": {
69996
70050
  "type": "string",
69997
- "const": "MiddleName"
70051
+ "const": "PhoneNumber"
69998
70052
  },
69999
70053
  "@context": {
70000
70054
  "type": "string"
@@ -70012,12 +70066,12 @@ exports.SucceedIdentityAttributeRequest = {
70012
70066
  ],
70013
70067
  "additionalProperties": false
70014
70068
  },
70015
- "SchematizedXMLJSON": {
70069
+ "PostOfficeBoxAddressJSON": {
70016
70070
  "type": "object",
70017
70071
  "properties": {
70018
70072
  "@type": {
70019
70073
  "type": "string",
70020
- "const": "SchematizedXML"
70074
+ "const": "PostOfficeBoxAddress"
70021
70075
  },
70022
70076
  "@context": {
70023
70077
  "type": "string"
@@ -70025,25 +70079,41 @@ exports.SucceedIdentityAttributeRequest = {
70025
70079
  "@version": {
70026
70080
  "type": "string"
70027
70081
  },
70028
- "value": {
70082
+ "recipient": {
70029
70083
  "type": "string"
70030
70084
  },
70031
- "schemaURL": {
70085
+ "boxId": {
70086
+ "type": "string"
70087
+ },
70088
+ "zipCode": {
70089
+ "type": "string"
70090
+ },
70091
+ "city": {
70092
+ "type": "string"
70093
+ },
70094
+ "country": {
70095
+ "type": "string"
70096
+ },
70097
+ "state": {
70032
70098
  "type": "string"
70033
70099
  }
70034
70100
  },
70035
70101
  "required": [
70036
70102
  "@type",
70037
- "value"
70103
+ "boxId",
70104
+ "city",
70105
+ "country",
70106
+ "recipient",
70107
+ "zipCode"
70038
70108
  ],
70039
70109
  "additionalProperties": false
70040
70110
  },
70041
- "StateJSON": {
70111
+ "PseudonymJSON": {
70042
70112
  "type": "object",
70043
70113
  "properties": {
70044
70114
  "@type": {
70045
70115
  "type": "string",
70046
- "const": "State"
70116
+ "const": "Pseudonym"
70047
70117
  },
70048
70118
  "@context": {
70049
70119
  "type": "string"
@@ -70061,12 +70131,12 @@ exports.SucceedIdentityAttributeRequest = {
70061
70131
  ],
70062
70132
  "additionalProperties": false
70063
70133
  },
70064
- "StreetJSON": {
70134
+ "SexJSON": {
70065
70135
  "type": "object",
70066
70136
  "properties": {
70067
70137
  "@type": {
70068
70138
  "type": "string",
70069
- "const": "Street"
70139
+ "const": "Sex"
70070
70140
  },
70071
70141
  "@context": {
70072
70142
  "type": "string"
@@ -70084,12 +70154,12 @@ exports.SucceedIdentityAttributeRequest = {
70084
70154
  ],
70085
70155
  "additionalProperties": false
70086
70156
  },
70087
- "SurnameJSON": {
70157
+ "StreetAddressJSON": {
70088
70158
  "type": "object",
70089
70159
  "properties": {
70090
70160
  "@type": {
70091
70161
  "type": "string",
70092
- "const": "Surname"
70162
+ "const": "StreetAddress"
70093
70163
  },
70094
70164
  "@context": {
70095
70165
  "type": "string"
@@ -70097,22 +70167,45 @@ exports.SucceedIdentityAttributeRequest = {
70097
70167
  "@version": {
70098
70168
  "type": "string"
70099
70169
  },
70100
- "value": {
70170
+ "recipient": {
70171
+ "type": "string"
70172
+ },
70173
+ "street": {
70174
+ "type": "string"
70175
+ },
70176
+ "houseNo": {
70177
+ "type": "string"
70178
+ },
70179
+ "zipCode": {
70180
+ "type": "string"
70181
+ },
70182
+ "city": {
70183
+ "type": "string"
70184
+ },
70185
+ "country": {
70186
+ "type": "string"
70187
+ },
70188
+ "state": {
70101
70189
  "type": "string"
70102
70190
  }
70103
70191
  },
70104
70192
  "required": [
70105
70193
  "@type",
70106
- "value"
70194
+ "city",
70195
+ "country",
70196
+ "houseNo",
70197
+ "recipient",
70198
+ "street",
70199
+ "zipCode"
70107
70200
  ],
70108
70201
  "additionalProperties": false
70109
70202
  },
70110
- "ZipCodeJSON": {
70203
+ "WebsiteJSON": {
70111
70204
  "type": "object",
70112
70205
  "properties": {
70113
70206
  "@type": {
70114
70207
  "type": "string",
70115
- "const": "ZipCode"
70208
+ "const": "Website"
70116
70209
  },
70117
70210
  "@context": {
70118
70211
  "type": "string"
@@ -70130,104 +70223,79 @@ exports.SucceedIdentityAttributeRequest = {
70130
70223
  ],
70131
70224
  "additionalProperties": false
70132
70225
  },
70133
- "ISO8601DateTimeString": {
70134
- "type": "string",
70135
- "errorMessage": "must match ISO8601 datetime format",
70136
- "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
70137
- }
70138
- }
70139
- };
70140
- exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70141
- "$schema": "http://json-schema.org/draft-07/schema#",
70142
- "$ref": "#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",
70143
- "definitions": {
70144
- "SucceedRelationshipAttributeAndNotifyPeerRequest": {
70145
- "type": "object",
70146
- "properties": {
70147
- "predecessorId": {
70148
- "$ref": "#/definitions/AttributeIdString"
70149
- },
70150
- "successorContent": {
70151
- "type": "object",
70152
- "properties": {
70153
- "value": {
70154
- "$ref": "#/definitions/AttributeValues.Relationship.Json"
70155
- },
70156
- "validFrom": {
70157
- "$ref": "#/definitions/ISO8601DateTimeString"
70158
- },
70159
- "validTo": {
70160
- "$ref": "#/definitions/ISO8601DateTimeString"
70161
- }
70162
- },
70163
- "required": [
70164
- "value"
70165
- ],
70166
- "additionalProperties": false
70167
- }
70168
- },
70169
- "required": [
70170
- "predecessorId",
70171
- "successorContent"
70172
- ],
70173
- "additionalProperties": false
70174
- },
70175
- "AttributeIdString": {
70176
- "type": "string",
70177
- "pattern": "ATT[A-Za-z0-9]{17}"
70178
- },
70179
- "AttributeValues.Relationship.Json": {
70226
+ "AttributeValues.Identity.Uneditable.Json": {
70180
70227
  "anyOf": [
70181
70228
  {
70182
- "$ref": "#/definitions/ProprietaryBooleanJSON"
70229
+ "$ref": "#/definitions/AffiliationOrganizationJSON"
70183
70230
  },
70184
70231
  {
70185
- "$ref": "#/definitions/ProprietaryCountryJSON"
70232
+ "$ref": "#/definitions/AffiliationRoleJSON"
70186
70233
  },
70187
70234
  {
70188
- "$ref": "#/definitions/ProprietaryEMailAddressJSON"
70235
+ "$ref": "#/definitions/AffiliationUnitJSON"
70189
70236
  },
70190
70237
  {
70191
- "$ref": "#/definitions/ProprietaryFileReferenceJSON"
70238
+ "$ref": "#/definitions/BirthCityJSON"
70192
70239
  },
70193
70240
  {
70194
- "$ref": "#/definitions/ProprietaryFloatJSON"
70241
+ "$ref": "#/definitions/BirthCountryJSON"
70195
70242
  },
70196
70243
  {
70197
- "$ref": "#/definitions/ProprietaryHEXColorJSON"
70244
+ "$ref": "#/definitions/BirthDayJSON"
70198
70245
  },
70199
70246
  {
70200
- "$ref": "#/definitions/ProprietaryIntegerJSON"
70247
+ "$ref": "#/definitions/BirthMonthJSON"
70201
70248
  },
70202
70249
  {
70203
- "$ref": "#/definitions/ProprietaryLanguageJSON"
70250
+ "$ref": "#/definitions/BirthStateJSON"
70204
70251
  },
70205
70252
  {
70206
- "$ref": "#/definitions/ProprietaryPhoneNumberJSON"
70253
+ "$ref": "#/definitions/BirthYearJSON"
70207
70254
  },
70208
70255
  {
70209
- "$ref": "#/definitions/ProprietaryStringJSON"
70256
+ "$ref": "#/definitions/CityJSON"
70210
70257
  },
70211
70258
  {
70212
- "$ref": "#/definitions/ProprietaryURLJSON"
70259
+ "$ref": "#/definitions/CountryJSON"
70213
70260
  },
70214
70261
  {
70215
- "$ref": "#/definitions/ProprietaryJSONJSON"
70262
+ "$ref": "#/definitions/GivenNameJSON"
70216
70263
  },
70217
70264
  {
70218
- "$ref": "#/definitions/ProprietaryXMLJSON"
70265
+ "$ref": "#/definitions/HonorificPrefixJSON"
70219
70266
  },
70220
70267
  {
70221
- "$ref": "#/definitions/ConsentJSON"
70268
+ "$ref": "#/definitions/HonorificSuffixJSON"
70269
+ },
70270
+ {
70271
+ "$ref": "#/definitions/HouseNumberJSON"
70272
+ },
70273
+ {
70274
+ "$ref": "#/definitions/MiddleNameJSON"
70275
+ },
70276
+ {
70277
+ "$ref": "#/definitions/SchematizedXMLJSON"
70278
+ },
70279
+ {
70280
+ "$ref": "#/definitions/StateJSON"
70281
+ },
70282
+ {
70283
+ "$ref": "#/definitions/StreetJSON"
70284
+ },
70285
+ {
70286
+ "$ref": "#/definitions/SurnameJSON"
70287
+ },
70288
+ {
70289
+ "$ref": "#/definitions/ZipCodeJSON"
70222
70290
  }
70223
70291
  ]
70224
70292
  },
70225
- "ProprietaryBooleanJSON": {
70293
+ "AffiliationOrganizationJSON": {
70226
70294
  "type": "object",
70227
70295
  "properties": {
70228
70296
  "@type": {
70229
70297
  "type": "string",
70230
- "const": "ProprietaryBoolean"
70298
+ "const": "AffiliationOrganization"
70231
70299
  },
70232
70300
  "@context": {
70233
70301
  "type": "string"
@@ -70236,98 +70304,113 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70236
70304
  "type": "string"
70237
70305
  },
70238
70306
  "value": {
70239
- "type": "boolean"
70307
+ "type": "string"
70308
+ }
70309
+ },
70310
+ "required": [
70311
+ "@type",
70312
+ "value"
70313
+ ],
70314
+ "additionalProperties": false
70315
+ },
70316
+ "AffiliationRoleJSON": {
70317
+ "type": "object",
70318
+ "properties": {
70319
+ "@type": {
70320
+ "type": "string",
70321
+ "const": "AffiliationRole"
70240
70322
  },
70241
- "title": {
70323
+ "@context": {
70242
70324
  "type": "string"
70243
70325
  },
70244
- "description": {
70326
+ "@version": {
70245
70327
  "type": "string"
70246
70328
  },
70247
- "valueHintsOverride": {
70248
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70329
+ "value": {
70330
+ "type": "string"
70249
70331
  }
70250
70332
  },
70251
70333
  "required": [
70252
70334
  "@type",
70253
- "title",
70254
70335
  "value"
70255
70336
  ],
70256
70337
  "additionalProperties": false
70257
70338
  },
70258
- "ValueHintsOverrideJSON": {
70339
+ "AffiliationUnitJSON": {
70259
70340
  "type": "object",
70260
- "additionalProperties": false,
70261
70341
  "properties": {
70262
70342
  "@type": {
70263
70343
  "type": "string",
70264
- "const": "ValueHints"
70344
+ "const": "AffiliationUnit"
70265
70345
  },
70266
- "editHelp": {
70346
+ "@context": {
70267
70347
  "type": "string"
70268
70348
  },
70269
- "min": {
70270
- "type": "number"
70271
- },
70272
- "max": {
70273
- "type": "number"
70274
- },
70275
- "pattern": {
70349
+ "@version": {
70276
70350
  "type": "string"
70277
70351
  },
70278
- "values": {
70279
- "type": "array",
70280
- "items": {
70281
- "$ref": "#/definitions/ValueHintsValueJSON"
70282
- }
70283
- },
70284
- "defaultValue": {
70285
- "type": [
70286
- "string",
70287
- "number",
70288
- "boolean"
70289
- ]
70290
- },
70291
- "propertyHints": {
70292
- "type": "object",
70293
- "additionalProperties": {
70294
- "$ref": "#/definitions/ValueHintsJSON"
70295
- }
70352
+ "value": {
70353
+ "type": "string"
70354
+ }
70355
+ },
70356
+ "required": [
70357
+ "@type",
70358
+ "value"
70359
+ ],
70360
+ "additionalProperties": false
70361
+ },
70362
+ "BirthCityJSON": {
70363
+ "type": "object",
70364
+ "properties": {
70365
+ "value": {
70366
+ "type": "string"
70296
70367
  },
70297
70368
  "@context": {
70298
70369
  "type": "string"
70299
70370
  },
70300
70371
  "@version": {
70301
70372
  "type": "string"
70373
+ },
70374
+ "@type": {
70375
+ "type": "string",
70376
+ "const": "BirthCity"
70302
70377
  }
70303
- }
70378
+ },
70379
+ "required": [
70380
+ "@type",
70381
+ "value"
70382
+ ],
70383
+ "additionalProperties": false
70304
70384
  },
70305
- "ValueHintsValueJSON": {
70385
+ "BirthCountryJSON": {
70306
70386
  "type": "object",
70307
70387
  "properties": {
70308
- "key": {
70309
- "type": [
70310
- "string",
70311
- "number",
70312
- "boolean"
70313
- ]
70388
+ "value": {
70389
+ "type": "string"
70314
70390
  },
70315
- "displayName": {
70391
+ "@context": {
70392
+ "type": "string"
70393
+ },
70394
+ "@version": {
70316
70395
  "type": "string"
70396
+ },
70397
+ "@type": {
70398
+ "type": "string",
70399
+ "const": "BirthCountry"
70317
70400
  }
70318
70401
  },
70319
70402
  "required": [
70320
- "key",
70321
- "displayName"
70403
+ "@type",
70404
+ "value"
70322
70405
  ],
70323
70406
  "additionalProperties": false
70324
70407
  },
70325
- "ValueHintsJSON": {
70408
+ "BirthDayJSON": {
70326
70409
  "type": "object",
70327
70410
  "properties": {
70328
70411
  "@type": {
70329
70412
  "type": "string",
70330
- "const": "ValueHints"
70413
+ "const": "BirthDay"
70331
70414
  },
70332
70415
  "@context": {
70333
70416
  "type": "string"
@@ -70335,49 +70418,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70335
70418
  "@version": {
70336
70419
  "type": "string"
70337
70420
  },
70338
- "editHelp": {
70339
- "type": "string"
70340
- },
70341
- "min": {
70342
- "type": "number"
70343
- },
70344
- "max": {
70421
+ "value": {
70345
70422
  "type": "number"
70346
- },
70347
- "pattern": {
70348
- "type": "string"
70349
- },
70350
- "values": {
70351
- "type": "array",
70352
- "items": {
70353
- "$ref": "#/definitions/ValueHintsValueJSON"
70354
- }
70355
- },
70356
- "defaultValue": {
70357
- "type": [
70358
- "string",
70359
- "number",
70360
- "boolean"
70361
- ]
70362
- },
70363
- "propertyHints": {
70364
- "type": "object",
70365
- "additionalProperties": {
70366
- "$ref": "#/definitions/ValueHintsJSON"
70367
- }
70368
70423
  }
70369
70424
  },
70370
70425
  "required": [
70371
- "@type"
70426
+ "@type",
70427
+ "value"
70372
70428
  ],
70373
70429
  "additionalProperties": false
70374
70430
  },
70375
- "ProprietaryCountryJSON": {
70431
+ "BirthMonthJSON": {
70376
70432
  "type": "object",
70377
70433
  "properties": {
70378
70434
  "@type": {
70379
70435
  "type": "string",
70380
- "const": "ProprietaryCountry"
70436
+ "const": "BirthMonth"
70381
70437
  },
70382
70438
  "@context": {
70383
70439
  "type": "string"
@@ -70385,32 +70441,60 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70385
70441
  "@version": {
70386
70442
  "type": "string"
70387
70443
  },
70444
+ "value": {
70445
+ "type": "number",
70446
+ "enum": [
70447
+ 1,
70448
+ 2,
70449
+ 3,
70450
+ 4,
70451
+ 5,
70452
+ 6,
70453
+ 7,
70454
+ 8,
70455
+ 9,
70456
+ 10,
70457
+ 11,
70458
+ 12
70459
+ ],
70460
+ "description": "Month values: 1 (january) - 12 (december)"
70461
+ }
70462
+ },
70463
+ "required": [
70464
+ "@type",
70465
+ "value"
70466
+ ],
70467
+ "additionalProperties": false
70468
+ },
70469
+ "BirthStateJSON": {
70470
+ "type": "object",
70471
+ "properties": {
70388
70472
  "value": {
70389
70473
  "type": "string"
70390
70474
  },
70391
- "title": {
70475
+ "@context": {
70392
70476
  "type": "string"
70393
70477
  },
70394
- "description": {
70478
+ "@version": {
70395
70479
  "type": "string"
70396
70480
  },
70397
- "valueHintsOverride": {
70398
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70481
+ "@type": {
70482
+ "type": "string",
70483
+ "const": "BirthState"
70399
70484
  }
70400
70485
  },
70401
70486
  "required": [
70402
70487
  "@type",
70403
- "title",
70404
70488
  "value"
70405
70489
  ],
70406
70490
  "additionalProperties": false
70407
70491
  },
70408
- "ProprietaryEMailAddressJSON": {
70492
+ "BirthYearJSON": {
70409
70493
  "type": "object",
70410
70494
  "properties": {
70411
70495
  "@type": {
70412
70496
  "type": "string",
70413
- "const": "ProprietaryEMailAddress"
70497
+ "const": "BirthYear"
70414
70498
  },
70415
70499
  "@context": {
70416
70500
  "type": "string"
@@ -70419,31 +70503,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70419
70503
  "type": "string"
70420
70504
  },
70421
70505
  "value": {
70422
- "type": "string"
70423
- },
70424
- "title": {
70425
- "type": "string"
70426
- },
70427
- "description": {
70428
- "type": "string"
70429
- },
70430
- "valueHintsOverride": {
70431
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70506
+ "type": "number"
70432
70507
  }
70433
70508
  },
70434
70509
  "required": [
70435
70510
  "@type",
70436
- "title",
70437
70511
  "value"
70438
70512
  ],
70439
70513
  "additionalProperties": false
70440
70514
  },
70441
- "ProprietaryFileReferenceJSON": {
70515
+ "CityJSON": {
70442
70516
  "type": "object",
70443
70517
  "properties": {
70444
70518
  "@type": {
70445
70519
  "type": "string",
70446
- "const": "ProprietaryFileReference"
70520
+ "const": "City"
70447
70521
  },
70448
70522
  "@context": {
70449
70523
  "type": "string"
@@ -70453,30 +70527,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70453
70527
  },
70454
70528
  "value": {
70455
70529
  "type": "string"
70456
- },
70457
- "title": {
70458
- "type": "string"
70459
- },
70460
- "description": {
70461
- "type": "string"
70462
- },
70463
- "valueHintsOverride": {
70464
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70465
70530
  }
70466
70531
  },
70467
70532
  "required": [
70468
70533
  "@type",
70469
- "title",
70470
70534
  "value"
70471
70535
  ],
70472
70536
  "additionalProperties": false
70473
70537
  },
70474
- "ProprietaryFloatJSON": {
70538
+ "CountryJSON": {
70475
70539
  "type": "object",
70476
70540
  "properties": {
70477
70541
  "@type": {
70478
70542
  "type": "string",
70479
- "const": "ProprietaryFloat"
70543
+ "const": "Country"
70480
70544
  },
70481
70545
  "@context": {
70482
70546
  "type": "string"
@@ -70485,31 +70549,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70485
70549
  "type": "string"
70486
70550
  },
70487
70551
  "value": {
70488
- "type": "number"
70489
- },
70490
- "title": {
70491
- "type": "string"
70492
- },
70493
- "description": {
70494
70552
  "type": "string"
70495
- },
70496
- "valueHintsOverride": {
70497
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70498
70553
  }
70499
70554
  },
70500
70555
  "required": [
70501
70556
  "@type",
70502
- "title",
70503
70557
  "value"
70504
70558
  ],
70505
70559
  "additionalProperties": false
70506
70560
  },
70507
- "ProprietaryHEXColorJSON": {
70561
+ "GivenNameJSON": {
70508
70562
  "type": "object",
70509
70563
  "properties": {
70510
70564
  "@type": {
70511
70565
  "type": "string",
70512
- "const": "ProprietaryHEXColor"
70566
+ "const": "GivenName"
70513
70567
  },
70514
70568
  "@context": {
70515
70569
  "type": "string"
@@ -70519,30 +70573,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70519
70573
  },
70520
70574
  "value": {
70521
70575
  "type": "string"
70522
- },
70523
- "title": {
70524
- "type": "string"
70525
- },
70526
- "description": {
70527
- "type": "string"
70528
- },
70529
- "valueHintsOverride": {
70530
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70531
70576
  }
70532
70577
  },
70533
70578
  "required": [
70534
70579
  "@type",
70535
- "title",
70536
70580
  "value"
70537
70581
  ],
70538
70582
  "additionalProperties": false
70539
70583
  },
70540
- "ProprietaryIntegerJSON": {
70584
+ "HonorificPrefixJSON": {
70541
70585
  "type": "object",
70542
70586
  "properties": {
70543
70587
  "@type": {
70544
70588
  "type": "string",
70545
- "const": "ProprietaryInteger"
70589
+ "const": "HonorificPrefix"
70546
70590
  },
70547
70591
  "@context": {
70548
70592
  "type": "string"
@@ -70551,31 +70595,21 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70551
70595
  "type": "string"
70552
70596
  },
70553
70597
  "value": {
70554
- "type": "number"
70555
- },
70556
- "title": {
70557
- "type": "string"
70558
- },
70559
- "description": {
70560
70598
  "type": "string"
70561
- },
70562
- "valueHintsOverride": {
70563
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70564
70599
  }
70565
70600
  },
70566
70601
  "required": [
70567
70602
  "@type",
70568
- "title",
70569
70603
  "value"
70570
70604
  ],
70571
70605
  "additionalProperties": false
70572
70606
  },
70573
- "ProprietaryLanguageJSON": {
70607
+ "HonorificSuffixJSON": {
70574
70608
  "type": "object",
70575
70609
  "properties": {
70576
70610
  "@type": {
70577
70611
  "type": "string",
70578
- "const": "ProprietaryLanguage"
70612
+ "const": "HonorificSuffix"
70579
70613
  },
70580
70614
  "@context": {
70581
70615
  "type": "string"
@@ -70585,30 +70619,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70585
70619
  },
70586
70620
  "value": {
70587
70621
  "type": "string"
70588
- },
70589
- "title": {
70590
- "type": "string"
70591
- },
70592
- "description": {
70593
- "type": "string"
70594
- },
70595
- "valueHintsOverride": {
70596
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70597
70622
  }
70598
70623
  },
70599
70624
  "required": [
70600
70625
  "@type",
70601
- "title",
70602
70626
  "value"
70603
70627
  ],
70604
70628
  "additionalProperties": false
70605
70629
  },
70606
- "ProprietaryPhoneNumberJSON": {
70630
+ "HouseNumberJSON": {
70607
70631
  "type": "object",
70608
70632
  "properties": {
70609
70633
  "@type": {
70610
70634
  "type": "string",
70611
- "const": "ProprietaryPhoneNumber"
70635
+ "const": "HouseNumber"
70612
70636
  },
70613
70637
  "@context": {
70614
70638
  "type": "string"
@@ -70618,30 +70642,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70618
70642
  },
70619
70643
  "value": {
70620
70644
  "type": "string"
70621
- },
70622
- "title": {
70623
- "type": "string"
70624
- },
70625
- "description": {
70626
- "type": "string"
70627
- },
70628
- "valueHintsOverride": {
70629
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70630
70645
  }
70631
70646
  },
70632
70647
  "required": [
70633
70648
  "@type",
70634
- "title",
70635
70649
  "value"
70636
70650
  ],
70637
70651
  "additionalProperties": false
70638
70652
  },
70639
- "ProprietaryStringJSON": {
70653
+ "MiddleNameJSON": {
70640
70654
  "type": "object",
70641
70655
  "properties": {
70642
70656
  "@type": {
70643
70657
  "type": "string",
70644
- "const": "ProprietaryString"
70658
+ "const": "MiddleName"
70645
70659
  },
70646
70660
  "@context": {
70647
70661
  "type": "string"
@@ -70651,30 +70665,20 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70651
70665
  },
70652
70666
  "value": {
70653
70667
  "type": "string"
70654
- },
70655
- "title": {
70656
- "type": "string"
70657
- },
70658
- "description": {
70659
- "type": "string"
70660
- },
70661
- "valueHintsOverride": {
70662
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70663
70668
  }
70664
70669
  },
70665
70670
  "required": [
70666
70671
  "@type",
70667
- "title",
70668
70672
  "value"
70669
70673
  ],
70670
70674
  "additionalProperties": false
70671
70675
  },
70672
- "ProprietaryURLJSON": {
70676
+ "SchematizedXMLJSON": {
70673
70677
  "type": "object",
70674
70678
  "properties": {
70675
70679
  "@type": {
70676
70680
  "type": "string",
70677
- "const": "ProprietaryURL"
70681
+ "const": "SchematizedXML"
70678
70682
  },
70679
70683
  "@context": {
70680
70684
  "type": "string"
@@ -70685,29 +70689,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70685
70689
  "value": {
70686
70690
  "type": "string"
70687
70691
  },
70688
- "title": {
70689
- "type": "string"
70690
- },
70691
- "description": {
70692
+ "schemaURL": {
70692
70693
  "type": "string"
70693
- },
70694
- "valueHintsOverride": {
70695
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70696
70694
  }
70697
70695
  },
70698
70696
  "required": [
70699
70697
  "@type",
70700
- "title",
70701
70698
  "value"
70702
70699
  ],
70703
70700
  "additionalProperties": false
70704
70701
  },
70705
- "ProprietaryJSONJSON": {
70702
+ "StateJSON": {
70706
70703
  "type": "object",
70707
70704
  "properties": {
70708
70705
  "@type": {
70709
70706
  "type": "string",
70710
- "const": "ProprietaryJSON"
70707
+ "const": "State"
70711
70708
  },
70712
70709
  "@context": {
70713
70710
  "type": "string"
@@ -70715,27 +70712,22 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70715
70712
  "@version": {
70716
70713
  "type": "string"
70717
70714
  },
70718
- "title": {
70719
- "type": "string"
70720
- },
70721
- "description": {
70715
+ "value": {
70722
70716
  "type": "string"
70723
- },
70724
- "value": {}
70717
+ }
70725
70718
  },
70726
70719
  "required": [
70727
70720
  "@type",
70728
- "title",
70729
70721
  "value"
70730
70722
  ],
70731
70723
  "additionalProperties": false
70732
70724
  },
70733
- "ProprietaryXMLJSON": {
70725
+ "StreetJSON": {
70734
70726
  "type": "object",
70735
70727
  "properties": {
70736
70728
  "@type": {
70737
70729
  "type": "string",
70738
- "const": "ProprietaryXML"
70730
+ "const": "Street"
70739
70731
  },
70740
70732
  "@context": {
70741
70733
  "type": "string"
@@ -70745,32 +70737,43 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70745
70737
  },
70746
70738
  "value": {
70747
70739
  "type": "string"
70740
+ }
70741
+ },
70742
+ "required": [
70743
+ "@type",
70744
+ "value"
70745
+ ],
70746
+ "additionalProperties": false
70747
+ },
70748
+ "SurnameJSON": {
70749
+ "type": "object",
70750
+ "properties": {
70751
+ "@type": {
70752
+ "type": "string",
70753
+ "const": "Surname"
70748
70754
  },
70749
- "title": {
70755
+ "@context": {
70750
70756
  "type": "string"
70751
70757
  },
70752
- "description": {
70758
+ "@version": {
70753
70759
  "type": "string"
70754
70760
  },
70755
- "valueHintsOverride": {
70756
- "$ref": "#/definitions/ValueHintsOverrideJSON"
70757
- },
70758
- "schemaURL": {
70761
+ "value": {
70759
70762
  "type": "string"
70760
70763
  }
70761
70764
  },
70762
70765
  "required": [
70763
70766
  "@type",
70764
- "title",
70765
70767
  "value"
70766
70768
  ],
70767
70769
  "additionalProperties": false
70768
70770
  },
70769
- "ConsentJSON": {
70771
+ "ZipCodeJSON": {
70770
70772
  "type": "object",
70771
70773
  "properties": {
70772
70774
  "@type": {
70773
- "type": "string"
70775
+ "type": "string",
70776
+ "const": "ZipCode"
70774
70777
  },
70775
70778
  "@context": {
70776
70779
  "type": "string"
@@ -70778,16 +70781,13 @@ exports.SucceedRelationshipAttributeAndNotifyPeerRequest = {
70778
70781
  "@version": {
70779
70782
  "type": "string"
70780
70783
  },
70781
- "consent": {
70782
- "type": "string"
70783
- },
70784
- "link": {
70784
+ "value": {
70785
70785
  "type": "string"
70786
70786
  }
70787
70787
  },
70788
70788
  "required": [
70789
70789
  "@type",
70790
- "consent"
70790
+ "value"
70791
70791
  ],
70792
70792
  "additionalProperties": false
70793
70793
  },
@@ -74104,10 +74104,10 @@ exports.CreateAndShareRelationshipAttributeUseCase = CreateAndShareRelationshipA
74104
74104
 
74105
74105
  /***/ }),
74106
74106
 
74107
- /***/ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js":
74108
- /*!*************************************************************************!*\
74109
- !*** ./dist/useCases/consumption/attributes/CreateIdentityAttribute.js ***!
74110
- \*************************************************************************/
74107
+ /***/ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js":
74108
+ /*!***************************************************************************!*\
74109
+ !*** ./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js ***!
74110
+ \***************************************************************************/
74111
74111
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74112
74112
 
74113
74113
  "use strict";
@@ -74125,7 +74125,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74125
74125
  return function (target, key) { decorator(target, key, paramIndex); }
74126
74126
  };
74127
74127
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74128
- exports.CreateIdentityAttributeUseCase = void 0;
74128
+ exports.CreateRepositoryAttributeUseCase = void 0;
74129
74129
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74130
74130
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74131
74131
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74134,14 +74134,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74134
74134
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74135
74135
  let Validator = class Validator extends common_1.SchemaValidator {
74136
74136
  constructor(schemaRepository) {
74137
- super(schemaRepository.getSchema("CreateIdentityAttributeRequest"));
74137
+ super(schemaRepository.getSchema("CreateRepositoryAttributeRequest"));
74138
74138
  }
74139
74139
  };
74140
74140
  Validator = __decorate([
74141
74141
  __param(0, typescript_ioc_1.Inject),
74142
74142
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74143
74143
  ], Validator);
74144
- let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extends common_1.UseCase {
74144
+ let CreateRepositoryAttributeUseCase = class CreateRepositoryAttributeUseCase extends common_1.UseCase {
74145
74145
  constructor(attributeController, accountController, validator) {
74146
74146
  super(validator);
74147
74147
  this.attributeController = attributeController;
@@ -74160,16 +74160,16 @@ let CreateIdentityAttributeUseCase = class CreateIdentityAttributeUseCase extend
74160
74160
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(createdAttribute));
74161
74161
  }
74162
74162
  };
74163
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase;
74164
- exports.CreateIdentityAttributeUseCase = CreateIdentityAttributeUseCase = __decorate([
74163
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase;
74164
+ exports.CreateRepositoryAttributeUseCase = CreateRepositoryAttributeUseCase = __decorate([
74165
74165
  __param(0, typescript_ioc_1.Inject),
74166
74166
  __param(1, typescript_ioc_1.Inject),
74167
74167
  __param(2, typescript_ioc_1.Inject),
74168
74168
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74169
74169
  transport_1.AccountController,
74170
74170
  Validator])
74171
- ], CreateIdentityAttributeUseCase);
74172
- //# sourceMappingURL=CreateIdentityAttribute.js.map
74171
+ ], CreateRepositoryAttributeUseCase);
74172
+ //# sourceMappingURL=CreateRepositoryAttribute.js.map
74173
74173
 
74174
74174
  /***/ }),
74175
74175
 
@@ -74598,10 +74598,10 @@ exports.GetAttributesUseCase = GetAttributesUseCase = GetAttributesUseCase_1 = _
74598
74598
 
74599
74599
  /***/ }),
74600
74600
 
74601
- /***/ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js":
74602
- /*!**************************************************************************!*\
74603
- !*** ./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js ***!
74604
- \**************************************************************************/
74601
+ /***/ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js":
74602
+ /*!************************************************************************!*\
74603
+ !*** ./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js ***!
74604
+ \************************************************************************/
74605
74605
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74606
74606
 
74607
74607
  "use strict";
@@ -74619,52 +74619,60 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74619
74619
  return function (target, key) { decorator(target, key, paramIndex); }
74620
74620
  };
74621
74621
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74622
- exports.GetOwnIdentityAttributesUseCase = void 0;
74622
+ exports.GetOwnSharedAttributesUseCase = void 0;
74623
74623
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74624
74624
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74625
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
74625
74626
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74626
74627
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74627
- const consumption_2 = __webpack_require__(/*! ../../consumption */ "./dist/useCases/consumption/index.js");
74628
+ const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
74629
+ const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74630
+ const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74628
74631
  let Validator = class Validator extends common_1.SchemaValidator {
74629
74632
  constructor(schemaRepository) {
74630
- super(schemaRepository.getSchema("GetOwnIdentityAttributesRequest"));
74633
+ super(schemaRepository.getSchema("GetOwnSharedAttributesRequest"));
74631
74634
  }
74632
74635
  };
74633
74636
  Validator = __decorate([
74634
74637
  __param(0, typescript_ioc_1.Inject),
74635
74638
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74636
74639
  ], Validator);
74637
- let GetOwnIdentityAttributesUseCase = class GetOwnIdentityAttributesUseCase extends common_1.UseCase {
74638
- constructor(attributesController, validator) {
74640
+ let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends common_1.UseCase {
74641
+ constructor(attributeController, identityController, validator) {
74639
74642
  super(validator);
74640
- this.attributesController = attributesController;
74643
+ this.attributeController = attributeController;
74644
+ this.identityController = identityController;
74641
74645
  }
74642
74646
  async executeInternal(request) {
74643
- const query = {
74644
- shareInfo: { $exists: false }
74645
- };
74646
- if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74647
- query["succeededBy"] = { $exists: false };
74647
+ const query = request.query ?? {};
74648
+ query["content.owner"] = this.identityController.address.toString();
74649
+ query["shareInfo.peer"] = request.peer;
74650
+ const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74651
+ const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74652
+ if (request.onlyLatestVersions ?? true) {
74653
+ dbQuery["succeededBy"] = { $exists: false };
74648
74654
  }
74649
- const attributes = await this.attributesController.getLocalAttributes(query);
74650
- return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));
74655
+ const attributes = await this.attributeController.getLocalAttributes(dbQuery, request.hideTechnical, request.onlyValid);
74656
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74651
74657
  }
74652
74658
  };
74653
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase;
74654
- exports.GetOwnIdentityAttributesUseCase = GetOwnIdentityAttributesUseCase = __decorate([
74659
+ exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase;
74660
+ exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase = __decorate([
74655
74661
  __param(0, typescript_ioc_1.Inject),
74656
74662
  __param(1, typescript_ioc_1.Inject),
74663
+ __param(2, typescript_ioc_1.Inject),
74657
74664
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74665
+ transport_1.IdentityController,
74658
74666
  Validator])
74659
- ], GetOwnIdentityAttributesUseCase);
74660
- //# sourceMappingURL=GetOwnIdentityAttributes.js.map
74667
+ ], GetOwnSharedAttributesUseCase);
74668
+ //# sourceMappingURL=GetOwnSharedAttributes.js.map
74661
74669
 
74662
74670
  /***/ }),
74663
74671
 
74664
- /***/ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js":
74665
- /*!************************************************************************!*\
74666
- !*** ./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js ***!
74667
- \************************************************************************/
74672
+ /***/ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js":
74673
+ /*!*************************************************************************!*\
74674
+ !*** ./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js ***!
74675
+ \*************************************************************************/
74668
74676
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74669
74677
 
74670
74678
  "use strict";
@@ -74682,10 +74690,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74682
74690
  return function (target, key) { decorator(target, key, paramIndex); }
74683
74691
  };
74684
74692
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74685
- exports.GetOwnSharedAttributesUseCase = void 0;
74693
+ exports.GetPeerSharedAttributesUseCase = void 0;
74686
74694
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74687
74695
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74688
- const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
74689
74696
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74690
74697
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74691
74698
  const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
@@ -74693,23 +74700,21 @@ const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/u
74693
74700
  const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74694
74701
  let Validator = class Validator extends common_1.SchemaValidator {
74695
74702
  constructor(schemaRepository) {
74696
- super(schemaRepository.getSchema("GetOwnSharedAttributesRequest"));
74703
+ super(schemaRepository.getSchema("GetPeerSharedAttributesRequest"));
74697
74704
  }
74698
74705
  };
74699
74706
  Validator = __decorate([
74700
74707
  __param(0, typescript_ioc_1.Inject),
74701
74708
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74702
74709
  ], Validator);
74703
- let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends common_1.UseCase {
74704
- constructor(attributeController, identityController, validator) {
74710
+ let GetPeerSharedAttributesUseCase = class GetPeerSharedAttributesUseCase extends common_1.UseCase {
74711
+ constructor(attributeController, validator) {
74705
74712
  super(validator);
74706
74713
  this.attributeController = attributeController;
74707
- this.identityController = identityController;
74708
74714
  }
74709
74715
  async executeInternal(request) {
74710
74716
  const query = request.query ?? {};
74711
- query["content.owner"] = this.identityController.address.toString();
74712
- query["shareInfo.peer"] = request.peer;
74717
+ query["content.owner"] = request.peer;
74713
74718
  const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74714
74719
  const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74715
74720
  if (request.onlyLatestVersions ?? true) {
@@ -74719,22 +74724,20 @@ let GetOwnSharedAttributesUseCase = class GetOwnSharedAttributesUseCase extends
74719
74724
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74720
74725
  }
74721
74726
  };
74722
- exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase;
74723
- exports.GetOwnSharedAttributesUseCase = GetOwnSharedAttributesUseCase = __decorate([
74727
+ exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase;
74728
+ exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase = __decorate([
74724
74729
  __param(0, typescript_ioc_1.Inject),
74725
74730
  __param(1, typescript_ioc_1.Inject),
74726
- __param(2, typescript_ioc_1.Inject),
74727
74731
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74728
- transport_1.IdentityController,
74729
74732
  Validator])
74730
- ], GetOwnSharedAttributesUseCase);
74731
- //# sourceMappingURL=GetOwnSharedAttributes.js.map
74733
+ ], GetPeerSharedAttributesUseCase);
74734
+ //# sourceMappingURL=GetPeerSharedAttributes.js.map
74732
74735
 
74733
74736
  /***/ }),
74734
74737
 
74735
- /***/ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js":
74738
+ /***/ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js":
74736
74739
  /*!*************************************************************************!*\
74737
- !*** ./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js ***!
74740
+ !*** ./dist/useCases/consumption/attributes/GetRepositoryAttributes.js ***!
74738
74741
  \*************************************************************************/
74739
74742
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74740
74743
 
@@ -74753,55 +74756,52 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74753
74756
  return function (target, key) { decorator(target, key, paramIndex); }
74754
74757
  };
74755
74758
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74756
- exports.GetPeerSharedAttributesUseCase = void 0;
74759
+ exports.GetRepositoryAttributesUseCase = void 0;
74757
74760
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74758
74761
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74759
74762
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
74763
+ const __1 = __webpack_require__(/*! .. */ "./dist/useCases/consumption/index.js");
74760
74764
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
74761
- const flattenObject_1 = __webpack_require__(/*! ../../common/flattenObject */ "./dist/useCases/common/flattenObject.js");
74762
- const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74763
- const GetAttributes_1 = __webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js");
74764
74765
  let Validator = class Validator extends common_1.SchemaValidator {
74765
74766
  constructor(schemaRepository) {
74766
- super(schemaRepository.getSchema("GetPeerSharedAttributesRequest"));
74767
+ super(schemaRepository.getSchema("GetRepositoryAttributesRequest"));
74767
74768
  }
74768
74769
  };
74769
74770
  Validator = __decorate([
74770
74771
  __param(0, typescript_ioc_1.Inject),
74771
74772
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74772
74773
  ], Validator);
74773
- let GetPeerSharedAttributesUseCase = class GetPeerSharedAttributesUseCase extends common_1.UseCase {
74774
- constructor(attributeController, validator) {
74774
+ let GetRepositoryAttributesUseCase = class GetRepositoryAttributesUseCase extends common_1.UseCase {
74775
+ constructor(attributesController, validator) {
74775
74776
  super(validator);
74776
- this.attributeController = attributeController;
74777
+ this.attributesController = attributesController;
74777
74778
  }
74778
74779
  async executeInternal(request) {
74779
- const query = request.query ?? {};
74780
- query["content.owner"] = request.peer;
74781
- const flattenedQuery = (0, flattenObject_1.flattenObject)(query);
74782
- const dbQuery = GetAttributes_1.GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
74783
- if (request.onlyLatestVersions ?? true) {
74784
- dbQuery["succeededBy"] = { $exists: false };
74780
+ const query = {
74781
+ shareInfo: { $exists: false }
74782
+ };
74783
+ if (typeof request.onlyLatestVersions === "undefined" || request.onlyLatestVersions) {
74784
+ query["succeededBy"] = { $exists: false };
74785
74785
  }
74786
- const attributes = await this.attributeController.getLocalAttributes(dbQuery, request.hideTechnical, request.onlyValid);
74787
- return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
74786
+ const attributes = await this.attributesController.getLocalAttributes(query);
74787
+ return ts_utils_1.Result.ok(__1.AttributeMapper.toAttributeDTOList(attributes));
74788
74788
  }
74789
74789
  };
74790
- exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase;
74791
- exports.GetPeerSharedAttributesUseCase = GetPeerSharedAttributesUseCase = __decorate([
74790
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase;
74791
+ exports.GetRepositoryAttributesUseCase = GetRepositoryAttributesUseCase = __decorate([
74792
74792
  __param(0, typescript_ioc_1.Inject),
74793
74793
  __param(1, typescript_ioc_1.Inject),
74794
74794
  __metadata("design:paramtypes", [consumption_1.AttributesController,
74795
74795
  Validator])
74796
- ], GetPeerSharedAttributesUseCase);
74797
- //# sourceMappingURL=GetPeerSharedAttributes.js.map
74796
+ ], GetRepositoryAttributesUseCase);
74797
+ //# sourceMappingURL=GetRepositoryAttributes.js.map
74798
74798
 
74799
74799
  /***/ }),
74800
74800
 
74801
- /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js":
74802
- /*!**************************************************************************************!*\
74803
- !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js ***!
74804
- \**************************************************************************************/
74801
+ /***/ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js":
74802
+ /*!****************************************************************************************!*\
74803
+ !*** ./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js ***!
74804
+ \****************************************************************************************/
74805
74805
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74806
74806
 
74807
74807
  "use strict";
@@ -74819,7 +74819,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74819
74819
  return function (target, key) { decorator(target, key, paramIndex); }
74820
74820
  };
74821
74821
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74822
- exports.GetSharedVersionsOfIdentityAttributeUseCase = void 0;
74822
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = void 0;
74823
74823
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74824
74824
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74825
74825
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
@@ -74828,14 +74828,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74828
74828
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74829
74829
  let Validator = class Validator extends common_1.SchemaValidator {
74830
74830
  constructor(schemaRepository) {
74831
- super(schemaRepository.getSchema("GetSharedVersionsOfIdentityAttributeRequest"));
74831
+ super(schemaRepository.getSchema("GetSharedVersionsOfRepositoryAttributeRequest"));
74832
74832
  }
74833
74833
  };
74834
74834
  Validator = __decorate([
74835
74835
  __param(0, typescript_ioc_1.Inject),
74836
74836
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74837
74837
  ], Validator);
74838
- let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdentityAttributeUseCase extends common_1.UseCase {
74838
+ let GetSharedVersionsOfRepositoryAttributeUseCase = class GetSharedVersionsOfRepositoryAttributeUseCase extends common_1.UseCase {
74839
74839
  constructor(accountController, attributeController, validator) {
74840
74840
  super(validator);
74841
74841
  this.accountController = accountController;
@@ -74848,7 +74848,7 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74848
74848
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
74849
74849
  }
74850
74850
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
74851
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
74851
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
74852
74852
  }
74853
74853
  if (request.peers?.length === 0) {
74854
74854
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.invalidPropertyValue("The `peers` property may not be an empty array."));
@@ -74858,16 +74858,16 @@ let GetSharedVersionsOfIdentityAttributeUseCase = class GetSharedVersionsOfIdent
74858
74858
  return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(sharedVersions));
74859
74859
  }
74860
74860
  };
74861
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase;
74862
- exports.GetSharedVersionsOfIdentityAttributeUseCase = GetSharedVersionsOfIdentityAttributeUseCase = __decorate([
74861
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase;
74862
+ exports.GetSharedVersionsOfRepositoryAttributeUseCase = GetSharedVersionsOfRepositoryAttributeUseCase = __decorate([
74863
74863
  __param(0, typescript_ioc_1.Inject),
74864
74864
  __param(1, typescript_ioc_1.Inject),
74865
74865
  __param(2, typescript_ioc_1.Inject),
74866
74866
  __metadata("design:paramtypes", [transport_1.AccountController,
74867
74867
  consumption_1.AttributesController,
74868
74868
  Validator])
74869
- ], GetSharedVersionsOfIdentityAttributeUseCase);
74870
- //# sourceMappingURL=GetSharedVersionsOfIdentityAttribute.js.map
74869
+ ], GetSharedVersionsOfRepositoryAttributeUseCase);
74870
+ //# sourceMappingURL=GetSharedVersionsOfRepositoryAttribute.js.map
74871
74871
 
74872
74872
  /***/ }),
74873
74873
 
@@ -74933,10 +74933,10 @@ exports.GetVersionsOfAttributeUseCase = GetVersionsOfAttributeUseCase = __decora
74933
74933
 
74934
74934
  /***/ }),
74935
74935
 
74936
- /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js":
74937
- /*!********************************************************************************************!*\
74938
- !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js ***!
74939
- \********************************************************************************************/
74936
+ /***/ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js":
74937
+ /*!**********************************************************************************************!*\
74938
+ !*** ./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js ***!
74939
+ \**********************************************************************************************/
74940
74940
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
74941
74941
 
74942
74942
  "use strict";
@@ -74954,7 +74954,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
74954
74954
  return function (target, key) { decorator(target, key, paramIndex); }
74955
74955
  };
74956
74956
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74957
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = void 0;
74957
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = void 0;
74958
74958
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
74959
74959
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
74960
74960
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -74964,14 +74964,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
74964
74964
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
74965
74965
  let Validator = class Validator extends common_1.SchemaValidator {
74966
74966
  constructor(schemaRepository) {
74967
- super(schemaRepository.getSchema("NotifyPeerAboutIdentityAttributeSuccessionRequest"));
74967
+ super(schemaRepository.getSchema("NotifyPeerAboutRepositoryAttributeSuccessionRequest"));
74968
74968
  }
74969
74969
  };
74970
74970
  Validator = __decorate([
74971
74971
  __param(0, typescript_ioc_1.Inject),
74972
74972
  __metadata("design:paramtypes", [common_1.SchemaRepository])
74973
74973
  ], Validator);
74974
- let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIdentityAttributeSuccessionUseCase extends common_1.UseCase {
74974
+ let NotifyPeerAboutRepositoryAttributeSuccessionUseCase = class NotifyPeerAboutRepositoryAttributeSuccessionUseCase extends common_1.UseCase {
74975
74975
  constructor(accountController, attributeController, messageController, validator) {
74976
74976
  super(validator);
74977
74977
  this.accountController = accountController;
@@ -74985,14 +74985,14 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
74985
74985
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
74986
74986
  }
74987
74987
  if (!repositoryAttributeSuccessor.isRepositoryAttribute(this.accountController.identity.address)) {
74988
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeSuccessorId));
74988
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeSuccessorId));
74989
74989
  }
74990
74990
  const candidatePredecessors = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeSuccessorId, [transport_1.CoreAddress.from(request.peer)]);
74991
74991
  if (candidatePredecessors.length === 0) {
74992
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfIdentityAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
74992
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noOtherVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
74993
74993
  }
74994
74994
  if (candidatePredecessors[0].shareInfo?.sourceAttribute?.toString() === request.attributeId) {
74995
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
74995
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, candidatePredecessors[0].id));
74996
74996
  }
74997
74997
  const ownSharedIdentityAttributePredecessor = candidatePredecessors[0];
74998
74998
  const notificationId = await consumption_1.ConsumptionIds.notification.generate();
@@ -75029,8 +75029,8 @@ let NotifyPeerAboutIdentityAttributeSuccessionUseCase = class NotifyPeerAboutIde
75029
75029
  return ts_utils_1.Result.ok(result);
75030
75030
  }
75031
75031
  };
75032
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase;
75033
- exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdentityAttributeSuccessionUseCase = __decorate([
75032
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase;
75033
+ exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase = __decorate([
75034
75034
  __param(0, typescript_ioc_1.Inject),
75035
75035
  __param(1, typescript_ioc_1.Inject),
75036
75036
  __param(2, typescript_ioc_1.Inject),
@@ -75039,15 +75039,15 @@ exports.NotifyPeerAboutIdentityAttributeSuccessionUseCase = NotifyPeerAboutIdent
75039
75039
  consumption_1.AttributesController,
75040
75040
  transport_1.MessageController,
75041
75041
  Validator])
75042
- ], NotifyPeerAboutIdentityAttributeSuccessionUseCase);
75043
- //# sourceMappingURL=NotifyPeerAboutIdentityAttributeSuccession.js.map
75042
+ ], NotifyPeerAboutRepositoryAttributeSuccessionUseCase);
75043
+ //# sourceMappingURL=NotifyPeerAboutRepositoryAttributeSuccession.js.map
75044
75044
 
75045
75045
  /***/ }),
75046
75046
 
75047
- /***/ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js":
75048
- /*!************************************************************************!*\
75049
- !*** ./dist/useCases/consumption/attributes/ShareIdentityAttribute.js ***!
75050
- \************************************************************************/
75047
+ /***/ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js":
75048
+ /*!**************************************************************************!*\
75049
+ !*** ./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js ***!
75050
+ \**************************************************************************/
75051
75051
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75052
75052
 
75053
75053
  "use strict";
@@ -75065,7 +75065,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75065
75065
  return function (target, key) { decorator(target, key, paramIndex); }
75066
75066
  };
75067
75067
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75068
- exports.ShareIdentityAttributeUseCase = void 0;
75068
+ exports.ShareRepositoryAttributeUseCase = void 0;
75069
75069
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75070
75070
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75071
75071
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
@@ -75075,14 +75075,14 @@ const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common
75075
75075
  const requests_1 = __webpack_require__(/*! ../requests */ "./dist/useCases/consumption/requests/index.js");
75076
75076
  let Validator = class Validator extends common_1.SchemaValidator {
75077
75077
  constructor(schemaRepository) {
75078
- super(schemaRepository.getSchema("ShareIdentityAttributeRequest"));
75078
+ super(schemaRepository.getSchema("ShareRepositoryAttributeRequest"));
75079
75079
  }
75080
75080
  };
75081
75081
  Validator = __decorate([
75082
75082
  __param(0, typescript_ioc_1.Inject),
75083
75083
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75084
75084
  ], Validator);
75085
- let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends common_1.UseCase {
75085
+ let ShareRepositoryAttributeUseCase = class ShareRepositoryAttributeUseCase extends common_1.UseCase {
75086
75086
  constructor(attributeController, accountController, requestsController, messageController, validator) {
75087
75087
  super(validator);
75088
75088
  this.attributeController = attributeController;
@@ -75097,7 +75097,7 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75097
75097
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
75098
75098
  }
75099
75099
  if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
75100
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNoIdentityAttribute(repositoryAttributeId));
75100
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeId));
75101
75101
  }
75102
75102
  const query = {
75103
75103
  "content.owner": this.accountController.identity.address.toString(),
@@ -75107,11 +75107,11 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75107
75107
  };
75108
75108
  const ownSharedIdentityAttributesOfRepositoryAttribute = await this.attributeController.getLocalAttributes(query);
75109
75109
  if (ownSharedIdentityAttributesOfRepositoryAttribute.length > 0) {
75110
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.identityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75110
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttribute[0].id));
75111
75111
  }
75112
- const ownSharedIdentityAttributesOfRepositoryAttributeVersion = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75113
- if (ownSharedIdentityAttributesOfRepositoryAttributeVersion.length > 0) {
75114
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfIdentityAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributesOfRepositoryAttributeVersion[0].id));
75112
+ const sharedVersionsOfRepositoryAttribute = await this.attributeController.getSharedVersionsOfRepositoryAttribute(repositoryAttributeId, [transport_1.CoreAddress.from(request.peer)], false);
75113
+ if (sharedVersionsOfRepositoryAttribute.length > 0) {
75114
+ return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, sharedVersionsOfRepositoryAttribute[0].id));
75115
75115
  }
75116
75116
  const requestParams = consumption_1.CreateOutgoingRequestParameters.from({
75117
75117
  peer: request.peer,
@@ -75136,8 +75136,8 @@ let ShareIdentityAttributeUseCase = class ShareIdentityAttributeUseCase extends
75136
75136
  return ts_utils_1.Result.ok(requests_1.RequestMapper.toLocalRequestDTO(localRequest));
75137
75137
  }
75138
75138
  };
75139
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase;
75140
- exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decorate([
75139
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase;
75140
+ exports.ShareRepositoryAttributeUseCase = ShareRepositoryAttributeUseCase = __decorate([
75141
75141
  __param(0, typescript_ioc_1.Inject),
75142
75142
  __param(1, typescript_ioc_1.Inject),
75143
75143
  __param(2, typescript_ioc_1.Inject),
@@ -75148,15 +75148,15 @@ exports.ShareIdentityAttributeUseCase = ShareIdentityAttributeUseCase = __decora
75148
75148
  consumption_1.OutgoingRequestsController,
75149
75149
  transport_1.MessageController,
75150
75150
  Validator])
75151
- ], ShareIdentityAttributeUseCase);
75152
- //# sourceMappingURL=ShareIdentityAttribute.js.map
75151
+ ], ShareRepositoryAttributeUseCase);
75152
+ //# sourceMappingURL=ShareRepositoryAttribute.js.map
75153
75153
 
75154
75154
  /***/ }),
75155
75155
 
75156
- /***/ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js":
75157
- /*!**************************************************************************!*\
75158
- !*** ./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js ***!
75159
- \**************************************************************************/
75156
+ /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75157
+ /*!*******************************************************************************************!*\
75158
+ !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75159
+ \*******************************************************************************************/
75160
75160
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75161
75161
 
75162
75162
  "use strict";
@@ -75174,72 +75174,97 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75174
75174
  return function (target, key) { decorator(target, key, paramIndex); }
75175
75175
  };
75176
75176
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75177
- exports.SucceedIdentityAttributeUseCase = void 0;
75177
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75178
75178
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75179
75179
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75180
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75180
75181
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75181
75182
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75182
75183
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75183
75184
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75184
75185
  let Validator = class Validator extends common_1.SchemaValidator {
75185
75186
  constructor(schemaRepository) {
75186
- super(schemaRepository.getSchema("SucceedIdentityAttributeRequest"));
75187
+ super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75187
75188
  }
75188
75189
  };
75189
75190
  Validator = __decorate([
75190
75191
  __param(0, typescript_ioc_1.Inject),
75191
75192
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75192
75193
  ], Validator);
75193
- let SucceedIdentityAttributeUseCase = class SucceedIdentityAttributeUseCase extends common_1.UseCase {
75194
- constructor(attributeController, accountController, validator) {
75194
+ let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75195
+ constructor(accountController, attributeController, messageController, validator) {
75195
75196
  super(validator);
75196
- this.attributeController = attributeController;
75197
75197
  this.accountController = accountController;
75198
+ this.attributeController = attributeController;
75199
+ this.messageController = messageController;
75198
75200
  }
75199
75201
  async executeInternal(request) {
75200
75202
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75201
75203
  if (typeof predecessor === "undefined") {
75202
75204
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75203
75205
  }
75204
- const successorParams = {
75205
- content: {
75206
- "@type": "IdentityAttribute",
75207
- owner: this.accountController.identity.address.toString(),
75208
- ...request.successorContent
75209
- },
75210
- succeeds: predecessor.id.toString()
75211
- };
75206
+ if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75207
+ return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75208
+ }
75209
+ const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75212
75210
  const predecessorId = transport_1.CoreId.from(request.predecessorId);
75213
- const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75211
+ const att = {
75212
+ "@type": "RelationshipAttribute",
75213
+ ...request.successorContent,
75214
+ confidentiality: predecessor.content.confidentiality,
75215
+ isTechnical: predecessor.content.isTechnical,
75216
+ key: predecessor.content.key,
75217
+ owner: predecessor.content.owner.toString()
75218
+ };
75219
+ const successorParams = consumption_1.AttributeSuccessorParams.from({
75220
+ content: content_1.RelationshipAttribute.from(att),
75221
+ shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75222
+ });
75223
+ const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75214
75224
  if (validationResult.isError()) {
75215
75225
  return ts_utils_1.Result.fail(validationResult.error);
75216
75226
  }
75217
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75218
- await this.accountController.syncDatawallet();
75227
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75228
+ const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75229
+ predecessorId: predecessor.id,
75230
+ successorId: successor.id,
75231
+ successorContent: successor.content
75232
+ });
75233
+ const notification = content_1.Notification.from({
75234
+ id: notificationId,
75235
+ items: [notificationItem]
75236
+ });
75237
+ await this.messageController.sendMessage({
75238
+ recipients: [predecessor.shareInfo.peer],
75239
+ content: notification
75240
+ });
75219
75241
  const response = {
75220
75242
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75221
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75243
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75244
+ notificationId: notificationId
75222
75245
  };
75223
75246
  return ts_utils_1.Result.ok(response);
75224
75247
  }
75225
75248
  };
75226
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase;
75227
- exports.SucceedIdentityAttributeUseCase = SucceedIdentityAttributeUseCase = __decorate([
75249
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75250
+ exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75228
75251
  __param(0, typescript_ioc_1.Inject),
75229
75252
  __param(1, typescript_ioc_1.Inject),
75230
75253
  __param(2, typescript_ioc_1.Inject),
75231
- __metadata("design:paramtypes", [consumption_1.AttributesController,
75232
- transport_1.AccountController,
75254
+ __param(3, typescript_ioc_1.Inject),
75255
+ __metadata("design:paramtypes", [transport_1.AccountController,
75256
+ consumption_1.AttributesController,
75257
+ transport_1.MessageController,
75233
75258
  Validator])
75234
- ], SucceedIdentityAttributeUseCase);
75235
- //# sourceMappingURL=SucceedIdentityAttribute.js.map
75259
+ ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75260
+ //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75236
75261
 
75237
75262
  /***/ }),
75238
75263
 
75239
- /***/ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js":
75240
- /*!*******************************************************************************************!*\
75241
- !*** ./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js ***!
75242
- \*******************************************************************************************/
75264
+ /***/ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js":
75265
+ /*!****************************************************************************!*\
75266
+ !*** ./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js ***!
75267
+ \****************************************************************************/
75243
75268
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75244
75269
 
75245
75270
  "use strict";
@@ -75257,90 +75282,65 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
75257
75282
  return function (target, key) { decorator(target, key, paramIndex); }
75258
75283
  };
75259
75284
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75260
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = void 0;
75285
+ exports.SucceedRepositoryAttributeUseCase = void 0;
75261
75286
  const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "../../node_modules/@js-soft/ts-utils/dist/index.js");
75262
75287
  const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
75263
- const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
75264
75288
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
75265
75289
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "../../node_modules/typescript-ioc/dist/typescript-ioc.js");
75266
75290
  const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
75267
75291
  const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
75268
75292
  let Validator = class Validator extends common_1.SchemaValidator {
75269
75293
  constructor(schemaRepository) {
75270
- super(schemaRepository.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"));
75294
+ super(schemaRepository.getSchema("SucceedRepositoryAttributeRequest"));
75271
75295
  }
75272
75296
  };
75273
75297
  Validator = __decorate([
75274
75298
  __param(0, typescript_ioc_1.Inject),
75275
75299
  __metadata("design:paramtypes", [common_1.SchemaRepository])
75276
75300
  ], Validator);
75277
- let SucceedRelationshipAttributeAndNotifyPeerUseCase = class SucceedRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
75278
- constructor(accountController, attributeController, messageController, validator) {
75301
+ let SucceedRepositoryAttributeUseCase = class SucceedRepositoryAttributeUseCase extends common_1.UseCase {
75302
+ constructor(attributeController, accountController, validator) {
75279
75303
  super(validator);
75280
- this.accountController = accountController;
75281
75304
  this.attributeController = attributeController;
75282
- this.messageController = messageController;
75305
+ this.accountController = accountController;
75283
75306
  }
75284
75307
  async executeInternal(request) {
75285
75308
  const predecessor = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.predecessorId));
75286
75309
  if (typeof predecessor === "undefined") {
75287
75310
  return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.predecessorDoesNotExist());
75288
75311
  }
75289
- if (!predecessor.isOwnSharedRelationshipAttribute(this.accountController.identity.address, predecessor.shareInfo?.peer)) {
75290
- return ts_utils_1.Result.fail(consumption_1.CoreErrors.attributes.invalidPredecessor());
75291
- }
75292
- const notificationId = await consumption_1.ConsumptionIds.notification.generate();
75293
- const predecessorId = transport_1.CoreId.from(request.predecessorId);
75294
- const att = {
75295
- "@type": "RelationshipAttribute",
75296
- ...request.successorContent,
75297
- confidentiality: predecessor.content.confidentiality,
75298
- isTechnical: predecessor.content.isTechnical,
75299
- key: predecessor.content.key,
75300
- owner: predecessor.content.owner.toString()
75312
+ const successorParams = {
75313
+ content: {
75314
+ "@type": "IdentityAttribute",
75315
+ owner: this.accountController.identity.address.toString(),
75316
+ ...request.successorContent
75317
+ },
75318
+ succeeds: predecessor.id.toString()
75301
75319
  };
75302
- const successorParams = consumption_1.AttributeSuccessorParams.from({
75303
- content: content_1.RelationshipAttribute.from(att),
75304
- shareInfo: { peer: predecessor.shareInfo.peer, notificationReference: notificationId }
75305
- });
75306
- const validationResult = await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(predecessorId, successorParams);
75320
+ const predecessorId = transport_1.CoreId.from(request.predecessorId);
75321
+ const validationResult = await this.attributeController.validateRepositoryAttributeSuccession(predecessorId, successorParams);
75307
75322
  if (validationResult.isError()) {
75308
75323
  return ts_utils_1.Result.fail(validationResult.error);
75309
75324
  }
75310
- const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedOwnSharedRelationshipAttribute(predecessorId, successorParams, false);
75311
- const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
75312
- predecessorId: predecessor.id,
75313
- successorId: successor.id,
75314
- successorContent: successor.content
75315
- });
75316
- const notification = content_1.Notification.from({
75317
- id: notificationId,
75318
- items: [notificationItem]
75319
- });
75320
- await this.messageController.sendMessage({
75321
- recipients: [predecessor.shareInfo.peer],
75322
- content: notification
75323
- });
75325
+ const { predecessor: updatedPredecessor, successor } = await this.attributeController.succeedRepositoryAttribute(predecessorId, successorParams, false);
75326
+ await this.accountController.syncDatawallet();
75324
75327
  const response = {
75325
75328
  predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedPredecessor),
75326
- successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor),
75327
- notificationId: notificationId
75329
+ successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(successor)
75328
75330
  };
75329
75331
  return ts_utils_1.Result.ok(response);
75330
75332
  }
75331
75333
  };
75332
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase;
75333
- exports.SucceedRelationshipAttributeAndNotifyPeerUseCase = SucceedRelationshipAttributeAndNotifyPeerUseCase = __decorate([
75334
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase;
75335
+ exports.SucceedRepositoryAttributeUseCase = SucceedRepositoryAttributeUseCase = __decorate([
75334
75336
  __param(0, typescript_ioc_1.Inject),
75335
75337
  __param(1, typescript_ioc_1.Inject),
75336
75338
  __param(2, typescript_ioc_1.Inject),
75337
- __param(3, typescript_ioc_1.Inject),
75338
- __metadata("design:paramtypes", [transport_1.AccountController,
75339
- consumption_1.AttributesController,
75340
- transport_1.MessageController,
75339
+ __metadata("design:paramtypes", [consumption_1.AttributesController,
75340
+ transport_1.AccountController,
75341
75341
  Validator])
75342
- ], SucceedRelationshipAttributeAndNotifyPeerUseCase);
75343
- //# sourceMappingURL=SucceedRelationshipAttributeAndNotifyPeer.js.map
75342
+ ], SucceedRepositoryAttributeUseCase);
75343
+ //# sourceMappingURL=SucceedRepositoryAttribute.js.map
75344
75344
 
75345
75345
  /***/ }),
75346
75346
 
@@ -75424,22 +75424,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
75424
75424
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75425
75425
  __exportStar(__webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js"), exports);
75426
75426
  __exportStar(__webpack_require__(/*! ./CreateAndShareRelationshipAttribute */ "./dist/useCases/consumption/attributes/CreateAndShareRelationshipAttribute.js"), exports);
75427
- __exportStar(__webpack_require__(/*! ./CreateIdentityAttribute */ "./dist/useCases/consumption/attributes/CreateIdentityAttribute.js"), exports);
75427
+ __exportStar(__webpack_require__(/*! ./CreateRepositoryAttribute */ "./dist/useCases/consumption/attributes/CreateRepositoryAttribute.js"), exports);
75428
75428
  __exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
75429
75429
  __exportStar(__webpack_require__(/*! ./ExecuteIQLQuery */ "./dist/useCases/consumption/attributes/ExecuteIQLQuery.js"), exports);
75430
75430
  __exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
75431
75431
  __exportStar(__webpack_require__(/*! ./ExecuteThirdPartyRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js"), exports);
75432
75432
  __exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
75433
75433
  __exportStar(__webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js"), exports);
75434
- __exportStar(__webpack_require__(/*! ./GetOwnIdentityAttributes */ "./dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js"), exports);
75435
75434
  __exportStar(__webpack_require__(/*! ./GetOwnSharedAttributes */ "./dist/useCases/consumption/attributes/GetOwnSharedAttributes.js"), exports);
75436
75435
  __exportStar(__webpack_require__(/*! ./GetPeerSharedAttributes */ "./dist/useCases/consumption/attributes/GetPeerSharedAttributes.js"), exports);
75437
- __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfIdentityAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfIdentityAttribute.js"), exports);
75436
+ __exportStar(__webpack_require__(/*! ./GetRepositoryAttributes */ "./dist/useCases/consumption/attributes/GetRepositoryAttributes.js"), exports);
75437
+ __exportStar(__webpack_require__(/*! ./GetSharedVersionsOfRepositoryAttribute */ "./dist/useCases/consumption/attributes/GetSharedVersionsOfRepositoryAttribute.js"), exports);
75438
75438
  __exportStar(__webpack_require__(/*! ./GetVersionsOfAttribute */ "./dist/useCases/consumption/attributes/GetVersionsOfAttribute.js"), exports);
75439
- __exportStar(__webpack_require__(/*! ./NotifyPeerAboutIdentityAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutIdentityAttributeSuccession.js"), exports);
75440
- __exportStar(__webpack_require__(/*! ./ShareIdentityAttribute */ "./dist/useCases/consumption/attributes/ShareIdentityAttribute.js"), exports);
75441
- __exportStar(__webpack_require__(/*! ./SucceedIdentityAttribute */ "./dist/useCases/consumption/attributes/SucceedIdentityAttribute.js"), exports);
75439
+ __exportStar(__webpack_require__(/*! ./NotifyPeerAboutRepositoryAttributeSuccession */ "./dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js"), exports);
75440
+ __exportStar(__webpack_require__(/*! ./ShareRepositoryAttribute */ "./dist/useCases/consumption/attributes/ShareRepositoryAttribute.js"), exports);
75442
75441
  __exportStar(__webpack_require__(/*! ./SucceedRelationshipAttributeAndNotifyPeer */ "./dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js"), exports);
75442
+ __exportStar(__webpack_require__(/*! ./SucceedRepositoryAttribute */ "./dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js"), exports);
75443
75443
  __exportStar(__webpack_require__(/*! ./ValidateIQLQuery */ "./dist/useCases/consumption/attributes/ValidateIQLQuery.js"), exports);
75444
75444
  //# sourceMappingURL=index.js.map
75445
75445