@nmshd/consumption 2.0.0-beta.1 → 2.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildInformation.js +4 -4
- package/dist/consumption/ConsumptionController.js +3 -3
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/modules/attributes/LocalAttributesController.d.ts +7 -2
- package/dist/modules/attributes/LocalAttributesController.js +9 -1
- package/dist/modules/attributes/LocalAttributesController.js.map +1 -1
- package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts +6 -0
- package/dist/modules/attributes/events/AttributeCreatedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeCreatedEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts +6 -0
- package/dist/modules/attributes/events/AttributeDeletedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeDeletedEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts +6 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeUpdatedEvent.d.ts +6 -0
- package/dist/modules/attributes/events/AttributeUpdatedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeUpdatedEvent.js.map +1 -0
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts +6 -0
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js +12 -0
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js.map +1 -0
- package/dist/modules/attributes/events/index.d.ts +5 -0
- package/dist/modules/attributes/events/index.js +22 -0
- package/dist/modules/attributes/events/index.js.map +1 -0
- package/dist/modules/index.d.ts +2 -0
- package/dist/modules/index.js +2 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/requests/events/IncomingRequestReceivedEvent.d.ts +6 -0
- package/dist/modules/requests/events/IncomingRequestReceivedEvent.js +14 -0
- package/dist/modules/requests/events/IncomingRequestReceivedEvent.js.map +1 -0
- package/dist/modules/requests/events/IncomingRequestStatusChangedEvent.d.ts +12 -0
- package/dist/modules/requests/events/IncomingRequestStatusChangedEvent.js +14 -0
- package/dist/modules/requests/events/IncomingRequestStatusChangedEvent.js.map +1 -0
- package/dist/modules/requests/events/OutgoingRequestCreatedEvent.d.ts +6 -0
- package/dist/modules/requests/events/OutgoingRequestCreatedEvent.js +14 -0
- package/dist/modules/requests/events/OutgoingRequestCreatedEvent.js.map +1 -0
- package/dist/modules/requests/events/OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.d.ts +6 -0
- package/dist/modules/requests/events/OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.js +14 -0
- package/dist/modules/requests/events/OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.js.map +1 -0
- package/dist/modules/requests/events/OutgoingRequestStatusChangedEvent.d.ts +12 -0
- package/dist/modules/requests/events/OutgoingRequestStatusChangedEvent.js +14 -0
- package/dist/modules/requests/events/OutgoingRequestStatusChangedEvent.js.map +1 -0
- package/dist/modules/requests/events/index.d.ts +5 -0
- package/dist/modules/requests/events/index.js +22 -0
- package/dist/modules/requests/events/index.js.map +1 -0
- package/dist/modules/requests/incoming/IncomingRequestsController.d.ts +8 -3
- package/dist/modules/requests/incoming/IncomingRequestsController.js +50 -28
- package/dist/modules/requests/incoming/IncomingRequestsController.js.map +1 -1
- package/dist/modules/requests/incoming/complete/CompleteIncomingRequestParameters.d.ts +2 -2
- package/dist/modules/requests/incoming/complete/CompleteIncomingRequestParameters.js +1 -1
- package/dist/modules/requests/incoming/complete/CompleteIncomingRequestParameters.js.map +1 -1
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +1 -2
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +7 -18
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +2 -2
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +8 -3
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js +32 -15
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
- package/dist/modules/settings/local/Setting.d.ts +0 -2
- package/dist/modules/settings/local/Setting.js +0 -6
- package/dist/modules/settings/local/Setting.js.map +1 -1
- package/lib-web/nmshd.consumption.js +2887 -3529
- package/lib-web/nmshd.consumption.js.map +1 -1
- package/lib-web/nmshd.consumption.min.js +1 -1
- package/lib-web/nmshd.consumption.min.js.map +1 -1
- package/package.json +9 -7
package/dist/buildInformation.js
CHANGED
|
@@ -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-beta.
|
|
10
|
-
build: "
|
|
11
|
-
date: "2022-07-
|
|
12
|
-
commit: "
|
|
9
|
+
version: "2.0.0-beta.4",
|
|
10
|
+
build: "54",
|
|
11
|
+
date: "2022-07-26T10:53:29+00:00",
|
|
12
|
+
commit: "96c5bb0818fb7a65fb2c9af8fbdd6ea34d064bb4",
|
|
13
13
|
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.0","ts-simple-nameof":"^1.3.1"},
|
|
14
14
|
libraries: {
|
|
15
15
|
transport: transport_1.buildInformation,
|
|
@@ -30,14 +30,14 @@ class ConsumptionController {
|
|
|
30
30
|
return this._settings;
|
|
31
31
|
}
|
|
32
32
|
async init(requestItemProcessorOverrides = new Map()) {
|
|
33
|
-
this._attributes = await new LocalAttributesController_1.LocalAttributesController(this).init();
|
|
33
|
+
this._attributes = await new LocalAttributesController_1.LocalAttributesController(this, this.transport.eventBus, this.accountController.identity).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) {
|
|
37
37
|
processorRegistry.registerOrReplaceProcessor(itemConstructor, processorConstructor);
|
|
38
38
|
}
|
|
39
|
-
this._outgoingRequests = await new OutgoingRequestsController_1.OutgoingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this).init();
|
|
40
|
-
this._incomingRequests = await new IncomingRequestsController_1.IncomingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this).init();
|
|
39
|
+
this._outgoingRequests = await new OutgoingRequestsController_1.OutgoingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
|
|
40
|
+
this._incomingRequests = await new IncomingRequestsController_1.IncomingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
|
|
41
41
|
this._settings = await new SettingsController_1.SettingsController(this).init();
|
|
42
42
|
return this;
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
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,iBAAiB,CAAA;IACjC,CAAC;IAGD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;IACzB,CAAC;IAEM,KAAK,CAAC,IAAI,CACb,gCAAgC,IAAI,GAAG,EAAgD;QAEvF,IAAI,CAAC,WAAW,GAAG,MAAM,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;
|
|
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,iBAAiB,CAAA;IACjC,CAAC;IAGD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;IACzB,CAAC;IAEM,KAAK,CAAC,IAAI,CACb,gCAAgC,IAAI,GAAG,EAAgD;QAEvF,IAAI,CAAC,WAAW,GAAG,MAAM,IAAI,qDAAyB,CAClD,IAAI,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C,CAAC;YACnE,CAAC,mCAAyB,EAAE,4CAAkC,CAAC;SAClE,CAAC,CAAA;IACN,CAAC;CACJ;AAtED,sDAsEC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EventBus } from "@js-soft/ts-utils";
|
|
1
2
|
import { IIdentityAttributeQuery, IRelationshipAttributeQuery } from "@nmshd/content";
|
|
2
|
-
import { CoreId } from "@nmshd/transport";
|
|
3
|
+
import { CoreAddress, CoreId } from "@nmshd/transport";
|
|
3
4
|
import { ConsumptionBaseController } from "../../consumption";
|
|
4
5
|
import { ConsumptionController } from "../../consumption/ConsumptionController";
|
|
5
6
|
import { ICreateLocalAttributeParams } from "./local/CreateLocalAttributeParams";
|
|
@@ -9,8 +10,12 @@ import { LocalAttribute } from "./local/LocalAttribute";
|
|
|
9
10
|
import { ISucceedLocalAttributeParams } from "./local/SucceedLocalAttributeParams";
|
|
10
11
|
import { IUpdateLocalAttributeParams } from "./local/UpdateLocalAttributeParams";
|
|
11
12
|
export declare class LocalAttributesController extends ConsumptionBaseController {
|
|
13
|
+
private readonly eventBus;
|
|
14
|
+
private readonly identity;
|
|
12
15
|
private attributes;
|
|
13
|
-
constructor(parent: ConsumptionController
|
|
16
|
+
constructor(parent: ConsumptionController, eventBus: EventBus, identity: {
|
|
17
|
+
address: CoreAddress;
|
|
18
|
+
});
|
|
14
19
|
init(): Promise<this>;
|
|
15
20
|
checkValid(attribute: LocalAttribute): boolean;
|
|
16
21
|
findCurrent(attributes: LocalAttribute[]): LocalAttribute | undefined;
|
|
@@ -5,14 +5,17 @@ const content_1 = require("@nmshd/content");
|
|
|
5
5
|
const transport_1 = require("@nmshd/transport");
|
|
6
6
|
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
7
7
|
const consumption_1 = require("../../consumption");
|
|
8
|
+
const events_1 = require("./events");
|
|
8
9
|
const CreateSharedLocalAttributeCopyParams_1 = require("./local/CreateSharedLocalAttributeCopyParams");
|
|
9
10
|
const LocalAttribute_1 = require("./local/LocalAttribute");
|
|
10
11
|
const LocalAttributeShareInfo_1 = require("./local/LocalAttributeShareInfo");
|
|
11
12
|
const QueryTranslator_1 = require("./local/QueryTranslator");
|
|
12
13
|
const SucceedLocalAttributeParams_1 = require("./local/SucceedLocalAttributeParams");
|
|
13
14
|
class LocalAttributesController extends consumption_1.ConsumptionBaseController {
|
|
14
|
-
constructor(parent) {
|
|
15
|
+
constructor(parent, eventBus, identity) {
|
|
15
16
|
super(consumption_1.ConsumptionControllerName.LocalAttributesController, parent);
|
|
17
|
+
this.eventBus = eventBus;
|
|
18
|
+
this.identity = identity;
|
|
16
19
|
}
|
|
17
20
|
async init() {
|
|
18
21
|
await super.init();
|
|
@@ -98,6 +101,7 @@ class LocalAttributesController extends consumption_1.ConsumptionBaseController
|
|
|
98
101
|
async createLocalAttribute(params) {
|
|
99
102
|
const localAttribute = await LocalAttribute_1.LocalAttribute.fromAttribute(params.content);
|
|
100
103
|
await this.attributes.create(localAttribute);
|
|
104
|
+
this.eventBus.publish(new events_1.AttributeCreatedEvent(this.identity.address.toString(), localAttribute));
|
|
101
105
|
return localAttribute;
|
|
102
106
|
}
|
|
103
107
|
async succeedLocalAttribute(params) {
|
|
@@ -117,6 +121,7 @@ class LocalAttributesController extends consumption_1.ConsumptionBaseController
|
|
|
117
121
|
await this.attributes.update(current, currentUpdated);
|
|
118
122
|
const successor = await LocalAttribute_1.LocalAttribute.fromAttribute(parsedParams.successorContent, parsedParams.succeeds);
|
|
119
123
|
await this.attributes.create(successor);
|
|
124
|
+
this.eventBus.publish(new events_1.AttributeSucceededEvent(this.identity.address.toString(), successor));
|
|
120
125
|
return successor;
|
|
121
126
|
}
|
|
122
127
|
async createSharedLocalAttributeCopy(params) {
|
|
@@ -132,6 +137,7 @@ class LocalAttributesController extends consumption_1.ConsumptionBaseController
|
|
|
132
137
|
});
|
|
133
138
|
const sharedLocalAttributeCopy = await LocalAttribute_1.LocalAttribute.fromAttribute(sourceAttribute.content, undefined, shareInfo, parsedParams.attributeId);
|
|
134
139
|
await this.attributes.create(sharedLocalAttributeCopy);
|
|
140
|
+
this.eventBus.publish(new events_1.SharedAttributeCopyCreatedEvent(this.identity.address.toString(), sharedLocalAttributeCopy));
|
|
135
141
|
return sharedLocalAttributeCopy;
|
|
136
142
|
}
|
|
137
143
|
async createPeerLocalAttribute(params) {
|
|
@@ -164,10 +170,12 @@ class LocalAttributesController extends consumption_1.ConsumptionBaseController
|
|
|
164
170
|
succeeds: current.succeeds
|
|
165
171
|
});
|
|
166
172
|
await this.attributes.update(current, updatedLocalAttribute);
|
|
173
|
+
this.eventBus.publish(new events_1.AttributeUpdatedEvent(this.identity.address.toString(), updatedLocalAttribute));
|
|
167
174
|
return updatedLocalAttribute;
|
|
168
175
|
}
|
|
169
176
|
async deleteAttribute(attribute) {
|
|
170
177
|
await this.attributes.delete(attribute);
|
|
178
|
+
this.eventBus.publish(new events_1.AttributeDeletedEvent(this.identity.address.toString(), attribute));
|
|
171
179
|
}
|
|
172
180
|
}
|
|
173
181
|
exports.LocalAttributesController = LocalAttributesController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalAttributesController.js","sourceRoot":"","sources":["../../../src/modules/attributes/LocalAttributesController.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LocalAttributesController.js","sourceRoot":"","sources":["../../../src/modules/attributes/LocalAttributesController.ts"],"names":[],"mappings":";;;AACA,4CAKuB;AACvB,gDAAyG;AACzG,uDAAyC;AACzC,mDAK0B;AAE1B,qCAMiB;AAGjB,uGAGqD;AACrD,2DAAuD;AACvD,6EAAyE;AACzE,6DAAgH;AAChH,qFAA+G;AAG/G,MAAa,yBAA0B,SAAQ,uCAAyB;IAGpE,YACI,MAA6B,EACZ,QAAkB,EAClB,QAAkC;QAEnD,KAAK,CAAC,uCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAA;QAHjD,aAAQ,GAAR,QAAQ,CAAU;QAClB,aAAQ,GAAR,QA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AA;QAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,8BAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAA;QACzG,OAAO,qBAAqB,CAAA;IAChC,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,SAAyB;QAClD,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QACvC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,8BAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,CAAA;IACjG,CAAC;CACJ;AAhND,8DAgNC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalAttribute } from "../local/LocalAttribute";
|
|
3
|
+
export declare class AttributeCreatedEvent extends TransportDataEvent<LocalAttribute> {
|
|
4
|
+
static readonly namespace = "consumption.attributeCreated";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalAttribute);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeCreatedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class AttributeCreatedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(AttributeCreatedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AttributeCreatedEvent = AttributeCreatedEvent;
|
|
11
|
+
AttributeCreatedEvent.namespace = "consumption.attributeCreated";
|
|
12
|
+
//# sourceMappingURL=AttributeCreatedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeCreatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/AttributeCreatedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,qBAAsB,SAAQ,8BAAkC;IAGzE,YAAmB,kBAA0B,EAAE,IAAoB;QAC/D,KAAK,CAAC,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACpE,CAAC;;AALL,sDAMC;AAL0B,+BAAS,GAAG,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalAttribute } from "../local/LocalAttribute";
|
|
3
|
+
export declare class AttributeDeletedEvent extends TransportDataEvent<LocalAttribute> {
|
|
4
|
+
static readonly namespace = "consumption.attributeDeleted";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalAttribute);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeDeletedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class AttributeDeletedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(AttributeDeletedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AttributeDeletedEvent = AttributeDeletedEvent;
|
|
11
|
+
AttributeDeletedEvent.namespace = "consumption.attributeDeleted";
|
|
12
|
+
//# sourceMappingURL=AttributeDeletedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeDeletedEvent.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/AttributeDeletedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,qBAAsB,SAAQ,8BAAkC;IAGzE,YAAmB,kBAA0B,EAAE,IAAoB;QAC/D,KAAK,CAAC,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACpE,CAAC;;AALL,sDAMC;AAL0B,+BAAS,GAAG,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalAttribute } from "../local/LocalAttribute";
|
|
3
|
+
export declare class AttributeSucceededEvent extends TransportDataEvent<LocalAttribute> {
|
|
4
|
+
static readonly namespace = "consumption.attributeSucceded";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalAttribute);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeSucceededEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class AttributeSucceededEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(AttributeSucceededEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AttributeSucceededEvent = AttributeSucceededEvent;
|
|
11
|
+
AttributeSucceededEvent.namespace = "consumption.attributeSucceded";
|
|
12
|
+
//# sourceMappingURL=AttributeSucceededEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeSucceededEvent.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/AttributeSucceededEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,uBAAwB,SAAQ,8BAAkC;IAG3E,YAAmB,kBAA0B,EAAE,IAAoB;QAC/D,KAAK,CAAC,uBAAuB,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACtE,CAAC;;AALL,0DAMC;AAL0B,iCAAS,GAAG,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalAttribute } from "../local/LocalAttribute";
|
|
3
|
+
export declare class AttributeUpdatedEvent extends TransportDataEvent<LocalAttribute> {
|
|
4
|
+
static readonly namespace = "consumption.attributeUpdated";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalAttribute);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeUpdatedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class AttributeUpdatedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(AttributeUpdatedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AttributeUpdatedEvent = AttributeUpdatedEvent;
|
|
11
|
+
AttributeUpdatedEvent.namespace = "consumption.attributeUpdated";
|
|
12
|
+
//# sourceMappingURL=AttributeUpdatedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeUpdatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/AttributeUpdatedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,qBAAsB,SAAQ,8BAAkC;IAGzE,YAAmB,kBAA0B,EAAE,IAAoB;QAC/D,KAAK,CAAC,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACpE,CAAC;;AALL,sDAMC;AAL0B,+BAAS,GAAG,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalAttribute } from "../local/LocalAttribute";
|
|
3
|
+
export declare class SharedAttributeCopyCreatedEvent extends TransportDataEvent<LocalAttribute> {
|
|
4
|
+
static readonly namespace = "consumption.sharedAttributeCopyCreated";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalAttribute);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharedAttributeCopyCreatedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class SharedAttributeCopyCreatedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(SharedAttributeCopyCreatedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SharedAttributeCopyCreatedEvent = SharedAttributeCopyCreatedEvent;
|
|
11
|
+
SharedAttributeCopyCreatedEvent.namespace = "consumption.sharedAttributeCopyCreated";
|
|
12
|
+
//# sourceMappingURL=SharedAttributeCopyCreatedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedAttributeCopyCreatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/SharedAttributeCopyCreatedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,+BAAgC,SAAQ,8BAAkC;IAGnF,YAAmB,kBAA0B,EAAE,IAAoB;QAC/D,KAAK,CAAC,+BAA+B,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IAC9E,CAAC;;AALL,0EAMC;AAL0B,yCAAS,GAAG,wCAAwC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AttributeCreatedEvent"), exports);
|
|
18
|
+
__exportStar(require("./AttributeDeletedEvent"), exports);
|
|
19
|
+
__exportStar(require("./AttributeSucceededEvent"), exports);
|
|
20
|
+
__exportStar(require("./AttributeUpdatedEvent"), exports);
|
|
21
|
+
__exportStar(require("./SharedAttributeCopyCreatedEvent"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/attributes/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,0DAAuC;AACvC,4DAAyC;AACzC,0DAAuC;AACvC,oEAAiD"}
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./attributes/events";
|
|
1
2
|
export * from "./attributes/local/CreateLocalAttributeParams";
|
|
2
3
|
export * from "./attributes/local/CreatePeerLocalAttributeParams";
|
|
3
4
|
export * from "./attributes/local/CreateSharedLocalAttributeCopyParams";
|
|
@@ -8,6 +9,7 @@ export * from "./attributes/local/UpdateLocalAttributeParams";
|
|
|
8
9
|
export * from "./attributes/LocalAttributesController";
|
|
9
10
|
export * from "./drafts/DraftsController";
|
|
10
11
|
export * from "./drafts/local/Draft";
|
|
12
|
+
export * from "./requests/events";
|
|
11
13
|
export * from "./requests/incoming/checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters";
|
|
12
14
|
export * from "./requests/incoming/complete/CompleteIncomingRequestParameters";
|
|
13
15
|
export * from "./requests/incoming/decide/AcceptRequestItemParameters";
|
package/dist/modules/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./attributes/events"), exports);
|
|
17
18
|
__exportStar(require("./attributes/local/CreateLocalAttributeParams"), exports);
|
|
18
19
|
__exportStar(require("./attributes/local/CreatePeerLocalAttributeParams"), exports);
|
|
19
20
|
__exportStar(require("./attributes/local/CreateSharedLocalAttributeCopyParams"), exports);
|
|
@@ -24,6 +25,7 @@ __exportStar(require("./attributes/local/UpdateLocalAttributeParams"), exports);
|
|
|
24
25
|
__exportStar(require("./attributes/LocalAttributesController"), exports);
|
|
25
26
|
__exportStar(require("./drafts/DraftsController"), exports);
|
|
26
27
|
__exportStar(require("./drafts/local/Draft"), exports);
|
|
28
|
+
__exportStar(require("./requests/events"), exports);
|
|
27
29
|
__exportStar(require("./requests/incoming/checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters"), exports);
|
|
28
30
|
__exportStar(require("./requests/incoming/complete/CompleteIncomingRequestParameters"), exports);
|
|
29
31
|
__exportStar(require("./requests/incoming/decide/AcceptRequestItemParameters"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA6D;AAC7D,oFAAiE;AACjE,0FAAuE;AACvE,oEAAiD;AACjD,6EAA0D;AAC1D,iFAA8D;AAC9D,gFAA6D;AAC7D,yEAAsD;AACtD,4DAAyC;AACzC,uDAAoC;AACpC,uHAAoG;AACpG,iGAA8E;AAC9E,yFAAsE;AACtE,8FAA2E;AAC3E,yFAAsE;AACtE,qFAAkE;AAClE,yFAAsE;AACtE,uFAAoE;AACpE,iFAA8D;AAC9D,iGAA8E;AAC9E,6HAA0G;AAC1G,yFAAsE;AACtE,uHAAoG;AACpG,gHAA6F;AAC7F,wFAAqE;AACrE,kFAA+D;AAC/D,iFAA8D;AAC9D,yHAAsG;AACtG,kHAA+F;AAM/F,4GAAyF;AACzF,mFAAgE;AAChE,yFAAsE;AACtE,qHAAkG;AAClG,8GAA2F;AAC3F,6EAA0D;AAC1D,gEAA6C;AAC7C,sEAAmD;AACnD,8EAA2D;AAC3D,iEAA8C;AAC9C,gHAA6F;AAC7F,yJAAsI;AACtI,4GAAyF;AACzF,iFAA8D;AAC9D,wGAAqF;AACrF,0EAAuD;AACvD,2DAAwC;AACxC,gEAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,gFAA6D;AAC7D,oFAAiE;AACjE,0FAAuE;AACvE,oEAAiD;AACjD,6EAA0D;AAC1D,iFAA8D;AAC9D,gFAA6D;AAC7D,yEAAsD;AACtD,4DAAyC;AACzC,uDAAoC;AACpC,oDAAiC;AACjC,uHAAoG;AACpG,iGAA8E;AAC9E,yFAAsE;AACtE,8FAA2E;AAC3E,yFAAsE;AACtE,qFAAkE;AAClE,yFAAsE;AACtE,uFAAoE;AACpE,iFAA8D;AAC9D,iGAA8E;AAC9E,6HAA0G;AAC1G,yFAAsE;AACtE,uHAAoG;AACpG,gHAA6F;AAC7F,wFAAqE;AACrE,kFAA+D;AAC/D,iFAA8D;AAC9D,yHAAsG;AACtG,kHAA+F;AAM/F,4GAAyF;AACzF,mFAAgE;AAChE,yFAAsE;AACtE,qHAAkG;AAClG,8GAA2F;AAC3F,6EAA0D;AAC1D,gEAA6C;AAC7C,sEAAmD;AACnD,8EAA2D;AAC3D,iEAA8C;AAC9C,gHAA6F;AAC7F,yJAAsI;AACtI,4GAAyF;AACzF,iFAA8D;AAC9D,wGAAqF;AACrF,0EAAuD;AACvD,2DAAwC;AACxC,gEAA6C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalRequest } from "../..";
|
|
3
|
+
export declare class IncomingRequestReceivedEvent extends TransportDataEvent<LocalRequest> {
|
|
4
|
+
static readonly namespace = "consumption.incomingRequestReceived";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalRequest);
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncomingRequestReceivedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class IncomingRequestReceivedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(IncomingRequestReceivedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
if (data.isOwn)
|
|
9
|
+
throw new Error("Cannot create this event for an outgoing Request");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.IncomingRequestReceivedEvent = IncomingRequestReceivedEvent;
|
|
13
|
+
IncomingRequestReceivedEvent.namespace = "consumption.incomingRequestReceived";
|
|
14
|
+
//# sourceMappingURL=IncomingRequestReceivedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IncomingRequestReceivedEvent.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/IncomingRequestReceivedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,4BAA6B,SAAQ,8BAAgC;IAG9E,YAAmB,kBAA0B,EAAE,IAAkB;QAC7D,KAAK,CAAC,4BAA4B,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;QAEvE,IAAI,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACvF,CAAC;;AAPL,oEAQC;AAP0B,sCAAS,GAAG,qCAAqC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalRequest } from "../local/LocalRequest";
|
|
3
|
+
import { LocalRequestStatus } from "../local/LocalRequestStatus";
|
|
4
|
+
export interface IncomingRequestStatusChangedEventData {
|
|
5
|
+
request: LocalRequest;
|
|
6
|
+
oldStatus: LocalRequestStatus;
|
|
7
|
+
newStatus: LocalRequestStatus;
|
|
8
|
+
}
|
|
9
|
+
export declare class IncomingRequestStatusChangedEvent extends TransportDataEvent<IncomingRequestStatusChangedEventData> {
|
|
10
|
+
static readonly namespace = "consumption.incomingRequestStatusChanged";
|
|
11
|
+
constructor(eventTargetAddress: string, data: IncomingRequestStatusChangedEventData);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncomingRequestStatusChangedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class IncomingRequestStatusChangedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(IncomingRequestStatusChangedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
if (data.request.isOwn)
|
|
9
|
+
throw new Error("Cannot create this event for an outgoing Request");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.IncomingRequestStatusChangedEvent = IncomingRequestStatusChangedEvent;
|
|
13
|
+
IncomingRequestStatusChangedEvent.namespace = "consumption.incomingRequestStatusChanged";
|
|
14
|
+
//# sourceMappingURL=IncomingRequestStatusChangedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IncomingRequestStatusChangedEvent.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/IncomingRequestStatusChangedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAUrD,MAAa,iCAAkC,SAAQ,8BAAyD;IAG5G,YAAmB,kBAA0B,EAAE,IAA2C;QACtF,KAAK,CAAC,iCAAiC,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;QAE5E,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IAC/F,CAAC;;AAPL,8EAQC;AAP0B,2CAAS,GAAG,0CAA0C,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalRequest } from "../..";
|
|
3
|
+
export declare class OutgoingRequestCreatedEvent extends TransportDataEvent<LocalRequest> {
|
|
4
|
+
static readonly namespace = "consumption.outgoingRequestCreated";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalRequest);
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutgoingRequestCreatedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class OutgoingRequestCreatedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(OutgoingRequestCreatedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
if (!data.isOwn)
|
|
9
|
+
throw new Error("Cannot create this event for an incoming Request");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OutgoingRequestCreatedEvent = OutgoingRequestCreatedEvent;
|
|
13
|
+
OutgoingRequestCreatedEvent.namespace = "consumption.outgoingRequestCreated";
|
|
14
|
+
//# sourceMappingURL=OutgoingRequestCreatedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutgoingRequestCreatedEvent.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/OutgoingRequestCreatedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,2BAA4B,SAAQ,8BAAgC;IAG7E,YAAmB,kBAA0B,EAAE,IAAkB;QAC7D,KAAK,CAAC,2BAA2B,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;QAEtE,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACxF,CAAC;;AAPL,kEAQC;AAP0B,qCAAS,GAAG,oCAAoC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalRequest } from "../..";
|
|
3
|
+
export declare class OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent extends TransportDataEvent<LocalRequest> {
|
|
4
|
+
static readonly namespace = "consumption.outgoingRequestFromRelationshipCreationChangeCreatedAndCompleted";
|
|
5
|
+
constructor(eventTargetAddress: string, data: LocalRequest);
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
if (!data.isOwn)
|
|
9
|
+
throw new Error("Cannot create this event for an incoming Request");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent = OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent;
|
|
13
|
+
OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.namespace = "consumption.outgoingRequestFromRelationshipCreationChangeCreatedAndCompleted";
|
|
14
|
+
//# sourceMappingURL=OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAGrD,MAAa,qEAAsE,SAAQ,8BAAgC;IAGvH,YAAmB,kBAA0B,EAAE,IAAkB;QAC7D,KAAK,CAAC,qEAAqE,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;QAEhH,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACxF,CAAC;;AAPL,sJAQC;AAP0B,+EAAS,GAAG,8EAA8E,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TransportDataEvent } from "@nmshd/transport";
|
|
2
|
+
import { LocalRequest } from "../local/LocalRequest";
|
|
3
|
+
import { LocalRequestStatus } from "../local/LocalRequestStatus";
|
|
4
|
+
export interface OutgoingRequestStatusChangedEventData {
|
|
5
|
+
request: LocalRequest;
|
|
6
|
+
oldStatus: LocalRequestStatus;
|
|
7
|
+
newStatus: LocalRequestStatus;
|
|
8
|
+
}
|
|
9
|
+
export declare class OutgoingRequestStatusChangedEvent extends TransportDataEvent<OutgoingRequestStatusChangedEventData> {
|
|
10
|
+
static readonly namespace = "consumption.outgoingRequestStatusChanged";
|
|
11
|
+
constructor(eventTargetAddress: string, data: OutgoingRequestStatusChangedEventData);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutgoingRequestStatusChangedEvent = void 0;
|
|
4
|
+
const transport_1 = require("@nmshd/transport");
|
|
5
|
+
class OutgoingRequestStatusChangedEvent extends transport_1.TransportDataEvent {
|
|
6
|
+
constructor(eventTargetAddress, data) {
|
|
7
|
+
super(OutgoingRequestStatusChangedEvent.namespace, eventTargetAddress, data);
|
|
8
|
+
if (!data.request.isOwn)
|
|
9
|
+
throw new Error("Cannot create this event for an incoming Request");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OutgoingRequestStatusChangedEvent = OutgoingRequestStatusChangedEvent;
|
|
13
|
+
OutgoingRequestStatusChangedEvent.namespace = "consumption.outgoingRequestStatusChanged";
|
|
14
|
+
//# sourceMappingURL=OutgoingRequestStatusChangedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutgoingRequestStatusChangedEvent.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/OutgoingRequestStatusChangedEvent.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAUrD,MAAa,iCAAkC,SAAQ,8BAAyD;IAG5G,YAAmB,kBAA0B,EAAE,IAA2C;QACtF,KAAK,CAAC,iCAAiC,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;QAE5E,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IAChG,CAAC;;AAPL,8EAQC;AAP0B,2CAAS,GAAG,0CAA0C,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./IncomingRequestReceivedEvent";
|
|
2
|
+
export * from "./IncomingRequestStatusChangedEvent";
|
|
3
|
+
export * from "./OutgoingRequestCreatedEvent";
|
|
4
|
+
export * from "./OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent";
|
|
5
|
+
export * from "./OutgoingRequestStatusChangedEvent";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IncomingRequestReceivedEvent"), exports);
|
|
18
|
+
__exportStar(require("./IncomingRequestStatusChangedEvent"), exports);
|
|
19
|
+
__exportStar(require("./OutgoingRequestCreatedEvent"), exports);
|
|
20
|
+
__exportStar(require("./OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent"), exports);
|
|
21
|
+
__exportStar(require("./OutgoingRequestStatusChangedEvent"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/requests/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA8C;AAC9C,sEAAmD;AACnD,gEAA6C;AAC7C,0GAAuF;AACvF,sEAAmD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventBus } from "@js-soft/ts-utils";
|
|
2
|
+
import { CoreAddress, ICoreId, SynchronizedCollection } from "@nmshd/transport";
|
|
2
3
|
import { ConsumptionBaseController } from "../../../consumption";
|
|
3
4
|
import { ConsumptionController } from "../../../consumption/ConsumptionController";
|
|
4
5
|
import { RequestItemProcessorRegistry } from "../itemProcessors/RequestItemProcessorRegistry";
|
|
@@ -10,10 +11,14 @@ import { DecideRequestParametersJSON } from "./decide/DecideRequestParameters";
|
|
|
10
11
|
import { IReceivedIncomingRequestParameters } from "./received/ReceivedIncomingRequestParameters";
|
|
11
12
|
import { IRequireManualDecisionOfIncomingRequestParameters } from "./requireManualDecision/RequireManualDecisionOfIncomingRequestParameters";
|
|
12
13
|
export declare class IncomingRequestsController extends ConsumptionBaseController {
|
|
13
|
-
private readonly
|
|
14
|
+
private readonly localRequests;
|
|
14
15
|
private readonly processorRegistry;
|
|
16
|
+
private readonly eventBus;
|
|
17
|
+
private readonly identity;
|
|
15
18
|
private readonly decideRequestParamsValidator;
|
|
16
|
-
constructor(
|
|
19
|
+
constructor(localRequests: SynchronizedCollection, processorRegistry: RequestItemProcessorRegistry, parent: ConsumptionController, eventBus: EventBus, identity: {
|
|
20
|
+
address: CoreAddress;
|
|
21
|
+
});
|
|
17
22
|
received(params: IReceivedIncomingRequestParameters): Promise<LocalRequest>;
|
|
18
23
|
private extractInfoFromSource;
|
|
19
24
|
private extractInfoFromMessage;
|