@lightdash/common 0.1793.1 → 0.1794.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/cjs/ee/AiAgent/schemas/index.d.ts +0 -1050
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js +0 -2
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +0 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +0 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +0 -15
- package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.js +0 -12
- package/dist/cjs/ee/AiAgent/utils.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +0 -1050
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js +0 -2
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +0 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +0 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +0 -15
- package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/utils.js +1 -13
- package/dist/esm/ee/AiAgent/utils.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/index.d.ts +0 -1050
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +0 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +0 -15
- package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts +0 -2245
- package/dist/cjs/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts.map +0 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolOneLineArgs.js +0 -39
- package/dist/cjs/ee/AiAgent/schemas/tools/toolOneLineArgs.js.map +0 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts +0 -2245
- package/dist/esm/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts.map +0 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolOneLineArgs.js +0 -35
- package/dist/esm/ee/AiAgent/schemas/tools/toolOneLineArgs.js.map +0 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts +0 -2245
- package/dist/types/ee/AiAgent/schemas/tools/toolOneLineArgs.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOneLineArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolOneLineArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAgC3C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolOneLineArgsSchemaTransformed = exports.toolOneLineArgsSchema = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const types_1 = require("../../types");
|
|
7
|
-
const fieldId_1 = tslib_1.__importDefault(require("../fieldId"));
|
|
8
|
-
const filters_1 = require("../filters");
|
|
9
|
-
const sortField_1 = tslib_1.__importDefault(require("../sortField"));
|
|
10
|
-
const lighterMetricQuerySchema = zod_1.z.object({
|
|
11
|
-
type: zod_1.z.literal(types_1.AiResultType.ONE_LINE_RESULT),
|
|
12
|
-
exploreName: zod_1.z
|
|
13
|
-
.string()
|
|
14
|
-
.describe('Name of the explore to query. @example: "users"'),
|
|
15
|
-
metrics: zod_1.z
|
|
16
|
-
.array(fieldId_1.default)
|
|
17
|
-
.describe('Metrics (measures) to calculate over the table for this query. @example: ["payments_total_amount", "orders_total_shipping_cost"]'),
|
|
18
|
-
dimensions: zod_1.z
|
|
19
|
-
.array(fieldId_1.default)
|
|
20
|
-
.describe('Dimensions to break down the metric into groups. @example: ["orders_status", "customers_first_name"]'),
|
|
21
|
-
sorts: zod_1.z
|
|
22
|
-
.array(sortField_1.default)
|
|
23
|
-
.describe('Sort configuration for the MetricQuery. Should be an empty array if no sorting is needed'),
|
|
24
|
-
limit: zod_1.z
|
|
25
|
-
.number()
|
|
26
|
-
.int()
|
|
27
|
-
.min(1)
|
|
28
|
-
.describe('Maximum number of rows to return from query'),
|
|
29
|
-
});
|
|
30
|
-
exports.toolOneLineArgsSchema = zod_1.z.object({
|
|
31
|
-
type: zod_1.z.literal(types_1.AiResultType.ONE_LINE_RESULT),
|
|
32
|
-
metricQuery: lighterMetricQuerySchema,
|
|
33
|
-
filters: filters_1.filtersSchema.nullable().describe('Filters to apply to the query'),
|
|
34
|
-
});
|
|
35
|
-
exports.toolOneLineArgsSchemaTransformed = exports.toolOneLineArgsSchema.transform((data) => ({
|
|
36
|
-
...data,
|
|
37
|
-
filters: filters_1.filtersSchemaTransformed.parse(data.filters),
|
|
38
|
-
}));
|
|
39
|
-
//# sourceMappingURL=toolOneLineArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOneLineArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolOneLineArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uCAA2C;AAC3C,iEAAuC;AACvC,wCAAqE;AACrE,qEAA2C;AAE3C,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,eAAe,CAAC;IAC7C,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,iDAAiD,CAAC;IAChE,OAAO,EAAE,OAAC;SACL,KAAK,CAAC,iBAAa,CAAC;SACpB,QAAQ,CACL,kIAAkI,CACrI;IACL,UAAU,EAAE,OAAC;SACR,KAAK,CAAC,iBAAa,CAAC;SACpB,QAAQ,CACL,sGAAsG,CACzG;IACL,KAAK,EAAE,OAAC;SACH,KAAK,CAAC,mBAAe,CAAC;SACtB,QAAQ,CACL,0FAA0F,CAC7F;IACL,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE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