@backstage/plugin-catalog-common 1.0.12 → 1.0.13-next.1
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 +18 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-common
|
|
2
2
|
|
|
3
|
+
## 1.0.13-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/catalog-model@1.3.0-next.0
|
|
9
|
+
- @backstage/plugin-permission-common@0.7.5-next.0
|
|
10
|
+
- @backstage/plugin-search-common@1.2.3-next.0
|
|
11
|
+
|
|
12
|
+
## 1.0.13-next.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @backstage/plugin-permission-common@0.7.5-next.0
|
|
18
|
+
- @backstage/catalog-model@1.2.1
|
|
19
|
+
- @backstage/plugin-search-common@1.2.3-next.0
|
|
20
|
+
|
|
3
21
|
## 1.0.12
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const RESOURCE_TYPE_CATALOG_ENTITY = "catalog-entity";
|
|
|
13
13
|
* {@link @backstage/plugin-permission-common#ResourcePermission}s.
|
|
14
14
|
* @alpha
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
type CatalogEntityPermission = ResourcePermission<typeof RESOURCE_TYPE_CATALOG_ENTITY>;
|
|
17
17
|
/**
|
|
18
18
|
* This permission is used to authorize actions that involve reading one or more
|
|
19
19
|
* entities from the catalog.
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ interface CatalogEntityDocument extends IndexableDocument {
|
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
type LocationSpec = {
|
|
31
31
|
type: string;
|
|
32
32
|
target: string;
|
|
33
33
|
presence?: 'optional' | 'required';
|
|
@@ -37,17 +37,17 @@ declare type LocationSpec = {
|
|
|
37
37
|
* Makes all keys of an entire hierarchy optional.
|
|
38
38
|
* @ignore
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
type RecursivePartial<T> = {
|
|
41
41
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/** @public */
|
|
45
|
-
|
|
45
|
+
type AnalyzeLocationRequest = {
|
|
46
46
|
location: LocationSpec;
|
|
47
47
|
catalogFilename?: string;
|
|
48
48
|
};
|
|
49
49
|
/** @public */
|
|
50
|
-
|
|
50
|
+
type AnalyzeLocationResponse = {
|
|
51
51
|
existingEntityFiles: AnalyzeLocationExistingEntity[];
|
|
52
52
|
generateEntities: AnalyzeLocationGenerateEntity[];
|
|
53
53
|
};
|
|
@@ -58,7 +58,7 @@ declare type AnalyzeLocationResponse = {
|
|
|
58
58
|
* already
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
type AnalyzeLocationExistingEntity = {
|
|
62
62
|
location: LocationSpec;
|
|
63
63
|
isRegistered: boolean;
|
|
64
64
|
entity: Entity;
|
|
@@ -71,12 +71,12 @@ declare type AnalyzeLocationExistingEntity = {
|
|
|
71
71
|
* for overriding/completing the info.
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
type AnalyzeLocationGenerateEntity = {
|
|
75
75
|
entity: RecursivePartial<Entity>;
|
|
76
76
|
fields: AnalyzeLocationEntityField[];
|
|
77
77
|
};
|
|
78
78
|
/** @public */
|
|
79
|
-
|
|
79
|
+
type AnalyzeLocationEntityField = {
|
|
80
80
|
/**
|
|
81
81
|
* e.g. "spec.owner"? The frontend needs to know how to "inject" the field into the
|
|
82
82
|
* entity again if the user wants to change it
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-common",
|
|
3
3
|
"description": "Common functionalities for the catalog plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13-next.1",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"clean": "backstage-cli package clean"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@backstage/catalog-model": "^1.
|
|
48
|
-
"@backstage/plugin-permission-common": "^0.7.
|
|
49
|
-
"@backstage/plugin-search-common": "^1.2.
|
|
47
|
+
"@backstage/catalog-model": "^1.3.0-next.0",
|
|
48
|
+
"@backstage/plugin-permission-common": "^0.7.5-next.0",
|
|
49
|
+
"@backstage/plugin-search-common": "^1.2.3-next.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@backstage/cli": "^0.22.
|
|
52
|
+
"@backstage/cli": "^0.22.6-next.3"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist",
|