@visactor/vseed 0.0.1 → 0.0.3

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 (126) hide show
  1. package/dist/builder/builder/build.d.ts +3 -0
  2. package/dist/builder/builder/buildAdvanced.d.ts +3 -0
  3. package/dist/builder/builder/buildSpec.d.ts +4 -0
  4. package/dist/builder/builder/builder.d.ts +18 -0
  5. package/dist/builder/builder/index.d.ts +1 -0
  6. package/dist/builder/index.d.ts +2 -0
  7. package/dist/builder/register/index.d.ts +1 -0
  8. package/dist/builder/register/register.d.ts +10 -0
  9. package/dist/dataReshape/constant.d.ts +5 -0
  10. package/dist/dataReshape/dataReshapeFor1D1M.d.ts +13 -0
  11. package/dist/dataReshape/dataReshapeFor2D1M.d.ts +13 -0
  12. package/dist/dataReshape/foldMeasures.d.ts +31 -0
  13. package/dist/dataReshape/index.d.ts +4 -0
  14. package/dist/dataReshape/unfoldDimensions.d.ts +19 -0
  15. package/dist/index.cjs +893 -4
  16. package/dist/index.d.ts +5 -1
  17. package/dist/index.js +768 -2
  18. package/dist/pipeline/advanced/index.d.ts +1 -0
  19. package/dist/pipeline/advanced/pipeline/area.d.ts +2 -0
  20. package/dist/pipeline/advanced/pipeline/areaPercent.d.ts +2 -0
  21. package/dist/pipeline/advanced/pipeline/bar.d.ts +2 -0
  22. package/dist/pipeline/advanced/pipeline/barParallel.d.ts +2 -0
  23. package/dist/pipeline/advanced/pipeline/barPercent.d.ts +2 -0
  24. package/dist/pipeline/advanced/pipeline/column.d.ts +2 -0
  25. package/dist/pipeline/advanced/pipeline/columnParallel.d.ts +2 -0
  26. package/dist/pipeline/advanced/pipeline/columnPercent.d.ts +2 -0
  27. package/dist/pipeline/advanced/pipeline/index.d.ts +9 -0
  28. package/dist/pipeline/advanced/pipeline/line.d.ts +2 -0
  29. package/dist/pipeline/advanced/pipes/encoding/encodingCartesian.d.ts +3 -0
  30. package/dist/pipeline/advanced/pipes/encoding/index.d.ts +1 -0
  31. package/dist/pipeline/advanced/pipes/index.d.ts +3 -0
  32. package/dist/pipeline/advanced/pipes/init/index.d.ts +1 -0
  33. package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +2 -0
  34. package/dist/pipeline/advanced/pipes/reshape/index.d.ts +2 -0
  35. package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D1M.d.ts +8 -0
  36. package/dist/pipeline/advanced/pipes/reshape/reshapeTo2D1M.d.ts +8 -0
  37. package/dist/pipeline/index.d.ts +3 -0
  38. package/dist/pipeline/spec/index.d.ts +1 -0
  39. package/dist/pipeline/spec/pipeline/area.d.ts +2 -0
  40. package/dist/pipeline/spec/pipeline/areaPercent.d.ts +2 -0
  41. package/dist/pipeline/spec/pipeline/bar.d.ts +2 -0
  42. package/dist/pipeline/spec/pipeline/barParallel.d.ts +2 -0
  43. package/dist/pipeline/spec/pipeline/barPercent.d.ts +2 -0
  44. package/dist/pipeline/spec/pipeline/column.d.ts +2 -0
  45. package/dist/pipeline/spec/pipeline/columnParallel.d.ts +2 -0
  46. package/dist/pipeline/spec/pipeline/columnPercent.d.ts +2 -0
  47. package/dist/pipeline/spec/pipeline/index.d.ts +9 -0
  48. package/dist/pipeline/spec/pipeline/line.d.ts +2 -0
  49. package/dist/pipeline/spec/pipes/axes/index.d.ts +4 -0
  50. package/dist/pipeline/spec/pipes/axes/xBand.d.ts +2 -0
  51. package/dist/pipeline/spec/pipes/axes/xLinear.d.ts +2 -0
  52. package/dist/pipeline/spec/pipes/axes/yBand.d.ts +2 -0
  53. package/dist/pipeline/spec/pipes/axes/yLinear.d.ts +2 -0
  54. package/dist/pipeline/spec/pipes/dataset/dataset.d.ts +2 -0
  55. package/dist/pipeline/spec/pipes/dataset/index.d.ts +1 -0
  56. package/dist/pipeline/spec/pipes/index.d.ts +5 -0
  57. package/dist/pipeline/spec/pipes/init/area.d.ts +2 -0
  58. package/dist/pipeline/spec/pipes/init/bar.d.ts +2 -0
  59. package/dist/pipeline/spec/pipes/init/barParallel.d.ts +2 -0
  60. package/dist/pipeline/spec/pipes/init/column.d.ts +2 -0
  61. package/dist/pipeline/spec/pipes/init/columnParallel.d.ts +2 -0
  62. package/dist/pipeline/spec/pipes/init/index.d.ts +6 -0
  63. package/dist/pipeline/spec/pipes/init/line.d.ts +2 -0
  64. package/dist/pipeline/spec/pipes/percent/index.d.ts +1 -0
  65. package/dist/pipeline/spec/pipes/percent/percent.d.ts +2 -0
  66. package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
  67. package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -0
  68. package/dist/pipeline/utils/index.d.ts +1 -0
  69. package/dist/pipeline/utils/pipeline.d.ts +9 -0
  70. package/dist/types/builder/builder.d.ts +10 -0
  71. package/dist/types/builder/index.d.ts +1 -0
  72. package/dist/types/chartType/area/area.d.ts +46 -0
  73. package/dist/types/chartType/area/index.d.ts +1 -0
  74. package/dist/types/chartType/areaPercent/areaPercent.d.ts +45 -0
  75. package/dist/types/chartType/areaPercent/index.d.ts +1 -0
  76. package/dist/types/chartType/bar/bar.d.ts +45 -0
  77. package/dist/types/chartType/bar/index.d.ts +1 -0
  78. package/dist/types/chartType/barParallel/barParallel.d.ts +45 -0
  79. package/dist/types/chartType/barParallel/index.d.ts +1 -0
  80. package/dist/types/chartType/barPercent/barPercent.d.ts +45 -0
  81. package/dist/types/chartType/barPercent/index.d.ts +1 -0
  82. package/dist/types/chartType/column/column.d.ts +45 -0
  83. package/dist/types/chartType/column/index.d.ts +1 -0
  84. package/dist/types/chartType/columnParallel/columnParallel.d.ts +45 -0
  85. package/dist/types/chartType/columnParallel/index.d.ts +1 -0
  86. package/dist/types/chartType/columnPercent/columnPercent.d.ts +45 -0
  87. package/dist/types/chartType/columnPercent/index.d.ts +1 -0
  88. package/dist/types/chartType/donut/donut.d.ts +45 -0
  89. package/dist/types/chartType/donut/index.d.ts +1 -0
  90. package/dist/types/chartType/dualAxis/dualAxis.d.ts +47 -0
  91. package/dist/types/chartType/dualAxis/index.d.ts +1 -0
  92. package/dist/types/chartType/index.d.ts +16 -0
  93. package/dist/types/chartType/line/index.d.ts +1 -0
  94. package/dist/types/chartType/line/line.d.ts +45 -0
  95. package/dist/types/chartType/pie/index.d.ts +1 -0
  96. package/dist/types/chartType/pie/pie.d.ts +45 -0
  97. package/dist/types/chartType/pivotTable/index.d.ts +1 -0
  98. package/dist/types/chartType/pivotTable/pivotTable.d.ts +45 -0
  99. package/dist/types/chartType/rose/index.d.ts +1 -0
  100. package/dist/types/chartType/rose/rose.d.ts +45 -0
  101. package/dist/types/chartType/table/index.d.ts +1 -0
  102. package/dist/types/chartType/table/table.d.ts +45 -0
  103. package/dist/types/chartType/vseedDSL.d.ts +16 -0
  104. package/dist/types/index.d.ts +4 -0
  105. package/dist/types/pipeline/advancedVSeed/advancedVSeed.d.ts +7 -0
  106. package/dist/types/pipeline/advancedVSeed/index.d.ts +1 -0
  107. package/dist/types/pipeline/index.d.ts +3 -0
  108. package/dist/types/pipeline/pipeline.d.ts +2 -0
  109. package/dist/types/pipeline/spec/index.d.ts +1 -0
  110. package/dist/types/pipeline/spec/spec.d.ts +9 -0
  111. package/dist/types/properties/advancedVSeed.d.ts +105 -0
  112. package/dist/types/properties/chartType/index.d.ts +2 -0
  113. package/dist/types/properties/chartType/zChartType.d.ts +36 -0
  114. package/dist/types/properties/dataset/dataset.d.ts +15 -0
  115. package/dist/types/properties/dataset/index.d.ts +2 -0
  116. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +34 -0
  117. package/dist/types/properties/datasetReshapeInfo/index.d.ts +2 -0
  118. package/dist/types/properties/dimensions/dimensions.d.ts +23 -0
  119. package/dist/types/properties/dimensions/index.d.ts +2 -0
  120. package/dist/types/properties/encoding/encoding.d.ts +19 -0
  121. package/dist/types/properties/encoding/index.d.ts +2 -0
  122. package/dist/types/properties/index.d.ts +8 -0
  123. package/dist/types/properties/measures/index.d.ts +2 -0
  124. package/dist/types/properties/measures/measures.d.ts +109 -0
  125. package/dist/types/properties/vseed.d.ts +94 -0
  126. package/package.json +13 -2
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ export type FoldInfo = {
3
+ foldMap: Record<string, string | undefined>;
4
+ measureId: string;
5
+ measureName: string;
6
+ measureValue: string;
7
+ };
8
+ export type UnfoldInfo = {
9
+ groupName: string;
10
+ colorItems: string[];
11
+ };
12
+ export declare const zFoldInfo: z.ZodObject<{
13
+ foldMap: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
14
+ measureId: z.ZodString;
15
+ measureName: z.ZodString;
16
+ measureValue: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export declare const zUnfoldInfo: z.ZodObject<{
19
+ colorItems: z.ZodArray<z.ZodString>;
20
+ groupName: z.ZodString;
21
+ }, z.core.$strip>;
22
+ export declare const zDatasetReshapeInfo: z.ZodObject<{
23
+ foldInfo: z.ZodObject<{
24
+ foldMap: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
25
+ measureId: z.ZodString;
26
+ measureName: z.ZodString;
27
+ measureValue: z.ZodString;
28
+ }, z.core.$strip>;
29
+ unfoldInfo: z.ZodObject<{
30
+ colorItems: z.ZodArray<z.ZodString>;
31
+ groupName: z.ZodString;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>;
34
+ export type DatasetReshapeInfo = z.infer<typeof zDatasetReshapeInfo>;
@@ -0,0 +1,2 @@
1
+ export { zDatasetReshapeInfo, zFoldInfo, zUnfoldInfo } from './datasetReshapeInfo';
2
+ export type { FoldInfo, UnfoldInfo } from './datasetReshapeInfo';
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const zDimension: z.ZodObject<{
3
+ id: z.ZodString;
4
+ alias: z.ZodOptional<z.ZodString>;
5
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ location: z.ZodEnum<{
7
+ dimension: "dimension";
8
+ rowDimension: "rowDimension";
9
+ columnDimension: "columnDimension";
10
+ }>;
11
+ }, z.core.$strip>;
12
+ export declare const zDimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ alias: z.ZodOptional<z.ZodString>;
15
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
+ location: z.ZodEnum<{
17
+ dimension: "dimension";
18
+ rowDimension: "rowDimension";
19
+ columnDimension: "columnDimension";
20
+ }>;
21
+ }, z.core.$strip>>>;
22
+ export type Dimension = z.infer<typeof zDimension>;
23
+ export type Dimensions = z.infer<typeof zDimensions>;
@@ -0,0 +1,2 @@
1
+ export type { Dimension, Dimensions } from './dimensions';
2
+ export { zDimension, zDimensions } from './dimensions';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ export declare const zEncoding: z.ZodArray<z.ZodObject<{
3
+ x: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
+ y: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ color: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ group: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ angle: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ radius: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ tooltip: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ }, z.core.$strip>>;
11
+ export type Encoding = Array<{
12
+ x?: string[];
13
+ y?: string[];
14
+ color?: string[];
15
+ group?: string[];
16
+ angle?: string[];
17
+ radius?: string[];
18
+ tooltip?: string[];
19
+ }>;
@@ -0,0 +1,2 @@
1
+ export type { Encoding } from './encoding';
2
+ export { zEncoding } from './encoding';
@@ -0,0 +1,8 @@
1
+ export * from './chartType';
2
+ export * from './dataset';
3
+ export * from './dimensions';
4
+ export * from './measures';
5
+ export * from './vseed';
6
+ export * from './advancedVSeed';
7
+ export * from './datasetReshapeInfo';
8
+ export * from './encoding';
@@ -0,0 +1,2 @@
1
+ export { zMeasure, zMeasureGroup, zMeasures } from './measures';
2
+ export type { Measures, Measure, MeasureGroup } from './measures';
@@ -0,0 +1,109 @@
1
+ import { z } from 'zod';
2
+ export declare const zMeasure: z.ZodObject<{
3
+ id: z.ZodString;
4
+ alias: z.ZodOptional<z.ZodString>;
5
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ format: z.ZodOptional<z.ZodObject<{
8
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9
+ number: "number";
10
+ percent: "percent";
11
+ permille: "permille";
12
+ }>>>;
13
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
16
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
18
+ round: "round";
19
+ floor: "floor";
20
+ ceil: "ceil";
21
+ }>>>;
22
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ export declare const zMeasureGroup: z.ZodObject<{
27
+ id: z.ZodString;
28
+ alias: z.ZodOptional<z.ZodString>;
29
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
30
+ children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
31
+ id: z.ZodString;
32
+ alias: z.ZodOptional<z.ZodString>;
33
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
34
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
35
+ format: z.ZodOptional<z.ZodObject<{
36
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
37
+ number: "number";
38
+ percent: "percent";
39
+ permille: "permille";
40
+ }>>>;
41
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
42
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
43
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
44
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
45
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
46
+ round: "round";
47
+ floor: "floor";
48
+ ceil: "ceil";
49
+ }>>>;
50
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
51
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>]>>>;
54
+ }, z.core.$strip>;
55
+ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
56
+ id: z.ZodString;
57
+ alias: z.ZodOptional<z.ZodString>;
58
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
59
+ children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
60
+ id: z.ZodString;
61
+ alias: z.ZodOptional<z.ZodString>;
62
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
63
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
64
+ format: z.ZodOptional<z.ZodObject<{
65
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
66
+ number: "number";
67
+ percent: "percent";
68
+ permille: "permille";
69
+ }>>>;
70
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
71
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
73
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
74
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
75
+ round: "round";
76
+ floor: "floor";
77
+ ceil: "ceil";
78
+ }>>>;
79
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
80
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>]>>>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ id: z.ZodString;
85
+ alias: z.ZodOptional<z.ZodString>;
86
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
87
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
88
+ format: z.ZodOptional<z.ZodObject<{
89
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
90
+ number: "number";
91
+ percent: "percent";
92
+ permille: "permille";
93
+ }>>>;
94
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
95
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
96
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
97
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
98
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
99
+ round: "round";
100
+ floor: "floor";
101
+ ceil: "ceil";
102
+ }>>>;
103
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
104
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
105
+ }, z.core.$strip>>;
106
+ }, z.core.$strip>]>>>;
107
+ export type Measures = z.infer<typeof zMeasures>;
108
+ export type Measure = z.infer<typeof zMeasure>;
109
+ export type MeasureGroup = z.infer<typeof zMeasureGroup>;
@@ -0,0 +1,94 @@
1
+ import { z } from 'zod';
2
+ import type { ChartType } from './chartType';
3
+ import type { Dataset } from './dataset';
4
+ import type { Dimensions } from './dimensions';
5
+ import type { Measures } from './measures';
6
+ export declare const zVSeed: z.ZodObject<{
7
+ chartType: z.ZodEnum<{
8
+ area: "area";
9
+ line: "line";
10
+ bar: "bar";
11
+ pie: "pie";
12
+ rose: "rose";
13
+ column: "column";
14
+ areaPercent: "areaPercent";
15
+ barPercent: "barPercent";
16
+ columnPercent: "columnPercent";
17
+ columnParallel: "columnParallel";
18
+ barParallel: "barParallel";
19
+ table: "table";
20
+ pivotTable: "pivotTable";
21
+ donut: "donut";
22
+ dualAxis: "dualAxis";
23
+ }>;
24
+ dataset: z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>;
25
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ alias: z.ZodOptional<z.ZodString>;
28
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
29
+ location: z.ZodEnum<{
30
+ dimension: "dimension";
31
+ rowDimension: "rowDimension";
32
+ columnDimension: "columnDimension";
33
+ }>;
34
+ }, z.core.$strip>>>;
35
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
36
+ id: z.ZodString;
37
+ alias: z.ZodOptional<z.ZodString>;
38
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
39
+ children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
40
+ id: z.ZodString;
41
+ alias: z.ZodOptional<z.ZodString>;
42
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
43
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
44
+ format: z.ZodOptional<z.ZodObject<{
45
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
46
+ number: "number";
47
+ percent: "percent";
48
+ permille: "permille";
49
+ }>>>;
50
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
51
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
52
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
53
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
54
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
55
+ round: "round";
56
+ floor: "floor";
57
+ ceil: "ceil";
58
+ }>>>;
59
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
60
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>]>>>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ id: z.ZodString;
65
+ alias: z.ZodOptional<z.ZodString>;
66
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
67
+ autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
68
+ format: z.ZodOptional<z.ZodObject<{
69
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
70
+ number: "number";
71
+ percent: "percent";
72
+ permille: "permille";
73
+ }>>>;
74
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
75
+ symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
76
+ thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
77
+ decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
78
+ round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
79
+ round: "round";
80
+ floor: "floor";
81
+ ceil: "ceil";
82
+ }>>>;
83
+ prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
84
+ suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>]>>>;
87
+ }, z.core.$strip>;
88
+ export type VSeed = {
89
+ chartType: ChartType;
90
+ dataset: Dataset;
91
+ dimensions?: Dimensions;
92
+ measures?: Measures;
93
+ };
94
+ export declare const VSeedJSONSchema: z.core.JSONSchema.JSONSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vseed",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -14,10 +14,19 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
+ "dependencies": {
18
+ "zod": "4.0.14"
19
+ },
20
+ "peerDependencies": {
21
+ "@visactor/vchart": ">2.0.0",
22
+ "@visactor/vtable": ">1.19.0"
23
+ },
17
24
  "devDependencies": {
18
25
  "@eslint/js": "^9.30.0",
26
+ "@rsdoctor/rspack-plugin": "^1.1.10",
19
27
  "@rslib/core": "^0.11.0",
20
28
  "@types/node": "^22.16.5",
29
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
21
30
  "eslint": "^9.30.0",
22
31
  "globals": "^16.2.0",
23
32
  "typescript": "^5.8.3",
@@ -25,8 +34,10 @@
25
34
  "vitest": "^3.2.4"
26
35
  },
27
36
  "scripts": {
28
- "build": "rslib build",
29
37
  "dev": "rslib build --watch",
38
+ "build": "rslib build",
39
+ "dev:rsdoctor": "RSDOCTOR=true rsbuild dev",
40
+ "build:rsdoctor": "RSDOCTOR=true rsbuild build",
30
41
  "format": "prettier --write .",
31
42
  "lint": "eslint .",
32
43
  "test": "vitest run"