@backstage-community/plugin-ocm-common 3.6.1 → 3.6.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  ## @backstage-community/plugin-ocm-common [3.3.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.2.0...@backstage-community/plugin-ocm-common@3.3.0) (2024-07-26)
2
2
 
3
+ ## 3.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 40f3226: Clean up api report warnings and remove unnecessary files
8
+
3
9
  ## 3.6.1
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;;;AAmBO,MAAM,qBAAwB,GAAA,8BAAA;AAC9B,MAAM,sBAAyB,GAAA;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\n/**\n * @public\n */\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\n\n/**\n * @public\n */\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;;;AAsBO,MAAM,qBAAwB,GAAA,8BAAA;AAK9B,MAAM,sBAAyB,GAAA;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,21 +1,36 @@
1
1
  import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
2
2
 
3
+ /**
4
+ * @public
5
+ */
3
6
  type ClusterStatus = {
4
7
  available: boolean;
5
8
  reason?: string;
6
9
  };
10
+ /**
11
+ * @public
12
+ */
7
13
  type ClusterBase = {
8
14
  name: string;
9
15
  };
16
+ /**
17
+ * @public
18
+ */
10
19
  type ClusterUpdate = {
11
20
  available?: boolean;
12
21
  version?: string;
13
22
  url?: string;
14
23
  };
24
+ /**
25
+ * @public
26
+ */
15
27
  type ClusterNodesStatus = {
16
28
  status: string;
17
29
  type: string;
18
30
  };
31
+ /**
32
+ * @public
33
+ */
19
34
  type ClusterDetails = {
20
35
  consoleUrl?: string;
21
36
  kubernetesVersion?: string;
@@ -37,7 +52,13 @@ type ClusterDetails = {
37
52
  update?: ClusterUpdate;
38
53
  status: ClusterStatus;
39
54
  };
55
+ /**
56
+ * @public
57
+ */
40
58
  type Cluster = ClusterBase & ClusterDetails;
59
+ /**
60
+ * @public
61
+ */
41
62
  type ClusterOverview = ClusterBase & {
42
63
  status: ClusterStatus;
43
64
  update: ClusterUpdate;
@@ -46,11 +67,26 @@ type ClusterOverview = ClusterBase & {
46
67
  nodes: Array<ClusterNodesStatus>;
47
68
  };
48
69
 
70
+ /**
71
+ * @public
72
+ */
49
73
  declare const ocmClusterReadPermission: _backstage_plugin_permission_common.BasicPermission;
74
+ /**
75
+ * @public
76
+ */
50
77
  declare const ocmEntityReadPermission: _backstage_plugin_permission_common.BasicPermission;
78
+ /**
79
+ * @public
80
+ */
51
81
  declare const ocmEntityPermissions: _backstage_plugin_permission_common.BasicPermission[];
52
82
 
83
+ /**
84
+ * @public
85
+ */
53
86
  declare const ANNOTATION_CLUSTER_ID = "janus-idp.io/ocm-cluster-id";
87
+ /**
88
+ * @public
89
+ */
54
90
  declare const ANNOTATION_PROVIDER_ID = "janus-idp.io/ocm-provider-id";
55
91
 
56
92
  export { ANNOTATION_CLUSTER_ID, ANNOTATION_PROVIDER_ID, type Cluster, type ClusterBase, type ClusterDetails, type ClusterNodesStatus, type ClusterOverview, type ClusterStatus, type ClusterUpdate, ocmClusterReadPermission, ocmEntityPermissions, ocmEntityReadPermission };
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;AAmBO,MAAM,qBAAwB,GAAA,8BAAA;AAC9B,MAAM,sBAAyB,GAAA;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\n/**\n * @public\n */\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\n\n/**\n * @public\n */\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;AAsBO,MAAM,qBAAwB,GAAA,8BAAA;AAK9B,MAAM,sBAAyB,GAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAiBO,MAAM,2BAA2BA,uCAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,0BAA0BA,uCAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;;;"}
1
+ {"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * @public\n */\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * @public\n */\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAoBO,MAAM,2BAA2BA,uCAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAKM,MAAM,0BAA0BA,uCAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAKM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":[],"mappings":";;AAiBO,MAAM,2BAA2B,gBAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,0BAA0B,gBAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;"}
1
+ {"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * @public\n */\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * @public\n */\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":[],"mappings":";;AAoBO,MAAM,2BAA2B,gBAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAKM,MAAM,0BAA0B,gBAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAKM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-ocm-common",
3
3
  "description": "Common functionalities for the Open Cluster Management plugin",
4
- "version": "3.6.1",
4
+ "version": "3.6.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",