@mcp-abap-adt/interfaces 0.2.11 → 0.2.12

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,10 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.12] - 2025-12-24
11
+
12
+ ### Changed
13
+ - `IAbapConnection` now uses `IAdtResponse<T, D>` (custom response type, no axios dependency).
14
+ - `makeAdtRequest` is generic and returns `IAdtResponse<T, D>`.
15
+
10
16
  ## [0.2.11] - 2025-12-24
11
17
 
12
18
  ### Changed
13
- - `IAbapConnection.AxiosResponse` now aliases `axios` `AxiosResponse` (typed response instead of `unknown`).
19
+ - `IAbapConnection.AxiosResponse` now aliases `axios` `AxiosResponse` with generics preserved.
20
+ - `makeAdtRequest` is generic and returns `AxiosResponse<T, D>`.
14
21
  - `axios` is now required for typing (moved from dev-only usage).
15
22
 
16
23
  ## [0.2.10] - 2025-12-24
package/README.md CHANGED
@@ -214,7 +214,7 @@ This package is responsible for:
214
214
  This package has **no runtime dependencies**. It only has devDependencies for TypeScript compilation:
215
215
  - `typescript` - TypeScript compiler
216
216
  - `@types/node` - Node.js type definitions
217
- - `axios` - For AxiosResponse type
217
+ - No runtime dependencies
218
218
 
219
219
  ## Documentation
220
220
 
@@ -1,9 +1,15 @@
1
- import type { AxiosResponse as AxiosResponseType } from 'axios';
2
1
  import type { IAbapRequestOptions } from './IAbapRequestOptions';
3
2
  /**
4
- * Axios response type for ADT requests.
3
+ * Minimal response type for ADT requests.
5
4
  */
6
- export type AxiosResponse = AxiosResponseType;
5
+ export interface IAdtResponse<T = any, D = any> {
6
+ data: T;
7
+ status: number;
8
+ statusText: string;
9
+ headers: Record<string, string>;
10
+ config?: D;
11
+ request?: unknown;
12
+ }
7
13
  /**
8
14
  * ABAP Connection interface
9
15
  *
@@ -38,6 +44,6 @@ export interface IAbapConnection {
38
44
  * @param options - Request options (url, method, data, etc.)
39
45
  * @returns Promise with Axios response
40
46
  */
41
- makeAdtRequest(options: IAbapRequestOptions): Promise<AxiosResponse>;
47
+ makeAdtRequest<T = any, D = any>(options: IAbapRequestOptions): Promise<IAdtResponse<T, D>>;
42
48
  }
43
49
  //# sourceMappingURL=IAbapConnection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE9C;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAErD;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACtE"}
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,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAErD;;;;;;;;;;OAUG;IACH,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAC7B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAChC"}
@@ -4,8 +4,6 @@
4
4
  * Stateful providers that manage token lifecycle internally.
5
5
  * The provider validates, refreshes, or re-authenticates as needed.
6
6
  */
7
- import type { IAuthorizationConfig } from '../auth/IAuthorizationConfig';
8
- import type { ITokenProviderOptions } from './ITokenProviderOptions';
9
7
  import type { ITokenResult } from './ITokenResult';
10
8
  /**
11
9
  * Interface for token providers (stateful)
@@ -17,7 +15,7 @@ export interface ITokenProvider {
17
15
  * Stateful providers cache tokens internally and handle refresh automatically.
18
16
  * Checks token expiration, refreshes if needed, or triggers login.
19
17
  */
20
- getTokens(authConfig: IAuthorizationConfig, options?: ITokenProviderOptions): Promise<ITokenResult>;
18
+ getTokens(): Promise<ITokenResult>;
21
19
  /**
22
20
  * Validate JWT token locally (optional)
23
21
  * @param token JWT token to validate
@@ -1 +1 @@
1
- {"version":3,"file":"ITokenProvider.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProvider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,CACP,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzB;;;;;OAKG;IACH,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtE"}
1
+ {"version":3,"file":"ITokenProvider.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProvider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAEnC;;;;;OAKG;IACH,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/interfaces",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Shared interfaces for MCP ABAP ADT packages",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",