@manta-eu/react 0.1.7 → 0.1.9

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.
Files changed (231) hide show
  1. package/README.md +2 -0
  2. package/dist/components/chart/AreaChart.d.ts.map +1 -1
  3. package/dist/components/chart/AreaChart.js +4 -6
  4. package/dist/components/chart/BarChart.d.ts.map +1 -1
  5. package/dist/components/chart/BarChart.js +5 -6
  6. package/dist/components/chart/ComposedChart.d.ts.map +1 -1
  7. package/dist/components/chart/ComposedChart.js +15 -7
  8. package/dist/components/chart/LineChart.d.ts.map +1 -1
  9. package/dist/components/chart/LineChart.js +4 -6
  10. package/dist/components/chart/annotations.d.ts +4 -0
  11. package/dist/components/chart/annotations.d.ts.map +1 -1
  12. package/dist/components/chart/annotations.js +10 -2
  13. package/dist/components/chart/chart-schemas.d.ts +1960 -54
  14. package/dist/components/chart/chart-schemas.d.ts.map +1 -1
  15. package/dist/components/chart/chart-schemas.js +137 -15
  16. package/dist/components/chart/series.d.ts +28 -0
  17. package/dist/components/chart/series.d.ts.map +1 -0
  18. package/dist/components/chart/series.js +61 -0
  19. package/dist/components/chart/stacks.d.ts +9 -0
  20. package/dist/components/chart/stacks.d.ts.map +1 -0
  21. package/dist/components/chart/stacks.js +11 -0
  22. package/dist/components/chat-view/ChatHeaders.d.ts.map +1 -1
  23. package/dist/components/chat-view/ChatHeaders.js +2 -2
  24. package/dist/components/layouts/Sidebar.d.ts.map +1 -1
  25. package/dist/components/layouts/Sidebar.js +14 -3
  26. package/dist/components/planning/ActioningView.d.ts +1 -0
  27. package/dist/components/planning/ActioningView.d.ts.map +1 -1
  28. package/dist/components/planning/ActioningView.js +15 -52
  29. package/dist/components/planning/ExecutionSectionItem.d.ts +6 -4
  30. package/dist/components/planning/ExecutionSectionItem.d.ts.map +1 -1
  31. package/dist/components/planning/ExecutionSectionItem.js +2 -2
  32. package/dist/components/planning/ExecutionSections.d.ts +6 -4
  33. package/dist/components/planning/ExecutionSections.d.ts.map +1 -1
  34. package/dist/components/planning/ExecutionSections.js +2 -2
  35. package/dist/components/planning/ManualActionCard.d.ts +14 -8
  36. package/dist/components/planning/ManualActionCard.d.ts.map +1 -1
  37. package/dist/components/planning/ManualActionCard.js +44 -24
  38. package/dist/components/planning/ManualActionList.d.ts +22 -0
  39. package/dist/components/planning/ManualActionList.d.ts.map +1 -0
  40. package/dist/components/planning/ManualActionList.js +35 -0
  41. package/dist/components/planning/manual-action-targets.d.ts +4 -0
  42. package/dist/components/planning/manual-action-targets.d.ts.map +1 -0
  43. package/dist/components/planning/manual-action-targets.js +19 -0
  44. package/dist/components/select/index.d.ts.map +1 -1
  45. package/dist/components/select/index.js +4 -1
  46. package/dist/components/sidebar/index.d.ts +2 -0
  47. package/dist/components/sidebar/index.d.ts.map +1 -1
  48. package/dist/components/sidebar/index.js +1 -0
  49. package/dist/components/sidebar/nav-user.d.ts +1 -1
  50. package/dist/components/sidebar/nav-user.d.ts.map +1 -1
  51. package/dist/components/sidebar/nav-user.js +3 -3
  52. package/dist/components/sidebar/user-avatar.d.ts +7 -0
  53. package/dist/components/sidebar/user-avatar.d.ts.map +1 -0
  54. package/dist/components/sidebar/user-avatar.js +9 -0
  55. package/dist/globals.css +6 -13
  56. package/dist/hooks/use-connection-problems.d.ts.map +1 -1
  57. package/dist/hooks/use-manual-actions.d.ts +13 -3
  58. package/dist/hooks/use-manual-actions.d.ts.map +1 -1
  59. package/dist/hooks/use-manual-actions.js +16 -10
  60. package/dist/hooks/useAuth.d.ts +1 -0
  61. package/dist/hooks/useAuth.d.ts.map +1 -1
  62. package/dist/hooks/useAuth.js +7 -1
  63. package/dist/hooks/useConversations.d.ts +1 -0
  64. package/dist/hooks/useConversations.d.ts.map +1 -1
  65. package/dist/hooks/useResolveManualAction.d.ts +14 -0
  66. package/dist/hooks/useResolveManualAction.d.ts.map +1 -0
  67. package/dist/hooks/useResolveManualAction.js +47 -0
  68. package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
  69. package/dist/ldo-ui.d.ts +2 -1
  70. package/dist/ldo-ui.d.ts.map +1 -1
  71. package/dist/ldo-ui.js +2 -1
  72. package/dist/lib/build-config.d.ts +2 -0
  73. package/dist/lib/build-config.d.ts.map +1 -1
  74. package/dist/lib/build-config.js +2 -0
  75. package/dist/lib/chat-types.d.ts +1 -0
  76. package/dist/lib/chat-types.d.ts.map +1 -1
  77. package/dist/lib/datastore-route-table.d.ts +2 -0
  78. package/dist/lib/datastore-route-table.d.ts.map +1 -1
  79. package/dist/lib/datastore-route-table.js +3 -1
  80. package/dist/lib/datastore-routes.d.ts +7 -1
  81. package/dist/lib/datastore-routes.d.ts.map +1 -1
  82. package/dist/lib/datastore-routes.js +7 -2
  83. package/dist/lib/decode-chart-entities.d.ts.map +1 -1
  84. package/dist/lib/decode-chart-entities.js +5 -1
  85. package/dist/lib/manual-actions.d.ts +1 -0
  86. package/dist/lib/manual-actions.d.ts.map +1 -1
  87. package/dist/lib/manual-actions.js +4 -1
  88. package/dist/lib/structured-data/types.d.ts +7 -2
  89. package/dist/lib/structured-data/types.d.ts.map +1 -1
  90. package/dist/providers/ChatManagerProvider.d.ts.map +1 -1
  91. package/dist/providers/ChatManagerProvider.js +18 -16
  92. package/dist/providers/NavExtrasProvider.d.ts +23 -0
  93. package/dist/providers/NavExtrasProvider.d.ts.map +1 -0
  94. package/dist/providers/NavExtrasProvider.js +10 -0
  95. package/dist/providers/index.d.ts +1 -0
  96. package/dist/providers/index.d.ts.map +1 -1
  97. package/dist/providers/index.js +1 -0
  98. package/dist/routes/explain/ExplainEmpty.d.ts.map +1 -1
  99. package/dist/routes/explain/ExplainEmpty.js +2 -1
  100. package/dist/routes/integrations/catalog-shape.d.ts +2 -1
  101. package/dist/routes/integrations/catalog-shape.d.ts.map +1 -1
  102. package/dist/routes/integrations/components/AddIntegrationModal.d.ts.map +1 -1
  103. package/dist/routes/integrations/components/AddIntegrationModal.js +1 -1
  104. package/dist/routes/integrations/components/MantaSyncPluginDownload.d.ts +13 -0
  105. package/dist/routes/integrations/components/MantaSyncPluginDownload.d.ts.map +1 -0
  106. package/dist/routes/integrations/components/MantaSyncPluginDownload.js +23 -0
  107. package/dist/routes/integrations/components/connect-forms/ConnectFormHeader.d.ts +1 -1
  108. package/dist/routes/integrations/components/connect-forms/ConnectFormHeader.d.ts.map +1 -1
  109. package/dist/routes/integrations/components/connect-forms/ConnectWizardShell.d.ts +1 -1
  110. package/dist/routes/integrations/components/connect-forms/ConnectWizardShell.d.ts.map +1 -1
  111. package/dist/routes/integrations/components/connect-forms/ConnectionStringInput.d.ts +11 -0
  112. package/dist/routes/integrations/components/connect-forms/ConnectionStringInput.d.ts.map +1 -0
  113. package/dist/routes/integrations/components/connect-forms/ConnectionStringInput.js +49 -0
  114. package/dist/routes/integrations/components/connect-forms/DashConnectForm.d.ts +7 -0
  115. package/dist/routes/integrations/components/connect-forms/DashConnectForm.d.ts.map +1 -0
  116. package/dist/routes/integrations/components/connect-forms/DashConnectForm.js +87 -0
  117. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.d.ts +20 -0
  118. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.d.ts.map +1 -0
  119. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.js +144 -0
  120. package/dist/routes/integrations/components/connect-forms/DataConnectionFieldInputs.d.ts +8 -0
  121. package/dist/routes/integrations/components/connect-forms/DataConnectionFieldInputs.d.ts.map +1 -0
  122. package/dist/routes/integrations/components/connect-forms/DataConnectionFieldInputs.js +44 -0
  123. package/dist/routes/integrations/components/connect-forms/FigmaConnectForm.d.ts +3 -0
  124. package/dist/routes/integrations/components/connect-forms/FigmaConnectForm.d.ts.map +1 -0
  125. package/dist/routes/integrations/components/connect-forms/FigmaConnectForm.js +20 -0
  126. package/dist/routes/integrations/components/connect-forms/GmailConnectForm.d.ts +3 -0
  127. package/dist/routes/integrations/components/connect-forms/GmailConnectForm.d.ts.map +1 -0
  128. package/dist/routes/integrations/components/connect-forms/GmailConnectForm.js +11 -0
  129. package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.d.ts +3 -0
  130. package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.d.ts.map +1 -0
  131. package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.js +37 -0
  132. package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.d.ts +3 -0
  133. package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.d.ts.map +1 -0
  134. package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.js +37 -0
  135. package/dist/routes/integrations/components/connect-forms/ImportStartedNotice.d.ts +21 -0
  136. package/dist/routes/integrations/components/connect-forms/ImportStartedNotice.d.ts.map +1 -0
  137. package/dist/routes/integrations/components/connect-forms/ImportStartedNotice.js +25 -0
  138. package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.d.ts +45 -0
  139. package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.d.ts.map +1 -0
  140. package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.js +188 -0
  141. package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.d.ts +6 -0
  142. package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.d.ts.map +1 -0
  143. package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.js +68 -0
  144. package/dist/routes/integrations/components/connect-forms/LinkedinConnectForm.d.ts +10 -0
  145. package/dist/routes/integrations/components/connect-forms/LinkedinConnectForm.d.ts.map +1 -0
  146. package/dist/routes/integrations/components/connect-forms/LinkedinConnectForm.js +124 -0
  147. package/dist/routes/integrations/components/connect-forms/MetaAdsConnectForm.d.ts +14 -0
  148. package/dist/routes/integrations/components/connect-forms/MetaAdsConnectForm.d.ts.map +1 -0
  149. package/dist/routes/integrations/components/connect-forms/MetaAdsConnectForm.js +183 -0
  150. package/dist/routes/integrations/components/connect-forms/OAuthConnectLink.d.ts +10 -0
  151. package/dist/routes/integrations/components/connect-forms/OAuthConnectLink.d.ts.map +1 -0
  152. package/dist/routes/integrations/components/connect-forms/OAuthConnectLink.js +17 -0
  153. package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.d.ts +45 -0
  154. package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.d.ts.map +1 -0
  155. package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.js +136 -0
  156. package/dist/routes/integrations/components/connect-forms/OAuthSingleAccountConnectForm.d.ts +23 -0
  157. package/dist/routes/integrations/components/connect-forms/OAuthSingleAccountConnectForm.d.ts.map +1 -0
  158. package/dist/routes/integrations/components/connect-forms/OAuthSingleAccountConnectForm.js +63 -0
  159. package/dist/routes/integrations/components/connect-forms/ShopifyConnectForm.d.ts +3 -0
  160. package/dist/routes/integrations/components/connect-forms/ShopifyConnectForm.d.ts.map +1 -0
  161. package/dist/routes/integrations/components/connect-forms/ShopifyConnectForm.js +14 -0
  162. package/dist/routes/integrations/components/connect-forms/SlackConnectForm.d.ts +3 -0
  163. package/dist/routes/integrations/components/connect-forms/SlackConnectForm.d.ts.map +1 -0
  164. package/dist/routes/integrations/components/connect-forms/SlackConnectForm.js +10 -0
  165. package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.d.ts +5 -0
  166. package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.d.ts.map +1 -0
  167. package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.js +35 -0
  168. package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.d.ts +5 -0
  169. package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.d.ts.map +1 -0
  170. package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.js +47 -0
  171. package/dist/routes/integrations/components/connect-forms/connection-string-fields.d.ts +13 -0
  172. package/dist/routes/integrations/components/connect-forms/connection-string-fields.d.ts.map +1 -0
  173. package/dist/routes/integrations/components/connect-forms/connection-string-fields.js +110 -0
  174. package/dist/routes/integrations/components/connect-forms/dash-folder-tree.d.ts +6 -0
  175. package/dist/routes/integrations/components/connect-forms/dash-folder-tree.d.ts.map +1 -0
  176. package/dist/routes/integrations/components/connect-forms/dash-folder-tree.js +14 -0
  177. package/dist/routes/integrations/components/connect-forms/data-connection-fields.d.ts +35 -0
  178. package/dist/routes/integrations/components/connect-forms/data-connection-fields.d.ts.map +1 -0
  179. package/dist/routes/integrations/components/connect-forms/data-connection-fields.js +88 -0
  180. package/dist/routes/integrations/components/connect-forms/google-ads-account-tree.d.ts +11 -0
  181. package/dist/routes/integrations/components/connect-forms/google-ads-account-tree.d.ts.map +1 -0
  182. package/dist/routes/integrations/components/connect-forms/google-ads-account-tree.js +36 -0
  183. package/dist/routes/integrations/components/connect-forms/google-analytics-property-tree.d.ts +6 -0
  184. package/dist/routes/integrations/components/connect-forms/google-analytics-property-tree.d.ts.map +1 -0
  185. package/dist/routes/integrations/components/connect-forms/google-analytics-property-tree.js +34 -0
  186. package/dist/routes/integrations/components/connect-forms/oauth-setup-phase.d.ts +12 -0
  187. package/dist/routes/integrations/components/connect-forms/oauth-setup-phase.d.ts.map +1 -0
  188. package/dist/routes/integrations/components/connect-forms/oauth-setup-phase.js +33 -0
  189. package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.d.ts +3 -0
  190. package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.d.ts.map +1 -0
  191. package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.js +8 -0
  192. package/dist/routes/integrations/components/connect-forms/types.d.ts +5 -1
  193. package/dist/routes/integrations/components/connect-forms/types.d.ts.map +1 -1
  194. package/dist/routes/integrations/components/connect-forms/useConnectWizard.d.ts +19 -0
  195. package/dist/routes/integrations/components/connect-forms/useConnectWizard.d.ts.map +1 -0
  196. package/dist/routes/integrations/components/connect-forms/useConnectWizard.js +28 -0
  197. package/dist/routes/integrations/components/connect-forms/useConnectedExternalIds.d.ts +4 -0
  198. package/dist/routes/integrations/components/connect-forms/useConnectedExternalIds.d.ts.map +1 -0
  199. package/dist/routes/integrations/components/connect-forms/useConnectedExternalIds.js +17 -0
  200. package/dist/routes/integrations/components/connect-forms/useWindowFocusPoll.d.ts +7 -0
  201. package/dist/routes/integrations/components/connect-forms/useWindowFocusPoll.d.ts.map +1 -0
  202. package/dist/routes/integrations/components/connect-forms/useWindowFocusPoll.js +18 -0
  203. package/dist/routes/integrations/connect-forms.d.ts +16 -0
  204. package/dist/routes/integrations/connect-forms.d.ts.map +1 -0
  205. package/dist/routes/integrations/connect-forms.js +14 -0
  206. package/dist/routes/integrations/filter-connected-providers.d.ts +3 -0
  207. package/dist/routes/integrations/filter-connected-providers.d.ts.map +1 -0
  208. package/dist/routes/integrations/filter-connected-providers.js +15 -0
  209. package/dist/routes/integrations/overview.d.ts +3 -0
  210. package/dist/routes/integrations/overview.d.ts.map +1 -0
  211. package/dist/routes/integrations/overview.js +2 -0
  212. package/dist/routes/integrations/use-connected-account-entities.d.ts +10 -0
  213. package/dist/routes/integrations/use-connected-account-entities.d.ts.map +1 -0
  214. package/dist/routes/integrations/use-connected-account-entities.js +29 -0
  215. package/dist/routes/memories/components/EmptyStates.d.ts.map +1 -1
  216. package/dist/routes/memories/components/EmptyStates.js +2 -1
  217. package/dist/routes/plans/components/ActionPlanPage.d.ts +1 -0
  218. package/dist/routes/plans/components/ActionPlanPage.d.ts.map +1 -1
  219. package/dist/routes/plans/components/ActionPlanPage.js +9 -5
  220. package/dist/routes/plans/components/actionPlansTableConfig.d.ts +12 -12
  221. package/dist/rules/datalog-ast/DatalogBodyFormulaComponent.d.ts.map +1 -1
  222. package/dist/rules/datalog-ast/DatalogBodyFormulaComponent.js +4 -1
  223. package/dist/rules/rule-narrative-aggregates.d.ts +1 -0
  224. package/dist/rules/rule-narrative-aggregates.d.ts.map +1 -1
  225. package/dist/rules/rule-narrative-aggregates.js +20 -0
  226. package/dist/rules/rule-narrative-context.d.ts.map +1 -1
  227. package/dist/rules/rule-narrative-context.js +3 -9
  228. package/dist/rules/rule-narrative-format.d.ts +1 -1
  229. package/dist/rules/rule-narrative.d.ts.map +1 -1
  230. package/dist/rules/rule-narrative.js +22 -7
  231. package/package.json +47 -8
@@ -1,4 +1,35 @@
1
1
  import { z } from "zod/v4";
2
+ export declare const chartSeriesAxes: readonly ["left", "right"];
3
+ export declare const chartSeriesKinds: readonly ["bar", "line"];
4
+ export declare const maxChartSeries: 4;
5
+ export declare const chartSeriesSchema: z.ZodObject<{
6
+ key: z.ZodString;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ axis: z.ZodOptional<z.ZodEnum<{
9
+ left: "left";
10
+ right: "right";
11
+ }>>;
12
+ }, z.core.$strip>;
13
+ export declare const composedChartSeriesSchema: z.ZodObject<{
14
+ key: z.ZodString;
15
+ label: z.ZodOptional<z.ZodString>;
16
+ axis: z.ZodOptional<z.ZodEnum<{
17
+ left: "left";
18
+ right: "right";
19
+ }>>;
20
+ kind: z.ZodEnum<{
21
+ line: "line";
22
+ bar: "bar";
23
+ }>;
24
+ }, z.core.$strip>;
25
+ export type SeriesChartData<Chart extends {
26
+ series?: unknown;
27
+ }, Point> = (Omit<Chart, "data" | "series"> & {
28
+ data: Point[];
29
+ series?: undefined;
30
+ }) | (Chart & {
31
+ series: NonNullable<Chart["series"]>;
32
+ });
2
33
  export declare const annotationTones: readonly ["danger", "warning", "success", "info", "neutral"];
3
34
  export declare const annotationStats: readonly ["average", "median", "min", "max", "p90"];
4
35
  export declare const annotationSeriesValues: readonly ["bar", "line"];
@@ -46,10 +77,10 @@ export declare const annotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
77
  x: "x";
47
78
  y: "y";
48
79
  }>>;
49
- series: z.ZodOptional<z.ZodEnum<{
80
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
50
81
  line: "line";
51
82
  bar: "bar";
52
- }>>;
83
+ }>, z.ZodString]>>;
53
84
  label: z.ZodOptional<z.ZodString>;
54
85
  tone: z.ZodOptional<z.ZodEnum<{
55
86
  info: "info";
@@ -91,9 +122,18 @@ export declare const annotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
122
  }>>;
92
123
  color: z.ZodOptional<z.ZodString>;
93
124
  }, z.core.$strip>], "kind">;
94
- export declare const lineChartSchema: z.ZodObject<{
125
+ export declare const lineChartFieldsSchema: z.ZodObject<{
95
126
  title: z.ZodOptional<z.ZodString>;
96
127
  height: z.ZodOptional<z.ZodNumber>;
128
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
+ key: z.ZodString;
130
+ label: z.ZodOptional<z.ZodString>;
131
+ axis: z.ZodOptional<z.ZodEnum<{
132
+ left: "left";
133
+ right: "right";
134
+ }>>;
135
+ }, z.core.$strip>>>;
136
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
97
137
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
98
138
  kind: z.ZodLiteral<"reference-line">;
99
139
  axis: z.ZodEnum<{
@@ -124,10 +164,10 @@ export declare const lineChartSchema: z.ZodObject<{
124
164
  x: "x";
125
165
  y: "y";
126
166
  }>>;
127
- series: z.ZodOptional<z.ZodEnum<{
167
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
128
168
  line: "line";
129
169
  bar: "bar";
130
- }>>;
170
+ }>, z.ZodString]>>;
131
171
  label: z.ZodOptional<z.ZodString>;
132
172
  tone: z.ZodOptional<z.ZodEnum<{
133
173
  info: "info";
@@ -175,12 +215,25 @@ export declare const lineChartSchema: z.ZodObject<{
175
215
  type: z.ZodLiteral<"line">;
176
216
  data: z.ZodArray<z.ZodObject<{
177
217
  x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
178
- y: z.ZodNumber;
179
- }, z.core.$strip>>;
218
+ y: z.ZodOptional<z.ZodNumber>;
219
+ }, z.core.$loose>>;
180
220
  }, z.core.$strip>;
181
- export declare const areaChartSchema: z.ZodObject<{
221
+ export type LineChartData = SeriesChartData<z.infer<typeof lineChartFieldsSchema>, {
222
+ x: string | number;
223
+ y: number;
224
+ }>;
225
+ export declare const lineChartSchema: z.ZodPipe<z.ZodObject<{
182
226
  title: z.ZodOptional<z.ZodString>;
183
227
  height: z.ZodOptional<z.ZodNumber>;
228
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
229
+ key: z.ZodString;
230
+ label: z.ZodOptional<z.ZodString>;
231
+ axis: z.ZodOptional<z.ZodEnum<{
232
+ left: "left";
233
+ right: "right";
234
+ }>>;
235
+ }, z.core.$strip>>>;
236
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
184
237
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
185
238
  kind: z.ZodLiteral<"reference-line">;
186
239
  axis: z.ZodEnum<{
@@ -211,10 +264,271 @@ export declare const areaChartSchema: z.ZodObject<{
211
264
  x: "x";
212
265
  y: "y";
213
266
  }>>;
214
- series: z.ZodOptional<z.ZodEnum<{
267
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
215
268
  line: "line";
216
269
  bar: "bar";
270
+ }>, z.ZodString]>>;
271
+ label: z.ZodOptional<z.ZodString>;
272
+ tone: z.ZodOptional<z.ZodEnum<{
273
+ info: "info";
274
+ success: "success";
275
+ warning: "warning";
276
+ neutral: "neutral";
277
+ danger: "danger";
278
+ }>>;
279
+ color: z.ZodOptional<z.ZodString>;
280
+ strokeDasharray: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strip>, z.ZodObject<{
282
+ kind: z.ZodLiteral<"reference-area">;
283
+ axis: z.ZodEnum<{
284
+ x: "x";
285
+ y: "y";
286
+ }>;
287
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
288
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
289
+ label: z.ZodOptional<z.ZodString>;
290
+ tone: z.ZodOptional<z.ZodEnum<{
291
+ info: "info";
292
+ success: "success";
293
+ warning: "warning";
294
+ neutral: "neutral";
295
+ danger: "danger";
296
+ }>>;
297
+ color: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ kind: z.ZodLiteral<"reference-point">;
300
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
301
+ y: z.ZodNumber;
302
+ label: z.ZodOptional<z.ZodString>;
303
+ tone: z.ZodOptional<z.ZodEnum<{
304
+ info: "info";
305
+ success: "success";
306
+ warning: "warning";
307
+ neutral: "neutral";
308
+ danger: "danger";
309
+ }>>;
310
+ color: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strip>], "kind">>>;
312
+ showValueLabels: z.ZodOptional<z.ZodBoolean>;
313
+ xAxisLabel: z.ZodOptional<z.ZodString>;
314
+ yAxisLabel: z.ZodOptional<z.ZodString>;
315
+ type: z.ZodLiteral<"line">;
316
+ data: z.ZodArray<z.ZodObject<{
317
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
318
+ y: z.ZodOptional<z.ZodNumber>;
319
+ }, z.core.$loose>>;
320
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
321
+ type: "line";
322
+ data: {
323
+ [x: string]: unknown;
324
+ x: string | number;
325
+ y?: number | undefined;
326
+ }[];
327
+ title?: string | undefined;
328
+ height?: number | undefined;
329
+ series?: {
330
+ key: string;
331
+ label?: string | undefined;
332
+ axis?: "left" | "right" | undefined;
333
+ }[] | undefined;
334
+ rightAxisLabel?: string | undefined;
335
+ annotations?: ({
336
+ kind: "reference-line";
337
+ axis: "x" | "y";
338
+ value: string | number;
339
+ label?: string | undefined;
340
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
341
+ color?: string | undefined;
342
+ strokeDasharray?: string | undefined;
343
+ } | {
344
+ kind: "stat-line";
345
+ stat: "max" | "min" | "median" | "average" | "p90";
346
+ axis?: "x" | "y" | undefined;
347
+ series?: string | undefined;
348
+ label?: string | undefined;
349
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
350
+ color?: string | undefined;
351
+ strokeDasharray?: string | undefined;
352
+ } | {
353
+ kind: "reference-area";
354
+ axis: "x" | "y";
355
+ from: string | number;
356
+ to: string | number;
357
+ label?: string | undefined;
358
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
359
+ color?: string | undefined;
360
+ } | {
361
+ kind: "reference-point";
362
+ x: string | number;
363
+ y: number;
364
+ label?: string | undefined;
365
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
366
+ color?: string | undefined;
367
+ })[] | undefined;
368
+ showValueLabels?: boolean | undefined;
369
+ xAxisLabel?: string | undefined;
370
+ yAxisLabel?: string | undefined;
371
+ }, "data" | "series"> & {
372
+ data: {
373
+ x: string | number;
374
+ y: number;
375
+ }[];
376
+ series?: undefined;
377
+ }) | ({
378
+ type: "line";
379
+ data: {
380
+ [x: string]: unknown;
381
+ x: string | number;
382
+ y?: number | undefined;
383
+ }[];
384
+ title?: string | undefined;
385
+ height?: number | undefined;
386
+ series?: {
387
+ key: string;
388
+ label?: string | undefined;
389
+ axis?: "left" | "right" | undefined;
390
+ }[] | undefined;
391
+ rightAxisLabel?: string | undefined;
392
+ annotations?: ({
393
+ kind: "reference-line";
394
+ axis: "x" | "y";
395
+ value: string | number;
396
+ label?: string | undefined;
397
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
398
+ color?: string | undefined;
399
+ strokeDasharray?: string | undefined;
400
+ } | {
401
+ kind: "stat-line";
402
+ stat: "max" | "min" | "median" | "average" | "p90";
403
+ axis?: "x" | "y" | undefined;
404
+ series?: string | undefined;
405
+ label?: string | undefined;
406
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
407
+ color?: string | undefined;
408
+ strokeDasharray?: string | undefined;
409
+ } | {
410
+ kind: "reference-area";
411
+ axis: "x" | "y";
412
+ from: string | number;
413
+ to: string | number;
414
+ label?: string | undefined;
415
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
416
+ color?: string | undefined;
417
+ } | {
418
+ kind: "reference-point";
419
+ x: string | number;
420
+ y: number;
421
+ label?: string | undefined;
422
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
423
+ color?: string | undefined;
424
+ })[] | undefined;
425
+ showValueLabels?: boolean | undefined;
426
+ xAxisLabel?: string | undefined;
427
+ yAxisLabel?: string | undefined;
428
+ } & {
429
+ series: {
430
+ key: string;
431
+ label?: string | undefined;
432
+ axis?: "left" | "right" | undefined;
433
+ }[];
434
+ }), {
435
+ type: "line";
436
+ data: {
437
+ [x: string]: unknown;
438
+ x: string | number;
439
+ y?: number | undefined;
440
+ }[];
441
+ title?: string | undefined;
442
+ height?: number | undefined;
443
+ series?: {
444
+ key: string;
445
+ label?: string | undefined;
446
+ axis?: "left" | "right" | undefined;
447
+ }[] | undefined;
448
+ rightAxisLabel?: string | undefined;
449
+ annotations?: ({
450
+ kind: "reference-line";
451
+ axis: "x" | "y";
452
+ value: string | number;
453
+ label?: string | undefined;
454
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
455
+ color?: string | undefined;
456
+ strokeDasharray?: string | undefined;
457
+ } | {
458
+ kind: "stat-line";
459
+ stat: "max" | "min" | "median" | "average" | "p90";
460
+ axis?: "x" | "y" | undefined;
461
+ series?: string | undefined;
462
+ label?: string | undefined;
463
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
464
+ color?: string | undefined;
465
+ strokeDasharray?: string | undefined;
466
+ } | {
467
+ kind: "reference-area";
468
+ axis: "x" | "y";
469
+ from: string | number;
470
+ to: string | number;
471
+ label?: string | undefined;
472
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
473
+ color?: string | undefined;
474
+ } | {
475
+ kind: "reference-point";
476
+ x: string | number;
477
+ y: number;
478
+ label?: string | undefined;
479
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
480
+ color?: string | undefined;
481
+ })[] | undefined;
482
+ showValueLabels?: boolean | undefined;
483
+ xAxisLabel?: string | undefined;
484
+ yAxisLabel?: string | undefined;
485
+ }>>;
486
+ export declare const areaChartFieldsSchema: z.ZodObject<{
487
+ title: z.ZodOptional<z.ZodString>;
488
+ height: z.ZodOptional<z.ZodNumber>;
489
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
+ key: z.ZodString;
491
+ label: z.ZodOptional<z.ZodString>;
492
+ axis: z.ZodOptional<z.ZodEnum<{
493
+ left: "left";
494
+ right: "right";
495
+ }>>;
496
+ }, z.core.$strip>>>;
497
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
498
+ annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
499
+ kind: z.ZodLiteral<"reference-line">;
500
+ axis: z.ZodEnum<{
501
+ x: "x";
502
+ y: "y";
503
+ }>;
504
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
505
+ label: z.ZodOptional<z.ZodString>;
506
+ tone: z.ZodOptional<z.ZodEnum<{
507
+ info: "info";
508
+ success: "success";
509
+ warning: "warning";
510
+ neutral: "neutral";
511
+ danger: "danger";
512
+ }>>;
513
+ color: z.ZodOptional<z.ZodString>;
514
+ strokeDasharray: z.ZodOptional<z.ZodString>;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ kind: z.ZodLiteral<"stat-line">;
517
+ stat: z.ZodEnum<{
518
+ max: "max";
519
+ min: "min";
520
+ median: "median";
521
+ average: "average";
522
+ p90: "p90";
523
+ }>;
524
+ axis: z.ZodOptional<z.ZodEnum<{
525
+ x: "x";
526
+ y: "y";
217
527
  }>>;
528
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
529
+ line: "line";
530
+ bar: "bar";
531
+ }>, z.ZodString]>>;
218
532
  label: z.ZodOptional<z.ZodString>;
219
533
  tone: z.ZodOptional<z.ZodEnum<{
220
534
  info: "info";
@@ -262,12 +576,26 @@ export declare const areaChartSchema: z.ZodObject<{
262
576
  type: z.ZodLiteral<"area">;
263
577
  data: z.ZodArray<z.ZodObject<{
264
578
  x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
265
- y: z.ZodNumber;
266
- }, z.core.$strip>>;
579
+ y: z.ZodOptional<z.ZodNumber>;
580
+ }, z.core.$loose>>;
581
+ stacked: z.ZodOptional<z.ZodBoolean>;
267
582
  }, z.core.$strip>;
268
- export declare const barChartSchema: z.ZodObject<{
583
+ export type AreaChartData = SeriesChartData<z.infer<typeof areaChartFieldsSchema>, {
584
+ x: string | number;
585
+ y: number;
586
+ }>;
587
+ export declare const areaChartSchema: z.ZodPipe<z.ZodObject<{
269
588
  title: z.ZodOptional<z.ZodString>;
270
589
  height: z.ZodOptional<z.ZodNumber>;
590
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
591
+ key: z.ZodString;
592
+ label: z.ZodOptional<z.ZodString>;
593
+ axis: z.ZodOptional<z.ZodEnum<{
594
+ left: "left";
595
+ right: "right";
596
+ }>>;
597
+ }, z.core.$strip>>>;
598
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
271
599
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
272
600
  kind: z.ZodLiteral<"reference-line">;
273
601
  axis: z.ZodEnum<{
@@ -298,10 +626,275 @@ export declare const barChartSchema: z.ZodObject<{
298
626
  x: "x";
299
627
  y: "y";
300
628
  }>>;
301
- series: z.ZodOptional<z.ZodEnum<{
629
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
302
630
  line: "line";
303
631
  bar: "bar";
632
+ }>, z.ZodString]>>;
633
+ label: z.ZodOptional<z.ZodString>;
634
+ tone: z.ZodOptional<z.ZodEnum<{
635
+ info: "info";
636
+ success: "success";
637
+ warning: "warning";
638
+ neutral: "neutral";
639
+ danger: "danger";
640
+ }>>;
641
+ color: z.ZodOptional<z.ZodString>;
642
+ strokeDasharray: z.ZodOptional<z.ZodString>;
643
+ }, z.core.$strip>, z.ZodObject<{
644
+ kind: z.ZodLiteral<"reference-area">;
645
+ axis: z.ZodEnum<{
646
+ x: "x";
647
+ y: "y";
648
+ }>;
649
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
650
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
651
+ label: z.ZodOptional<z.ZodString>;
652
+ tone: z.ZodOptional<z.ZodEnum<{
653
+ info: "info";
654
+ success: "success";
655
+ warning: "warning";
656
+ neutral: "neutral";
657
+ danger: "danger";
658
+ }>>;
659
+ color: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ kind: z.ZodLiteral<"reference-point">;
662
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
663
+ y: z.ZodNumber;
664
+ label: z.ZodOptional<z.ZodString>;
665
+ tone: z.ZodOptional<z.ZodEnum<{
666
+ info: "info";
667
+ success: "success";
668
+ warning: "warning";
669
+ neutral: "neutral";
670
+ danger: "danger";
671
+ }>>;
672
+ color: z.ZodOptional<z.ZodString>;
673
+ }, z.core.$strip>], "kind">>>;
674
+ showValueLabels: z.ZodOptional<z.ZodBoolean>;
675
+ xAxisLabel: z.ZodOptional<z.ZodString>;
676
+ yAxisLabel: z.ZodOptional<z.ZodString>;
677
+ type: z.ZodLiteral<"area">;
678
+ data: z.ZodArray<z.ZodObject<{
679
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
680
+ y: z.ZodOptional<z.ZodNumber>;
681
+ }, z.core.$loose>>;
682
+ stacked: z.ZodOptional<z.ZodBoolean>;
683
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
684
+ type: "area";
685
+ data: {
686
+ [x: string]: unknown;
687
+ x: string | number;
688
+ y?: number | undefined;
689
+ }[];
690
+ title?: string | undefined;
691
+ height?: number | undefined;
692
+ series?: {
693
+ key: string;
694
+ label?: string | undefined;
695
+ axis?: "left" | "right" | undefined;
696
+ }[] | undefined;
697
+ rightAxisLabel?: string | undefined;
698
+ annotations?: ({
699
+ kind: "reference-line";
700
+ axis: "x" | "y";
701
+ value: string | number;
702
+ label?: string | undefined;
703
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
704
+ color?: string | undefined;
705
+ strokeDasharray?: string | undefined;
706
+ } | {
707
+ kind: "stat-line";
708
+ stat: "max" | "min" | "median" | "average" | "p90";
709
+ axis?: "x" | "y" | undefined;
710
+ series?: string | undefined;
711
+ label?: string | undefined;
712
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
713
+ color?: string | undefined;
714
+ strokeDasharray?: string | undefined;
715
+ } | {
716
+ kind: "reference-area";
717
+ axis: "x" | "y";
718
+ from: string | number;
719
+ to: string | number;
720
+ label?: string | undefined;
721
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
722
+ color?: string | undefined;
723
+ } | {
724
+ kind: "reference-point";
725
+ x: string | number;
726
+ y: number;
727
+ label?: string | undefined;
728
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
729
+ color?: string | undefined;
730
+ })[] | undefined;
731
+ showValueLabels?: boolean | undefined;
732
+ xAxisLabel?: string | undefined;
733
+ yAxisLabel?: string | undefined;
734
+ stacked?: boolean | undefined;
735
+ }, "data" | "series"> & {
736
+ data: {
737
+ x: string | number;
738
+ y: number;
739
+ }[];
740
+ series?: undefined;
741
+ }) | ({
742
+ type: "area";
743
+ data: {
744
+ [x: string]: unknown;
745
+ x: string | number;
746
+ y?: number | undefined;
747
+ }[];
748
+ title?: string | undefined;
749
+ height?: number | undefined;
750
+ series?: {
751
+ key: string;
752
+ label?: string | undefined;
753
+ axis?: "left" | "right" | undefined;
754
+ }[] | undefined;
755
+ rightAxisLabel?: string | undefined;
756
+ annotations?: ({
757
+ kind: "reference-line";
758
+ axis: "x" | "y";
759
+ value: string | number;
760
+ label?: string | undefined;
761
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
762
+ color?: string | undefined;
763
+ strokeDasharray?: string | undefined;
764
+ } | {
765
+ kind: "stat-line";
766
+ stat: "max" | "min" | "median" | "average" | "p90";
767
+ axis?: "x" | "y" | undefined;
768
+ series?: string | undefined;
769
+ label?: string | undefined;
770
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
771
+ color?: string | undefined;
772
+ strokeDasharray?: string | undefined;
773
+ } | {
774
+ kind: "reference-area";
775
+ axis: "x" | "y";
776
+ from: string | number;
777
+ to: string | number;
778
+ label?: string | undefined;
779
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
780
+ color?: string | undefined;
781
+ } | {
782
+ kind: "reference-point";
783
+ x: string | number;
784
+ y: number;
785
+ label?: string | undefined;
786
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
787
+ color?: string | undefined;
788
+ })[] | undefined;
789
+ showValueLabels?: boolean | undefined;
790
+ xAxisLabel?: string | undefined;
791
+ yAxisLabel?: string | undefined;
792
+ stacked?: boolean | undefined;
793
+ } & {
794
+ series: {
795
+ key: string;
796
+ label?: string | undefined;
797
+ axis?: "left" | "right" | undefined;
798
+ }[];
799
+ }), {
800
+ type: "area";
801
+ data: {
802
+ [x: string]: unknown;
803
+ x: string | number;
804
+ y?: number | undefined;
805
+ }[];
806
+ title?: string | undefined;
807
+ height?: number | undefined;
808
+ series?: {
809
+ key: string;
810
+ label?: string | undefined;
811
+ axis?: "left" | "right" | undefined;
812
+ }[] | undefined;
813
+ rightAxisLabel?: string | undefined;
814
+ annotations?: ({
815
+ kind: "reference-line";
816
+ axis: "x" | "y";
817
+ value: string | number;
818
+ label?: string | undefined;
819
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
820
+ color?: string | undefined;
821
+ strokeDasharray?: string | undefined;
822
+ } | {
823
+ kind: "stat-line";
824
+ stat: "max" | "min" | "median" | "average" | "p90";
825
+ axis?: "x" | "y" | undefined;
826
+ series?: string | undefined;
827
+ label?: string | undefined;
828
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
829
+ color?: string | undefined;
830
+ strokeDasharray?: string | undefined;
831
+ } | {
832
+ kind: "reference-area";
833
+ axis: "x" | "y";
834
+ from: string | number;
835
+ to: string | number;
836
+ label?: string | undefined;
837
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
838
+ color?: string | undefined;
839
+ } | {
840
+ kind: "reference-point";
841
+ x: string | number;
842
+ y: number;
843
+ label?: string | undefined;
844
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
845
+ color?: string | undefined;
846
+ })[] | undefined;
847
+ showValueLabels?: boolean | undefined;
848
+ xAxisLabel?: string | undefined;
849
+ yAxisLabel?: string | undefined;
850
+ stacked?: boolean | undefined;
851
+ }>>;
852
+ export declare const barChartFieldsSchema: z.ZodObject<{
853
+ title: z.ZodOptional<z.ZodString>;
854
+ height: z.ZodOptional<z.ZodNumber>;
855
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
856
+ key: z.ZodString;
857
+ label: z.ZodOptional<z.ZodString>;
858
+ axis: z.ZodOptional<z.ZodEnum<{
859
+ left: "left";
860
+ right: "right";
861
+ }>>;
862
+ }, z.core.$strip>>>;
863
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
864
+ annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
865
+ kind: z.ZodLiteral<"reference-line">;
866
+ axis: z.ZodEnum<{
867
+ x: "x";
868
+ y: "y";
869
+ }>;
870
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
871
+ label: z.ZodOptional<z.ZodString>;
872
+ tone: z.ZodOptional<z.ZodEnum<{
873
+ info: "info";
874
+ success: "success";
875
+ warning: "warning";
876
+ neutral: "neutral";
877
+ danger: "danger";
878
+ }>>;
879
+ color: z.ZodOptional<z.ZodString>;
880
+ strokeDasharray: z.ZodOptional<z.ZodString>;
881
+ }, z.core.$strip>, z.ZodObject<{
882
+ kind: z.ZodLiteral<"stat-line">;
883
+ stat: z.ZodEnum<{
884
+ max: "max";
885
+ min: "min";
886
+ median: "median";
887
+ average: "average";
888
+ p90: "p90";
889
+ }>;
890
+ axis: z.ZodOptional<z.ZodEnum<{
891
+ x: "x";
892
+ y: "y";
304
893
  }>>;
894
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
895
+ line: "line";
896
+ bar: "bar";
897
+ }>, z.ZodString]>>;
305
898
  label: z.ZodOptional<z.ZodString>;
306
899
  tone: z.ZodOptional<z.ZodEnum<{
307
900
  info: "info";
@@ -349,9 +942,279 @@ export declare const barChartSchema: z.ZodObject<{
349
942
  type: z.ZodLiteral<"bar">;
350
943
  data: z.ZodArray<z.ZodObject<{
351
944
  name: z.ZodString;
352
- value: z.ZodNumber;
353
- }, z.core.$strip>>;
945
+ value: z.ZodOptional<z.ZodNumber>;
946
+ }, z.core.$loose>>;
947
+ stacked: z.ZodOptional<z.ZodBoolean>;
354
948
  }, z.core.$strip>;
949
+ export type BarChartData = SeriesChartData<z.infer<typeof barChartFieldsSchema>, {
950
+ name: string;
951
+ value: number;
952
+ }>;
953
+ export declare const barChartSchema: z.ZodPipe<z.ZodObject<{
954
+ title: z.ZodOptional<z.ZodString>;
955
+ height: z.ZodOptional<z.ZodNumber>;
956
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ key: z.ZodString;
958
+ label: z.ZodOptional<z.ZodString>;
959
+ axis: z.ZodOptional<z.ZodEnum<{
960
+ left: "left";
961
+ right: "right";
962
+ }>>;
963
+ }, z.core.$strip>>>;
964
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
965
+ annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
966
+ kind: z.ZodLiteral<"reference-line">;
967
+ axis: z.ZodEnum<{
968
+ x: "x";
969
+ y: "y";
970
+ }>;
971
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
972
+ label: z.ZodOptional<z.ZodString>;
973
+ tone: z.ZodOptional<z.ZodEnum<{
974
+ info: "info";
975
+ success: "success";
976
+ warning: "warning";
977
+ neutral: "neutral";
978
+ danger: "danger";
979
+ }>>;
980
+ color: z.ZodOptional<z.ZodString>;
981
+ strokeDasharray: z.ZodOptional<z.ZodString>;
982
+ }, z.core.$strip>, z.ZodObject<{
983
+ kind: z.ZodLiteral<"stat-line">;
984
+ stat: z.ZodEnum<{
985
+ max: "max";
986
+ min: "min";
987
+ median: "median";
988
+ average: "average";
989
+ p90: "p90";
990
+ }>;
991
+ axis: z.ZodOptional<z.ZodEnum<{
992
+ x: "x";
993
+ y: "y";
994
+ }>>;
995
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
996
+ line: "line";
997
+ bar: "bar";
998
+ }>, z.ZodString]>>;
999
+ label: z.ZodOptional<z.ZodString>;
1000
+ tone: z.ZodOptional<z.ZodEnum<{
1001
+ info: "info";
1002
+ success: "success";
1003
+ warning: "warning";
1004
+ neutral: "neutral";
1005
+ danger: "danger";
1006
+ }>>;
1007
+ color: z.ZodOptional<z.ZodString>;
1008
+ strokeDasharray: z.ZodOptional<z.ZodString>;
1009
+ }, z.core.$strip>, z.ZodObject<{
1010
+ kind: z.ZodLiteral<"reference-area">;
1011
+ axis: z.ZodEnum<{
1012
+ x: "x";
1013
+ y: "y";
1014
+ }>;
1015
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1016
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1017
+ label: z.ZodOptional<z.ZodString>;
1018
+ tone: z.ZodOptional<z.ZodEnum<{
1019
+ info: "info";
1020
+ success: "success";
1021
+ warning: "warning";
1022
+ neutral: "neutral";
1023
+ danger: "danger";
1024
+ }>>;
1025
+ color: z.ZodOptional<z.ZodString>;
1026
+ }, z.core.$strip>, z.ZodObject<{
1027
+ kind: z.ZodLiteral<"reference-point">;
1028
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1029
+ y: z.ZodNumber;
1030
+ label: z.ZodOptional<z.ZodString>;
1031
+ tone: z.ZodOptional<z.ZodEnum<{
1032
+ info: "info";
1033
+ success: "success";
1034
+ warning: "warning";
1035
+ neutral: "neutral";
1036
+ danger: "danger";
1037
+ }>>;
1038
+ color: z.ZodOptional<z.ZodString>;
1039
+ }, z.core.$strip>], "kind">>>;
1040
+ showValueLabels: z.ZodOptional<z.ZodBoolean>;
1041
+ xAxisLabel: z.ZodOptional<z.ZodString>;
1042
+ yAxisLabel: z.ZodOptional<z.ZodString>;
1043
+ type: z.ZodLiteral<"bar">;
1044
+ data: z.ZodArray<z.ZodObject<{
1045
+ name: z.ZodString;
1046
+ value: z.ZodOptional<z.ZodNumber>;
1047
+ }, z.core.$loose>>;
1048
+ stacked: z.ZodOptional<z.ZodBoolean>;
1049
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
1050
+ type: "bar";
1051
+ data: {
1052
+ [x: string]: unknown;
1053
+ name: string;
1054
+ value?: number | undefined;
1055
+ }[];
1056
+ title?: string | undefined;
1057
+ height?: number | undefined;
1058
+ series?: {
1059
+ key: string;
1060
+ label?: string | undefined;
1061
+ axis?: "left" | "right" | undefined;
1062
+ }[] | undefined;
1063
+ rightAxisLabel?: string | undefined;
1064
+ annotations?: ({
1065
+ kind: "reference-line";
1066
+ axis: "x" | "y";
1067
+ value: string | number;
1068
+ label?: string | undefined;
1069
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1070
+ color?: string | undefined;
1071
+ strokeDasharray?: string | undefined;
1072
+ } | {
1073
+ kind: "stat-line";
1074
+ stat: "max" | "min" | "median" | "average" | "p90";
1075
+ axis?: "x" | "y" | undefined;
1076
+ series?: string | undefined;
1077
+ label?: string | undefined;
1078
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1079
+ color?: string | undefined;
1080
+ strokeDasharray?: string | undefined;
1081
+ } | {
1082
+ kind: "reference-area";
1083
+ axis: "x" | "y";
1084
+ from: string | number;
1085
+ to: string | number;
1086
+ label?: string | undefined;
1087
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1088
+ color?: string | undefined;
1089
+ } | {
1090
+ kind: "reference-point";
1091
+ x: string | number;
1092
+ y: number;
1093
+ label?: string | undefined;
1094
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1095
+ color?: string | undefined;
1096
+ })[] | undefined;
1097
+ showValueLabels?: boolean | undefined;
1098
+ xAxisLabel?: string | undefined;
1099
+ yAxisLabel?: string | undefined;
1100
+ stacked?: boolean | undefined;
1101
+ }, "data" | "series"> & {
1102
+ data: {
1103
+ name: string;
1104
+ value: number;
1105
+ }[];
1106
+ series?: undefined;
1107
+ }) | ({
1108
+ type: "bar";
1109
+ data: {
1110
+ [x: string]: unknown;
1111
+ name: string;
1112
+ value?: number | undefined;
1113
+ }[];
1114
+ title?: string | undefined;
1115
+ height?: number | undefined;
1116
+ series?: {
1117
+ key: string;
1118
+ label?: string | undefined;
1119
+ axis?: "left" | "right" | undefined;
1120
+ }[] | undefined;
1121
+ rightAxisLabel?: string | undefined;
1122
+ annotations?: ({
1123
+ kind: "reference-line";
1124
+ axis: "x" | "y";
1125
+ value: string | number;
1126
+ label?: string | undefined;
1127
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1128
+ color?: string | undefined;
1129
+ strokeDasharray?: string | undefined;
1130
+ } | {
1131
+ kind: "stat-line";
1132
+ stat: "max" | "min" | "median" | "average" | "p90";
1133
+ axis?: "x" | "y" | undefined;
1134
+ series?: string | undefined;
1135
+ label?: string | undefined;
1136
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1137
+ color?: string | undefined;
1138
+ strokeDasharray?: string | undefined;
1139
+ } | {
1140
+ kind: "reference-area";
1141
+ axis: "x" | "y";
1142
+ from: string | number;
1143
+ to: string | number;
1144
+ label?: string | undefined;
1145
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1146
+ color?: string | undefined;
1147
+ } | {
1148
+ kind: "reference-point";
1149
+ x: string | number;
1150
+ y: number;
1151
+ label?: string | undefined;
1152
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1153
+ color?: string | undefined;
1154
+ })[] | undefined;
1155
+ showValueLabels?: boolean | undefined;
1156
+ xAxisLabel?: string | undefined;
1157
+ yAxisLabel?: string | undefined;
1158
+ stacked?: boolean | undefined;
1159
+ } & {
1160
+ series: {
1161
+ key: string;
1162
+ label?: string | undefined;
1163
+ axis?: "left" | "right" | undefined;
1164
+ }[];
1165
+ }), {
1166
+ type: "bar";
1167
+ data: {
1168
+ [x: string]: unknown;
1169
+ name: string;
1170
+ value?: number | undefined;
1171
+ }[];
1172
+ title?: string | undefined;
1173
+ height?: number | undefined;
1174
+ series?: {
1175
+ key: string;
1176
+ label?: string | undefined;
1177
+ axis?: "left" | "right" | undefined;
1178
+ }[] | undefined;
1179
+ rightAxisLabel?: string | undefined;
1180
+ annotations?: ({
1181
+ kind: "reference-line";
1182
+ axis: "x" | "y";
1183
+ value: string | number;
1184
+ label?: string | undefined;
1185
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1186
+ color?: string | undefined;
1187
+ strokeDasharray?: string | undefined;
1188
+ } | {
1189
+ kind: "stat-line";
1190
+ stat: "max" | "min" | "median" | "average" | "p90";
1191
+ axis?: "x" | "y" | undefined;
1192
+ series?: string | undefined;
1193
+ label?: string | undefined;
1194
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1195
+ color?: string | undefined;
1196
+ strokeDasharray?: string | undefined;
1197
+ } | {
1198
+ kind: "reference-area";
1199
+ axis: "x" | "y";
1200
+ from: string | number;
1201
+ to: string | number;
1202
+ label?: string | undefined;
1203
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1204
+ color?: string | undefined;
1205
+ } | {
1206
+ kind: "reference-point";
1207
+ x: string | number;
1208
+ y: number;
1209
+ label?: string | undefined;
1210
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1211
+ color?: string | undefined;
1212
+ })[] | undefined;
1213
+ showValueLabels?: boolean | undefined;
1214
+ xAxisLabel?: string | undefined;
1215
+ yAxisLabel?: string | undefined;
1216
+ stacked?: boolean | undefined;
1217
+ }>>;
355
1218
  export declare const pieChartSchema: z.ZodObject<{
356
1219
  title: z.ZodOptional<z.ZodString>;
357
1220
  height: z.ZodOptional<z.ZodNumber>;
@@ -394,10 +1257,10 @@ export declare const scatterChartSchema: z.ZodObject<{
394
1257
  x: "x";
395
1258
  y: "y";
396
1259
  }>>;
397
- series: z.ZodOptional<z.ZodEnum<{
1260
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
398
1261
  line: "line";
399
1262
  bar: "bar";
400
- }>>;
1263
+ }>, z.ZodString]>>;
401
1264
  label: z.ZodOptional<z.ZodString>;
402
1265
  tone: z.ZodOptional<z.ZodEnum<{
403
1266
  info: "info";
@@ -457,9 +1320,22 @@ export declare const radarChartSchema: z.ZodObject<{
457
1320
  value: z.ZodNumber;
458
1321
  }, z.core.$strip>>;
459
1322
  }, z.core.$strip>;
460
- export declare const composedChartSchema: z.ZodObject<{
1323
+ export declare const composedChartFieldsSchema: z.ZodObject<{
461
1324
  title: z.ZodOptional<z.ZodString>;
462
1325
  height: z.ZodOptional<z.ZodNumber>;
1326
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
1327
+ key: z.ZodString;
1328
+ label: z.ZodOptional<z.ZodString>;
1329
+ axis: z.ZodOptional<z.ZodEnum<{
1330
+ left: "left";
1331
+ right: "right";
1332
+ }>>;
1333
+ kind: z.ZodEnum<{
1334
+ line: "line";
1335
+ bar: "bar";
1336
+ }>;
1337
+ }, z.core.$strip>>>;
1338
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
463
1339
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
464
1340
  kind: z.ZodLiteral<"reference-line">;
465
1341
  axis: z.ZodEnum<{
@@ -490,10 +1366,10 @@ export declare const composedChartSchema: z.ZodObject<{
490
1366
  x: "x";
491
1367
  y: "y";
492
1368
  }>>;
493
- series: z.ZodOptional<z.ZodEnum<{
1369
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
494
1370
  line: "line";
495
1371
  bar: "bar";
496
- }>>;
1372
+ }>, z.ZodString]>>;
497
1373
  label: z.ZodOptional<z.ZodString>;
498
1374
  tone: z.ZodOptional<z.ZodEnum<{
499
1375
  info: "info";
@@ -541,15 +1417,34 @@ export declare const composedChartSchema: z.ZodObject<{
541
1417
  type: z.ZodLiteral<"composed">;
542
1418
  data: z.ZodArray<z.ZodObject<{
543
1419
  name: z.ZodString;
544
- barValue: z.ZodNumber;
545
- lineValue: z.ZodNumber;
546
- }, z.core.$strip>>;
1420
+ barValue: z.ZodOptional<z.ZodNumber>;
1421
+ lineValue: z.ZodOptional<z.ZodNumber>;
1422
+ }, z.core.$loose>>;
547
1423
  barLabel: z.ZodOptional<z.ZodString>;
548
1424
  lineLabel: z.ZodOptional<z.ZodString>;
1425
+ stacked: z.ZodOptional<z.ZodBoolean>;
549
1426
  }, z.core.$strip>;
550
- export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1427
+ export type ComposedChartData = SeriesChartData<z.infer<typeof composedChartFieldsSchema>, {
1428
+ name: string;
1429
+ barValue: number;
1430
+ lineValue: number;
1431
+ }>;
1432
+ export declare const composedChartSchema: z.ZodPipe<z.ZodObject<{
551
1433
  title: z.ZodOptional<z.ZodString>;
552
1434
  height: z.ZodOptional<z.ZodNumber>;
1435
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
1436
+ key: z.ZodString;
1437
+ label: z.ZodOptional<z.ZodString>;
1438
+ axis: z.ZodOptional<z.ZodEnum<{
1439
+ left: "left";
1440
+ right: "right";
1441
+ }>>;
1442
+ kind: z.ZodEnum<{
1443
+ line: "line";
1444
+ bar: "bar";
1445
+ }>;
1446
+ }, z.core.$strip>>>;
1447
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
553
1448
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
554
1449
  kind: z.ZodLiteral<"reference-line">;
555
1450
  axis: z.ZodEnum<{
@@ -580,10 +1475,292 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
580
1475
  x: "x";
581
1476
  y: "y";
582
1477
  }>>;
583
- series: z.ZodOptional<z.ZodEnum<{
1478
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
584
1479
  line: "line";
585
1480
  bar: "bar";
1481
+ }>, z.ZodString]>>;
1482
+ label: z.ZodOptional<z.ZodString>;
1483
+ tone: z.ZodOptional<z.ZodEnum<{
1484
+ info: "info";
1485
+ success: "success";
1486
+ warning: "warning";
1487
+ neutral: "neutral";
1488
+ danger: "danger";
1489
+ }>>;
1490
+ color: z.ZodOptional<z.ZodString>;
1491
+ strokeDasharray: z.ZodOptional<z.ZodString>;
1492
+ }, z.core.$strip>, z.ZodObject<{
1493
+ kind: z.ZodLiteral<"reference-area">;
1494
+ axis: z.ZodEnum<{
1495
+ x: "x";
1496
+ y: "y";
1497
+ }>;
1498
+ from: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1499
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1500
+ label: z.ZodOptional<z.ZodString>;
1501
+ tone: z.ZodOptional<z.ZodEnum<{
1502
+ info: "info";
1503
+ success: "success";
1504
+ warning: "warning";
1505
+ neutral: "neutral";
1506
+ danger: "danger";
1507
+ }>>;
1508
+ color: z.ZodOptional<z.ZodString>;
1509
+ }, z.core.$strip>, z.ZodObject<{
1510
+ kind: z.ZodLiteral<"reference-point">;
1511
+ x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1512
+ y: z.ZodNumber;
1513
+ label: z.ZodOptional<z.ZodString>;
1514
+ tone: z.ZodOptional<z.ZodEnum<{
1515
+ info: "info";
1516
+ success: "success";
1517
+ warning: "warning";
1518
+ neutral: "neutral";
1519
+ danger: "danger";
1520
+ }>>;
1521
+ color: z.ZodOptional<z.ZodString>;
1522
+ }, z.core.$strip>], "kind">>>;
1523
+ showValueLabels: z.ZodOptional<z.ZodBoolean>;
1524
+ xAxisLabel: z.ZodOptional<z.ZodString>;
1525
+ yAxisLabel: z.ZodOptional<z.ZodString>;
1526
+ type: z.ZodLiteral<"composed">;
1527
+ data: z.ZodArray<z.ZodObject<{
1528
+ name: z.ZodString;
1529
+ barValue: z.ZodOptional<z.ZodNumber>;
1530
+ lineValue: z.ZodOptional<z.ZodNumber>;
1531
+ }, z.core.$loose>>;
1532
+ barLabel: z.ZodOptional<z.ZodString>;
1533
+ lineLabel: z.ZodOptional<z.ZodString>;
1534
+ stacked: z.ZodOptional<z.ZodBoolean>;
1535
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
1536
+ type: "composed";
1537
+ data: {
1538
+ [x: string]: unknown;
1539
+ name: string;
1540
+ barValue?: number | undefined;
1541
+ lineValue?: number | undefined;
1542
+ }[];
1543
+ title?: string | undefined;
1544
+ height?: number | undefined;
1545
+ series?: {
1546
+ key: string;
1547
+ kind: "line" | "bar";
1548
+ label?: string | undefined;
1549
+ axis?: "left" | "right" | undefined;
1550
+ }[] | undefined;
1551
+ rightAxisLabel?: string | undefined;
1552
+ annotations?: ({
1553
+ kind: "reference-line";
1554
+ axis: "x" | "y";
1555
+ value: string | number;
1556
+ label?: string | undefined;
1557
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1558
+ color?: string | undefined;
1559
+ strokeDasharray?: string | undefined;
1560
+ } | {
1561
+ kind: "stat-line";
1562
+ stat: "max" | "min" | "median" | "average" | "p90";
1563
+ axis?: "x" | "y" | undefined;
1564
+ series?: string | undefined;
1565
+ label?: string | undefined;
1566
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1567
+ color?: string | undefined;
1568
+ strokeDasharray?: string | undefined;
1569
+ } | {
1570
+ kind: "reference-area";
1571
+ axis: "x" | "y";
1572
+ from: string | number;
1573
+ to: string | number;
1574
+ label?: string | undefined;
1575
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1576
+ color?: string | undefined;
1577
+ } | {
1578
+ kind: "reference-point";
1579
+ x: string | number;
1580
+ y: number;
1581
+ label?: string | undefined;
1582
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1583
+ color?: string | undefined;
1584
+ })[] | undefined;
1585
+ showValueLabels?: boolean | undefined;
1586
+ xAxisLabel?: string | undefined;
1587
+ yAxisLabel?: string | undefined;
1588
+ barLabel?: string | undefined;
1589
+ lineLabel?: string | undefined;
1590
+ stacked?: boolean | undefined;
1591
+ }, "data" | "series"> & {
1592
+ data: {
1593
+ name: string;
1594
+ barValue: number;
1595
+ lineValue: number;
1596
+ }[];
1597
+ series?: undefined;
1598
+ }) | ({
1599
+ type: "composed";
1600
+ data: {
1601
+ [x: string]: unknown;
1602
+ name: string;
1603
+ barValue?: number | undefined;
1604
+ lineValue?: number | undefined;
1605
+ }[];
1606
+ title?: string | undefined;
1607
+ height?: number | undefined;
1608
+ series?: {
1609
+ key: string;
1610
+ kind: "line" | "bar";
1611
+ label?: string | undefined;
1612
+ axis?: "left" | "right" | undefined;
1613
+ }[] | undefined;
1614
+ rightAxisLabel?: string | undefined;
1615
+ annotations?: ({
1616
+ kind: "reference-line";
1617
+ axis: "x" | "y";
1618
+ value: string | number;
1619
+ label?: string | undefined;
1620
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1621
+ color?: string | undefined;
1622
+ strokeDasharray?: string | undefined;
1623
+ } | {
1624
+ kind: "stat-line";
1625
+ stat: "max" | "min" | "median" | "average" | "p90";
1626
+ axis?: "x" | "y" | undefined;
1627
+ series?: string | undefined;
1628
+ label?: string | undefined;
1629
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1630
+ color?: string | undefined;
1631
+ strokeDasharray?: string | undefined;
1632
+ } | {
1633
+ kind: "reference-area";
1634
+ axis: "x" | "y";
1635
+ from: string | number;
1636
+ to: string | number;
1637
+ label?: string | undefined;
1638
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1639
+ color?: string | undefined;
1640
+ } | {
1641
+ kind: "reference-point";
1642
+ x: string | number;
1643
+ y: number;
1644
+ label?: string | undefined;
1645
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1646
+ color?: string | undefined;
1647
+ })[] | undefined;
1648
+ showValueLabels?: boolean | undefined;
1649
+ xAxisLabel?: string | undefined;
1650
+ yAxisLabel?: string | undefined;
1651
+ barLabel?: string | undefined;
1652
+ lineLabel?: string | undefined;
1653
+ stacked?: boolean | undefined;
1654
+ } & {
1655
+ series: {
1656
+ key: string;
1657
+ kind: "line" | "bar";
1658
+ label?: string | undefined;
1659
+ axis?: "left" | "right" | undefined;
1660
+ }[];
1661
+ }), {
1662
+ type: "composed";
1663
+ data: {
1664
+ [x: string]: unknown;
1665
+ name: string;
1666
+ barValue?: number | undefined;
1667
+ lineValue?: number | undefined;
1668
+ }[];
1669
+ title?: string | undefined;
1670
+ height?: number | undefined;
1671
+ series?: {
1672
+ key: string;
1673
+ kind: "line" | "bar";
1674
+ label?: string | undefined;
1675
+ axis?: "left" | "right" | undefined;
1676
+ }[] | undefined;
1677
+ rightAxisLabel?: string | undefined;
1678
+ annotations?: ({
1679
+ kind: "reference-line";
1680
+ axis: "x" | "y";
1681
+ value: string | number;
1682
+ label?: string | undefined;
1683
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1684
+ color?: string | undefined;
1685
+ strokeDasharray?: string | undefined;
1686
+ } | {
1687
+ kind: "stat-line";
1688
+ stat: "max" | "min" | "median" | "average" | "p90";
1689
+ axis?: "x" | "y" | undefined;
1690
+ series?: string | undefined;
1691
+ label?: string | undefined;
1692
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1693
+ color?: string | undefined;
1694
+ strokeDasharray?: string | undefined;
1695
+ } | {
1696
+ kind: "reference-area";
1697
+ axis: "x" | "y";
1698
+ from: string | number;
1699
+ to: string | number;
1700
+ label?: string | undefined;
1701
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1702
+ color?: string | undefined;
1703
+ } | {
1704
+ kind: "reference-point";
1705
+ x: string | number;
1706
+ y: number;
1707
+ label?: string | undefined;
1708
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1709
+ color?: string | undefined;
1710
+ })[] | undefined;
1711
+ showValueLabels?: boolean | undefined;
1712
+ xAxisLabel?: string | undefined;
1713
+ yAxisLabel?: string | undefined;
1714
+ barLabel?: string | undefined;
1715
+ lineLabel?: string | undefined;
1716
+ stacked?: boolean | undefined;
1717
+ }>>;
1718
+ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
1719
+ title: z.ZodOptional<z.ZodString>;
1720
+ height: z.ZodOptional<z.ZodNumber>;
1721
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
1722
+ key: z.ZodString;
1723
+ label: z.ZodOptional<z.ZodString>;
1724
+ axis: z.ZodOptional<z.ZodEnum<{
1725
+ left: "left";
1726
+ right: "right";
1727
+ }>>;
1728
+ }, z.core.$strip>>>;
1729
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
1730
+ annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1731
+ kind: z.ZodLiteral<"reference-line">;
1732
+ axis: z.ZodEnum<{
1733
+ x: "x";
1734
+ y: "y";
1735
+ }>;
1736
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1737
+ label: z.ZodOptional<z.ZodString>;
1738
+ tone: z.ZodOptional<z.ZodEnum<{
1739
+ info: "info";
1740
+ success: "success";
1741
+ warning: "warning";
1742
+ neutral: "neutral";
1743
+ danger: "danger";
1744
+ }>>;
1745
+ color: z.ZodOptional<z.ZodString>;
1746
+ strokeDasharray: z.ZodOptional<z.ZodString>;
1747
+ }, z.core.$strip>, z.ZodObject<{
1748
+ kind: z.ZodLiteral<"stat-line">;
1749
+ stat: z.ZodEnum<{
1750
+ max: "max";
1751
+ min: "min";
1752
+ median: "median";
1753
+ average: "average";
1754
+ p90: "p90";
1755
+ }>;
1756
+ axis: z.ZodOptional<z.ZodEnum<{
1757
+ x: "x";
1758
+ y: "y";
586
1759
  }>>;
1760
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1761
+ line: "line";
1762
+ bar: "bar";
1763
+ }>, z.ZodString]>>;
587
1764
  label: z.ZodOptional<z.ZodString>;
588
1765
  tone: z.ZodOptional<z.ZodEnum<{
589
1766
  info: "info";
@@ -631,11 +1808,185 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
1808
  type: z.ZodLiteral<"line">;
632
1809
  data: z.ZodArray<z.ZodObject<{
633
1810
  x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
634
- y: z.ZodNumber;
635
- }, z.core.$strip>>;
636
- }, z.core.$strip>, z.ZodObject<{
1811
+ y: z.ZodOptional<z.ZodNumber>;
1812
+ }, z.core.$loose>>;
1813
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
1814
+ type: "line";
1815
+ data: {
1816
+ [x: string]: unknown;
1817
+ x: string | number;
1818
+ y?: number | undefined;
1819
+ }[];
1820
+ title?: string | undefined;
1821
+ height?: number | undefined;
1822
+ series?: {
1823
+ key: string;
1824
+ label?: string | undefined;
1825
+ axis?: "left" | "right" | undefined;
1826
+ }[] | undefined;
1827
+ rightAxisLabel?: string | undefined;
1828
+ annotations?: ({
1829
+ kind: "reference-line";
1830
+ axis: "x" | "y";
1831
+ value: string | number;
1832
+ label?: string | undefined;
1833
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1834
+ color?: string | undefined;
1835
+ strokeDasharray?: string | undefined;
1836
+ } | {
1837
+ kind: "stat-line";
1838
+ stat: "max" | "min" | "median" | "average" | "p90";
1839
+ axis?: "x" | "y" | undefined;
1840
+ series?: string | undefined;
1841
+ label?: string | undefined;
1842
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1843
+ color?: string | undefined;
1844
+ strokeDasharray?: string | undefined;
1845
+ } | {
1846
+ kind: "reference-area";
1847
+ axis: "x" | "y";
1848
+ from: string | number;
1849
+ to: string | number;
1850
+ label?: string | undefined;
1851
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1852
+ color?: string | undefined;
1853
+ } | {
1854
+ kind: "reference-point";
1855
+ x: string | number;
1856
+ y: number;
1857
+ label?: string | undefined;
1858
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1859
+ color?: string | undefined;
1860
+ })[] | undefined;
1861
+ showValueLabels?: boolean | undefined;
1862
+ xAxisLabel?: string | undefined;
1863
+ yAxisLabel?: string | undefined;
1864
+ }, "data" | "series"> & {
1865
+ data: {
1866
+ x: string | number;
1867
+ y: number;
1868
+ }[];
1869
+ series?: undefined;
1870
+ }) | ({
1871
+ type: "line";
1872
+ data: {
1873
+ [x: string]: unknown;
1874
+ x: string | number;
1875
+ y?: number | undefined;
1876
+ }[];
1877
+ title?: string | undefined;
1878
+ height?: number | undefined;
1879
+ series?: {
1880
+ key: string;
1881
+ label?: string | undefined;
1882
+ axis?: "left" | "right" | undefined;
1883
+ }[] | undefined;
1884
+ rightAxisLabel?: string | undefined;
1885
+ annotations?: ({
1886
+ kind: "reference-line";
1887
+ axis: "x" | "y";
1888
+ value: string | number;
1889
+ label?: string | undefined;
1890
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1891
+ color?: string | undefined;
1892
+ strokeDasharray?: string | undefined;
1893
+ } | {
1894
+ kind: "stat-line";
1895
+ stat: "max" | "min" | "median" | "average" | "p90";
1896
+ axis?: "x" | "y" | undefined;
1897
+ series?: string | undefined;
1898
+ label?: string | undefined;
1899
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1900
+ color?: string | undefined;
1901
+ strokeDasharray?: string | undefined;
1902
+ } | {
1903
+ kind: "reference-area";
1904
+ axis: "x" | "y";
1905
+ from: string | number;
1906
+ to: string | number;
1907
+ label?: string | undefined;
1908
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1909
+ color?: string | undefined;
1910
+ } | {
1911
+ kind: "reference-point";
1912
+ x: string | number;
1913
+ y: number;
1914
+ label?: string | undefined;
1915
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1916
+ color?: string | undefined;
1917
+ })[] | undefined;
1918
+ showValueLabels?: boolean | undefined;
1919
+ xAxisLabel?: string | undefined;
1920
+ yAxisLabel?: string | undefined;
1921
+ } & {
1922
+ series: {
1923
+ key: string;
1924
+ label?: string | undefined;
1925
+ axis?: "left" | "right" | undefined;
1926
+ }[];
1927
+ }), {
1928
+ type: "line";
1929
+ data: {
1930
+ [x: string]: unknown;
1931
+ x: string | number;
1932
+ y?: number | undefined;
1933
+ }[];
1934
+ title?: string | undefined;
1935
+ height?: number | undefined;
1936
+ series?: {
1937
+ key: string;
1938
+ label?: string | undefined;
1939
+ axis?: "left" | "right" | undefined;
1940
+ }[] | undefined;
1941
+ rightAxisLabel?: string | undefined;
1942
+ annotations?: ({
1943
+ kind: "reference-line";
1944
+ axis: "x" | "y";
1945
+ value: string | number;
1946
+ label?: string | undefined;
1947
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1948
+ color?: string | undefined;
1949
+ strokeDasharray?: string | undefined;
1950
+ } | {
1951
+ kind: "stat-line";
1952
+ stat: "max" | "min" | "median" | "average" | "p90";
1953
+ axis?: "x" | "y" | undefined;
1954
+ series?: string | undefined;
1955
+ label?: string | undefined;
1956
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1957
+ color?: string | undefined;
1958
+ strokeDasharray?: string | undefined;
1959
+ } | {
1960
+ kind: "reference-area";
1961
+ axis: "x" | "y";
1962
+ from: string | number;
1963
+ to: string | number;
1964
+ label?: string | undefined;
1965
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1966
+ color?: string | undefined;
1967
+ } | {
1968
+ kind: "reference-point";
1969
+ x: string | number;
1970
+ y: number;
1971
+ label?: string | undefined;
1972
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
1973
+ color?: string | undefined;
1974
+ })[] | undefined;
1975
+ showValueLabels?: boolean | undefined;
1976
+ xAxisLabel?: string | undefined;
1977
+ yAxisLabel?: string | undefined;
1978
+ }>>, z.ZodPipe<z.ZodObject<{
637
1979
  title: z.ZodOptional<z.ZodString>;
638
1980
  height: z.ZodOptional<z.ZodNumber>;
1981
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
1982
+ key: z.ZodString;
1983
+ label: z.ZodOptional<z.ZodString>;
1984
+ axis: z.ZodOptional<z.ZodEnum<{
1985
+ left: "left";
1986
+ right: "right";
1987
+ }>>;
1988
+ }, z.core.$strip>>>;
1989
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
639
1990
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
640
1991
  kind: z.ZodLiteral<"reference-line">;
641
1992
  axis: z.ZodEnum<{
@@ -666,10 +2017,10 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
666
2017
  x: "x";
667
2018
  y: "y";
668
2019
  }>>;
669
- series: z.ZodOptional<z.ZodEnum<{
2020
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
670
2021
  line: "line";
671
2022
  bar: "bar";
672
- }>>;
2023
+ }>, z.ZodString]>>;
673
2024
  label: z.ZodOptional<z.ZodString>;
674
2025
  tone: z.ZodOptional<z.ZodEnum<{
675
2026
  info: "info";
@@ -717,11 +2068,189 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
717
2068
  type: z.ZodLiteral<"area">;
718
2069
  data: z.ZodArray<z.ZodObject<{
719
2070
  x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
720
- y: z.ZodNumber;
721
- }, z.core.$strip>>;
722
- }, z.core.$strip>, z.ZodObject<{
2071
+ y: z.ZodOptional<z.ZodNumber>;
2072
+ }, z.core.$loose>>;
2073
+ stacked: z.ZodOptional<z.ZodBoolean>;
2074
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
2075
+ type: "area";
2076
+ data: {
2077
+ [x: string]: unknown;
2078
+ x: string | number;
2079
+ y?: number | undefined;
2080
+ }[];
2081
+ title?: string | undefined;
2082
+ height?: number | undefined;
2083
+ series?: {
2084
+ key: string;
2085
+ label?: string | undefined;
2086
+ axis?: "left" | "right" | undefined;
2087
+ }[] | undefined;
2088
+ rightAxisLabel?: string | undefined;
2089
+ annotations?: ({
2090
+ kind: "reference-line";
2091
+ axis: "x" | "y";
2092
+ value: string | number;
2093
+ label?: string | undefined;
2094
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2095
+ color?: string | undefined;
2096
+ strokeDasharray?: string | undefined;
2097
+ } | {
2098
+ kind: "stat-line";
2099
+ stat: "max" | "min" | "median" | "average" | "p90";
2100
+ axis?: "x" | "y" | undefined;
2101
+ series?: string | undefined;
2102
+ label?: string | undefined;
2103
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2104
+ color?: string | undefined;
2105
+ strokeDasharray?: string | undefined;
2106
+ } | {
2107
+ kind: "reference-area";
2108
+ axis: "x" | "y";
2109
+ from: string | number;
2110
+ to: string | number;
2111
+ label?: string | undefined;
2112
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2113
+ color?: string | undefined;
2114
+ } | {
2115
+ kind: "reference-point";
2116
+ x: string | number;
2117
+ y: number;
2118
+ label?: string | undefined;
2119
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2120
+ color?: string | undefined;
2121
+ })[] | undefined;
2122
+ showValueLabels?: boolean | undefined;
2123
+ xAxisLabel?: string | undefined;
2124
+ yAxisLabel?: string | undefined;
2125
+ stacked?: boolean | undefined;
2126
+ }, "data" | "series"> & {
2127
+ data: {
2128
+ x: string | number;
2129
+ y: number;
2130
+ }[];
2131
+ series?: undefined;
2132
+ }) | ({
2133
+ type: "area";
2134
+ data: {
2135
+ [x: string]: unknown;
2136
+ x: string | number;
2137
+ y?: number | undefined;
2138
+ }[];
2139
+ title?: string | undefined;
2140
+ height?: number | undefined;
2141
+ series?: {
2142
+ key: string;
2143
+ label?: string | undefined;
2144
+ axis?: "left" | "right" | undefined;
2145
+ }[] | undefined;
2146
+ rightAxisLabel?: string | undefined;
2147
+ annotations?: ({
2148
+ kind: "reference-line";
2149
+ axis: "x" | "y";
2150
+ value: string | number;
2151
+ label?: string | undefined;
2152
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2153
+ color?: string | undefined;
2154
+ strokeDasharray?: string | undefined;
2155
+ } | {
2156
+ kind: "stat-line";
2157
+ stat: "max" | "min" | "median" | "average" | "p90";
2158
+ axis?: "x" | "y" | undefined;
2159
+ series?: string | undefined;
2160
+ label?: string | undefined;
2161
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2162
+ color?: string | undefined;
2163
+ strokeDasharray?: string | undefined;
2164
+ } | {
2165
+ kind: "reference-area";
2166
+ axis: "x" | "y";
2167
+ from: string | number;
2168
+ to: string | number;
2169
+ label?: string | undefined;
2170
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2171
+ color?: string | undefined;
2172
+ } | {
2173
+ kind: "reference-point";
2174
+ x: string | number;
2175
+ y: number;
2176
+ label?: string | undefined;
2177
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2178
+ color?: string | undefined;
2179
+ })[] | undefined;
2180
+ showValueLabels?: boolean | undefined;
2181
+ xAxisLabel?: string | undefined;
2182
+ yAxisLabel?: string | undefined;
2183
+ stacked?: boolean | undefined;
2184
+ } & {
2185
+ series: {
2186
+ key: string;
2187
+ label?: string | undefined;
2188
+ axis?: "left" | "right" | undefined;
2189
+ }[];
2190
+ }), {
2191
+ type: "area";
2192
+ data: {
2193
+ [x: string]: unknown;
2194
+ x: string | number;
2195
+ y?: number | undefined;
2196
+ }[];
2197
+ title?: string | undefined;
2198
+ height?: number | undefined;
2199
+ series?: {
2200
+ key: string;
2201
+ label?: string | undefined;
2202
+ axis?: "left" | "right" | undefined;
2203
+ }[] | undefined;
2204
+ rightAxisLabel?: string | undefined;
2205
+ annotations?: ({
2206
+ kind: "reference-line";
2207
+ axis: "x" | "y";
2208
+ value: string | number;
2209
+ label?: string | undefined;
2210
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2211
+ color?: string | undefined;
2212
+ strokeDasharray?: string | undefined;
2213
+ } | {
2214
+ kind: "stat-line";
2215
+ stat: "max" | "min" | "median" | "average" | "p90";
2216
+ axis?: "x" | "y" | undefined;
2217
+ series?: string | undefined;
2218
+ label?: string | undefined;
2219
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2220
+ color?: string | undefined;
2221
+ strokeDasharray?: string | undefined;
2222
+ } | {
2223
+ kind: "reference-area";
2224
+ axis: "x" | "y";
2225
+ from: string | number;
2226
+ to: string | number;
2227
+ label?: string | undefined;
2228
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2229
+ color?: string | undefined;
2230
+ } | {
2231
+ kind: "reference-point";
2232
+ x: string | number;
2233
+ y: number;
2234
+ label?: string | undefined;
2235
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2236
+ color?: string | undefined;
2237
+ })[] | undefined;
2238
+ showValueLabels?: boolean | undefined;
2239
+ xAxisLabel?: string | undefined;
2240
+ yAxisLabel?: string | undefined;
2241
+ stacked?: boolean | undefined;
2242
+ }>>, z.ZodPipe<z.ZodObject<{
723
2243
  title: z.ZodOptional<z.ZodString>;
724
2244
  height: z.ZodOptional<z.ZodNumber>;
2245
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
2246
+ key: z.ZodString;
2247
+ label: z.ZodOptional<z.ZodString>;
2248
+ axis: z.ZodOptional<z.ZodEnum<{
2249
+ left: "left";
2250
+ right: "right";
2251
+ }>>;
2252
+ }, z.core.$strip>>>;
2253
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
725
2254
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
726
2255
  kind: z.ZodLiteral<"reference-line">;
727
2256
  axis: z.ZodEnum<{
@@ -752,10 +2281,10 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
752
2281
  x: "x";
753
2282
  y: "y";
754
2283
  }>>;
755
- series: z.ZodOptional<z.ZodEnum<{
2284
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
756
2285
  line: "line";
757
2286
  bar: "bar";
758
- }>>;
2287
+ }>, z.ZodString]>>;
759
2288
  label: z.ZodOptional<z.ZodString>;
760
2289
  tone: z.ZodOptional<z.ZodEnum<{
761
2290
  info: "info";
@@ -803,9 +2332,178 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
803
2332
  type: z.ZodLiteral<"bar">;
804
2333
  data: z.ZodArray<z.ZodObject<{
805
2334
  name: z.ZodString;
806
- value: z.ZodNumber;
807
- }, z.core.$strip>>;
808
- }, z.core.$strip>, z.ZodObject<{
2335
+ value: z.ZodOptional<z.ZodNumber>;
2336
+ }, z.core.$loose>>;
2337
+ stacked: z.ZodOptional<z.ZodBoolean>;
2338
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
2339
+ type: "bar";
2340
+ data: {
2341
+ [x: string]: unknown;
2342
+ name: string;
2343
+ value?: number | undefined;
2344
+ }[];
2345
+ title?: string | undefined;
2346
+ height?: number | undefined;
2347
+ series?: {
2348
+ key: string;
2349
+ label?: string | undefined;
2350
+ axis?: "left" | "right" | undefined;
2351
+ }[] | undefined;
2352
+ rightAxisLabel?: string | undefined;
2353
+ annotations?: ({
2354
+ kind: "reference-line";
2355
+ axis: "x" | "y";
2356
+ value: string | number;
2357
+ label?: string | undefined;
2358
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2359
+ color?: string | undefined;
2360
+ strokeDasharray?: string | undefined;
2361
+ } | {
2362
+ kind: "stat-line";
2363
+ stat: "max" | "min" | "median" | "average" | "p90";
2364
+ axis?: "x" | "y" | undefined;
2365
+ series?: string | undefined;
2366
+ label?: string | undefined;
2367
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2368
+ color?: string | undefined;
2369
+ strokeDasharray?: string | undefined;
2370
+ } | {
2371
+ kind: "reference-area";
2372
+ axis: "x" | "y";
2373
+ from: string | number;
2374
+ to: string | number;
2375
+ label?: string | undefined;
2376
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2377
+ color?: string | undefined;
2378
+ } | {
2379
+ kind: "reference-point";
2380
+ x: string | number;
2381
+ y: number;
2382
+ label?: string | undefined;
2383
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2384
+ color?: string | undefined;
2385
+ })[] | undefined;
2386
+ showValueLabels?: boolean | undefined;
2387
+ xAxisLabel?: string | undefined;
2388
+ yAxisLabel?: string | undefined;
2389
+ stacked?: boolean | undefined;
2390
+ }, "data" | "series"> & {
2391
+ data: {
2392
+ name: string;
2393
+ value: number;
2394
+ }[];
2395
+ series?: undefined;
2396
+ }) | ({
2397
+ type: "bar";
2398
+ data: {
2399
+ [x: string]: unknown;
2400
+ name: string;
2401
+ value?: number | undefined;
2402
+ }[];
2403
+ title?: string | undefined;
2404
+ height?: number | undefined;
2405
+ series?: {
2406
+ key: string;
2407
+ label?: string | undefined;
2408
+ axis?: "left" | "right" | undefined;
2409
+ }[] | undefined;
2410
+ rightAxisLabel?: string | undefined;
2411
+ annotations?: ({
2412
+ kind: "reference-line";
2413
+ axis: "x" | "y";
2414
+ value: string | number;
2415
+ label?: string | undefined;
2416
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2417
+ color?: string | undefined;
2418
+ strokeDasharray?: string | undefined;
2419
+ } | {
2420
+ kind: "stat-line";
2421
+ stat: "max" | "min" | "median" | "average" | "p90";
2422
+ axis?: "x" | "y" | undefined;
2423
+ series?: string | undefined;
2424
+ label?: string | undefined;
2425
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2426
+ color?: string | undefined;
2427
+ strokeDasharray?: string | undefined;
2428
+ } | {
2429
+ kind: "reference-area";
2430
+ axis: "x" | "y";
2431
+ from: string | number;
2432
+ to: string | number;
2433
+ label?: string | undefined;
2434
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2435
+ color?: string | undefined;
2436
+ } | {
2437
+ kind: "reference-point";
2438
+ x: string | number;
2439
+ y: number;
2440
+ label?: string | undefined;
2441
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2442
+ color?: string | undefined;
2443
+ })[] | undefined;
2444
+ showValueLabels?: boolean | undefined;
2445
+ xAxisLabel?: string | undefined;
2446
+ yAxisLabel?: string | undefined;
2447
+ stacked?: boolean | undefined;
2448
+ } & {
2449
+ series: {
2450
+ key: string;
2451
+ label?: string | undefined;
2452
+ axis?: "left" | "right" | undefined;
2453
+ }[];
2454
+ }), {
2455
+ type: "bar";
2456
+ data: {
2457
+ [x: string]: unknown;
2458
+ name: string;
2459
+ value?: number | undefined;
2460
+ }[];
2461
+ title?: string | undefined;
2462
+ height?: number | undefined;
2463
+ series?: {
2464
+ key: string;
2465
+ label?: string | undefined;
2466
+ axis?: "left" | "right" | undefined;
2467
+ }[] | undefined;
2468
+ rightAxisLabel?: string | undefined;
2469
+ annotations?: ({
2470
+ kind: "reference-line";
2471
+ axis: "x" | "y";
2472
+ value: string | number;
2473
+ label?: string | undefined;
2474
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2475
+ color?: string | undefined;
2476
+ strokeDasharray?: string | undefined;
2477
+ } | {
2478
+ kind: "stat-line";
2479
+ stat: "max" | "min" | "median" | "average" | "p90";
2480
+ axis?: "x" | "y" | undefined;
2481
+ series?: string | undefined;
2482
+ label?: string | undefined;
2483
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2484
+ color?: string | undefined;
2485
+ strokeDasharray?: string | undefined;
2486
+ } | {
2487
+ kind: "reference-area";
2488
+ axis: "x" | "y";
2489
+ from: string | number;
2490
+ to: string | number;
2491
+ label?: string | undefined;
2492
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2493
+ color?: string | undefined;
2494
+ } | {
2495
+ kind: "reference-point";
2496
+ x: string | number;
2497
+ y: number;
2498
+ label?: string | undefined;
2499
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2500
+ color?: string | undefined;
2501
+ })[] | undefined;
2502
+ showValueLabels?: boolean | undefined;
2503
+ xAxisLabel?: string | undefined;
2504
+ yAxisLabel?: string | undefined;
2505
+ stacked?: boolean | undefined;
2506
+ }>>, z.ZodObject<{
809
2507
  title: z.ZodOptional<z.ZodString>;
810
2508
  height: z.ZodOptional<z.ZodNumber>;
811
2509
  type: z.ZodLiteral<"pie">;
@@ -846,10 +2544,10 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
846
2544
  x: "x";
847
2545
  y: "y";
848
2546
  }>>;
849
- series: z.ZodOptional<z.ZodEnum<{
2547
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
850
2548
  line: "line";
851
2549
  bar: "bar";
852
- }>>;
2550
+ }>, z.ZodString]>>;
853
2551
  label: z.ZodOptional<z.ZodString>;
854
2552
  tone: z.ZodOptional<z.ZodEnum<{
855
2553
  info: "info";
@@ -907,9 +2605,22 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
907
2605
  subject: z.ZodString;
908
2606
  value: z.ZodNumber;
909
2607
  }, z.core.$strip>>;
910
- }, z.core.$strip>, z.ZodObject<{
2608
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
911
2609
  title: z.ZodOptional<z.ZodString>;
912
2610
  height: z.ZodOptional<z.ZodNumber>;
2611
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
2612
+ key: z.ZodString;
2613
+ label: z.ZodOptional<z.ZodString>;
2614
+ axis: z.ZodOptional<z.ZodEnum<{
2615
+ left: "left";
2616
+ right: "right";
2617
+ }>>;
2618
+ kind: z.ZodEnum<{
2619
+ line: "line";
2620
+ bar: "bar";
2621
+ }>;
2622
+ }, z.core.$strip>>>;
2623
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
913
2624
  annotations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
914
2625
  kind: z.ZodLiteral<"reference-line">;
915
2626
  axis: z.ZodEnum<{
@@ -940,10 +2651,10 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
940
2651
  x: "x";
941
2652
  y: "y";
942
2653
  }>>;
943
- series: z.ZodOptional<z.ZodEnum<{
2654
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
944
2655
  line: "line";
945
2656
  bar: "bar";
946
- }>>;
2657
+ }>, z.ZodString]>>;
947
2658
  label: z.ZodOptional<z.ZodString>;
948
2659
  tone: z.ZodOptional<z.ZodEnum<{
949
2660
  info: "info";
@@ -991,12 +2702,195 @@ export declare const chartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
991
2702
  type: z.ZodLiteral<"composed">;
992
2703
  data: z.ZodArray<z.ZodObject<{
993
2704
  name: z.ZodString;
994
- barValue: z.ZodNumber;
995
- lineValue: z.ZodNumber;
996
- }, z.core.$strip>>;
2705
+ barValue: z.ZodOptional<z.ZodNumber>;
2706
+ lineValue: z.ZodOptional<z.ZodNumber>;
2707
+ }, z.core.$loose>>;
997
2708
  barLabel: z.ZodOptional<z.ZodString>;
998
2709
  lineLabel: z.ZodOptional<z.ZodString>;
999
- }, z.core.$strip>], "type">;
2710
+ stacked: z.ZodOptional<z.ZodBoolean>;
2711
+ }, z.core.$strip>, z.ZodTransform<(Omit<{
2712
+ type: "composed";
2713
+ data: {
2714
+ [x: string]: unknown;
2715
+ name: string;
2716
+ barValue?: number | undefined;
2717
+ lineValue?: number | undefined;
2718
+ }[];
2719
+ title?: string | undefined;
2720
+ height?: number | undefined;
2721
+ series?: {
2722
+ key: string;
2723
+ kind: "line" | "bar";
2724
+ label?: string | undefined;
2725
+ axis?: "left" | "right" | undefined;
2726
+ }[] | undefined;
2727
+ rightAxisLabel?: string | undefined;
2728
+ annotations?: ({
2729
+ kind: "reference-line";
2730
+ axis: "x" | "y";
2731
+ value: string | number;
2732
+ label?: string | undefined;
2733
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2734
+ color?: string | undefined;
2735
+ strokeDasharray?: string | undefined;
2736
+ } | {
2737
+ kind: "stat-line";
2738
+ stat: "max" | "min" | "median" | "average" | "p90";
2739
+ axis?: "x" | "y" | undefined;
2740
+ series?: string | undefined;
2741
+ label?: string | undefined;
2742
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2743
+ color?: string | undefined;
2744
+ strokeDasharray?: string | undefined;
2745
+ } | {
2746
+ kind: "reference-area";
2747
+ axis: "x" | "y";
2748
+ from: string | number;
2749
+ to: string | number;
2750
+ label?: string | undefined;
2751
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2752
+ color?: string | undefined;
2753
+ } | {
2754
+ kind: "reference-point";
2755
+ x: string | number;
2756
+ y: number;
2757
+ label?: string | undefined;
2758
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2759
+ color?: string | undefined;
2760
+ })[] | undefined;
2761
+ showValueLabels?: boolean | undefined;
2762
+ xAxisLabel?: string | undefined;
2763
+ yAxisLabel?: string | undefined;
2764
+ barLabel?: string | undefined;
2765
+ lineLabel?: string | undefined;
2766
+ stacked?: boolean | undefined;
2767
+ }, "data" | "series"> & {
2768
+ data: {
2769
+ name: string;
2770
+ barValue: number;
2771
+ lineValue: number;
2772
+ }[];
2773
+ series?: undefined;
2774
+ }) | ({
2775
+ type: "composed";
2776
+ data: {
2777
+ [x: string]: unknown;
2778
+ name: string;
2779
+ barValue?: number | undefined;
2780
+ lineValue?: number | undefined;
2781
+ }[];
2782
+ title?: string | undefined;
2783
+ height?: number | undefined;
2784
+ series?: {
2785
+ key: string;
2786
+ kind: "line" | "bar";
2787
+ label?: string | undefined;
2788
+ axis?: "left" | "right" | undefined;
2789
+ }[] | undefined;
2790
+ rightAxisLabel?: string | undefined;
2791
+ annotations?: ({
2792
+ kind: "reference-line";
2793
+ axis: "x" | "y";
2794
+ value: string | number;
2795
+ label?: string | undefined;
2796
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2797
+ color?: string | undefined;
2798
+ strokeDasharray?: string | undefined;
2799
+ } | {
2800
+ kind: "stat-line";
2801
+ stat: "max" | "min" | "median" | "average" | "p90";
2802
+ axis?: "x" | "y" | undefined;
2803
+ series?: string | undefined;
2804
+ label?: string | undefined;
2805
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2806
+ color?: string | undefined;
2807
+ strokeDasharray?: string | undefined;
2808
+ } | {
2809
+ kind: "reference-area";
2810
+ axis: "x" | "y";
2811
+ from: string | number;
2812
+ to: string | number;
2813
+ label?: string | undefined;
2814
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2815
+ color?: string | undefined;
2816
+ } | {
2817
+ kind: "reference-point";
2818
+ x: string | number;
2819
+ y: number;
2820
+ label?: string | undefined;
2821
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2822
+ color?: string | undefined;
2823
+ })[] | undefined;
2824
+ showValueLabels?: boolean | undefined;
2825
+ xAxisLabel?: string | undefined;
2826
+ yAxisLabel?: string | undefined;
2827
+ barLabel?: string | undefined;
2828
+ lineLabel?: string | undefined;
2829
+ stacked?: boolean | undefined;
2830
+ } & {
2831
+ series: {
2832
+ key: string;
2833
+ kind: "line" | "bar";
2834
+ label?: string | undefined;
2835
+ axis?: "left" | "right" | undefined;
2836
+ }[];
2837
+ }), {
2838
+ type: "composed";
2839
+ data: {
2840
+ [x: string]: unknown;
2841
+ name: string;
2842
+ barValue?: number | undefined;
2843
+ lineValue?: number | undefined;
2844
+ }[];
2845
+ title?: string | undefined;
2846
+ height?: number | undefined;
2847
+ series?: {
2848
+ key: string;
2849
+ kind: "line" | "bar";
2850
+ label?: string | undefined;
2851
+ axis?: "left" | "right" | undefined;
2852
+ }[] | undefined;
2853
+ rightAxisLabel?: string | undefined;
2854
+ annotations?: ({
2855
+ kind: "reference-line";
2856
+ axis: "x" | "y";
2857
+ value: string | number;
2858
+ label?: string | undefined;
2859
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2860
+ color?: string | undefined;
2861
+ strokeDasharray?: string | undefined;
2862
+ } | {
2863
+ kind: "stat-line";
2864
+ stat: "max" | "min" | "median" | "average" | "p90";
2865
+ axis?: "x" | "y" | undefined;
2866
+ series?: string | undefined;
2867
+ label?: string | undefined;
2868
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2869
+ color?: string | undefined;
2870
+ strokeDasharray?: string | undefined;
2871
+ } | {
2872
+ kind: "reference-area";
2873
+ axis: "x" | "y";
2874
+ from: string | number;
2875
+ to: string | number;
2876
+ label?: string | undefined;
2877
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2878
+ color?: string | undefined;
2879
+ } | {
2880
+ kind: "reference-point";
2881
+ x: string | number;
2882
+ y: number;
2883
+ label?: string | undefined;
2884
+ tone?: "info" | "success" | "warning" | "neutral" | "danger" | undefined;
2885
+ color?: string | undefined;
2886
+ })[] | undefined;
2887
+ showValueLabels?: boolean | undefined;
2888
+ xAxisLabel?: string | undefined;
2889
+ yAxisLabel?: string | undefined;
2890
+ barLabel?: string | undefined;
2891
+ lineLabel?: string | undefined;
2892
+ stacked?: boolean | undefined;
2893
+ }>>], "type">;
1000
2894
  export declare const generateChartInputSchema: z.ZodObject<{
1001
2895
  type: z.ZodEnum<{
1002
2896
  area: "area";
@@ -1013,6 +2907,7 @@ export declare const generateChartInputSchema: z.ZodObject<{
1013
2907
  yAxisLabel: z.ZodOptional<z.ZodString>;
1014
2908
  barLabel: z.ZodOptional<z.ZodString>;
1015
2909
  lineLabel: z.ZodOptional<z.ZodString>;
2910
+ rightAxisLabel: z.ZodOptional<z.ZodString>;
1016
2911
  data: z.ZodArray<z.ZodObject<{
1017
2912
  x: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1018
2913
  y: z.ZodOptional<z.ZodNumber>;
@@ -1021,7 +2916,20 @@ export declare const generateChartInputSchema: z.ZodObject<{
1021
2916
  subject: z.ZodOptional<z.ZodString>;
1022
2917
  barValue: z.ZodOptional<z.ZodNumber>;
1023
2918
  lineValue: z.ZodOptional<z.ZodNumber>;
1024
- }, z.core.$strip>>;
2919
+ }, z.core.$loose>>;
2920
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
2921
+ key: z.ZodString;
2922
+ label: z.ZodOptional<z.ZodString>;
2923
+ axis: z.ZodOptional<z.ZodEnum<{
2924
+ left: "left";
2925
+ right: "right";
2926
+ }>>;
2927
+ kind: z.ZodOptional<z.ZodEnum<{
2928
+ line: "line";
2929
+ bar: "bar";
2930
+ }>>;
2931
+ }, z.core.$strip>>>;
2932
+ stacked: z.ZodOptional<z.ZodBoolean>;
1025
2933
  annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1026
2934
  kind: z.ZodEnum<{
1027
2935
  "reference-line": "reference-line";
@@ -1045,10 +2953,10 @@ export declare const generateChartInputSchema: z.ZodObject<{
1045
2953
  average: "average";
1046
2954
  p90: "p90";
1047
2955
  }>>;
1048
- series: z.ZodOptional<z.ZodEnum<{
2956
+ series: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1049
2957
  line: "line";
1050
2958
  bar: "bar";
1051
- }>>;
2959
+ }>, z.ZodString]>>;
1052
2960
  label: z.ZodOptional<z.ZodString>;
1053
2961
  tone: z.ZodOptional<z.ZodEnum<{
1054
2962
  info: "info";
@@ -1062,15 +2970,13 @@ export declare const generateChartInputSchema: z.ZodObject<{
1062
2970
  }, z.core.$strip>>>;
1063
2971
  showValueLabels: z.ZodOptional<z.ZodBoolean>;
1064
2972
  }, z.core.$strip>;
1065
- export type LineChartData = z.infer<typeof lineChartSchema>;
1066
- export type AreaChartData = z.infer<typeof areaChartSchema>;
1067
- export type BarChartData = z.infer<typeof barChartSchema>;
1068
2973
  export type PieChartData = z.infer<typeof pieChartSchema>;
1069
2974
  export type ScatterChartData = z.infer<typeof scatterChartSchema>;
1070
2975
  export type RadarChartData = z.infer<typeof radarChartSchema>;
1071
- export type ComposedChartData = z.infer<typeof composedChartSchema>;
1072
2976
  export type ChartData = z.infer<typeof chartSchema>;
1073
2977
  export type ChartType = ChartData["type"];
2978
+ export type ChartSeries = z.infer<typeof chartSeriesSchema>;
2979
+ export type ComposedChartSeries = z.infer<typeof composedChartSeriesSchema>;
1074
2980
  export type Annotation = z.infer<typeof annotationSchema>;
1075
2981
  export type AnnotationTone = z.infer<typeof annotationToneSchema>;
1076
2982
  export type AnnotationStat = z.infer<typeof annotationStatSchema>;