@openvizai/shared-types 0.1.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 ADDED
@@ -0,0 +1,3 @@
1
+ # @openvizai/shared-types
2
+
3
+ Shared TypeScript types for the monorepo. Add `src/` and export types from `index.ts` when ready.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Canonical list of supported ApexChart types for OpenVizAI.
3
+ * Single source of truth used across:
4
+ * - Frontend: type safety, ChartRenderer dispatch, config examples
5
+ * - Backend: Zod schema validation, LLM prompt generation
6
+ *
7
+ * To add a new chart type, add it here — the Zod enum, prompt, and TS types
8
+ * all update automatically wherever SUPPORTED_CHART_TYPES is referenced.
9
+ */
10
+ export declare const SUPPORTED_CHART_TYPES: readonly ["line", "radar", "bar", "range_bar", "pie", "donut"];
11
+ /** Union of all supported chart type strings: "line" | "radar" | "bar" | "range_bar" | "pie" | "donut" */
12
+ export type ChartType = (typeof SUPPORTED_CHART_TYPES)[number];
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,gEAOxB,CAAC;AAEX,0GAA0G;AAC1G,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Canonical list of supported ApexChart types for OpenVizAI.
3
+ * Single source of truth used across:
4
+ * - Frontend: type safety, ChartRenderer dispatch, config examples
5
+ * - Backend: Zod schema validation, LLM prompt generation
6
+ *
7
+ * To add a new chart type, add it here — the Zod enum, prompt, and TS types
8
+ * all update automatically wherever SUPPORTED_CHART_TYPES is referenced.
9
+ */
10
+ export const SUPPORTED_CHART_TYPES = [
11
+ "line",
12
+ "radar",
13
+ "bar",
14
+ "range_bar",
15
+ "pie",
16
+ "donut",
17
+ ];
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@openvizai/shared-types",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "README.md",
10
+ "package.json"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "scripts": {
22
+ "build": "tsc -p tsconfig.json",
23
+ "prepublishOnly": "npm run build"
24
+ },
25
+ "devDependencies": {
26
+ "typescript": "^5.9.3"
27
+ }
28
+ }