@nmshd/app-runtime 7.0.0-alpha.4 → 7.0.0-alpha.41
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/README.md +1 -1
- package/dist/AppConfig.d.ts.map +1 -1
- package/dist/AppConfig.js +13 -75
- package/dist/AppConfig.js.map +1 -1
- package/dist/AppRuntime.d.ts +11 -18
- package/dist/AppRuntime.d.ts.map +1 -1
- package/dist/AppRuntime.js +18 -48
- package/dist/AppRuntime.js.map +1 -1
- package/dist/AppRuntimeErrors.d.ts +19 -14
- package/dist/AppRuntimeErrors.d.ts.map +1 -1
- package/dist/AppRuntimeErrors.js +35 -26
- package/dist/AppRuntimeErrors.js.map +1 -1
- package/dist/AppStringProcessor.d.ts +7 -9
- package/dist/AppStringProcessor.d.ts.map +1 -1
- package/dist/AppStringProcessor.js +75 -49
- package/dist/AppStringProcessor.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/{natives/events → events}/RemoteNotificationEvent.d.ts +2 -2
- package/dist/events/RemoteNotificationEvent.d.ts.map +1 -0
- package/dist/{natives/events → events}/RemoteNotificationEvent.js +2 -2
- package/dist/events/RemoteNotificationEvent.js.map +1 -0
- package/dist/{natives/events → events}/RemoteNotificationRegistrationEvent.d.ts +2 -2
- package/dist/events/RemoteNotificationRegistrationEvent.d.ts.map +1 -0
- package/dist/{natives/events → events}/RemoteNotificationRegistrationEvent.js +2 -2
- package/dist/events/RemoteNotificationRegistrationEvent.js.map +1 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +2 -0
- package/dist/events/index.js.map +1 -1
- package/dist/extensibility/index.d.ts +0 -1
- package/dist/extensibility/index.d.ts.map +1 -1
- package/dist/extensibility/index.js +0 -1
- package/dist/extensibility/index.js.map +1 -1
- package/dist/extensibility/ui/IUIBridge.d.ts +3 -4
- package/dist/extensibility/ui/IUIBridge.d.ts.map +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/INotificationAccess.d.ts +22 -0
- package/dist/infrastructure/INotificationAccess.d.ts.map +1 -0
- package/dist/{AppRuntimeServices.js → infrastructure/INotificationAccess.js} +1 -1
- package/dist/infrastructure/INotificationAccess.js.map +1 -0
- package/dist/infrastructure/index.d.ts +2 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/{extensibility/facades → infrastructure}/index.js +1 -1
- package/dist/infrastructure/index.js.map +1 -0
- package/dist/modules/AppRuntimeModule.d.ts +0 -1
- package/dist/modules/AppRuntimeModule.d.ts.map +1 -1
- package/dist/modules/AppRuntimeModule.js +0 -4
- package/dist/modules/AppRuntimeModule.js.map +1 -1
- package/dist/modules/PushNotificationModule.d.ts +0 -2
- package/dist/modules/PushNotificationModule.d.ts.map +1 -1
- package/dist/modules/PushNotificationModule.js +11 -14
- package/dist/modules/PushNotificationModule.js.map +1 -1
- package/dist/modules/SSEModule.js +3 -3
- package/dist/modules/SSEModule.js.map +1 -1
- package/dist/modules/appEvents/MailReceivedModule.d.ts +0 -3
- package/dist/modules/appEvents/MailReceivedModule.d.ts.map +1 -1
- package/dist/modules/appEvents/MailReceivedModule.js +2 -6
- package/dist/modules/appEvents/MailReceivedModule.js.map +1 -1
- package/dist/modules/appEvents/OnboardingChangeReceivedModule.d.ts +0 -3
- package/dist/modules/appEvents/OnboardingChangeReceivedModule.d.ts.map +1 -1
- package/dist/modules/appEvents/OnboardingChangeReceivedModule.js +2 -6
- package/dist/modules/appEvents/OnboardingChangeReceivedModule.js.map +1 -1
- package/dist/modules/appEvents/RelationshipTemplateProcessedModule.d.ts.map +1 -1
- package/dist/modules/appEvents/RelationshipTemplateProcessedModule.js +4 -4
- package/dist/modules/appEvents/RelationshipTemplateProcessedModule.js.map +1 -1
- package/dist/modules/runtimeEvents/IdentityDeletionProcessStatusChangedModule.d.ts +0 -3
- package/dist/modules/runtimeEvents/IdentityDeletionProcessStatusChangedModule.d.ts.map +1 -1
- package/dist/modules/runtimeEvents/IdentityDeletionProcessStatusChangedModule.js +1 -5
- package/dist/modules/runtimeEvents/IdentityDeletionProcessStatusChangedModule.js.map +1 -1
- package/dist/modules/runtimeEvents/MessageReceivedModule.d.ts +0 -3
- package/dist/modules/runtimeEvents/MessageReceivedModule.d.ts.map +1 -1
- package/dist/modules/runtimeEvents/MessageReceivedModule.js +1 -5
- package/dist/modules/runtimeEvents/MessageReceivedModule.js.map +1 -1
- package/dist/modules/runtimeEvents/RelationshipChangedModule.d.ts +0 -3
- package/dist/modules/runtimeEvents/RelationshipChangedModule.d.ts.map +1 -1
- package/dist/modules/runtimeEvents/RelationshipChangedModule.js +1 -5
- package/dist/modules/runtimeEvents/RelationshipChangedModule.js.map +1 -1
- package/dist/multiAccount/MultiAccountController.d.ts.map +1 -1
- package/dist/multiAccount/MultiAccountController.js +6 -6
- package/dist/multiAccount/MultiAccountController.js.map +1 -1
- package/dist/multiAccount/data/LocalAccountSession.d.ts +0 -2
- package/dist/multiAccount/data/LocalAccountSession.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/AppRuntimeError.d.ts +0 -6
- package/dist/AppRuntimeError.d.ts.map +0 -1
- package/dist/AppRuntimeError.js +0 -12
- package/dist/AppRuntimeError.js.map +0 -1
- package/dist/AppRuntimeServices.d.ts +0 -6
- package/dist/AppRuntimeServices.d.ts.map +0 -1
- package/dist/AppRuntimeServices.js.map +0 -1
- package/dist/UserfriendlyApplicationError.d.ts +0 -8
- package/dist/UserfriendlyApplicationError.d.ts.map +0 -1
- package/dist/UserfriendlyApplicationError.js +0 -18
- package/dist/UserfriendlyApplicationError.js.map +0 -1
- package/dist/UserfriendlyResult.d.ts +0 -5
- package/dist/UserfriendlyResult.d.ts.map +0 -1
- package/dist/UserfriendlyResult.js +0 -8
- package/dist/UserfriendlyResult.js.map +0 -1
- package/dist/extensibility/AppServices.d.ts +0 -8
- package/dist/extensibility/AppServices.d.ts.map +0 -1
- package/dist/extensibility/AppServices.js +0 -11
- package/dist/extensibility/AppServices.js.map +0 -1
- package/dist/extensibility/DVOs/RelationshipItemsDVO.d.ts +0 -4
- package/dist/extensibility/DVOs/RelationshipItemsDVO.d.ts.map +0 -1
- package/dist/extensibility/DVOs/RelationshipItemsDVO.js +0 -3
- package/dist/extensibility/DVOs/RelationshipItemsDVO.js.map +0 -1
- package/dist/extensibility/facades/AppRelationshipFacade.d.ts +0 -18
- package/dist/extensibility/facades/AppRelationshipFacade.d.ts.map +0 -1
- package/dist/extensibility/facades/AppRelationshipFacade.js +0 -60
- package/dist/extensibility/facades/AppRelationshipFacade.js.map +0 -1
- package/dist/extensibility/facades/AppRuntimeFacade.d.ts +0 -14
- package/dist/extensibility/facades/AppRuntimeFacade.d.ts.map +0 -1
- package/dist/extensibility/facades/AppRuntimeFacade.js +0 -29
- package/dist/extensibility/facades/AppRuntimeFacade.js.map +0 -1
- package/dist/extensibility/facades/index.d.ts +0 -2
- package/dist/extensibility/facades/index.d.ts.map +0 -1
- package/dist/extensibility/facades/index.js.map +0 -1
- package/dist/natives/INativeBootstrapper.d.ts +0 -8
- package/dist/natives/INativeBootstrapper.d.ts.map +0 -1
- package/dist/natives/INativeBootstrapper.js +0 -3
- package/dist/natives/INativeBootstrapper.js.map +0 -1
- package/dist/natives/INativeConfigAccess.d.ts +0 -8
- package/dist/natives/INativeConfigAccess.d.ts.map +0 -1
- package/dist/natives/INativeConfigAccess.js +0 -3
- package/dist/natives/INativeConfigAccess.js.map +0 -1
- package/dist/natives/INativeEnvironment.d.ts +0 -11
- package/dist/natives/INativeEnvironment.d.ts.map +0 -1
- package/dist/natives/INativeEnvironment.js +0 -3
- package/dist/natives/INativeEnvironment.js.map +0 -1
- package/dist/natives/INativeNotificationAccess.d.ts +0 -21
- package/dist/natives/INativeNotificationAccess.d.ts.map +0 -1
- package/dist/natives/INativeNotificationAccess.js +0 -3
- package/dist/natives/INativeNotificationAccess.js.map +0 -1
- package/dist/natives/INativeTranslationProvider.d.ts +0 -7
- package/dist/natives/INativeTranslationProvider.d.ts.map +0 -1
- package/dist/natives/INativeTranslationProvider.js +0 -3
- package/dist/natives/INativeTranslationProvider.js.map +0 -1
- package/dist/natives/NativeEvent.d.ts +0 -4
- package/dist/natives/NativeEvent.d.ts.map +0 -1
- package/dist/natives/NativeEvent.js +0 -8
- package/dist/natives/NativeEvent.js.map +0 -1
- package/dist/natives/events/AppReadyEvent.d.ts +0 -6
- package/dist/natives/events/AppReadyEvent.d.ts.map +0 -1
- package/dist/natives/events/AppReadyEvent.js +0 -12
- package/dist/natives/events/AppReadyEvent.js.map +0 -1
- package/dist/natives/events/RemoteNotificationEvent.d.ts.map +0 -1
- package/dist/natives/events/RemoteNotificationEvent.js.map +0 -1
- package/dist/natives/events/RemoteNotificationRegistrationEvent.d.ts.map +0 -1
- package/dist/natives/events/RemoteNotificationRegistrationEvent.js.map +0 -1
- package/dist/natives/events/index.d.ts +0 -4
- package/dist/natives/events/index.d.ts.map +0 -1
- package/dist/natives/events/index.js +0 -20
- package/dist/natives/events/index.js.map +0 -1
- package/dist/natives/index.d.ts +0 -8
- package/dist/natives/index.d.ts.map +0 -1
- package/dist/natives/index.js +0 -24
- package/dist/natives/index.js.map +0 -1
package/README.md
CHANGED
@@ -18,7 +18,7 @@ Share your feedback with the enmeshed team by contributing to the [discussions](
|
|
18
18
|
|
19
19
|
## Contribute
|
20
20
|
|
21
|
-
Contribution to this project is highly
|
21
|
+
Contribution to this project is highly appreciated. Head over to our [contribution guide](https://github.com/nmshd/.github/blob/main/CONTRIBUTING.md) to learn more.
|
22
22
|
|
23
23
|
## License
|
24
24
|
|
package/dist/AppConfig.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppConfig.d.ts","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,gB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a,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C,oBAAoB,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IACpD,oCAAoC,EAAE,OAAO,CAAC;IAC9C,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAC;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAChD,oBAAoB,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IACpD,oCAAoC,CAAC,EAAE,OAAO,CAAC;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3F;AAED,wBAAgB,eAAe,CAAC,GAAG,OAAO,EAAE,CAAC,kBAAkB,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,CA4BzF"}
|
package/dist/AppConfig.js
CHANGED
@@ -8,82 +8,20 @@ function createAppConfig(...configs) {
|
|
8
8
|
pushService: "none",
|
9
9
|
allowMultipleAccountsWithSameAddress: false,
|
10
10
|
databaseFolder: "./data",
|
11
|
-
transportLibrary: {
|
12
|
-
datawalletEnabled: true
|
13
|
-
},
|
11
|
+
transportLibrary: { datawalletEnabled: true },
|
14
12
|
modules: {
|
15
|
-
pushNotification: {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
},
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
27
|
-
onboardingChangeReceived: {
|
28
|
-
name: "onboardingChangeReceived",
|
29
|
-
displayName: "Onboarding Change Received Module",
|
30
|
-
location: "onboardingChangeReceived",
|
31
|
-
enabled: true
|
32
|
-
},
|
33
|
-
identityDeletionProcessStatusChanged: {
|
34
|
-
name: "identityDeletionProcessStatusChanged",
|
35
|
-
displayName: "Identity Deletion Process Status Changed Module",
|
36
|
-
location: "identityDeletionProcessStatusChanged",
|
37
|
-
enabled: true
|
38
|
-
},
|
39
|
-
messageReceived: {
|
40
|
-
name: "messageReceived",
|
41
|
-
displayName: "Message Received Module",
|
42
|
-
location: "messageReceived",
|
43
|
-
enabled: true
|
44
|
-
},
|
45
|
-
relationshipChanged: {
|
46
|
-
name: "relationshipChanged",
|
47
|
-
displayName: "Relationship Changed Module",
|
48
|
-
location: "relationshipChanged",
|
49
|
-
enabled: true
|
50
|
-
},
|
51
|
-
relationshipTemplateProcessed: {
|
52
|
-
name: "relationshipTemplateProcessed",
|
53
|
-
displayName: "Relationship Template Processed",
|
54
|
-
location: "relationshipTemplateProcessed",
|
55
|
-
enabled: true
|
56
|
-
},
|
57
|
-
sse: {
|
58
|
-
name: "SSEModule",
|
59
|
-
displayName: "SSE Module",
|
60
|
-
location: "sse",
|
61
|
-
enabled: false
|
62
|
-
},
|
63
|
-
decider: {
|
64
|
-
displayName: "Decider Module",
|
65
|
-
name: "DeciderModule",
|
66
|
-
location: "@nmshd/runtime:DeciderModule",
|
67
|
-
enabled: true
|
68
|
-
},
|
69
|
-
request: {
|
70
|
-
displayName: "Request Module",
|
71
|
-
name: "RequestModule",
|
72
|
-
location: "@nmshd/runtime:RequestModule",
|
73
|
-
enabled: true
|
74
|
-
},
|
75
|
-
attributeListener: {
|
76
|
-
enabled: true,
|
77
|
-
name: "AttributeListenerModule",
|
78
|
-
displayName: "Attribute Listener",
|
79
|
-
location: "@nmshd/runtime:AttributeListenerModule"
|
80
|
-
},
|
81
|
-
notification: {
|
82
|
-
enabled: true,
|
83
|
-
name: "NotificationModule",
|
84
|
-
displayName: "Notification Module",
|
85
|
-
location: "@nmshd/runtime:NotificationModule"
|
86
|
-
}
|
13
|
+
pushNotification: { enabled: true, location: "pushNotification" },
|
14
|
+
mailReceived: { enabled: true, location: "mailReceived" },
|
15
|
+
onboardingChangeReceived: { enabled: true, location: "onboardingChangeReceived" },
|
16
|
+
identityDeletionProcessStatusChanged: { enabled: true, location: "identityDeletionProcessStatusChanged" },
|
17
|
+
messageReceived: { enabled: true, location: "messageReceived" },
|
18
|
+
relationshipChanged: { enabled: true, location: "relationshipChanged" },
|
19
|
+
relationshipTemplateProcessed: { enabled: true, location: "relationshipTemplateProcessed" },
|
20
|
+
sse: { enabled: false, location: "sse" },
|
21
|
+
decider: { enabled: true, location: "@nmshd/runtime:DeciderModule" },
|
22
|
+
request: { enabled: true, location: "@nmshd/runtime:RequestModule" },
|
23
|
+
attributeListener: { enabled: true, location: "@nmshd/runtime:AttributeListenerModule" },
|
24
|
+
notification: { enabled: true, location: "@nmshd/runtime:NotificationModule" }
|
87
25
|
}
|
88
26
|
};
|
89
27
|
const mergedConfig = (0, lodash_1.defaultsDeep)({}, ...configs, appConfig);
|
package/dist/AppConfig.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppConfig.js","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":";;AAwBA,
|
1
|
+
{"version":3,"file":"AppConfig.js","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":";;AAwBA,0CA4BC;AAlDD,mCAAsC;AAsBtC,SAAgB,eAAe,CAAC,GAAG,OAA2C;IAC1E,MAAM,SAAS,GAEX;QACA,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,MAAM;QACnB,oCAAoC,EAAE,KAAK;QAC3C,cAAc,EAAE,QAAQ;QACxB,gBAAgB,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;QAC7C,OAAO,EAAE;YACL,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE;YACjE,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE;YACzD,wBAAwB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,0BAA0B,EAAE;YACjF,oCAAoC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,sCAAsC,EAAE;YACzG,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE;YAC/D,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,qBAAqB,EAAE;YACvE,6BAA6B,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,+BAA+B,EAAE;YAC3F,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE;YACxC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,8BAA8B,EAAE;YACpE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,8BAA8B,EAAE;YACpE,iBAAiB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,wCAAwC,EAAE;YACxF,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,mCAAmC,EAAE;SACjF;KACJ,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,qBAAY,EAAC,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,CAAC,CAAC;IAE7D,OAAO,YAAY,CAAC;AACxB,CAAC"}
|
package/dist/AppRuntime.d.ts
CHANGED
@@ -1,37 +1,34 @@
|
|
1
1
|
import { IDatabaseConnection } from "@js-soft/docdb-access-abstractions";
|
2
|
+
import { ILokiJsDatabaseFactory, LokiJsConnection } from "@js-soft/docdb-access-loki";
|
3
|
+
import { ILoggerFactory } from "@js-soft/logging-abstractions";
|
2
4
|
import { EventBus, Result } from "@js-soft/ts-utils";
|
3
|
-
import { ConsumptionController } from "@nmshd/consumption";
|
4
5
|
import { ICoreAddress } from "@nmshd/core-types";
|
5
|
-
import { ModuleConfiguration, Runtime, RuntimeHealth } from "@nmshd/runtime";
|
6
|
-
import { AccountController } from "@nmshd/transport";
|
6
|
+
import { ModuleConfiguration, Runtime, RuntimeHealth, RuntimeServices } from "@nmshd/runtime";
|
7
7
|
import { AppConfig, AppConfigOverwrite } from "./AppConfig";
|
8
|
-
import { AppRuntimeServices } from "./AppRuntimeServices";
|
9
8
|
import { AppStringProcessor } from "./AppStringProcessor";
|
10
9
|
import { IUIBridge } from "./extensibility";
|
10
|
+
import { INotificationAccess } from "./infrastructure/INotificationAccess";
|
11
11
|
import { IAppRuntimeModuleConstructor } from "./modules";
|
12
12
|
import { AccountServices, LocalAccountSession, MultiAccountController } from "./multiAccount";
|
13
|
-
import { INativeBootstrapper, INativeEnvironment, INativeTranslationProvider } from "./natives";
|
14
|
-
import { UserfriendlyResult } from "./UserfriendlyResult";
|
15
13
|
export declare class AppRuntime extends Runtime<AppConfig> {
|
16
|
-
|
17
|
-
|
14
|
+
readonly notificationAccess: INotificationAccess;
|
15
|
+
private readonly databaseFactory?;
|
16
|
+
constructor(appConfig: AppConfig, loggerFactory: ILoggerFactory, notificationAccess: INotificationAccess, databaseFactory?: ILokiJsDatabaseFactory | undefined, eventBus?: EventBus);
|
18
17
|
get config(): AppConfig;
|
19
18
|
private _uiBridge;
|
20
19
|
private _uiBridgeResolver?;
|
21
20
|
uiBridge(): Promise<IUIBridge> | IUIBridge;
|
22
|
-
registerUIBridge(uiBridge: IUIBridge):
|
23
|
-
|
21
|
+
registerUIBridge(uiBridge: IUIBridge): Result<void>;
|
22
|
+
protected readonly databaseConnection: LokiJsConnection;
|
24
23
|
private _multiAccountController;
|
25
24
|
get multiAccountController(): MultiAccountController;
|
26
25
|
private _accountServices;
|
27
26
|
get accountServices(): AccountServices;
|
28
|
-
get nativeEnvironment(): INativeEnvironment;
|
29
27
|
private readonly sessionStorage;
|
30
28
|
getSessions(): LocalAccountSession[];
|
31
29
|
private readonly _stringProcessor;
|
32
30
|
get stringProcessor(): AppStringProcessor;
|
33
|
-
|
34
|
-
getServices(accountReference: string | ICoreAddress): Promise<AppRuntimeServices>;
|
31
|
+
getServices(accountReference: string | ICoreAddress): Promise<RuntimeServices>;
|
35
32
|
selectAccount(accountReference: string): Promise<LocalAccountSession>;
|
36
33
|
getOrCreateSession(accountReference: string): Promise<LocalAccountSession>;
|
37
34
|
private currentSessionPromise;
|
@@ -39,8 +36,7 @@ export declare class AppRuntime extends Runtime<AppConfig> {
|
|
39
36
|
private _createSession;
|
40
37
|
getHealth(): Promise<RuntimeHealth>;
|
41
38
|
protected initAccount(): Promise<void>;
|
42
|
-
static create(
|
43
|
-
static createAndStart(nativeBootstrapper: INativeBootstrapper, appConfig?: AppConfigOverwrite): Promise<AppRuntime>;
|
39
|
+
static create(appConfig: (AppConfigOverwrite | AppConfig) | undefined, loggerFactory: ILoggerFactory, notificationAccess: INotificationAccess, eventBus?: EventBus, databaseFactory?: ILokiJsDatabaseFactory): Promise<AppRuntime>;
|
44
40
|
protected createDatabaseConnection(): Promise<IDatabaseConnection>;
|
45
41
|
private static moduleRegistry;
|
46
42
|
static registerModule(moduleName: string, ctor: IAppRuntimeModuleConstructor): void;
|
@@ -48,8 +44,5 @@ export declare class AppRuntime extends Runtime<AppConfig> {
|
|
48
44
|
start(): Promise<void>;
|
49
45
|
stop(): Promise<void>;
|
50
46
|
private startAccounts;
|
51
|
-
private translationProvider;
|
52
|
-
registerTranslationProvider(provider: INativeTranslationProvider): void;
|
53
|
-
translate(key: string, ...values: any[]): Promise<Result<string>>;
|
54
47
|
}
|
55
48
|
//# sourceMappingURL=AppRuntime.d.ts.map
|
package/dist/AppRuntime.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppRuntime.d.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Ac,CAU3B;WAEY,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,IAAI;IAI1F,SAAS,CAAC,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBvD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAO7B,aAAa;CAoC9B"}
|
package/dist/AppRuntime.js
CHANGED
@@ -10,19 +10,15 @@ const AppConfig_1 = require("./AppConfig");
|
|
10
10
|
const AppRuntimeErrors_1 = require("./AppRuntimeErrors");
|
11
11
|
const AppStringProcessor_1 = require("./AppStringProcessor");
|
12
12
|
const events_1 = require("./events");
|
13
|
-
const extensibility_1 = require("./extensibility");
|
14
13
|
const modules_1 = require("./modules");
|
15
14
|
const multiAccount_1 = require("./multiAccount");
|
16
15
|
const SessionStorage_1 = require("./SessionStorage");
|
17
|
-
const UserfriendlyResult_1 = require("./UserfriendlyResult");
|
18
16
|
class AppRuntime extends runtime_1.Runtime {
|
19
|
-
constructor(
|
20
|
-
super(appConfig,
|
21
|
-
this.
|
17
|
+
constructor(appConfig, loggerFactory, notificationAccess, databaseFactory, eventBus) {
|
18
|
+
super(appConfig, loggerFactory, eventBus);
|
19
|
+
this.notificationAccess = notificationAccess;
|
20
|
+
this.databaseFactory = databaseFactory;
|
22
21
|
this.sessionStorage = new SessionStorage_1.SessionStorage();
|
23
|
-
this.translationProvider = {
|
24
|
-
translate: (key) => Promise.resolve(ts_utils_1.Result.ok(key))
|
25
|
-
};
|
26
22
|
this._stringProcessor = new AppStringProcessor_1.AppStringProcessor(this, this.loggerFactory);
|
27
23
|
}
|
28
24
|
get config() {
|
@@ -45,10 +41,10 @@ class AppRuntime extends runtime_1.Runtime {
|
|
45
41
|
}
|
46
42
|
registerUIBridge(uiBridge) {
|
47
43
|
if (this._uiBridge)
|
48
|
-
return
|
44
|
+
return ts_utils_1.Result.fail(AppRuntimeErrors_1.AppRuntimeErrors.startup.uiBridgeAlreadyRegistered());
|
49
45
|
this._uiBridge = uiBridge;
|
50
46
|
this._uiBridgeResolver?.resolve(uiBridge);
|
51
|
-
return
|
47
|
+
return ts_utils_1.Result.ok(undefined);
|
52
48
|
}
|
53
49
|
get multiAccountController() {
|
54
50
|
return this._multiAccountController;
|
@@ -56,26 +52,17 @@ class AppRuntime extends runtime_1.Runtime {
|
|
56
52
|
get accountServices() {
|
57
53
|
return this._accountServices;
|
58
54
|
}
|
59
|
-
get nativeEnvironment() {
|
60
|
-
return this._nativeEnvironment;
|
61
|
-
}
|
62
55
|
getSessions() {
|
63
56
|
return this.sessionStorage.getSessions();
|
64
57
|
}
|
65
58
|
get stringProcessor() {
|
66
59
|
return this._stringProcessor;
|
67
60
|
}
|
68
|
-
async login(accountController, consumptionController) {
|
69
|
-
const services = await super.login(accountController, consumptionController);
|
70
|
-
const appServices = new extensibility_1.AppServices(this, services.transportServices, services.consumptionServices, services.dataViewExpander);
|
71
|
-
return { ...services, appServices };
|
72
|
-
}
|
73
61
|
async getServices(accountReference) {
|
74
62
|
const session = await this.getOrCreateSession(accountReference.toString());
|
75
63
|
return {
|
76
64
|
transportServices: session.transportServices,
|
77
65
|
consumptionServices: session.consumptionServices,
|
78
|
-
appServices: session.appServices,
|
79
66
|
dataViewExpander: session.expander
|
80
67
|
};
|
81
68
|
}
|
@@ -115,7 +102,9 @@ class AppRuntime extends runtime_1.Runtime {
|
|
115
102
|
async _createSession(accountId) {
|
116
103
|
const [localAccount, accountController] = await this._multiAccountController.selectAccount(core_types_1.CoreId.from(accountId));
|
117
104
|
if (!localAccount.address) {
|
118
|
-
|
105
|
+
const error = AppRuntimeErrors_1.AppRuntimeErrors.general.addressUnavailable();
|
106
|
+
this.logger.error(error);
|
107
|
+
throw error;
|
119
108
|
}
|
120
109
|
const consumptionController = await new consumption_1.ConsumptionController(this.transport, accountController, { setDefaultRepositoryAttributes: true }).init();
|
121
110
|
const services = await this.login(accountController, consumptionController);
|
@@ -126,7 +115,6 @@ class AppRuntime extends runtime_1.Runtime {
|
|
126
115
|
consumptionServices: services.consumptionServices,
|
127
116
|
transportServices: services.transportServices,
|
128
117
|
expander: services.dataViewExpander,
|
129
|
-
appServices: services.appServices,
|
130
118
|
accountController,
|
131
119
|
consumptionController
|
132
120
|
};
|
@@ -141,35 +129,23 @@ class AppRuntime extends runtime_1.Runtime {
|
|
141
129
|
return Promise.resolve(health);
|
142
130
|
}
|
143
131
|
async initAccount() {
|
144
|
-
this._multiAccountController = new multiAccount_1.MultiAccountController(this.transport, this.runtimeConfig, this.
|
132
|
+
this._multiAccountController = new multiAccount_1.MultiAccountController(this.transport, this.runtimeConfig, this.databaseConnection, this.sessionStorage);
|
145
133
|
await this._multiAccountController.init();
|
146
134
|
this._accountServices = new multiAccount_1.AccountServices(this._multiAccountController);
|
147
135
|
}
|
148
|
-
static async create(
|
136
|
+
static async create(appConfig = {}, loggerFactory, notificationAccess, eventBus, databaseFactory) {
|
149
137
|
// TODO: JSSNMSHDD-2524 (validate app config)
|
150
|
-
if (!nativeBootstrapper.isInitialized) {
|
151
|
-
const result = await nativeBootstrapper.init();
|
152
|
-
if (!result.isSuccess) {
|
153
|
-
throw AppRuntimeErrors_1.AppRuntimeErrors.startup.bootstrapError(result.error);
|
154
|
-
}
|
155
|
-
}
|
156
138
|
const mergedConfig = (0, AppConfig_1.createAppConfig)(appConfig);
|
157
|
-
const runtime = new AppRuntime(
|
139
|
+
const runtime = new AppRuntime(mergedConfig, loggerFactory, notificationAccess, databaseFactory, eventBus);
|
158
140
|
await runtime.init();
|
159
141
|
runtime.logger.trace("Runtime initialized");
|
160
142
|
return runtime;
|
161
143
|
}
|
162
|
-
static async createAndStart(nativeBootstrapper, appConfig) {
|
163
|
-
const runtime = await this.create(nativeBootstrapper, appConfig);
|
164
|
-
await runtime.start();
|
165
|
-
runtime.logger.trace("Runtime started");
|
166
|
-
return runtime;
|
167
|
-
}
|
168
144
|
createDatabaseConnection() {
|
169
145
|
this.logger.trace("Creating DatabaseConnection to LokiJS");
|
170
|
-
|
146
|
+
const lokiConnection = new docdb_access_loki_1.LokiJsConnection(this.config.databaseFolder, this.databaseFactory);
|
171
147
|
this.logger.trace("Finished initialization of LokiJS connection.");
|
172
|
-
return Promise.resolve(
|
148
|
+
return Promise.resolve(lokiConnection);
|
173
149
|
}
|
174
150
|
static { this.moduleRegistry = {
|
175
151
|
appSync: modules_1.AppSyncModule,
|
@@ -188,14 +164,14 @@ class AppRuntime extends runtime_1.Runtime {
|
|
188
164
|
loadModule(moduleConfiguration) {
|
189
165
|
const moduleConstructor = AppRuntime.moduleRegistry[moduleConfiguration.location];
|
190
166
|
if (!moduleConstructor) {
|
191
|
-
const error = new Error(`Module '${
|
167
|
+
const error = new Error(`Module at location '${moduleConfiguration.location}' could not be loaded, because it was not registered. Please register all modules before running init. Available modules: ${Object.keys(AppRuntime.moduleRegistry).join(", ")}`);
|
192
168
|
this.logger.error(error);
|
193
169
|
return Promise.reject(error);
|
194
170
|
}
|
195
171
|
const connectorModuleConfiguration = moduleConfiguration;
|
196
172
|
const module = new moduleConstructor(this, connectorModuleConfiguration, this.loggerFactory.getLogger(moduleConstructor));
|
197
173
|
this.modules.add(module);
|
198
|
-
this.logger.info(`Module '${
|
174
|
+
this.logger.info(`Module '${module.displayName}' was loaded successfully.`);
|
199
175
|
return Promise.resolve();
|
200
176
|
}
|
201
177
|
async start() {
|
@@ -205,12 +181,12 @@ class AppRuntime extends runtime_1.Runtime {
|
|
205
181
|
async stop() {
|
206
182
|
const logError = (e) => this.logger.error(e);
|
207
183
|
await super.stop().catch(logError);
|
208
|
-
await this.
|
184
|
+
await this.databaseConnection.close().catch(logError);
|
209
185
|
}
|
210
186
|
async startAccounts() {
|
211
187
|
const accounts = await this._multiAccountController.getAccounts();
|
212
188
|
for (const account of accounts) {
|
213
|
-
const session = await this.
|
189
|
+
const session = await this.getOrCreateSession(account.id.toString());
|
214
190
|
session.accountController.authenticator.clear();
|
215
191
|
try {
|
216
192
|
await session.accountController.authenticator.getToken();
|
@@ -238,12 +214,6 @@ class AppRuntime extends runtime_1.Runtime {
|
|
238
214
|
this.logger.error(syncResult.error);
|
239
215
|
}
|
240
216
|
}
|
241
|
-
registerTranslationProvider(provider) {
|
242
|
-
this.translationProvider = provider;
|
243
|
-
}
|
244
|
-
async translate(key, ...values) {
|
245
|
-
return await this.translationProvider.translate(key, ...values);
|
246
|
-
}
|
247
217
|
}
|
248
218
|
exports.AppRuntime = AppRuntime;
|
249
219
|
//# sourceMappingURL=AppRuntime.js.map
|
package/dist/AppRuntime.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppRuntime.js","sourceRoot":"","sources":["../src/AppRuntime.ts"],"names":[],"mappings":";;;AACA,
|
1
|
+
{"version":3,"file":"AppRuntime.js","sourceRoot":"","sources":["../src/AppRuntime.ts"],"names":[],"mappings":";;;AACA,kEAAsF;AAEtF,gDAAqD;AACrD,oDAA2D;AAC3D,kDAAyD;AACzD,4CAA8F;AAC9F,2CAA6E;AAC7E,yDAAsD;AACtD,6DAA0D;AAC1D,qCAAgD;AAGhD,uCAYmB;AACnB,iDAAkH;AAClH,qDAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAkB;IAC9C,YACI,SAAoB,EACpB,aAA6B,EACb,kBAAuC,EACtC,eAAwC,EACzD,QAAmB;QAEnB,KAAK,CAAC,SAAS,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;QAJ1B,uBAAkB,GAAlB,kBAAkB,CAAqB;QACtC,oBAAe,GAAf,eAAe,CAAyB;QAmD5C,mBAAc,GAAG,IAAI,+BAAc,EAAE,CAAC;QA9CnD,IAAI,CAAC,gBAAgB,GAAG,IAAI,uCAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC7E,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAKM,QAAQ;QACX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;
|
4
|
+
wrongCode(): ApplicationError;
|
5
|
+
invalidReference(): ApplicationError;
|
6
|
+
notSupportedTokenContent(): ApplicationError;
|
7
|
+
deviceOnboardingNotAllowed(): ApplicationError;
|
8
|
+
passwordNotProvided(): ApplicationError;
|
9
|
+
passwordRetryLimitReached(): ApplicationError;
|
10
|
+
noDeviceOnboardingCode(): ApplicationError;
|
11
|
+
}
|
2
12
|
declare class General {
|
3
|
-
currentSessionUnavailable():
|
4
|
-
addressUnavailable():
|
5
|
-
appServicesUnavailable():
|
6
|
-
noAccountAvailable(error?: Error):
|
7
|
-
noAccountAvailableForIdentityTruncated():
|
13
|
+
currentSessionUnavailable(): ApplicationError;
|
14
|
+
addressUnavailable(): ApplicationError;
|
15
|
+
appServicesUnavailable(): ApplicationError;
|
16
|
+
noAccountAvailable(error?: Error): ApplicationError;
|
17
|
+
noAccountAvailableForIdentityTruncated(): ApplicationError;
|
8
18
|
}
|
9
19
|
declare class Startup {
|
10
|
-
|
11
|
-
bootstrapperNotInitialized(): UserfriendlyApplicationError;
|
12
|
-
uiBridgeAlreadyRegistered(): UserfriendlyApplicationError;
|
13
|
-
wrongURL(): UserfriendlyApplicationError;
|
14
|
-
wrongCode(): UserfriendlyApplicationError;
|
20
|
+
uiBridgeAlreadyRegistered(): ApplicationError;
|
15
21
|
}
|
16
22
|
declare class PushNotificationModule {
|
17
|
-
|
18
|
-
unsubscriptionNotPossible(details: string, rootError?: Error): UserfriendlyApplicationError;
|
19
|
-
tokenRegistrationNotPossible(details: string, rootError?: Error): UserfriendlyApplicationError;
|
23
|
+
tokenRegistrationNotPossible(details: string, rootError?: Error): ApplicationError;
|
20
24
|
}
|
21
25
|
declare class Modules {
|
22
26
|
readonly pushNotificationModule: PushNotificationModule;
|
23
27
|
}
|
24
28
|
export declare class AppRuntimeErrors {
|
29
|
+
static readonly appStringProcessor: AppStringProcessor;
|
25
30
|
static readonly general: General;
|
26
31
|
static readonly startup: Startup;
|
27
32
|
static readonly modules: Modules;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeErrors.d.ts","sourceRoot":"","sources":["../src/AppRuntimeErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"AppRuntimeErrors.d.ts","sourceRoot":"","sources":["../src/AppRuntimeErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,cAAM,kBAAkB;IACb,QAAQ,IAAI,gBAAgB;IAI5B,SAAS,IAAI,gBAAgB;IAI7B,gBAAgB,IAAI,gBAAgB;IAIpC,wBAAwB,IAAI,gBAAgB;IAI5C,0BAA0B,IAAI,gBAAgB;IAO9C,mBAAmB,IAAI,gBAAgB;IAIvC,yBAAyB,IAAI,gBAAgB;IAI7C,sBAAsB,IAAI,gBAAgB;CAMpD;AAED,cAAM,OAAO;IACF,yBAAyB,IAAI,gBAAgB;IAI7C,kBAAkB,IAAI,gBAAgB;IAOtC,sBAAsB,IAAI,gBAAgB;IAI1C,kBAAkB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,gBAAgB;IAInD,sCAAsC,IAAI,gBAAgB;CAOpE;AAED,cAAM,OAAO;IACF,yBAAyB,IAAI,gBAAgB;CAGvD;AAED,cAAM,sBAAsB;IACjB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,GAAG,gBAAgB;CAO5F;AAED,cAAM,OAAO;IACT,SAAgB,sBAAsB,yBAAgC;CACzE;AAED,qBAAa,gBAAgB;IACzB,gBAAuB,kBAAkB,qBAA4B;IACrE,gBAAuB,OAAO,UAAiB;IAC/C,gBAAuB,OAAO,UAAiB;IAC/C,gBAAuB,OAAO,UAAiB;CAClD"}
|
package/dist/AppRuntimeErrors.js
CHANGED
@@ -1,50 +1,58 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.AppRuntimeErrors = void 0;
|
4
|
-
const
|
4
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
5
|
+
class AppStringProcessor {
|
6
|
+
wrongURL() {
|
7
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.wrongURL", "The given URL is in a wrong format.");
|
8
|
+
}
|
9
|
+
wrongCode() {
|
10
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.wrongCode", "The given code is in a wrong format.");
|
11
|
+
}
|
12
|
+
invalidReference() {
|
13
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.invalidReference", "The given code does not contain a valid truncated reference.");
|
14
|
+
}
|
15
|
+
notSupportedTokenContent() {
|
16
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.notSupportedTokenContent", "The scanned code is not supported in this context.");
|
17
|
+
}
|
18
|
+
deviceOnboardingNotAllowed() {
|
19
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.deviceOnboardingNotAllowed", "The Token contains a device onboarding info, but this is not allowed in this context.");
|
20
|
+
}
|
21
|
+
passwordNotProvided() {
|
22
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.passwordNotProvided", "No password was provided.");
|
23
|
+
}
|
24
|
+
passwordRetryLimitReached() {
|
25
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.passwordRetryLimitReached", "The maximum number of attempts to enter the password was reached.");
|
26
|
+
}
|
27
|
+
noDeviceOnboardingCode() {
|
28
|
+
return new ts_utils_1.ApplicationError("error.appruntime.appStringProcessor.noDeviceOnboardingCode", "The scanned code does not contain a device onboarding info, but this scanner is only able to process device onboarding codes.");
|
29
|
+
}
|
30
|
+
}
|
5
31
|
class General {
|
6
32
|
currentSessionUnavailable() {
|
7
|
-
return new
|
33
|
+
return new ts_utils_1.ApplicationError("error.appruntime.general.currentSessionUnavailable", "The currentSession is not available. Try to execute login before this operation.");
|
8
34
|
}
|
9
35
|
addressUnavailable() {
|
10
|
-
return new
|
36
|
+
return new ts_utils_1.ApplicationError("error.appruntime.general.addressUnavailable", "The address of the account is not available. This might be a permanent problem caused by a failed login.");
|
11
37
|
}
|
12
38
|
appServicesUnavailable() {
|
13
|
-
return new
|
39
|
+
return new ts_utils_1.ApplicationError("error.appruntime.general.appServicesUnavailable", "The app services are not available. Try to execute login before this operation.");
|
14
40
|
}
|
15
41
|
noAccountAvailable(error) {
|
16
|
-
return new
|
42
|
+
return new ts_utils_1.ApplicationError("error.appruntime.general.noAccountAvailable", "There is no account available for this action.", error);
|
17
43
|
}
|
18
44
|
noAccountAvailableForIdentityTruncated() {
|
19
|
-
return new
|
45
|
+
return new ts_utils_1.ApplicationError("error.appruntime.general.noAccountAvailableForIdentityTruncated", "There is no account matching the given 'forIdentityTruncated'.", "It seems no eligible account is available for this action, because the scanned code is intended for a specific Identity that is not available on this device.");
|
20
46
|
}
|
21
47
|
}
|
22
48
|
class Startup {
|
23
|
-
bootstrapError(bootstrapError) {
|
24
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.runtime.startup.BootstrapError", "There was an error while bootstrapping.", undefined, bootstrapError);
|
25
|
-
}
|
26
|
-
bootstrapperNotInitialized() {
|
27
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.runtime.startup.BootstrapNotInitialized", "The given bootstrapper is not initialized.");
|
28
|
-
}
|
29
49
|
uiBridgeAlreadyRegistered() {
|
30
|
-
return new
|
31
|
-
}
|
32
|
-
wrongURL() {
|
33
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.appruntime.startup.WrongURL", "The given URL to start the App is in a wrong format.");
|
34
|
-
}
|
35
|
-
wrongCode() {
|
36
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.appruntime.startup.WrongCode", "The given code is in a wrong format.");
|
50
|
+
return new ts_utils_1.ApplicationError("error.appruntime.startup.uiBridgeAlreadyRegistered", "The UI bridge was already registered for this Runtime instance.");
|
37
51
|
}
|
38
52
|
}
|
39
53
|
class PushNotificationModule {
|
40
|
-
subscriptionNotPossible(details, rootError) {
|
41
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.runtime.module.PushNotificationModule.SubscriptionNotPossible", `Subscribing to the NativeEventBus was not possible. Root cause: '${details}'`, "The backbone has no push connection with this app. You might have to refresh the app manually.", rootError);
|
42
|
-
}
|
43
|
-
unsubscriptionNotPossible(details, rootError) {
|
44
|
-
return new UserfriendlyApplicationError_1.UserfriendlyApplicationError("error.runtime.module.PushNotificationModule.UnsubscriptionNotPossible", `Unsubscribing from the NativeEventBus was not possible. Root cause: '${details}'`, "The backbone still might have a push connection with this app. You might receive some unwanted notifications.", rootError);
|
45
|
-
}
|
46
54
|
tokenRegistrationNotPossible(details, rootError) {
|
47
|
-
return new
|
55
|
+
return new ts_utils_1.ApplicationError("error.runtime.module.PushNotificationModule.TokenRegistrationNotPossible", `Registering the Push Notification Token for the account was not possible. Root cause: '${details}'`, rootError);
|
48
56
|
}
|
49
57
|
}
|
50
58
|
class Modules {
|
@@ -53,6 +61,7 @@ class Modules {
|
|
53
61
|
}
|
54
62
|
}
|
55
63
|
class AppRuntimeErrors {
|
64
|
+
static { this.appStringProcessor = new AppStringProcessor(); }
|
56
65
|
static { this.general = new General(); }
|
57
66
|
static { this.startup = new Startup(); }
|
58
67
|
static { this.modules = new Modules(); }
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeErrors.js","sourceRoot":"","sources":["../src/AppRuntimeErrors.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"AppRuntimeErrors.js","sourceRoot":"","sources":["../src/AppRuntimeErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAErD,MAAM,kBAAkB;IACb,QAAQ;QACX,OAAO,IAAI,2BAAgB,CAAC,8CAA8C,EAAE,qCAAqC,CAAC,CAAC;IACvH,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,2BAAgB,CAAC,+CAA+C,EAAE,sCAAsC,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