@glion/mllp-client 0.16.0 → 0.19.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/README.md +370 -195
- package/dist/assertions.d.ts +10 -0
- package/dist/assertions.d.ts.map +1 -0
- package/dist/client.d.ts +108 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/errors/base.d.ts +31 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/index.d.ts +15 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/mllp-already-sending-error.d.ts +14 -0
- package/dist/errors/mllp-already-sending-error.d.ts.map +1 -0
- package/dist/errors/mllp-client-closed-error.d.ts +13 -0
- package/dist/errors/mllp-client-closed-error.d.ts.map +1 -0
- package/dist/errors/mllp-connection-error.d.ts +9 -0
- package/dist/errors/mllp-connection-error.d.ts.map +1 -0
- package/dist/errors/mllp-connection-failed-error.d.ts +12 -0
- package/dist/errors/mllp-connection-failed-error.d.ts.map +1 -0
- package/dist/errors/mllp-connection-lost-error.d.ts +13 -0
- package/dist/errors/mllp-connection-lost-error.d.ts.map +1 -0
- package/dist/errors/mllp-connection-timeout-error.d.ts +13 -0
- package/dist/errors/mllp-connection-timeout-error.d.ts.map +1 -0
- package/dist/errors/mllp-invalid-message-error.d.ts +13 -0
- package/dist/errors/mllp-invalid-message-error.d.ts.map +1 -0
- package/dist/errors/mllp-invalid-option-error.d.ts +8 -0
- package/dist/errors/mllp-invalid-option-error.d.ts.map +1 -0
- package/dist/errors/mllp-invalid-response-error.d.ts +16 -0
- package/dist/errors/mllp-invalid-response-error.d.ts.map +1 -0
- package/dist/errors/mllp-send-aborted-error.d.ts +12 -0
- package/dist/errors/mllp-send-aborted-error.d.ts.map +1 -0
- package/dist/errors/mllp-send-timeout-error.d.ts +13 -0
- package/dist/errors/mllp-send-timeout-error.d.ts.map +1 -0
- package/dist/errors/nak-exception.d.ts +17 -0
- package/dist/errors/nak-exception.d.ts.map +1 -0
- package/dist/events.d.ts +35 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/index.d.ts +13 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +805 -3
- package/dist/index.js.map +1 -0
- package/dist/messages.d.ts +55 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/reconnect.d.ts +18 -0
- package/dist/reconnect.d.ts.map +1 -0
- package/dist/runtime/node.d.ts +39 -0
- package/dist/runtime/node.d.ts.map +1 -0
- package/dist/runtime/node.js +100 -0
- package/dist/runtime/node.js.map +1 -0
- package/dist/session.d.ts +63 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/state.d.ts +39 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/types.d.ts +109 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +22 -48
- package/dist/client.js +0 -549
- package/dist/client.js.map +0 -1
- package/dist/core/acknowledgment.d.ts +0 -103
- package/dist/core/acknowledgment.d.ts.map +0 -1
- package/dist/core/client.d.ts +0 -256
- package/dist/core/client.d.ts.map +0 -1
- package/dist/core/connect.d.ts +0 -101
- package/dist/core/connect.d.ts.map +0 -1
- package/dist/core/errors.d.ts +0 -81
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/index.d.ts +0 -23
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -2
- package/dist/core/internal/ack-parser-stream.d.ts +0 -22
- package/dist/core/internal/ack-parser-stream.d.ts.map +0 -1
- package/dist/core/internal/subscribe-abort.d.ts +0 -30
- package/dist/core/internal/subscribe-abort.d.ts.map +0 -1
- package/dist/node.js +0 -214
- package/dist/node.js.map +0 -1
- package/dist/runtimes/internal/node-error-mapping.d.ts +0 -68
- package/dist/runtimes/internal/node-error-mapping.d.ts.map +0 -1
- package/dist/runtimes/node.d.ts +0 -47
- package/dist/runtimes/node.d.ts.map +0 -1
- package/dist/runtimes/node.js +0 -3
- package/dist/runtimes/workers.d.ts +0 -64
- package/dist/runtimes/workers.d.ts.map +0 -1
- package/dist/runtimes/workers.js +0 -143
- package/dist/runtimes/workers.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option validation. Each `assert*` throws {@link MllpInvalidOptionError} for
|
|
3
|
+
* an option a caller passed out of range, before anything happens.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertTimeoutMs(option: string, ms: number): void;
|
|
8
|
+
export declare function assertByteCap(bytes: number): void;
|
|
9
|
+
export declare function assertReconnectAttempts(attempts: number): void;
|
|
10
|
+
//# sourceMappingURL=assertions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../src/assertions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAMhE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAMjD;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAO9D"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { Root } from "@glion/ast";
|
|
2
|
+
import { MllpClientEmitter } from "./events";
|
|
3
|
+
import type { MllpClientOptions, MllpClientResponse, MllpClientState, MllpSendOptions } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* Sends HL7v2 messages to one remote system over MLLP and returns each
|
|
6
|
+
* message's acknowledgment.
|
|
7
|
+
*
|
|
8
|
+
* One client owns one socket and sends one message at a time. `send()` writes
|
|
9
|
+
* the message, waits for the acknowledgment, checks that it answers this
|
|
10
|
+
* message, and resolves with it.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { MllpClient } from "@glion/mllp-client";
|
|
14
|
+
* import { nodeSocket } from "@glion/mllp-client/node";
|
|
15
|
+
*
|
|
16
|
+
* await using client = new MllpClient({
|
|
17
|
+
* socket: nodeSocket({ host: "hl7.example.org", port: 2575 }),
|
|
18
|
+
* });
|
|
19
|
+
*
|
|
20
|
+
* const ack = await client.send(adtMessage);
|
|
21
|
+
* ack.code; // "AA" or "CA"
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Lifecycle
|
|
25
|
+
*
|
|
26
|
+
* `send()` connects on first use; `connect()` opens the connection ahead of
|
|
27
|
+
* time. `state` reports the phase. A connection that fails to open is dialed
|
|
28
|
+
* again under the `reconnect` policy. A connection that is lost closes the
|
|
29
|
+
* client: the message in flight rejects and is not sent again. After
|
|
30
|
+
* `close()`, or once the client has closed on a failure, every call rejects
|
|
31
|
+
* with {@link MllpClientClosedError}.
|
|
32
|
+
*
|
|
33
|
+
* ## Errors
|
|
34
|
+
*
|
|
35
|
+
* When the remote system answers `AE`, `AR`, `CE`, or `CR`, `send()` rejects
|
|
36
|
+
* with the matching `@glion/ack` exception and the connection stays open.
|
|
37
|
+
*/
|
|
38
|
+
export declare class MllpClient extends MllpClientEmitter {
|
|
39
|
+
#private;
|
|
40
|
+
/**
|
|
41
|
+
* @throws {MllpInvalidOptionError} A timeout, byte cap, or attempt count is
|
|
42
|
+
* out of range.
|
|
43
|
+
*/
|
|
44
|
+
constructor(opts: MllpClientOptions);
|
|
45
|
+
/**
|
|
46
|
+
* The current phase: `idle`, `connecting`, `connected`, `sending`,
|
|
47
|
+
* `closing`, or `closed`.
|
|
48
|
+
*/
|
|
49
|
+
get state(): MllpClientState;
|
|
50
|
+
/** Whether the connection is open. True in both `connected` and `sending`. */
|
|
51
|
+
get connected(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Opens the connection ahead of the first `send()`, dialing again under the
|
|
54
|
+
* `reconnect` policy when an attempt fails.
|
|
55
|
+
*
|
|
56
|
+
* Idempotent: a connected client resolves at once, and a call arriving while
|
|
57
|
+
* an attempt is in flight waits for that attempt and shares its outcome.
|
|
58
|
+
*
|
|
59
|
+
* @throws {MllpConnectionFailedError} The last attempt could not open the
|
|
60
|
+
* socket.
|
|
61
|
+
* @throws {MllpConnectionTimeoutError} The last attempt did not open in time.
|
|
62
|
+
* @throws {MllpClientClosedError} The client is closed, or `close()` arrived
|
|
63
|
+
* while the connection was still being established.
|
|
64
|
+
*/
|
|
65
|
+
connect(): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Sends one message and returns its acknowledgment. Connects first when the
|
|
68
|
+
* client is not connected yet.
|
|
69
|
+
*
|
|
70
|
+
* Nothing is written when an option, phase, or message error is thrown.
|
|
71
|
+
* Every other failure also closes the client.
|
|
72
|
+
*
|
|
73
|
+
* @throws {AckException} The remote system answered with a NAK. The
|
|
74
|
+
* connection stays open.
|
|
75
|
+
* @throws {MllpInvalidOptionError} `timeoutMs` is out of range.
|
|
76
|
+
* @throws {MllpInvalidMessageError} The message cannot be sent as-is.
|
|
77
|
+
* @throws {MllpClientClosedError} The client is closed.
|
|
78
|
+
* @throws {MllpAlreadySendingError} Another send is in flight.
|
|
79
|
+
* @throws {MllpConnectionFailedError} The connection could not be opened.
|
|
80
|
+
* @throws {MllpConnectionTimeoutError} The connection did not open in time.
|
|
81
|
+
* @throws {MllpSendTimeoutError} No acknowledgment arrived in time.
|
|
82
|
+
* @throws {MllpConnectionLostError} The connection was lost.
|
|
83
|
+
* @throws {MllpSendAbortedError} `destroy()` cut the send off.
|
|
84
|
+
* @throws {MllpInvalidResponseError} The reply is not a usable
|
|
85
|
+
* acknowledgment of this message.
|
|
86
|
+
*/
|
|
87
|
+
send(message: Root, opts?: MllpSendOptions): Promise<MllpClientResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* Ends the connection once the message in flight is acknowledged, and
|
|
90
|
+
* resolves when it is down. New sends are refused from the moment this is
|
|
91
|
+
* called. An attempt to connect stops at once.
|
|
92
|
+
*
|
|
93
|
+
* Resolves from any phase. Never rejects. Idempotent. The wait is bounded by
|
|
94
|
+
* the in-flight send's own deadline; {@link destroy} does not wait at all.
|
|
95
|
+
*/
|
|
96
|
+
close(): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Ends the connection now, and resolves when it is down. A message in flight
|
|
99
|
+
* rejects with {@link MllpSendAbortedError}. An attempt to connect stops at
|
|
100
|
+
* once.
|
|
101
|
+
*
|
|
102
|
+
* Resolves from any phase. Never rejects. Idempotent.
|
|
103
|
+
*/
|
|
104
|
+
destroy(): Promise<void>;
|
|
105
|
+
/** Calls {@link close}. Enables `await using`. */
|
|
106
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAsBvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAO7C,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,UAAW,SAAQ,iBAAiB;;IAO/C;;;OAGG;gBACS,IAAI,EAAE,iBAAiB;IA0BnC;;;OAGG;IACH,IAAI,KAAK,IAAI,eAAe,CAE3B;IAED,8EAA8E;IAC9E,IAAI,SAAS,IAAI,OAAO,CAGvB;IAED;;;;;;;;;;;;OAYG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B9B;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,IAAI,CACR,OAAO,EAAE,IAAI,EACb,IAAI,GAAE,eAAoB,GACzB,OAAO,CAAC,kBAAkB,CAAC;IA2C9B;;;;;;;OAOG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAa5B;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB9B,kDAAkD;IAC5C,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAmK7C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bounds and defaults the client is configured by. Constants only.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
/** Default time to wait for a connection to open, in milliseconds. */
|
|
7
|
+
export declare const DEFAULT_CONNECT_TIMEOUT_MS = 10000;
|
|
8
|
+
/** Default time to wait for an acknowledgment after sending, in milliseconds. */
|
|
9
|
+
export declare const DEFAULT_SEND_TIMEOUT_MS = 30000;
|
|
10
|
+
/** Default maximum bytes buffered while receiving one message (16 MiB). */
|
|
11
|
+
export declare const DEFAULT_MAX_BUFFERED_BYTES: number;
|
|
12
|
+
/**
|
|
13
|
+
* Default number of reconnect attempts after a failed one. With the default
|
|
14
|
+
* delay, the last one starts about 30 seconds after the first failure.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DEFAULT_RECONNECT_ATTEMPTS = 5;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum timeout `setTimeout` supports, in milliseconds (2^31 − 1). Larger
|
|
19
|
+
* values, including `Infinity`, are rejected: the platform would clamp them
|
|
20
|
+
* to about 1 ms.
|
|
21
|
+
*/
|
|
22
|
+
export declare const MAX_TIMEOUT_MS: number;
|
|
23
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,sEAAsE;AACtE,eAAO,MAAM,0BAA0B,QAAS,CAAC;AAEjD,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C,2EAA2E;AAC3E,eAAO,MAAM,0BAA0B,QAAmB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAc,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The base every client error extends, and what each one carries: a fixed
|
|
3
|
+
* `code`, a fixed message, what became of the message, and the lower layer's
|
|
4
|
+
* failure on `cause`.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
export declare const MllpErrorCode: {
|
|
9
|
+
readonly ALREADY_SENDING: "ALREADY_SENDING";
|
|
10
|
+
readonly CLOSED: "CLOSED";
|
|
11
|
+
readonly CONNECTION_FAILED: "CONNECTION_FAILED";
|
|
12
|
+
readonly CONNECTION_LOST: "CONNECTION_LOST";
|
|
13
|
+
readonly CONNECTION_TIMEOUT: "CONNECTION_TIMEOUT";
|
|
14
|
+
readonly INVALID_MESSAGE: "INVALID_MESSAGE";
|
|
15
|
+
readonly INVALID_OPTION: "INVALID_OPTION";
|
|
16
|
+
readonly INVALID_RESPONSE: "INVALID_RESPONSE";
|
|
17
|
+
readonly SEND_ABORTED: "SEND_ABORTED";
|
|
18
|
+
readonly SEND_TIMEOUT: "SEND_TIMEOUT";
|
|
19
|
+
};
|
|
20
|
+
export type MllpErrorCode = (typeof MllpErrorCode)[keyof typeof MllpErrorCode];
|
|
21
|
+
/**
|
|
22
|
+
* What became of the message. `not-sent`: nothing reached the wire, and the
|
|
23
|
+
* message may be sent again as it is. `unknown`: it may have reached the
|
|
24
|
+
* remote system, and sending it again may deliver it twice.
|
|
25
|
+
*/
|
|
26
|
+
export type MllpDelivery = "not-sent" | "unknown";
|
|
27
|
+
export declare abstract class MllpClientError extends Error {
|
|
28
|
+
abstract readonly code: MllpErrorCode;
|
|
29
|
+
abstract readonly delivery: MllpDelivery;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;CAWhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;AAElD,8BAAsB,eAAgB,SAAQ,KAAK;IACjD,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CAC1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { MllpAlreadySendingError } from "./mllp-already-sending-error";
|
|
2
|
+
export { MllpClientError, MllpErrorCode } from "./base";
|
|
3
|
+
export type { MllpDelivery } from "./base";
|
|
4
|
+
export { MllpClientClosedError } from "./mllp-client-closed-error";
|
|
5
|
+
export { MllpConnectionFailedError } from "./mllp-connection-failed-error";
|
|
6
|
+
export { MllpConnectionTimeoutError } from "./mllp-connection-timeout-error";
|
|
7
|
+
export { MllpConnectionError } from "./mllp-connection-error";
|
|
8
|
+
export { MllpConnectionLostError } from "./mllp-connection-lost-error";
|
|
9
|
+
export { MllpInvalidMessageError } from "./mllp-invalid-message-error";
|
|
10
|
+
export { MllpInvalidOptionError } from "./mllp-invalid-option-error";
|
|
11
|
+
export { MllpInvalidResponseError } from "./mllp-invalid-response-error";
|
|
12
|
+
export { nakException } from "./nak-exception";
|
|
13
|
+
export { MllpSendAbortedError } from "./mllp-send-aborted-error";
|
|
14
|
+
export { MllpSendTimeoutError } from "./mllp-send-timeout-error";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* `send()` was called while another message was still waiting for its
|
|
4
|
+
* acknowledgment. The client sends one message at a time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MllpAlreadySendingError extends MllpClientError {
|
|
7
|
+
readonly name = "MllpAlreadySendingError";
|
|
8
|
+
readonly code: "ALREADY_SENDING";
|
|
9
|
+
readonly delivery = "not-sent";
|
|
10
|
+
/** MSH-10 of the message that is still waiting. */
|
|
11
|
+
readonly controlId: string;
|
|
12
|
+
constructor(controlId: string);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=mllp-already-sending-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-already-sending-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-already-sending-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;IAC1D,SAAkB,IAAI,6BAA6B;IACnD,QAAQ,CAAC,IAAI,oBAAiC;IAC9C,QAAQ,CAAC,QAAQ,cAAc;IAC/B,mDAAmD;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAM9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* The call cannot be served: the client is closed, by `close()`, by
|
|
4
|
+
* `destroy()`, or by a lost connection the reconnect policy did not restore.
|
|
5
|
+
* That last failure is on `cause`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MllpClientClosedError extends MllpClientError {
|
|
8
|
+
readonly name = "MllpClientClosedError";
|
|
9
|
+
readonly code: "CLOSED";
|
|
10
|
+
readonly delivery = "not-sent";
|
|
11
|
+
constructor(cause?: MllpClientError | null);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mllp-client-closed-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-client-closed-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-client-closed-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IACxD,SAAkB,IAAI,2BAA2B;IACjD,QAAQ,CAAC,IAAI,WAAwB;IACrC,QAAQ,CAAC,QAAQ,cAAc;gBAEnB,KAAK,GAAE,eAAe,GAAG,IAAW;CAQjD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* A failure of the wire: the connection could not be opened, gave no reply in
|
|
4
|
+
* time, or was lost. Raised by the layer that holds the socket; the client
|
|
5
|
+
* relays it unchanged.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class MllpConnectionError extends MllpClientError {
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=mllp-connection-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-connection-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-connection-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC;;;;GAIG;AACH,8BAAsB,mBAAoB,SAAQ,eAAe;CAAG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MllpConnectionError } from "./mllp-connection-error";
|
|
2
|
+
/**
|
|
3
|
+
* The connection could not be opened: the host was unreachable, refused the
|
|
4
|
+
* connection, or failed DNS or TLS. The socket's error is on `cause`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MllpConnectionFailedError extends MllpConnectionError {
|
|
7
|
+
readonly name = "MllpConnectionFailedError";
|
|
8
|
+
readonly code: "CONNECTION_FAILED";
|
|
9
|
+
readonly delivery = "not-sent";
|
|
10
|
+
constructor(cause: unknown);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=mllp-connection-failed-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-connection-failed-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-connection-failed-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB;IAChE,SAAkB,IAAI,+BAA+B;IACrD,QAAQ,CAAC,IAAI,sBAAmC;IAChD,QAAQ,CAAC,QAAQ,cAAc;gBAEnB,KAAK,EAAE,OAAO;CAM3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MllpConnectionError } from "./mllp-connection-error";
|
|
2
|
+
/**
|
|
3
|
+
* The connection was lost during a send: the remote system hung up, or the
|
|
4
|
+
* network broke. The remote system may or may not have received the message.
|
|
5
|
+
* A stream error, when there was one, is on `cause`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MllpConnectionLostError extends MllpConnectionError {
|
|
8
|
+
readonly name = "MllpConnectionLostError";
|
|
9
|
+
readonly code: "CONNECTION_LOST";
|
|
10
|
+
readonly delivery = "unknown";
|
|
11
|
+
constructor(cause?: unknown);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mllp-connection-lost-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-connection-lost-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-connection-lost-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,mBAAmB;IAC9D,SAAkB,IAAI,6BAA6B;IACnD,QAAQ,CAAC,IAAI,oBAAiC;IAC9C,QAAQ,CAAC,QAAQ,aAAa;gBAElB,KAAK,CAAC,EAAE,OAAO;CAM5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MllpConnectionError } from "./mllp-connection-error";
|
|
2
|
+
/**
|
|
3
|
+
* The remote system did not accept the connection within `connectTimeoutMs`.
|
|
4
|
+
* The host may be down, overloaded, or silently dropping packets.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MllpConnectionTimeoutError extends MllpConnectionError {
|
|
7
|
+
readonly name = "MllpConnectionTimeoutError";
|
|
8
|
+
readonly code: "CONNECTION_TIMEOUT";
|
|
9
|
+
readonly delivery = "not-sent";
|
|
10
|
+
readonly timeoutMs: number;
|
|
11
|
+
constructor(timeoutMs: number);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mllp-connection-timeout-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-connection-timeout-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-connection-timeout-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,mBAAmB;IACjE,SAAkB,IAAI,gCAAgC;IACtD,QAAQ,CAAC,IAAI,uBAAoC;IACjD,QAAQ,CAAC,QAAQ,cAAc;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAM9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* The message cannot be sent as-is: it has no MSH-10 control ID, it could not
|
|
4
|
+
* be serialized, or it contains a byte MLLP reserves. Nothing was written; the
|
|
5
|
+
* reason is on `cause`. Fix the message and send again.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MllpInvalidMessageError extends MllpClientError {
|
|
8
|
+
readonly name = "MllpInvalidMessageError";
|
|
9
|
+
readonly code: "INVALID_MESSAGE";
|
|
10
|
+
readonly delivery = "not-sent";
|
|
11
|
+
constructor(cause: unknown);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mllp-invalid-message-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-invalid-message-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-invalid-message-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;IAC1D,SAAkB,IAAI,6BAA6B;IACnD,QAAQ,CAAC,IAAI,oBAAiC;IAC9C,QAAQ,CAAC,QAAQ,cAAc;gBAEnB,KAAK,EAAE,OAAO;CAM3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/** An option is out of range. Raised before anything happens. */
|
|
3
|
+
export declare class MllpInvalidOptionError extends MllpClientError {
|
|
4
|
+
readonly name = "MllpInvalidOptionError";
|
|
5
|
+
readonly code: "INVALID_OPTION";
|
|
6
|
+
readonly delivery = "not-sent";
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=mllp-invalid-option-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-invalid-option-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-invalid-option-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD,iEAAiE;AACjE,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,SAAkB,IAAI,4BAA4B;IAClD,QAAQ,CAAC,IAAI,mBAAgC;IAC7C,QAAQ,CAAC,QAAQ,cAAc;CAChC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* The reply was not a usable acknowledgment of the message that was waiting:
|
|
4
|
+
* it could not be decoded, its acknowledgment code was missing or unknown, or
|
|
5
|
+
* it answered a different message. The connection is ended. The reason is on
|
|
6
|
+
* `cause`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MllpInvalidResponseError extends MllpClientError {
|
|
9
|
+
readonly name = "MllpInvalidResponseError";
|
|
10
|
+
readonly code: "INVALID_RESPONSE";
|
|
11
|
+
readonly delivery = "unknown";
|
|
12
|
+
/** MSH-10 of the message that was waiting, when the thrower knew it. */
|
|
13
|
+
readonly controlId?: string;
|
|
14
|
+
constructor(cause: unknown, controlId?: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=mllp-invalid-response-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-invalid-response-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-invalid-response-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,eAAe;IAC3D,SAAkB,IAAI,8BAA8B;IACpD,QAAQ,CAAC,IAAI,qBAAkC;IAC/C,QAAQ,CAAC,QAAQ,aAAa;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEhB,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM;CAO/C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MllpClientError } from "./base";
|
|
2
|
+
/**
|
|
3
|
+
* `destroy()` cut off the message in flight. The remote system may or may not
|
|
4
|
+
* have received it.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MllpSendAbortedError extends MllpClientError {
|
|
7
|
+
readonly name = "MllpSendAbortedError";
|
|
8
|
+
readonly code: "SEND_ABORTED";
|
|
9
|
+
readonly delivery = "unknown";
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=mllp-send-aborted-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-send-aborted-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-send-aborted-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,QAAQ,CAAC;AAExD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,SAAkB,IAAI,0BAA0B;IAChD,QAAQ,CAAC,IAAI,iBAA8B;IAC3C,QAAQ,CAAC,QAAQ,aAAa;;CAO/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MllpConnectionError } from "./mllp-connection-error";
|
|
2
|
+
/**
|
|
3
|
+
* No acknowledgment arrived within the send timeout. The connection is ended.
|
|
4
|
+
* Whether the remote system received the message is unknown.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MllpSendTimeoutError extends MllpConnectionError {
|
|
7
|
+
readonly name = "MllpSendTimeoutError";
|
|
8
|
+
readonly code: "SEND_TIMEOUT";
|
|
9
|
+
readonly delivery = "unknown";
|
|
10
|
+
readonly timeoutMs: number;
|
|
11
|
+
constructor(timeoutMs: number);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=mllp-send-timeout-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mllp-send-timeout-error.d.ts","sourceRoot":"","sources":["../../src/errors/mllp-send-timeout-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,SAAkB,IAAI,0BAA0B;IAChD,QAAQ,CAAC,IAAI,iBAA8B;IAC3C,QAAQ,CAAC,QAAQ,aAAa;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAM9B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The exception a NAK carries. Not an {@link MllpClientError}: the remote
|
|
3
|
+
* system understood the message and refused it, and the class is the one
|
|
4
|
+
* `@glion/ack` defines for that MSA-1 code.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { AckException, AckNakCode } from "@glion/ack";
|
|
9
|
+
import type { Root } from "@glion/ast";
|
|
10
|
+
/**
|
|
11
|
+
* The exception a NAK of `code` carries, read from `tree`.
|
|
12
|
+
*
|
|
13
|
+
* `code` picks the class; MSA-2 gives `controlId`, ERR-3 `errorCode`, ERR-4
|
|
14
|
+
* `severity`, and MSA-3 (or ERR-8) `text`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function nakException(tree: Root, code: AckNakCode): AckException;
|
|
17
|
+
//# sourceMappingURL=nak-exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nak-exception.d.ts","sourceRoot":"","sources":["../../src/errors/nak-exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,KAAK,EAAE,YAAY,EAAuB,UAAU,EAAE,MAAM,YAAY,CAAC;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AA8BvC;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,GAAG,YAAY,CASvE"}
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a client reports as it runs, and the listeners that receive it.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { MllpClientError } from "./errors";
|
|
7
|
+
export interface MllpClientEvents {
|
|
8
|
+
/** The connection is open and ready for messages. */
|
|
9
|
+
connect(): void;
|
|
10
|
+
/**
|
|
11
|
+
* The client is done and will not connect again. `error` is the failure the
|
|
12
|
+
* reconnect policy did not recover from, or `null` when it closes normally.
|
|
13
|
+
*/
|
|
14
|
+
close(error: MllpClientError | null): void;
|
|
15
|
+
}
|
|
16
|
+
/** The name of one thing a client reports. */
|
|
17
|
+
export type MllpClientEvent = keyof MllpClientEvents;
|
|
18
|
+
/** A listener for `event`. */
|
|
19
|
+
export type MllpClientListener<E extends MllpClientEvent> = MllpClientEvents[E];
|
|
20
|
+
/**
|
|
21
|
+
* The listeners of a client.
|
|
22
|
+
*
|
|
23
|
+
* A listener that throws propagates to whoever triggered the event, the same
|
|
24
|
+
* as Node's `EventEmitter`.
|
|
25
|
+
*/
|
|
26
|
+
export declare abstract class MllpClientEmitter {
|
|
27
|
+
#private;
|
|
28
|
+
/** Adds a listener for `event`, and returns the client so calls chain. */
|
|
29
|
+
on<E extends MllpClientEvent>(event: E, listener: MllpClientListener<E>): this;
|
|
30
|
+
/** Removes a listener added with {@link on}. */
|
|
31
|
+
off<E extends MllpClientEvent>(event: E, listener: MllpClientListener<E>): this;
|
|
32
|
+
/** Calls every listener for `event`, in the order they were added. */
|
|
33
|
+
protected emit<E extends MllpClientEvent>(event: E, ...args: Parameters<MllpClientEvents[E]>): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,OAAO,IAAI,IAAI,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;CAC5C;AAED,8CAA8C;AAC9C,MAAM,MAAM,eAAe,GAAG,MAAM,gBAAgB,CAAC;AAErD,8BAA8B;AAC9B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,8BAAsB,iBAAiB;;IAMrC,0EAA0E;IAC1E,EAAE,CAAC,CAAC,SAAS,eAAe,EAC1B,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,IAAI;IAOP,gDAAgD;IAChD,GAAG,CAAC,CAAC,SAAS,eAAe,EAC3B,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,IAAI;IAKP,sEAAsE;IACtE,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,EACtC,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GACvC,IAAI;CAKR"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* `@glion/mllp-client` — persistent MLLP client for HL7v2.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* One socket to one remote system, one message on the wire at a time.
|
|
5
|
+
* `send()` takes a parsed `Root`, writes it, and resolves with the
|
|
6
|
+
* acknowledgment that answers it. A NAK (`AE`, `AR`, `CE`, `CR`) rejects with
|
|
7
|
+
* the matching `@glion/ack` exception — the same type the server raises.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* - Deno: `@glion/mllp-client/deno`
|
|
12
|
-
* - Cloudflare Workers: `@glion/mllp-client/workers`
|
|
13
|
-
* - Custom transport / browser via a bridge: `@glion/mllp-client/core`
|
|
14
|
-
*
|
|
15
|
-
* Bundlers that honour the `workerd` and `deno` keys in this
|
|
16
|
-
* package's `exports` map will automatically pick the right entry
|
|
17
|
-
* for the target runtime — the per-runtime subpaths are also
|
|
18
|
-
* available as explicit imports for clarity.
|
|
9
|
+
* Runtime adapters implement {@link MllpSocket}; the Node adapter is in
|
|
10
|
+
* `@glion/mllp-client/node`.
|
|
19
11
|
*
|
|
20
12
|
* @module
|
|
21
13
|
*/
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
14
|
+
export { MllpClient } from "./client";
|
|
15
|
+
export { MllpClientEmitter } from "./events";
|
|
16
|
+
export type { MllpClientEvent, MllpClientEvents, MllpClientListener, } from "./events";
|
|
17
|
+
export type { MllpClientOptions, MllpClientResponse, MllpClientState, MllpReconnectOptions, MllpSendOptions, MllpSocket, MllpStreams, } from "./types";
|
|
18
|
+
export { MllpAlreadySendingError, MllpClientClosedError, MllpClientError, MllpConnectionError, MllpConnectionFailedError, MllpConnectionLostError, MllpConnectionTimeoutError, MllpErrorCode, MllpInvalidMessageError, MllpInvalidOptionError, MllpInvalidResponseError, MllpSendAbortedError, MllpSendTimeoutError, } from "./errors";
|
|
19
|
+
export type { MllpDelivery } from "./errors";
|
|
27
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|