@splunk/visualization-migrations 23.3.0 → 24.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/README.md +16 -0
- package/index.js +2057 -216
- package/index.js.map +1 -1
- package/package.json +12 -6
- package/types/migrate.d.ts +2 -1
- package/types/utils/gauges.d.ts +9 -0
- package/types/utils/migrationUtils.d.ts +29 -0
- package/types/utils/singlevalue.d.ts +10 -0
- package/types/visualizations/bubble.d.ts +3 -0
- package/types/visualizations/choroplethSvg.d.ts +2 -0
- package/types/visualizations/choroplethSvgTestImages.d.ts +7 -0
- package/types/visualizations/ellipse.d.ts +2 -0
- package/types/visualizations/fillergauge.d.ts +2 -0
- package/types/visualizations/image.d.ts +2 -0
- package/types/visualizations/index.d.ts +15 -0
- package/types/visualizations/markdown.d.ts +2 -0
- package/types/visualizations/markergauge.d.ts +2 -0
- package/types/visualizations/punchcard.d.ts +2 -0
- package/types/visualizations/rectangle.d.ts +3 -0
- package/types/visualizations/scatter.d.ts +3 -0
- package/types/visualizations/singlevalue.d.ts +2 -0
- package/types/visualizations/singlevalueicon.d.ts +2 -0
- package/types/visualizations/singlevalueradial.d.ts +2 -0
- package/types/visualizations/splunk-charting.d.ts +1 -1
- package/types/visualizations/table.d.ts +3 -0
- package/types/visualizations/text.d.ts +2 -0
package/README.md
CHANGED
|
@@ -12,3 +12,19 @@ toType: string
|
|
|
12
12
|
toType optional, if not set upgrade to splunk. of same type
|
|
13
13
|
|
|
14
14
|
expose types for migrate & canMigrate
|
|
15
|
+
|
|
16
|
+
If you are migrating via node you will need your entry point script to look like
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
window = {
|
|
20
|
+
console: {}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const migrations = require('@splunk/visualization-migrations');
|
|
24
|
+
const column = migrations.migrate({
|
|
25
|
+
definition: {
|
|
26
|
+
type: 'viz.column',
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
console.log(column);
|
|
30
|
+
```
|