@mcp-abap-adt/interfaces-adt 6.0.0 → 8.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 +161 -1
- package/README.md +45 -8
- package/dist/Headers.d.ts +13 -32
- package/dist/Headers.d.ts.map +1 -1
- package/dist/Headers.js +14 -33
- package/dist/adt/IAdtCapabilities.d.ts +2 -1
- package/dist/adt/IAdtCapabilities.d.ts.map +1 -1
- package/dist/adt/IAdtDataElement.d.ts +8 -15
- package/dist/adt/IAdtDataElement.d.ts.map +1 -1
- package/dist/adt/IAdtDomain.d.ts +8 -15
- package/dist/adt/IAdtDomain.d.ts.map +1 -1
- package/dist/adt/IAdtFunctionGroup.d.ts +8 -16
- package/dist/adt/IAdtFunctionGroup.d.ts.map +1 -1
- package/dist/adt/IAdtObject.d.ts +9 -0
- package/dist/adt/IAdtObject.d.ts.map +1 -1
- package/dist/adt/IAdtPackage.d.ts +8 -15
- package/dist/adt/IAdtPackage.d.ts.map +1 -1
- package/dist/adt/IAdtTableType.d.ts +8 -15
- package/dist/adt/IAdtTableType.d.ts.map +1 -1
- package/dist/adt/IAdtTransport.d.ts +39 -22
- package/dist/adt/IAdtTransport.d.ts.map +1 -1
- package/dist/adt/IAdtTransport.js +25 -1
- package/dist/connection/IAbapConnection.d.ts +12 -20
- package/dist/connection/IAbapConnection.d.ts.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -21
- package/dist/store/ISessionState.d.ts +11 -0
- package/dist/store/ISessionState.d.ts.map +1 -0
- package/dist/store/ISessionStorage.d.ts +26 -0
- package/dist/store/ISessionStorage.d.ts.map +1 -0
- package/dist/token/ITokenProviderResult.d.ts +12 -0
- package/dist/token/ITokenProviderResult.d.ts.map +1 -0
- package/dist/token/ITokenProviderResult.js +2 -0
- package/package.json +2 -1
- package/dist/connection/CalmService.d.ts +0 -3
- package/dist/connection/CalmService.d.ts.map +0 -1
- package/dist/connection/CalmService.js +0 -14
- package/dist/connection/ICalmConnection.d.ts +0 -29
- package/dist/connection/ICalmConnection.d.ts.map +0 -1
- package/dist/connection/ICalmRequestOptions.d.ts +0 -11
- package/dist/connection/ICalmRequestOptions.d.ts.map +0 -1
- /package/dist/{connection/ICalmConnection.js → store/ISessionState.js} +0 -0
- /package/dist/{connection/ICalmRequestOptions.js → store/ISessionStorage.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,162 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.0.0] - 2026-09-23
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **The SAP header groups live with the headers they group** —
|
|
15
|
+
`SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS`, and the
|
|
16
|
+
`ISessionState`, `ISessionStorage` and `ITokenProviderResult` contracts.
|
|
17
|
+
|
|
18
|
+
All six were declared in the `@mcp-abap-adt/interfaces` facade, which
|
|
19
|
+
declares no header name of its own: it imported all eighteen from here to
|
|
20
|
+
build the groups, and `ITokenProviderResult` imported `IConnectionConfig`
|
|
21
|
+
from here too. A grouping one package away from what it groups, and a token
|
|
22
|
+
result one package away from the token contracts. They are beside
|
|
23
|
+
`ISessionStore` and `ITokenProvider` now.
|
|
24
|
+
|
|
25
|
+
Each carried *"No package imports this; it is removed in the next major"*,
|
|
26
|
+
and the premise held — nothing under development imports them. They moved
|
|
27
|
+
rather than being deleted because where they belong is not in doubt, and a
|
|
28
|
+
grouping is cheap to keep and expensive to reinvent.
|
|
29
|
+
|
|
30
|
+
### Removed
|
|
31
|
+
|
|
32
|
+
- **BREAKING: every header name leaves, and the groups with them.** The three
|
|
33
|
+
routing names — `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION`,
|
|
34
|
+
`HEADER_MCP_URL` — and all fifteen SAP and UAA ones are in
|
|
35
|
+
`@mcp-abap-adt/interfaces-network` `1.1.0`, together with
|
|
36
|
+
`PROXY_ROUTING_HEADERS`, `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`,
|
|
37
|
+
`PRESERVED_HEADERS` and `PROXY_MODIFIED_HEADERS`.
|
|
38
|
+
|
|
39
|
+
**A header name says how a value travels, not what it means.** That is the
|
|
40
|
+
whole argument, and the code agrees with it: nothing in this contract ever
|
|
41
|
+
used one — only the index re-exported them. Keeping them here bound
|
|
42
|
+
`mcp-abap-adt-header-validator`, which imports fifteen of them and nothing
|
|
43
|
+
else from this package, and `cloud-llm-hub` to the release rate of the ADT
|
|
44
|
+
contract.
|
|
45
|
+
|
|
46
|
+
`PROXY_MODIFIED_HEADERS` is the case that proves the placement. It groups
|
|
47
|
+
`HEADER_AUTHORIZATION` with three SAP names, so while the two halves lived in
|
|
48
|
+
different packages — and neither may import the other — it could exist in
|
|
49
|
+
neither and was deleted. With the names where they belong it exists again, in
|
|
50
|
+
`-network`, beside everything it groups.
|
|
51
|
+
|
|
52
|
+
This package keeps `AUTH_TYPE_JWT`, `AUTH_TYPE_BASIC`, `AUTH_TYPE_XSUAA` and
|
|
53
|
+
`AUTH_TYPES`: those are values a header carries, not names of headers.
|
|
54
|
+
|
|
55
|
+
- **BREAKING: the Cloud ALM contracts leave** — `CalmService`, `CALM_SERVICES`,
|
|
56
|
+
`ICalmConnection`, `ICalmRequestOptions` and `ICalmResponse` are
|
|
57
|
+
`@mcp-abap-adt/interfaces-calm` `1.0.0`.
|
|
58
|
+
|
|
59
|
+
Cloud ALM is not ABAP, and the only thing holding them here was one line:
|
|
60
|
+
`ICalmResponse` was an alias of `IAdtWireResponse`. `mcp-calm-client` and
|
|
61
|
+
`mcp-calm-server` therefore tracked the ADT contract's releases to describe a
|
|
62
|
+
service that has nothing to do with ADT.
|
|
63
|
+
|
|
64
|
+
### Changed
|
|
65
|
+
|
|
66
|
+
- **`IAdtWireResponse` narrows a shape it no longer declares.** The HTTP frame
|
|
67
|
+
— `data`, `status`, `statusText`, `config`, `request` — is
|
|
68
|
+
`IHttpWireResponse` in `@mcp-abap-adt/interfaces-network`; this type extends
|
|
69
|
+
it and keeps the `headers` ADT actually sends. `IAdtHeaderValue` is an alias
|
|
70
|
+
of `IHttpHeaderValue`.
|
|
71
|
+
|
|
72
|
+
**Nothing renames.** Both names still exist here with the same meaning, so a
|
|
73
|
+
consumer holding `IAdtWireResponse` — 335 files in
|
|
74
|
+
`@mcp-abap-adt/adt-clients` do — changes nothing. What changes is that a
|
|
75
|
+
package needing only an HTTP frame no longer has to come here for it.
|
|
76
|
+
|
|
77
|
+
This package now depends on `interfaces-network`, which it did not before.
|
|
78
|
+
That edge is honest: ADT speaks HTTP.
|
|
79
|
+
|
|
80
|
+
## [7.0.0] - 2026-09-23
|
|
81
|
+
|
|
82
|
+
### Added
|
|
83
|
+
|
|
84
|
+
- **`ADT_TASK_TYPE` and `AdtTaskType`** — the task types CTS accepts, as a
|
|
85
|
+
constant rather than a literal at each call site. `changeTaskType` declared
|
|
86
|
+
them inline, `'S' | 'R' | 'X'`, which gave a consumer nothing to import: the
|
|
87
|
+
implementation in `@mcp-abap-adt/adt-clients` had to repeat the union under a
|
|
88
|
+
local name, and every caller had to repeat the letters.
|
|
89
|
+
|
|
90
|
+
**The letters are SAP's, not a choice made here.** They were measured against
|
|
91
|
+
BTP ABAP on 2026-09-23 by sending each one and reading the task back, and the
|
|
92
|
+
constant carries what was refused too — `'Q'` ("You can only change the type
|
|
93
|
+
of tasks in workbench requests") and `'K'`/`'W'`, which are request types.
|
|
94
|
+
That belongs in the one place a consumer can import it from.
|
|
95
|
+
|
|
96
|
+
It is **not** added to the `@mcp-abap-adt/interfaces` facade. Every symbol
|
|
97
|
+
the facade re-exports is already marked *"@deprecated Import from
|
|
98
|
+
@mcp-abap-adt/interfaces-adt"*; a new one there would be born deprecated.
|
|
99
|
+
|
|
100
|
+
Both are exported from this package's entry point, and
|
|
101
|
+
`__typechecks__/transportObjectActions.ts` imports them from there rather
|
|
102
|
+
than from the file that declares them. That is not tidiness: the first
|
|
103
|
+
version of this change declared them and forgot the re-export, so the import
|
|
104
|
+
the paragraph above tells a consumer to write did not resolve and
|
|
105
|
+
`ADT_TASK_TYPE` was `undefined` in the built package. Nothing caught it —
|
|
106
|
+
`check-surface.js` reads the facade, and these two are deliberately not
|
|
107
|
+
there. Found in review.
|
|
108
|
+
|
|
109
|
+
### Changed
|
|
110
|
+
|
|
111
|
+
- **`changeTaskType` takes `AdtTaskType`** instead of the inline union. **Not
|
|
112
|
+
a break.** The alias is those same three values and TypeScript compares
|
|
113
|
+
types structurally, so a call passing `'S'` compiles and so does a
|
|
114
|
+
declaration that spells the union out — the two are mutually assignable.
|
|
115
|
+
This entry called it breaking and said such a declaration would stop
|
|
116
|
+
compiling; both were wrong, caught in review. What makes 7.0.0 a major is
|
|
117
|
+
the removal below.
|
|
118
|
+
|
|
119
|
+
### Removed
|
|
120
|
+
|
|
121
|
+
- **BREAKING: `source` leaves six configs** — `IDomainConfig`,
|
|
122
|
+
`IDataElementConfig`, `IPackageConfig`, `ITableTypeConfig`,
|
|
123
|
+
`IFunctionGroupConfig` and `ITransportConfig`.
|
|
124
|
+
|
|
125
|
+
**The contract said where a write's body goes twice, and differently.**
|
|
126
|
+
`IAdtUpdatable.update` and `IAdtMetadataUpdatable.updateMetadata` document
|
|
127
|
+
`options` as "`source` for the body"; each of the 26 configs that carried a
|
|
128
|
+
`source` said the caller "reads the document … and passes it here". An implementation honouring one made the
|
|
129
|
+
other a lie — `adt-clients` read the config only, so the call the atom
|
|
130
|
+
documents sent `undefined` and wrote nothing. Its repair reads both channels
|
|
131
|
+
with the options winning and says in a comment that choosing between them is
|
|
132
|
+
the contract's job; that repair is on its `main` and not released, so no
|
|
133
|
+
published version of it has ever honoured the atom's sentence.
|
|
134
|
+
|
|
135
|
+
It is one channel now, and the split is not arbitrary. Measured across the 26
|
|
136
|
+
configs that declared a `source`, and the implementations in `adt-clients`
|
|
137
|
+
that read them: the field has exactly one reader besides the write, and that
|
|
138
|
+
is `check`/`validate`, which compile a source the server does not hold yet
|
|
139
|
+
and have no options channel to take it from. Six of the 26 lose the field
|
|
140
|
+
here; 20 keep it. None of the six has such a member — `domain` passes
|
|
141
|
+
`undefined` where the source would go, `dataElement` sends none, `tableType`
|
|
142
|
+
validates a description, and `package`, `functionGroup` and
|
|
143
|
+
`transportRequest` have neither. Nothing read their `source` but the write.
|
|
144
|
+
|
|
145
|
+
`IAuthorizationFieldConfig` is in the same position and is deliberately
|
|
146
|
+
**not** in the count: it never declared a `source`, so it is outside the 26
|
|
147
|
+
and has nothing to lose here.
|
|
148
|
+
|
|
149
|
+
The configs that keep it are the ones whose `check` or `validate` compiles
|
|
150
|
+
it. `IAdtOperationOptions.source` now says this outright.
|
|
151
|
+
|
|
152
|
+
**Migrating.** A write that passed the body in the config moves it to the
|
|
153
|
+
options; a call that already passed it there is unaffected.
|
|
154
|
+
|
|
155
|
+
```diff
|
|
156
|
+
- await domain.updateMetadata({ domainName, source: edited }, { lockHandle });
|
|
157
|
+
+ await domain.updateMetadata({ domainName }, { source: edited, lockHandle });
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
A `check` or `validate` keeps passing its source in the config — that is the
|
|
161
|
+
reader the field is left for.
|
|
162
|
+
|
|
163
|
+
Not deprecated first: decision 30 — an implementation-only shape leaves at a
|
|
164
|
+
major.
|
|
165
|
+
|
|
10
166
|
## [6.0.0] - 2026-09-23
|
|
11
167
|
|
|
12
168
|
> Recorded as **decision 32** in `docs/architecture/DECISIONS.md` — why the
|
|
@@ -62,7 +218,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
62
218
|
3.0.0 and 4.0.0 spent themselves removing, and the fields are a day old with
|
|
63
219
|
no importer anywhere under `~/prj`.
|
|
64
220
|
|
|
65
|
-
## [5.0.0] - 2026-09-23
|
|
221
|
+
## [5.0.0] - 2026-09-23 — never published, superseded by 6.0.0
|
|
222
|
+
|
|
223
|
+
> **Never published.** 6.0.0 was tagged before this version reached the
|
|
224
|
+
> registry, so npm goes 4.1.0 → 6.0.0 and everything below arrived there. A
|
|
225
|
+
> consumer looking for `changeTaskType` wants **6.0.0 or later**, not this.
|
|
66
226
|
|
|
67
227
|
### Changed
|
|
68
228
|
|
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# @mcp-abap-adt/interfaces-adt
|
|
2
2
|
|
|
3
|
-
ADT contracts, the ABAP
|
|
3
|
+
ADT contracts, the ABAP connection, and SAP/BTP configuration and authentication contracts.
|
|
4
4
|
|
|
5
5
|
## TL;DR
|
|
6
6
|
|
|
7
|
-
- Everything a package on the SAP side accepts: ADT object operations, runtime analysis, execution, feeds, services, the ABAP
|
|
8
|
-
-
|
|
7
|
+
- Everything a package on the SAP side accepts: ADT object operations, runtime analysis, execution, feeds, services, the ABAP connection, SAP/BTP configuration, token providers, SAML assertion validation, session and service-key stores, and header validation.
|
|
8
|
+
- **Two things left in 8.0.0.** Every HTTP header name, and the groups over them, are in [`@mcp-abap-adt/interfaces-network`](../interfaces-network) — a header name says how a value travels, not what it means, and nothing here ever used one. The Cloud ALM contracts are [`@mcp-abap-adt/interfaces-calm`](../interfaces-calm) — Cloud ALM is not ABAP. `AUTH_TYPE_JWT` and its siblings stay: those are values a header carries.
|
|
9
|
+
- `IAdtWireResponse` now extends `IHttpWireResponse` from `-network` and keeps the headers ADT sends (`sap-adt-location`, both spellings of `content-location`). The name and shape are unchanged for a consumer.
|
|
10
|
+
- Depends on `@mcp-abap-adt/interfaces-auth`, `@mcp-abap-adt/interfaces-network` and `@mcp-abap-adt/interfaces-utils`. Types and constants; no implementation.
|
|
9
11
|
- Moved unchanged from `@mcp-abap-adt/interfaces` 44.0.0. Most majors of that package came from these contracts; this package now carries them alone.
|
|
10
12
|
|
|
11
13
|
## Install
|
|
@@ -19,14 +21,14 @@ npm install @mcp-abap-adt/interfaces-adt
|
|
|
19
21
|
| directory | what |
|
|
20
22
|
|---|---|
|
|
21
23
|
| `adt/`, `runtime/`, `execution/`, `feeds/`, `service/`, `shared/` | the ADT contracts: capability atoms, object types, `IAdtResponse`, runtime analysis, execution |
|
|
22
|
-
| `connection/` | `IAbapConnection`, `IAbapRequestOptions`, the connection capability atoms
|
|
24
|
+
| `connection/` | `IAbapConnection`, `IAbapRequestOptions`, the connection capability atoms. `IAdtWireResponse` lives here and extends `IHttpWireResponse` from `-network`; the Cloud ALM contracts left for [`interfaces-calm`](../interfaces-calm) in 8.0.0 |
|
|
23
25
|
| `sap/`, `auth/` | `ISapConfig`, `IConnectionConfig`, `IAuthorizationConfig`, `IConfig`, `IAuthorizationStrategy`, the callback-server contracts, `ICertificateMaterialLoader`, `AuthTypeEnum`; `IAssertionValidator` with `AssertionContext`, `ValidatedAssertion`, `IAssertionReplayStore` and `ASSERTION_ERROR_CODES` |
|
|
24
26
|
| `token/`, `session/`, `serviceKey/`, `store/` | token providers and refreshers, stores and their error codes |
|
|
25
|
-
| `validation/`, `Headers.ts` | header validation; `
|
|
27
|
+
| `validation/`, `Headers.ts` | header validation; `AUTH_TYPES`, `AuthType`, `AUTH_TYPE_JWT` and its siblings — the *values* a header carries. The header **names** left for [`interfaces-network`](../interfaces-network) in 8.0.0 |
|
|
26
28
|
|
|
27
|
-
The contract rules — what a member answers, how a strategy is supplied, how a contract is built — are in [`docs/architecture/ARCHITECTURE.md`](../../docs/architecture/ARCHITECTURE.md). Domain-by-domain documentation with examples
|
|
29
|
+
The contract rules — what a member answers, how a strategy is supplied, how a contract is built — are in [`docs/architecture/ARCHITECTURE.md`](../../docs/architecture/ARCHITECTURE.md). Domain-by-domain documentation with examples used to sit in the facade's README; the facade is deleted, and each package documents its own contracts.
|
|
28
30
|
|
|
29
|
-
**
|
|
31
|
+
**There is no facade to stay compatible with.** It was pinned to its 44.0.0 surface in both directions — nothing from that release could disappear from it and nothing could appear without being written down — and `tools/check-surface.js`, `surface-44.0.0.txt`, `baseline-44.0.0.json` and `surface-added.txt` existed to enforce exactly that. The facade is deleted in its 52.0.0 (decision 34), so the property is gone along with the files that proved it; git holds them. What `check-surface.js` still asks is the half that never depended on it: is each symbol declared in the package `tools/package-map.json` assigns it to.
|
|
30
32
|
|
|
31
33
|
## The transport request's object list
|
|
32
34
|
|
|
@@ -45,6 +47,41 @@ So `createTask` requires `targetUser` and `removeObject` requires `position`, an
|
|
|
45
47
|
|
|
46
48
|
`addObject` still takes an entry without a position — one that does not exist yet has none.
|
|
47
49
|
|
|
50
|
+
## Migrating to 7.0.0
|
|
51
|
+
|
|
52
|
+
Two changes.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
// 1. The write's body goes in the options, and only there. Six configs —
|
|
56
|
+
// domain, data element, package, table type, function group, transport
|
|
57
|
+
// request — no longer declare `source`.
|
|
58
|
+
- await domain.updateMetadata({ domainName, source: edited }, { lockHandle });
|
|
59
|
+
+ await domain.updateMetadata({ domainName }, { source: edited, lockHandle });
|
|
60
|
+
|
|
61
|
+
// 2. The task types are a constant, so nobody repeats the letters.
|
|
62
|
+
- await actions.changeTaskType(task, 'S');
|
|
63
|
+
+ await actions.changeTaskType(task, ADT_TASK_TYPE.developmentCorrection);
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
A `check` or `validate` keeps taking its source in the config: it compiles
|
|
67
|
+
text the server does not hold yet and has no options channel to take it from,
|
|
68
|
+
which is the one job a `source` on a config still has. The six types above
|
|
69
|
+
have no such member, so nothing read theirs but the write.
|
|
70
|
+
|
|
71
|
+
`'S'` still compiles, and so does a declaration that spells the union out:
|
|
72
|
+
`AdtTaskType` is an alias for those three values, and TypeScript compares
|
|
73
|
+
types structurally, so the two are mutually assignable. **The second change
|
|
74
|
+
breaks nothing at the type level** — it is here because the letters now have
|
|
75
|
+
one home, not because a caller must react to it. The break in 7.0.0 is the
|
|
76
|
+
first change, the six configs. `ADT_TASK_TYPE` and `AdtTaskType` are exported from this package and
|
|
77
|
+
**not** from the `@mcp-abap-adt/interfaces` facade: everything the facade
|
|
78
|
+
forwards is deprecated in favour of importing from the package that declares
|
|
79
|
+
it, so a new symbol there would be born deprecated.
|
|
80
|
+
|
|
81
|
+
Decision 33 in the repository's `docs/architecture/DECISIONS.md` says why the
|
|
82
|
+
body has one channel, and what measurement decided which configs keep the
|
|
83
|
+
field.
|
|
84
|
+
|
|
48
85
|
## Migrating to 2.0.0
|
|
49
86
|
|
|
50
87
|
Three changes, all of them in `IAdtTransportObjectActions`. An implementation or a caller on 1.2.0 does this:
|
|
@@ -73,7 +110,7 @@ Both old call shapes compile against 1.2.0 and cannot work: `createTask(n)` thro
|
|
|
73
110
|
|
|
74
111
|
## Coming from `@mcp-abap-adt/interfaces`
|
|
75
112
|
|
|
76
|
-
Replace the package name in the import. The facade
|
|
113
|
+
Replace the package name in the import. The facade is **deleted** as of its 52.0.0, which was never published — npm still serves 51.0.0, with every symbol re-exported and deprecated, to anyone pinned to it. There is nothing further to move to: take the package that declares the name.
|
|
77
114
|
|
|
78
115
|
## Licence
|
|
79
116
|
|
package/dist/Headers.d.ts
CHANGED
|
@@ -8,41 +8,22 @@
|
|
|
8
8
|
* Priority: Values from mcp-abap-adt-interfaces package take precedence.
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* The proxy routing headers moved to `@mcp-abap-adt/interfaces-network` in
|
|
12
|
+
* 8.0.0 — `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION` and
|
|
13
|
+
* `HEADER_MCP_URL`, together with `PROXY_ROUTING_HEADERS`, which groups them.
|
|
14
|
+
* They name a proxy's routing, not anything ABAP, and that package already
|
|
15
|
+
* held the MCP session headers beside them.
|
|
13
16
|
*/
|
|
14
|
-
export declare const HEADER_BTP_DESTINATION = "x-btp-destination";
|
|
15
|
-
export declare const HEADER_MCP_DESTINATION = "x-mcp-destination";
|
|
16
|
-
export declare const HEADER_MCP_URL = "x-mcp-url";
|
|
17
17
|
/**
|
|
18
|
-
* SAP
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* This is a separate constant to emphasize its specific purpose for SAP destination service.
|
|
27
|
-
*/
|
|
28
|
-
export declare const HEADER_SAP_DESTINATION_SERVICE = "x-sap-destination";
|
|
29
|
-
export declare const HEADER_SAP_URL = "x-sap-url";
|
|
30
|
-
export declare const HEADER_SAP_JWT_TOKEN = "x-sap-jwt-token";
|
|
31
|
-
export declare const HEADER_SAP_AUTH_TYPE = "x-sap-auth-type";
|
|
32
|
-
export declare const HEADER_SAP_CLIENT = "x-sap-client";
|
|
33
|
-
export declare const HEADER_SAP_LOGIN = "x-sap-login";
|
|
34
|
-
export declare const HEADER_SAP_PASSWORD = "x-sap-password";
|
|
35
|
-
export declare const HEADER_SAP_REFRESH_TOKEN = "x-sap-refresh-token";
|
|
36
|
-
/**
|
|
37
|
-
* UAA/XSUAA Headers
|
|
38
|
-
* Used for UAA/XSUAA authentication
|
|
18
|
+
* The SAP connection and UAA header names moved to
|
|
19
|
+
* `@mcp-abap-adt/interfaces-network` in 8.0.0, with the three groups built from
|
|
20
|
+
* them — `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS` — and
|
|
21
|
+
* `PROXY_MODIFIED_HEADERS`, which could not exist while they were split across
|
|
22
|
+
* two packages.
|
|
23
|
+
*
|
|
24
|
+
* A header name says how a value travels, not what it means, and nothing in
|
|
25
|
+
* this contract ever used one: only the index re-exported them.
|
|
39
26
|
*/
|
|
40
|
-
export declare const HEADER_SAP_UAA_URL = "x-sap-uaa-url";
|
|
41
|
-
export declare const HEADER_UAA_URL = "uaa-url";
|
|
42
|
-
export declare const HEADER_SAP_UAA_CLIENT_ID = "x-sap-uaa-client-id";
|
|
43
|
-
export declare const HEADER_UAA_CLIENT_ID = "uaa-client-id";
|
|
44
|
-
export declare const HEADER_SAP_UAA_CLIENT_SECRET = "x-sap-uaa-client-secret";
|
|
45
|
-
export declare const HEADER_UAA_CLIENT_SECRET = "uaa-client-secret";
|
|
46
27
|
/**
|
|
47
28
|
* Authentication type values
|
|
48
29
|
*/
|
package/dist/Headers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../src/Headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH
|
|
1
|
+
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../src/Headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH;;;;;;;;;GASG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,UAAU,oCAIb,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/Headers.js
CHANGED
|
@@ -9,43 +9,24 @@
|
|
|
9
9
|
* Priority: Values from mcp-abap-adt-interfaces package take precedence.
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AUTH_TYPES = exports.AUTH_TYPE_XSUAA = exports.AUTH_TYPE_BASIC = exports.AUTH_TYPE_JWT =
|
|
12
|
+
exports.AUTH_TYPES = exports.AUTH_TYPE_XSUAA = exports.AUTH_TYPE_BASIC = exports.AUTH_TYPE_JWT = void 0;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* The proxy routing headers moved to `@mcp-abap-adt/interfaces-network` in
|
|
15
|
+
* 8.0.0 — `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION` and
|
|
16
|
+
* `HEADER_MCP_URL`, together with `PROXY_ROUTING_HEADERS`, which groups them.
|
|
17
|
+
* They name a proxy's routing, not anything ABAP, and that package already
|
|
18
|
+
* held the MCP session headers beside them.
|
|
16
19
|
*/
|
|
17
|
-
exports.HEADER_BTP_DESTINATION = 'x-btp-destination';
|
|
18
|
-
exports.HEADER_MCP_DESTINATION = 'x-mcp-destination';
|
|
19
|
-
exports.HEADER_MCP_URL = 'x-mcp-url';
|
|
20
20
|
/**
|
|
21
|
-
* SAP
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* This is a separate constant to emphasize its specific purpose for SAP destination service.
|
|
30
|
-
*/
|
|
31
|
-
exports.HEADER_SAP_DESTINATION_SERVICE = 'x-sap-destination';
|
|
32
|
-
exports.HEADER_SAP_URL = 'x-sap-url';
|
|
33
|
-
exports.HEADER_SAP_JWT_TOKEN = 'x-sap-jwt-token';
|
|
34
|
-
exports.HEADER_SAP_AUTH_TYPE = 'x-sap-auth-type';
|
|
35
|
-
exports.HEADER_SAP_CLIENT = 'x-sap-client';
|
|
36
|
-
exports.HEADER_SAP_LOGIN = 'x-sap-login';
|
|
37
|
-
exports.HEADER_SAP_PASSWORD = 'x-sap-password';
|
|
38
|
-
exports.HEADER_SAP_REFRESH_TOKEN = 'x-sap-refresh-token';
|
|
39
|
-
/**
|
|
40
|
-
* UAA/XSUAA Headers
|
|
41
|
-
* Used for UAA/XSUAA authentication
|
|
21
|
+
* The SAP connection and UAA header names moved to
|
|
22
|
+
* `@mcp-abap-adt/interfaces-network` in 8.0.0, with the three groups built from
|
|
23
|
+
* them — `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS` — and
|
|
24
|
+
* `PROXY_MODIFIED_HEADERS`, which could not exist while they were split across
|
|
25
|
+
* two packages.
|
|
26
|
+
*
|
|
27
|
+
* A header name says how a value travels, not what it means, and nothing in
|
|
28
|
+
* this contract ever used one: only the index re-exported them.
|
|
42
29
|
*/
|
|
43
|
-
exports.HEADER_SAP_UAA_URL = 'x-sap-uaa-url';
|
|
44
|
-
exports.HEADER_UAA_URL = 'uaa-url'; // Alternative name
|
|
45
|
-
exports.HEADER_SAP_UAA_CLIENT_ID = 'x-sap-uaa-client-id';
|
|
46
|
-
exports.HEADER_UAA_CLIENT_ID = 'uaa-client-id'; // Alternative name
|
|
47
|
-
exports.HEADER_SAP_UAA_CLIENT_SECRET = 'x-sap-uaa-client-secret';
|
|
48
|
-
exports.HEADER_UAA_CLIENT_SECRET = 'uaa-client-secret'; // Alternative name
|
|
49
30
|
/**
|
|
50
31
|
* Authentication type values
|
|
51
32
|
*/
|
|
@@ -52,7 +52,8 @@ export interface IAdtCreatable<TConfig, TCreated> {
|
|
|
52
52
|
* not before.
|
|
53
53
|
*
|
|
54
54
|
* **It does not take the object's source.** The field it excludes is
|
|
55
|
-
* `source`, which is what
|
|
55
|
+
* `source`, which is what a config calls its payload where it has one;
|
|
56
|
+
* before the
|
|
56
57
|
* renaming it was `sourceCode`, and leaving the exclusion pointing at the
|
|
57
58
|
* old name would have re-opened the hole it was added to close — a create
|
|
58
59
|
* accepting a payload the endpoint drops. This used to say `sourceCode`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtCapabilities.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAAC,OAAO,EAAE,QAAQ;IAC9C
|
|
1
|
+
{"version":3,"file":"IAdtCapabilities.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtCapabilities.ts"],"names":[],"mappings":"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,CAAC,OAAO,CAAC,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,kBAAkB,CAAC,OAAO,EAAE,UAAU;IACrD;;;;;;;OAOG;IACH,aAAa,CAAC,CAAC,SAAS,SAAS,EAC/B,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,OAAO,EAAE;QAAE,eAAe,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG;QAC/D,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;KACtB,GACF,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACxC,aAAa,CACX,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,OAAO,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,GAC7D,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;CACtC"}
|
|
@@ -13,22 +13,15 @@ export interface ICreateDataElementParams {
|
|
|
13
13
|
}
|
|
14
14
|
export interface IDataElementConfig {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* So the fields beside this one describe a *create*. On an update they are not
|
|
26
|
-
* sent, and a field left out of `source` is not preserved — there is nothing
|
|
27
|
-
* to preserve it from, because nothing was read.
|
|
28
|
-
*
|
|
29
|
-
* Optional because the same config creates, where there is no document yet.
|
|
16
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
17
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
18
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
19
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
20
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
21
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
22
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
23
|
+
* `source` on a config still has.
|
|
30
24
|
*/
|
|
31
|
-
source?: string;
|
|
32
25
|
dataElementName: string;
|
|
33
26
|
masterLanguage?: string;
|
|
34
27
|
packageName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtDataElement.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtDataElement.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,eAAe,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,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;AAKD,MAAM,WAAW,kBAAkB;IACjC
|
|
1
|
+
{"version":3,"file":"IAdtDataElement.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtDataElement.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,eAAe,CAAC;AAEpB,MAAM,WAAW,wBAAwB;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,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;AAKD,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IAEH,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EACL,QAAQ,GACR,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,eAAe,CAAC;CACrB"}
|
package/dist/adt/IAdtDomain.d.ts
CHANGED
|
@@ -7,22 +7,15 @@ export interface IFixedValue {
|
|
|
7
7
|
}
|
|
8
8
|
export interface IDomainConfig {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* So the fields beside this one describe a *create*. On an update they are not
|
|
20
|
-
* sent, and a field left out of `source` is not preserved — there is nothing
|
|
21
|
-
* to preserve it from, because nothing was read.
|
|
22
|
-
*
|
|
23
|
-
* Optional because the same config creates, where there is no document yet.
|
|
10
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
11
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
12
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
13
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
14
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
15
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
16
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
17
|
+
* `source` on a config still has.
|
|
24
18
|
*/
|
|
25
|
-
source?: string;
|
|
26
19
|
domainName: string;
|
|
27
20
|
masterLanguage?: string;
|
|
28
21
|
packageName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtDomain.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtDomain.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,MAAM,WAAW,aAAa;IAC5B
|
|
1
|
+
{"version":3,"file":"IAdtDomain.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtDomain.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IAEH,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -3,23 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface IFunctionGroupConfig {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* The same field is on `IDomainConfig`, `IPackageConfig`,
|
|
16
|
-
* `IDataElementConfig`, `ITableTypeConfig` and `ITransportConfig` since
|
|
17
|
-
* 40.0.0, and means the same thing: the fields beside it describe a create,
|
|
18
|
-
* and a field left out of the document is not preserved.
|
|
19
|
-
*
|
|
20
|
-
* Optional because the same config creates, where there is no document yet.
|
|
6
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
7
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
8
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
9
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
10
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
11
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
12
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
13
|
+
* `source` on a config still has.
|
|
21
14
|
*/
|
|
22
|
-
source?: string;
|
|
23
15
|
functionGroupName: string;
|
|
24
16
|
masterLanguage?: string;
|
|
25
17
|
packageName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtFunctionGroup.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtFunctionGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,oBAAoB;IACnC
|
|
1
|
+
{"version":3,"file":"IAdtFunctionGroup.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtFunctionGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;OASG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/adt/IAdtObject.d.ts
CHANGED
|
@@ -137,6 +137,15 @@ export interface IAdtOperationOptions<E extends IAdtError = IAdtError> {
|
|
|
137
137
|
/**
|
|
138
138
|
* The source this member writes. **An update's, and only an update's.**
|
|
139
139
|
*
|
|
140
|
+
* **This is where a write's body goes, and the only place it is read from.**
|
|
141
|
+
* That used to be stated here and contradicted in each of the 26 configs
|
|
142
|
+
* that carried a `source` of their own, every one of which said a caller
|
|
143
|
+
* "reads the document … and passes it here" — the config. An implementation honouring one made the other a lie, and
|
|
144
|
+
* `adt-clients` repaired it by reading both, because the contract gave it no
|
|
145
|
+
* way to choose. It does now: `source` on a config is what that type's
|
|
146
|
+
* `check` or `validate` compiles — a source the server does not hold yet —
|
|
147
|
+
* and the six types whose config had no such reader no longer declare it.
|
|
148
|
+
*
|
|
140
149
|
* This used to name an exception — "a DDL source, a table and a program are
|
|
141
150
|
* created *from* their source, so it is the POST body" — and the exception is
|
|
142
151
|
* not real. Measured across all 27 create implementations in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtObject.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,mBAAmB;IAC9B,6BAA6B;;IAE7B,iFAAiF;;IAEjF,+BAA+B;;IAE/B,6BAA6B;;IAE7B,2BAA2B;;IAE3B,6BAA6B;;IAE7B,+BAA+B;;IAE/B,0BAA0B;;IAE1B,4BAA4B;;IAE5B,8BAA8B;;IAE9B,iGAAiG;;CAEzF,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,CACtD,OAAO,EAAE,SAAS,GAAG,YAAY,EACjC,MAAM,CAAC,EAAE,gBAAgB,KACtB,CAAC,GAAG,YAAY,CAAC;AAEtB;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IACnE;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAmBtB
|
|
1
|
+
{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AAoB,CAAC,CAAC,CAAC,EACvB,QAAQ,CACT,GAAG;IAAE,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC"}
|
|
@@ -3,22 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface IPackageConfig {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* So the fields beside this one describe a *create*. On an update they are not
|
|
16
|
-
* sent, and a field left out of `source` is not preserved — there is nothing
|
|
17
|
-
* to preserve it from, because nothing was read.
|
|
18
|
-
*
|
|
19
|
-
* Optional because the same config creates, where there is no document yet.
|
|
6
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
7
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
8
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
9
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
10
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
11
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
12
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
13
|
+
* `source` on a config still has.
|
|
20
14
|
*/
|
|
21
|
-
source?: string;
|
|
22
15
|
packageName: string;
|
|
23
16
|
superPackage?: string;
|
|
24
17
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtPackage.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtPackage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,cAAc;IAC7B
|
|
1
|
+
{"version":3,"file":"IAdtPackage.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtPackage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;OASG;IAEH,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -7,22 +7,15 @@ export type TableTypePrimaryKeyDefinition = 'standard' | 'rowType' | 'keyCompone
|
|
|
7
7
|
export type TableTypePrimaryKeyKind = 'unique' | 'nonUnique' | 'notSpecified';
|
|
8
8
|
export interface ITableTypeConfig {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* So the fields beside this one describe a *create*. On an update they are not
|
|
20
|
-
* sent, and a field left out of `source` is not preserved — there is nothing
|
|
21
|
-
* to preserve it from, because nothing was read.
|
|
22
|
-
*
|
|
23
|
-
* Optional because the same config creates, where there is no document yet.
|
|
10
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
11
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
12
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
13
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
14
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
15
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
16
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
17
|
+
* `source` on a config still has.
|
|
24
18
|
*/
|
|
25
|
-
source?: string;
|
|
26
19
|
tableTypeName: string;
|
|
27
20
|
masterLanguage?: string;
|
|
28
21
|
packageName?: string;
|
|
@@ -1 +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,GAC3B,wBAAwB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,cAAc,CAAC;AAEnB,MAAM,MAAM,6BAA6B,GACrC,UAAU,GACV,SAAS,GACT,eAAe,GACf,OAAO,GACP,cAAc,CAAC;AAEnB,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;AAK9E,MAAM,WAAW,gBAAgB;IAC/B
|
|
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,GAC3B,wBAAwB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,cAAc,CAAC;AAEnB,MAAM,MAAM,6BAA6B,GACrC,UAAU,GACV,SAAS,GACT,eAAe,GACf,OAAO,GACP,cAAc,CAAC;AAEnB,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;AAK9E,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;OASG;IAEH,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -39,24 +39,43 @@ export interface ITransportSearchConfiguration {
|
|
|
39
39
|
}
|
|
40
40
|
/** Where saved transport searches live. Named so an error message can quote it. */
|
|
41
41
|
export declare const TRANSPORT_SEARCH_CONFIGURATIONS_URL = "/sap/bc/adt/cts/transportrequests/searchconfiguration/configurations";
|
|
42
|
+
/**
|
|
43
|
+
* The task types CTS accepts, keyed by what each one means.
|
|
44
|
+
*
|
|
45
|
+
* **The vocabulary is the server's**, measured against BTP ABAP on
|
|
46
|
+
* 2026-09-23 by sending each value to `changetasktype` and reading the task
|
|
47
|
+
* back. It is a constant here rather than a literal at each call site because
|
|
48
|
+
* SAP chose the letters; a consumer writing `'S'` is repeating a measurement
|
|
49
|
+
* they did not make.
|
|
50
|
+
*
|
|
51
|
+
* The three below are the ones that work. Two more were tried and refused,
|
|
52
|
+
* and the refusals are worth keeping: `'Q'` is a customizing type — *"You can
|
|
53
|
+
* only change the type of tasks in workbench requests"* — and `'K'`/`'W'` are
|
|
54
|
+
* REQUEST types, answered as unknown. The message names the value when one
|
|
55
|
+
* arrives (`… type K is unknown`), which is how a wrong value was told apart
|
|
56
|
+
* from an empty one.
|
|
57
|
+
*/
|
|
58
|
+
export declare const ADT_TASK_TYPE: {
|
|
59
|
+
/** `S` — the type a task needs before an object can be put in it by hand. */
|
|
60
|
+
readonly developmentCorrection: "S";
|
|
61
|
+
/** `R` — a repair of an object this system does not own. */
|
|
62
|
+
readonly repair: "R";
|
|
63
|
+
/** `X` — back to the state every task is created in. */
|
|
64
|
+
readonly unclassified: "X";
|
|
65
|
+
};
|
|
66
|
+
/** One of {@link ADT_TASK_TYPE}'s values. */
|
|
67
|
+
export type AdtTaskType = (typeof ADT_TASK_TYPE)[keyof typeof ADT_TASK_TYPE];
|
|
42
68
|
export interface ITransportConfig {
|
|
43
69
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* So the fields beside this one describe a *create*. On an update they are not
|
|
54
|
-
* sent, and a field left out of `source` is not preserved — there is nothing
|
|
55
|
-
* to preserve it from, because nothing was read.
|
|
56
|
-
*
|
|
57
|
-
* Optional because the same config creates, where there is no document yet.
|
|
70
|
+
* **No `source` here, and that is the point.** This type's write takes its
|
|
71
|
+
* body from `IAdtOperationOptions.source`, which is where the capability
|
|
72
|
+
* atoms say a write's body goes. It used to be declared on this config as
|
|
73
|
+
* well, with a comment telling the caller to pass the document "here" — two
|
|
74
|
+
* channels, two sentences, and an implementation forced to guess. Nothing on
|
|
75
|
+
* this type read it but the write: it has no `check` and no `validate` that
|
|
76
|
+
* compiles a source the server does not hold yet, which is the one job a
|
|
77
|
+
* `source` on a config still has.
|
|
58
78
|
*/
|
|
59
|
-
source?: string;
|
|
60
79
|
description: string;
|
|
61
80
|
transportType?: 'workbench' | 'customizing';
|
|
62
81
|
targetSystem?: string;
|
|
@@ -260,17 +279,15 @@ export interface IAdtTransportObjectActions<TRemoved, TAdded, TTask, TActionLog,
|
|
|
260
279
|
* `Unclassified`. CTS assigns the type when the first object lands; a
|
|
261
280
|
* caller who wants it sooner asks for it here.
|
|
262
281
|
*
|
|
263
|
-
* The vocabulary is the server's
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
* ("You can only change the type of tasks in workbench requests") and
|
|
268
|
-
* `'K'`/`'W'` are REQUEST types, answered as unknown.
|
|
282
|
+
* The vocabulary is the server's and it is small — {@link ADT_TASK_TYPE}
|
|
283
|
+
* carries it, along with the values that were refused and what they said.
|
|
284
|
+
* The parameter is that union rather than `string` so a value SAP does not
|
|
285
|
+
* accept does not compile.
|
|
269
286
|
*
|
|
270
287
|
* Addressed at the **task**, like `removeObject`: that is where the
|
|
271
288
|
* listing offers the action. And like every action here, the answer says
|
|
272
289
|
* the document was understood — a read is what shows the type.
|
|
273
290
|
*/
|
|
274
|
-
changeTaskType<E extends IAdtError = IAdtError>(taskNumber: string, type:
|
|
291
|
+
changeTaskType<E extends IAdtError = IAdtError>(taskNumber: string, type: AdtTaskType, options?: IAdtOperationOptions<E>): Promise<IAdtResponse<TTaskType, E>>;
|
|
275
292
|
}
|
|
276
293
|
//# sourceMappingURL=IAdtTransport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtTransport.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTransport.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;;;;;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;
|
|
1
|
+
{"version":3,"file":"IAdtTransport.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtTransport.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,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e,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACxC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACzC,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IACtC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAC5C,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,WAAW,EACjB,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;CACxC"}
|
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
* Transport ADT operation parameter interfaces (snake_case, low-level)
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = void 0;
|
|
6
|
+
exports.ADT_TASK_TYPE = exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = void 0;
|
|
7
7
|
/** Where saved transport searches live. Named so an error message can quote it. */
|
|
8
8
|
exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = '/sap/bc/adt/cts/transportrequests/searchconfiguration/configurations';
|
|
9
|
+
/**
|
|
10
|
+
* The task types CTS accepts, keyed by what each one means.
|
|
11
|
+
*
|
|
12
|
+
* **The vocabulary is the server's**, measured against BTP ABAP on
|
|
13
|
+
* 2026-09-23 by sending each value to `changetasktype` and reading the task
|
|
14
|
+
* back. It is a constant here rather than a literal at each call site because
|
|
15
|
+
* SAP chose the letters; a consumer writing `'S'` is repeating a measurement
|
|
16
|
+
* they did not make.
|
|
17
|
+
*
|
|
18
|
+
* The three below are the ones that work. Two more were tried and refused,
|
|
19
|
+
* and the refusals are worth keeping: `'Q'` is a customizing type — *"You can
|
|
20
|
+
* only change the type of tasks in workbench requests"* — and `'K'`/`'W'` are
|
|
21
|
+
* REQUEST types, answered as unknown. The message names the value when one
|
|
22
|
+
* arrives (`… type K is unknown`), which is how a wrong value was told apart
|
|
23
|
+
* from an empty one.
|
|
24
|
+
*/
|
|
25
|
+
exports.ADT_TASK_TYPE = {
|
|
26
|
+
/** `S` — the type a task needs before an object can be put in it by hand. */
|
|
27
|
+
developmentCorrection: 'S',
|
|
28
|
+
/** `R` — a repair of an object this system does not own. */
|
|
29
|
+
repair: 'R',
|
|
30
|
+
/** `X` — back to the state every task is created in. */
|
|
31
|
+
unclassified: 'X',
|
|
32
|
+
};
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import type { IAbapRequestOptions } from './IAbapRequestOptions';
|
|
2
1
|
/**
|
|
3
2
|
* Minimal response type for ADT requests.
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export interface IAdtWireResponse<T = any, D = any> {
|
|
19
|
-
data: T;
|
|
20
|
-
status: number;
|
|
21
|
-
statusText: string;
|
|
4
|
+
import type { IHttpHeaderValue, IHttpWireResponse } from '@mcp-abap-adt/interfaces-network';
|
|
5
|
+
import type { IAbapRequestOptions } from './IAbapRequestOptions';
|
|
6
|
+
export type IAdtHeaderValue = IHttpHeaderValue;
|
|
7
|
+
export interface IAdtWireResponse<T = any, D = any> extends Omit<IHttpWireResponse<T, D>, 'headers'> {
|
|
8
|
+
/**
|
|
9
|
+
* **The generic shape, narrowed by the headers ADT actually sends.** The
|
|
10
|
+
* frame itself — `data`, `status`, `statusText`, `config`, `request` — is
|
|
11
|
+
* `IHttpWireResponse` in `@mcp-abap-adt/interfaces-network`, because nothing
|
|
12
|
+
* about it is ABAP. What stays here is this list: `sap-adt-location` and the
|
|
13
|
+
* two spellings of `content-location` are where ADT puts the URI of what it
|
|
14
|
+
* just created, and a caller reads them by name.
|
|
15
|
+
*/
|
|
22
16
|
headers: Record<string, IAdtHeaderValue> & {
|
|
23
17
|
location?: string;
|
|
24
18
|
Location?: string;
|
|
@@ -26,8 +20,6 @@ export interface IAdtWireResponse<T = any, D = any> {
|
|
|
26
20
|
'Content-Location'?: IAdtHeaderValue;
|
|
27
21
|
'sap-adt-location'?: IAdtHeaderValue;
|
|
28
22
|
};
|
|
29
|
-
config?: D;
|
|
30
|
-
request?: unknown;
|
|
31
23
|
}
|
|
32
24
|
/**
|
|
33
25
|
* ABAP Connection interface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/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,GAAG,EAAE,CAAC,GAAG,GAAG,CAChD,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;;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,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACpC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ export type { IStructureConfig, IStructureField, IStructureInclude, } from './ad
|
|
|
43
43
|
export type { ITableConfig } from './adt/IAdtTable';
|
|
44
44
|
export type { ITableTypeConfig, TableTypeAccessType, TableTypePrimaryKeyDefinition, TableTypePrimaryKeyKind, TableTypeRowKind, } from './adt/IAdtTableType';
|
|
45
45
|
export type { ITransformationConfig, TransformationType, } from './adt/IAdtTransformation';
|
|
46
|
-
export type { IAbapObjectEntry, IAdtRequest, IAdtTransportObjectActions, IListTransportsOptions, IListTransportsParams, ITransportConfig, ITransportSearchConfiguration, } from './adt/IAdtTransport';
|
|
47
|
-
export { TRANSPORT_SEARCH_CONFIGURATIONS_URL } from './adt/IAdtTransport';
|
|
46
|
+
export type { AdtTaskType, IAbapObjectEntry, IAdtRequest, IAdtTransportObjectActions, IListTransportsOptions, IListTransportsParams, ITransportConfig, ITransportSearchConfiguration, } from './adt/IAdtTransport';
|
|
47
|
+
export { ADT_TASK_TYPE, TRANSPORT_SEARCH_CONFIGURATIONS_URL, } from './adt/IAdtTransport';
|
|
48
48
|
export type { ICdsTestDoubleCheckable, ICdsUnitTestConfig, IClassUnitTestDefinition, IClassUnitTestRunOptions, ITestRunInformation, IUnitTestConfig, IUnitTestDuration, IUnitTestResultOptions, IUnitTestRiskLevel, IUnitTestScope, } from './adt/IAdtUnitTest';
|
|
49
49
|
export type { IAdtDataPreview, IAdtDiscovery, IAdtGroupLifecycle, IAdtInformationSystem, IAdtObjectAccess, IAdtObjectSearch, IAdtRepositoryStructure, IAdtTypeCatalogue, IAdtVirtualFolders, IAdtWhereUsed, IGetNodeContentsOptions, } from './adt/IAdtUtilities';
|
|
50
50
|
export type { AssertionErrorCode } from './auth/AssertionErrorCodes';
|
|
@@ -57,12 +57,8 @@ export type { CallbackServerFactory, ICallbackServerHandle, ICallbackServerOptio
|
|
|
57
57
|
export type { ICertificateMaterialLoader } from './auth/ICertificateMaterialLoader';
|
|
58
58
|
export type { IConfig } from './auth/IConfig';
|
|
59
59
|
export type { IConnectionConfig } from './auth/IConnectionConfig';
|
|
60
|
-
export type { CalmService } from './connection/CalmService';
|
|
61
|
-
export { CALM_SERVICES } from './connection/CalmService';
|
|
62
60
|
export type { IAbapConnection, IAdtWireResponse, } from './connection/IAbapConnection';
|
|
63
61
|
export type { IAbapRequestOptions } from './connection/IAbapRequestOptions';
|
|
64
|
-
export type { ICalmConnection, ICalmResponse, } from './connection/ICalmConnection';
|
|
65
|
-
export type { ICalmRequestOptions } from './connection/ICalmRequestOptions';
|
|
66
62
|
export type { AdtSessionErrorCode, ICriticalSection, IDeferredResponseConnection, IRequestProfiling, ISessionLifecycleAware, } from './connection/IConnectionCapabilities';
|
|
67
63
|
export { ADT_SESSION_ERROR } from './connection/IConnectionCapabilities';
|
|
68
64
|
export type { IClassExecuteWithProfilerOptions, IClassExecuteWithProfilingOptions, IClassExecuteWithProfilingResult, IClassExecutionTarget, IClassExecutor, IProgramExecuteWithProfilerOptions, IProgramExecuteWithProfilingOptions, IProgramExecuteWithProfilingResult, IProgramExecutionTarget, IProgramExecutor, } from './execution/IAdtExecutors';
|
|
@@ -71,7 +67,7 @@ export type { ITraceScheduling } from './execution/ITraceScheduling';
|
|
|
71
67
|
export type { IFeedRepository } from './feeds/IFeedRepository';
|
|
72
68
|
export type { IAbapTimestamp, IFeedQueryOptions } from './feeds/types';
|
|
73
69
|
export type { AuthType } from './Headers';
|
|
74
|
-
export { AUTH_TYPE_BASIC, AUTH_TYPE_JWT, AUTH_TYPE_XSUAA, AUTH_TYPES,
|
|
70
|
+
export { AUTH_TYPE_BASIC, AUTH_TYPE_JWT, AUTH_TYPE_XSUAA, AUTH_TYPES, } from './Headers';
|
|
75
71
|
export type { IApplicationLog, IGetApplicationLogObjectOptions, IGetApplicationLogSourceOptions, } from './runtime/IApplicationLog';
|
|
76
72
|
export type { IAtcLog, IGetCheckFailureLogsOptions } from './runtime/IAtcLog';
|
|
77
73
|
export type { AtcObjectType, IAtcFindings, IAtcObjectRef, IAtcRunOptions, IAtcRunStatusReadable, IAtcRunTarget, } from './runtime/IAtcRun';
|
|
@@ -89,12 +85,15 @@ export type { ICreateAndGenerateServiceBindingParams, ICreateAndGenerateServiceB
|
|
|
89
85
|
export type { IServiceKeyStore } from './serviceKey/IServiceKeyStore';
|
|
90
86
|
export type { ISessionStore } from './session/ISessionStore';
|
|
91
87
|
export type { IReadOptions } from './shared/IReadOptions';
|
|
88
|
+
export type { ISessionState } from './store/ISessionState';
|
|
89
|
+
export type { ISessionStorage } from './store/ISessionStorage';
|
|
92
90
|
export type { StoreErrorCode } from './store/StoreErrorCodes';
|
|
93
91
|
export { STORE_ERROR_CODES } from './store/StoreErrorCodes';
|
|
94
92
|
export type { OAuth2GrantType } from './token/AuthType';
|
|
95
93
|
export { AUTH_TYPE_AUTHORIZATION_CODE, AUTH_TYPE_AUTHORIZATION_CODE_PKCE, AUTH_TYPE_CLIENT_CREDENTIALS, AUTH_TYPE_CLIENT_X509, AUTH_TYPE_PASSWORD, AUTH_TYPE_SAML2_BEARER, AUTH_TYPE_USER_TOKEN, } from './token/AuthType';
|
|
96
94
|
export type { ITokenProvider } from './token/ITokenProvider';
|
|
97
95
|
export type { ITokenProviderOptions } from './token/ITokenProviderOptions';
|
|
96
|
+
export type { ITokenProviderResult } from './token/ITokenProviderResult';
|
|
98
97
|
export type { ITokenRefresher } from './token/ITokenRefresher';
|
|
99
98
|
export type { ITokenResult } from './token/ITokenResult';
|
|
100
99
|
export type { TokenProviderErrorCode } from './token/TokenProviderErrorCodes';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EACV,+BAA+B,EAC/B,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,YAAY,EACV,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACtF,YAAY,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,YAAY,EACZ,uBAAuB,EACvB,k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,CAAC;AACpF,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ADT contracts, the ABAP and Cloud ALM connections, and SAP/BTP configuration and authentication contracts.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AuthMethodPriority = exports.TOKEN_PROVIDER_ERROR_CODES = exports.AUTH_TYPE_USER_TOKEN = exports.AUTH_TYPE_SAML2_BEARER = exports.AUTH_TYPE_PASSWORD = exports.AUTH_TYPE_CLIENT_X509 = exports.AUTH_TYPE_CLIENT_CREDENTIALS = exports.AUTH_TYPE_AUTHORIZATION_CODE_PKCE = exports.AUTH_TYPE_AUTHORIZATION_CODE = exports.STORE_ERROR_CODES = exports.
|
|
8
|
+
exports.AuthMethodPriority = exports.TOKEN_PROVIDER_ERROR_CODES = exports.AUTH_TYPE_USER_TOKEN = exports.AUTH_TYPE_SAML2_BEARER = exports.AUTH_TYPE_PASSWORD = exports.AUTH_TYPE_CLIENT_X509 = exports.AUTH_TYPE_CLIENT_CREDENTIALS = exports.AUTH_TYPE_AUTHORIZATION_CODE_PKCE = exports.AUTH_TYPE_AUTHORIZATION_CODE = exports.STORE_ERROR_CODES = exports.AUTH_TYPES = exports.AUTH_TYPE_XSUAA = exports.AUTH_TYPE_JWT = exports.AUTH_TYPE_BASIC = exports.ADT_SESSION_ERROR = exports.ASSERTION_ERROR_CODES = exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = exports.ADT_TASK_TYPE = exports.SERVICE_BINDING_VARIANT_MAP = exports.ADT_NO_FAILURE = exports.AdtObjectErrorCodes = void 0;
|
|
9
9
|
var IAdtObject_1 = require("./adt/IAdtObject");
|
|
10
10
|
Object.defineProperty(exports, "AdtObjectErrorCodes", { enumerable: true, get: function () { return IAdtObject_1.AdtObjectErrorCodes; } });
|
|
11
11
|
var IAdtResponse_1 = require("./adt/IAdtResponse");
|
|
@@ -13,11 +13,10 @@ Object.defineProperty(exports, "ADT_NO_FAILURE", { enumerable: true, get: functi
|
|
|
13
13
|
var IAdtServiceBinding_1 = require("./adt/IAdtServiceBinding");
|
|
14
14
|
Object.defineProperty(exports, "SERVICE_BINDING_VARIANT_MAP", { enumerable: true, get: function () { return IAdtServiceBinding_1.SERVICE_BINDING_VARIANT_MAP; } });
|
|
15
15
|
var IAdtTransport_1 = require("./adt/IAdtTransport");
|
|
16
|
+
Object.defineProperty(exports, "ADT_TASK_TYPE", { enumerable: true, get: function () { return IAdtTransport_1.ADT_TASK_TYPE; } });
|
|
16
17
|
Object.defineProperty(exports, "TRANSPORT_SEARCH_CONFIGURATIONS_URL", { enumerable: true, get: function () { return IAdtTransport_1.TRANSPORT_SEARCH_CONFIGURATIONS_URL; } });
|
|
17
18
|
var AssertionErrorCodes_1 = require("./auth/AssertionErrorCodes");
|
|
18
19
|
Object.defineProperty(exports, "ASSERTION_ERROR_CODES", { enumerable: true, get: function () { return AssertionErrorCodes_1.ASSERTION_ERROR_CODES; } });
|
|
19
|
-
var CalmService_1 = require("./connection/CalmService");
|
|
20
|
-
Object.defineProperty(exports, "CALM_SERVICES", { enumerable: true, get: function () { return CalmService_1.CALM_SERVICES; } });
|
|
21
20
|
var IConnectionCapabilities_1 = require("./connection/IConnectionCapabilities");
|
|
22
21
|
Object.defineProperty(exports, "ADT_SESSION_ERROR", { enumerable: true, get: function () { return IConnectionCapabilities_1.ADT_SESSION_ERROR; } });
|
|
23
22
|
var Headers_1 = require("./Headers");
|
|
@@ -25,24 +24,6 @@ Object.defineProperty(exports, "AUTH_TYPE_BASIC", { enumerable: true, get: funct
|
|
|
25
24
|
Object.defineProperty(exports, "AUTH_TYPE_JWT", { enumerable: true, get: function () { return Headers_1.AUTH_TYPE_JWT; } });
|
|
26
25
|
Object.defineProperty(exports, "AUTH_TYPE_XSUAA", { enumerable: true, get: function () { return Headers_1.AUTH_TYPE_XSUAA; } });
|
|
27
26
|
Object.defineProperty(exports, "AUTH_TYPES", { enumerable: true, get: function () { return Headers_1.AUTH_TYPES; } });
|
|
28
|
-
Object.defineProperty(exports, "HEADER_BTP_DESTINATION", { enumerable: true, get: function () { return Headers_1.HEADER_BTP_DESTINATION; } });
|
|
29
|
-
Object.defineProperty(exports, "HEADER_MCP_DESTINATION", { enumerable: true, get: function () { return Headers_1.HEADER_MCP_DESTINATION; } });
|
|
30
|
-
Object.defineProperty(exports, "HEADER_MCP_URL", { enumerable: true, get: function () { return Headers_1.HEADER_MCP_URL; } });
|
|
31
|
-
Object.defineProperty(exports, "HEADER_SAP_AUTH_TYPE", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_AUTH_TYPE; } });
|
|
32
|
-
Object.defineProperty(exports, "HEADER_SAP_CLIENT", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_CLIENT; } });
|
|
33
|
-
Object.defineProperty(exports, "HEADER_SAP_DESTINATION", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_DESTINATION; } });
|
|
34
|
-
Object.defineProperty(exports, "HEADER_SAP_DESTINATION_SERVICE", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_DESTINATION_SERVICE; } });
|
|
35
|
-
Object.defineProperty(exports, "HEADER_SAP_JWT_TOKEN", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_JWT_TOKEN; } });
|
|
36
|
-
Object.defineProperty(exports, "HEADER_SAP_LOGIN", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_LOGIN; } });
|
|
37
|
-
Object.defineProperty(exports, "HEADER_SAP_PASSWORD", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_PASSWORD; } });
|
|
38
|
-
Object.defineProperty(exports, "HEADER_SAP_REFRESH_TOKEN", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_REFRESH_TOKEN; } });
|
|
39
|
-
Object.defineProperty(exports, "HEADER_SAP_UAA_CLIENT_ID", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_UAA_CLIENT_ID; } });
|
|
40
|
-
Object.defineProperty(exports, "HEADER_SAP_UAA_CLIENT_SECRET", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_UAA_CLIENT_SECRET; } });
|
|
41
|
-
Object.defineProperty(exports, "HEADER_SAP_UAA_URL", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_UAA_URL; } });
|
|
42
|
-
Object.defineProperty(exports, "HEADER_SAP_URL", { enumerable: true, get: function () { return Headers_1.HEADER_SAP_URL; } });
|
|
43
|
-
Object.defineProperty(exports, "HEADER_UAA_CLIENT_ID", { enumerable: true, get: function () { return Headers_1.HEADER_UAA_CLIENT_ID; } });
|
|
44
|
-
Object.defineProperty(exports, "HEADER_UAA_CLIENT_SECRET", { enumerable: true, get: function () { return Headers_1.HEADER_UAA_CLIENT_SECRET; } });
|
|
45
|
-
Object.defineProperty(exports, "HEADER_UAA_URL", { enumerable: true, get: function () { return Headers_1.HEADER_UAA_URL; } });
|
|
46
27
|
var StoreErrorCodes_1 = require("./store/StoreErrorCodes");
|
|
47
28
|
Object.defineProperty(exports, "STORE_ERROR_CODES", { enumerable: true, get: function () { return StoreErrorCodes_1.STORE_ERROR_CODES; } });
|
|
48
29
|
var AuthType_1 = require("./token/AuthType");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session state interface for stateful connections
|
|
3
|
+
* Contains cookies and CSRF token that need to be preserved across requests
|
|
4
|
+
*/
|
|
5
|
+
/** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
|
|
6
|
+
export interface ISessionState {
|
|
7
|
+
cookies: string | null;
|
|
8
|
+
csrfToken: string | null;
|
|
9
|
+
cookieStore: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ISessionState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISessionState.d.ts","sourceRoot":"","sources":["../../src/store/ISessionState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for storing and retrieving session state
|
|
3
|
+
* Allows connection layer to persist session state (cookies, CSRF token) externally
|
|
4
|
+
*/
|
|
5
|
+
import type { ISessionState } from './ISessionState';
|
|
6
|
+
/** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
|
|
7
|
+
export interface ISessionStorage {
|
|
8
|
+
/**
|
|
9
|
+
* Save session state for a given session ID
|
|
10
|
+
* @param sessionId - Unique session identifier
|
|
11
|
+
* @param state - Session state to save
|
|
12
|
+
*/
|
|
13
|
+
save(sessionId: string, state: ISessionState): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Load session state for a given session ID
|
|
16
|
+
* @param sessionId - Unique session identifier
|
|
17
|
+
* @returns Session state or null if not found
|
|
18
|
+
*/
|
|
19
|
+
load(sessionId: string): Promise<ISessionState | null>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete session state for a given session ID
|
|
22
|
+
* @param sessionId - Unique session identifier
|
|
23
|
+
*/
|
|
24
|
+
delete(sessionId: string): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=ISessionStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISessionStorage.d.ts","sourceRoot":"","sources":["../../src/store/ISessionStorage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,4FAA4F;AAC5F,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;;OAIG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAEvD;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result from token provider
|
|
3
|
+
*/
|
|
4
|
+
import type { IConnectionConfig } from '../auth/IConnectionConfig';
|
|
5
|
+
/** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
|
|
6
|
+
export interface ITokenProviderResult {
|
|
7
|
+
/** Connection configuration with authorization token */
|
|
8
|
+
connectionConfig: IConnectionConfig;
|
|
9
|
+
/** Refresh token (optional, for BTP/ABAP) */
|
|
10
|
+
refreshToken?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ITokenProviderResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITokenProviderResult.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/interfaces-adt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "ADT contracts, the ABAP and Cloud ALM connections, and SAP/BTP configuration and authentication contracts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@mcp-abap-adt/interfaces-auth": "^1.0.0",
|
|
40
|
+
"@mcp-abap-adt/interfaces-network": "^1.1.0",
|
|
40
41
|
"@mcp-abap-adt/interfaces-utils": "^1.0.0"
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalmService.d.ts","sourceRoot":"","sources":["../../src/connection/CalmService.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kIAUhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CALM_SERVICES = void 0;
|
|
4
|
-
exports.CALM_SERVICES = [
|
|
5
|
-
'features',
|
|
6
|
-
'documents',
|
|
7
|
-
'tasks',
|
|
8
|
-
'projects',
|
|
9
|
-
'testManagement',
|
|
10
|
-
'hierarchy',
|
|
11
|
-
'analytics',
|
|
12
|
-
'processMonitoring',
|
|
13
|
-
'logs',
|
|
14
|
-
];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { CalmService } from './CalmService';
|
|
2
|
-
import type { IAdtWireResponse } from './IAbapConnection';
|
|
3
|
-
import type { ICalmRequestOptions } from './ICalmRequestOptions';
|
|
4
|
-
export type ICalmResponse<T = unknown, D = unknown> = IAdtWireResponse<T, D>;
|
|
5
|
-
/**
|
|
6
|
-
* Minimal connection interface for SAP Cloud ALM HTTP APIs.
|
|
7
|
-
*
|
|
8
|
-
* Implementations encapsulate auth, token refresh, service route resolution,
|
|
9
|
-
* and request execution so resource clients depend on one narrow contract.
|
|
10
|
-
*/
|
|
11
|
-
export interface ICalmConnection {
|
|
12
|
-
/**
|
|
13
|
-
* Initialize the connection and prepare any internal auth state.
|
|
14
|
-
*/
|
|
15
|
-
connect(): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Get the tenant-level base URL.
|
|
18
|
-
*/
|
|
19
|
-
getBaseUrl(): Promise<string>;
|
|
20
|
-
/**
|
|
21
|
-
* Resolve the effective base URL for a concrete Cloud ALM service.
|
|
22
|
-
*/
|
|
23
|
-
getServiceUrl(service: CalmService): Promise<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Execute a request against Cloud ALM.
|
|
26
|
-
*/
|
|
27
|
-
makeRequest<T = unknown, D = unknown>(options: ICalmRequestOptions): Promise<ICalmResponse<T, D>>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=ICalmConnection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICalmConnection.d.ts","sourceRoot":"","sources":["../../src/connection/ICalmConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAErD;;OAEG;IACH,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAClC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACjC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CalmService } from './CalmService';
|
|
2
|
-
export interface ICalmRequestOptions {
|
|
3
|
-
url: string;
|
|
4
|
-
method: string;
|
|
5
|
-
timeout?: number;
|
|
6
|
-
service?: CalmService;
|
|
7
|
-
data?: unknown;
|
|
8
|
-
params?: unknown;
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=ICalmRequestOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICalmRequestOptions.d.ts","sourceRoot":"","sources":["../../src/connection/ICalmRequestOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
|
|
File without changes
|
|
File without changes
|