@nmshd/consumption 2.0.0-alpha.21 → 2.0.0-alpha.25

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 (101) hide show
  1. package/README.md +2 -2
  2. package/dist/buildInformation.js +4 -4
  3. package/dist/consumption/ConsumptionController.d.ts +2 -2
  4. package/dist/consumption/ConsumptionController.js +2 -2
  5. package/dist/consumption/ConsumptionController.js.map +1 -1
  6. package/dist/consumption/ConsumptionControllerName.d.ts +1 -1
  7. package/dist/consumption/ConsumptionControllerName.js +1 -1
  8. package/dist/consumption/ConsumptionControllerName.js.map +1 -1
  9. package/dist/modules/attributes/LocalAttributesController.d.ts +30 -0
  10. package/dist/modules/attributes/{ConsumptionAttributesController.js → LocalAttributesController.js} +42 -42
  11. package/dist/modules/attributes/LocalAttributesController.js.map +1 -0
  12. package/dist/modules/attributes/local/{CreateConsumptionAttributeParams.d.ts → CreateLocalAttributeParams.d.ts} +4 -4
  13. package/dist/modules/attributes/local/{CreateConsumptionAttributeParams.js → CreateLocalAttributeParams.js} +5 -5
  14. package/dist/modules/attributes/local/CreateLocalAttributeParams.js.map +1 -0
  15. package/dist/modules/attributes/local/{CreatePeerConsumptionAttributeParams.d.ts → CreatePeerLocalAttributeParams.d.ts} +4 -4
  16. package/dist/modules/attributes/local/{CreatePeerConsumptionAttributeParams.js → CreatePeerLocalAttributeParams.js} +8 -8
  17. package/dist/modules/attributes/local/CreatePeerLocalAttributeParams.js.map +1 -0
  18. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts +18 -0
  19. package/dist/modules/attributes/local/{CreateSharedConsumptionAttributeCopyParams.js → CreateSharedLocalAttributeCopyParams.js} +7 -7
  20. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +1 -0
  21. package/dist/modules/attributes/local/{ConsumptionAttribute.d.ts → LocalAttribute.d.ts} +9 -9
  22. package/dist/modules/attributes/local/{ConsumptionAttribute.js → LocalAttribute.js} +14 -14
  23. package/dist/modules/attributes/local/LocalAttribute.js.map +1 -0
  24. package/dist/modules/attributes/local/{ConsumptionAttributeShareInfo.d.ts → LocalAttributeShareInfo.d.ts} +4 -4
  25. package/dist/modules/attributes/local/{ConsumptionAttributeShareInfo.js → LocalAttributeShareInfo.js} +7 -7
  26. package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +1 -0
  27. package/dist/modules/attributes/local/QueryTranslator.js +11 -7
  28. package/dist/modules/attributes/local/QueryTranslator.js.map +1 -1
  29. package/dist/modules/attributes/local/{SucceedConsumptionAttributeParams.d.ts → SucceedLocalAttributeParams.d.ts} +4 -4
  30. package/dist/modules/attributes/local/{UpdateConsumptionAttributeParams.js → SucceedLocalAttributeParams.js} +10 -10
  31. package/dist/modules/attributes/local/SucceedLocalAttributeParams.js.map +1 -0
  32. package/dist/modules/attributes/local/{UpdateConsumptionAttributeParams.d.ts → UpdateLocalAttributeParams.d.ts} +4 -4
  33. package/dist/modules/attributes/local/{SucceedConsumptionAttributeParams.js → UpdateLocalAttributeParams.js} +10 -10
  34. package/dist/modules/attributes/local/UpdateLocalAttributeParams.js.map +1 -0
  35. package/dist/modules/index.d.ts +13 -13
  36. package/dist/modules/index.js +12 -13
  37. package/dist/modules/index.js.map +1 -1
  38. package/dist/modules/requests/incoming/DecideRequestParametersValidator.d.ts +2 -2
  39. package/dist/modules/requests/incoming/DecideRequestParametersValidator.js.map +1 -1
  40. package/dist/modules/requests/incoming/IncomingRequestsController.d.ts +10 -10
  41. package/dist/modules/requests/incoming/IncomingRequestsController.js +26 -29
  42. package/dist/modules/requests/incoming/IncomingRequestsController.js.map +1 -1
  43. package/dist/modules/requests/itemProcessors/AbstractRequestItemProcessor.d.ts +8 -8
  44. package/dist/modules/requests/itemProcessors/GenericRequestItemProcessor.d.ts +8 -8
  45. package/dist/modules/requests/itemProcessors/GenericRequestItemProcessor.js +2 -8
  46. package/dist/modules/requests/itemProcessors/GenericRequestItemProcessor.js.map +1 -1
  47. package/dist/modules/requests/itemProcessors/IRequestItemProcessor.d.ts +8 -8
  48. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +3 -3
  49. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +4 -5
  50. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
  51. package/dist/modules/requests/itemProcessors/proposeAttribute/AcceptProposeAttributeRequestItemParameters.d.ts +1 -1
  52. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts +4 -4
  53. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +14 -14
  54. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
  55. package/dist/modules/requests/itemProcessors/readAttribute/AcceptReadAttributeRequestItemParameters.d.ts +13 -4
  56. package/dist/modules/requests/itemProcessors/readAttribute/AcceptReadAttributeRequestItemParameters.js +13 -6
  57. package/dist/modules/requests/itemProcessors/readAttribute/AcceptReadAttributeRequestItemParameters.js.map +1 -1
  58. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts +4 -4
  59. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js +16 -16
  60. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map +1 -1
  61. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts +4 -4
  62. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js +5 -5
  63. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js.map +1 -1
  64. package/dist/modules/requests/local/LocalRequest.d.ts +37 -0
  65. package/dist/modules/requests/local/{ConsumptionRequest.js → LocalRequest.js} +32 -32
  66. package/dist/modules/requests/local/LocalRequest.js.map +1 -0
  67. package/dist/modules/requests/local/{ConsumptionRequestStatus.d.ts → LocalRequestStatus.d.ts} +1 -1
  68. package/dist/modules/requests/local/LocalRequestStatus.js +13 -0
  69. package/dist/modules/requests/local/LocalRequestStatus.js.map +1 -0
  70. package/dist/modules/requests/local/LocalRequestStatusLogEntry.d.ts +17 -0
  71. package/dist/modules/requests/local/{ConsumptionRequestStatusLogEntry.js → LocalRequestStatusLogEntry.js} +13 -13
  72. package/dist/modules/requests/local/LocalRequestStatusLogEntry.js.map +1 -0
  73. package/dist/modules/requests/local/LocalResponse.d.ts +22 -0
  74. package/dist/modules/requests/local/{ConsumptionResponse.js → LocalResponse.js} +18 -18
  75. package/dist/modules/requests/local/LocalResponse.js.map +1 -0
  76. package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +7 -7
  77. package/dist/modules/requests/outgoing/OutgoingRequestsController.js +17 -17
  78. package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
  79. package/lib-web/nmshd.consumption.js +440 -440
  80. package/lib-web/nmshd.consumption.js.map +1 -1
  81. package/lib-web/nmshd.consumption.min.js +1 -1
  82. package/lib-web/nmshd.consumption.min.js.map +1 -1
  83. package/package.json +6 -6
  84. package/dist/modules/attributes/ConsumptionAttributesController.d.ts +0 -30
  85. package/dist/modules/attributes/ConsumptionAttributesController.js.map +0 -1
  86. package/dist/modules/attributes/local/ConsumptionAttribute.js.map +0 -1
  87. package/dist/modules/attributes/local/ConsumptionAttributeShareInfo.js.map +0 -1
  88. package/dist/modules/attributes/local/CreateConsumptionAttributeParams.js.map +0 -1
  89. package/dist/modules/attributes/local/CreatePeerConsumptionAttributeParams.js.map +0 -1
  90. package/dist/modules/attributes/local/CreateSharedConsumptionAttributeCopyParams.d.ts +0 -18
  91. package/dist/modules/attributes/local/CreateSharedConsumptionAttributeCopyParams.js.map +0 -1
  92. package/dist/modules/attributes/local/SucceedConsumptionAttributeParams.js.map +0 -1
  93. package/dist/modules/attributes/local/UpdateConsumptionAttributeParams.js.map +0 -1
  94. package/dist/modules/requests/local/ConsumptionRequest.d.ts +0 -37
  95. package/dist/modules/requests/local/ConsumptionRequest.js.map +0 -1
  96. package/dist/modules/requests/local/ConsumptionRequestStatus.js +0 -13
  97. package/dist/modules/requests/local/ConsumptionRequestStatus.js.map +0 -1
  98. package/dist/modules/requests/local/ConsumptionRequestStatusLogEntry.d.ts +0 -17
  99. package/dist/modules/requests/local/ConsumptionRequestStatusLogEntry.js.map +0 -1
  100. package/dist/modules/requests/local/ConsumptionResponse.d.ts +0 -22
  101. package/dist/modules/requests/local/ConsumptionResponse.js.map +0 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@ The consumption library extends the [transport library](https://www.npmjs.com/pa
7
7
 
8
8
  ## Documentation
9
9
 
10
- The documentation for this project is currently under construction.
10
+ You can find the documentation for Enmeshed on [enmeshed.eu](https://enmeshed.eu).
11
11
 
12
12
  ## Feedback
13
13
 
@@ -17,7 +17,7 @@ Share your feedback with the Enmeshed team by contributing to the [discussions](
17
17
 
18
18
  ## Contribute
19
19
 
20
- Currently contribution to this project is not possible. This will change soon.
20
+ Contribution to this project is highly apprecicated. Head over to our [contribution guide](https://github.com/nmshd/.github/blob/main/CONTRIBUTING.md) to learn more.
21
21
 
22
22
  ## License
23
23
 
@@ -6,10 +6,10 @@ const content_1 = require("@nmshd/content");
6
6
  const crypto_1 = require("@nmshd/crypto");
7
7
  const transport_1 = require("@nmshd/transport");
8
8
  exports.buildInformation = {
9
- version: "2.0.0-alpha.21",
10
- build: "40",
11
- date: "2022-06-27T07:10:09+00:00",
12
- commit: "26615e613c315ca69ebb76ab528cc8cabec673a9",
9
+ version: "2.0.0-alpha.25",
10
+ build: "45",
11
+ date: "2022-07-06T13:37:59+00:00",
12
+ commit: "692a3c01337c3753a910d142c8af1923f9f12e20",
13
13
  dependencies: {"@js-soft/docdb-querytranslator":"^1.0.1","ts-simple-nameof":"^1.3.1"},
14
14
  libraries: {
15
15
  transport: transport_1.buildInformation,
@@ -1,5 +1,5 @@
1
1
  import { AccountController, Transport } from "@nmshd/transport";
2
- import { ConsumptionAttributesController } from "../modules/attributes/ConsumptionAttributesController";
2
+ import { LocalAttributesController } from "../modules/attributes/LocalAttributesController";
3
3
  import { DraftsController } from "../modules/drafts/DraftsController";
4
4
  import { IncomingRequestsController } from "../modules/requests/incoming/IncomingRequestsController";
5
5
  import { ProcessorConstructor } from "../modules/requests/itemProcessors/ProcessorConstructor";
@@ -11,7 +11,7 @@ export declare class ConsumptionController {
11
11
  readonly accountController: AccountController;
12
12
  constructor(transport: Transport, accountController: AccountController);
13
13
  private _attributes;
14
- get attributes(): ConsumptionAttributesController;
14
+ get attributes(): LocalAttributesController;
15
15
  private _drafts;
16
16
  get drafts(): DraftsController;
17
17
  private _outgoingRequests;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConsumptionController = void 0;
4
4
  const content_1 = require("@nmshd/content");
5
5
  const modules_1 = require("../modules");
6
- const ConsumptionAttributesController_1 = require("../modules/attributes/ConsumptionAttributesController");
6
+ const LocalAttributesController_1 = require("../modules/attributes/LocalAttributesController");
7
7
  const DraftsController_1 = require("../modules/drafts/DraftsController");
8
8
  const IncomingRequestsController_1 = require("../modules/requests/incoming/IncomingRequestsController");
9
9
  const RequestItemProcessorRegistry_1 = require("../modules/requests/itemProcessors/RequestItemProcessorRegistry");
@@ -30,7 +30,7 @@ class ConsumptionController {
30
30
  return this._settings;
31
31
  }
32
32
  async init(requestItemProcessorOverrides = new Map()) {
33
- this._attributes = await new ConsumptionAttributesController_1.ConsumptionAttributesController(this).init();
33
+ this._attributes = await new LocalAttributesController_1.LocalAttributesController(this).init();
34
34
  this._drafts = await new DraftsController_1.DraftsController(this).init();
35
35
  const processorRegistry = new RequestItemProcessorRegistry_1.RequestItemProcessorRegistry(this, this.getDefaultProcessors());
36
36
  for (const [itemConstructor, processorConstructor] of requestItemProcessorOverrides) {
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumptionController.js","sourceRoot":"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,CAAC,UAAU,CAAC,EAClE,iBAAiB,EACjB,IAAI,CACP,CAAC,IAAI,EAAE,CAAA;QACR,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,uDAA0B,CACzD,MAAM,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAClE,iBAAiB,EACjB,IAAI,CACP,CAAC,IAAI,EAAE,CAAA;QACR,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,uCAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;QAC1D,OAAO,IAAI,CAAA;IACf,CAAC;IAEO,oBAAoB;QACxB,OAAO,IAAI,GAAG,CAA+C;YACzD,CAAC,oCAA0B,EAAE,6CAAmC,CAAC;YACjE,CAAC,kCAAwB,EAAE,2CAAiC,CAAC;YAC7D,CAAC,qCAA2B,EAAE,8CAAoC,CAAC;YACnE,CAAC,mCAAyB,EAAE,4CAAkC,CAAC;SAClE,CAAC,CAAA;IACN,CAAC;CACJ;AA9DD,sDA8DC"}
1
+ {"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AAAA,4CAKuB;AAEvB,wCAKmB;AACnB,+FAA2F;AAC3F,yEAAqE;AACrE,wGAAoG;AAGpG,kHAA8G;AAC9G,wGAAoG;AACpG,+EAA2E;AAE3E,MAAa,qBAAqB;IAC9B,YAAmC,SAAoB,EAAkB,iBAAoC;QAA1E,cAAS,GAAT,SAAS,CAAW;QAAkB,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGjH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAA;IAC3B,CAAC;IAGD,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAA;IACvB,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAA;IACjC,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,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,mCAAyB,EAAE,4CAAkC,CAAC;SAClE,CAAC,CAAA;IACN,CAAC;CACJ;AA9DD,sDA8DC"}
@@ -1,5 +1,5 @@
1
1
  export declare enum ConsumptionControllerName {
2
- ConsumptionAttributesController = "ConsumptionAttributesController",
2
+ LocalAttributesController = "LocalAttributesController",
3
3
  DraftsController = "DraftsController",
4
4
  RelationshipInfoController = "RelationshipInfoController",
5
5
  SingleRelationshipController = "SingleRelationshipController",
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConsumptionControllerName = void 0;
4
4
  var ConsumptionControllerName;
5
5
  (function (ConsumptionControllerName) {
6
- ConsumptionControllerName["ConsumptionAttributesController"] = "ConsumptionAttributesController";
6
+ ConsumptionControllerName["LocalAttributesController"] = "LocalAttributesController";
7
7
  ConsumptionControllerName["DraftsController"] = "DraftsController";
8
8
  ConsumptionControllerName["RelationshipInfoController"] = "RelationshipInfoController";
9
9
  ConsumptionControllerName["SingleRelationshipController"] = "SingleRelationshipController";
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAWX;AAXD,WAAY,yBAAyB;IACjC,gGAAmE,CAAA;IACnE,kEAAqC,CAAA;IACrC,sFAAyD,CAAA;IACzD,0FAA6D,CAAA;IAC7D,kFAAqD,CAAA;IACrD,oFAAuD,CAAA;IAEvD,qEAAwC,CAAA;IACxC,sEAAyC,CAAA;IACzC,4EAA+C,CAAA;AACnD,CAAC,EAXW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAWpC"}
1
+ {"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAWX;AAXD,WAAY,yBAAyB;IACjC,oFAAuD,CAAA;IACvD,kEAAqC,CAAA;IACrC,sFAAyD,CAAA;IACzD,0FAA6D,CAAA;IAC7D,kFAAqD,CAAA;IACrD,oFAAuD,CAAA;IAEvD,qEAAwC,CAAA;IACxC,sEAAyC,CAAA;IACzC,4EAA+C,CAAA;AACnD,CAAC,EAXW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAWpC"}
@@ -0,0 +1,30 @@
1
+ import { CoreId } from "@nmshd/transport";
2
+ import { ConsumptionBaseController } from "../../consumption";
3
+ import { ConsumptionController } from "../../consumption/ConsumptionController";
4
+ import { ICreateLocalAttributeParams } from "./local/CreateLocalAttributeParams";
5
+ import { ICreatePeerLocalAttributeParams } from "./local/CreatePeerLocalAttributeParams";
6
+ import { ICreateSharedLocalAttributeCopyParams } from "./local/CreateSharedLocalAttributeCopyParams";
7
+ import { IGetIdentityAttributesParams } from "./local/GetIdentityAttributesParams";
8
+ import { IGetRelationshipAttributesParams } from "./local/GetRelationshipAttributesParams";
9
+ import { LocalAttribute } from "./local/LocalAttribute";
10
+ import { ISucceedLocalAttributeParams } from "./local/SucceedLocalAttributeParams";
11
+ import { IUpdateLocalAttributeParams } from "./local/UpdateLocalAttributeParams";
12
+ export declare class LocalAttributesController extends ConsumptionBaseController {
13
+ private attributes;
14
+ constructor(parent: ConsumptionController);
15
+ init(): Promise<this>;
16
+ checkValid(attribute: LocalAttribute): boolean;
17
+ findCurrent(attributes: LocalAttribute[]): LocalAttribute | undefined;
18
+ filterCurrent(attributes: LocalAttribute[]): LocalAttribute[];
19
+ getLocalAttribute(id: CoreId): Promise<LocalAttribute | undefined>;
20
+ getLocalAttributes(query?: any): Promise<LocalAttribute[]>;
21
+ getValidLocalAttributes(query?: any): Promise<LocalAttribute[]>;
22
+ executeRelationshipAttributeQuery(params: IGetRelationshipAttributesParams): Promise<LocalAttribute[]>;
23
+ executeIdentityAttributeQuery(params: IGetIdentityAttributesParams): Promise<LocalAttribute[]>;
24
+ createLocalAttribute(params: ICreateLocalAttributeParams): Promise<LocalAttribute>;
25
+ succeedLocalAttribute(params: ISucceedLocalAttributeParams): Promise<LocalAttribute>;
26
+ createSharedLocalAttributeCopy(params: ICreateSharedLocalAttributeCopyParams): Promise<LocalAttribute>;
27
+ createPeerLocalAttribute(params: ICreatePeerLocalAttributeParams): Promise<LocalAttribute>;
28
+ updateLocalAttribute(params: IUpdateLocalAttributeParams): Promise<LocalAttribute>;
29
+ deleteAttribute(attribute: LocalAttribute): Promise<void>;
30
+ }
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConsumptionAttributesController = void 0;
3
+ exports.LocalAttributesController = void 0;
4
4
  const transport_1 = require("@nmshd/transport");
5
5
  const ts_simple_nameof_1 = require("ts-simple-nameof");
6
6
  const consumption_1 = require("../../consumption");
7
- const ConsumptionAttribute_1 = require("./local/ConsumptionAttribute");
8
- const ConsumptionAttributeShareInfo_1 = require("./local/ConsumptionAttributeShareInfo");
9
- const CreateSharedConsumptionAttributeCopyParams_1 = require("./local/CreateSharedConsumptionAttributeCopyParams");
7
+ const CreateSharedLocalAttributeCopyParams_1 = require("./local/CreateSharedLocalAttributeCopyParams");
8
+ const LocalAttribute_1 = require("./local/LocalAttribute");
9
+ const LocalAttributeShareInfo_1 = require("./local/LocalAttributeShareInfo");
10
10
  const QueryTranslator_1 = require("./local/QueryTranslator");
11
- const SucceedConsumptionAttributeParams_1 = require("./local/SucceedConsumptionAttributeParams");
12
- class ConsumptionAttributesController extends consumption_1.ConsumptionBaseController {
11
+ const SucceedLocalAttributeParams_1 = require("./local/SucceedLocalAttributeParams");
12
+ class LocalAttributesController extends consumption_1.ConsumptionBaseController {
13
13
  constructor(parent) {
14
- super(consumption_1.ConsumptionControllerName.ConsumptionAttributesController, parent);
14
+ super(consumption_1.ConsumptionControllerName.LocalAttributesController, parent);
15
15
  }
16
16
  async init() {
17
17
  await super.init();
@@ -65,21 +65,21 @@ class ConsumptionAttributesController extends consumption_1.ConsumptionBaseContr
65
65
  }
66
66
  return items;
67
67
  }
68
- async getConsumptionAttribute(id) {
68
+ async getLocalAttribute(id) {
69
69
  const result = await this.attributes.findOne({
70
70
  [(0, ts_simple_nameof_1.nameof)((c) => c.id)]: id.toString()
71
71
  });
72
72
  if (!result)
73
73
  return;
74
- return ConsumptionAttribute_1.ConsumptionAttribute.from(result);
74
+ return LocalAttribute_1.LocalAttribute.from(result);
75
75
  }
76
- async getConsumptionAttributes(query) {
76
+ async getLocalAttributes(query) {
77
77
  const attributes = await this.attributes.find(query);
78
- return await this.parseArray(attributes, ConsumptionAttribute_1.ConsumptionAttribute);
78
+ return await this.parseArray(attributes, LocalAttribute_1.LocalAttribute);
79
79
  }
80
- async getValidConsumptionAttributes(query) {
80
+ async getValidLocalAttributes(query) {
81
81
  const attributes = await this.attributes.find(query);
82
- const items = await this.parseArray(attributes, ConsumptionAttribute_1.ConsumptionAttribute);
82
+ const items = await this.parseArray(attributes, LocalAttribute_1.LocalAttribute);
83
83
  return this.filterCurrent(items);
84
84
  }
85
85
  async executeRelationshipAttributeQuery(params) {
@@ -87,22 +87,22 @@ class ConsumptionAttributesController extends consumption_1.ConsumptionBaseContr
87
87
  queryWithType["attributeType"] = "RelationshipAttribute";
88
88
  const dbQuery = QueryTranslator_1.relationshipQueryTranslator.parse(queryWithType);
89
89
  const attributes = await this.attributes.find(dbQuery);
90
- return await this.parseArray(attributes, ConsumptionAttribute_1.ConsumptionAttribute);
90
+ return await this.parseArray(attributes, LocalAttribute_1.LocalAttribute);
91
91
  }
92
92
  async executeIdentityAttributeQuery(params) {
93
93
  const queryWithType = params.query;
94
94
  queryWithType["attributeType"] = "IdentityAttribute";
95
95
  const dbQuery = QueryTranslator_1.identityQueryTranslator.parse(queryWithType);
96
96
  const attributes = await this.attributes.find(dbQuery);
97
- return await this.parseArray(attributes, ConsumptionAttribute_1.ConsumptionAttribute);
97
+ return await this.parseArray(attributes, LocalAttribute_1.LocalAttribute);
98
98
  }
99
- async createConsumptionAttribute(params) {
100
- const consumptionAttribute = await ConsumptionAttribute_1.ConsumptionAttribute.fromAttribute(params.content);
101
- await this.attributes.create(consumptionAttribute);
102
- return consumptionAttribute;
99
+ async createLocalAttribute(params) {
100
+ const localAttribute = await LocalAttribute_1.LocalAttribute.fromAttribute(params.content);
101
+ await this.attributes.create(localAttribute);
102
+ return localAttribute;
103
103
  }
104
- async succeedConsumptionAttribute(params) {
105
- const parsedParams = SucceedConsumptionAttributeParams_1.SucceedConsumptionAttributeParams.from(params);
104
+ async succeedLocalAttribute(params) {
105
+ const parsedParams = SucceedLocalAttributeParams_1.SucceedLocalAttributeParams.from(params);
106
106
  const current = await this.attributes.findOne({
107
107
  [(0, ts_simple_nameof_1.nameof)((c) => c.id)]: params.succeeds.toString()
108
108
  });
@@ -113,50 +113,50 @@ class ConsumptionAttributesController extends consumption_1.ConsumptionBaseContr
113
113
  parsedParams.successorContent.validFrom = transport_1.CoreDate.utc();
114
114
  }
115
115
  const validFrom = parsedParams.successorContent.validFrom;
116
- const currentUpdated = ConsumptionAttribute_1.ConsumptionAttribute.from(current);
116
+ const currentUpdated = LocalAttribute_1.LocalAttribute.from(current);
117
117
  currentUpdated.content.validTo = validFrom.subtract(1);
118
118
  await this.attributes.update(current, currentUpdated);
119
- const successor = await ConsumptionAttribute_1.ConsumptionAttribute.fromAttribute(parsedParams.successorContent, parsedParams.succeeds);
119
+ const successor = await LocalAttribute_1.LocalAttribute.fromAttribute(parsedParams.successorContent, parsedParams.succeeds);
120
120
  await this.attributes.create(successor);
121
121
  return successor;
122
122
  }
123
- async createSharedConsumptionAttributeCopy(params) {
124
- const parsedParams = CreateSharedConsumptionAttributeCopyParams_1.CreateSharedConsumptionAttributeCopyParams.from(params);
125
- const sourceAttribute = await this.getConsumptionAttribute(parsedParams.attributeId);
123
+ async createSharedLocalAttributeCopy(params) {
124
+ const parsedParams = CreateSharedLocalAttributeCopyParams_1.CreateSharedLocalAttributeCopyParams.from(params);
125
+ const sourceAttribute = await this.getLocalAttribute(parsedParams.attributeId);
126
126
  if (!sourceAttribute) {
127
127
  throw consumption_1.ConsumptionErrors.attributes.predecessorNotFound(parsedParams.attributeId.toString());
128
128
  }
129
- const shareInfo = ConsumptionAttributeShareInfo_1.ConsumptionAttributeShareInfo.from({
129
+ const shareInfo = LocalAttributeShareInfo_1.LocalAttributeShareInfo.from({
130
130
  peer: parsedParams.peer,
131
131
  requestReference: parsedParams.requestReference,
132
132
  sourceAttribute: parsedParams.attributeId
133
133
  });
134
- const sharedConsumptionAttributeCopy = await ConsumptionAttribute_1.ConsumptionAttribute.fromAttribute(sourceAttribute.content, undefined, shareInfo);
135
- await this.attributes.create(sharedConsumptionAttributeCopy);
136
- return sharedConsumptionAttributeCopy;
134
+ const sharedLocalAttributeCopy = await LocalAttribute_1.LocalAttribute.fromAttribute(sourceAttribute.content, undefined, shareInfo);
135
+ await this.attributes.create(sharedLocalAttributeCopy);
136
+ return sharedLocalAttributeCopy;
137
137
  }
138
- async createPeerConsumptionAttribute(params) {
139
- const shareInfo = ConsumptionAttributeShareInfo_1.ConsumptionAttributeShareInfo.from({
138
+ async createPeerLocalAttribute(params) {
139
+ const shareInfo = LocalAttributeShareInfo_1.LocalAttributeShareInfo.from({
140
140
  peer: params.peer,
141
141
  requestReference: params.requestReference
142
142
  });
143
- const peerConsumptionAttribute = ConsumptionAttribute_1.ConsumptionAttribute.from({
143
+ const peerLocalAttribute = LocalAttribute_1.LocalAttribute.from({
144
144
  id: params.id ?? (await consumption_1.ConsumptionIds.attribute.generate()),
145
145
  content: params.content,
146
146
  shareInfo: shareInfo,
147
147
  createdAt: transport_1.CoreDate.utc()
148
148
  });
149
- await this.attributes.create(peerConsumptionAttribute);
150
- return peerConsumptionAttribute;
149
+ await this.attributes.create(peerLocalAttribute);
150
+ return peerLocalAttribute;
151
151
  }
152
- async updateConsumptionAttribute(params) {
152
+ async updateLocalAttribute(params) {
153
153
  const current = await this.attributes.findOne({
154
154
  [(0, ts_simple_nameof_1.nameof)((c) => c.id)]: params.id.toString()
155
155
  });
156
156
  if (!current) {
157
- throw transport_1.TransportErrors.general.recordNotFound(ConsumptionAttribute_1.ConsumptionAttribute, params.id.toString());
157
+ throw transport_1.TransportErrors.general.recordNotFound(LocalAttribute_1.LocalAttribute, params.id.toString());
158
158
  }
159
- const updatedConsumptionAttribute = ConsumptionAttribute_1.ConsumptionAttribute.from({
159
+ const updatedLocalAttribute = LocalAttribute_1.LocalAttribute.from({
160
160
  id: current.id,
161
161
  content: params.content,
162
162
  createdAt: current.createdAt,
@@ -164,12 +164,12 @@ class ConsumptionAttributesController extends consumption_1.ConsumptionBaseContr
164
164
  succeededBy: current.succeededBy,
165
165
  succeeds: current.succeeds
166
166
  });
167
- await this.attributes.update(current, updatedConsumptionAttribute);
168
- return updatedConsumptionAttribute;
167
+ await this.attributes.update(current, updatedLocalAttribute);
168
+ return updatedLocalAttribute;
169
169
  }
170
170
  async deleteAttribute(attribute) {
171
171
  await this.attributes.delete(attribute);
172
172
  }
173
173
  }
174
- exports.ConsumptionAttributesController = ConsumptionAttributesController;
175
- //# sourceMappingURL=ConsumptionAttributesController.js.map
174
+ exports.LocalAttributesController = LocalAttributesController;
175
+ //# sourceMappingURL=LocalAttributesController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttributesController.js","sourceRoot":"","sources":["../../../src/modules/attributes/LocalAttributesController.ts"],"names":[],"mappings":";;;AAAA,gDAA4F;AAC5F,uDAAyC;AACzC,mDAK0B;AAI1B,uGAGqD;AAGrD,2DAAuD;AACvD,6EAAyE;AACzE,6DAA8F;AAC9F,qFAA+G;AAG/G,MAAa,yBAA0B,SAAQ,uCAAyB;IAGpE,YAAmB,MAA6B;QAC5C,KAAK,CAAC,uCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAA;IACtE,CAAC;IAEe,KAAK,CAAC,IAAI;QACtB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;QAElB,IAAI,CAAC,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAy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AAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE;SAC9D,CAAC,CAAA;QACF,IAAI,CAAC,OAAO,EAAE;YACV,MAAM,2BAAe,CAAC,OAAO,CAAC,cAAc,CAAC,+BAAc,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;SACrF;QACD,MAAM,qBAAqB,GAAG,+BAAc,CAAC,IAAI,CAAC;YAC9C,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC7B,CAAC,CAAA;QACF,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;QAC5D,OAAO,qBAAqB,CAAA;IAChC,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,SAAyB;QAClD,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC3C,CAAC;CACJ;AAlMD,8DAkMC"}
@@ -1,12 +1,12 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
3
- export interface CreateConsumptionAttributeParamsJSON {
3
+ export interface CreateLocalAttributeParamsJSON {
4
4
  content: IdentityAttributeJSON | RelationshipAttributeJSON;
5
5
  }
6
- export interface ICreateConsumptionAttributeParams extends ISerializable {
6
+ export interface ICreateLocalAttributeParams extends ISerializable {
7
7
  content: IIdentityAttribute | IRelationshipAttribute;
8
8
  }
9
- export declare class CreateConsumptionAttributeParams extends Serializable implements ICreateConsumptionAttributeParams {
9
+ export declare class CreateLocalAttributeParams extends Serializable implements ICreateLocalAttributeParams {
10
10
  content: IdentityAttribute | RelationshipAttribute;
11
- static from(value: ICreateConsumptionAttributeParams | CreateConsumptionAttributeParamsJSON): CreateConsumptionAttributeParams;
11
+ static from(value: ICreateLocalAttributeParams | CreateLocalAttributeParamsJSON): CreateLocalAttributeParams;
12
12
  }
@@ -9,10 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateConsumptionAttributeParams = void 0;
12
+ exports.CreateLocalAttributeParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const content_1 = require("@nmshd/content");
15
- class CreateConsumptionAttributeParams extends ts_serval_1.Serializable {
15
+ class CreateLocalAttributeParams extends ts_serval_1.Serializable {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
@@ -21,6 +21,6 @@ __decorate([
21
21
  (0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
22
22
  (0, ts_serval_1.validate)(),
23
23
  __metadata("design:type", Object)
24
- ], CreateConsumptionAttributeParams.prototype, "content", void 0);
25
- exports.CreateConsumptionAttributeParams = CreateConsumptionAttributeParams;
26
- //# sourceMappingURL=CreateConsumptionAttributeParams.js.map
24
+ ], CreateLocalAttributeParams.prototype, "content", void 0);
25
+ exports.CreateLocalAttributeParams = CreateLocalAttributeParams;
26
+ //# sourceMappingURL=CreateLocalAttributeParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateLocalAttributeParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/CreateLocalAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AAUvB,MAAa,0BAA2B,SAAQ,wBAAY;IAKjD,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAPG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;2DAC8C;AAH7D,gEAUC"}
@@ -1,22 +1,22 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
3
3
  import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/transport";
4
- export interface CreatePeerConsumptionAttributeParamsJSON {
4
+ export interface CreatePeerLocalAttributeParamsJSON {
5
5
  id: string;
6
6
  content: IdentityAttributeJSON | RelationshipAttributeJSON;
7
7
  requestReferece: string;
8
8
  peer: string;
9
9
  }
10
- export interface ICreatePeerConsumptionAttributeParams extends ISerializable {
10
+ export interface ICreatePeerLocalAttributeParams extends ISerializable {
11
11
  id?: ICoreId;
12
12
  content: IIdentityAttribute | IRelationshipAttribute;
13
13
  requestReference: ICoreId;
14
14
  peer: ICoreAddress;
15
15
  }
16
- export declare class CreatePeerConsumptionAttributeParams extends Serializable implements ICreatePeerConsumptionAttributeParams {
16
+ export declare class CreatePeerLocalAttributeParams extends Serializable implements ICreatePeerLocalAttributeParams {
17
17
  id: CoreId;
18
18
  content: IdentityAttribute | RelationshipAttribute;
19
19
  requestReference: CoreId;
20
20
  peer: CoreAddress;
21
- static from(value: ICreatePeerConsumptionAttributeParams | CreatePeerConsumptionAttributeParamsJSON): CreatePeerConsumptionAttributeParams;
21
+ static from(value: ICreatePeerLocalAttributeParams | CreatePeerLocalAttributeParamsJSON): CreatePeerLocalAttributeParams;
22
22
  }
@@ -9,11 +9,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreatePeerConsumptionAttributeParams = void 0;
12
+ exports.CreatePeerLocalAttributeParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const content_1 = require("@nmshd/content");
15
15
  const transport_1 = require("@nmshd/transport");
16
- class CreatePeerConsumptionAttributeParams extends ts_serval_1.Serializable {
16
+ class CreatePeerLocalAttributeParams extends ts_serval_1.Serializable {
17
17
  static from(value) {
18
18
  return this.fromAny(value);
19
19
  }
@@ -22,21 +22,21 @@ __decorate([
22
22
  (0, ts_serval_1.serialize)(),
23
23
  (0, ts_serval_1.validate)(),
24
24
  __metadata("design:type", transport_1.CoreId)
25
- ], CreatePeerConsumptionAttributeParams.prototype, "id", void 0);
25
+ ], CreatePeerLocalAttributeParams.prototype, "id", void 0);
26
26
  __decorate([
27
27
  (0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
28
28
  (0, ts_serval_1.validate)(),
29
29
  __metadata("design:type", Object)
30
- ], CreatePeerConsumptionAttributeParams.prototype, "content", void 0);
30
+ ], CreatePeerLocalAttributeParams.prototype, "content", void 0);
31
31
  __decorate([
32
32
  (0, ts_serval_1.serialize)(),
33
33
  (0, ts_serval_1.validate)(),
34
34
  __metadata("design:type", transport_1.CoreId)
35
- ], CreatePeerConsumptionAttributeParams.prototype, "requestReference", void 0);
35
+ ], CreatePeerLocalAttributeParams.prototype, "requestReference", void 0);
36
36
  __decorate([
37
37
  (0, ts_serval_1.serialize)(),
38
38
  (0, ts_serval_1.validate)(),
39
39
  __metadata("design:type", transport_1.CoreAddress)
40
- ], CreatePeerConsumptionAttributeParams.prototype, "peer", void 0);
41
- exports.CreatePeerConsumptionAttributeParams = CreatePeerConsumptionAttributeParams;
42
- //# sourceMappingURL=CreatePeerConsumptionAttributeParams.js.map
40
+ ], CreatePeerLocalAttributeParams.prototype, "peer", void 0);
41
+ exports.CreatePeerLocalAttributeParams = CreatePeerLocalAttributeParams;
42
+ //# sourceMappingURL=CreatePeerLocalAttributeParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreatePeerLocalAttributeParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/CreatePeerLocalAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AACvB,gDAA6E;AAgB7E,MAAa,8BAA+B,SAAQ,wBAAY;IAiBrD,MAAM,CAAC,IAAI,CACd,KAA2E;QAE3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAnBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACA,kBAAM;0DAAA;AAIjB;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;+DAC8C;AAIzD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAM;wEAAA;AAI/B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;4DAAA;AAf5B,wEAsBC"}
@@ -0,0 +1,18 @@
1
+ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
+ import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/transport";
3
+ export interface CreateSharedLocalAttributeCopyParamsJSON {
4
+ attributeId: string;
5
+ peer: string;
6
+ requestReference: string;
7
+ }
8
+ export interface ICreateSharedLocalAttributeCopyParams extends ISerializable {
9
+ attributeId: ICoreId;
10
+ peer: ICoreAddress;
11
+ requestReference: ICoreId;
12
+ }
13
+ export declare class CreateSharedLocalAttributeCopyParams extends Serializable implements ICreateSharedLocalAttributeCopyParams {
14
+ attributeId: CoreId;
15
+ peer: CoreAddress;
16
+ requestReference: CoreId;
17
+ static from(value: ICreateSharedLocalAttributeCopyParams | CreateSharedLocalAttributeCopyParamsJSON): CreateSharedLocalAttributeCopyParams;
18
+ }
@@ -9,10 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateSharedConsumptionAttributeCopyParams = void 0;
12
+ exports.CreateSharedLocalAttributeCopyParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const transport_1 = require("@nmshd/transport");
15
- class CreateSharedConsumptionAttributeCopyParams extends ts_serval_1.Serializable {
15
+ class CreateSharedLocalAttributeCopyParams extends ts_serval_1.Serializable {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
@@ -21,16 +21,16 @@ __decorate([
21
21
  (0, ts_serval_1.serialize)(),
22
22
  (0, ts_serval_1.validate)(),
23
23
  __metadata("design:type", transport_1.CoreId)
24
- ], CreateSharedConsumptionAttributeCopyParams.prototype, "attributeId", void 0);
24
+ ], CreateSharedLocalAttributeCopyParams.prototype, "attributeId", void 0);
25
25
  __decorate([
26
26
  (0, ts_serval_1.serialize)(),
27
27
  (0, ts_serval_1.validate)(),
28
28
  __metadata("design:type", transport_1.CoreAddress)
29
- ], CreateSharedConsumptionAttributeCopyParams.prototype, "peer", void 0);
29
+ ], CreateSharedLocalAttributeCopyParams.prototype, "peer", void 0);
30
30
  __decorate([
31
31
  (0, ts_serval_1.serialize)(),
32
32
  (0, ts_serval_1.validate)(),
33
33
  __metadata("design:type", transport_1.CoreId)
34
- ], CreateSharedConsumptionAttributeCopyParams.prototype, "requestReference", void 0);
35
- exports.CreateSharedConsumptionAttributeCopyParams = CreateSharedConsumptionAttributeCopyParams;
36
- //# sourceMappingURL=CreateSharedConsumptionAttributeCopyParams.js.map
34
+ ], CreateSharedLocalAttributeCopyParams.prototype, "requestReference", void 0);
35
+ exports.CreateSharedLocalAttributeCopyParams = CreateSharedLocalAttributeCopyParams;
36
+ //# sourceMappingURL=CreateSharedLocalAttributeCopyParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSharedLocalAttributeCopyParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/CreateSharedLocalAttributeCopyParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,gDAA6E;AAc7E,MAAa,oCACT,SAAQ,wBAAY;IAeb,MAAM,CAAC,IAAI,CACd,KAAuF;QAEvF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAfG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;yEAAA;AAI1B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;kEAAA;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAM;8EAAA;AAdnC,oFAqBC"}
@@ -1,28 +1,28 @@
1
1
  import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
2
2
  import { CoreDate, CoreId, CoreSynchronizable, ICoreDate, ICoreId, ICoreSynchronizable } from "@nmshd/transport";
3
- import { ConsumptionAttributeShareInfo, ConsumptionAttributeShareInfoJSON, IConsumptionAttributeShareInfo } from "./ConsumptionAttributeShareInfo";
4
- export interface ConsumptionAttributeJSON {
3
+ import { ILocalAttributeShareInfo, LocalAttributeShareInfo, LocalAttributeShareInfoJSON } from "./LocalAttributeShareInfo";
4
+ export interface LocalAttributeJSON {
5
5
  content: IdentityAttributeJSON | RelationshipAttributeJSON;
6
6
  createdAt: string;
7
7
  succeeds: string;
8
8
  succeededBy: string;
9
- shareInfo: ConsumptionAttributeShareInfoJSON;
9
+ shareInfo: LocalAttributeShareInfoJSON;
10
10
  }
11
- export interface IConsumptionAttribute extends ICoreSynchronizable {
11
+ export interface ILocalAttribute extends ICoreSynchronizable {
12
12
  content: IIdentityAttribute | IRelationshipAttribute;
13
13
  createdAt: ICoreDate;
14
14
  succeeds?: ICoreId;
15
15
  succeededBy?: ICoreId;
16
- shareInfo?: IConsumptionAttributeShareInfo;
16
+ shareInfo?: ILocalAttributeShareInfo;
17
17
  }
18
- export declare class ConsumptionAttribute extends CoreSynchronizable implements IConsumptionAttribute {
18
+ export declare class LocalAttribute extends CoreSynchronizable implements ILocalAttribute {
19
19
  readonly technicalProperties: string[];
20
20
  readonly userdataProperties: string[];
21
21
  content: IdentityAttribute | RelationshipAttribute;
22
22
  createdAt: CoreDate;
23
23
  succeeds?: CoreId;
24
24
  succeededBy?: CoreId;
25
- shareInfo?: ConsumptionAttributeShareInfo;
26
- static from(value: IConsumptionAttribute): ConsumptionAttribute;
27
- static fromAttribute(attribute: IIdentityAttribute | IRelationshipAttribute, succeeds?: ICoreId, shareInfo?: IConsumptionAttributeShareInfo): Promise<ConsumptionAttribute>;
25
+ shareInfo?: LocalAttributeShareInfo;
26
+ static from(value: ILocalAttribute): LocalAttribute;
27
+ static fromAttribute(attribute: IIdentityAttribute | IRelationshipAttribute, succeeds?: ICoreId, shareInfo?: ILocalAttributeShareInfo): Promise<LocalAttribute>;
28
28
  }
@@ -9,14 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ConsumptionAttribute = void 0;
12
+ exports.LocalAttribute = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const content_1 = require("@nmshd/content");
15
15
  const transport_1 = require("@nmshd/transport");
16
16
  const ts_simple_nameof_1 = require("ts-simple-nameof");
17
17
  const consumption_1 = require("../../../consumption");
18
- const ConsumptionAttributeShareInfo_1 = require("./ConsumptionAttributeShareInfo");
19
- let ConsumptionAttribute = class ConsumptionAttribute extends transport_1.CoreSynchronizable {
18
+ const LocalAttributeShareInfo_1 = require("./LocalAttributeShareInfo");
19
+ let LocalAttribute = class LocalAttribute extends transport_1.CoreSynchronizable {
20
20
  constructor() {
21
21
  super(...arguments);
22
22
  this.technicalProperties = [
@@ -45,29 +45,29 @@ __decorate([
45
45
  (0, ts_serval_1.validate)(),
46
46
  (0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
47
47
  __metadata("design:type", Object)
48
- ], ConsumptionAttribute.prototype, "content", void 0);
48
+ ], LocalAttribute.prototype, "content", void 0);
49
49
  __decorate([
50
50
  (0, ts_serval_1.validate)(),
51
51
  (0, ts_serval_1.serialize)(),
52
52
  __metadata("design:type", transport_1.CoreDate)
53
- ], ConsumptionAttribute.prototype, "createdAt", void 0);
53
+ ], LocalAttribute.prototype, "createdAt", void 0);
54
54
  __decorate([
55
55
  (0, ts_serval_1.validate)({ nullable: true }),
56
56
  (0, ts_serval_1.serialize)(),
57
57
  __metadata("design:type", transport_1.CoreId)
58
- ], ConsumptionAttribute.prototype, "succeeds", void 0);
58
+ ], LocalAttribute.prototype, "succeeds", void 0);
59
59
  __decorate([
60
60
  (0, ts_serval_1.validate)({ nullable: true }),
61
61
  (0, ts_serval_1.serialize)(),
62
62
  __metadata("design:type", transport_1.CoreId)
63
- ], ConsumptionAttribute.prototype, "succeededBy", void 0);
63
+ ], LocalAttribute.prototype, "succeededBy", void 0);
64
64
  __decorate([
65
65
  (0, ts_serval_1.validate)({ nullable: true }),
66
66
  (0, ts_serval_1.serialize)(),
67
- __metadata("design:type", ConsumptionAttributeShareInfo_1.ConsumptionAttributeShareInfo)
68
- ], ConsumptionAttribute.prototype, "shareInfo", void 0);
69
- ConsumptionAttribute = __decorate([
70
- (0, ts_serval_1.type)("ConsumptionAttribute")
71
- ], ConsumptionAttribute);
72
- exports.ConsumptionAttribute = ConsumptionAttribute;
73
- //# sourceMappingURL=ConsumptionAttribute.js.map
67
+ __metadata("design:type", LocalAttributeShareInfo_1.LocalAttributeShareInfo)
68
+ ], LocalAttribute.prototype, "shareInfo", void 0);
69
+ LocalAttribute = __decorate([
70
+ (0, ts_serval_1.type)("LocalAttribute")
71
+ ], LocalAttribute);
72
+ exports.LocalAttribute = LocalAttribute;
73
+ //# sourceMappingURL=LocalAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalAttribute.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/LocalAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,4CAOuB;AACvB,gDAAgH;AAChH,uDAAyC;AACzC,sDAAqD;AACrD,uEAIkC;AAmBlC,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,8BAAkB;IAAtD;;QAC6B,wBAAmB,GAAG;YAC3C,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1C,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACzC,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7C,CAAA;QAEwB,uBAAkB,GAAG,CAAC,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;IAuC5F,CAAC;IAjBU,MAAM,CAAC,IAAI,CAAC,KAAsB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,aAAa,CAC7B,SAAsD,EACtD,QAAkB,EAClB,SAAoC;QAEpC,OAAO,IAAI,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