@mcp-abap-adt/interfaces-adt 1.0.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 +16 -0
- package/COPYING +674 -0
- package/LICENSE +165 -0
- package/README.md +35 -0
- package/dist/Headers.d.ts +57 -0
- package/dist/Headers.d.ts.map +1 -0
- package/dist/Headers.js +62 -0
- package/dist/adt/AdtTypes.d.ts +40 -0
- package/dist/adt/AdtTypes.d.ts.map +1 -0
- package/dist/adt/AdtTypes.js +5 -0
- package/dist/adt/IAdtAbapGit.d.ts +60 -0
- package/dist/adt/IAdtAbapGit.d.ts.map +1 -0
- package/dist/adt/IAdtAbapGit.js +2 -0
- package/dist/adt/IAdtAccessControl.d.ts +30 -0
- package/dist/adt/IAdtAccessControl.d.ts.map +1 -0
- package/dist/adt/IAdtAccessControl.js +5 -0
- package/dist/adt/IAdtAppendStructure.d.ts +32 -0
- package/dist/adt/IAdtAppendStructure.d.ts.map +1 -0
- package/dist/adt/IAdtAppendStructure.js +5 -0
- package/dist/adt/IAdtAuthorizationField.d.ts +49 -0
- package/dist/adt/IAdtAuthorizationField.d.ts.map +1 -0
- package/dist/adt/IAdtAuthorizationField.js +5 -0
- package/dist/adt/IAdtBehaviorDefinition.d.ts +58 -0
- package/dist/adt/IAdtBehaviorDefinition.d.ts.map +1 -0
- package/dist/adt/IAdtBehaviorDefinition.js +7 -0
- package/dist/adt/IAdtBehaviorImplementation.d.ts +30 -0
- package/dist/adt/IAdtBehaviorImplementation.d.ts.map +1 -0
- package/dist/adt/IAdtBehaviorImplementation.js +5 -0
- package/dist/adt/IAdtCapabilities.d.ts +391 -0
- package/dist/adt/IAdtCapabilities.d.ts.map +1 -0
- package/dist/adt/IAdtCapabilities.js +2 -0
- package/dist/adt/IAdtClass.d.ts +66 -0
- package/dist/adt/IAdtClass.d.ts.map +1 -0
- package/dist/adt/IAdtClass.js +5 -0
- package/dist/adt/IAdtClientOptions.d.ts +25 -0
- package/dist/adt/IAdtClientOptions.d.ts.map +1 -0
- package/dist/adt/IAdtClientOptions.js +9 -0
- package/dist/adt/IAdtContentTypes.d.ts +45 -0
- package/dist/adt/IAdtContentTypes.d.ts.map +1 -0
- package/dist/adt/IAdtContentTypes.js +13 -0
- package/dist/adt/IAdtDataElement.d.ts +95 -0
- package/dist/adt/IAdtDataElement.d.ts.map +1 -0
- package/dist/adt/IAdtDataElement.js +5 -0
- package/dist/adt/IAdtDdl.d.ts +37 -0
- package/dist/adt/IAdtDdl.d.ts.map +1 -0
- package/dist/adt/IAdtDdl.js +7 -0
- package/dist/adt/IAdtDomain.d.ts +79 -0
- package/dist/adt/IAdtDomain.d.ts.map +1 -0
- package/dist/adt/IAdtDomain.js +5 -0
- package/dist/adt/IAdtEnhancement.d.ts +61 -0
- package/dist/adt/IAdtEnhancement.d.ts.map +1 -0
- package/dist/adt/IAdtEnhancement.js +7 -0
- package/dist/adt/IAdtFeatureToggle.d.ts +100 -0
- package/dist/adt/IAdtFeatureToggle.d.ts.map +1 -0
- package/dist/adt/IAdtFeatureToggle.js +5 -0
- package/dist/adt/IAdtFunctionGroup.d.ts +52 -0
- package/dist/adt/IAdtFunctionGroup.d.ts.map +1 -0
- package/dist/adt/IAdtFunctionGroup.js +5 -0
- package/dist/adt/IAdtFunctionInclude.d.ts +23 -0
- package/dist/adt/IAdtFunctionInclude.d.ts.map +1 -0
- package/dist/adt/IAdtFunctionInclude.js +5 -0
- package/dist/adt/IAdtFunctionModule.d.ts +35 -0
- package/dist/adt/IAdtFunctionModule.d.ts.map +1 -0
- package/dist/adt/IAdtFunctionModule.js +5 -0
- package/dist/adt/IAdtInclude.d.ts +45 -0
- package/dist/adt/IAdtInclude.d.ts.map +1 -0
- package/dist/adt/IAdtInclude.js +17 -0
- package/dist/adt/IAdtInterface.d.ts +33 -0
- package/dist/adt/IAdtInterface.d.ts.map +1 -0
- package/dist/adt/IAdtInterface.js +5 -0
- package/dist/adt/IAdtMessageClass.d.ts +35 -0
- package/dist/adt/IAdtMessageClass.d.ts.map +1 -0
- package/dist/adt/IAdtMessageClass.js +2 -0
- package/dist/adt/IAdtMetadataExtension.d.ts +29 -0
- package/dist/adt/IAdtMetadataExtension.d.ts.map +1 -0
- package/dist/adt/IAdtMetadataExtension.js +5 -0
- package/dist/adt/IAdtObject.d.ts +224 -0
- package/dist/adt/IAdtObject.d.ts.map +1 -0
- package/dist/adt/IAdtObject.js +82 -0
- package/dist/adt/IAdtObjectState.d.ts +36 -0
- package/dist/adt/IAdtObjectState.d.ts.map +1 -0
- package/dist/adt/IAdtObjectState.js +13 -0
- package/dist/adt/IAdtPackage.d.ts +69 -0
- package/dist/adt/IAdtPackage.d.ts.map +1 -0
- package/dist/adt/IAdtPackage.js +5 -0
- package/dist/adt/IAdtProgram.d.ts +37 -0
- package/dist/adt/IAdtProgram.d.ts.map +1 -0
- package/dist/adt/IAdtProgram.js +5 -0
- package/dist/adt/IAdtResponse.d.ts +289 -0
- package/dist/adt/IAdtResponse.d.ts.map +1 -0
- package/dist/adt/IAdtResponse.js +51 -0
- package/dist/adt/IAdtScalarFunction.d.ts +30 -0
- package/dist/adt/IAdtScalarFunction.d.ts.map +1 -0
- package/dist/adt/IAdtScalarFunction.js +5 -0
- package/dist/adt/IAdtScalarFunctionImplementation.d.ts +35 -0
- package/dist/adt/IAdtScalarFunctionImplementation.d.ts.map +1 -0
- package/dist/adt/IAdtScalarFunctionImplementation.js +5 -0
- package/dist/adt/IAdtServiceBinding.d.ts +61 -0
- package/dist/adt/IAdtServiceBinding.d.ts.map +1 -0
- package/dist/adt/IAdtServiceBinding.js +33 -0
- package/dist/adt/IAdtServiceDefinition.d.ts +30 -0
- package/dist/adt/IAdtServiceDefinition.d.ts.map +1 -0
- package/dist/adt/IAdtServiceDefinition.js +5 -0
- package/dist/adt/IAdtShared.d.ts +110 -0
- package/dist/adt/IAdtShared.d.ts.map +1 -0
- package/dist/adt/IAdtShared.js +5 -0
- package/dist/adt/IAdtStructure.d.ts +48 -0
- package/dist/adt/IAdtStructure.d.ts.map +1 -0
- package/dist/adt/IAdtStructure.js +5 -0
- package/dist/adt/IAdtTable.d.ts +30 -0
- package/dist/adt/IAdtTable.d.ts.map +1 -0
- package/dist/adt/IAdtTable.js +5 -0
- package/dist/adt/IAdtTableType.d.ts +61 -0
- package/dist/adt/IAdtTableType.d.ts.map +1 -0
- package/dist/adt/IAdtTableType.js +5 -0
- package/dist/adt/IAdtTransformation.d.ts +33 -0
- package/dist/adt/IAdtTransformation.d.ts.map +1 -0
- package/dist/adt/IAdtTransformation.js +7 -0
- package/dist/adt/IAdtTransport.d.ts +104 -0
- package/dist/adt/IAdtTransport.d.ts.map +1 -0
- package/dist/adt/IAdtTransport.js +8 -0
- package/dist/adt/IAdtUnitTest.d.ts +125 -0
- package/dist/adt/IAdtUnitTest.d.ts.map +1 -0
- package/dist/adt/IAdtUnitTest.js +5 -0
- package/dist/adt/IAdtUtilities.d.ts +310 -0
- package/dist/adt/IAdtUtilities.d.ts.map +1 -0
- package/dist/adt/IAdtUtilities.js +92 -0
- package/dist/auth/AuthType.d.ts +5 -0
- package/dist/auth/AuthType.d.ts.map +1 -0
- package/dist/auth/AuthType.js +2 -0
- package/dist/auth/IAuthorizationConfig.d.ts +15 -0
- package/dist/auth/IAuthorizationConfig.d.ts.map +1 -0
- package/dist/auth/IAuthorizationConfig.js +2 -0
- package/dist/auth/IAuthorizationStrategy.d.ts +59 -0
- package/dist/auth/IAuthorizationStrategy.d.ts.map +1 -0
- package/dist/auth/IAuthorizationStrategy.js +12 -0
- package/dist/auth/ICallbackServer.d.ts +139 -0
- package/dist/auth/ICallbackServer.d.ts.map +1 -0
- package/dist/auth/ICallbackServer.js +2 -0
- package/dist/auth/ICertificateMaterialLoader.d.ts +7 -0
- package/dist/auth/ICertificateMaterialLoader.d.ts.map +1 -0
- package/dist/auth/ICertificateMaterialLoader.js +2 -0
- package/dist/auth/IConfig.d.ts +8 -0
- package/dist/auth/IConfig.d.ts.map +1 -0
- package/dist/auth/IConfig.js +2 -0
- package/dist/auth/IConnectionConfig.d.ts +23 -0
- package/dist/auth/IConnectionConfig.d.ts.map +1 -0
- package/dist/auth/IConnectionConfig.js +2 -0
- package/dist/connection/CalmService.d.ts +3 -0
- package/dist/connection/CalmService.d.ts.map +1 -0
- package/dist/connection/CalmService.js +14 -0
- package/dist/connection/IAbapConnection.d.ts +73 -0
- package/dist/connection/IAbapConnection.d.ts.map +1 -0
- package/dist/connection/IAbapConnection.js +2 -0
- package/dist/connection/IAbapRequestOptions.d.ts +9 -0
- package/dist/connection/IAbapRequestOptions.d.ts.map +1 -0
- package/dist/connection/IAbapRequestOptions.js +2 -0
- package/dist/connection/ICalmConnection.d.ts +29 -0
- package/dist/connection/ICalmConnection.d.ts.map +1 -0
- package/dist/connection/ICalmConnection.js +2 -0
- package/dist/connection/ICalmRequestOptions.d.ts +11 -0
- package/dist/connection/ICalmRequestOptions.d.ts.map +1 -0
- package/dist/connection/ICalmRequestOptions.js +2 -0
- package/dist/connection/IConnectionCapabilities.d.ts +217 -0
- package/dist/connection/IConnectionCapabilities.d.ts.map +1 -0
- package/dist/connection/IConnectionCapabilities.js +29 -0
- package/dist/execution/IAdtExecutors.d.ts +78 -0
- package/dist/execution/IAdtExecutors.d.ts.map +1 -0
- package/dist/execution/IAdtExecutors.js +9 -0
- package/dist/execution/IAdtRunnable.d.ts +61 -0
- package/dist/execution/IAdtRunnable.d.ts.map +1 -0
- package/dist/execution/IAdtRunnable.js +2 -0
- package/dist/execution/ITraceScheduling.d.ts +39 -0
- package/dist/execution/ITraceScheduling.d.ts.map +1 -0
- package/dist/execution/ITraceScheduling.js +15 -0
- package/dist/feeds/IFeedRepository.d.ts +32 -0
- package/dist/feeds/IFeedRepository.d.ts.map +1 -0
- package/dist/feeds/IFeedRepository.js +8 -0
- package/dist/feeds/types.d.ts +18 -0
- package/dist/feeds/types.d.ts.map +1 -0
- package/dist/feeds/types.js +9 -0
- package/dist/index.d.ts +103 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/runtime/IApplicationLog.d.ts +21 -0
- package/dist/runtime/IApplicationLog.d.ts.map +1 -0
- package/dist/runtime/IApplicationLog.js +2 -0
- package/dist/runtime/IAtcLog.d.ts +15 -0
- package/dist/runtime/IAtcLog.d.ts.map +1 -0
- package/dist/runtime/IAtcLog.js +2 -0
- package/dist/runtime/IAtcRun.d.ts +99 -0
- package/dist/runtime/IAtcRun.d.ts.map +1 -0
- package/dist/runtime/IAtcRun.js +10 -0
- package/dist/runtime/ICrossTrace.d.ts +32 -0
- package/dist/runtime/ICrossTrace.d.ts.map +1 -0
- package/dist/runtime/ICrossTrace.js +2 -0
- package/dist/runtime/IDdicActivation.d.ts +12 -0
- package/dist/runtime/IDdicActivation.d.ts.map +1 -0
- package/dist/runtime/IDdicActivation.js +2 -0
- package/dist/runtime/IGatewayErrorLog.d.ts +10 -0
- package/dist/runtime/IGatewayErrorLog.d.ts.map +1 -0
- package/dist/runtime/IGatewayErrorLog.js +2 -0
- package/dist/runtime/IProfiler.d.ts +65 -0
- package/dist/runtime/IProfiler.d.ts.map +1 -0
- package/dist/runtime/IProfiler.js +2 -0
- package/dist/runtime/IRuntimeDumps.d.ts +23 -0
- package/dist/runtime/IRuntimeDumps.d.ts.map +1 -0
- package/dist/runtime/IRuntimeDumps.js +2 -0
- package/dist/runtime/ISt05Trace.d.ts +8 -0
- package/dist/runtime/ISt05Trace.d.ts.map +1 -0
- package/dist/runtime/ISt05Trace.js +2 -0
- package/dist/runtime/ISystemMessages.d.ts +10 -0
- package/dist/runtime/ISystemMessages.d.ts.map +1 -0
- package/dist/runtime/ISystemMessages.js +2 -0
- package/dist/runtime/ITrace.d.ts +170 -0
- package/dist/runtime/ITrace.d.ts.map +1 -0
- package/dist/runtime/ITrace.js +14 -0
- package/dist/sap/ISapConfig.d.ts +22 -0
- package/dist/sap/ISapConfig.d.ts.map +1 -0
- package/dist/sap/ISapConfig.js +2 -0
- package/dist/sap/SapAuthType.d.ts +3 -0
- package/dist/sap/SapAuthType.d.ts.map +1 -0
- package/dist/sap/SapAuthType.js +2 -0
- package/dist/service/IAdtService.d.ts +84 -0
- package/dist/service/IAdtService.d.ts.map +1 -0
- package/dist/service/IAdtService.js +27 -0
- package/dist/serviceKey/IServiceKeyStore.d.ts +31 -0
- package/dist/serviceKey/IServiceKeyStore.d.ts.map +1 -0
- package/dist/serviceKey/IServiceKeyStore.js +7 -0
- package/dist/session/ISessionStore.d.ts +59 -0
- package/dist/session/ISessionStore.d.ts.map +1 -0
- package/dist/session/ISessionStore.js +7 -0
- package/dist/shared/IReadOptions.d.ts +9 -0
- package/dist/shared/IReadOptions.d.ts.map +1 -0
- package/dist/shared/IReadOptions.js +2 -0
- package/dist/store/StoreErrorCodes.d.ts +12 -0
- package/dist/store/StoreErrorCodes.d.ts.map +1 -0
- package/dist/store/StoreErrorCodes.js +13 -0
- package/dist/token/AuthType.d.ts +43 -0
- package/dist/token/AuthType.d.ts.map +1 -0
- package/dist/token/AuthType.js +41 -0
- package/dist/token/ITokenProvider.d.ts +27 -0
- package/dist/token/ITokenProvider.d.ts.map +1 -0
- package/dist/token/ITokenProvider.js +8 -0
- package/dist/token/ITokenProviderOptions.d.ts +23 -0
- package/dist/token/ITokenProviderOptions.d.ts.map +1 -0
- package/dist/token/ITokenProviderOptions.js +2 -0
- package/dist/token/ITokenRefresher.d.ts +39 -0
- package/dist/token/ITokenRefresher.d.ts.map +1 -0
- package/dist/token/ITokenRefresher.js +12 -0
- package/dist/token/ITokenResult.d.ts +36 -0
- package/dist/token/ITokenResult.d.ts.map +1 -0
- package/dist/token/ITokenResult.js +7 -0
- package/dist/token/TokenProviderErrorCodes.d.ts +26 -0
- package/dist/token/TokenProviderErrorCodes.d.ts.map +1 -0
- package/dist/token/TokenProviderErrorCodes.js +24 -0
- package/dist/utils/ITokenRefreshResult.d.ts +8 -0
- package/dist/utils/ITokenRefreshResult.d.ts.map +1 -0
- package/dist/utils/ITokenRefreshResult.js +2 -0
- package/dist/validation/IHeaderValidationResult.d.ts +15 -0
- package/dist/validation/IHeaderValidationResult.d.ts.map +1 -0
- package/dist/validation/IHeaderValidationResult.js +2 -0
- package/dist/validation/IValidatedAuthConfig.d.ts +46 -0
- package/dist/validation/IValidatedAuthConfig.d.ts.map +1 -0
- package/dist/validation/IValidatedAuthConfig.js +15 -0
- package/package.json +42 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for cross-cutting ADT operations
|
|
3
|
+
*/
|
|
4
|
+
export type AdtObjectTypeLower = 'class' | 'clas/oc' | 'program' | 'prog/p' | 'interface' | 'intf/if' | 'functionmodule' | 'fugr/ff' | 'view' | 'ddls/df' | 'structure' | 'stru/dt' | 'table' | 'tabl/dt' | 'tabletype' | 'ttyp/df' | 'domain' | 'doma/dd' | 'dataelement' | 'dtel' | 'functiongroup' | 'fugr' | 'package' | 'devc/k';
|
|
5
|
+
export type AdtObjectType = AdtObjectTypeLower | Uppercase<AdtObjectTypeLower>;
|
|
6
|
+
export type AdtSourceObjectTypeLower = 'class' | 'clas/oc' | 'program' | 'prog/p' | 'interface' | 'intf/if' | 'functionmodule' | 'fugr/ff' | 'view' | 'ddls/df' | 'structure' | 'stru/dt' | 'table' | 'tabl/dt' | 'tabletype' | 'ttyp/df';
|
|
7
|
+
export type AdtSourceObjectType = AdtSourceObjectTypeLower | Uppercase<AdtSourceObjectTypeLower>;
|
|
8
|
+
/**
|
|
9
|
+
* What a group operation is given, per object.
|
|
10
|
+
*
|
|
11
|
+
* A **request** parameter, which is why it survived 31.0.0 while the result
|
|
12
|
+
* shapes left: `activateObjectsGroup`, `checkDeletionGroup` and
|
|
13
|
+
* `deleteObjectsGroup` take these, and a consumer cannot call them without the
|
|
14
|
+
* type. It extended `IAdtObjectHit` — a result shape — until 31.0.0 and now
|
|
15
|
+
* states its own fields, which are the ones the request carries.
|
|
16
|
+
*/
|
|
17
|
+
export interface IObjectReference {
|
|
18
|
+
/** Object name, `adtcore:name`. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** ADT object type code, e.g. `'CLAS/OC'`. */
|
|
21
|
+
type: string;
|
|
22
|
+
/** ADT URI of the object, `adtcore:uri`, where the caller knows it. */
|
|
23
|
+
uri?: string;
|
|
24
|
+
/** Owning object, where the reference is to a part of one. */
|
|
25
|
+
parentName?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Search objects parameters
|
|
29
|
+
*/
|
|
30
|
+
export interface ISearchObjectsParams {
|
|
31
|
+
query: string;
|
|
32
|
+
objectType?: string;
|
|
33
|
+
maxResults?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* SQL query parameters
|
|
37
|
+
*/
|
|
38
|
+
export interface IGetSqlQueryParams {
|
|
39
|
+
sql_query: string;
|
|
40
|
+
row_number?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Table contents parameters
|
|
44
|
+
*/
|
|
45
|
+
export interface IGetTableContentsParams {
|
|
46
|
+
table_name: string;
|
|
47
|
+
max_rows?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The statement to run against `/datapreview/ddic`.
|
|
50
|
+
*
|
|
51
|
+
* **The column list is the caller's since 42.0.0.** This member used to read
|
|
52
|
+
* `/datapreview/ddic/{name}/metadata` first, build
|
|
53
|
+
* `SELECT T~A, T~B FROM T` out of every column it found, and post that — two
|
|
54
|
+
* requests in one member, and a statement nobody outside could change. Read
|
|
55
|
+
* the columns with `getTableColumns` and write the statement you want, or
|
|
56
|
+
* write one that names no columns at all.
|
|
57
|
+
*
|
|
58
|
+
* **Required, and that is the point.** Optional here would compile for every
|
|
59
|
+
* caller still written against the old member, and fail at runtime with no
|
|
60
|
+
* statement to post. A major release is where a migration becomes a type
|
|
61
|
+
* error instead of a surprise.
|
|
62
|
+
*/
|
|
63
|
+
sql_query: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* ADT discovery request parameters
|
|
67
|
+
*/
|
|
68
|
+
export interface IGetDiscoveryParams {
|
|
69
|
+
requestId?: string;
|
|
70
|
+
timeout?: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Where-used scope parameters (Step 1: get available object types)
|
|
74
|
+
*/
|
|
75
|
+
export interface IGetWhereUsedScopeParams {
|
|
76
|
+
object_name: string;
|
|
77
|
+
object_type: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Where-used parameters (Step 2: execute search)
|
|
81
|
+
*/
|
|
82
|
+
export interface IGetWhereUsedParams {
|
|
83
|
+
object_name: string;
|
|
84
|
+
object_type: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional: scope XML from getWhereUsedScope() with user-modified selections.
|
|
87
|
+
* When omitted, the search runs unscoped (SAP's default scope) — getWhereUsed()
|
|
88
|
+
* does NOT fetch a scope itself, so it works on systems that do not expose the
|
|
89
|
+
* /usageReferences/scope sub-resource.
|
|
90
|
+
*/
|
|
91
|
+
scopeXml?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Virtual folders preselection entry
|
|
95
|
+
*/
|
|
96
|
+
export interface IVirtualFoldersPreselection {
|
|
97
|
+
facet: string;
|
|
98
|
+
values: string[];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Virtual folders contents parameters
|
|
102
|
+
*/
|
|
103
|
+
export interface IGetVirtualFoldersContentsParams {
|
|
104
|
+
objectSearchPattern?: string;
|
|
105
|
+
preselection?: IVirtualFoldersPreselection[];
|
|
106
|
+
facetOrder?: string[];
|
|
107
|
+
withVersions?: boolean;
|
|
108
|
+
ignoreShortDescriptions?: boolean;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=IAdtShared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtShared.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtShared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,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AAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;;;;;OAcG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structure ADT operation parameter interfaces (snake_case, low-level)
|
|
3
|
+
*/
|
|
4
|
+
export interface ICreateStructureParams {
|
|
5
|
+
structureName: string;
|
|
6
|
+
description: string;
|
|
7
|
+
packageName: string;
|
|
8
|
+
transportRequest?: string;
|
|
9
|
+
masterSystem?: string;
|
|
10
|
+
responsible?: string;
|
|
11
|
+
masterLanguage?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpdateStructureParams {
|
|
14
|
+
structureName: string;
|
|
15
|
+
ddlCode: string;
|
|
16
|
+
transportRequest?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IDeleteStructureParams {
|
|
19
|
+
structure_name: string;
|
|
20
|
+
transport_request?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IStructureField {
|
|
23
|
+
name: string;
|
|
24
|
+
data_type?: string;
|
|
25
|
+
length?: number;
|
|
26
|
+
decimals?: number;
|
|
27
|
+
domain?: string;
|
|
28
|
+
data_element?: string;
|
|
29
|
+
structure_ref?: string;
|
|
30
|
+
table_ref?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IStructureInclude {
|
|
34
|
+
name: string;
|
|
35
|
+
suffix?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IStructureConfig {
|
|
38
|
+
structureName: string;
|
|
39
|
+
masterLanguage?: string;
|
|
40
|
+
packageName?: string;
|
|
41
|
+
transportRequest?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
ddlCode?: string;
|
|
44
|
+
fields?: IStructureField[];
|
|
45
|
+
includes?: IStructureInclude[];
|
|
46
|
+
onLock?: (lockHandle: string) => void;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=IAdtStructure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtStructure.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtStructure.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table ADT operation parameter interfaces (snake_case, low-level)
|
|
3
|
+
*/
|
|
4
|
+
export interface ICreateTableParams {
|
|
5
|
+
table_name: string;
|
|
6
|
+
package_name: string;
|
|
7
|
+
transport_request?: string;
|
|
8
|
+
masterSystem?: string;
|
|
9
|
+
responsible?: string;
|
|
10
|
+
masterLanguage?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpdateTableParams {
|
|
13
|
+
table_name: string;
|
|
14
|
+
ddl_code: string;
|
|
15
|
+
transport_request?: string;
|
|
16
|
+
activate?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IDeleteTableParams {
|
|
19
|
+
table_name: string;
|
|
20
|
+
transport_request?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ITableConfig {
|
|
23
|
+
tableName: string;
|
|
24
|
+
masterLanguage?: string;
|
|
25
|
+
packageName?: string;
|
|
26
|
+
transportRequest?: string;
|
|
27
|
+
ddlCode?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=IAdtTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtTable.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Type ADT operation parameter interfaces (snake_case, low-level)
|
|
3
|
+
*/
|
|
4
|
+
export type TableTypeRowKind = 'dictionaryType' | 'predefinedAbapType' | 'refToPredefinedAbapType' | 'refToDictionaryType' | 'refToClassOrInterfaceType' | 'rangeTypeOnPredefinedType' | 'rangeTypeOnDataelement';
|
|
5
|
+
export type TableTypeAccessType = 'standard' | 'sorted' | 'hashed' | 'index' | 'notSpecified';
|
|
6
|
+
export type TableTypePrimaryKeyDefinition = 'standard' | 'rowType' | 'keyComponents' | 'empty' | 'notSpecified';
|
|
7
|
+
export type TableTypePrimaryKeyKind = 'unique' | 'nonUnique' | 'notSpecified';
|
|
8
|
+
export interface ICreateTableTypeParams {
|
|
9
|
+
tabletype_name: string;
|
|
10
|
+
package_name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
transport_request?: string;
|
|
13
|
+
masterSystem?: string;
|
|
14
|
+
responsible?: string;
|
|
15
|
+
masterLanguage?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IUpdateTableTypeParams {
|
|
18
|
+
tabletype_name: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
row_type_name: string;
|
|
21
|
+
row_type_kind?: TableTypeRowKind;
|
|
22
|
+
access_type?: TableTypeAccessType;
|
|
23
|
+
primary_key_definition?: TableTypePrimaryKeyDefinition;
|
|
24
|
+
primary_key_kind?: TableTypePrimaryKeyKind;
|
|
25
|
+
transport_request?: string;
|
|
26
|
+
activate?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface IDeleteTableTypeParams {
|
|
29
|
+
tabletype_name: string;
|
|
30
|
+
transport_request?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ITableTypeConfig {
|
|
33
|
+
/**
|
|
34
|
+
* The complete document to write, when this config is used for an update.
|
|
35
|
+
*
|
|
36
|
+
* **An update is a write, not a read-modify-write.** Until 19.0.0 of
|
|
37
|
+
* `adt-clients` the five DDIC-shaped updates fetched the current document,
|
|
38
|
+
* patched the fields named here into it, and PUT the result — two requests in
|
|
39
|
+
* one member, and a merge whose rules nobody outside could change. They no
|
|
40
|
+
* longer do: a caller reads the document with the member that reads it, edits
|
|
41
|
+
* it, and passes it here.
|
|
42
|
+
*
|
|
43
|
+
* So the fields beside this one describe a *create*. On an update they are not
|
|
44
|
+
* sent, and a field left out of `document` is not preserved — there is nothing
|
|
45
|
+
* to preserve it from, because nothing was read.
|
|
46
|
+
*
|
|
47
|
+
* Optional because the same config creates, where there is no document yet.
|
|
48
|
+
*/
|
|
49
|
+
document?: string;
|
|
50
|
+
tableTypeName: string;
|
|
51
|
+
masterLanguage?: string;
|
|
52
|
+
packageName?: string;
|
|
53
|
+
transportRequest?: string;
|
|
54
|
+
rowTypeName?: string;
|
|
55
|
+
rowTypeKind?: 'dictionaryType' | 'predefinedAbapType' | 'refToPredefinedAbapType' | 'refToDictionaryType' | 'refToClassOrInterfaceType' | 'rangeTypeOnPredefinedType' | 'rangeTypeOnDataelement';
|
|
56
|
+
accessType?: 'standard' | 'sorted' | 'hashed' | 'index' | 'notSpecified';
|
|
57
|
+
primaryKeyDefinition?: 'standard' | 'rowType' | 'keyComponents' | 'empty' | 'notSpecified';
|
|
58
|
+
primaryKeyKind?: 'unique' | 'nonUnique' | 'notSpecified';
|
|
59
|
+
description?: string;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=IAdtTableType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtTableType.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTableType.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,GAChB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,2BAA2B,GAC3B,2BAA2B,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,EAAE,MAAM,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EACR,gBAAgB,GAChB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,2BAA2B,GAC3B,2BAA2B,GAC3B,wBAAwB,CAAC;IAC7B,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,CAAC;IACzE,oBAAoB,CAAC,EACjB,UAAU,GACV,SAAS,GACT,eAAe,GACf,OAAO,GACP,cAAc,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transformation ADT operation parameter interfaces (low-level)
|
|
3
|
+
*/
|
|
4
|
+
export type TransformationType = 'SimpleTransformation' | 'XSLTProgram';
|
|
5
|
+
export interface ICreateTransformationParams {
|
|
6
|
+
transformation_name: string;
|
|
7
|
+
transformation_type: TransformationType;
|
|
8
|
+
description?: string;
|
|
9
|
+
package_name: string;
|
|
10
|
+
transport_request?: string;
|
|
11
|
+
masterSystem?: string;
|
|
12
|
+
responsible?: string;
|
|
13
|
+
masterLanguage?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateTransformationParams {
|
|
16
|
+
transformation_name: string;
|
|
17
|
+
source_code: string;
|
|
18
|
+
transport_request?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IDeleteTransformationParams {
|
|
21
|
+
transformation_name: string;
|
|
22
|
+
transport_request?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ITransformationConfig {
|
|
25
|
+
transformationName: string;
|
|
26
|
+
masterLanguage?: string;
|
|
27
|
+
transformationType: TransformationType;
|
|
28
|
+
packageName?: string;
|
|
29
|
+
transportRequest?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
sourceCode?: string;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=IAdtTransformation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtTransformation.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTransformation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,aAAa,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,kBAAkB,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAGD,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Transformation ADT operation parameter interfaces (low-level)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// The state types were removed in 29.0.0: each member answers what its own
|
|
7
|
+
// endpoint produced, and a failure carries the request that produced it.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transport ADT operation parameter interfaces (snake_case, low-level)
|
|
3
|
+
*/
|
|
4
|
+
import type { IAdtResponse } from './IAdtResponse';
|
|
5
|
+
export interface ICreateTransportParams {
|
|
6
|
+
transport_type?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
target_system?: string;
|
|
9
|
+
owner?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Low level. `configUri` is REQUIRED: this layer requests, it does not resolve.
|
|
13
|
+
*
|
|
14
|
+
* The five filter fields this replaces were never read by the server. Probed on
|
|
15
|
+
* the trial 2026-08-07: `/sap/bc/adt/cts/transportrequests` answers with the
|
|
16
|
+
* same 309-byte empty root for `?user=`, for `?status=`, for the configuration's
|
|
17
|
+
* own property spellings, and for no parameters at all — while 15 requests
|
|
18
|
+
* existed. The transport list is a saved-configuration search: reference the
|
|
19
|
+
* search, do not restate it.
|
|
20
|
+
*/
|
|
21
|
+
export interface IListTransportsParams {
|
|
22
|
+
/** href of a saved search configuration, verbatim from the configurations document. */
|
|
23
|
+
configUri: string;
|
|
24
|
+
}
|
|
25
|
+
/** High level. Omitting `configUri` opts into the resolution rule in `AdtRequest`. */
|
|
26
|
+
export interface IListTransportsOptions {
|
|
27
|
+
configUri?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* One saved transport search configuration.
|
|
31
|
+
*
|
|
32
|
+
* The payload carries no name and no default marker: the element holds
|
|
33
|
+
* authorship and client, while the href and its etag live on an `atom:link`
|
|
34
|
+
* child. Attributes are handed back verbatim — naming them is the consumer's
|
|
35
|
+
* decision, not this library's.
|
|
36
|
+
*/
|
|
37
|
+
export interface ITransportSearchConfiguration {
|
|
38
|
+
/** href from the `atom:link` child, verbatim — pass back as `configUri`. */
|
|
39
|
+
uri: string;
|
|
40
|
+
/** etag from the same link, when present. */
|
|
41
|
+
etag?: string;
|
|
42
|
+
/** createdBy, createdAt, changedBy, changedAt, client — verbatim, no renaming. */
|
|
43
|
+
attributes: Record<string, string>;
|
|
44
|
+
}
|
|
45
|
+
/** Where saved transport searches live. Named so an error message can quote it. */
|
|
46
|
+
export declare const TRANSPORT_SEARCH_CONFIGURATIONS_URL = "/sap/bc/adt/cts/transportrequests/searchconfiguration/configurations";
|
|
47
|
+
export interface ITransportConfig {
|
|
48
|
+
/**
|
|
49
|
+
* The complete document to write, when this config is used for an update.
|
|
50
|
+
*
|
|
51
|
+
* **An update is a write, not a read-modify-write.** Until 19.0.0 of
|
|
52
|
+
* `adt-clients` the five DDIC-shaped updates fetched the current document,
|
|
53
|
+
* patched the fields named here into it, and PUT the result — two requests in
|
|
54
|
+
* one member, and a merge whose rules nobody outside could change. They no
|
|
55
|
+
* longer do: a caller reads the document with the member that reads it, edits
|
|
56
|
+
* it, and passes it here.
|
|
57
|
+
*
|
|
58
|
+
* So the fields beside this one describe a *create*. On an update they are not
|
|
59
|
+
* sent, and a field left out of `document` is not preserved — there is nothing
|
|
60
|
+
* to preserve it from, because nothing was read.
|
|
61
|
+
*
|
|
62
|
+
* Optional because the same config creates, where there is no document yet.
|
|
63
|
+
*/
|
|
64
|
+
document?: string;
|
|
65
|
+
description: string;
|
|
66
|
+
transportType?: 'workbench' | 'customizing';
|
|
67
|
+
targetSystem?: string;
|
|
68
|
+
owner?: string;
|
|
69
|
+
transportNumber?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The transport request handler, as a contract rather than a class.
|
|
73
|
+
*
|
|
74
|
+
* `AdtClient.getRequest()` handed back a concrete `AdtRequest`, which is the one
|
|
75
|
+
* thing a consumer cannot replace: no declared type to implement, nothing to
|
|
76
|
+
* compose their own reader into, and — in `@mcp-abap-adt/adt-clients` — a
|
|
77
|
+
* capability guard with nothing to compare the manifest against, because the
|
|
78
|
+
* declared type *was* the implementation.
|
|
79
|
+
*
|
|
80
|
+
* The CRUD half is the four atoms with the transport's own config; the two
|
|
81
|
+
* methods below are the transport's alone, and neither has an atom because
|
|
82
|
+
* nothing else lists a collection this way.
|
|
83
|
+
*/
|
|
84
|
+
export interface IAdtRequest<TList> {
|
|
85
|
+
/**
|
|
86
|
+
* The transport requests the server lists.
|
|
87
|
+
*
|
|
88
|
+
* Until 30.0.0 this resource had three members: `list` and `listNodes`, which
|
|
89
|
+
* answered the identical parsed tree, and a
|
|
90
|
+
* `listNodes<T>(parse, …)` overload. One request, one member (decision 16);
|
|
91
|
+
* a caller wanting the request numbers alone, the tree, or the document
|
|
92
|
+
* untouched injects an {@link IResultStrategy} when the implementation is
|
|
93
|
+
* constructed (decision 22).
|
|
94
|
+
*
|
|
95
|
+
* The tree is the reading that carries the containers, the description and
|
|
96
|
+
* the **language** a request holds — none of which a consumer could reach
|
|
97
|
+
* before without re-fetching and parsing the document themselves.
|
|
98
|
+
*
|
|
99
|
+
* `configUri` is required by the layer beneath — see `IListTransportsParams`,
|
|
100
|
+
* where the measurement is. This resolves it; that one does not.
|
|
101
|
+
*/
|
|
102
|
+
list(options?: IListTransportsOptions): Promise<IAdtResponse<TList>>;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=IAdtTransport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtTransport.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTransport.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IACpC,uFAAuF;IACvF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,sFAAsF;AACtF,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,6BAA6B;IAC5C,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,mFAAmF;AACnF,eAAO,MAAM,mCAAmC,yEACwB,CAAC;AAGzE,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAGD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW,CAAC,KAAK;IAChC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;CACtE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Transport ADT operation parameter interfaces (snake_case, low-level)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = void 0;
|
|
7
|
+
/** Where saved transport searches live. Named so an error message can quote it. */
|
|
8
|
+
exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = '/sap/bc/adt/cts/transportrequests/searchconfiguration/configurations';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit Test ADT operation parameter interfaces (snake_case, low-level)
|
|
3
|
+
*/
|
|
4
|
+
import type { IAdtResponse } from './IAdtResponse';
|
|
5
|
+
/**
|
|
6
|
+
* Which tests a run covers.
|
|
7
|
+
*
|
|
8
|
+
* Named rather than inlined so a caller can hold one before they call — an
|
|
9
|
+
* anonymous shape inside `IClassUnitTestRunOptions` could be passed but never
|
|
10
|
+
* declared, which is the difference between a contract and a convenience.
|
|
11
|
+
*/
|
|
12
|
+
export interface IUnitTestScope {
|
|
13
|
+
ownTests?: boolean;
|
|
14
|
+
foreignTests?: boolean;
|
|
15
|
+
addForeignTestsAsPreview?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Which risk levels a run accepts. */
|
|
18
|
+
export interface IUnitTestRiskLevel {
|
|
19
|
+
harmless?: boolean;
|
|
20
|
+
dangerous?: boolean;
|
|
21
|
+
critical?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** Which durations a run accepts. */
|
|
24
|
+
export interface IUnitTestDuration {
|
|
25
|
+
short?: boolean;
|
|
26
|
+
medium?: boolean;
|
|
27
|
+
long?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A unit test, as an object a caller manages.
|
|
31
|
+
*
|
|
32
|
+
* The subject is the container class and its `testclasses` include — the class
|
|
33
|
+
* that holds the tests, and the source of every local test class inside it.
|
|
34
|
+
* Running is not described here: `run` takes its arguments directly, and asking
|
|
35
|
+
* about a run is {@link ITestRunInformation}.
|
|
36
|
+
*/
|
|
37
|
+
export interface IUnitTestConfig {
|
|
38
|
+
/** The class whose testclasses include holds the tests — CLAS/OC. */
|
|
39
|
+
className: string;
|
|
40
|
+
/**
|
|
41
|
+
* Source of the **whole** testclasses include, every local test class in it.
|
|
42
|
+
*
|
|
43
|
+
* ADT addresses the include, never one class inside it: reading GETs it
|
|
44
|
+
* whole, writing PUTs a source that replaces it whole, and deleting PUTs an
|
|
45
|
+
* empty one. A field naming a single test class would promise an addressing
|
|
46
|
+
* this contract does not have.
|
|
47
|
+
*/
|
|
48
|
+
testClassSource?: string;
|
|
49
|
+
/** Where the container class goes, when `create` has to make it. */
|
|
50
|
+
packageName?: string;
|
|
51
|
+
/** What the container class is, when `create` has to make it. */
|
|
52
|
+
description?: string;
|
|
53
|
+
/** Template the container class is created from, when `create` has to make it. */
|
|
54
|
+
classTemplate?: string;
|
|
55
|
+
transportRequest?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IClassUnitTestDefinition {
|
|
58
|
+
containerClass: string;
|
|
59
|
+
testClass: string;
|
|
60
|
+
}
|
|
61
|
+
export interface IClassUnitTestRunOptions {
|
|
62
|
+
title?: string;
|
|
63
|
+
context?: string;
|
|
64
|
+
scope?: IUnitTestScope;
|
|
65
|
+
riskLevel?: IUnitTestRiskLevel;
|
|
66
|
+
duration?: IUnitTestDuration;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A unit test against a CDS view.
|
|
70
|
+
*
|
|
71
|
+
* Everything about the container class and its include is inherited: a CDS test
|
|
72
|
+
* lives in a global class exactly as a class's own tests do — the view cannot
|
|
73
|
+
* hold a test class, so one is generated for it. Only the view itself is
|
|
74
|
+
* CDS-specific.
|
|
75
|
+
*/
|
|
76
|
+
export type ICdsUnitTestConfig = IUnitTestConfig & {
|
|
77
|
+
/** The CDS view under test. */
|
|
78
|
+
cdsViewName?: string;
|
|
79
|
+
};
|
|
80
|
+
/** The CDS variant adds nothing to a run's result that a contract can name. */
|
|
81
|
+
/** Options for fetching a finished run's result document. */
|
|
82
|
+
export interface IUnitTestResultOptions {
|
|
83
|
+
/** Ask ADT to embed navigation URIs for each reported item. */
|
|
84
|
+
withNavigationUris?: boolean;
|
|
85
|
+
/** Result document flavour. */
|
|
86
|
+
format?: 'abapunit' | 'junit';
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Asking about a test run.
|
|
90
|
+
*
|
|
91
|
+
* Separate from running on purpose: a run is started once and asked about
|
|
92
|
+
* whenever, by whoever holds its id. Nothing in ADT is "the run this handler
|
|
93
|
+
* happened to start last", so nothing here reads a handler's memory — every
|
|
94
|
+
* method takes the run it is about.
|
|
95
|
+
*
|
|
96
|
+
* What this does **not** declare is a listing. ADT addresses runs one at a
|
|
97
|
+
* time in every request this package makes — `POST /abapunit/runs`,
|
|
98
|
+
* `GET /abapunit/runs/{id}`, `GET /abapunit/results/{id}` — and whether it
|
|
99
|
+
* answers a collection GET is unverified. An unproven method is exactly what
|
|
100
|
+
* this contract exists not to promise.
|
|
101
|
+
*/
|
|
102
|
+
export interface ITestRunInformation<TStatus, TResult> {
|
|
103
|
+
/**
|
|
104
|
+
* Poll a run.
|
|
105
|
+
* @param runId the run to ask about
|
|
106
|
+
* @param withLongPolling let ADT hold the request until the run progresses
|
|
107
|
+
*/
|
|
108
|
+
getStatus(runId: string, withLongPolling?: boolean): Promise<IAdtResponse<TStatus>>;
|
|
109
|
+
/** Fetch the result document of a finished run. */
|
|
110
|
+
getResult(runId: string, options?: IUnitTestResultOptions): Promise<IAdtResponse<TResult>>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Checking whether a CDS view can be tested with test doubles.
|
|
114
|
+
*
|
|
115
|
+
* Its own capability rather than part of running: it answers a question about
|
|
116
|
+
* the view, and it is asked before there is anything to run.
|
|
117
|
+
*/
|
|
118
|
+
export interface ICdsTestDoubleCheckable<TResult> {
|
|
119
|
+
/**
|
|
120
|
+
* Check whether a CDS view can be tested with test doubles.
|
|
121
|
+
* @param cdsViewName the view to inspect
|
|
122
|
+
*/
|
|
123
|
+
checkCdsTestDoubles(cdsViewName: string): Promise<IAdtResponse<TResult>>;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=IAdtUnitTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdtUnitTest.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtUnitTest.ts"],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