@nmshd/runtime 2.0.0-beta.28 → 2.0.0-beta.29
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/useCases/common/RuntimeErrors.d.ts +0 -16
- package/dist/useCases/common/RuntimeErrors.js +0 -36
- package/dist/useCases/common/RuntimeErrors.js.map +1 -1
- package/lib-web/nmshd.runtime.js +4 -40
- package/lib-web/nmshd.runtime.js.map +1 -1
- package/lib-web/nmshd.runtime.min.js +1 -1
- package/lib-web/nmshd.runtime.min.js.map +1 -1
- package/package.json +1 -1
package/dist/buildInformation.js
CHANGED
|
@@ -7,10 +7,10 @@ const content_1 = require("@nmshd/content");
|
|
|
7
7
|
const crypto_1 = require("@nmshd/crypto");
|
|
8
8
|
const transport_1 = require("@nmshd/transport");
|
|
9
9
|
exports.buildInformation = {
|
|
10
|
-
version: "2.0.0-beta.
|
|
11
|
-
build: "
|
|
12
|
-
date: "2022-09-
|
|
13
|
-
commit: "
|
|
10
|
+
version: "2.0.0-beta.29",
|
|
11
|
+
build: "115",
|
|
12
|
+
date: "2022-09-29T13:09:59+00:00",
|
|
13
|
+
commit: "abce98c79538b2063948d70ce3d9cbdf4e182a53",
|
|
14
14
|
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0-beta.27","@nmshd/content":"2.0.0-beta.37","@nmshd/crypto":"2.0.2","@nmshd/transport":"2.0.0-beta.8","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.4","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
15
15
|
libraries: {
|
|
16
16
|
serval: ts_serval_1.buildInformation,
|
|
@@ -7,8 +7,6 @@ declare class General {
|
|
|
7
7
|
notStarted(): ApplicationError;
|
|
8
8
|
recordNotFound(entityName?: string | Function): ApplicationError;
|
|
9
9
|
recordNotFoundWithMessage(message: string): ApplicationError;
|
|
10
|
-
unauthorized(): ApplicationError;
|
|
11
|
-
missingRequiredProperty(fieldName?: string): ApplicationError;
|
|
12
10
|
invalidPropertyValue(message: string): ApplicationError;
|
|
13
11
|
invalidPayload(message?: string): ApplicationError;
|
|
14
12
|
notSupported(message: string): ApplicationError;
|
|
@@ -28,25 +26,13 @@ declare class RelationshipTemplates {
|
|
|
28
26
|
cannotCreateQRCodeForPeerTemplate(): ApplicationError;
|
|
29
27
|
invalidReference(reference: string): ApplicationError;
|
|
30
28
|
}
|
|
31
|
-
declare class RelationshipInfo {
|
|
32
|
-
relationshipInfoExists(relationshipId: string): ApplicationError;
|
|
33
|
-
}
|
|
34
29
|
declare class Messages {
|
|
35
30
|
fileNotFoundInMessage(attachmentId: string): ApplicationError;
|
|
36
31
|
}
|
|
37
32
|
declare class Startup {
|
|
38
|
-
noIdentityFound(): ApplicationError;
|
|
39
33
|
noActiveAccount(): ApplicationError;
|
|
40
34
|
noActiveConsumptionController(): ApplicationError;
|
|
41
35
|
noActiveExpander(): ApplicationError;
|
|
42
|
-
noDatabaseDefined(): ApplicationError;
|
|
43
|
-
noPlatformConnection(): ApplicationError;
|
|
44
|
-
privateDeviceKeyInvalid(): ApplicationError;
|
|
45
|
-
}
|
|
46
|
-
declare class Database {
|
|
47
|
-
unknown(): ApplicationError;
|
|
48
|
-
connectionError(): ApplicationError;
|
|
49
|
-
quotaExceeded(): ApplicationError;
|
|
50
36
|
}
|
|
51
37
|
declare class Challenges {
|
|
52
38
|
invalidSignature(): ApplicationError;
|
|
@@ -56,11 +42,9 @@ export declare class RuntimeErrors {
|
|
|
56
42
|
static readonly general: General;
|
|
57
43
|
static readonly serval: Serval;
|
|
58
44
|
static readonly startup: Startup;
|
|
59
|
-
static readonly database: Database;
|
|
60
45
|
static readonly files: Files;
|
|
61
46
|
static readonly relationshipTemplates: RelationshipTemplates;
|
|
62
47
|
static readonly messages: Messages;
|
|
63
|
-
static readonly relationshipInfo: RelationshipInfo;
|
|
64
48
|
static readonly challenges: Challenges;
|
|
65
49
|
}
|
|
66
50
|
export {};
|
|
@@ -25,12 +25,6 @@ class General {
|
|
|
25
25
|
recordNotFoundWithMessage(message) {
|
|
26
26
|
return new ts_utils_1.ApplicationError("error.runtime.recordNotFound", message);
|
|
27
27
|
}
|
|
28
|
-
unauthorized() {
|
|
29
|
-
return new ts_utils_1.ApplicationError("error.runtime.unauthorized", "Unauthorized.");
|
|
30
|
-
}
|
|
31
|
-
missingRequiredProperty(fieldName) {
|
|
32
|
-
return new ts_utils_1.ApplicationError("error.runtime.validation.missingRequiredProperty", `'${fieldName}' must not be empty.`);
|
|
33
|
-
}
|
|
34
28
|
invalidPropertyValue(message) {
|
|
35
29
|
return new ts_utils_1.ApplicationError("error.runtime.validation.invalidPropertyValue", message);
|
|
36
30
|
}
|
|
@@ -74,20 +68,12 @@ class RelationshipTemplates {
|
|
|
74
68
|
return new ts_utils_1.ApplicationError("error.runtime.relationshipTemplates.invalidReference", `The reference for a relationship template must start with '${Base64ForIdPrefix_1.Base64ForIdPrefix.Token}' or '${Base64ForIdPrefix_1.Base64ForIdPrefix.RelationshipTemplate}'. The given reference '${reference}' is not valid.`);
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
|
-
class RelationshipInfo {
|
|
78
|
-
relationshipInfoExists(relationshipId) {
|
|
79
|
-
return new ts_utils_1.ApplicationError("error.runtime.relationshipInfo.relationshipInfoExists", `RelationshipInfo for RelationshipId ${relationshipId} already exists. Try to update the RelationshipInfo instead.`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
71
|
class Messages {
|
|
83
72
|
fileNotFoundInMessage(attachmentId) {
|
|
84
73
|
return new ts_utils_1.ApplicationError("error.runtime.messages.fileNotFoundInMessage", `The requested file '${attachmentId}' was not found in the given message.`);
|
|
85
74
|
}
|
|
86
75
|
}
|
|
87
76
|
class Startup {
|
|
88
|
-
noIdentityFound() {
|
|
89
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noIdentityFound", "No identity information could be found. Please check your database integrity.");
|
|
90
|
-
}
|
|
91
77
|
noActiveAccount() {
|
|
92
78
|
return new ts_utils_1.ApplicationError("error.runtime.startup.noActiveAccount", "No AccountController could be found. You might have to login first.");
|
|
93
79
|
}
|
|
@@ -97,26 +83,6 @@ class Startup {
|
|
|
97
83
|
noActiveExpander() {
|
|
98
84
|
return new ts_utils_1.ApplicationError("error.runtime.startup.noActiveExpander", "No DataViewExpander could be found. You might have to login first.");
|
|
99
85
|
}
|
|
100
|
-
noDatabaseDefined() {
|
|
101
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noDatabaseDefined", "No database is defined. Please check the database configuration.");
|
|
102
|
-
}
|
|
103
|
-
noPlatformConnection() {
|
|
104
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noPlatformConnection", "No platform connection could be established. Please check you network connectivity.");
|
|
105
|
-
}
|
|
106
|
-
privateDeviceKeyInvalid() {
|
|
107
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.privateDeviceKeyInvalid", "The private key of this device seems to be invalid. You should check your config or database connection.");
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
class Database {
|
|
111
|
-
unknown() {
|
|
112
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.unknown", "An unknown database error occured. Please check the logs.");
|
|
113
|
-
}
|
|
114
|
-
connectionError() {
|
|
115
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.connectionError", "Connection to database could not be established. Please check the database credentials.");
|
|
116
|
-
}
|
|
117
|
-
quotaExceeded() {
|
|
118
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.quotaExceeded", "It seems that the database quota exceeded. Please increase the database size.");
|
|
119
|
-
}
|
|
120
86
|
}
|
|
121
87
|
class Challenges {
|
|
122
88
|
invalidSignature() {
|
|
@@ -132,10 +98,8 @@ exports.RuntimeErrors = RuntimeErrors;
|
|
|
132
98
|
RuntimeErrors.general = new General();
|
|
133
99
|
RuntimeErrors.serval = new Serval();
|
|
134
100
|
RuntimeErrors.startup = new Startup();
|
|
135
|
-
RuntimeErrors.database = new Database();
|
|
136
101
|
RuntimeErrors.files = new Files();
|
|
137
102
|
RuntimeErrors.relationshipTemplates = new RelationshipTemplates();
|
|
138
103
|
RuntimeErrors.messages = new Messages();
|
|
139
|
-
RuntimeErrors.relationshipInfo = new RelationshipInfo();
|
|
140
104
|
RuntimeErrors.challenges = new Challenges();
|
|
141
105
|
//# sourceMappingURL=RuntimeErrors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeErrors.js","sourceRoot":"","sources":["../../../src/useCases/common/RuntimeErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,2DAAwD;AAExD,MAAM,OAAO;IACF,OAAO,CAAC,OAAe,EAAE,IAAU;QACtC,OAAO,IAAI,2BAAgB,CAAC,uBAAuB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,2BAAgB,CAAC,kCAAkC,EAAE,gFAAgF,CAAC,CAAC;IACtJ,CAAC;IAEM,cAAc;QACjB,OAAO,IAAI,2BAAgB,CAAC,8BAA8B,EAAE,6FAA6F,CAAC,CAAC;IAC/J,CAAC;IAEM,cAAc;QACjB,OAAO,IAAI,2BAAgB,CAAC,8BAA8B,EAAE,yEAAyE,CAAC,CAAC;IAC3I,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,2BAAgB,CAAC,0BAA0B,EAAE,kEAAkE,CAAC,CAAC;IAChI,CAAC;IAEM,cAAc,CAAC,UAA8B;QAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,GAAG,UAAU,YAAY,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,oEAAoE,CAAC,CAAC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mshd/content */ "@nmshd/content");
|
|
|
455
455
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
456
456
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
457
457
|
exports.buildInformation = {
|
|
458
|
-
version: "2.0.0-beta.
|
|
459
|
-
build: "
|
|
460
|
-
date: "2022-09-
|
|
461
|
-
commit: "
|
|
458
|
+
version: "2.0.0-beta.29",
|
|
459
|
+
build: "115",
|
|
460
|
+
date: "2022-09-29T13:09:59+00:00",
|
|
461
|
+
commit: "abce98c79538b2063948d70ce3d9cbdf4e182a53",
|
|
462
462
|
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0-beta.27","@nmshd/content":"2.0.0-beta.37","@nmshd/crypto":"2.0.2","@nmshd/transport":"2.0.0-beta.8","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.4","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
463
463
|
libraries: {
|
|
464
464
|
serval: ts_serval_1.buildInformation,
|
|
@@ -5817,12 +5817,6 @@ class General {
|
|
|
5817
5817
|
recordNotFoundWithMessage(message) {
|
|
5818
5818
|
return new ts_utils_1.ApplicationError("error.runtime.recordNotFound", message);
|
|
5819
5819
|
}
|
|
5820
|
-
unauthorized() {
|
|
5821
|
-
return new ts_utils_1.ApplicationError("error.runtime.unauthorized", "Unauthorized.");
|
|
5822
|
-
}
|
|
5823
|
-
missingRequiredProperty(fieldName) {
|
|
5824
|
-
return new ts_utils_1.ApplicationError("error.runtime.validation.missingRequiredProperty", `'${fieldName}' must not be empty.`);
|
|
5825
|
-
}
|
|
5826
5820
|
invalidPropertyValue(message) {
|
|
5827
5821
|
return new ts_utils_1.ApplicationError("error.runtime.validation.invalidPropertyValue", message);
|
|
5828
5822
|
}
|
|
@@ -5866,20 +5860,12 @@ class RelationshipTemplates {
|
|
|
5866
5860
|
return new ts_utils_1.ApplicationError("error.runtime.relationshipTemplates.invalidReference", `The reference for a relationship template must start with '${Base64ForIdPrefix_1.Base64ForIdPrefix.Token}' or '${Base64ForIdPrefix_1.Base64ForIdPrefix.RelationshipTemplate}'. The given reference '${reference}' is not valid.`);
|
|
5867
5861
|
}
|
|
5868
5862
|
}
|
|
5869
|
-
class RelationshipInfo {
|
|
5870
|
-
relationshipInfoExists(relationshipId) {
|
|
5871
|
-
return new ts_utils_1.ApplicationError("error.runtime.relationshipInfo.relationshipInfoExists", `RelationshipInfo for RelationshipId ${relationshipId} already exists. Try to update the RelationshipInfo instead.`);
|
|
5872
|
-
}
|
|
5873
|
-
}
|
|
5874
5863
|
class Messages {
|
|
5875
5864
|
fileNotFoundInMessage(attachmentId) {
|
|
5876
5865
|
return new ts_utils_1.ApplicationError("error.runtime.messages.fileNotFoundInMessage", `The requested file '${attachmentId}' was not found in the given message.`);
|
|
5877
5866
|
}
|
|
5878
5867
|
}
|
|
5879
5868
|
class Startup {
|
|
5880
|
-
noIdentityFound() {
|
|
5881
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noIdentityFound", "No identity information could be found. Please check your database integrity.");
|
|
5882
|
-
}
|
|
5883
5869
|
noActiveAccount() {
|
|
5884
5870
|
return new ts_utils_1.ApplicationError("error.runtime.startup.noActiveAccount", "No AccountController could be found. You might have to login first.");
|
|
5885
5871
|
}
|
|
@@ -5889,26 +5875,6 @@ class Startup {
|
|
|
5889
5875
|
noActiveExpander() {
|
|
5890
5876
|
return new ts_utils_1.ApplicationError("error.runtime.startup.noActiveExpander", "No DataViewExpander could be found. You might have to login first.");
|
|
5891
5877
|
}
|
|
5892
|
-
noDatabaseDefined() {
|
|
5893
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noDatabaseDefined", "No database is defined. Please check the database configuration.");
|
|
5894
|
-
}
|
|
5895
|
-
noPlatformConnection() {
|
|
5896
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.noPlatformConnection", "No platform connection could be established. Please check you network connectivity.");
|
|
5897
|
-
}
|
|
5898
|
-
privateDeviceKeyInvalid() {
|
|
5899
|
-
return new ts_utils_1.ApplicationError("error.runtime.startup.privateDeviceKeyInvalid", "The private key of this device seems to be invalid. You should check your config or database connection.");
|
|
5900
|
-
}
|
|
5901
|
-
}
|
|
5902
|
-
class Database {
|
|
5903
|
-
unknown() {
|
|
5904
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.unknown", "An unknown database error occured. Please check the logs.");
|
|
5905
|
-
}
|
|
5906
|
-
connectionError() {
|
|
5907
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.connectionError", "Connection to database could not be established. Please check the database credentials.");
|
|
5908
|
-
}
|
|
5909
|
-
quotaExceeded() {
|
|
5910
|
-
return new ts_utils_1.ApplicationError("error.runtime.database.quotaExceeded", "It seems that the database quota exceeded. Please increase the database size.");
|
|
5911
|
-
}
|
|
5912
5878
|
}
|
|
5913
5879
|
class Challenges {
|
|
5914
5880
|
invalidSignature() {
|
|
@@ -5924,11 +5890,9 @@ exports.RuntimeErrors = RuntimeErrors;
|
|
|
5924
5890
|
RuntimeErrors.general = new General();
|
|
5925
5891
|
RuntimeErrors.serval = new Serval();
|
|
5926
5892
|
RuntimeErrors.startup = new Startup();
|
|
5927
|
-
RuntimeErrors.database = new Database();
|
|
5928
5893
|
RuntimeErrors.files = new Files();
|
|
5929
5894
|
RuntimeErrors.relationshipTemplates = new RelationshipTemplates();
|
|
5930
5895
|
RuntimeErrors.messages = new Messages();
|
|
5931
|
-
RuntimeErrors.relationshipInfo = new RelationshipInfo();
|
|
5932
5896
|
RuntimeErrors.challenges = new Challenges();
|
|
5933
5897
|
//# sourceMappingURL=RuntimeErrors.js.map
|
|
5934
5898
|
|