@mcp-abap-adt/interfaces 0.2.13 → 0.2.14
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,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.14] - 2025-12-24
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Added `IAdtHeaderValue` to cover non-string header values returned by ADT responses.
|
|
14
|
+
|
|
10
15
|
## [0.2.13] - 2025-12-24
|
|
11
16
|
|
|
12
17
|
### Changed
|
package/README.md
CHANGED
|
@@ -182,6 +182,7 @@ This package is responsible for:
|
|
|
182
182
|
- Implementation details (auth, CSRF, cookies, token refresh) are encapsulated
|
|
183
183
|
- For JWT: token refresh handled internally via `ITokenRefresher`
|
|
184
184
|
- For Basic: no token refresh needed
|
|
185
|
+
- `IAdtResponse` - Minimal response shape returned by `makeAdtRequest()`
|
|
185
186
|
- `IAbapConnectionExtended` - Deprecated, for backward compatibility
|
|
186
187
|
- Extends `IAbapConnection` with: `getConfig()`, `getAuthHeaders()`, `connect()`, `reset()`
|
|
187
188
|
- Will be removed in next major version
|
|
@@ -2,16 +2,17 @@ import type { IAbapRequestOptions } from './IAbapRequestOptions';
|
|
|
2
2
|
/**
|
|
3
3
|
* Minimal response type for ADT requests.
|
|
4
4
|
*/
|
|
5
|
+
export type IAdtHeaderValue = string | string[] | number | boolean | null | undefined | object;
|
|
5
6
|
export interface IAdtResponse<T = any, D = any> {
|
|
6
7
|
data: T;
|
|
7
8
|
status: number;
|
|
8
9
|
statusText: string;
|
|
9
|
-
headers: Record<string,
|
|
10
|
+
headers: Record<string, IAdtHeaderValue> & {
|
|
10
11
|
location?: string;
|
|
11
12
|
Location?: string;
|
|
12
|
-
'content-location'?:
|
|
13
|
-
'Content-Location'?:
|
|
14
|
-
'sap-adt-location'?:
|
|
13
|
+
'content-location'?: IAdtHeaderValue;
|
|
14
|
+
'Content-Location'?: IAdtHeaderValue;
|
|
15
|
+
'sap-adt-location'?: IAdtHeaderValue;
|
|
15
16
|
};
|
|
16
17
|
config?: D;
|
|
17
18
|
request?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG;IAC5C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,MAAM,CAAC;AAEX,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG;IAC5C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,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,k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