@mcp-abap-adt/interfaces-adt-connection 4.0.0 → 4.2.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/CHANGELOG.md CHANGED
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.2.0] - 2026-11-12
11
+
12
+ ### Added
13
+
14
+ - **`sessionLost` on `IAdtWireResponse` and on `IAbapConnectionError`** —
15
+ `readonly sessionLost?: AdtSessionLoss | undefined`. Present on the answer of a
16
+ stateless request whose answer showed the SAP session replaced: on the
17
+ response it resolves, or on SAP's refusal it rejects. The answer is SAP's, as
18
+ it came; the connection's session is gone with it. A consumer reads the field,
19
+ attributable to that one request, never a message. `code` is unchanged by it.
20
+ - **`AdtSessionLoss`** — the field's type,
21
+ `typeof ADT_SESSION_ERROR.SESSION_REPLACED`: the loss is named by the existing
22
+ code and by that code alone.
23
+
24
+ Nothing a 4.1.0 consumer or implementer does changes: the field is optional, and
25
+ no existing name, type or constant moved.
26
+
27
+ ## [4.1.0] - 2026-11-11
28
+
29
+ ### Added
30
+
31
+ - **`IAbapConnectionError`** — the error a connection throws, as a consumer
32
+ reads it: `readonly code?: string | undefined` (a session error code from
33
+ `ADT_SESSION_ERROR`, or a Node network code — unchanged) and
34
+ `readonly rfc?: IRfcErrorInfo | undefined`. A connection throws an `Error`
35
+ carrying these fields; a consumer narrows a caught value to the type and
36
+ reads which failure it was from a field, never from the message.
37
+ - **`IRfcErrorInfo`** — what the SAP NetWeaver RFC SDK said about a failed
38
+ call: `key` (the SDK's free-text error key), `group` (`RFC_ERROR_GROUP`, a
39
+ number), `code` (`RFC_RC`, a number) and `codeString`, the return code's
40
+ name. No message and no ABAP message variables. All fields readonly.
41
+ - **`RFC_RCS` / `RfcReturnCodeName`** — the SDK's 34 `RFC_RC` names, in the
42
+ header's order (index = numeric code), and their union: the type of
43
+ `codeString`, so `rfc.codeString === 'RFC_CLOSED'` is checked by the
44
+ compiler.
45
+
46
+ Nothing a 4.0.0 consumer or implementer does changes: every field is optional,
47
+ and no existing name, type or constant moved.
48
+
10
49
  ## [4.0.0] - 2026-11-08
11
50
 
12
51
  ### Changed (breaking)
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @mcp-abap-adt/interfaces-adt-connection
2
2
 
3
3
  The ABAP connection contract: what an ADT request is sent through, and what
4
- comes back off the wire. Types and one constant; no implementation.
4
+ comes back off the wire. Types and two constants; no implementation.
5
5
 
6
6
  ```bash
7
7
  npm install @mcp-abap-adt/interfaces-adt-connection
@@ -11,11 +11,32 @@ npm install @mcp-abap-adt/interfaces-adt-connection
11
11
  |---|---|
12
12
  | `IAbapConnection` | a connection an ADT request is made through: `makeAdtRequest`, connect/disconnect, the session type. Since 4.0.0 `getBaseUrl()` answers `Promise<string \| undefined>`: `undefined` for a connection with no HTTP origin (RFC), so a caller narrows before using it — see the CHANGELOG's migration note |
13
13
  | `IAbapRequestOptions` | what one request carries |
14
- | `IAdtWireResponse` | the answer as it came off the wire — extends `IHttpWireResponse` from `interfaces-network` with the headers ADT sends. Since 2.0.0 its `data` is `unknown` unless the caller names the type (`makeAdtRequest<string>(…)`); it was `any` — see the CHANGELOG's migration note |
14
+ | `IAdtWireResponse` | the answer as it came off the wire — extends `IHttpWireResponse` from `interfaces-network` with the headers ADT sends. Since 2.0.0 its `data` is `unknown` unless the caller names the type (`makeAdtRequest<string>(…)`); it was `any` — see the CHANGELOG's migration note. Since 4.2.0 it may carry `sessionLost` (below) |
15
15
  | `ISessionLifecycleAware`, `ICriticalSection`, `IRequestProfiling`, `IDeferredResponseConnection` | the connection's capability atoms — a connection honours the ones it can |
16
16
  | `ADT_SESSION_ERROR` / `AdtSessionErrorCode` | what a session failure is called |
17
+ | `AdtSessionLoss` | the type of `sessionLost` on `IAdtWireResponse` and on `IAbapConnectionError`: present when the answer of a stateless request showed the SAP session replaced. The answer is SAP's, as it came; the connection's session is gone with it, so a new session is a new connection. `code` is unchanged by it. Since 4.2.0 |
18
+ | `IAbapConnectionError` | the error a connection throws, as a consumer reads it: `code` — a session error code or a Node network code — and, for a failed RFC call, `rfc`. Narrow a caught value to it; never read the message. Since 4.1.0 |
19
+ | `IRfcErrorInfo`, `RFC_RCS` / `RfcReturnCodeName` | what the RFC SDK said about a failed call: `key` (free text), `group` and `code` (numbers), `codeString` — the return code's name, one of the SDK's `RFC_RC` names. Since 4.1.0 |
17
20
  | `ITimeoutConfig` | the deadlines a caller gives a connection: `default`, `csrf`, `long` |
18
21
 
22
+ A caught value is `unknown`: the consumer narrows it with its own check (it comes from outside
23
+ the type system) and then reads it by this type, never by a cast:
24
+
25
+ ```typescript
26
+ function closedByPartner(error: IAbapConnectionError): boolean {
27
+ return error.rfc?.codeString === 'RFC_CLOSED';
28
+ }
29
+ ```
30
+
31
+ A stateless request whose answer showed the SAP session replaced resolves or rejects with SAP's
32
+ answer, and says so on that answer (since 4.2.0):
33
+
34
+ ```typescript
35
+ function sessionWasLost(answer: IAdtWireResponse | IAbapConnectionError): boolean {
36
+ return answer.sessionLost === ADT_SESSION_ERROR.SESSION_REPLACED;
37
+ }
38
+ ```
39
+
19
40
  ## Why this package exists
20
41
 
21
42
  **It moves on its own schedule.** These four files were
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import type { IHttpHeaderValue, IHttpWireResponse } from '@mcp-abap-adt/interfaces-network';
5
5
  import type { IAbapRequestOptions } from './IAbapRequestOptions';
6
+ import type { AdtSessionLoss } from './IConnectionCapabilities';
6
7
  export type IAdtHeaderValue = IHttpHeaderValue;
7
8
  export interface IAdtWireResponse<T = unknown, D = unknown> extends Omit<IHttpWireResponse<T, D>, 'headers'> {
8
9
  /**
@@ -20,6 +21,12 @@ export interface IAdtWireResponse<T = unknown, D = unknown> extends Omit<IHttpWi
20
21
  'Content-Location'?: IAdtHeaderValue;
21
22
  'sap-adt-location'?: IAdtHeaderValue;
22
23
  };
24
+ /**
25
+ * Present on the answer of a stateless request whose answer showed the SAP
26
+ * session replaced: the answer is SAP's, as it came, and the connection's
27
+ * session is gone — the instance is spent. Absent on every other answer.
28
+ */
29
+ readonly sessionLost?: AdtSessionLoss | undefined;
23
30
  }
24
31
  /**
25
32
  * ABAP Connection interface
@@ -1 +1 @@
1
- {"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../src/IAbapConnection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAE/C,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,CACxD,SAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC;IAChD;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG;QACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,kBAAkB,CAAC,EAAE,eAAe,CAAC;QACrC,kBAAkB,CAAC,EAAE,eAAe,CAAC;QACrC,kBAAkB,CAAC,EAAE,eAAe,CAAC;KACtC,CAAC;CACH;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;;OAGG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE1C;;OAEG;IACH,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAErD;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AI,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAErD;;;;;;;;;;OAUG;IACH,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EACrC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACpC"}
@@ -0,0 +1,66 @@
1
+ import type { AdtSessionLoss } from './IConnectionCapabilities';
2
+ /**
3
+ * The return codes of the SAP NetWeaver RFC SDK, by name: `RFC_RC` in the SDK's
4
+ * header `sapnwrfc.h`, every member in its order (index = the numeric code),
5
+ * without the header's `_RFC_RC_max_value` sentinel.
6
+ *
7
+ * A failed RFC call reports its code twice — as the number (`code`) and as the
8
+ * name the SDK renders for it (`codeString`, from `RfcGetRcAsString`). The name
9
+ * is what a consumer compares, so it is this closed list.
10
+ */
11
+ export declare const RFC_RCS: readonly ["RFC_OK", "RFC_COMMUNICATION_FAILURE", "RFC_LOGON_FAILURE", "RFC_ABAP_RUNTIME_FAILURE", "RFC_ABAP_MESSAGE", "RFC_ABAP_EXCEPTION", "RFC_CLOSED", "RFC_CANCELED", "RFC_TIMEOUT", "RFC_MEMORY_INSUFFICIENT", "RFC_VERSION_MISMATCH", "RFC_INVALID_PROTOCOL", "RFC_SERIALIZATION_FAILURE", "RFC_INVALID_HANDLE", "RFC_RETRY", "RFC_EXTERNAL_FAILURE", "RFC_EXECUTED", "RFC_NOT_FOUND", "RFC_NOT_SUPPORTED", "RFC_ILLEGAL_STATE", "RFC_INVALID_PARAMETER", "RFC_CODEPAGE_CONVERSION_FAILURE", "RFC_CONVERSION_FAILURE", "RFC_BUFFER_TOO_SMALL", "RFC_TABLE_MOVE_BOF", "RFC_TABLE_MOVE_EOF", "RFC_START_SAPGUI_FAILURE", "RFC_ABAP_CLASS_EXCEPTION", "RFC_UNKNOWN_ERROR", "RFC_AUTHORIZATION_FAILURE", "RFC_AUTHENTICATION_FAILURE", "RFC_CRYPTOLIB_FAILURE", "RFC_IO_FAILURE", "RFC_LOCKING_FAILURE"];
12
+ /** One of {@link RFC_RCS}: the name of an RFC SDK return code. */
13
+ export type RfcReturnCodeName = (typeof RFC_RCS)[number];
14
+ /**
15
+ * What the RFC SDK said about a failed call, as fields — its `RFC_ERROR_INFO`
16
+ * as `@mcp-abap-adt/sap-rfc-lite` hands it over, without the message and the
17
+ * ABAP message variables.
18
+ *
19
+ * Read a failure from these, never from the error's words:
20
+ *
21
+ * ```typescript
22
+ * if (error.rfc?.codeString === 'RFC_CLOSED') {
23
+ * // the other side closed the conversation
24
+ * }
25
+ * ```
26
+ */
27
+ export interface IRfcErrorInfo {
28
+ /** The SDK's error key: free text the SDK fills (up to 128 characters). */
29
+ readonly key: string;
30
+ /** The SDK's error group (`RFC_ERROR_GROUP`), as its number. */
31
+ readonly group: number;
32
+ /** The SDK's return code (`RFC_RC`), as its number. */
33
+ readonly code: number;
34
+ /** The return code's name, e.g. `RFC_CLOSED`. */
35
+ readonly codeString: RfcReturnCodeName;
36
+ }
37
+ /**
38
+ * The error a connection throws, as a consumer reads it: a caught value
39
+ * narrowed to this, never parsed out of its message.
40
+ *
41
+ * A connection throws an `Error` that carries these fields; it does not throw
42
+ * this type as such. Every field is optional, so an error that names neither —
43
+ * an HTTP failure, a programming error — still conforms.
44
+ */
45
+ export interface IAbapConnectionError {
46
+ /**
47
+ * What the failure is called: one of `ADT_SESSION_ERROR` for a session
48
+ * failure, or a Node network code (`ECONNREFUSED`, …). Unchanged by
49
+ * {@link rfc}: an RFC failure keeps the code it would have without it.
50
+ */
51
+ readonly code?: string | undefined;
52
+ /**
53
+ * The RFC SDK's fields, when the request failed in an RFC call that the SDK
54
+ * reported; absent for an HTTP failure and for anything raised before a
55
+ * call was made.
56
+ */
57
+ readonly rfc?: IRfcErrorInfo | undefined;
58
+ /**
59
+ * Present on SAP's refusal of a stateless request whose answer showed the
60
+ * SAP session replaced: the refusal is SAP's, as it came, and the
61
+ * connection's session is gone — the instance is spent. Absent on every
62
+ * other failure. {@link code} is unchanged by it.
63
+ */
64
+ readonly sessionLost?: AdtSessionLoss | undefined;
65
+ }
66
+ //# sourceMappingURL=IAbapConnectionError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAbapConnectionError.d.ts","sourceRoot":"","sources":["../src/IAbapConnectionError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,4wBAmCV,CAAC;AAEX,kEAAkE;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CACnD"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RFC_RCS = void 0;
4
+ /**
5
+ * The return codes of the SAP NetWeaver RFC SDK, by name: `RFC_RC` in the SDK's
6
+ * header `sapnwrfc.h`, every member in its order (index = the numeric code),
7
+ * without the header's `_RFC_RC_max_value` sentinel.
8
+ *
9
+ * A failed RFC call reports its code twice — as the number (`code`) and as the
10
+ * name the SDK renders for it (`codeString`, from `RfcGetRcAsString`). The name
11
+ * is what a consumer compares, so it is this closed list.
12
+ */
13
+ exports.RFC_RCS = [
14
+ 'RFC_OK',
15
+ 'RFC_COMMUNICATION_FAILURE',
16
+ 'RFC_LOGON_FAILURE',
17
+ 'RFC_ABAP_RUNTIME_FAILURE',
18
+ 'RFC_ABAP_MESSAGE',
19
+ 'RFC_ABAP_EXCEPTION',
20
+ 'RFC_CLOSED',
21
+ 'RFC_CANCELED',
22
+ 'RFC_TIMEOUT',
23
+ 'RFC_MEMORY_INSUFFICIENT',
24
+ 'RFC_VERSION_MISMATCH',
25
+ 'RFC_INVALID_PROTOCOL',
26
+ 'RFC_SERIALIZATION_FAILURE',
27
+ 'RFC_INVALID_HANDLE',
28
+ 'RFC_RETRY',
29
+ 'RFC_EXTERNAL_FAILURE',
30
+ 'RFC_EXECUTED',
31
+ 'RFC_NOT_FOUND',
32
+ 'RFC_NOT_SUPPORTED',
33
+ 'RFC_ILLEGAL_STATE',
34
+ 'RFC_INVALID_PARAMETER',
35
+ 'RFC_CODEPAGE_CONVERSION_FAILURE',
36
+ 'RFC_CONVERSION_FAILURE',
37
+ 'RFC_BUFFER_TOO_SMALL',
38
+ 'RFC_TABLE_MOVE_BOF',
39
+ 'RFC_TABLE_MOVE_EOF',
40
+ 'RFC_START_SAPGUI_FAILURE',
41
+ 'RFC_ABAP_CLASS_EXCEPTION',
42
+ 'RFC_UNKNOWN_ERROR',
43
+ 'RFC_AUTHORIZATION_FAILURE',
44
+ 'RFC_AUTHENTICATION_FAILURE',
45
+ 'RFC_CRYPTOLIB_FAILURE',
46
+ 'RFC_IO_FAILURE',
47
+ 'RFC_LOCKING_FAILURE',
48
+ ];
@@ -25,6 +25,13 @@ export declare const ADT_SESSION_ERROR: {
25
25
  readonly RELEASE_PENDING: "ADT_RELEASE_PENDING";
26
26
  };
27
27
  export type AdtSessionErrorCode = (typeof ADT_SESSION_ERROR)[keyof typeof ADT_SESSION_ERROR];
28
+ /**
29
+ * What a connection says on an answer when that answer showed the SAP session
30
+ * lost: `sessionLost` on the response a stateless request resolves
31
+ * (`IAdtWireResponse`) and on SAP's refusal it rejects (`IAbapConnectionError`).
32
+ * The answer is SAP's; the connection's session is gone with it.
33
+ */
34
+ export type AdtSessionLoss = typeof ADT_SESSION_ERROR.SESSION_REPLACED;
28
35
  /**
29
36
  * A connection whose session is owned, observable and explicitly torn down.
30
37
  *
@@ -1 +1 @@
1
- {"version":3,"file":"IConnectionCapabilities.d.ts","sourceRoot":"","sources":["../src/IConnectionCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sFAAsF;AACtF,eAAO,MAAM,iBAAiB;IAC5B,8DAA8D;;IAE9D;;;;;OAKG;;IAEH,8EAA8E;;CAEtE,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,4EAA4E;IAC5E,WAAW,IAAI,OAAO,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,QAAQ,CAAC,oBAAoB,EAAE,IAAI,CAAC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AAW,2BAA2B;IAC1C,gFAAgF;IAChF,QAAQ,CAAC,oBAAoB,EAAE,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,oBAAoB,IAAI,IAAI,CAAC;IAE7B,2EAA2E;IAC3E,kBAAkB,IAAI,IAAI,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE/C,oDAAoD;IACpD,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAAC;CACtC"}
package/dist/index.d.ts CHANGED
@@ -11,8 +11,10 @@
11
11
  * (decision 35); what separated it is the release rate (decision 38).
12
12
  */
13
13
  export type { IAbapConnection, IAdtWireResponse } from './IAbapConnection';
14
+ export type { IAbapConnectionError, IRfcErrorInfo, RfcReturnCodeName, } from './IAbapConnectionError';
15
+ export { RFC_RCS } from './IAbapConnectionError';
14
16
  export type { IAbapRequestOptions } from './IAbapRequestOptions';
15
- export type { AdtSessionErrorCode, ICriticalSection, IDeferredResponseConnection, IRequestProfiling, ISessionLifecycleAware, } from './IConnectionCapabilities';
17
+ export type { AdtSessionErrorCode, AdtSessionLoss, ICriticalSection, IDeferredResponseConnection, IRequestProfiling, ISessionLifecycleAware, } from './IConnectionCapabilities';
16
18
  export { ADT_SESSION_ERROR } from './IConnectionCapabilities';
17
19
  export type { ITimeoutConfig } from './ITimeoutConfig';
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADT_SESSION_ERROR = void 0;
3
+ exports.ADT_SESSION_ERROR = exports.RFC_RCS = void 0;
4
+ var IAbapConnectionError_1 = require("./IAbapConnectionError");
5
+ Object.defineProperty(exports, "RFC_RCS", { enumerable: true, get: function () { return IAbapConnectionError_1.RFC_RCS; } });
4
6
  var IConnectionCapabilities_1 = require("./IConnectionCapabilities");
5
7
  Object.defineProperty(exports, "ADT_SESSION_ERROR", { enumerable: true, get: function () { return IConnectionCapabilities_1.ADT_SESSION_ERROR; } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/interfaces-adt-connection",
3
- "version": "4.0.0",
4
- "description": "The ABAP connection contract: IAbapConnection, its capability atoms, the wire response and the session error codes",
3
+ "version": "4.2.0",
4
+ "description": "The ABAP connection contract: IAbapConnection, its capability atoms, the wire response, the session error codes and the error a connection throws",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [