@backstage/backend-plugin-api 0.6.10-next.0 → 0.6.10-next.2
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 +24 -0
- package/README.md +1 -1
- package/alpha/package.json +1 -1
- package/dist/index.d.ts +33 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @backstage/backend-plugin-api
|
|
2
2
|
|
|
3
|
+
## 0.6.10-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9aac2b0: Use `--cwd` as the first `yarn` argument
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-tasks@0.5.15-next.2
|
|
10
|
+
- @backstage/plugin-auth-node@0.4.4-next.2
|
|
11
|
+
- @backstage/config@1.1.1
|
|
12
|
+
- @backstage/types@1.1.1
|
|
13
|
+
- @backstage/plugin-permission-common@0.7.12
|
|
14
|
+
|
|
15
|
+
## 0.6.10-next.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 1f020fe: Support `token` in `readTree`, `readUrl` and `search`
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/backend-tasks@0.5.15-next.1
|
|
22
|
+
- @backstage/config@1.1.1
|
|
23
|
+
- @backstage/types@1.1.1
|
|
24
|
+
- @backstage/plugin-auth-node@0.4.4-next.1
|
|
25
|
+
- @backstage/plugin-permission-common@0.7.12
|
|
26
|
+
|
|
3
27
|
## 0.6.10-next.0
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Add the library to your backend plugin or module package:
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
# From your Backstage root directory
|
|
11
|
-
yarn
|
|
11
|
+
yarn --cwd plugins/<plugin>-backend add @backstage/backend-plugin-api
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Documentation
|
package/alpha/package.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,17 @@ type ReadUrlOptions = {
|
|
|
83
83
|
* Not all reader implementations may take this field into account.
|
|
84
84
|
*/
|
|
85
85
|
signal?: AbortSignal;
|
|
86
|
+
/**
|
|
87
|
+
* An optional token to use for authentication when reading the resources.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
*
|
|
91
|
+
* By default all URL Readers will use the integrations config which is supplied
|
|
92
|
+
* when creating the Readers. Sometimes it might be desireable to use the already
|
|
93
|
+
* created URLReaders but with a different token, maybe that's supplied by the user
|
|
94
|
+
* at runtime.
|
|
95
|
+
*/
|
|
96
|
+
token?: string;
|
|
86
97
|
};
|
|
87
98
|
/**
|
|
88
99
|
* A response object for {@link UrlReaderService.readUrl} operations.
|
|
@@ -165,6 +176,17 @@ type ReadTreeOptions = {
|
|
|
165
176
|
* Not all reader implementations may take this field into account.
|
|
166
177
|
*/
|
|
167
178
|
signal?: AbortSignal;
|
|
179
|
+
/**
|
|
180
|
+
* An optional token to use for authentication when reading the resources.
|
|
181
|
+
*
|
|
182
|
+
* @remarks
|
|
183
|
+
*
|
|
184
|
+
* By default all URL Readers will use the integrations config which is supplied
|
|
185
|
+
* when creating the Readers. Sometimes it might be desireable to use the already
|
|
186
|
+
* created URLReaders but with a different token, maybe that's supplied by the user
|
|
187
|
+
* at runtime.
|
|
188
|
+
*/
|
|
189
|
+
token?: string;
|
|
168
190
|
};
|
|
169
191
|
/**
|
|
170
192
|
* Options that control {@link ReadTreeResponse.dir} execution.
|
|
@@ -257,6 +279,17 @@ type SearchOptions = {
|
|
|
257
279
|
* Not all reader implementations may take this field into account.
|
|
258
280
|
*/
|
|
259
281
|
signal?: AbortSignal;
|
|
282
|
+
/**
|
|
283
|
+
* An optional token to use for authentication when reading the resources.
|
|
284
|
+
*
|
|
285
|
+
* @remarks
|
|
286
|
+
*
|
|
287
|
+
* By default all URL Readers will use the integrations config which is supplied
|
|
288
|
+
* when creating the Readers. Sometimes it might be desireable to use the already
|
|
289
|
+
* created URLReaders but with a different token, maybe that's supplied by the user
|
|
290
|
+
* at runtime.
|
|
291
|
+
*/
|
|
292
|
+
token?: string;
|
|
260
293
|
};
|
|
261
294
|
/**
|
|
262
295
|
* The output of a search operation.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-plugin-api",
|
|
3
3
|
"description": "Core API used by Backstage backend plugins",
|
|
4
|
-
"version": "0.6.10-next.
|
|
4
|
+
"version": "0.6.10-next.2",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"start": "backstage-cli package start"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-tasks": "^0.5.15-next.
|
|
46
|
+
"@backstage/backend-tasks": "^0.5.15-next.2",
|
|
47
47
|
"@backstage/config": "^1.1.1",
|
|
48
|
-
"@backstage/plugin-auth-node": "^0.4.4-next.
|
|
48
|
+
"@backstage/plugin-auth-node": "^0.4.4-next.2",
|
|
49
49
|
"@backstage/plugin-permission-common": "^0.7.12",
|
|
50
50
|
"@backstage/types": "^1.1.1",
|
|
51
51
|
"@types/express": "^4.17.6",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"knex": "^3.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@backstage/cli": "^0.25.2-next.
|
|
56
|
+
"@backstage/cli": "^0.25.2-next.2"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"dist",
|