@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.
Files changed (37) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
  3. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  4. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +25 -2
  5. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
  7. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +25 -2
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  10. package/dist/cjs/types/savedCharts.d.ts +3 -0
  11. package/dist/cjs/types/savedCharts.d.ts.map +1 -1
  12. package/dist/cjs/types/savedCharts.js.map +1 -1
  13. package/dist/esm/.tsbuildinfo +1 -1
  14. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
  15. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  16. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +24 -1
  17. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  18. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
  19. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  20. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +24 -1
  21. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  22. package/dist/esm/types/savedCharts.d.ts +3 -0
  23. package/dist/esm/types/savedCharts.d.ts.map +1 -1
  24. package/dist/esm/types/savedCharts.js.map +1 -1
  25. package/dist/types/.tsbuildinfo +1 -1
  26. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +215 -0
  27. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  28. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +24 -1
  29. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  30. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +299 -0
  31. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  32. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +24 -1
  33. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  34. package/dist/types/types/savedCharts.d.ts +3 -0
  35. package/dist/types/types/savedCharts.d.ts.map +1 -1
  36. package/dist/types/types/savedCharts.js.map +1 -1
  37. 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;;;;;;;;;;;;;;;;;;;EAGvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,+BAA+B,GAAG,o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M,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC"}
@@ -56,8 +56,31 @@ export const toolFindExploresArgsSchema = z.discriminatedUnion('type', [
56
56
  toolFindExploresArgsSchemaV3,
57
57
  ]);
58
58
  export const toolFindExploresArgsSchemaTransformed = toolFindExploresArgsSchema;
59
+ export const findExploresRankingMetadataSchema = z.object({
60
+ searchQuery: z.string(),
61
+ exploreSearchResults: z
62
+ .array(z.object({
63
+ name: z.string(),
64
+ label: z.string(),
65
+ searchRank: z.number().nullable().optional(),
66
+ joinedTables: z.array(z.string()).nullable().optional(),
67
+ }))
68
+ .optional(),
69
+ topMatchingFields: z
70
+ .array(z.object({
71
+ name: z.string(),
72
+ label: z.string(),
73
+ tableName: z.string(),
74
+ fieldType: z.string(),
75
+ searchRank: z.number().nullable().optional(),
76
+ chartUsage: z.number().nullable().optional(),
77
+ }))
78
+ .optional(),
79
+ });
59
80
  export const toolFindExploresOutputSchema = z.object({
60
81
  result: z.string(),
61
- metadata: baseOutputMetadataSchema,
82
+ metadata: baseOutputMetadataSchema.extend({
83
+ ranking: findExploresRankingMetadataSchema.optional(),
84
+ }),
62
85
  });
63
86
  //# sourceMappingURL=toolFindExploresArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindExploresArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,8BAA8B,GAAG;;;;;;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AC"}
@@ -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;;;;;;;;;;;;;;;;;;;EAGrC,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
+ {"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"}
@@ -27,8 +27,31 @@ export const toolFindFieldsArgsSchema = createToolSchema({
27
27
  .withPagination()
28
28
  .build();
29
29
  export const toolFindFieldsArgsSchemaTransformed = toolFindFieldsArgsSchema;
30
+ export const findFieldsRankingMetadataSchema = z.object({
31
+ searchQueries: z.array(z.object({
32
+ label: z.string(),
33
+ results: z.array(z.object({
34
+ name: z.string(),
35
+ label: z.string(),
36
+ tableName: z.string(),
37
+ fieldType: z.string(),
38
+ searchRank: z.number().nullable().optional(),
39
+ chartUsage: z.number().nullable().optional(),
40
+ })),
41
+ pagination: z
42
+ .object({
43
+ page: z.number(),
44
+ pageSize: z.number(),
45
+ totalResults: z.number(),
46
+ totalPageCount: z.number(),
47
+ })
48
+ .optional(),
49
+ })),
50
+ });
30
51
  export const toolFindFieldsOutputSchema = z.object({
31
52
  result: z.string(),
32
- metadata: baseOutputMetadataSchema,
53
+ metadata: baseOutputMetadataSchema.extend({
54
+ ranking: findFieldsRankingMetadataSchema.optional(),
55
+ }),
33
56
  });
34
57
  //# sourceMappingURL=toolFindFieldsArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;CAY3C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;IACrD,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,4BAA4B;CAC5C,CAAC;KACG,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CACvB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;KACjD,CAAC,CACL;CACJ,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;AAE5E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolFindFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,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AC,MAAM,EAAE;YAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;YACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;YACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;SAC7B,CAAC;aACD,QAAQ,EAAE;KAClB,CAAC,CACL;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB,CAAC,MAAM,CAAC;QACtC,OAAO,EAAE,+BAA+B,CAAC,QAAQ,EAAE;KACtD,CAAC;CACL,CAAC,CAAC"}
@@ -107,12 +107,15 @@ export type TreemapChart = {
107
107
  export type GaugeSection = {
108
108
  min: number;
109
109
  max: number;
110
+ minFieldId?: string;
111
+ maxFieldId?: string;
110
112
  color: string;
111
113
  };
112
114
  export type GaugeChart = {
113
115
  selectedField?: string;
114
116
  min?: number;
115
117
  max?: number;
118
+ maxFieldId?: string;
116
119
  showAxisLabels?: boolean;
117
120
  sections?: GaugeSection[];
118
121
  };