@sisense/sdk-ai-core 0.2.11 → 0.3.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.
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ import { getDataSourceFieldsSchema, GetDataSourceFieldsContext, DataSourceFieldsResult } from './types';
3
+ /**
4
+ * Standalone data source fields engine - completely decoupled from any UI or store
5
+ * @param params - The parameters containing the data source title
6
+ * @param context - Context with tool call ID for tracking
7
+ * @returns The data source fields summary with title and fields
8
+ */
9
+ export declare function getDataSourceFieldsEngine(params: z.infer<typeof getDataSourceFieldsSchema>, context: GetDataSourceFieldsContext): Promise<DataSourceFieldsResult>;
10
+ //# sourceMappingURL=data-source-fields-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-source-fields-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/data-source-fields/data-source-fields-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACN,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC9C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACjD,OAAO,EAAE,0BAA0B,GACjC,OAAO,CAAC,sBAAsB,CAAC,CAqBjC"}
@@ -0,0 +1,3 @@
1
+ export { getDataSourceFieldsEngine } from './data-source-fields-engine';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/data-source-fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,cAAc,SAAS,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { DataSourceField } from '@sisense/sdk-data';
3
+ import { DataSourceFieldWithDescription } from '../../services/data-sources/data-sources-service';
4
+ /**
5
+ * Schema for getDataSourceFields engine parameters
6
+ */
7
+ export declare const getDataSourceFieldsSchema: z.ZodObject<{
8
+ dataSourceTitle: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ dataSourceTitle: string;
11
+ }, {
12
+ dataSourceTitle: string;
13
+ }>;
14
+ /**
15
+ * Context interface for getDataSourceFieldsEngine
16
+ */
17
+ export interface GetDataSourceFieldsContext {
18
+ /**
19
+ * Tool call ID
20
+ */
21
+ toolCallId: string;
22
+ }
23
+ /**
24
+ * Result from getDataSourceFieldsEngine
25
+ */
26
+ export interface DataSourceFieldsResult {
27
+ /**
28
+ * The title of the data source
29
+ */
30
+ dataSourceTitle: string;
31
+ /**
32
+ * List of fields (may or may not have descriptions depending on availability)
33
+ */
34
+ fields: DataSourceFieldWithDescription[] | DataSourceField[];
35
+ }
36
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/data-source-fields/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,8BAA8B,EAAE,GAAG,eAAe,EAAE,CAAC;CAC7D"}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ import { getDataSourcesSchema, GetDataSourcesContext, DataSourcesResult } from './types';
3
+ /**
4
+ * Standalone data sources engine - completely decoupled from any UI or store
5
+ * @param params - The parameters for getting data sources (currently empty)
6
+ * @param context - Context with tool call ID for tracking
7
+ * @returns The data sources summary with titles and full objects
8
+ */
9
+ export declare function getDataSourcesEngine(params: z.infer<typeof getDataSourcesSchema>, context: GetDataSourcesContext): Promise<DataSourcesResult>;
10
+ //# sourceMappingURL=data-sources-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sources-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/data-sources/data-sources-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACN,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,CAS5B"}
@@ -0,0 +1,3 @@
1
+ export { getDataSourcesEngine } from './data-sources-engine';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/data-sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,cAAc,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import { JaqlDataSourceForDto } from '@sisense/sdk-data';
3
+ /**
4
+ * Schema for getDataSources engine parameters
5
+ */
6
+ export declare const getDataSourcesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7
+ /**
8
+ * Context interface for getDataSourcesEngine
9
+ */
10
+ export interface GetDataSourcesContext {
11
+ /**
12
+ * Tool call ID
13
+ */
14
+ toolCallId: string;
15
+ }
16
+ /**
17
+ * Result from getDataSourcesEngine
18
+ */
19
+ export interface DataSourcesResult {
20
+ /**
21
+ * List of data source titles
22
+ */
23
+ dataSourceTitles: string[];
24
+ /**
25
+ * Full data source objects
26
+ */
27
+ dataSources: JaqlDataSourceForDto[];
28
+ }
29
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/data-sources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,oBAAoB,gDAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACpC"}
@@ -3,4 +3,6 @@ export { generateChart } from './chart-builder/create-chart/create-chart';
3
3
  export * from './chart-builder/types';
4
4
  export * from './chart-builder/chart-builder-service';
5
5
  export { dataOptionsEditingSchemas, chartDataOptionsSchemas, } from './chart-builder/update-chart/chart-options-schemas';
6
+ export * from './data-sources';
7
+ export * from './data-source-fields';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E,cAAc,uBAAuB,CAAC;AAGtC,cAAc,uCAAuC,CAAC;AAGtD,OAAO,EACN,yBAAyB,EACzB,uBAAuB,GACvB,MAAM,oDAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E,cAAc,uBAAuB,CAAC;AAGtC,cAAc,uCAAuC,CAAC;AAGtD,OAAO,EACN,yBAAyB,EACzB,uBAAuB,GACvB,MAAM,oDAAoD,CAAC;AAG5D,cAAc,gBAAgB,CAAC;AAG/B,cAAc,sBAAsB,CAAC"}