@glyphjs/schemas 0.9.6 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1903,6 +1903,131 @@ declare const annotateSchema: z.ZodObject<{
1903
1903
  }[] | undefined;
1904
1904
  }>;
1905
1905
 
1906
+ declare const sankeySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1907
+ title: z.ZodOptional<z.ZodString>;
1908
+ nodes: z.ZodArray<z.ZodObject<{
1909
+ id: z.ZodString;
1910
+ label: z.ZodString;
1911
+ color: z.ZodOptional<z.ZodString>;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ id: string;
1914
+ label: string;
1915
+ color?: string | undefined;
1916
+ }, {
1917
+ id: string;
1918
+ label: string;
1919
+ color?: string | undefined;
1920
+ }>, "many">;
1921
+ flows: z.ZodArray<z.ZodObject<{
1922
+ from: z.ZodString;
1923
+ to: z.ZodString;
1924
+ value: z.ZodNumber;
1925
+ label: z.ZodOptional<z.ZodString>;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ value: number;
1928
+ from: string;
1929
+ to: string;
1930
+ label?: string | undefined;
1931
+ }, {
1932
+ value: number;
1933
+ from: string;
1934
+ to: string;
1935
+ label?: string | undefined;
1936
+ }>, "many">;
1937
+ orientation: z.ZodDefault<z.ZodEnum<["left-right", "top-down"]>>;
1938
+ unit: z.ZodOptional<z.ZodString>;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ nodes: {
1941
+ id: string;
1942
+ label: string;
1943
+ color?: string | undefined;
1944
+ }[];
1945
+ orientation: "top-down" | "left-right";
1946
+ flows: {
1947
+ value: number;
1948
+ from: string;
1949
+ to: string;
1950
+ label?: string | undefined;
1951
+ }[];
1952
+ title?: string | undefined;
1953
+ unit?: string | undefined;
1954
+ }, {
1955
+ nodes: {
1956
+ id: string;
1957
+ label: string;
1958
+ color?: string | undefined;
1959
+ }[];
1960
+ flows: {
1961
+ value: number;
1962
+ from: string;
1963
+ to: string;
1964
+ label?: string | undefined;
1965
+ }[];
1966
+ title?: string | undefined;
1967
+ orientation?: "top-down" | "left-right" | undefined;
1968
+ unit?: string | undefined;
1969
+ }>, {
1970
+ nodes: {
1971
+ id: string;
1972
+ label: string;
1973
+ color?: string | undefined;
1974
+ }[];
1975
+ orientation: "top-down" | "left-right";
1976
+ flows: {
1977
+ value: number;
1978
+ from: string;
1979
+ to: string;
1980
+ label?: string | undefined;
1981
+ }[];
1982
+ title?: string | undefined;
1983
+ unit?: string | undefined;
1984
+ }, {
1985
+ nodes: {
1986
+ id: string;
1987
+ label: string;
1988
+ color?: string | undefined;
1989
+ }[];
1990
+ flows: {
1991
+ value: number;
1992
+ from: string;
1993
+ to: string;
1994
+ label?: string | undefined;
1995
+ }[];
1996
+ title?: string | undefined;
1997
+ orientation?: "top-down" | "left-right" | undefined;
1998
+ unit?: string | undefined;
1999
+ }>, {
2000
+ nodes: {
2001
+ id: string;
2002
+ label: string;
2003
+ color?: string | undefined;
2004
+ }[];
2005
+ orientation: "top-down" | "left-right";
2006
+ flows: {
2007
+ value: number;
2008
+ from: string;
2009
+ to: string;
2010
+ label?: string | undefined;
2011
+ }[];
2012
+ title?: string | undefined;
2013
+ unit?: string | undefined;
2014
+ }, {
2015
+ nodes: {
2016
+ id: string;
2017
+ label: string;
2018
+ color?: string | undefined;
2019
+ }[];
2020
+ flows: {
2021
+ value: number;
2022
+ from: string;
2023
+ to: string;
2024
+ label?: string | undefined;
2025
+ }[];
2026
+ title?: string | undefined;
2027
+ orientation?: "top-down" | "left-right" | undefined;
2028
+ unit?: string | undefined;
2029
+ }>;
2030
+
1906
2031
  declare const columnsSchema: z.ZodObject<{
1907
2032
  children: z.ZodArray<z.ZodString, "many">;
1908
2033
  ratio: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
@@ -1945,6 +2070,316 @@ declare const panelSchema: z.ZodObject<{
1945
2070
  padding?: string | undefined;
1946
2071
  }>;
1947
2072
 
2073
+ declare const heatmapSchema: z.ZodEffects<z.ZodObject<{
2074
+ title: z.ZodOptional<z.ZodString>;
2075
+ rows: z.ZodArray<z.ZodString, "many">;
2076
+ cols: z.ZodArray<z.ZodString, "many">;
2077
+ values: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">, "many">;
2078
+ scale: z.ZodDefault<z.ZodEnum<["sequential", "diverging"]>>;
2079
+ domain: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2080
+ unit: z.ZodOptional<z.ZodString>;
2081
+ showValues: z.ZodDefault<z.ZodBoolean>;
2082
+ legend: z.ZodDefault<z.ZodBoolean>;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ values: (number | null)[][];
2085
+ rows: string[];
2086
+ legend: boolean;
2087
+ scale: "sequential" | "diverging";
2088
+ cols: string[];
2089
+ showValues: boolean;
2090
+ title?: string | undefined;
2091
+ unit?: string | undefined;
2092
+ domain?: [number, number] | undefined;
2093
+ }, {
2094
+ values: (number | null)[][];
2095
+ rows: string[];
2096
+ cols: string[];
2097
+ legend?: boolean | undefined;
2098
+ title?: string | undefined;
2099
+ unit?: string | undefined;
2100
+ scale?: "sequential" | "diverging" | undefined;
2101
+ domain?: [number, number] | undefined;
2102
+ showValues?: boolean | undefined;
2103
+ }>, {
2104
+ values: (number | null)[][];
2105
+ rows: string[];
2106
+ legend: boolean;
2107
+ scale: "sequential" | "diverging";
2108
+ cols: string[];
2109
+ showValues: boolean;
2110
+ title?: string | undefined;
2111
+ unit?: string | undefined;
2112
+ domain?: [number, number] | undefined;
2113
+ }, {
2114
+ values: (number | null)[][];
2115
+ rows: string[];
2116
+ cols: string[];
2117
+ legend?: boolean | undefined;
2118
+ title?: string | undefined;
2119
+ unit?: string | undefined;
2120
+ scale?: "sequential" | "diverging" | undefined;
2121
+ domain?: [number, number] | undefined;
2122
+ showValues?: boolean | undefined;
2123
+ }>;
2124
+
2125
+ declare const funnelSchema: z.ZodEffects<z.ZodObject<{
2126
+ title: z.ZodOptional<z.ZodString>;
2127
+ stages: z.ZodArray<z.ZodObject<{
2128
+ label: z.ZodString;
2129
+ value: z.ZodNumber;
2130
+ description: z.ZodOptional<z.ZodString>;
2131
+ }, "strip", z.ZodTypeAny, {
2132
+ value: number;
2133
+ label: string;
2134
+ description?: string | undefined;
2135
+ }, {
2136
+ value: number;
2137
+ label: string;
2138
+ description?: string | undefined;
2139
+ }>, "many">;
2140
+ showConversion: z.ZodDefault<z.ZodBoolean>;
2141
+ orientation: z.ZodDefault<z.ZodEnum<["vertical", "horizontal"]>>;
2142
+ unit: z.ZodOptional<z.ZodString>;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ orientation: "vertical" | "horizontal";
2145
+ stages: {
2146
+ value: number;
2147
+ label: string;
2148
+ description?: string | undefined;
2149
+ }[];
2150
+ showConversion: boolean;
2151
+ title?: string | undefined;
2152
+ unit?: string | undefined;
2153
+ }, {
2154
+ stages: {
2155
+ value: number;
2156
+ label: string;
2157
+ description?: string | undefined;
2158
+ }[];
2159
+ title?: string | undefined;
2160
+ orientation?: "vertical" | "horizontal" | undefined;
2161
+ unit?: string | undefined;
2162
+ showConversion?: boolean | undefined;
2163
+ }>, {
2164
+ orientation: "vertical" | "horizontal";
2165
+ stages: {
2166
+ value: number;
2167
+ label: string;
2168
+ description?: string | undefined;
2169
+ }[];
2170
+ showConversion: boolean;
2171
+ title?: string | undefined;
2172
+ unit?: string | undefined;
2173
+ }, {
2174
+ stages: {
2175
+ value: number;
2176
+ label: string;
2177
+ description?: string | undefined;
2178
+ }[];
2179
+ title?: string | undefined;
2180
+ orientation?: "vertical" | "horizontal" | undefined;
2181
+ unit?: string | undefined;
2182
+ showConversion?: boolean | undefined;
2183
+ }>;
2184
+
2185
+ declare const decisiontreeSchema: z.ZodEffects<z.ZodObject<{
2186
+ title: z.ZodOptional<z.ZodString>;
2187
+ nodes: z.ZodArray<z.ZodObject<{
2188
+ id: z.ZodString;
2189
+ type: z.ZodDefault<z.ZodEnum<["question", "outcome"]>>;
2190
+ label: z.ZodString;
2191
+ sentiment: z.ZodOptional<z.ZodEnum<["positive", "neutral", "negative"]>>;
2192
+ confidence: z.ZodOptional<z.ZodNumber>;
2193
+ }, "strip", z.ZodTypeAny, {
2194
+ type: "question" | "outcome";
2195
+ id: string;
2196
+ label: string;
2197
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2198
+ confidence?: number | undefined;
2199
+ }, {
2200
+ id: string;
2201
+ label: string;
2202
+ type?: "question" | "outcome" | undefined;
2203
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2204
+ confidence?: number | undefined;
2205
+ }>, "many">;
2206
+ edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
2207
+ from: z.ZodString;
2208
+ to: z.ZodString;
2209
+ condition: z.ZodOptional<z.ZodString>;
2210
+ }, "strip", z.ZodTypeAny, {
2211
+ from: string;
2212
+ to: string;
2213
+ condition?: string | undefined;
2214
+ }, {
2215
+ from: string;
2216
+ to: string;
2217
+ condition?: string | undefined;
2218
+ }>, "many">>;
2219
+ orientation: z.ZodDefault<z.ZodEnum<["left-right", "top-down"]>>;
2220
+ }, "strip", z.ZodTypeAny, {
2221
+ nodes: {
2222
+ type: "question" | "outcome";
2223
+ id: string;
2224
+ label: string;
2225
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2226
+ confidence?: number | undefined;
2227
+ }[];
2228
+ edges: {
2229
+ from: string;
2230
+ to: string;
2231
+ condition?: string | undefined;
2232
+ }[];
2233
+ orientation: "top-down" | "left-right";
2234
+ title?: string | undefined;
2235
+ }, {
2236
+ nodes: {
2237
+ id: string;
2238
+ label: string;
2239
+ type?: "question" | "outcome" | undefined;
2240
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2241
+ confidence?: number | undefined;
2242
+ }[];
2243
+ edges?: {
2244
+ from: string;
2245
+ to: string;
2246
+ condition?: string | undefined;
2247
+ }[] | undefined;
2248
+ title?: string | undefined;
2249
+ orientation?: "top-down" | "left-right" | undefined;
2250
+ }>, {
2251
+ nodes: {
2252
+ type: "question" | "outcome";
2253
+ id: string;
2254
+ label: string;
2255
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2256
+ confidence?: number | undefined;
2257
+ }[];
2258
+ edges: {
2259
+ from: string;
2260
+ to: string;
2261
+ condition?: string | undefined;
2262
+ }[];
2263
+ orientation: "top-down" | "left-right";
2264
+ title?: string | undefined;
2265
+ }, {
2266
+ nodes: {
2267
+ id: string;
2268
+ label: string;
2269
+ type?: "question" | "outcome" | undefined;
2270
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2271
+ confidence?: number | undefined;
2272
+ }[];
2273
+ edges?: {
2274
+ from: string;
2275
+ to: string;
2276
+ condition?: string | undefined;
2277
+ }[] | undefined;
2278
+ title?: string | undefined;
2279
+ orientation?: "top-down" | "left-right" | undefined;
2280
+ }>;
2281
+
2282
+ declare const gaugeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2283
+ label: z.ZodString;
2284
+ value: z.ZodNumber;
2285
+ min: z.ZodDefault<z.ZodNumber>;
2286
+ max: z.ZodNumber;
2287
+ unit: z.ZodOptional<z.ZodString>;
2288
+ zones: z.ZodOptional<z.ZodArray<z.ZodObject<{
2289
+ max: z.ZodNumber;
2290
+ label: z.ZodOptional<z.ZodString>;
2291
+ sentiment: z.ZodOptional<z.ZodEnum<["positive", "neutral", "negative"]>>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ max: number;
2294
+ label?: string | undefined;
2295
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2296
+ }, {
2297
+ max: number;
2298
+ label?: string | undefined;
2299
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2300
+ }>, "many">>;
2301
+ target: z.ZodOptional<z.ZodNumber>;
2302
+ shape: z.ZodDefault<z.ZodEnum<["semicircle", "full"]>>;
2303
+ }, "strip", z.ZodTypeAny, {
2304
+ value: number;
2305
+ label: string;
2306
+ min: number;
2307
+ max: number;
2308
+ shape: "semicircle" | "full";
2309
+ unit?: string | undefined;
2310
+ zones?: {
2311
+ max: number;
2312
+ label?: string | undefined;
2313
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2314
+ }[] | undefined;
2315
+ target?: number | undefined;
2316
+ }, {
2317
+ value: number;
2318
+ label: string;
2319
+ max: number;
2320
+ min?: number | undefined;
2321
+ shape?: "semicircle" | "full" | undefined;
2322
+ unit?: string | undefined;
2323
+ zones?: {
2324
+ max: number;
2325
+ label?: string | undefined;
2326
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2327
+ }[] | undefined;
2328
+ target?: number | undefined;
2329
+ }>, {
2330
+ value: number;
2331
+ label: string;
2332
+ min: number;
2333
+ max: number;
2334
+ shape: "semicircle" | "full";
2335
+ unit?: string | undefined;
2336
+ zones?: {
2337
+ max: number;
2338
+ label?: string | undefined;
2339
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2340
+ }[] | undefined;
2341
+ target?: number | undefined;
2342
+ }, {
2343
+ value: number;
2344
+ label: string;
2345
+ max: number;
2346
+ min?: number | undefined;
2347
+ shape?: "semicircle" | "full" | undefined;
2348
+ unit?: string | undefined;
2349
+ zones?: {
2350
+ max: number;
2351
+ label?: string | undefined;
2352
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2353
+ }[] | undefined;
2354
+ target?: number | undefined;
2355
+ }>, {
2356
+ value: number;
2357
+ label: string;
2358
+ min: number;
2359
+ max: number;
2360
+ shape: "semicircle" | "full";
2361
+ unit?: string | undefined;
2362
+ zones?: {
2363
+ max: number;
2364
+ label?: string | undefined;
2365
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2366
+ }[] | undefined;
2367
+ target?: number | undefined;
2368
+ }, {
2369
+ value: number;
2370
+ label: string;
2371
+ max: number;
2372
+ min?: number | undefined;
2373
+ shape?: "semicircle" | "full" | undefined;
2374
+ unit?: string | undefined;
2375
+ zones?: {
2376
+ max: number;
2377
+ label?: string | undefined;
2378
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
2379
+ }[] | undefined;
2380
+ target?: number | undefined;
2381
+ }>;
2382
+
1948
2383
  declare const componentSchemas: ReadonlyMap<string, z.ZodType>;
1949
2384
  declare function getJsonSchema(componentType: string): object | undefined;
1950
2385
 
@@ -1964,4 +2399,4 @@ declare function getJsonSchema(componentType: string): object | undefined;
1964
2399
  */
1965
2400
  declare const inlineContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
1966
2401
 
1967
- export { accordionSchema, annotateSchema, architectureSchema, calloutSchema, cardSchema, chartSchema, codediffSchema, columnsSchema, comparisonSchema, componentSchemas, equationSchema, filetreeSchema, flowchartSchema, formSchema, getJsonSchema, graphSchema, infographicSchema, inlineContentSchema, kanbanSchema, kpiSchema, matrixSchema, mindmapSchema, panelSchema, pollSchema, quizSchema, rankerSchema, ratingSchema, relationSchema, rowsSchema, sequenceSchema, sliderSchema, stepsSchema, tableSchema, tabsSchema, timelineSchema };
2402
+ export { accordionSchema, annotateSchema, architectureSchema, calloutSchema, cardSchema, chartSchema, codediffSchema, columnsSchema, comparisonSchema, componentSchemas, decisiontreeSchema, equationSchema, filetreeSchema, flowchartSchema, formSchema, funnelSchema, gaugeSchema, getJsonSchema, graphSchema, heatmapSchema, infographicSchema, inlineContentSchema, kanbanSchema, kpiSchema, matrixSchema, mindmapSchema, panelSchema, pollSchema, quizSchema, rankerSchema, ratingSchema, relationSchema, rowsSchema, sankeySchema, sequenceSchema, sliderSchema, stepsSchema, tableSchema, tabsSchema, timelineSchema };