@mcp-abap-adt/interfaces 0.1.8 → 0.1.9
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 +11 -0
- package/dist/adt/IAdtObject.d.ts +9 -9
- package/dist/adt/IAdtObject.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +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.1.9] - 2025-12-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **IAdtObject Interface - Unified Return Types**: All methods now return `Promise<TReadResult>` instead of mixed types
|
|
14
|
+
- `validate()`: Changed from `Promise<AxiosResponse>` to `Promise<TReadResult>`
|
|
15
|
+
- `check()`: Changed from `Promise<AxiosResponse>` to `Promise<TReadResult>`
|
|
16
|
+
- `activate()`: Changed from `Promise<AxiosResponse>` to `Promise<TReadResult>`
|
|
17
|
+
- `delete()`: Changed from `Promise<AxiosResponse>` to `Promise<TReadResult>`
|
|
18
|
+
- This provides consistent return types across all IAdtObject methods
|
|
19
|
+
- State types (e.g., `ClassBuilderState`) should include fields for all operation results
|
|
20
|
+
|
|
10
21
|
## [0.1.8] - 2025-12-10
|
|
11
22
|
|
|
12
23
|
### Added
|
package/dist/adt/IAdtObject.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* Unlike Builders which provide low-level method chaining, this interface
|
|
8
8
|
* provides high-level operation chains with automatic error handling and cleanup.
|
|
9
9
|
*/
|
|
10
|
-
import { AxiosResponse } from 'axios';
|
|
11
10
|
/**
|
|
12
11
|
* Error codes that can be thrown by IAdtObject methods
|
|
13
12
|
* Consumers can catch specific errors using these constants
|
|
@@ -102,9 +101,9 @@ export interface IAdtObject<TConfig, TReadResult = TConfig> {
|
|
|
102
101
|
/**
|
|
103
102
|
* Validate object configuration before creation
|
|
104
103
|
* @param config - Object configuration
|
|
105
|
-
* @returns
|
|
104
|
+
* @returns State with validation result
|
|
106
105
|
*/
|
|
107
|
-
validate(config: Partial<TConfig>): Promise<
|
|
106
|
+
validate(config: Partial<TConfig>): Promise<TReadResult>;
|
|
108
107
|
/**
|
|
109
108
|
* Create object with full operation chain:
|
|
110
109
|
* validate → create → check → lock → check(inactive) → update → unlock → check → activate (optional)
|
|
@@ -139,22 +138,23 @@ export interface IAdtObject<TConfig, TReadResult = TConfig> {
|
|
|
139
138
|
* Performs deletion check before deleting.
|
|
140
139
|
*
|
|
141
140
|
* @param config - Object identification
|
|
142
|
-
* @returns
|
|
141
|
+
* @returns State with delete result
|
|
143
142
|
* @throws Error if deletion check fails (object is not deleted)
|
|
144
143
|
*/
|
|
145
|
-
delete(config: Partial<TConfig>): Promise<
|
|
144
|
+
delete(config: Partial<TConfig>): Promise<TReadResult>;
|
|
146
145
|
/**
|
|
147
146
|
* Activate object
|
|
148
147
|
* @param config - Object identification
|
|
149
|
-
* @returns
|
|
148
|
+
* @returns State with activation result
|
|
150
149
|
*/
|
|
151
|
-
activate(config: Partial<TConfig>): Promise<
|
|
150
|
+
activate(config: Partial<TConfig>): Promise<TReadResult>;
|
|
152
151
|
/**
|
|
153
152
|
* Check object (syntax, consistency, etc.)
|
|
154
153
|
* @param config - Object identification
|
|
155
154
|
* @param status - Optional status to check ('active', 'inactive', 'deletion')
|
|
156
|
-
* @returns
|
|
155
|
+
* @returns State with check result
|
|
156
|
+
* @throws Error if check finds errors (type E in XML response)
|
|
157
157
|
*/
|
|
158
|
-
check(config: Partial<TConfig>, status?: string): Promise<
|
|
158
|
+
check(config: Partial<TConfig>, status?: string): Promise<TReadResult>;
|
|
159
159
|
}
|
|
160
160
|
//# sourceMappingURL=IAdtObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtObject.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtObject.ts"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