@nmshd/connector-types 7.0.0-alpha.9 → 7.0.0-openid4vc.1
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/AbstractConnectorRuntime.d.ts +2 -1
- package/dist/AbstractConnectorRuntime.d.ts.map +1 -1
- package/dist/AbstractConnectorRuntime.js.map +1 -1
- package/dist/ConnectorRuntimeBuildInformation.d.ts +15 -0
- package/dist/ConnectorRuntimeBuildInformation.d.ts.map +1 -0
- package/dist/ConnectorRuntimeBuildInformation.js +3 -0
- package/dist/ConnectorRuntimeBuildInformation.js.map +1 -0
- package/dist/ConnectorRuntimeModule.d.ts +2 -0
- package/dist/ConnectorRuntimeModule.d.ts.map +1 -1
- package/dist/ConnectorRuntimeModule.js +5 -0
- package/dist/ConnectorRuntimeModule.js.map +1 -1
- package/dist/DocumentationLink.js +1 -1
- package/dist/DocumentationLink.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ConnectorInfrastructure.js +5 -0
- package/dist/infrastructure/ConnectorInfrastructure.js.map +1 -1
- package/dist/infrastructure/httpServer/common/Envelope.js +2 -0
- package/dist/infrastructure/httpServer/common/Envelope.js.map +1 -1
- package/dist/infrastructure/httpServer/common/HttpError.js +12 -5
- package/dist/infrastructure/httpServer/common/HttpError.js.map +1 -1
- package/dist/infrastructure/httpServer/common/HttpErrors.d.ts +1 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.d.ts.map +1 -1
- package/dist/infrastructure/httpServer/common/HttpErrors.js +3 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.js.map +1 -1
- package/dist/infrastructure/httpServer/common/Mimetype.js +1 -0
- package/dist/infrastructure/httpServer/common/Mimetype.js.map +1 -1
- package/dist/infrastructure/httpServer/globals.d.ts +9 -0
- package/dist/infrastructure/httpServer/globals.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/globals.js +3 -0
- package/dist/infrastructure/httpServer/globals.js.map +1 -0
- package/dist/infrastructure/httpServer/index.d.ts +1 -0
- package/dist/infrastructure/httpServer/index.d.ts.map +1 -1
- package/dist/infrastructure/httpServer/index.js +1 -0
- package/dist/infrastructure/httpServer/index.js.map +1 -1
- package/package.json +12 -12
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { IDatabaseConnection } from "@js-soft/docdb-access-abstractions";
|
|
2
2
|
import { Runtime, RuntimeConfig, RuntimeServices } from "@nmshd/runtime";
|
|
3
|
+
import { ConnectorRuntimeBuildInformation } from "./ConnectorRuntimeBuildInformation";
|
|
3
4
|
import { IConnectorInfrastructureRegistry } from "./infrastructure";
|
|
4
5
|
export interface ConnectorRuntimeConfig extends RuntimeConfig {
|
|
5
6
|
database: {
|
|
6
7
|
dbName: string;
|
|
7
|
-
dbNamePrefix: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
export declare abstract class AbstractConnectorRuntime<TConfig extends ConnectorRuntimeConfig = ConnectorRuntimeConfig> extends Runtime<TConfig> {
|
|
11
11
|
abstract getServices(): RuntimeServices;
|
|
12
12
|
abstract getBackboneAuthenticationToken(): Promise<string>;
|
|
13
|
+
abstract getBuildInformation(): ConnectorRuntimeBuildInformation;
|
|
13
14
|
abstract readonly infrastructure: IConnectorInfrastructureRegistry;
|
|
14
15
|
databaseConnection: IDatabaseConnection;
|
|
15
16
|
readonly runtimeConfig: TConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractConnectorRuntime.d.ts","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AbstractConnectorRuntime.d.ts","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAED,8BAAsB,wBAAwB,CAAC,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,OAAO,CAAC,OAAO,CAAC;aAC3G,WAAW,IAAI,eAAe;aACvC,8BAA8B,IAAI,OAAO,CAAC,MAAM,CAAC;aACjD,mBAAmB,IAAI,gCAAgC;IACvE,kBAAyB,cAAc,EAAE,gCAAgC,CAAC;IAE3D,kBAAkB,EAAE,mBAAmB,CAAC;IACvD,SAAwB,aAAa,EAAE,OAAO,CAAC;CAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractConnectorRuntime.js","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":";;;AACA,4CAAyE;
|
|
1
|
+
{"version":3,"file":"AbstractConnectorRuntime.js","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":";;;AACA,4CAAyE;AAQzE,MAAsB,wBAA0F,SAAQ,iBAAgB;CAQvI;AARD,4DAQC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ConnectorRuntimeBuildInformation {
|
|
2
|
+
version: string;
|
|
3
|
+
build: string;
|
|
4
|
+
date: string;
|
|
5
|
+
commit: string;
|
|
6
|
+
runtimeVersion: string;
|
|
7
|
+
modules: Record<string, ConnectorRuntimeModuleBuildInformation>;
|
|
8
|
+
}
|
|
9
|
+
export interface ConnectorRuntimeModuleBuildInformation {
|
|
10
|
+
version: string;
|
|
11
|
+
build: string;
|
|
12
|
+
date: string;
|
|
13
|
+
commit: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ConnectorRuntimeBuildInformation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorRuntimeBuildInformation.d.ts","sourceRoot":"","sources":["../src/ConnectorRuntimeBuildInformation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,sCAAsC,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,sCAAsC;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorRuntimeBuildInformation.js","sourceRoot":"","sources":["../src/ConnectorRuntimeBuildInformation.ts"],"names":[],"mappings":""}
|
|
@@ -2,11 +2,13 @@ import { ILogger } from "@js-soft/logging-abstractions";
|
|
|
2
2
|
import { ModuleConfiguration, RuntimeModule } from "@nmshd/runtime";
|
|
3
3
|
import { AbstractConnectorRuntime } from "./AbstractConnectorRuntime";
|
|
4
4
|
import { ConnectorMode } from "./ConnectorMode";
|
|
5
|
+
import { ConnectorRuntimeModuleBuildInformation } from "./ConnectorRuntimeBuildInformation";
|
|
5
6
|
export interface ConnectorRuntimeModuleConfiguration extends ModuleConfiguration {
|
|
6
7
|
requiredInfrastructure?: string[];
|
|
7
8
|
}
|
|
8
9
|
export declare abstract class ConnectorRuntimeModule<TConfig extends ConnectorRuntimeModuleConfiguration = ConnectorRuntimeModuleConfiguration> extends RuntimeModule<TConfig, AbstractConnectorRuntime> {
|
|
9
10
|
protected readonly connectorMode: ConnectorMode;
|
|
10
11
|
constructor(runtime: AbstractConnectorRuntime, configuration: TConfig, logger: ILogger, connectorMode: ConnectorMode);
|
|
12
|
+
getBuildInformation(): ConnectorRuntimeModuleBuildInformation | undefined;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=ConnectorRuntimeModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorRuntimeModule.d.ts","sourceRoot":"","sources":["../src/ConnectorRuntimeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectorRuntimeModule.d.ts","sourceRoot":"","sources":["../src/ConnectorRuntimeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAE5F,MAAM,WAAW,mCAAoC,SAAQ,mBAAmB;IAC5E,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,8BAAsB,sBAAsB,CAAC,OAAO,SAAS,mCAAmC,GAAG,mCAAmC,CAAE,SAAQ,aAAa,CACzJ,OAAO,EACP,wBAAwB,CAC3B;IAKO,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;gBAH/C,OAAO,EAAE,wBAAwB,EACjC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,OAAO,EACI,aAAa,EAAE,aAAa;IAK5C,mBAAmB,IAAI,sCAAsC,GAAG,SAAS;CAInF"}
|
|
@@ -3,10 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConnectorRuntimeModule = void 0;
|
|
4
4
|
const runtime_1 = require("@nmshd/runtime");
|
|
5
5
|
class ConnectorRuntimeModule extends runtime_1.RuntimeModule {
|
|
6
|
+
connectorMode;
|
|
6
7
|
constructor(runtime, configuration, logger, connectorMode) {
|
|
7
8
|
super(runtime, configuration, logger);
|
|
8
9
|
this.connectorMode = connectorMode;
|
|
9
10
|
}
|
|
11
|
+
getBuildInformation() {
|
|
12
|
+
// This method can be overridden by subclasses to provide module-specific build information
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
exports.ConnectorRuntimeModule = ConnectorRuntimeModule;
|
|
12
17
|
//# sourceMappingURL=ConnectorRuntimeModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorRuntimeModule.js","sourceRoot":"","sources":["../src/ConnectorRuntimeModule.ts"],"names":[],"mappings":";;;AACA,4CAAoE;
|
|
1
|
+
{"version":3,"file":"ConnectorRuntimeModule.js","sourceRoot":"","sources":["../src/ConnectorRuntimeModule.ts"],"names":[],"mappings":";;;AACA,4CAAoE;AASpE,MAAsB,sBAAkH,SAAQ,uBAG/I;IAK0B;IAJvB,YACI,OAAiC,EACjC,aAAsB,EACtB,MAAe,EACI,aAA4B;QAE/C,KAAK,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;QAFnB,kBAAa,GAAb,aAAa,CAAe;IAGnD,CAAC;IAEM,mBAAmB;QACtB,2FAA2F;QAC3F,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAjBD,wDAiBC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DocumentationLink = void 0;
|
|
4
4
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
5
|
class DocumentationLink {
|
|
6
|
+
static baseUrl = "https://enmeshed.eu";
|
|
6
7
|
static integrate__errorCodes(anchor) {
|
|
7
8
|
return this.build("integrate", "error-codes", anchor);
|
|
8
9
|
}
|
|
@@ -14,5 +15,4 @@ class DocumentationLink {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
exports.DocumentationLink = DocumentationLink;
|
|
17
|
-
DocumentationLink.baseUrl = "https://enmeshed.eu";
|
|
18
18
|
//# sourceMappingURL=DocumentationLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../src/DocumentationLink.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../src/DocumentationLink.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAa,iBAAiB;IAClB,MAAM,CAAU,OAAO,GAAW,qBAAqB,CAAC;IAEzD,MAAM,CAAC,qBAAqB,CAAC,MAAe;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,MAAM,GAAG,EAAE;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,eAAe,EAAE,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC9E,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,IAAY,EAAE,OAAe,EAAE,MAAM,GAAG,EAAE;QAC3D,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;IACvE,CAAC;;AAbL,8CAcC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AbstractConnectorRuntime"), exports);
|
|
18
18
|
__exportStar(require("./ConnectorMode"), exports);
|
|
19
|
+
__exportStar(require("./ConnectorRuntimeBuildInformation"), exports);
|
|
19
20
|
__exportStar(require("./ConnectorRuntimeModule"), exports);
|
|
20
21
|
__exportStar(require("./DocumentationLink"), exports);
|
|
21
22
|
__exportStar(require("./infrastructure"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,2DAAyC;AACzC,sDAAoC;AACpC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,qEAAmD;AACnD,2DAAyC;AACzC,sDAAoC;AACpC,mDAAiC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectorInfrastructure = void 0;
|
|
4
4
|
class ConnectorInfrastructure {
|
|
5
|
+
runtime;
|
|
6
|
+
configuration;
|
|
7
|
+
logger;
|
|
8
|
+
name;
|
|
9
|
+
connectorMode;
|
|
5
10
|
constructor(runtime, configuration, logger, name, connectorMode) {
|
|
6
11
|
this.runtime = runtime;
|
|
7
12
|
this.configuration = configuration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorInfrastructure.js","sourceRoot":"","sources":["../../src/infrastructure/ConnectorInfrastructure.ts"],"names":[],"mappings":";;;AAQA,MAAsB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"ConnectorInfrastructure.js","sourceRoot":"","sources":["../../src/infrastructure/ConnectorInfrastructure.ts"],"names":[],"mappings":";;;AAQA,MAAsB,uBAAuB;IAE3B;IACA;IACA;IACM;IACG;IALvB,YACc,OAAiC,EACjC,aAAsB,EACtB,MAAe,EACT,IAAY,EACT,aAA4B;QAJrC,YAAO,GAAP,OAAO,CAA0B;QACjC,kBAAa,GAAb,aAAa,CAAS;QACtB,WAAM,GAAN,MAAM,CAAS;QACT,SAAI,GAAJ,IAAI,CAAQ;QACT,kBAAa,GAAb,aAAa,CAAe;IAChD,CAAC;IAEJ,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;IACtC,CAAC;CAKJ;AAhBD,0DAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Envelope.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Envelope.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"Envelope.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Envelope.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;IAEN;IACA;IAFX,YACW,MAAY,EACZ,KAAqB;QADrB,WAAM,GAAN,MAAM,CAAM;QACZ,UAAK,GAAL,KAAK,CAAgB;IAC7B,CAAC;IAEG,MAAM,CAAC,EAAE,CAAC,MAAW;QACxB,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,KAAgB,EAAE,aAA4B;QAC9D,QAAQ,aAAa,EAAE,CAAC;YACpB,KAAK,OAAO;gBACR,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;YAC5D,KAAK,YAAY;gBACb,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AAlBD,4BAkBC"}
|
|
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HttpErrorId = exports.HttpError = void 0;
|
|
4
4
|
const DocumentationLink_1 = require("../../../DocumentationLink");
|
|
5
5
|
class HttpError {
|
|
6
|
+
code;
|
|
7
|
+
message;
|
|
8
|
+
stacktrace;
|
|
9
|
+
details;
|
|
10
|
+
docs;
|
|
11
|
+
id;
|
|
12
|
+
time;
|
|
6
13
|
constructor(code, message, stacktrace, details) {
|
|
7
14
|
this.code = code;
|
|
8
15
|
this.message = message;
|
|
@@ -29,6 +36,11 @@ class HttpError {
|
|
|
29
36
|
}
|
|
30
37
|
exports.HttpError = HttpError;
|
|
31
38
|
class HttpErrorId {
|
|
39
|
+
static prefix = "ERR";
|
|
40
|
+
static totalLength = 20;
|
|
41
|
+
static lengthOfRandomPart = HttpErrorId.totalLength - HttpErrorId.prefix.length;
|
|
42
|
+
static characters = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
|
|
43
|
+
static charactersLength = HttpErrorId.characters.length;
|
|
32
44
|
static create() {
|
|
33
45
|
let result = HttpErrorId.prefix;
|
|
34
46
|
for (let i = 0; i < HttpErrorId.lengthOfRandomPart; i++) {
|
|
@@ -38,9 +50,4 @@ class HttpErrorId {
|
|
|
38
50
|
}
|
|
39
51
|
}
|
|
40
52
|
exports.HttpErrorId = HttpErrorId;
|
|
41
|
-
HttpErrorId.prefix = "ERR";
|
|
42
|
-
HttpErrorId.totalLength = 20;
|
|
43
|
-
HttpErrorId.lengthOfRandomPart = HttpErrorId.totalLength - HttpErrorId.prefix.length;
|
|
44
|
-
HttpErrorId.characters = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
|
|
45
|
-
HttpErrorId.charactersLength = HttpErrorId.characters.length;
|
|
46
53
|
//# sourceMappingURL=HttpError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpError.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpError.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAY/D,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"HttpError.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpError.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAY/D,MAAa,SAAS;IAME;IACA;IACA;IACA;IARJ,IAAI,CAAS;IACb,EAAE,CAAS;IACX,IAAI,CAAS;IAE7B,YACoB,IAAY,EACZ,OAAe,EACf,UAAqB,EACrB,OAAgB;QAHhB,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAQ;QACf,eAAU,GAAV,UAAU,CAAW;QACrB,YAAO,GAAP,OAAO,CAAS;QAEhC,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAErC,IAAI,CAAC,IAAI,GAAG,qCAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,OAAmB;QAC7B,MAAM,IAAI,GAAkB;YACxB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;QAEF,IAAI,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAjCD,8BAiCC;AAED,MAAa,WAAW;IACZ,MAAM,CAAU,MAAM,GAAG,KAAK,CAAC;IAC/B,MAAM,CAAU,WAAW,GAAG,EAAE,CAAC;IACjC,MAAM,CAAU,kBAAkB,GAAG,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IACzF,MAAM,CAAU,UAAU,GAAG,kCAAkC,CAAC;IAChE,MAAM,CAAU,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC;IAElE,MAAM,CAAC,MAAM;QAChB,IAAI,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC;YACtD,MAAM,IAAI,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACtG,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;;AAdL,kCAeC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpError } from "./HttpError";
|
|
2
2
|
export declare class HttpErrors {
|
|
3
3
|
static unauthorized(): HttpError;
|
|
4
|
+
static forbidden(): HttpError;
|
|
4
5
|
static invalidJsonInPayload(): HttpError;
|
|
5
6
|
static routeDoesNotExist(): HttpError;
|
|
6
7
|
static methodNotAllowed(): HttpError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpErrors.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,UAAU;WACL,YAAY,IAAI,SAAS;WAIzB,oBAAoB,IAAI,SAAS;WAIjC,iBAAiB,IAAI,SAAS;WAI9B,gBAAgB,IAAI,SAAS;WAI7B,aAAa,IAAI,SAAS;CAM3C"}
|
|
1
|
+
{"version":3,"file":"HttpErrors.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,UAAU;WACL,YAAY,IAAI,SAAS;WAIzB,SAAS,IAAI,SAAS;WAItB,oBAAoB,IAAI,SAAS;WAIjC,iBAAiB,IAAI,SAAS;WAI9B,gBAAgB,IAAI,SAAS;WAI7B,aAAa,IAAI,SAAS;CAM3C"}
|
|
@@ -6,6 +6,9 @@ class HttpErrors {
|
|
|
6
6
|
static unauthorized() {
|
|
7
7
|
return new HttpError_1.HttpError("error.connector.unauthorized", "Unauthorized.");
|
|
8
8
|
}
|
|
9
|
+
static forbidden() {
|
|
10
|
+
return new HttpError_1.HttpError("error.connector.forbidden", "You are not allowed to access this endpoint.");
|
|
11
|
+
}
|
|
9
12
|
static invalidJsonInPayload() {
|
|
10
13
|
return new HttpError_1.HttpError("error.connector.validation.invalidJsonInPayload", "The given payload is not a valid json object.");
|
|
11
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpErrors.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpErrors.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC,MAAa,UAAU;IACZ,MAAM,CAAC,YAAY;QACtB,OAAO,IAAI,qBAAS,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;IAC1E,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAC9B,OAAO,IAAI,qBAAS,CAAC,iDAAiD,EAAE,+CAA+C,CAAC,CAAC;IAC7H,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC3B,OAAO,IAAI,qBAAS,CAAC,wCAAwC,EAAE,qCAAqC,CAAC,CAAC;IAC1G,CAAC;IAEM,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,qBAAS,CAAC,uCAAuC,EAAE,iEAAiE,CAAC,CAAC;IACrI,CAAC;IAEM,MAAM,CAAC,aAAa;QACvB,OAAO,IAAI,qBAAS,CAChB,oCAAoC,EACpC,kIAAkI,CACrI,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"HttpErrors.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpErrors.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC,MAAa,UAAU;IACZ,MAAM,CAAC,YAAY;QACtB,OAAO,IAAI,qBAAS,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;IAC1E,CAAC;IAEM,MAAM,CAAC,SAAS;QACnB,OAAO,IAAI,qBAAS,CAAC,2BAA2B,EAAE,8CAA8C,CAAC,CAAC;IACtG,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAC9B,OAAO,IAAI,qBAAS,CAAC,iDAAiD,EAAE,+CAA+C,CAAC,CAAC;IAC7H,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC3B,OAAO,IAAI,qBAAS,CAAC,wCAAwC,EAAE,qCAAqC,CAAC,CAAC;IAC1G,CAAC;IAEM,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,qBAAS,CAAC,uCAAuC,EAAE,iEAAiE,CAAC,CAAC;IACrI,CAAC;IAEM,MAAM,CAAC,aAAa;QACvB,OAAO,IAAI,qBAAS,CAChB,oCAAoC,EACpC,kIAAkI,CACrI,CAAC;IACN,CAAC;CACJ;AA3BD,gCA2BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mimetype.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Mimetype.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"Mimetype.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Mimetype.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IACS;IAA1B,YAA0B,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAEpC,MAAM,CAAC,GAAG;QACb,OAAO,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,IAAI;QACd,OAAO,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,IAAI;QACd,OAAO,IAAI,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,GAAG;QACb,OAAO,IAAI,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC3C,CAAC;CACJ;AAlBD,4BAkBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/globals.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,OAAO,CAAC;QACd,UAAU,OAAO;YACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;SACxB;KACJ;CACJ;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/globals.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BaseController"), exports);
|
|
18
18
|
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./globals"), exports);
|
|
19
20
|
__exportStar(require("./HttpMethod"), exports);
|
|
20
21
|
__exportStar(require("./IHttpServer"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -24,27 +24,27 @@
|
|
|
24
24
|
"build:ci": "tsc",
|
|
25
25
|
"build:watch": "tsc --watch"
|
|
26
26
|
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"qrcode": "^1.5.4"
|
|
29
|
+
},
|
|
27
30
|
"devDependencies": {
|
|
28
31
|
"@js-soft/logging-abstractions": "^1.0.1",
|
|
29
|
-
"@types/express": "^5.0.
|
|
30
|
-
"@types/luxon": "^3.
|
|
31
|
-
"@types/node": "^
|
|
32
|
+
"@types/express": "^5.0.3",
|
|
33
|
+
"@types/luxon": "^3.7.1",
|
|
34
|
+
"@types/node": "^24.7.1",
|
|
32
35
|
"@types/qrcode": "^1.5.5",
|
|
33
|
-
"typescript": "^5.
|
|
36
|
+
"typescript": "^5.9.3"
|
|
34
37
|
},
|
|
35
38
|
"peerDependencies": {
|
|
36
|
-
"@js-soft/docdb-access-abstractions": "^1.
|
|
37
|
-
"@js-soft/ts-utils": "^2.3.
|
|
38
|
-
"@nmshd/runtime": "
|
|
39
|
-
"@nmshd/typescript-rest": "^3.
|
|
39
|
+
"@js-soft/docdb-access-abstractions": "^1.2.0",
|
|
40
|
+
"@js-soft/ts-utils": "^2.3.4",
|
|
41
|
+
"@nmshd/runtime": "7.0.0-openid4vc.3",
|
|
42
|
+
"@nmshd/typescript-rest": "^3.2.0",
|
|
40
43
|
"express": "^5.1.0"
|
|
41
44
|
},
|
|
42
45
|
"publishConfig": {
|
|
43
46
|
"access": "public",
|
|
44
47
|
"provenance": true
|
|
45
48
|
},
|
|
46
|
-
"
|
|
47
|
-
"qrcode": "^1.5.4"
|
|
48
|
-
},
|
|
49
|
-
"version": "7.0.0-alpha.9"
|
|
49
|
+
"version": "7.0.0-openid4vc.1"
|
|
50
50
|
}
|