@lightdash/common 0.2199.3 → 0.2201.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/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +25 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +25 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/cjs/types/savedCharts.d.ts +3 -0
- package/dist/cjs/types/savedCharts.d.ts.map +1 -1
- package/dist/cjs/types/savedCharts.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +24 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +24 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/esm/types/savedCharts.d.ts +3 -0
- package/dist/esm/types/savedCharts.d.ts.map +1 -1
- package/dist/esm/types/savedCharts.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +24 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +24 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/types/types/savedCharts.d.ts +3 -0
- package/dist/types/types/savedCharts.d.ts.map +1 -1
- package/dist/types/types/savedCharts.js.map +1 -1
- package/package.json +1 -1
|
@@ -107,23 +107,238 @@ export declare const toolFindExploresArgsSchemaTransformed: z.ZodDiscriminatedUn
|
|
|
107
107
|
type: "find_explores_v3";
|
|
108
108
|
searchQuery: string;
|
|
109
109
|
}>]>;
|
|
110
|
+
export declare const findExploresRankingMetadataSchema: z.ZodObject<{
|
|
111
|
+
searchQuery: z.ZodString;
|
|
112
|
+
exploreSearchResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
label: z.ZodString;
|
|
115
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
116
|
+
joinedTables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
name: string;
|
|
119
|
+
label: string;
|
|
120
|
+
joinedTables?: string[] | null | undefined;
|
|
121
|
+
searchRank?: number | null | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
name: string;
|
|
124
|
+
label: string;
|
|
125
|
+
joinedTables?: string[] | null | undefined;
|
|
126
|
+
searchRank?: number | null | undefined;
|
|
127
|
+
}>, "many">>;
|
|
128
|
+
topMatchingFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
label: z.ZodString;
|
|
131
|
+
tableName: z.ZodString;
|
|
132
|
+
fieldType: z.ZodString;
|
|
133
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
134
|
+
chartUsage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
name: string;
|
|
137
|
+
label: string;
|
|
138
|
+
tableName: string;
|
|
139
|
+
fieldType: string;
|
|
140
|
+
searchRank?: number | null | undefined;
|
|
141
|
+
chartUsage?: number | null | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
name: string;
|
|
144
|
+
label: string;
|
|
145
|
+
tableName: string;
|
|
146
|
+
fieldType: string;
|
|
147
|
+
searchRank?: number | null | undefined;
|
|
148
|
+
chartUsage?: number | null | undefined;
|
|
149
|
+
}>, "many">>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
searchQuery: string;
|
|
152
|
+
exploreSearchResults?: {
|
|
153
|
+
name: string;
|
|
154
|
+
label: string;
|
|
155
|
+
joinedTables?: string[] | null | undefined;
|
|
156
|
+
searchRank?: number | null | undefined;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
topMatchingFields?: {
|
|
159
|
+
name: string;
|
|
160
|
+
label: string;
|
|
161
|
+
tableName: string;
|
|
162
|
+
fieldType: string;
|
|
163
|
+
searchRank?: number | null | undefined;
|
|
164
|
+
chartUsage?: number | null | undefined;
|
|
165
|
+
}[] | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
searchQuery: string;
|
|
168
|
+
exploreSearchResults?: {
|
|
169
|
+
name: string;
|
|
170
|
+
label: string;
|
|
171
|
+
joinedTables?: string[] | null | undefined;
|
|
172
|
+
searchRank?: number | null | undefined;
|
|
173
|
+
}[] | undefined;
|
|
174
|
+
topMatchingFields?: {
|
|
175
|
+
name: string;
|
|
176
|
+
label: string;
|
|
177
|
+
tableName: string;
|
|
178
|
+
fieldType: string;
|
|
179
|
+
searchRank?: number | null | undefined;
|
|
180
|
+
chartUsage?: number | null | undefined;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
}>;
|
|
110
183
|
export declare const toolFindExploresOutputSchema: z.ZodObject<{
|
|
111
184
|
result: z.ZodString;
|
|
112
185
|
metadata: z.ZodObject<{
|
|
113
186
|
status: z.ZodEnum<["success", "error"]>;
|
|
187
|
+
} & {
|
|
188
|
+
ranking: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
searchQuery: z.ZodString;
|
|
190
|
+
exploreSearchResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
label: z.ZodString;
|
|
193
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
194
|
+
joinedTables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
name: string;
|
|
197
|
+
label: string;
|
|
198
|
+
joinedTables?: string[] | null | undefined;
|
|
199
|
+
searchRank?: number | null | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
name: string;
|
|
202
|
+
label: string;
|
|
203
|
+
joinedTables?: string[] | null | undefined;
|
|
204
|
+
searchRank?: number | null | undefined;
|
|
205
|
+
}>, "many">>;
|
|
206
|
+
topMatchingFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
label: z.ZodString;
|
|
209
|
+
tableName: z.ZodString;
|
|
210
|
+
fieldType: z.ZodString;
|
|
211
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
|
+
chartUsage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
name: string;
|
|
215
|
+
label: string;
|
|
216
|
+
tableName: string;
|
|
217
|
+
fieldType: string;
|
|
218
|
+
searchRank?: number | null | undefined;
|
|
219
|
+
chartUsage?: number | null | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
name: string;
|
|
222
|
+
label: string;
|
|
223
|
+
tableName: string;
|
|
224
|
+
fieldType: string;
|
|
225
|
+
searchRank?: number | null | undefined;
|
|
226
|
+
chartUsage?: number | null | undefined;
|
|
227
|
+
}>, "many">>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
searchQuery: string;
|
|
230
|
+
exploreSearchResults?: {
|
|
231
|
+
name: string;
|
|
232
|
+
label: string;
|
|
233
|
+
joinedTables?: string[] | null | undefined;
|
|
234
|
+
searchRank?: number | null | undefined;
|
|
235
|
+
}[] | undefined;
|
|
236
|
+
topMatchingFields?: {
|
|
237
|
+
name: string;
|
|
238
|
+
label: string;
|
|
239
|
+
tableName: string;
|
|
240
|
+
fieldType: string;
|
|
241
|
+
searchRank?: number | null | undefined;
|
|
242
|
+
chartUsage?: number | null | undefined;
|
|
243
|
+
}[] | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
searchQuery: string;
|
|
246
|
+
exploreSearchResults?: {
|
|
247
|
+
name: string;
|
|
248
|
+
label: string;
|
|
249
|
+
joinedTables?: string[] | null | undefined;
|
|
250
|
+
searchRank?: number | null | undefined;
|
|
251
|
+
}[] | undefined;
|
|
252
|
+
topMatchingFields?: {
|
|
253
|
+
name: string;
|
|
254
|
+
label: string;
|
|
255
|
+
tableName: string;
|
|
256
|
+
fieldType: string;
|
|
257
|
+
searchRank?: number | null | undefined;
|
|
258
|
+
chartUsage?: number | null | undefined;
|
|
259
|
+
}[] | undefined;
|
|
260
|
+
}>>;
|
|
114
261
|
}, "strip", z.ZodTypeAny, {
|
|
115
262
|
status: "error" | "success";
|
|
263
|
+
ranking?: {
|
|
264
|
+
searchQuery: string;
|
|
265
|
+
exploreSearchResults?: {
|
|
266
|
+
name: string;
|
|
267
|
+
label: string;
|
|
268
|
+
joinedTables?: string[] | null | undefined;
|
|
269
|
+
searchRank?: number | null | undefined;
|
|
270
|
+
}[] | undefined;
|
|
271
|
+
topMatchingFields?: {
|
|
272
|
+
name: string;
|
|
273
|
+
label: string;
|
|
274
|
+
tableName: string;
|
|
275
|
+
fieldType: string;
|
|
276
|
+
searchRank?: number | null | undefined;
|
|
277
|
+
chartUsage?: number | null | undefined;
|
|
278
|
+
}[] | undefined;
|
|
279
|
+
} | undefined;
|
|
116
280
|
}, {
|
|
117
281
|
status: "error" | "success";
|
|
282
|
+
ranking?: {
|
|
283
|
+
searchQuery: string;
|
|
284
|
+
exploreSearchResults?: {
|
|
285
|
+
name: string;
|
|
286
|
+
label: string;
|
|
287
|
+
joinedTables?: string[] | null | undefined;
|
|
288
|
+
searchRank?: number | null | undefined;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
topMatchingFields?: {
|
|
291
|
+
name: string;
|
|
292
|
+
label: string;
|
|
293
|
+
tableName: string;
|
|
294
|
+
fieldType: string;
|
|
295
|
+
searchRank?: number | null | undefined;
|
|
296
|
+
chartUsage?: number | null | undefined;
|
|
297
|
+
}[] | undefined;
|
|
298
|
+
} | undefined;
|
|
118
299
|
}>;
|
|
119
300
|
}, "strip", z.ZodTypeAny, {
|
|
120
301
|
metadata: {
|
|
121
302
|
status: "error" | "success";
|
|
303
|
+
ranking?: {
|
|
304
|
+
searchQuery: string;
|
|
305
|
+
exploreSearchResults?: {
|
|
306
|
+
name: string;
|
|
307
|
+
label: string;
|
|
308
|
+
joinedTables?: string[] | null | undefined;
|
|
309
|
+
searchRank?: number | null | undefined;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
topMatchingFields?: {
|
|
312
|
+
name: string;
|
|
313
|
+
label: string;
|
|
314
|
+
tableName: string;
|
|
315
|
+
fieldType: string;
|
|
316
|
+
searchRank?: number | null | undefined;
|
|
317
|
+
chartUsage?: number | null | undefined;
|
|
318
|
+
}[] | undefined;
|
|
319
|
+
} | undefined;
|
|
122
320
|
};
|
|
123
321
|
result: string;
|
|
124
322
|
}, {
|
|
125
323
|
metadata: {
|
|
126
324
|
status: "error" | "success";
|
|
325
|
+
ranking?: {
|
|
326
|
+
searchQuery: string;
|
|
327
|
+
exploreSearchResults?: {
|
|
328
|
+
name: string;
|
|
329
|
+
label: string;
|
|
330
|
+
joinedTables?: string[] | null | undefined;
|
|
331
|
+
searchRank?: number | null | undefined;
|
|
332
|
+
}[] | undefined;
|
|
333
|
+
topMatchingFields?: {
|
|
334
|
+
name: string;
|
|
335
|
+
label: string;
|
|
336
|
+
tableName: string;
|
|
337
|
+
fieldType: string;
|
|
338
|
+
searchRank?: number | null | undefined;
|
|
339
|
+
chartUsage?: number | null | undefined;
|
|
340
|
+
}[] | undefined;
|
|
341
|
+
} | undefined;
|
|
127
342
|
};
|
|
128
343
|
result: string;
|
|
129
344
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindExploresArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,4sBAa1C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;EAW7B,CAAC;AAEb,eAAO,MAAM,4BAA4B;;;;;;;;;;EAU7B,CAAC;AAEb,eAAO,MAAM,4BAA4B;;;;;;;;;;EAa7B,CAAC;AAEb,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIrC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA6B,CAAC;AAEhF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file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B,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolFindExploresOutputSchema = exports.toolFindExploresArgsSchemaTransformed = exports.toolFindExploresArgsSchema = exports.toolFindExploresArgsSchemaV3 = exports.toolFindExploresArgsSchemaV2 = exports.toolFindExploresArgsSchemaV1 = exports.TOOL_FIND_EXPLORES_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolFindExploresOutputSchema = exports.findExploresRankingMetadataSchema = exports.toolFindExploresArgsSchemaTransformed = exports.toolFindExploresArgsSchema = exports.toolFindExploresArgsSchemaV3 = exports.toolFindExploresArgsSchemaV2 = exports.toolFindExploresArgsSchemaV1 = exports.TOOL_FIND_EXPLORES_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
6
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
@@ -59,8 +59,31 @@ exports.toolFindExploresArgsSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
59
59
|
exports.toolFindExploresArgsSchemaV3,
|
|
60
60
|
]);
|
|
61
61
|
exports.toolFindExploresArgsSchemaTransformed = exports.toolFindExploresArgsSchema;
|
|
62
|
+
exports.findExploresRankingMetadataSchema = zod_1.z.object({
|
|
63
|
+
searchQuery: zod_1.z.string(),
|
|
64
|
+
exploreSearchResults: zod_1.z
|
|
65
|
+
.array(zod_1.z.object({
|
|
66
|
+
name: zod_1.z.string(),
|
|
67
|
+
label: zod_1.z.string(),
|
|
68
|
+
searchRank: zod_1.z.number().nullable().optional(),
|
|
69
|
+
joinedTables: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
70
|
+
}))
|
|
71
|
+
.optional(),
|
|
72
|
+
topMatchingFields: zod_1.z
|
|
73
|
+
.array(zod_1.z.object({
|
|
74
|
+
name: zod_1.z.string(),
|
|
75
|
+
label: zod_1.z.string(),
|
|
76
|
+
tableName: zod_1.z.string(),
|
|
77
|
+
fieldType: zod_1.z.string(),
|
|
78
|
+
searchRank: zod_1.z.number().nullable().optional(),
|
|
79
|
+
chartUsage: zod_1.z.number().nullable().optional(),
|
|
80
|
+
}))
|
|
81
|
+
.optional(),
|
|
82
|
+
});
|
|
62
83
|
exports.toolFindExploresOutputSchema = zod_1.z.object({
|
|
63
84
|
result: zod_1.z.string(),
|
|
64
|
-
metadata: outputMetadata_1.baseOutputMetadataSchema
|
|
85
|
+
metadata: outputMetadata_1.baseOutputMetadataSchema.extend({
|
|
86
|
+
ranking: exports.findExploresRankingMetadataSchema.optional(),
|
|
87
|
+
}),
|
|
65
88
|
});
|
|
66
89
|
//# sourceMappingURL=toolFindExploresArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindExploresArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA6D;AAC7D,4DAAwD;AAE3C,QAAA,8BAA8B,GAAG;;;;;;;;;;;;;CAa7C,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EAAC;IACzD,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,sCAA8B;CAC9C,CAAC;KACG,MAAM,CAAC;IACJ,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAEA,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EAAC;IACzD,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,sCAA8B;IAC3C,OAAO,EAAE,CAAC;CACb,CAAC;KACG,MAAM,CAAC;IACJ,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC;KACD,KAAK,EAAE,CAAC;AAEA,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EAAC;IACzD,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,sCAA8B;IAC3C,OAAO,EAAE,CAAC;CACb,CAAC;KACG,MAAM,CAAC;IACJ,+EAA+E;IAC/E,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,CACL,sIAAsI,CACzI;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAEA,QAAA,0BAA0B,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnE,oCAA4B;IAC5B,oCAA4B;IAC5B,oCAA4B;CAC/B,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAAG,kCAA0B,CAAC;AAEnE,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yCAAwB;
|
|
1
|
+
{"version":3,"file":"toolFindExploresArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA6D;AAC7D,4DAAwD;AAE3C,QAAA,8BAA8B,GAAG;;;;;;;;;;;;;CAa7C,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EAAC;IACzD,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,sCAA8B;CAC9C,CAAC;KACG,MAAM,CAAC;IACJ,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAEA,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EAAC;IACzD,IAAI,EAAE,eAAe;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C,CAAC,MAAM,EAAE;QACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC/C,CAAC,CACL;SACA,QAAQ,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yCAAwB,CAAC,MAAM,CAAC;QACtC,OAAO,EAAE,yCAAiC,CAAC,QAAQ,EAAE;KACxD,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -56,23 +56,322 @@ export declare const toolFindFieldsArgsSchemaTransformed: z.ZodObject<{
|
|
|
56
56
|
label: string;
|
|
57
57
|
}[];
|
|
58
58
|
}>;
|
|
59
|
+
export declare const findFieldsRankingMetadataSchema: z.ZodObject<{
|
|
60
|
+
searchQueries: z.ZodArray<z.ZodObject<{
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
results: z.ZodArray<z.ZodObject<{
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
label: z.ZodString;
|
|
65
|
+
tableName: z.ZodString;
|
|
66
|
+
fieldType: z.ZodString;
|
|
67
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
chartUsage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
name: string;
|
|
71
|
+
label: string;
|
|
72
|
+
tableName: string;
|
|
73
|
+
fieldType: string;
|
|
74
|
+
searchRank?: number | null | undefined;
|
|
75
|
+
chartUsage?: number | null | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
name: string;
|
|
78
|
+
label: string;
|
|
79
|
+
tableName: string;
|
|
80
|
+
fieldType: string;
|
|
81
|
+
searchRank?: number | null | undefined;
|
|
82
|
+
chartUsage?: number | null | undefined;
|
|
83
|
+
}>, "many">;
|
|
84
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
page: z.ZodNumber;
|
|
86
|
+
pageSize: z.ZodNumber;
|
|
87
|
+
totalResults: z.ZodNumber;
|
|
88
|
+
totalPageCount: z.ZodNumber;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
page: number;
|
|
91
|
+
pageSize: number;
|
|
92
|
+
totalResults: number;
|
|
93
|
+
totalPageCount: number;
|
|
94
|
+
}, {
|
|
95
|
+
page: number;
|
|
96
|
+
pageSize: number;
|
|
97
|
+
totalResults: number;
|
|
98
|
+
totalPageCount: number;
|
|
99
|
+
}>>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
label: string;
|
|
102
|
+
results: {
|
|
103
|
+
name: string;
|
|
104
|
+
label: string;
|
|
105
|
+
tableName: string;
|
|
106
|
+
fieldType: string;
|
|
107
|
+
searchRank?: number | null | undefined;
|
|
108
|
+
chartUsage?: number | null | undefined;
|
|
109
|
+
}[];
|
|
110
|
+
pagination?: {
|
|
111
|
+
page: number;
|
|
112
|
+
pageSize: number;
|
|
113
|
+
totalResults: number;
|
|
114
|
+
totalPageCount: number;
|
|
115
|
+
} | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
label: string;
|
|
118
|
+
results: {
|
|
119
|
+
name: string;
|
|
120
|
+
label: string;
|
|
121
|
+
tableName: string;
|
|
122
|
+
fieldType: string;
|
|
123
|
+
searchRank?: number | null | undefined;
|
|
124
|
+
chartUsage?: number | null | undefined;
|
|
125
|
+
}[];
|
|
126
|
+
pagination?: {
|
|
127
|
+
page: number;
|
|
128
|
+
pageSize: number;
|
|
129
|
+
totalResults: number;
|
|
130
|
+
totalPageCount: number;
|
|
131
|
+
} | undefined;
|
|
132
|
+
}>, "many">;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
searchQueries: {
|
|
135
|
+
label: string;
|
|
136
|
+
results: {
|
|
137
|
+
name: string;
|
|
138
|
+
label: string;
|
|
139
|
+
tableName: string;
|
|
140
|
+
fieldType: string;
|
|
141
|
+
searchRank?: number | null | undefined;
|
|
142
|
+
chartUsage?: number | null | undefined;
|
|
143
|
+
}[];
|
|
144
|
+
pagination?: {
|
|
145
|
+
page: number;
|
|
146
|
+
pageSize: number;
|
|
147
|
+
totalResults: number;
|
|
148
|
+
totalPageCount: number;
|
|
149
|
+
} | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
}, {
|
|
152
|
+
searchQueries: {
|
|
153
|
+
label: string;
|
|
154
|
+
results: {
|
|
155
|
+
name: string;
|
|
156
|
+
label: string;
|
|
157
|
+
tableName: string;
|
|
158
|
+
fieldType: string;
|
|
159
|
+
searchRank?: number | null | undefined;
|
|
160
|
+
chartUsage?: number | null | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
pagination?: {
|
|
163
|
+
page: number;
|
|
164
|
+
pageSize: number;
|
|
165
|
+
totalResults: number;
|
|
166
|
+
totalPageCount: number;
|
|
167
|
+
} | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
}>;
|
|
59
170
|
export declare const toolFindFieldsOutputSchema: z.ZodObject<{
|
|
60
171
|
result: z.ZodString;
|
|
61
172
|
metadata: z.ZodObject<{
|
|
62
173
|
status: z.ZodEnum<["success", "error"]>;
|
|
174
|
+
} & {
|
|
175
|
+
ranking: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
searchQueries: z.ZodArray<z.ZodObject<{
|
|
177
|
+
label: z.ZodString;
|
|
178
|
+
results: z.ZodArray<z.ZodObject<{
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
label: z.ZodString;
|
|
181
|
+
tableName: z.ZodString;
|
|
182
|
+
fieldType: z.ZodString;
|
|
183
|
+
searchRank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
184
|
+
chartUsage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
name: string;
|
|
187
|
+
label: string;
|
|
188
|
+
tableName: string;
|
|
189
|
+
fieldType: string;
|
|
190
|
+
searchRank?: number | null | undefined;
|
|
191
|
+
chartUsage?: number | null | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
name: string;
|
|
194
|
+
label: string;
|
|
195
|
+
tableName: string;
|
|
196
|
+
fieldType: string;
|
|
197
|
+
searchRank?: number | null | undefined;
|
|
198
|
+
chartUsage?: number | null | undefined;
|
|
199
|
+
}>, "many">;
|
|
200
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
page: z.ZodNumber;
|
|
202
|
+
pageSize: z.ZodNumber;
|
|
203
|
+
totalResults: z.ZodNumber;
|
|
204
|
+
totalPageCount: z.ZodNumber;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
page: number;
|
|
207
|
+
pageSize: number;
|
|
208
|
+
totalResults: number;
|
|
209
|
+
totalPageCount: number;
|
|
210
|
+
}, {
|
|
211
|
+
page: number;
|
|
212
|
+
pageSize: number;
|
|
213
|
+
totalResults: number;
|
|
214
|
+
totalPageCount: number;
|
|
215
|
+
}>>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
label: string;
|
|
218
|
+
results: {
|
|
219
|
+
name: string;
|
|
220
|
+
label: string;
|
|
221
|
+
tableName: string;
|
|
222
|
+
fieldType: string;
|
|
223
|
+
searchRank?: number | null | undefined;
|
|
224
|
+
chartUsage?: number | null | undefined;
|
|
225
|
+
}[];
|
|
226
|
+
pagination?: {
|
|
227
|
+
page: number;
|
|
228
|
+
pageSize: number;
|
|
229
|
+
totalResults: number;
|
|
230
|
+
totalPageCount: number;
|
|
231
|
+
} | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
label: string;
|
|
234
|
+
results: {
|
|
235
|
+
name: string;
|
|
236
|
+
label: string;
|
|
237
|
+
tableName: string;
|
|
238
|
+
fieldType: string;
|
|
239
|
+
searchRank?: number | null | undefined;
|
|
240
|
+
chartUsage?: number | null | undefined;
|
|
241
|
+
}[];
|
|
242
|
+
pagination?: {
|
|
243
|
+
page: number;
|
|
244
|
+
pageSize: number;
|
|
245
|
+
totalResults: number;
|
|
246
|
+
totalPageCount: number;
|
|
247
|
+
} | undefined;
|
|
248
|
+
}>, "many">;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
searchQueries: {
|
|
251
|
+
label: string;
|
|
252
|
+
results: {
|
|
253
|
+
name: string;
|
|
254
|
+
label: string;
|
|
255
|
+
tableName: string;
|
|
256
|
+
fieldType: string;
|
|
257
|
+
searchRank?: number | null | undefined;
|
|
258
|
+
chartUsage?: number | null | undefined;
|
|
259
|
+
}[];
|
|
260
|
+
pagination?: {
|
|
261
|
+
page: number;
|
|
262
|
+
pageSize: number;
|
|
263
|
+
totalResults: number;
|
|
264
|
+
totalPageCount: number;
|
|
265
|
+
} | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
}, {
|
|
268
|
+
searchQueries: {
|
|
269
|
+
label: string;
|
|
270
|
+
results: {
|
|
271
|
+
name: string;
|
|
272
|
+
label: string;
|
|
273
|
+
tableName: string;
|
|
274
|
+
fieldType: string;
|
|
275
|
+
searchRank?: number | null | undefined;
|
|
276
|
+
chartUsage?: number | null | undefined;
|
|
277
|
+
}[];
|
|
278
|
+
pagination?: {
|
|
279
|
+
page: number;
|
|
280
|
+
pageSize: number;
|
|
281
|
+
totalResults: number;
|
|
282
|
+
totalPageCount: number;
|
|
283
|
+
} | undefined;
|
|
284
|
+
}[];
|
|
285
|
+
}>>;
|
|
63
286
|
}, "strip", z.ZodTypeAny, {
|
|
64
287
|
status: "error" | "success";
|
|
288
|
+
ranking?: {
|
|
289
|
+
searchQueries: {
|
|
290
|
+
label: string;
|
|
291
|
+
results: {
|
|
292
|
+
name: string;
|
|
293
|
+
label: string;
|
|
294
|
+
tableName: string;
|
|
295
|
+
fieldType: string;
|
|
296
|
+
searchRank?: number | null | undefined;
|
|
297
|
+
chartUsage?: number | null | undefined;
|
|
298
|
+
}[];
|
|
299
|
+
pagination?: {
|
|
300
|
+
page: number;
|
|
301
|
+
pageSize: number;
|
|
302
|
+
totalResults: number;
|
|
303
|
+
totalPageCount: number;
|
|
304
|
+
} | undefined;
|
|
305
|
+
}[];
|
|
306
|
+
} | undefined;
|
|
65
307
|
}, {
|
|
66
308
|
status: "error" | "success";
|
|
309
|
+
ranking?: {
|
|
310
|
+
searchQueries: {
|
|
311
|
+
label: string;
|
|
312
|
+
results: {
|
|
313
|
+
name: string;
|
|
314
|
+
label: string;
|
|
315
|
+
tableName: string;
|
|
316
|
+
fieldType: string;
|
|
317
|
+
searchRank?: number | null | undefined;
|
|
318
|
+
chartUsage?: number | null | undefined;
|
|
319
|
+
}[];
|
|
320
|
+
pagination?: {
|
|
321
|
+
page: number;
|
|
322
|
+
pageSize: number;
|
|
323
|
+
totalResults: number;
|
|
324
|
+
totalPageCount: number;
|
|
325
|
+
} | undefined;
|
|
326
|
+
}[];
|
|
327
|
+
} | undefined;
|
|
67
328
|
}>;
|
|
68
329
|
}, "strip", z.ZodTypeAny, {
|
|
69
330
|
metadata: {
|
|
70
331
|
status: "error" | "success";
|
|
332
|
+
ranking?: {
|
|
333
|
+
searchQueries: {
|
|
334
|
+
label: string;
|
|
335
|
+
results: {
|
|
336
|
+
name: string;
|
|
337
|
+
label: string;
|
|
338
|
+
tableName: string;
|
|
339
|
+
fieldType: string;
|
|
340
|
+
searchRank?: number | null | undefined;
|
|
341
|
+
chartUsage?: number | null | undefined;
|
|
342
|
+
}[];
|
|
343
|
+
pagination?: {
|
|
344
|
+
page: number;
|
|
345
|
+
pageSize: number;
|
|
346
|
+
totalResults: number;
|
|
347
|
+
totalPageCount: number;
|
|
348
|
+
} | undefined;
|
|
349
|
+
}[];
|
|
350
|
+
} | undefined;
|
|
71
351
|
};
|
|
72
352
|
result: string;
|
|
73
353
|
}, {
|
|
74
354
|
metadata: {
|
|
75
355
|
status: "error" | "success";
|
|
356
|
+
ranking?: {
|
|
357
|
+
searchQueries: {
|
|
358
|
+
label: string;
|
|
359
|
+
results: {
|
|
360
|
+
name: string;
|
|
361
|
+
label: string;
|
|
362
|
+
tableName: string;
|
|
363
|
+
fieldType: string;
|
|
364
|
+
searchRank?: number | null | undefined;
|
|
365
|
+
chartUsage?: number | null | undefined;
|
|
366
|
+
}[];
|
|
367
|
+
pagination?: {
|
|
368
|
+
page: number;
|
|
369
|
+
pageSize: number;
|
|
370
|
+
totalResults: number;
|
|
371
|
+
totalPageCount: number;
|
|
372
|
+
} | undefined;
|
|
373
|
+
}[];
|
|
374
|
+
} | undefined;
|
|
76
375
|
};
|
|
77
376
|
result: string;
|
|
78
377
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,4BAA4B,gpBAYxC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAC;AAEb,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAC;AAE5E,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"toolFindFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,4BAA4B,gpBAYxC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAC;AAEb,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB1C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolFindFieldsOutputSchema = exports.toolFindFieldsArgsSchemaTransformed = exports.toolFindFieldsArgsSchema = exports.TOOL_FIND_FIELDS_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolFindFieldsOutputSchema = exports.findFieldsRankingMetadataSchema = exports.toolFindFieldsArgsSchemaTransformed = exports.toolFindFieldsArgsSchema = exports.TOOL_FIND_FIELDS_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
6
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
@@ -30,8 +30,31 @@ exports.toolFindFieldsArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)({
|
|
|
30
30
|
.withPagination()
|
|
31
31
|
.build();
|
|
32
32
|
exports.toolFindFieldsArgsSchemaTransformed = exports.toolFindFieldsArgsSchema;
|
|
33
|
+
exports.findFieldsRankingMetadataSchema = zod_1.z.object({
|
|
34
|
+
searchQueries: zod_1.z.array(zod_1.z.object({
|
|
35
|
+
label: zod_1.z.string(),
|
|
36
|
+
results: zod_1.z.array(zod_1.z.object({
|
|
37
|
+
name: zod_1.z.string(),
|
|
38
|
+
label: zod_1.z.string(),
|
|
39
|
+
tableName: zod_1.z.string(),
|
|
40
|
+
fieldType: zod_1.z.string(),
|
|
41
|
+
searchRank: zod_1.z.number().nullable().optional(),
|
|
42
|
+
chartUsage: zod_1.z.number().nullable().optional(),
|
|
43
|
+
})),
|
|
44
|
+
pagination: zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
page: zod_1.z.number(),
|
|
47
|
+
pageSize: zod_1.z.number(),
|
|
48
|
+
totalResults: zod_1.z.number(),
|
|
49
|
+
totalPageCount: zod_1.z.number(),
|
|
50
|
+
})
|
|
51
|
+
.optional(),
|
|
52
|
+
})),
|
|
53
|
+
});
|
|
33
54
|
exports.toolFindFieldsOutputSchema = zod_1.z.object({
|
|
34
55
|
result: zod_1.z.string(),
|
|
35
|
-
metadata: outputMetadata_1.baseOutputMetadataSchema
|
|
56
|
+
metadata: outputMetadata_1.baseOutputMetadataSchema.extend({
|
|
57
|
+
ranking: exports.findFieldsRankingMetadataSchema.optional(),
|
|
58
|
+
}),
|
|
36
59
|
});
|
|
37
60
|
//# sourceMappingURL=toolFindFieldsArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA6D;AAC7D,4DAAwD;AAE3C,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