@nmshd/connector-types 6.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +29 -0
- package/dist/AbstractConnectorRuntime.d.ts +8 -0
- package/dist/AbstractConnectorRuntime.d.ts.map +1 -0
- package/dist/AbstractConnectorRuntime.js +8 -0
- package/dist/AbstractConnectorRuntime.js.map +1 -0
- package/dist/ConnectorMode.d.ts +2 -0
- package/dist/ConnectorMode.d.ts.map +1 -0
- package/dist/ConnectorMode.js +3 -0
- package/dist/ConnectorMode.js.map +1 -0
- package/dist/ConnectorRuntimeModule.d.ts +12 -0
- package/dist/ConnectorRuntimeModule.d.ts.map +1 -0
- package/dist/ConnectorRuntimeModule.js +12 -0
- package/dist/ConnectorRuntimeModule.js.map +1 -0
- package/dist/DocumentationLink.d.ts +7 -0
- package/dist/DocumentationLink.d.ts.map +1 -0
- package/dist/DocumentationLink.js +18 -0
- package/dist/DocumentationLink.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/ConnectorInfrastructure.d.ts +19 -0
- package/dist/infrastructure/ConnectorInfrastructure.d.ts.map +1 -0
- package/dist/infrastructure/ConnectorInfrastructure.js +17 -0
- package/dist/infrastructure/ConnectorInfrastructure.js.map +1 -0
- package/dist/infrastructure/IConnectorInfrastructureRegistry.d.ts +8 -0
- package/dist/infrastructure/IConnectorInfrastructureRegistry.d.ts.map +1 -0
- package/dist/infrastructure/IConnectorInfrastructureRegistry.js +3 -0
- package/dist/infrastructure/IConnectorInfrastructureRegistry.js.map +1 -0
- package/dist/infrastructure/httpServer/HttpMethod.d.ts +2 -0
- package/dist/infrastructure/httpServer/HttpMethod.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/HttpMethod.js +3 -0
- package/dist/infrastructure/httpServer/HttpMethod.js.map +1 -0
- package/dist/infrastructure/httpServer/IHttpServer.d.ts +9 -0
- package/dist/infrastructure/httpServer/IHttpServer.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/IHttpServer.js +3 -0
- package/dist/infrastructure/httpServer/IHttpServer.js.map +1 -0
- package/dist/infrastructure/httpServer/common/Envelope.d.ts +10 -0
- package/dist/infrastructure/httpServer/common/Envelope.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/common/Envelope.js +22 -0
- package/dist/infrastructure/httpServer/common/Envelope.js.map +1 -0
- package/dist/infrastructure/httpServer/common/HttpError.d.ts +29 -0
- package/dist/infrastructure/httpServer/common/HttpError.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/common/HttpError.js +46 -0
- package/dist/infrastructure/httpServer/common/HttpError.js.map +1 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.d.ts +9 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.js +23 -0
- package/dist/infrastructure/httpServer/common/HttpErrors.js.map +1 -0
- package/dist/infrastructure/httpServer/common/index.d.ts +4 -0
- package/dist/infrastructure/httpServer/common/index.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/common/index.js +20 -0
- package/dist/infrastructure/httpServer/common/index.js.map +1 -0
- package/dist/infrastructure/httpServer/index.d.ts +4 -0
- package/dist/infrastructure/httpServer/index.d.ts.map +1 -0
- package/dist/infrastructure/httpServer/index.js +20 -0
- package/dist/infrastructure/httpServer/index.js.map +1 -0
- package/dist/infrastructure/index.d.ts +4 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +20 -0
- package/dist/infrastructure/index.js.map +1 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 j&s-soft AG
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Connector Types
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@nmshd/connector-types)
|
|
4
|
+
|
|
5
|
+
> ### Warning
|
|
6
|
+
>
|
|
7
|
+
> This package is still in development and should not be used yet.
|
|
8
|
+
|
|
9
|
+
This package provides TypeScript types for writing connector modules.
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
The documentation for this project is available at https://enmeshed.eu/integrate.
|
|
14
|
+
|
|
15
|
+
To get started developing in this repository, see the [developer's guide](README_dev.md).
|
|
16
|
+
|
|
17
|
+
## Feedback
|
|
18
|
+
|
|
19
|
+
Please file any bugs or feature requests by creating an [issue](https://github.com/nmshd/feedback/issues).
|
|
20
|
+
|
|
21
|
+
Share your feedback with the Enmeshed team by contributing to the [discussions](https://github.com/nmshd/feedback/discussions).
|
|
22
|
+
|
|
23
|
+
## Contribute
|
|
24
|
+
|
|
25
|
+
Contribution to this project is highly apprecicated. Head over to our [contribution guide](https://github.com/nmshd/.github/blob/main/CONTRIBUTING.md) to learn more.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Runtime, RuntimeConfig, RuntimeServices } from "@nmshd/runtime";
|
|
2
|
+
import { IConnectorInfrastructureRegistry } from "./infrastructure";
|
|
3
|
+
export declare abstract class AbstractConnectorRuntime<TConfig extends RuntimeConfig = RuntimeConfig> extends Runtime<TConfig> {
|
|
4
|
+
abstract getServices(): RuntimeServices;
|
|
5
|
+
abstract getBackboneAuthenticationToken(): Promise<string>;
|
|
6
|
+
abstract readonly infrastructure: IConnectorInfrastructureRegistry;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=AbstractConnectorRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractConnectorRuntime.d.ts","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE,8BAAsB,wBAAwB,CAAC,OAAO,SAAS,aAAa,GAAG,aAAa,CAAE,SAAQ,OAAO,CAAC,OAAO,CAAC;aACzF,WAAW,IAAI,eAAe;aACvC,8BAA8B,IAAI,OAAO,CAAC,MAAM,CAAC;IACjE,kBAAyB,cAAc,EAAE,gCAAgC,CAAC;CAC7E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractConnectorRuntime = void 0;
|
|
4
|
+
const runtime_1 = require("@nmshd/runtime");
|
|
5
|
+
class AbstractConnectorRuntime extends runtime_1.Runtime {
|
|
6
|
+
}
|
|
7
|
+
exports.AbstractConnectorRuntime = AbstractConnectorRuntime;
|
|
8
|
+
//# sourceMappingURL=AbstractConnectorRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractConnectorRuntime.js","sourceRoot":"","sources":["../src/AbstractConnectorRuntime.ts"],"names":[],"mappings":";;;AAAA,4CAAyE;AAGzE,MAAsB,wBAAwE,SAAQ,iBAAgB;CAIrH;AAJD,4DAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorMode.d.ts","sourceRoot":"","sources":["../src/ConnectorMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorMode.js","sourceRoot":"","sources":["../src/ConnectorMode.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ILogger } from "@js-soft/logging-abstractions";
|
|
2
|
+
import { ModuleConfiguration, RuntimeModule } from "@nmshd/runtime";
|
|
3
|
+
import { AbstractConnectorRuntime } from "./AbstractConnectorRuntime";
|
|
4
|
+
import { ConnectorMode } from "./ConnectorMode";
|
|
5
|
+
export interface ConnectorRuntimeModuleConfiguration extends ModuleConfiguration {
|
|
6
|
+
requiredInfrastructure?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class ConnectorRuntimeModule<TConfig extends ConnectorRuntimeModuleConfiguration = ConnectorRuntimeModuleConfiguration> extends RuntimeModule<TConfig, AbstractConnectorRuntime> {
|
|
9
|
+
protected readonly connectorMode: ConnectorMode;
|
|
10
|
+
constructor(runtime: AbstractConnectorRuntime, configuration: TConfig, logger: ILogger, connectorMode: ConnectorMode);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ConnectorRuntimeModule.d.ts.map
|
|
@@ -0,0 +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;AAEhD,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;CAItD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectorRuntimeModule = void 0;
|
|
4
|
+
const runtime_1 = require("@nmshd/runtime");
|
|
5
|
+
class ConnectorRuntimeModule extends runtime_1.RuntimeModule {
|
|
6
|
+
constructor(runtime, configuration, logger, connectorMode) {
|
|
7
|
+
super(runtime, configuration, logger);
|
|
8
|
+
this.connectorMode = connectorMode;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConnectorRuntimeModule = ConnectorRuntimeModule;
|
|
12
|
+
//# sourceMappingURL=ConnectorRuntimeModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorRuntimeModule.js","sourceRoot":"","sources":["../src/ConnectorRuntimeModule.ts"],"names":[],"mappings":";;;AACA,4CAAoE;AAQpE,MAAsB,sBAAkH,SAAQ,uBAG/I;IACG,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;CACJ;AAZD,wDAYC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class DocumentationLink {
|
|
2
|
+
private static readonly baseUrl;
|
|
3
|
+
static integrate__errorCodes(anchor?: string): string;
|
|
4
|
+
static operate__configuration(anchor?: string): string;
|
|
5
|
+
private static build;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=DocumentationLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentationLink.d.ts","sourceRoot":"","sources":["../src/DocumentationLink.ts"],"names":[],"mappings":"AACA,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAiC;WAElD,qBAAqB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;WAI9C,sBAAsB,CAAC,MAAM,SAAK,GAAG,MAAM;IAIzD,OAAO,CAAC,MAAM,CAAC,KAAK;CAGvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentationLink = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
+
class DocumentationLink {
|
|
6
|
+
static integrate__errorCodes(anchor) {
|
|
7
|
+
return this.build("integrate", "error-codes", anchor);
|
|
8
|
+
}
|
|
9
|
+
static operate__configuration(anchor = "") {
|
|
10
|
+
return this.build("operate", "configuration", anchor.toLocaleLowerCase());
|
|
11
|
+
}
|
|
12
|
+
static build(site, subSite, anchor = "") {
|
|
13
|
+
return `${DocumentationLink.baseUrl}/${site}/${subSite}#${anchor}`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.DocumentationLink = DocumentationLink;
|
|
17
|
+
DocumentationLink.baseUrl = "https://enmeshed.eu";
|
|
18
|
+
//# sourceMappingURL=DocumentationLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../src/DocumentationLink.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAa,iBAAiB;IAGnB,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;AAb2B,yBAAO,GAAW,qBAAqB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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("./AbstractConnectorRuntime"), exports);
|
|
18
|
+
__exportStar(require("./ConnectorMode"), exports);
|
|
19
|
+
__exportStar(require("./ConnectorRuntimeModule"), exports);
|
|
20
|
+
__exportStar(require("./DocumentationLink"), exports);
|
|
21
|
+
__exportStar(require("./infrastructure"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,2DAAyC;AACzC,sDAAoC;AACpC,mDAAiC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ILogger } from "@js-soft/logging-abstractions";
|
|
2
|
+
import { AbstractConnectorRuntime } from "../AbstractConnectorRuntime";
|
|
3
|
+
import { ConnectorMode } from "../ConnectorMode";
|
|
4
|
+
export interface InfrastructureConfiguration {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class ConnectorInfrastructure<TConfig extends InfrastructureConfiguration = InfrastructureConfiguration> {
|
|
8
|
+
protected runtime: AbstractConnectorRuntime;
|
|
9
|
+
protected configuration: TConfig;
|
|
10
|
+
protected logger: ILogger;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
protected readonly connectorMode: ConnectorMode;
|
|
13
|
+
constructor(runtime: AbstractConnectorRuntime, configuration: TConfig, logger: ILogger, name: string, connectorMode: ConnectorMode);
|
|
14
|
+
get isEnabled(): boolean;
|
|
15
|
+
abstract init(): Promise<void> | void;
|
|
16
|
+
abstract start(): Promise<void> | void;
|
|
17
|
+
abstract stop(): Promise<void> | void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ConnectorInfrastructure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorInfrastructure.d.ts","sourceRoot":"","sources":["../../src/infrastructure/ConnectorInfrastructure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,8BAAsB,uBAAuB,CAAC,OAAO,SAAS,2BAA2B,GAAG,2BAA2B;IAE/G,SAAS,CAAC,OAAO,EAAE,wBAAwB;IAC3C,SAAS,CAAC,aAAa,EAAE,OAAO;IAChC,SAAS,CAAC,MAAM,EAAE,OAAO;aACT,IAAI,EAAE,MAAM;IAC5B,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;gBAJrC,OAAO,EAAE,wBAAwB,EACjC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,OAAO,EACT,IAAI,EAAE,MAAM,EACT,aAAa,EAAE,aAAa;IAGnD,IAAW,SAAS,IAAI,OAAO,CAE9B;aAEe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;aAC5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;aAC7B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CAC/C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectorInfrastructure = void 0;
|
|
4
|
+
class ConnectorInfrastructure {
|
|
5
|
+
constructor(runtime, configuration, logger, name, connectorMode) {
|
|
6
|
+
this.runtime = runtime;
|
|
7
|
+
this.configuration = configuration;
|
|
8
|
+
this.logger = logger;
|
|
9
|
+
this.name = name;
|
|
10
|
+
this.connectorMode = connectorMode;
|
|
11
|
+
}
|
|
12
|
+
get isEnabled() {
|
|
13
|
+
return this.configuration.enabled;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ConnectorInfrastructure = ConnectorInfrastructure;
|
|
17
|
+
//# sourceMappingURL=ConnectorInfrastructure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorInfrastructure.js","sourceRoot":"","sources":["../../src/infrastructure/ConnectorInfrastructure.ts"],"names":[],"mappings":";;;AAQA,MAAsB,uBAAuB;IACzC,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConnectorInfrastructure } from "./ConnectorInfrastructure";
|
|
2
|
+
import { IHttpServer } from "./httpServer";
|
|
3
|
+
export interface IConnectorInfrastructureRegistry {
|
|
4
|
+
readonly httpServer: IHttpServer;
|
|
5
|
+
getByName<T extends ConnectorInfrastructure>(name: string): T;
|
|
6
|
+
add(infrastructure: ConnectorInfrastructure): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=IConnectorInfrastructureRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IConnectorInfrastructureRegistry.d.ts","sourceRoot":"","sources":["../../src/infrastructure/IConnectorInfrastructureRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,gCAAgC;IAC7C,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IAEjC,SAAS,CAAC,CAAC,SAAS,uBAAuB,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;IAC9D,GAAG,CAAC,cAAc,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IConnectorInfrastructureRegistry.js","sourceRoot":"","sources":["../../src/infrastructure/IConnectorInfrastructureRegistry.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type HttpMethod = "checkout" | "copy" | "delete" | "get" | "head" | "lock" | "merge" | "mkactivity" | "mkcol" | "move" | "m-search" | "notify" | "options" | "patch" | "post" | "purge" | "put" | "report" | "search" | "subscribe" | "trace" | "unlock" | "unsubscribe";
|
|
2
|
+
//# sourceMappingURL=HttpMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpMethod.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/HttpMethod.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAChB,UAAU,GACV,MAAM,GACN,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,GACZ,OAAO,GACP,MAAM,GACN,UAAU,GACV,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,OAAO,GACP,QAAQ,GACR,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpMethod.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/HttpMethod.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RequestHandler } from "express";
|
|
2
|
+
import { ConnectorInfrastructure } from "../ConnectorInfrastructure";
|
|
3
|
+
import { HttpMethod } from "./HttpMethod";
|
|
4
|
+
export interface IHttpServer extends ConnectorInfrastructure {
|
|
5
|
+
addEndpoint(httpMethod: HttpMethod, route: string, authenticationRequired: boolean, handler: RequestHandler): void;
|
|
6
|
+
addControllers(controllerGlobs: string[], baseDirectory: string): void;
|
|
7
|
+
addMiddleware(route: string, authenticationRequired: boolean, ...handlers: RequestHandler[]): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IHttpServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHttpServer.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/IHttpServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,WAAY,SAAQ,uBAAuB;IACxD,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IACnH,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACvE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;CACtG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHttpServer.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/IHttpServer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConnectorMode } from "../../../ConnectorMode";
|
|
2
|
+
import { HttpError, HttpErrorJSON } from "./HttpError";
|
|
3
|
+
export declare class Envelope {
|
|
4
|
+
result?: any | undefined;
|
|
5
|
+
error?: HttpErrorJSON | undefined;
|
|
6
|
+
protected constructor(result?: any | undefined, error?: HttpErrorJSON | undefined);
|
|
7
|
+
static ok(result: any): Envelope;
|
|
8
|
+
static error(error: HttpError, connectorMode: ConnectorMode): Envelope;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Envelope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Envelope.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEvD,qBAAa,QAAQ;IAEN,MAAM,CAAC,EAAE,GAAG;IACZ,KAAK,CAAC,EAAE,aAAa;IAFhC,SAAS,aACE,MAAM,CAAC,EAAE,GAAG,YAAA,EACZ,KAAK,CAAC,EAAE,aAAa,YAAA;WAGlB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ;WAIzB,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,GAAG,QAAQ;CAQhF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Envelope = void 0;
|
|
4
|
+
class Envelope {
|
|
5
|
+
constructor(result, error) {
|
|
6
|
+
this.result = result;
|
|
7
|
+
this.error = error;
|
|
8
|
+
}
|
|
9
|
+
static ok(result) {
|
|
10
|
+
return new Envelope(result, undefined);
|
|
11
|
+
}
|
|
12
|
+
static error(error, connectorMode) {
|
|
13
|
+
switch (connectorMode) {
|
|
14
|
+
case "debug":
|
|
15
|
+
return new Envelope(undefined, error.toJSON("verbose"));
|
|
16
|
+
case "production":
|
|
17
|
+
return new Envelope(undefined, error.toJSON());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Envelope = Envelope;
|
|
22
|
+
//# sourceMappingURL=Envelope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Envelope.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/Envelope.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;IACjB,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface HttpErrorJSON {
|
|
2
|
+
code: string;
|
|
3
|
+
message: string;
|
|
4
|
+
id: string;
|
|
5
|
+
time: string;
|
|
6
|
+
docs: string;
|
|
7
|
+
stacktrace?: string[];
|
|
8
|
+
details?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class HttpError {
|
|
11
|
+
readonly code: string;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
readonly stacktrace?: string[] | undefined;
|
|
14
|
+
readonly details?: string | undefined;
|
|
15
|
+
readonly docs: string;
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly time: string;
|
|
18
|
+
constructor(code: string, message: string, stacktrace?: string[] | undefined, details?: string | undefined);
|
|
19
|
+
toJSON(verbose?: "verbose"): HttpErrorJSON;
|
|
20
|
+
}
|
|
21
|
+
export declare class HttpErrorId {
|
|
22
|
+
private static readonly prefix;
|
|
23
|
+
private static readonly totalLength;
|
|
24
|
+
private static readonly lengthOfRandomPart;
|
|
25
|
+
private static readonly characters;
|
|
26
|
+
private static readonly charactersLength;
|
|
27
|
+
static create(): string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=HttpError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpError.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,SAAS;aAME,IAAI,EAAE,MAAM;aACZ,OAAO,EAAE,MAAM;aACf,UAAU,CAAC,EAAE,MAAM,EAAE;aACrB,OAAO,CAAC,EAAE,MAAM;IARpC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,SAAgB,IAAI,EAAE,MAAM,CAAC;gBAGT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EAAE,YAAA,EACrB,OAAO,CAAC,EAAE,MAAM,YAAA;IAQ7B,MAAM,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa;CAgBpD;AAED,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAS;IACvC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAM;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAuD;IACjG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAsC;IACxE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;WAE3D,MAAM,IAAI,MAAM;CAQjC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpErrorId = exports.HttpError = void 0;
|
|
4
|
+
const DocumentationLink_1 = require("../../../DocumentationLink");
|
|
5
|
+
class HttpError {
|
|
6
|
+
constructor(code, message, stacktrace, details) {
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.message = message;
|
|
9
|
+
this.stacktrace = stacktrace;
|
|
10
|
+
this.details = details;
|
|
11
|
+
this.id = HttpErrorId.create();
|
|
12
|
+
this.time = new Date().toISOString();
|
|
13
|
+
this.docs = DocumentationLink_1.DocumentationLink.integrate__errorCodes(code);
|
|
14
|
+
}
|
|
15
|
+
toJSON(verbose) {
|
|
16
|
+
const json = {
|
|
17
|
+
code: this.code,
|
|
18
|
+
message: this.message,
|
|
19
|
+
id: this.id,
|
|
20
|
+
time: this.time,
|
|
21
|
+
docs: this.docs
|
|
22
|
+
};
|
|
23
|
+
if (verbose) {
|
|
24
|
+
json.stacktrace = this.stacktrace;
|
|
25
|
+
json.details = this.details;
|
|
26
|
+
}
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.HttpError = HttpError;
|
|
31
|
+
class HttpErrorId {
|
|
32
|
+
static create() {
|
|
33
|
+
let result = HttpErrorId.prefix;
|
|
34
|
+
for (let i = 0; i < HttpErrorId.lengthOfRandomPart; i++) {
|
|
35
|
+
result += HttpErrorId.characters.charAt(Math.floor(Math.random() * HttpErrorId.charactersLength));
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
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
|
+
//# sourceMappingURL=HttpError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpError.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/HttpError.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAY/D,MAAa,SAAS;IAKlB,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;IAOb,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;AAd2B,kBAAM,GAAG,KAAK,CAAC;AACf,uBAAW,GAAG,EAAE,CAAC;AACjB,8BAAkB,GAAG,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;AACzE,sBAAU,GAAG,kCAAkC,CAAC;AAChD,4BAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpError } from "./HttpError";
|
|
2
|
+
export declare class HttpErrors {
|
|
3
|
+
static unauthorized(): HttpError;
|
|
4
|
+
static invalidJsonInPayload(): HttpError;
|
|
5
|
+
static routeDoesNotExist(): HttpError;
|
|
6
|
+
static methodNotAllowed(): HttpError;
|
|
7
|
+
static notAcceptable(): HttpError;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=HttpErrors.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpErrors = void 0;
|
|
4
|
+
const HttpError_1 = require("./HttpError");
|
|
5
|
+
class HttpErrors {
|
|
6
|
+
static unauthorized() {
|
|
7
|
+
return new HttpError_1.HttpError("error.connector.unauthorized", "Unauthorized.");
|
|
8
|
+
}
|
|
9
|
+
static invalidJsonInPayload() {
|
|
10
|
+
return new HttpError_1.HttpError("error.connector.validation.invalidJsonInPayload", "The given payload is not a valid json object.");
|
|
11
|
+
}
|
|
12
|
+
static routeDoesNotExist() {
|
|
13
|
+
return new HttpError_1.HttpError("error.connector.http.routeDoesNotExist", "The requested route does not exist.");
|
|
14
|
+
}
|
|
15
|
+
static methodNotAllowed() {
|
|
16
|
+
return new HttpError_1.HttpError("error.connector.http.methodNotAllowed", "The request method is not supported for the requested resource.");
|
|
17
|
+
}
|
|
18
|
+
static notAcceptable() {
|
|
19
|
+
return new HttpError_1.HttpError("error.connector.http.notAcceptable", "The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.HttpErrors = HttpErrors;
|
|
23
|
+
//# sourceMappingURL=HttpErrors.js.map
|
|
@@ -0,0 +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;AAvBD,gCAuBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./Envelope"), exports);
|
|
18
|
+
__exportStar(require("./HttpError"), exports);
|
|
19
|
+
__exportStar(require("./HttpErrors"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/infrastructure/httpServer/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./common"), exports);
|
|
18
|
+
__exportStar(require("./HttpMethod"), exports);
|
|
19
|
+
__exportStar(require("./IHttpServer"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/httpServer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/infrastructure/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./ConnectorInfrastructure"), exports);
|
|
18
|
+
__exportStar(require("./httpServer"), exports);
|
|
19
|
+
__exportStar(require("./IConnectorInfrastructureRegistry"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infrastructure/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+CAA6B;AAC7B,qEAAmD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nmshd/connector-types",
|
|
3
|
+
"description": "the enmeshed connector types",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"enmeshed",
|
|
6
|
+
"connector"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://enmeshed.eu/integrate",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/nmshd/connector.git",
|
|
12
|
+
"directory": "/packages/types"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "j&s-soft AG",
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc",
|
|
24
|
+
"build:ci": "tsc",
|
|
25
|
+
"build:watch": "tsc --watch"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@nmshd/runtime": "^6.23.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@js-soft/logging-abstractions": "^1.0.1",
|
|
32
|
+
"@types/express": "^5.0.0",
|
|
33
|
+
"@types/luxon": "^3.4.2",
|
|
34
|
+
"@types/node": "^22.10.7",
|
|
35
|
+
"typescript": "^5.7.3"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
41
|
+
"version": "6.16.0"
|
|
42
|
+
}
|