@backstage-community/plugin-cost-insights 0.29.1 → 0.31.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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @backstage-community/plugin-cost-insights
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f0eecaa: Backstage version bump to v1.54.5
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [f0eecaa]
12
+ - @backstage-community/plugin-cost-insights-common@0.16.0
13
+
14
+ ## 0.30.0
15
+
16
+ ### Minor Changes
17
+
18
+ - ba3719d: Backstage version bump to v1.53.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [ba3719d]
23
+ - @backstage-community/plugin-cost-insights-common@0.15.0
24
+
3
25
  ## 0.29.1
4
26
 
5
27
  ### Patch Changes
@@ -0,0 +1,166 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "costInsights": {
6
+ "type": "object",
7
+ "properties": {
8
+ "engineerCost": {
9
+ "type": "number",
10
+ "visibility": "frontend"
11
+ },
12
+ "engineerThreshold": {
13
+ "type": "number",
14
+ "visibility": "frontend"
15
+ },
16
+ "hideTrendLine": {
17
+ "type": "boolean",
18
+ "visibility": "frontend"
19
+ },
20
+ "baseCurrency": {
21
+ "type": "object",
22
+ "properties": {
23
+ "locale": {
24
+ "type": "string",
25
+ "visibility": "frontend"
26
+ },
27
+ "options": {
28
+ "type": "object",
29
+ "properties": {
30
+ "localeMatcher": {
31
+ "type": "string",
32
+ "visibility": "frontend"
33
+ },
34
+ "style": {
35
+ "type": "string",
36
+ "visibility": "frontend"
37
+ },
38
+ "currency": {
39
+ "type": "string",
40
+ "visibility": "frontend"
41
+ },
42
+ "currencySign": {
43
+ "type": "string",
44
+ "visibility": "frontend"
45
+ },
46
+ "useGrouping": {
47
+ "type": "boolean",
48
+ "visibility": "frontend"
49
+ },
50
+ "minimumIntegerDigits": {
51
+ "type": "number",
52
+ "visibility": "frontend"
53
+ },
54
+ "minimumFractionDigits": {
55
+ "type": "number",
56
+ "visibility": "frontend"
57
+ },
58
+ "maximumFractionDigits": {
59
+ "type": "number",
60
+ "visibility": "frontend"
61
+ },
62
+ "minimumSignificantDigits": {
63
+ "type": "number",
64
+ "visibility": "frontend"
65
+ },
66
+ "maximumSignificantDigits": {
67
+ "type": "number",
68
+ "visibility": "frontend"
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "visibility": "frontend"
74
+ },
75
+ "products": {
76
+ "type": "object",
77
+ "additionalProperties": {
78
+ "type": "object",
79
+ "properties": {
80
+ "name": {
81
+ "type": "string",
82
+ "visibility": "frontend"
83
+ },
84
+ "icon": {
85
+ "type": "string",
86
+ "enum": [
87
+ "compute",
88
+ "data",
89
+ "database",
90
+ "storage",
91
+ "search",
92
+ "ml"
93
+ ],
94
+ "visibility": "frontend"
95
+ }
96
+ },
97
+ "required": [
98
+ "name"
99
+ ]
100
+ }
101
+ },
102
+ "metrics": {
103
+ "type": "object",
104
+ "additionalProperties": {
105
+ "type": "object",
106
+ "properties": {
107
+ "name": {
108
+ "type": "string",
109
+ "visibility": "frontend"
110
+ },
111
+ "default": {
112
+ "type": "boolean",
113
+ "visibility": "frontend"
114
+ }
115
+ },
116
+ "required": [
117
+ "name"
118
+ ]
119
+ }
120
+ },
121
+ "currencies": {
122
+ "type": "object",
123
+ "additionalProperties": {
124
+ "type": "object",
125
+ "properties": {
126
+ "label": {
127
+ "type": "string",
128
+ "visibility": "frontend"
129
+ },
130
+ "unit": {
131
+ "type": "string",
132
+ "visibility": "frontend"
133
+ },
134
+ "kind": {
135
+ "type": "string",
136
+ "visibility": "frontend"
137
+ },
138
+ "prefix": {
139
+ "type": "string",
140
+ "visibility": "frontend"
141
+ },
142
+ "rate": {
143
+ "type": "number",
144
+ "visibility": "frontend"
145
+ },
146
+ "default": {
147
+ "type": "boolean",
148
+ "visibility": "frontend"
149
+ }
150
+ },
151
+ "required": [
152
+ "label",
153
+ "unit"
154
+ ]
155
+ }
156
+ }
157
+ },
158
+ "required": [
159
+ "engineerCost"
160
+ ]
161
+ }
162
+ },
163
+ "required": [
164
+ "costInsights"
165
+ ]
166
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-cost-insights",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "description": "A Backstage plugin that helps you keep track of your cloud spend",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -55,7 +55,7 @@
55
55
  "types": "./dist/index.d.ts",
56
56
  "files": [
57
57
  "dist",
58
- "config.d.ts"
58
+ "config.schema.json"
59
59
  ],
60
60
  "scripts": {
61
61
  "build": "backstage-cli package build",
@@ -67,14 +67,14 @@
67
67
  "test": "backstage-cli package test"
68
68
  },
69
69
  "dependencies": {
70
- "@backstage-community/plugin-cost-insights-common": "^0.14.0",
71
- "@backstage/catalog-model": "^1.9.0",
70
+ "@backstage-community/plugin-cost-insights-common": "^0.16.0",
71
+ "@backstage/catalog-model": "^1.10.0",
72
72
  "@backstage/config": "^1.3.8",
73
- "@backstage/core-compat-api": "^0.5.12",
74
- "@backstage/core-components": "^0.18.11",
75
- "@backstage/core-plugin-api": "^1.12.7",
76
- "@backstage/frontend-plugin-api": "^0.17.2",
77
- "@backstage/plugin-catalog-react": "^3.1.0",
73
+ "@backstage/core-compat-api": "^0.5.14",
74
+ "@backstage/core-components": "^0.18.13",
75
+ "@backstage/core-plugin-api": "^1.12.9",
76
+ "@backstage/frontend-plugin-api": "^0.18.0",
77
+ "@backstage/plugin-catalog-react": "^3.2.2",
78
78
  "@backstage/theme": "^0.7.3",
79
79
  "@date-io/luxon": "1.x",
80
80
  "@material-ui/core": "^4.12.2",
@@ -95,10 +95,10 @@
95
95
  "yup": "^1.0.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@backstage/cli": "^0.36.3",
99
- "@backstage/core-app-api": "^1.20.2",
100
- "@backstage/dev-utils": "^1.1.24",
101
- "@backstage/test-utils": "^1.7.19",
98
+ "@backstage/cli": "^0.36.5",
99
+ "@backstage/core-app-api": "^1.20.4",
100
+ "@backstage/dev-utils": "^1.1.26",
101
+ "@backstage/test-utils": "^1.7.21",
102
102
  "@testing-library/dom": "^10.0.0",
103
103
  "@testing-library/jest-dom": "^6.0.0",
104
104
  "@testing-library/react": "^15.0.0",
@@ -118,6 +118,6 @@
118
118
  "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
119
119
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
120
120
  },
121
- "configSchema": "config.d.ts",
121
+ "configSchema": "config.schema.json",
122
122
  "module": "./dist/index.esm.js"
123
123
  }
package/config.d.ts DELETED
@@ -1,148 +0,0 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- export interface Config {
18
- costInsights: {
19
- /**
20
- * @visibility frontend
21
- */
22
- engineerCost: number;
23
-
24
- /**
25
- * @visibility frontend
26
- */
27
- engineerThreshold?: number;
28
-
29
- /**
30
- * @visibility frontend
31
- */
32
- hideTrendLine?: boolean;
33
-
34
- /**
35
- * @visibility frontend
36
- */
37
- baseCurrency?: {
38
- /**
39
- * @visibility frontend
40
- */
41
- locale?: string;
42
- options?: {
43
- /**
44
- * @visibility frontend
45
- */
46
- localeMatcher?: string | undefined;
47
- /**
48
- * @visibility frontend
49
- */
50
- style?: string | undefined;
51
- /**
52
- * @visibility frontend
53
- */
54
- currency?: string | undefined;
55
- /**
56
- * @visibility frontend
57
- */
58
- currencySign?: string | undefined;
59
- /**
60
- * @visibility frontend
61
- */
62
- useGrouping?: boolean | undefined;
63
- /**
64
- * @visibility frontend
65
- */
66
- minimumIntegerDigits?: number | undefined;
67
- /**
68
- * @visibility frontend
69
- */
70
- minimumFractionDigits?: number | undefined;
71
- /**
72
- * @visibility frontend
73
- */
74
- maximumFractionDigits?: number | undefined;
75
- /**
76
- * @visibility frontend
77
- */
78
- minimumSignificantDigits?: number | undefined;
79
- /**
80
- * @visibility frontend
81
- */
82
- maximumSignificantDigits?: number | undefined;
83
- };
84
- };
85
-
86
- products?: {
87
- [kind: string]: {
88
- /**
89
- * @visibility frontend
90
- */
91
- name: string;
92
-
93
- /**
94
- * @visibility frontend
95
- */
96
- icon?: 'compute' | 'data' | 'database' | 'storage' | 'search' | 'ml';
97
- };
98
- };
99
-
100
- metrics?: {
101
- [kind: string]: {
102
- /**
103
- * @visibility frontend
104
- */
105
- name: string;
106
-
107
- /**
108
- * @visibility frontend
109
- */
110
- default?: boolean;
111
- };
112
- };
113
-
114
- currencies?: {
115
- [id: string]: {
116
- /**
117
- * @visibility frontend
118
- */
119
- label: string;
120
-
121
- /**
122
- * @visibility frontend
123
- */
124
- unit: string;
125
-
126
- /**
127
- * @visibility frontend
128
- */
129
- kind?: string;
130
-
131
- /**
132
- * @visibility frontend
133
- */
134
- prefix?: string;
135
-
136
- /**
137
- * @visibility frontend
138
- */
139
- rate?: number;
140
-
141
- /**
142
- * @visibility frontend
143
- */
144
- default?: boolean;
145
- };
146
- };
147
- };
148
- }