@visactor/vbi 0.4.15 → 0.4.17

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 (66) hide show
  1. package/dist/builder/{sub-builders → features}/chart-type/chart-type-builder.d.ts +1 -1
  2. package/dist/builder/{sub-builders → features}/dimensions/dim-builder.d.ts +11 -11
  3. package/dist/builder/{sub-builders → features}/dimensions/dim-node-builder.d.ts +5 -1
  4. package/dist/builder/features/dimensions/dimension-utils.d.ts +4 -0
  5. package/dist/builder/{sub-builders/havingFilters → features/havingFilter}/having-builder.d.ts +15 -15
  6. package/dist/builder/{sub-builders/havingFilters → features/havingFilter}/having-group-builder.d.ts +4 -3
  7. package/dist/builder/{sub-builders/havingFilters → features/havingFilter}/having-node-builder.d.ts +2 -2
  8. package/dist/builder/features/havingFilter/having-utils.d.ts +9 -0
  9. package/dist/builder/features/havingFilter/index.d.ts +3 -0
  10. package/dist/builder/features/index.d.ts +9 -0
  11. package/dist/builder/features/limit/index.d.ts +1 -0
  12. package/dist/builder/features/limit/limit-builder.d.ts +31 -0
  13. package/dist/builder/features/locale/index.d.ts +1 -0
  14. package/dist/builder/features/locale/locale-builder.d.ts +31 -0
  15. package/dist/builder/{sub-builders → features}/measures/mea-builder.d.ts +10 -10
  16. package/dist/builder/{sub-builders → features}/measures/mea-node-builder.d.ts +5 -1
  17. package/dist/builder/features/measures/measure-utils.d.ts +4 -0
  18. package/dist/builder/features/theme/index.d.ts +1 -0
  19. package/dist/builder/features/theme/theme-builder.d.ts +31 -0
  20. package/dist/builder/features/undo-manager/index.d.ts +1 -0
  21. package/dist/builder/{sub-builders/whereFilters → features/whereFilter}/index.d.ts +1 -1
  22. package/dist/builder/{sub-builders/whereFilters → features/whereFilter}/where-builder.d.ts +14 -14
  23. package/dist/builder/{sub-builders/whereFilters → features/whereFilter}/where-group-builder.d.ts +2 -1
  24. package/dist/builder/{sub-builders/whereFilters → features/whereFilter}/where-node-builder.d.ts +6 -1
  25. package/dist/builder/features/whereFilter/where-utils.d.ts +9 -0
  26. package/dist/builder/index.d.ts +2 -3
  27. package/dist/builder/modules/apply-update.d.ts +2 -0
  28. package/dist/builder/modules/build-vquery.d.ts +4 -0
  29. package/dist/builder/modules/build-vseed.d.ts +8 -0
  30. package/dist/builder/modules/build.d.ts +3 -0
  31. package/dist/builder/modules/create-builder-features.d.ts +14 -0
  32. package/dist/builder/modules/encode-state-as-update.d.ts +2 -0
  33. package/dist/builder/modules/get-schema.d.ts +5 -0
  34. package/dist/builder/modules/index.d.ts +8 -0
  35. package/dist/builder/modules/is-empty.d.ts +2 -0
  36. package/dist/builder/vbi-builder.d.ts +13 -17
  37. package/dist/index.cjs +921 -598
  38. package/dist/index.d.ts +3 -2
  39. package/dist/index.js +904 -599
  40. package/dist/types/builder/VBIInterface.d.ts +7 -5
  41. package/dist/types/dsl/dimensions/dimensions.d.ts +2 -0
  42. package/dist/types/dsl/{havingFilters → havingFilter}/having.d.ts +10 -6
  43. package/dist/types/dsl/index.d.ts +4 -5
  44. package/dist/types/dsl/measures/measures.d.ts +18 -2
  45. package/dist/types/dsl/vbi/vbi.d.ts +42 -4
  46. package/dist/types/dsl/{whereFilters → whereFilter}/filters.d.ts +10 -6
  47. package/dist/utils/filter-guards.d.ts +5 -0
  48. package/dist/utils/index.d.ts +1 -0
  49. package/dist/vbi/create-vbi.d.ts +14 -0
  50. package/dist/vbi/from/from-vbi-dsl-input.d.ts +3 -0
  51. package/dist/vbi/from/set-base-dsl-fields.d.ts +3 -0
  52. package/dist/vbi/generate-empty-dsl.d.ts +3 -0
  53. package/dist/vbi/normalize/ensure-having-group.d.ts +2 -0
  54. package/dist/vbi/normalize/ensure-where-group.d.ts +2 -0
  55. package/dist/vbi/normalize/ensure-y-array.d.ts +3 -0
  56. package/dist/vbi/normalize/to-y-map.d.ts +3 -0
  57. package/dist/vbi/normalize/types.d.ts +5 -0
  58. package/dist/vbi.d.ts +14 -0
  59. package/package.json +5 -5
  60. package/dist/builder/sub-builders/havingFilters/index.d.ts +0 -3
  61. package/dist/builder/sub-builders/index.d.ts +0 -5
  62. package/dist/builder/vbi.d.ts +0 -16
  63. /package/dist/builder/{sub-builders → features}/chart-type/index.d.ts +0 -0
  64. /package/dist/builder/{sub-builders → features}/dimensions/index.d.ts +0 -0
  65. /package/dist/builder/{sub-builders → features}/measures/index.d.ts +0 -0
  66. /package/dist/builder/{undo-manager.d.ts → features/undo-manager/undo-manager.d.ts} +0 -0
@@ -1,9 +1,8 @@
1
1
  import type { VQueryDSL } from '@visactor/vquery';
2
2
  import type { VBIDSL } from '../dsl';
3
3
  import type { VSeedDSL } from '@visactor/vseed';
4
- import type { MeasuresBuilder, DimensionsBuilder, ChartTypeBuilder, HavingFiltersBuilder, WhereFiltersBuilder } from '../../builder/sub-builders';
4
+ import type { MeasuresBuilder, DimensionsBuilder, ChartTypeBuilder, HavingFilterBuilder, WhereFilterBuilder, ThemeBuilder, LocaleBuilder, LimitBuilder, UndoManager } from '../../builder/features';
5
5
  import type { Map, Doc } from 'yjs';
6
- import type { UndoManager } from '../../builder/undo-manager';
7
6
  export interface VBIBuilderInterface {
8
7
  doc: Doc;
9
8
  dsl: Map<any>;
@@ -11,12 +10,15 @@ export interface VBIBuilderInterface {
11
10
  chartType: ChartTypeBuilder;
12
11
  measures: MeasuresBuilder;
13
12
  dimensions: DimensionsBuilder;
14
- havingFilters: HavingFiltersBuilder;
15
- whereFilters: WhereFiltersBuilder;
13
+ havingFilter: HavingFilterBuilder;
14
+ whereFilter: WhereFilterBuilder;
15
+ theme: ThemeBuilder;
16
+ locale: LocaleBuilder;
17
+ limit: LimitBuilder;
16
18
  applyUpdate: (update: Uint8Array, origin?: any) => void;
17
19
  encodeStateAsUpdate: (targetStateVector?: Uint8Array) => Uint8Array;
18
20
  buildVSeed: () => Promise<VSeedDSL>;
19
21
  buildVQuery: () => VQueryDSL;
20
22
  build: () => VBIDSL;
21
- setLimit: (limit: number) => this;
23
+ isEmpty: () => boolean;
22
24
  }
@@ -1,10 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const zVBIDimensionSchema: z.ZodObject<{
3
+ id: z.ZodString;
3
4
  field: z.ZodString;
4
5
  alias: z.ZodString;
5
6
  }, z.core.$strip>;
6
7
  export declare const zVBIDimensionGroupSchema: z.ZodType<VBIDimensionGroup>;
7
8
  export declare const zVBIDimensionTree: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
9
+ id: z.ZodString;
8
10
  field: z.ZodString;
9
11
  alias: z.ZodString;
10
12
  }, z.core.$strip>, z.ZodType<VBIDimensionGroup, unknown, z.core.$ZodTypeInternals<VBIDimensionGroup, unknown>>]>>;
@@ -1,4 +1,8 @@
1
1
  import { z } from 'zod';
2
+ declare const zHavingLogicalOperator: z.ZodEnum<{
3
+ and: "and";
4
+ or: "or";
5
+ }>;
2
6
  export declare const zVBIHavingFilter: z.ZodObject<{
3
7
  id: z.ZodString;
4
8
  field: z.ZodString;
@@ -6,13 +10,13 @@ export declare const zVBIHavingFilter: z.ZodObject<{
6
10
  value: z.ZodOptional<z.ZodAny>;
7
11
  }, z.core.$strip>;
8
12
  export type VBIHavingFilter = z.infer<typeof zVBIHavingFilter>;
9
- export declare const zVBIHavingGroup: z.ZodType<VBIHavingGroup>;
10
- export declare const zVBIHavingClause: z.ZodType<VBIHavingClause>;
11
- export type VBIHavingGroup = {
13
+ type VBIHavingBranch = {
12
14
  id: string;
13
- op: 'and' | 'or';
15
+ op: z.infer<typeof zHavingLogicalOperator>;
14
16
  conditions: VBIHavingClause[];
15
17
  };
18
+ export type VBIHavingGroup = VBIHavingBranch;
16
19
  export type VBIHavingClause = VBIHavingFilter | VBIHavingGroup;
17
- export declare function isVBIHavingFilter(clause: VBIHavingClause): clause is VBIHavingFilter;
18
- export declare function isVBIHavingGroup(clause: VBIHavingClause): clause is VBIHavingGroup;
20
+ export declare const zVBIHavingGroup: z.ZodType<VBIHavingGroup>;
21
+ export declare const zVBIHavingClause: z.ZodType<VBIHavingClause>;
22
+ export {};
@@ -1,8 +1,7 @@
1
1
  export type { VBIDimensionTree, VBIDimensionGroup, VBIDimension } from './dimensions/dimensions';
2
2
  export type { VBIMeasureTree, VBIMeasureGroup, VBIMeasure } from './measures/measures';
3
- export type { VBIFilter, VBIWhereGroup, VBIWhereClause } from './whereFilters/filters';
4
- export { isVBIFilter, isVBIWhereGroup } from './whereFilters/filters';
5
- export type { VBIHavingFilter, VBIHavingGroup, VBIHavingClause } from './havingFilters/having';
6
- export { isVBIHavingFilter, isVBIHavingGroup } from './havingFilters/having';
3
+ export type { VBIFilter, VBIWhereGroup, VBIWhereClause } from './whereFilter/filters';
4
+ export type { VBIHavingFilter, VBIHavingGroup, VBIHavingClause } from './havingFilter/having';
7
5
  export type { VBIDSLTheme } from './theme/theme';
8
- export type { VBIDSL } from './vbi/vbi';
6
+ export type { VBIDSLLocale } from './locale/locale';
7
+ export type { VBIDSL, VBIDSLInput } from './vbi/vbi';
@@ -1,8 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  export declare const zVBIMeasure: z.ZodObject<{
3
+ id: z.ZodString;
3
4
  field: z.ZodString;
4
5
  alias: z.ZodString;
5
- encoding: z.ZodLiteral<"yAxis" | "xAxis" | "color" | "label" | "tooltip" | "size">;
6
+ encoding: z.ZodEnum<{
7
+ yAxis: "yAxis";
8
+ xAxis: "xAxis";
9
+ color: "color";
10
+ label: "label";
11
+ tooltip: "tooltip";
12
+ size: "size";
13
+ }>;
6
14
  aggregate: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
15
  func: z.ZodLiteral<"sum" | "count" | "avg" | "min" | "max">;
8
16
  }, z.core.$strip>, z.ZodObject<{
@@ -12,9 +20,17 @@ export declare const zVBIMeasure: z.ZodObject<{
12
20
  }, z.core.$strip>;
13
21
  export declare const zVBIMeasureGroup: z.ZodType<VBIMeasureGroup>;
14
22
  export declare const zVBIMeasureTree: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
23
+ id: z.ZodString;
15
24
  field: z.ZodString;
16
25
  alias: z.ZodString;
17
- encoding: z.ZodLiteral<"yAxis" | "xAxis" | "color" | "label" | "tooltip" | "size">;
26
+ encoding: z.ZodEnum<{
27
+ yAxis: "yAxis";
28
+ xAxis: "xAxis";
29
+ color: "color";
30
+ label: "label";
31
+ tooltip: "tooltip";
32
+ size: "size";
33
+ }>;
18
34
  aggregate: z.ZodDiscriminatedUnion<[z.ZodObject<{
19
35
  func: z.ZodLiteral<"sum" | "count" | "avg" | "min" | "max">;
20
36
  }, z.core.$strip>, z.ZodObject<{
@@ -3,13 +3,22 @@ export declare const zVBIDSL: z.ZodObject<{
3
3
  connectorId: z.ZodString;
4
4
  chartType: z.ZodCustom<any, any>;
5
5
  dimensions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
6
+ id: z.ZodString;
6
7
  field: z.ZodString;
7
8
  alias: z.ZodString;
8
9
  }, z.core.$strip>, z.ZodType<import("..").VBIDimensionGroup, unknown, z.core.$ZodTypeInternals<import("..").VBIDimensionGroup, unknown>>]>>;
9
10
  measures: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
11
+ id: z.ZodString;
10
12
  field: z.ZodString;
11
13
  alias: z.ZodString;
12
- encoding: z.ZodLiteral<"yAxis" | "xAxis" | "color" | "label" | "tooltip" | "size">;
14
+ encoding: z.ZodEnum<{
15
+ yAxis: "yAxis";
16
+ xAxis: "xAxis";
17
+ color: "color";
18
+ label: "label";
19
+ tooltip: "tooltip";
20
+ size: "size";
21
+ }>;
13
22
  aggregate: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
23
  func: z.ZodLiteral<"sum" | "count" | "avg" | "min" | "max">;
15
24
  }, z.core.$strip>, z.ZodObject<{
@@ -17,8 +26,36 @@ export declare const zVBIDSL: z.ZodObject<{
17
26
  quantile: z.ZodNumber;
18
27
  }, z.core.$strip>], "func">;
19
28
  }, z.core.$strip>, z.ZodType<import("..").VBIMeasureGroup, unknown, z.core.$ZodTypeInternals<import("..").VBIMeasureGroup, unknown>>]>>;
20
- havingFilters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodType<import("..").VBIHavingClause, unknown, z.core.$ZodTypeInternals<import("..").VBIHavingClause, unknown>>>>>;
21
- whereFilters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodType<import("..").VBIWhereClause, unknown, z.core.$ZodTypeInternals<import("..").VBIWhereClause, unknown>>>>>;
29
+ havingFilter: z.ZodDefault<z.ZodOptional<z.ZodType<{
30
+ id: string;
31
+ op: z.infer<z.ZodEnum<{
32
+ and: "and";
33
+ or: "or";
34
+ }>>;
35
+ conditions: import("..").VBIHavingClause[];
36
+ }, unknown, z.core.$ZodTypeInternals<{
37
+ id: string;
38
+ op: z.infer<z.ZodEnum<{
39
+ and: "and";
40
+ or: "or";
41
+ }>>;
42
+ conditions: import("..").VBIHavingClause[];
43
+ }, unknown>>>>;
44
+ whereFilter: z.ZodDefault<z.ZodOptional<z.ZodType<{
45
+ id: string;
46
+ op: z.infer<z.ZodEnum<{
47
+ and: "and";
48
+ or: "or";
49
+ }>>;
50
+ conditions: import("..").VBIWhereClause[];
51
+ }, unknown, z.core.$ZodTypeInternals<{
52
+ id: string;
53
+ op: z.infer<z.ZodEnum<{
54
+ and: "and";
55
+ or: "or";
56
+ }>>;
57
+ conditions: import("..").VBIWhereClause[];
58
+ }, unknown>>>>;
22
59
  theme: z.ZodEnum<{
23
60
  light: "light";
24
61
  dark: "dark";
@@ -30,4 +67,5 @@ export declare const zVBIDSL: z.ZodObject<{
30
67
  limit: z.ZodOptional<z.ZodNumber>;
31
68
  version: z.ZodNumber;
32
69
  }, z.core.$strip>;
33
- export type VBIDSL = z.infer<typeof zVBIDSL>;
70
+ export type VBIDSLInput = z.input<typeof zVBIDSL>;
71
+ export type VBIDSL = z.output<typeof zVBIDSL>;
@@ -1,4 +1,8 @@
1
1
  import { z } from 'zod';
2
+ declare const zWhereLogicalOperator: z.ZodEnum<{
3
+ and: "and";
4
+ or: "or";
5
+ }>;
2
6
  export declare const zVBIFilter: z.ZodObject<{
3
7
  id: z.ZodString;
4
8
  field: z.ZodString;
@@ -6,13 +10,13 @@ export declare const zVBIFilter: z.ZodObject<{
6
10
  value: z.ZodOptional<z.ZodAny>;
7
11
  }, z.core.$strip>;
8
12
  export type VBIFilter = z.infer<typeof zVBIFilter>;
9
- export declare const zVBIWhereGroup: z.ZodType<VBIWhereGroup>;
10
- export declare const zVBIWhereClause: z.ZodType<VBIWhereClause>;
11
- export type VBIWhereGroup = {
13
+ type VBIWhereBranch = {
12
14
  id: string;
13
- op: 'and' | 'or';
15
+ op: z.infer<typeof zWhereLogicalOperator>;
14
16
  conditions: VBIWhereClause[];
15
17
  };
18
+ export type VBIWhereGroup = VBIWhereBranch;
16
19
  export type VBIWhereClause = VBIFilter | VBIWhereGroup;
17
- export declare function isVBIFilter(clause: VBIWhereClause): clause is VBIFilter;
18
- export declare function isVBIWhereGroup(clause: VBIWhereClause): clause is VBIWhereGroup;
20
+ export declare const zVBIWhereGroup: z.ZodType<VBIWhereGroup>;
21
+ export declare const zVBIWhereClause: z.ZodType<VBIWhereClause>;
22
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { VBIFilter, VBIWhereClause, VBIWhereGroup, VBIHavingClause, VBIHavingFilter, VBIHavingGroup } from '../types/dsl';
2
+ export declare function isVBIFilter(clause: VBIWhereClause): clause is VBIFilter;
3
+ export declare function isVBIWhereGroup(clause: VBIWhereClause): clause is VBIWhereGroup;
4
+ export declare function isVBIHavingFilter(clause: VBIHavingClause): clause is VBIHavingFilter;
5
+ export declare function isVBIHavingGroup(clause: VBIHavingClause): clause is VBIHavingGroup;
@@ -1,2 +1,3 @@
1
1
  export * from './tree';
2
2
  export { id } from './id';
3
+ export * from './filter-guards';
@@ -0,0 +1,14 @@
1
+ export declare const createVBI: () => {
2
+ connectorMap: Map<string, {
3
+ discoverSchema: () => Promise<import("..").VBISchema>;
4
+ query: (queryProps: import("..").VBIQueryProps) => Promise<import("..").VBIQueryResult>;
5
+ } | (() => Promise<import("..").VBIConnector>)>;
6
+ registerConnector: (id: import("../types/connector/connector").VBIConnectorId, connector: import("..").VBIConnector | (() => Promise<import("..").VBIConnector>)) => void;
7
+ getConnector: (id: import("../types/connector/connector").VBIConnectorId) => Promise<{
8
+ discoverSchema: () => Promise<import("..").VBISchema>;
9
+ query: (queryProps: import("..").VBIQueryProps) => Promise<import("..").VBIQueryResult>;
10
+ }>;
11
+ generateEmptyDSL: (connectorId: import("../types/connector/connector").VBIConnectorId) => import("..").VBIDSL;
12
+ from: (vbi: import("..").VBIDSLInput) => import("..").VBIBuilder;
13
+ create: (vbi: import("..").VBIDSLInput) => import("..").VBIBuilder;
14
+ };
@@ -0,0 +1,3 @@
1
+ import type { VBIDSLInput } from '../../types';
2
+ import { VBIBuilder } from '../../builder';
3
+ export declare const fromVBIDSLInput: (vbi: VBIDSLInput) => VBIBuilder;
@@ -0,0 +1,3 @@
1
+ import * as Y from 'yjs';
2
+ import type { VBIDSLInput } from '../../types';
3
+ export declare const setBaseDSLFields: (dsl: Y.Map<any>, vbi: VBIDSLInput) => void;
@@ -0,0 +1,3 @@
1
+ import type { VBIConnectorId } from '../types/connector/connector';
2
+ import type { VBIDSL } from '../types';
3
+ export declare const generateEmptyDSL: (connectorId: VBIConnectorId) => VBIDSL;
@@ -0,0 +1,2 @@
1
+ import * as Y from 'yjs';
2
+ export declare const ensureHavingGroup: (havingFilter?: unknown) => Y.Map<any>;
@@ -0,0 +1,2 @@
1
+ import * as Y from 'yjs';
2
+ export declare const ensureWhereGroup: (whereFilter?: unknown) => Y.Map<any>;
@@ -0,0 +1,3 @@
1
+ import * as Y from 'yjs';
2
+ import { type EnsureIdMode } from './to-y-map';
3
+ export declare const ensureYArray: (arr: any, ensureId?: EnsureIdMode) => Y.Array<any>;
@@ -0,0 +1,3 @@
1
+ import * as Y from 'yjs';
2
+ export type EnsureIdMode = boolean | 'field';
3
+ export declare const toYMap: (obj: Record<string, any>, ensureId?: EnsureIdMode) => Y.Map<any>;
@@ -0,0 +1,5 @@
1
+ export interface FilterGroupInput {
2
+ id?: string;
3
+ op?: 'and' | 'or';
4
+ conditions?: any[];
5
+ }
package/dist/vbi.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ export declare const VBI: {
2
+ connectorMap: Map<string, {
3
+ discoverSchema: () => Promise<import("./types").VBISchema>;
4
+ query: (queryProps: import("./types").VBIQueryProps) => Promise<import("./types").VBIQueryResult>;
5
+ } | (() => Promise<import("./types").VBIConnector>)>;
6
+ registerConnector: (id: import("./types/connector/connector").VBIConnectorId, connector: import("./types").VBIConnector | (() => Promise<import("./types").VBIConnector>)) => void;
7
+ getConnector: (id: import("./types/connector/connector").VBIConnectorId) => Promise<{
8
+ discoverSchema: () => Promise<import("./types").VBISchema>;
9
+ query: (queryProps: import("./types").VBIQueryProps) => Promise<import("./types").VBIQueryResult>;
10
+ }>;
11
+ generateEmptyDSL: (connectorId: import("./types/connector/connector").VBIConnectorId) => import("./types").VBIDSL;
12
+ from: (vbi: import("./types").VBIDSLInput) => import("./builder").VBIBuilder;
13
+ create: (vbi: import("./types").VBIDSLInput) => import("./builder").VBIBuilder;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vbi",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "license": "MIT",
5
5
  "homepage": "https://visactor.github.io/VBI",
6
6
  "bugs": "https://github.com/VisActor/VBI/issues",
@@ -33,11 +33,11 @@
33
33
  "uuid": "13.0.0",
34
34
  "yjs": "13.6.28",
35
35
  "zod": "4.0.17",
36
- "@visactor/vseed": "0.4.15"
36
+ "@visactor/vseed": "0.4.17"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@visactor/vseed": "0.4.15",
40
- "@visactor/vquery": "0.4.15"
39
+ "@visactor/vquery": "0.4.17",
40
+ "@visactor/vseed": "0.4.17"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/js": "9.39.0",
@@ -51,7 +51,7 @@
51
51
  "ts-morph": "26.0.0",
52
52
  "typescript": "5.9.3",
53
53
  "typescript-eslint": "8.48.0",
54
- "@visactor/vquery": "0.4.15"
54
+ "@visactor/vquery": "0.4.17"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "rslib build",
@@ -1,3 +0,0 @@
1
- export { HavingFiltersBuilder } from './having-builder';
2
- export { HavingFiltersNodeBuilder } from './having-node-builder';
3
- export { HavingGroupBuilder } from './having-group-builder';
@@ -1,5 +0,0 @@
1
- export { MeasuresBuilder } from './measures';
2
- export { DimensionsBuilder } from './dimensions';
3
- export { ChartTypeBuilder } from './chart-type';
4
- export { WhereFiltersBuilder, WhereGroupBuilder } from './whereFilters';
5
- export { HavingFiltersBuilder } from './havingFilters';
@@ -1,16 +0,0 @@
1
- import { VBIConnectorId } from '../types/connector/connector';
2
- import { VBIDSL } from '../types';
3
- import { VBIBuilder } from './vbi-builder';
4
- export declare const VBI: {
5
- connectorMap: Map<string, {
6
- discoverSchema: () => Promise<import("../types").VBISchema>;
7
- query: (queryProps: import("../types").VBIQueryProps) => Promise<import("../types").VBIQueryResult>;
8
- } | (() => Promise<import("../types").VBIConnector>)>;
9
- registerConnector: (id: VBIConnectorId, connector: import("../types").VBIConnector | (() => Promise<import("../types").VBIConnector>)) => void;
10
- getConnector: (id: VBIConnectorId) => Promise<{
11
- discoverSchema: () => Promise<import("../types").VBISchema>;
12
- query: (queryProps: import("../types").VBIQueryProps) => Promise<import("../types").VBIQueryResult>;
13
- }>;
14
- generateEmptyDSL: (connectorId: VBIConnectorId) => VBIDSL;
15
- from: (vbi: VBIDSL) => VBIBuilder;
16
- };