@nmshd/app-runtime 3.2.0 → 3.3.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.
- package/dist/buildInformation.js +4 -4
- package/dist/events/ExternalEventReceivedEvent.d.ts +3 -6
- package/dist/events/ExternalEventReceivedEvent.d.ts.map +1 -1
- package/dist/events/ExternalEventReceivedEvent.js +2 -5
- package/dist/events/ExternalEventReceivedEvent.js.map +1 -1
- package/dist/modules/pushNotifications/IBackboneEventContent.d.ts +1 -1
- package/dist/modules/pushNotifications/IBackboneEventContent.d.ts.map +1 -1
- package/dist/modules/pushNotifications/PushNotificationModule.d.ts +1 -0
- package/dist/modules/pushNotifications/PushNotificationModule.d.ts.map +1 -1
- package/dist/modules/pushNotifications/PushNotificationModule.js +12 -6
- package/dist/modules/pushNotifications/PushNotificationModule.js.map +1 -1
- package/dist/modules/runtimeEvents/MessageReceivedModule.d.ts.map +1 -1
- package/dist/modules/runtimeEvents/MessageReceivedModule.js +1 -2
- package/dist/modules/runtimeEvents/MessageReceivedModule.js.map +1 -1
- package/dist/multiAccount/MultiAccountController.d.ts +2 -0
- package/dist/multiAccount/MultiAccountController.d.ts.map +1 -1
- package/dist/multiAccount/MultiAccountController.js +16 -0
- package/dist/multiAccount/MultiAccountController.js.map +1 -1
- package/dist/multiAccount/data/LocalAccount.d.ts +2 -0
- package/dist/multiAccount/data/LocalAccount.d.ts.map +1 -1
- package/dist/multiAccount/data/LocalAccount.js +5 -0
- package/dist/multiAccount/data/LocalAccount.js.map +1 -1
- package/dist/multiAccount/data/LocalAccountDTO.d.ts +1 -0
- package/dist/multiAccount/data/LocalAccountDTO.d.ts.map +1 -1
- package/dist/multiAccount/data/LocalAccountMapper.d.ts.map +1 -1
- package/dist/multiAccount/data/LocalAccountMapper.js +2 -1
- package/dist/multiAccount/data/LocalAccountMapper.js.map +1 -1
- package/dist/multiAccount/data/LocalAccountSession.d.ts +1 -0
- package/dist/multiAccount/data/LocalAccountSession.d.ts.map +1 -1
- package/package.json +7 -14
- package/lib-web/nmshd.app-runtime.js +0 -23962
- package/lib-web/nmshd.app-runtime.min.js +0 -3
- package/ui5.yaml +0 -9
package/dist/buildInformation.js
CHANGED
@@ -8,10 +8,10 @@ const crypto_1 = require("@nmshd/crypto");
|
|
8
8
|
const runtime_1 = require("@nmshd/runtime");
|
9
9
|
const transport_1 = require("@nmshd/transport");
|
10
10
|
exports.buildInformation = {
|
11
|
-
version: "3.
|
12
|
-
build: "
|
13
|
-
date: "2024-
|
14
|
-
commit: "
|
11
|
+
version: "3.3.0",
|
12
|
+
build: "106",
|
13
|
+
date: "2024-06-06T14:11:07+00:00",
|
14
|
+
commit: "f7dd1f2c150ac1e1d0401713a75b4f02347bb409",
|
15
15
|
dependencies: {"@js-soft/docdb-access-loki":"^1.1.0","@js-soft/native-abstractions":"^1.2.2","lodash":"^4.17.21"},
|
16
16
|
libraries: {
|
17
17
|
serval: ts_serval_1.buildInformation,
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import { DataEvent,
|
2
|
-
export declare class ExternalEventReceivedEvent extends DataEvent<{
|
3
|
-
messages: MessageDTO[];
|
4
|
-
relationships: RelationshipDTO[];
|
5
|
-
}> {
|
1
|
+
import { DataEvent, SyncEverythingResponse } from "@nmshd/runtime";
|
2
|
+
export declare class ExternalEventReceivedEvent extends DataEvent<SyncEverythingResponse> {
|
6
3
|
static readonly namespace: string;
|
7
|
-
constructor(address: string,
|
4
|
+
constructor(address: string, syncEverythingResponse: SyncEverythingResponse);
|
8
5
|
}
|
9
6
|
//# sourceMappingURL=ExternalEventReceivedEvent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExternalEventReceivedEvent.d.ts","sourceRoot":"","sources":["../../src/events/ExternalEventReceivedEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"ExternalEventReceivedEvent.d.ts","sourceRoot":"","sources":["../../src/events/ExternalEventReceivedEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,qBAAa,0BAA2B,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAC7E,gBAAuB,SAAS,EAAE,MAAM,CAA+B;gBAEpD,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB;CAGrF"}
|
@@ -4,11 +4,8 @@ exports.ExternalEventReceivedEvent = void 0;
|
|
4
4
|
const runtime_1 = require("@nmshd/runtime");
|
5
5
|
class ExternalEventReceivedEvent extends runtime_1.DataEvent {
|
6
6
|
static { this.namespace = "app.externalEventReceived"; }
|
7
|
-
constructor(address,
|
8
|
-
super(ExternalEventReceivedEvent.namespace, address,
|
9
|
-
messages,
|
10
|
-
relationships
|
11
|
-
});
|
7
|
+
constructor(address, syncEverythingResponse) {
|
8
|
+
super(ExternalEventReceivedEvent.namespace, address, syncEverythingResponse);
|
12
9
|
}
|
13
10
|
}
|
14
11
|
exports.ExternalEventReceivedEvent = ExternalEventReceivedEvent;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExternalEventReceivedEvent.js","sourceRoot":"","sources":["../../src/events/ExternalEventReceivedEvent.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"ExternalEventReceivedEvent.js","sourceRoot":"","sources":["../../src/events/ExternalEventReceivedEvent.ts"],"names":[],"mappings":";;;AAAA,4CAAmE;AAEnE,MAAa,0BAA2B,SAAQ,mBAAiC;aACtD,cAAS,GAAW,2BAA2B,CAAC;IAEvE,YAAmB,OAAe,EAAE,sBAA8C;QAC9E,KAAK,CAAC,0BAA0B,CAAC,SAAS,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACjF,CAAC;;AALL,gEAMC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IBackboneEventContent.d.ts","sourceRoot":"","sources":["../../../src/modules/pushNotifications/IBackboneEventContent.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,8BAA8B,mCAAmC;IACjE,oBAAoB,yBAAyB;CAChD;AAED,MAAM,WAAW,qBAAqB;IAClC,
|
1
|
+
{"version":3,"file":"IBackboneEventContent.d.ts","sourceRoot":"","sources":["../../../src/modules/pushNotifications/IBackboneEventContent.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,8BAA8B,mCAAmC;IACjE,oBAAoB,yBAAyB;CAChD;AAED,MAAM,WAAW,qBAAqB;IAClC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;CAChB"}
|
@@ -9,6 +9,7 @@ export declare class PushNotificationModule extends AppRuntimeModule<PushNotific
|
|
9
9
|
private handleTokenRegistration;
|
10
10
|
private handleAccountSelected;
|
11
11
|
registerPushTokenForLocalAccount(address: string, token: string): Promise<void>;
|
12
|
+
private registerPushIdentifierForAccount;
|
12
13
|
getNotificationTokenFromConfig(): Result<string>;
|
13
14
|
stop(): void;
|
14
15
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PushNotificationModule.d.ts","sourceRoot":"","sources":["../../../src/modules/pushNotifications/PushNotificationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGtF,MAAM,WAAW,4BAA6B,SAAQ,6BAA6B;CAAG;AAEtF,qBAAa,sBAAuB,SAAQ,gBAAgB,CAAC,4BAA4B,CAAC;IACzE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,IAAI;YAMN,wBAAwB;
|
1
|
+
{"version":3,"file":"PushNotificationModule.d.ts","sourceRoot":"","sources":["../../../src/modules/pushNotifications/PushNotificationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGtF,MAAM,WAAW,4BAA6B,SAAQ,6BAA6B;CAAG;AAEtF,qBAAa,sBAAuB,SAAQ,gBAAgB,CAAC,4BAA4B,CAAC;IACzE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,IAAI;YAMN,wBAAwB;YAqCxB,uBAAuB;YAYvB,qBAAqB;IAWtB,gCAAgC,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAyC9E,gCAAgC;IAMvC,8BAA8B,IAAI,MAAM,CAAC,MAAM,CAAC;IAQhD,IAAI,IAAI,IAAI;CAGtB"}
|
@@ -20,8 +20,9 @@ class PushNotificationModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
20
20
|
this.logger.trace("PushNotificationModule.handleRemoteNotification", event);
|
21
21
|
const notification = event.notification;
|
22
22
|
const content = notification.content;
|
23
|
+
const accRef = await this.runtime.multiAccountController.getAccountReferenceForDevicePushIdentifier(content.devicePushIdentifier);
|
23
24
|
try {
|
24
|
-
const services = await this.runtime.getServices(
|
25
|
+
const services = await this.runtime.getServices(accRef);
|
25
26
|
switch (content.eventName) {
|
26
27
|
case IBackboneEventContent_1.BackboneEventName.DatawalletModificationsCreated:
|
27
28
|
const walletResult = await services.transportServices.account.syncDatawallet();
|
@@ -29,7 +30,7 @@ class PushNotificationModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
29
30
|
this.logger.error(walletResult);
|
30
31
|
return;
|
31
32
|
}
|
32
|
-
this.runtime.eventBus.publish(new events_1.DatawalletSynchronizedEvent(
|
33
|
+
this.runtime.eventBus.publish(new events_1.DatawalletSynchronizedEvent(accRef));
|
33
34
|
break;
|
34
35
|
case IBackboneEventContent_1.BackboneEventName.ExternalEventCreated:
|
35
36
|
const syncResult = await services.transportServices.account.syncEverything();
|
@@ -37,7 +38,7 @@ class PushNotificationModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
37
38
|
this.logger.error(syncResult);
|
38
39
|
return;
|
39
40
|
}
|
40
|
-
this.runtime.eventBus.publish(new events_1.ExternalEventReceivedEvent(
|
41
|
+
this.runtime.eventBus.publish(new events_1.ExternalEventReceivedEvent(accRef, syncResult.value));
|
41
42
|
break;
|
42
43
|
default:
|
43
44
|
break;
|
@@ -76,6 +77,7 @@ class PushNotificationModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
76
77
|
const services = await this.runtime.getServices(address);
|
77
78
|
const deviceResult = await services.transportServices.account.getDeviceInfo();
|
78
79
|
if (deviceResult.isError) {
|
80
|
+
this.logger.error(deviceResult.error);
|
79
81
|
throw AppRuntimeErrors_1.AppRuntimeErrors.modules.pushNotificationModule.tokenRegistrationNotPossible("No device for this account found", deviceResult.error).logWith(this.logger);
|
80
82
|
}
|
81
83
|
const platform = this.runtime.nativeEnvironment.deviceInfoAccess.deviceInfo.pushService;
|
@@ -89,11 +91,15 @@ class PushNotificationModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
89
91
|
environment: environment
|
90
92
|
});
|
91
93
|
if (result.isError) {
|
94
|
+
this.logger.error(result.error);
|
92
95
|
throw AppRuntimeErrors_1.AppRuntimeErrors.modules.pushNotificationModule.tokenRegistrationNotPossible(result.error.message, result.error).logWith(this.logger);
|
93
96
|
}
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
+
this.logger.info(`PushNotificationModule.registerPushTokenForLocalAccount: Token ${handle} registered for account ${address} on platform ${platform}${environment ? ` (${environment})` : ""} and appId ${appId}`);
|
98
|
+
await this.registerPushIdentifierForAccount(address, result.value.devicePushIdentifier);
|
99
|
+
}
|
100
|
+
async registerPushIdentifierForAccount(address, devicePushIdentifier) {
|
101
|
+
this.logger.trace("PushNotificationModule.registerPushIdentifierForAccount", { address, pushIdentifier: devicePushIdentifier });
|
102
|
+
await this.runtime.multiAccountController.updatePushIdentifierForAccount(address, devicePushIdentifier);
|
97
103
|
}
|
98
104
|
getNotificationTokenFromConfig() {
|
99
105
|
const pushTokenResult = this.runtime.nativeEnvironment.configAccess.get("pushToken");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PushNotificationModule.js","sourceRoot":"","sources":["../../../src/modules/pushNotifications/PushNotificationModule.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"PushNotificationModule.js","sourceRoot":"","sources":["../../../src/modules/pushNotifications/PushNotificationModule.ts"],"names":[],"mappings":";;;AAAA,sEAA4G;AAC5G,gDAA2C;AAC3C,6DAA0D;AAC1D,yCAA6G;AAC7G,0DAAsF;AACtF,mEAAmF;AAInF,MAAa,sBAAuB,SAAQ,mCAA8C;IAC/E,KAAK,CAAC,IAAI;QACb,qBAAqB;IACzB,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,sBAAsB,CAAC,6CAAuB,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/F,IAAI,CAAC,sBAAsB,CAAC,yDAAmC,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1G,IAAI,CAAC,gBAAgB,CAAC,6BAAoB,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACvF,CAAC;IAEO,KAAK,CAAC,wBAAwB,CAAC,KAA8B;QACjE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iDAAiD,EAAE,KAAK,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACxC,MAAM,OAAO,GAAG,YAAY,CAAC,OAAgC,CAAC;QAE9D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,0CAA0C,CAAC,OAAO,CAAC,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AEO,KAAK,CAAC,gCAAgC,CAAC,OAAe,EAAE,oBAA4B;QACxF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yDAAyD,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAEhI,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAC5G,CAAC;IAEM,8BAA8B;QACjC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACrF,IAAI,eAAe,CAAC,OAAO,EAAE,CAAC;YAC1B,iBAAM,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,iBAAM,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAEM,IAAI;QACP,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACpC,CAAC;CACJ;AAjID,wDAiIC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MessageReceivedModule.d.ts","sourceRoot":"","sources":["../../../src/modules/runtimeEvents/MessageReceivedModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEtF,MAAM,WAAW,2BAA4B,SAAQ,6BAA6B;CAAG;AAErF,qBAAa,0BAA2B,SAAQ,eAAe;CAAG;AAElE,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,2BAA2B,CAAC;IACvE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,IAAI;YAIN,qBAAqB;
|
1
|
+
{"version":3,"file":"MessageReceivedModule.d.ts","sourceRoot":"","sources":["../../../src/modules/runtimeEvents/MessageReceivedModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEtF,MAAM,WAAW,2BAA4B,SAAQ,6BAA6B;CAAG;AAErF,qBAAa,0BAA2B,SAAQ,eAAe;CAAG;AAElE,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,2BAA2B,CAAC;IACvE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,IAAI;YAIN,qBAAqB;IAa5B,IAAI,IAAI,IAAI;CAGtB"}
|
@@ -20,8 +20,7 @@ class MessageReceivedModule extends AppRuntimeModule_1.AppRuntimeModule {
|
|
20
20
|
const messageDVO = await services.dataViewExpander.expandMessageDTO(event.data);
|
21
21
|
switch (messageDVO.type) {
|
22
22
|
case "MailDVO":
|
23
|
-
|
24
|
-
this.runtime.eventBus.publish(new events_1.MailReceivedEvent(event.eventTargetAddress, mail));
|
23
|
+
this.runtime.eventBus.publish(new events_1.MailReceivedEvent(event.eventTargetAddress, messageDVO));
|
25
24
|
break;
|
26
25
|
default:
|
27
26
|
break;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MessageReceivedModule.js","sourceRoot":"","sources":["../../../src/modules/runtimeEvents/MessageReceivedModule.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"MessageReceivedModule.js","sourceRoot":"","sources":["../../../src/modules/runtimeEvents/MessageReceivedModule.ts"],"names":[],"mappings":";;;AAAA,4CAAsD;AACtD,2DAAwD;AACxD,yCAAiD;AACjD,0DAAsF;AAItF,MAAa,0BAA2B,SAAQ,iCAAe;CAAG;AAAlE,gEAAkE;AAElE,MAAa,qBAAsB,SAAQ,mCAA6C;IAC7E,KAAK,CAAC,IAAI;QACb,qBAAqB;IACzB,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,gBAAgB,CAAC,8BAAoB,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACvF,CAAC;IAEO,KAAK,CAAC,qBAAqB,CAAC,KAA2B;QAC3D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1E,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEhF,QAAQ,UAAU,CAAC,IAAI,EAAE,CAAC;YACtB,KAAK,SAAS;gBACV,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,0BAAiB,CAAC,KAAK,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;gBAC3F,MAAM;YACV;gBACI,MAAM;QACd,CAAC;IACL,CAAC;IAEM,IAAI;QACP,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACpC,CAAC;CACJ;AAzBD,sDAyBC"}
|
@@ -31,5 +31,7 @@ export declare class MultiAccountController {
|
|
31
31
|
private updateLocalAccountAddress;
|
32
32
|
renameLocalAccount(id: CoreId, name: string): Promise<void>;
|
33
33
|
updateLastAccessedAt(accountId: string): Promise<void>;
|
34
|
+
updatePushIdentifierForAccount(address: string, devicePushIdentifier: string): Promise<void>;
|
35
|
+
getAccountReferenceForDevicePushIdentifier(devicePushIdentifier: string): Promise<string>;
|
34
36
|
}
|
35
37
|
//# sourceMappingURL=MultiAccountController.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MultiAccountController.d.ts","sourceRoot":"","sources":["../../src/multiAccount/MultiAccountController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EACH,iBAAiB,EAIjB,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,SAAS,EAGZ,MAAM,kBAAkB,CAAC;AAC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E,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY5F,0CAA0C,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAOzG"}
|
@@ -174,6 +174,22 @@ class MultiAccountController {
|
|
174
174
|
localAccount.lastAccessedAt = transport_1.CoreDate.utc();
|
175
175
|
await this._localAccounts.update(document, localAccount);
|
176
176
|
}
|
177
|
+
async updatePushIdentifierForAccount(address, devicePushIdentifier) {
|
178
|
+
const document = await this._localAccounts.findOne({ address });
|
179
|
+
if (!document) {
|
180
|
+
throw transport_1.CoreErrors.general.recordNotFound(LocalAccount_1.LocalAccount, address).logWith(this._log);
|
181
|
+
}
|
182
|
+
const localAccount = LocalAccount_1.LocalAccount.from(document);
|
183
|
+
localAccount.devicePushIdentifier = devicePushIdentifier;
|
184
|
+
await this._localAccounts.update(document, localAccount);
|
185
|
+
}
|
186
|
+
async getAccountReferenceForDevicePushIdentifier(devicePushIdentifier) {
|
187
|
+
const document = await this._localAccounts.findOne({ devicePushIdentifier });
|
188
|
+
if (!document)
|
189
|
+
throw new Error(`Could not resolve a local account reference for the device push identifier '${devicePushIdentifier}'.`);
|
190
|
+
const localAccount = LocalAccount_1.LocalAccount.from(document);
|
191
|
+
return localAccount.id.toString();
|
192
|
+
}
|
177
193
|
}
|
178
194
|
exports.MultiAccountController = MultiAccountController;
|
179
195
|
//# sourceMappingURL=MultiAccountController.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MultiAccountController.js","sourceRoot":"","sources":["../../src/multiAccount/MultiAccountController.ts"],"names":[],"mappings":";;;AAGA,gDAW0B;AAG1B,sDAAmD;AAEnD,MAAa,sBAAsB;IAS/B,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAGD,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,YACI,SAAoB,EACH,MAAiB,EACjB,kBAAoC,EACpC,cAA8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,oBAAoB,EAAE,CAAC,CAAC;QAC7E,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,+EAA+E,oBAAoB,IAAI,CAAC,CAAC;QAExI,MAAM,YAAY,GAAG,2BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,OAAO,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;CACJ;AAhQD,wDAgQC"}
|
@@ -7,6 +7,7 @@ export interface ILocalAccount extends ICoreSerializable {
|
|
7
7
|
directory: string;
|
8
8
|
order: number;
|
9
9
|
lastAccessedAt?: ICoreDate;
|
10
|
+
devicePushIdentifier?: string;
|
10
11
|
}
|
11
12
|
export declare class LocalAccount extends CoreSerializable implements ILocalAccount {
|
12
13
|
id: CoreId;
|
@@ -16,6 +17,7 @@ export declare class LocalAccount extends CoreSerializable implements ILocalAcco
|
|
16
17
|
directory: string;
|
17
18
|
order: number;
|
18
19
|
lastAccessedAt?: CoreDate;
|
20
|
+
devicePushIdentifier?: string;
|
19
21
|
static from(value: ILocalAccount): LocalAccount;
|
20
22
|
}
|
21
23
|
//# sourceMappingURL=LocalAccount.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccount.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAExH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"LocalAccount.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAExH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,qBACa,YAAa,SAAQ,gBAAiB,YAAW,aAAa;IAGhE,EAAE,EAAE,MAAM,CAAC;IAIX,OAAO,CAAC,EAAE,WAAW,CAAC;IAItB,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,KAAK,CAAC;IAIb,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,MAAM,CAAC;IAId,cAAc,CAAC,EAAE,QAAQ,CAAC;IAI1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;WAEvB,IAAI,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY;CAGzD"}
|
@@ -53,6 +53,11 @@ __decorate([
|
|
53
53
|
(0, ts_serval_1.serialize)(),
|
54
54
|
__metadata("design:type", transport_1.CoreDate)
|
55
55
|
], LocalAccount.prototype, "lastAccessedAt", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
58
|
+
(0, ts_serval_1.serialize)(),
|
59
|
+
__metadata("design:type", String)
|
60
|
+
], LocalAccount.prototype, "devicePushIdentifier", void 0);
|
56
61
|
exports.LocalAccount = LocalAccount = __decorate([
|
57
62
|
(0, ts_serval_1.type)("LocalAccount")
|
58
63
|
], LocalAccount);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccount.js","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,gDAAwH;
|
1
|
+
{"version":3,"file":"LocalAccount.js","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,gDAAwH;AAcjH,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAgB;IAiCvC,MAAM,CAAC,IAAI,CAAC,KAAoB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AApCY,oCAAY;AAGd;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,kBAAM;wCAAC;AAIX;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACK,uBAAW;6CAAC;AAItB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;0CACQ;AAIb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;2CACQ;AAIb;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;+CACa;AAIlB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;2CACS;AAId;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACY,oBAAQ;oDAAC;AAI1B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;0DACyB;uBA/B5B,YAAY;IADxB,IAAA,gBAAI,EAAC,cAAc,CAAC;GACR,YAAY,CAoCxB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccountDTO.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"LocalAccountDTO.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountDTO.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccountMapper.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBAAa,kBAAkB;WACb,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,eAAe;
|
1
|
+
{"version":3,"file":"LocalAccountMapper.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBAAa,kBAAkB;WACb,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,eAAe;CAY/E"}
|
@@ -10,7 +10,8 @@ class LocalAccountMapper {
|
|
10
10
|
realm: localAccount.realm,
|
11
11
|
directory: localAccount.directory.toString(),
|
12
12
|
order: localAccount.order,
|
13
|
-
lastAccessedAt: localAccount.lastAccessedAt?.toString()
|
13
|
+
lastAccessedAt: localAccount.lastAccessedAt?.toString(),
|
14
|
+
devicePushIdentifier: localAccount.devicePushIdentifier
|
14
15
|
};
|
15
16
|
}
|
16
17
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccountMapper.js","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IACpB,MAAM,CAAC,iBAAiB,CAAC,YAA0B;QACtD,OAAO;YACH,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE;YAC9B,OAAO,EAAE,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE;YACzC,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE;YAC5C,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,cAAc,EAAE,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE;SAC1D,CAAC;IACN,CAAC;CACJ;
|
1
|
+
{"version":3,"file":"LocalAccountMapper.js","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IACpB,MAAM,CAAC,iBAAiB,CAAC,YAA0B;QACtD,OAAO;YACH,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE;YAC9B,OAAO,EAAE,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE;YACzC,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE;YAC5C,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,cAAc,EAAE,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE;YACvD,oBAAoB,EAAE,YAAY,CAAC,oBAAoB;SAC1D,CAAC;IACN,CAAC;CACJ;AAbD,gDAaC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAccountSession.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,eAAe,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,CAAC,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"LocalAccountSession.d.ts","sourceRoot":"","sources":["../../../src/multiAccount/data/LocalAccountSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,eAAe,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,CAAC,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nmshd/app-runtime",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.0",
|
4
4
|
"description": "The App Runtime",
|
5
5
|
"homepage": "https://enmeshed.eu",
|
6
6
|
"repository": {
|
@@ -13,20 +13,13 @@
|
|
13
13
|
"main": "dist/index.js",
|
14
14
|
"types": "dist/index.d.ts",
|
15
15
|
"files": [
|
16
|
-
"dist"
|
17
|
-
"lib-web/nmshd.app-runtime.js",
|
18
|
-
"lib-web/nmshd.app-runtime.min.js",
|
19
|
-
"ui5.yaml"
|
16
|
+
"dist"
|
20
17
|
],
|
21
18
|
"scripts": {
|
22
|
-
"build": "npm run build:node
|
23
|
-
"build:ci": "npm run build:node && ../../.ci/writeBuildInformation.sh
|
19
|
+
"build": "npm run build:node",
|
20
|
+
"build:ci": "npm run build:node && ../../.ci/writeBuildInformation.sh",
|
24
21
|
"build:node": "tsc -p tsconfig.json",
|
25
|
-
"build:notest": "npm run build:node
|
26
|
-
"bundle": "npm run bundle:lib && npm run bundle:min",
|
27
|
-
"bundle:lib": "webpack --stats-all --config webpack.config.js",
|
28
|
-
"bundle:min": "webpack --stats-all --config webpack.min.config.js",
|
29
|
-
"bundle:notest": "npm run bundle:lib && npm run bundle:min",
|
22
|
+
"build:notest": "npm run build:node",
|
30
23
|
"cdep": "tsc && madge --circular dist",
|
31
24
|
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
32
25
|
"test": "jest --forceExit",
|
@@ -56,12 +49,12 @@
|
|
56
49
|
},
|
57
50
|
"devDependencies": {
|
58
51
|
"@js-soft/web-logger": "^1.0.4",
|
59
|
-
"@types/lodash": "^4.17.
|
52
|
+
"@types/lodash": "^4.17.4",
|
60
53
|
"@types/lokijs": "^1.5.14",
|
61
54
|
"@types/luxon": "^3.4.2"
|
62
55
|
},
|
63
56
|
"peerDependencies": {
|
64
|
-
"@nmshd/runtime": "^4.
|
57
|
+
"@nmshd/runtime": "^4.11.0"
|
65
58
|
},
|
66
59
|
"publishConfig": {
|
67
60
|
"access": "public",
|