@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
@@ -1,7 +1,6 @@
|
|
1
1
|
import { ConsumptionController } from "@nmshd/consumption";
|
2
2
|
import { ConsumptionServices, DataViewExpander, IdentityDVO, TransportServices } from "@nmshd/runtime";
|
3
3
|
import { AccountController } from "@nmshd/transport";
|
4
|
-
import { AppServices } from "../../extensibility";
|
5
4
|
import { LocalAccountDTO } from "./LocalAccountDTO";
|
6
5
|
export interface LocalAccountSession {
|
7
6
|
address: string;
|
@@ -9,7 +8,6 @@ export interface LocalAccountSession {
|
|
9
8
|
transportServices: TransportServices;
|
10
9
|
consumptionServices: ConsumptionServices;
|
11
10
|
expander: DataViewExpander;
|
12
|
-
appServices: AppServices;
|
13
11
|
accountController: AccountController;
|
14
12
|
consumptionController: ConsumptionController;
|
15
13
|
selectedRelationship?: IdentityDVO;
|
@@ -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,
|
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,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,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
@@ -53,19 +53,19 @@
|
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
55
|
"@js-soft/docdb-access-loki": "^1.2.0",
|
56
|
-
"@nmshd/runtime": "7.0.0-alpha.
|
57
|
-
"eventsource": "^
|
56
|
+
"@nmshd/runtime": "7.0.0-alpha.41",
|
57
|
+
"eventsource": "^4.0.0",
|
58
58
|
"lodash": "^4.17.21"
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
61
|
"@js-soft/node-logger": "^1.2.0",
|
62
|
-
"@types/lodash": "^4.17.
|
62
|
+
"@types/lodash": "^4.17.17",
|
63
63
|
"@types/lokijs": "^1.5.14",
|
64
|
-
"@types/luxon": "^3.
|
64
|
+
"@types/luxon": "^3.6.2"
|
65
65
|
},
|
66
66
|
"publishConfig": {
|
67
67
|
"access": "public",
|
68
68
|
"provenance": true
|
69
69
|
},
|
70
|
-
"version": "7.0.0-alpha.
|
70
|
+
"version": "7.0.0-alpha.41"
|
71
71
|
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { ILogger } from "@js-soft/logging-abstractions";
|
2
|
-
import { ApplicationError } from "@js-soft/ts-utils";
|
3
|
-
export declare class AppRuntimeError extends ApplicationError {
|
4
|
-
logWith(logger: ILogger): ApplicationError;
|
5
|
-
}
|
6
|
-
//# sourceMappingURL=AppRuntimeError.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeError.d.ts","sourceRoot":"","sources":["../src/AppRuntimeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBAAa,eAAgB,SAAQ,gBAAgB;IAC1C,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB;CAIpD"}
|
package/dist/AppRuntimeError.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AppRuntimeError = void 0;
|
4
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
5
|
-
class AppRuntimeError extends ts_utils_1.ApplicationError {
|
6
|
-
logWith(logger) {
|
7
|
-
logger.error(logger);
|
8
|
-
return this;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
exports.AppRuntimeError = AppRuntimeError;
|
12
|
-
//# sourceMappingURL=AppRuntimeError.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeError.js","sourceRoot":"","sources":["../src/AppRuntimeError.ts"],"names":[],"mappings":";;;AACA,gDAAqD;AAErD,MAAa,eAAgB,SAAQ,2BAAgB;IAC1C,OAAO,CAAC,MAAe;QAC1B,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AALD,0CAKC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeServices.d.ts","sourceRoot":"","sources":["../src/AppRuntimeServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACvD,WAAW,EAAE,WAAW,CAAC;CAC5B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeServices.js","sourceRoot":"","sources":["../src/AppRuntimeServices.ts"],"names":[],"mappings":""}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { ApplicationError } from "@js-soft/ts-utils";
|
2
|
-
import { AppRuntimeError } from "./AppRuntimeError";
|
3
|
-
export declare class UserfriendlyApplicationError extends AppRuntimeError {
|
4
|
-
readonly userfriendlyMessage?: string | undefined;
|
5
|
-
constructor(code: string, message: string, userfriendlyMessage?: string | undefined, data?: any);
|
6
|
-
static fromError(error: ApplicationError, userfriendlyMessage?: string): UserfriendlyApplicationError;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=UserfriendlyApplicationError.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UserfriendlyApplicationError.d.ts","sourceRoot":"","sources":["../src/UserfriendlyApplicationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,4BAA6B,SAAQ,eAAe;aAIzC,mBAAmB,CAAC,EAAE,MAAM;gBAF5C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACC,mBAAmB,CAAC,EAAE,MAAM,YAAA,EAC5C,IAAI,CAAC,EAAE,GAAG;WAQA,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,4BAA4B;CAG/G"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UserfriendlyApplicationError = void 0;
|
4
|
-
const AppRuntimeError_1 = require("./AppRuntimeError");
|
5
|
-
class UserfriendlyApplicationError extends AppRuntimeError_1.AppRuntimeError {
|
6
|
-
constructor(code, message, userfriendlyMessage, data) {
|
7
|
-
super(code, message, data);
|
8
|
-
this.userfriendlyMessage = userfriendlyMessage;
|
9
|
-
if (!userfriendlyMessage) {
|
10
|
-
this.userfriendlyMessage = `i18n://${code}`;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
static fromError(error, userfriendlyMessage) {
|
14
|
-
return new UserfriendlyApplicationError(error.code, error.message, userfriendlyMessage, error.data);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
exports.UserfriendlyApplicationError = UserfriendlyApplicationError;
|
18
|
-
//# sourceMappingURL=UserfriendlyApplicationError.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UserfriendlyApplicationError.js","sourceRoot":"","sources":["../src/UserfriendlyApplicationError.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,MAAa,4BAA6B,SAAQ,iCAAe;IAC7D,YACI,IAAY,EACZ,OAAe,EACC,mBAA4B,EAC5C,IAAU;QAEV,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QAHX,wBAAmB,GAAnB,mBAAmB,CAAS;QAI5C,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACvB,IAAI,CAAC,mBAAmB,GAAG,UAAU,IAAI,EAAE,CAAC;QAChD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,KAAuB,EAAE,mBAA4B;QACzE,OAAO,IAAI,4BAA4B,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACxG,CAAC;CACJ;AAhBD,oEAgBC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
import { UserfriendlyApplicationError } from "./UserfriendlyApplicationError";
|
3
|
-
export declare class UserfriendlyResult<T> extends Result<T, UserfriendlyApplicationError> {
|
4
|
-
}
|
5
|
-
//# sourceMappingURL=UserfriendlyResult.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UserfriendlyResult.d.ts","sourceRoot":"","sources":["../src/UserfriendlyResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,qBAAa,kBAAkB,CAAC,CAAC,CAAE,SAAQ,MAAM,CAAC,CAAC,EAAE,4BAA4B,CAAC;CAAG"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UserfriendlyResult = void 0;
|
4
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
5
|
-
class UserfriendlyResult extends ts_utils_1.Result {
|
6
|
-
}
|
7
|
-
exports.UserfriendlyResult = UserfriendlyResult;
|
8
|
-
//# sourceMappingURL=UserfriendlyResult.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UserfriendlyResult.js","sourceRoot":"","sources":["../src/UserfriendlyResult.ts"],"names":[],"mappings":";;;AAAA,gDAA2C;AAG3C,MAAa,kBAAsB,SAAQ,iBAAuC;CAAG;AAArF,gDAAqF"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { ConsumptionServices, DataViewExpander, TransportServices } from "@nmshd/runtime";
|
2
|
-
import { AppRuntime } from "../AppRuntime";
|
3
|
-
import { AppRelationshipFacade } from "./facades";
|
4
|
-
export declare class AppServices {
|
5
|
-
readonly relationships: AppRelationshipFacade;
|
6
|
-
constructor(appRuntime: AppRuntime, transportServices: TransportServices, consumptionServices: ConsumptionServices, expander: DataViewExpander);
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=AppServices.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppServices.d.ts","sourceRoot":"","sources":["../../src/extensibility/AppServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,qBAAa,WAAW;IACpB,SAAgB,aAAa,EAAE,qBAAqB,CAAC;gBAElC,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,gBAAgB;CAGxJ"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AppServices = void 0;
|
4
|
-
const facades_1 = require("./facades");
|
5
|
-
class AppServices {
|
6
|
-
constructor(appRuntime, transportServices, consumptionServices, expander) {
|
7
|
-
this.relationships = new facades_1.AppRelationshipFacade(appRuntime, transportServices, consumptionServices, expander);
|
8
|
-
}
|
9
|
-
}
|
10
|
-
exports.AppServices = AppServices;
|
11
|
-
//# sourceMappingURL=AppServices.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppServices.js","sourceRoot":"","sources":["../../src/extensibility/AppServices.ts"],"names":[],"mappings":";;;AAEA,uCAAkD;AAElD,MAAa,WAAW;IAGpB,YAAmB,UAAsB,EAAE,iBAAoC,EAAE,mBAAwC,EAAE,QAA0B;QACjJ,IAAI,CAAC,aAAa,GAAG,IAAI,+BAAqB,CAAC,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,CAAC,CAAC;IACjH,CAAC;CACJ;AAND,kCAMC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RelationshipItemsDVO.d.ts","sourceRoot":"","sources":["../../../src/extensibility/DVOs/RelationshipItemsDVO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC;CAAG"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RelationshipItemsDVO.js","sourceRoot":"","sources":["../../../src/extensibility/DVOs/RelationshipItemsDVO.ts"],"names":[],"mappings":""}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { AcceptRelationshipRequest, CreateRelationshipRequest, GetRelationshipByAddressRequest, GetRelationshipRequest, GetRelationshipsRequest, IdentityDVO, RejectRelationshipRequest, RevokeRelationshipRequest } from "@nmshd/runtime";
|
2
|
-
import { UserfriendlyResult } from "../../UserfriendlyResult";
|
3
|
-
import { RelationshipItemsDVO } from "../DVOs/RelationshipItemsDVO";
|
4
|
-
import { AppRuntimeFacade } from "./AppRuntimeFacade";
|
5
|
-
export declare class AppRelationshipFacade extends AppRuntimeFacade {
|
6
|
-
renderActiveRelationships(): Promise<UserfriendlyResult<IdentityDVO[]>>;
|
7
|
-
renderAllRelationships(): Promise<UserfriendlyResult<IdentityDVO[]>>;
|
8
|
-
renderRelationship(id: string): Promise<UserfriendlyResult<IdentityDVO>>;
|
9
|
-
renderRelationshipItems(id: string, limit: number): Promise<UserfriendlyResult<RelationshipItemsDVO>>;
|
10
|
-
createRelationship(request: CreateRelationshipRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
11
|
-
acceptRelationship(request: AcceptRelationshipRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
12
|
-
rejectRelationship(request: RejectRelationshipRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
13
|
-
revokeRelationship(request: RevokeRelationshipRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
14
|
-
getRelationships(request: GetRelationshipsRequest): Promise<UserfriendlyResult<IdentityDVO[]>>;
|
15
|
-
getRelationship(request: GetRelationshipRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
16
|
-
getRelationshipByAddress(request: GetRelationshipByAddressRequest): Promise<UserfriendlyResult<IdentityDVO>>;
|
17
|
-
}
|
18
|
-
//# sourceMappingURL=AppRelationshipFacade.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRelationshipFacade.d.ts","sourceRoot":"","sources":["../../../src/extensibility/facades/AppRelationshipFacade.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,yBAAyB,EACzB,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,EACvB,WAAW,EACX,yBAAyB,EACzB,yBAAyB,EAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,qBAAsB,SAAQ,gBAAgB;IAC1C,yBAAyB,IAAI,OAAO,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC,CAAC;IAMvE,sBAAsB,IAAI,OAAO,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC,CAAC;IAIpE,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAIxE,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAerG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAKhG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAKhG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAKhG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAKhG,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC,CAAC;IAK9F,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAK1F,wBAAwB,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;CAI5H"}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AppRelationshipFacade = void 0;
|
4
|
-
const UserfriendlyResult_1 = require("../../UserfriendlyResult");
|
5
|
-
const AppRuntimeFacade_1 = require("./AppRuntimeFacade");
|
6
|
-
class AppRelationshipFacade extends AppRuntimeFacade_1.AppRuntimeFacade {
|
7
|
-
async renderActiveRelationships() {
|
8
|
-
return await this.getRelationships({
|
9
|
-
query: { status: "Active" }
|
10
|
-
});
|
11
|
-
}
|
12
|
-
async renderAllRelationships() {
|
13
|
-
return await this.getRelationships({});
|
14
|
-
}
|
15
|
-
async renderRelationship(id) {
|
16
|
-
return await this.getRelationship({ id });
|
17
|
-
}
|
18
|
-
async renderRelationshipItems(id, limit) {
|
19
|
-
const messagesResult = await this.transportServices.messages.getMessages({
|
20
|
-
query: { "recipients.relationshipId": id }
|
21
|
-
});
|
22
|
-
if (messagesResult.isError) {
|
23
|
-
return await this.parseErrorResult(messagesResult);
|
24
|
-
}
|
25
|
-
const dvo = [...(await this.expander.expandMessageDTOs(messagesResult.value))]
|
26
|
-
.sort((m1, m2) => new Date(m2.date ?? 0).valueOf() - new Date(m1.date ?? 0).valueOf())
|
27
|
-
.slice(0, limit);
|
28
|
-
return UserfriendlyResult_1.UserfriendlyResult.ok(dvo);
|
29
|
-
}
|
30
|
-
async createRelationship(request) {
|
31
|
-
const result = await this.transportServices.relationships.createRelationship(request);
|
32
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
33
|
-
}
|
34
|
-
async acceptRelationship(request) {
|
35
|
-
const result = await this.transportServices.relationships.acceptRelationship(request);
|
36
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
37
|
-
}
|
38
|
-
async rejectRelationship(request) {
|
39
|
-
const result = await this.transportServices.relationships.rejectRelationship(request);
|
40
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
41
|
-
}
|
42
|
-
async revokeRelationship(request) {
|
43
|
-
const result = await this.transportServices.relationships.revokeRelationship(request);
|
44
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
45
|
-
}
|
46
|
-
async getRelationships(request) {
|
47
|
-
const result = await this.transportServices.relationships.getRelationships(request);
|
48
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTOs(v));
|
49
|
-
}
|
50
|
-
async getRelationship(request) {
|
51
|
-
const result = await this.transportServices.relationships.getRelationship(request);
|
52
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
53
|
-
}
|
54
|
-
async getRelationshipByAddress(request) {
|
55
|
-
const result = await this.transportServices.relationships.getRelationshipByAddress(request);
|
56
|
-
return await this.handleResult(result, (v) => this.expander.expandRelationshipDTO(v));
|
57
|
-
}
|
58
|
-
}
|
59
|
-
exports.AppRelationshipFacade = AppRelationshipFacade;
|
60
|
-
//# sourceMappingURL=AppRelationshipFacade.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRelationshipFacade.js","sourceRoot":"","sources":["../../../src/extensibility/facades/AppRelationshipFacade.ts"],"names":[],"mappings":"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"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
import { ConsumptionServices, DataViewExpander, TransportServices } from "@nmshd/runtime";
|
3
|
-
import { AppRuntime } from "../../AppRuntime";
|
4
|
-
import { UserfriendlyApplicationError } from "../../UserfriendlyApplicationError";
|
5
|
-
export declare abstract class AppRuntimeFacade {
|
6
|
-
protected readonly runtime: AppRuntime;
|
7
|
-
protected readonly transportServices: TransportServices;
|
8
|
-
protected readonly consumptionServices: ConsumptionServices;
|
9
|
-
protected readonly expander: DataViewExpander;
|
10
|
-
constructor(runtime: AppRuntime, transportServices: TransportServices, consumptionServices: ConsumptionServices, expander: DataViewExpander);
|
11
|
-
protected parseErrorResult<T>(result: Result<any>): Promise<Result<T, UserfriendlyApplicationError>>;
|
12
|
-
protected handleResult<TOriginal, TWanted>(result: Result<TOriginal>, parsingFunction: (value: TOriginal) => Promise<TWanted> | TWanted): Promise<Result<TWanted, UserfriendlyApplicationError>>;
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=AppRuntimeFacade.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeFacade.d.ts","sourceRoot":"","sources":["../../../src/extensibility/facades/AppRuntimeFacade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAGlF,8BAAsB,gBAAgB;IAE9B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU;IACtC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB;IACvD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB;IAC3D,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB;gBAH1B,OAAO,EAAE,UAAU,EACnB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,QAAQ,EAAE,gBAAgB;cAGjC,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC;cAQ1F,YAAY,CAAC,SAAS,EAAE,OAAO,EAC3C,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,EACzB,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,GAClE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAAC;CAQ5D"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AppRuntimeFacade = void 0;
|
4
|
-
const UserfriendlyApplicationError_1 = require("../../UserfriendlyApplicationError");
|
5
|
-
const UserfriendlyResult_1 = require("../../UserfriendlyResult");
|
6
|
-
class AppRuntimeFacade {
|
7
|
-
constructor(runtime, transportServices, consumptionServices, expander) {
|
8
|
-
this.runtime = runtime;
|
9
|
-
this.transportServices = transportServices;
|
10
|
-
this.consumptionServices = consumptionServices;
|
11
|
-
this.expander = expander;
|
12
|
-
}
|
13
|
-
async parseErrorResult(result) {
|
14
|
-
const userfriendlyMessageResult = await this.runtime.translate(result.error.code);
|
15
|
-
if (userfriendlyMessageResult.isSuccess) {
|
16
|
-
return UserfriendlyResult_1.UserfriendlyResult.fail(UserfriendlyApplicationError_1.UserfriendlyApplicationError.fromError(result.error, userfriendlyMessageResult.value));
|
17
|
-
}
|
18
|
-
return UserfriendlyResult_1.UserfriendlyResult.fail(UserfriendlyApplicationError_1.UserfriendlyApplicationError.fromError(result.error, result.error.code));
|
19
|
-
}
|
20
|
-
async handleResult(result, parsingFunction) {
|
21
|
-
if (result.isError) {
|
22
|
-
return await this.parseErrorResult(result);
|
23
|
-
}
|
24
|
-
const parsed = await parsingFunction(result.value);
|
25
|
-
return UserfriendlyResult_1.UserfriendlyResult.ok(parsed);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
exports.AppRuntimeFacade = AppRuntimeFacade;
|
29
|
-
//# sourceMappingURL=AppRuntimeFacade.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppRuntimeFacade.js","sourceRoot":"","sources":["../../../src/extensibility/facades/AppRuntimeFacade.ts"],"names":[],"mappings":";;;AAGA,qFAAkF;AAClF,iEAA8D;AAE9D,MAAsB,gBAAgB;IAClC,YACuB,OAAmB,EACnB,iBAAoC,EACpC,mBAAwC,EACxC,QAA0B;QAH1B,YAAO,GAAP,OAAO,CAAY;QACnB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,aAAQ,GAAR,QAAQ,CAAkB;IAC9C,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAI,MAAmB;QACnD,MAAM,yBAAyB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClF,IAAI,yBAAyB,CAAC,SAAS,EAAE,CAAC;YACtC,OAAO,uCAAkB,CAAC,IAAI,CAAkC,2DAA4B,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3J,CAAC;QACD,OAAO,uCAAkB,CAAC,IAAI,CAAkC,2DAA4B,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7I,CAAC;IAES,KAAK,CAAC,YAAY,CACxB,MAAyB,EACzB,eAAiE;QAEjE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAU,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnD,OAAO,uCAAkB,CAAC,EAAE,CAAwC,MAAM,CAAC,CAAC;IAChF,CAAC;CACJ;AA3BD,4CA2BC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensibility/facades/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensibility/facades/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
import { INativeEnvironment } from "./INativeEnvironment";
|
3
|
-
export interface INativeBootstrapper {
|
4
|
-
isInitialized: boolean;
|
5
|
-
nativeEnvironment: INativeEnvironment;
|
6
|
-
init(): Promise<Result<void>>;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=INativeBootstrapper.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeBootstrapper.d.ts","sourceRoot":"","sources":["../../src/natives/INativeBootstrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;CACjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeBootstrapper.js","sourceRoot":"","sources":["../../src/natives/INativeBootstrapper.ts"],"names":[],"mappings":""}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
export interface INativeConfigAccess {
|
3
|
-
get(key: string): Result<any>;
|
4
|
-
set(key: string, value: any): Result<void>;
|
5
|
-
remove(key: string): Result<void>;
|
6
|
-
save(): Promise<Result<void>>;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=INativeConfigAccess.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeConfigAccess.d.ts","sourceRoot":"","sources":["../../src/natives/INativeConfigAccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAChC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC9B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;CACjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeConfigAccess.js","sourceRoot":"","sources":["../../src/natives/INativeConfigAccess.ts"],"names":[],"mappings":""}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ILokiJsDatabaseFactory } from "@js-soft/docdb-access-loki";
|
2
|
-
import { ILoggerFactory } from "@js-soft/logging-abstractions";
|
3
|
-
import { INativeConfigAccess } from "./INativeConfigAccess";
|
4
|
-
import { INativeNotificationAccess } from "./INativeNotificationAccess";
|
5
|
-
export interface INativeEnvironment {
|
6
|
-
databaseFactory: ILokiJsDatabaseFactory;
|
7
|
-
configAccess: INativeConfigAccess;
|
8
|
-
loggerFactory: ILoggerFactory;
|
9
|
-
notificationAccess: INativeNotificationAccess;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=INativeEnvironment.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeEnvironment.d.ts","sourceRoot":"","sources":["../../src/natives/INativeEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,WAAW,kBAAkB;IAC/B,eAAe,EAAE,sBAAsB,CAAC;IACxC,YAAY,EAAE,mBAAmB,CAAC;IAClC,aAAa,EAAE,cAAc,CAAC;IAC9B,kBAAkB,EAAE,yBAAyB,CAAC;CACjD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeEnvironment.js","sourceRoot":"","sources":["../../src/natives/INativeEnvironment.ts"],"names":[],"mappings":""}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
export interface INativeNotificationAction {
|
3
|
-
title: string;
|
4
|
-
callback: Function;
|
5
|
-
}
|
6
|
-
export interface INativeNotificationScheduleOptions {
|
7
|
-
buttonInput?: INativeNotificationAction[];
|
8
|
-
textInput?: INativeNotificationAction[];
|
9
|
-
callback?: Function;
|
10
|
-
data?: any;
|
11
|
-
id?: number;
|
12
|
-
}
|
13
|
-
export interface INativeNotificationAccess {
|
14
|
-
schedule(title: string, body: string, options?: INativeNotificationScheduleOptions): Promise<Result<number>>;
|
15
|
-
update(id: number, title: string, body: string, options?: INativeNotificationScheduleOptions): Promise<Result<void>>;
|
16
|
-
clear(id: number): Promise<Result<void>>;
|
17
|
-
clearAll(): Promise<Result<void>>;
|
18
|
-
getAll(): Promise<Result<number[]>>;
|
19
|
-
init(): Promise<Result<void>>;
|
20
|
-
}
|
21
|
-
//# sourceMappingURL=INativeNotificationAccess.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeNotificationAccess.d.ts","sourceRoot":"","sources":["../../src/natives/INativeNotificationAccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED,MAAM,WAAW,kCAAkC;IAC/C,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7G,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACrH,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAClC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACpC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;CACjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeNotificationAccess.js","sourceRoot":"","sources":["../../src/natives/INativeNotificationAccess.ts"],"names":[],"mappings":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
2
|
-
export interface INativeTranslationProvider {
|
3
|
-
translate(key: string, ...values: (string | number | boolean | {
|
4
|
-
toString: Function;
|
5
|
-
})[]): Promise<Result<string>>;
|
6
|
-
}
|
7
|
-
//# sourceMappingURL=INativeTranslationProvider.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeTranslationProvider.d.ts","sourceRoot":"","sources":["../../src/natives/INativeTranslationProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,0BAA0B;IACvC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;CACtH"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"INativeTranslationProvider.js","sourceRoot":"","sources":["../../src/natives/INativeTranslationProvider.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NativeEvent.d.ts","sourceRoot":"","sources":["../../src/natives/NativeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,qBAAa,WAAY,SAAQ,KAAK;CAAG"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NativeEvent = void 0;
|
4
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
5
|
-
class NativeEvent extends ts_utils_1.Event {
|
6
|
-
}
|
7
|
-
exports.NativeEvent = NativeEvent;
|
8
|
-
//# sourceMappingURL=NativeEvent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NativeEvent.js","sourceRoot":"","sources":["../../src/natives/NativeEvent.ts"],"names":[],"mappings":";;;AAAA,gDAA0C;AAE1C,MAAa,WAAY,SAAQ,gBAAK;CAAG;AAAzC,kCAAyC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppReadyEvent.d.ts","sourceRoot":"","sources":["../../../src/natives/events/AppReadyEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,aAAc,SAAQ,WAAW;IAC1C,OAAc,SAAS,SAAmB;;CAI7C"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AppReadyEvent = void 0;
|
4
|
-
const NativeEvent_1 = require("../NativeEvent");
|
5
|
-
class AppReadyEvent extends NativeEvent_1.NativeEvent {
|
6
|
-
static { this.namespace = "AppReadyEvent"; }
|
7
|
-
constructor() {
|
8
|
-
super(AppReadyEvent.namespace);
|
9
|
-
}
|
10
|
-
}
|
11
|
-
exports.AppReadyEvent = AppReadyEvent;
|
12
|
-
//# sourceMappingURL=AppReadyEvent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AppReadyEvent.js","sourceRoot":"","sources":["../../../src/natives/events/AppReadyEvent.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAE7C,MAAa,aAAc,SAAQ,yBAAW;aAC5B,cAAS,GAAG,eAAe,CAAC;IAC1C;QACI,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;;AAJL,sCAKC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RemoteNotificationEvent.d.ts","sourceRoot":"","sources":["../../../src/natives/events/RemoteNotificationEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,GAAG,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,qBAAa,uBAAwB,SAAQ,WAAW;aAEjB,YAAY,EAAE,kBAAkB;IADnE,OAAc,SAAS,SAAwB;gBACZ,YAAY,EAAE,kBAAkB;CAGtE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RemoteNotificationEvent.js","sourceRoot":"","sources":["../../../src/natives/events/RemoteNotificationEvent.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAS7C,MAAa,uBAAwB,SAAQ,yBAAW;aACtC,cAAS,GAAG,oBAAoB,CAAC;IAC/C,YAAmC,YAAgC;QAC/D,KAAK,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;QADV,iBAAY,GAAZ,YAAY,CAAoB;IAEnE,CAAC;;AAJL,0DAKC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RemoteNotificationRegistrationEvent.d.ts","sourceRoot":"","sources":["../../../src/natives/events/RemoteNotificationRegistrationEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,mCAAoC,SAAQ,WAAW;aAE7B,KAAK,EAAE,MAAM;IADhD,OAAc,SAAS,SAAoC;gBACxB,KAAK,EAAE,MAAM;CAGnD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RemoteNotificationRegistrationEvent.js","sourceRoot":"","sources":["../../../src/natives/events/RemoteNotificationRegistrationEvent.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAE7C,MAAa,mCAAoC,SAAQ,yBAAW;aAClD,cAAS,GAAG,gCAAgC,CAAC;IAC3D,YAAmC,KAAa;QAC5C,KAAK,CAAC,mCAAmC,CAAC,SAAS,CAAC,CAAC;QADtB,UAAK,GAAL,KAAK,CAAQ;IAEhD,CAAC;;AAJL,kFAKC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/natives/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
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("./AppReadyEvent"), exports);
|
18
|
-
__exportStar(require("./RemoteNotificationEvent"), exports);
|
19
|
-
__exportStar(require("./RemoteNotificationRegistrationEvent"), exports);
|
20
|
-
//# sourceMappingURL=index.js.map
|