@feedmepos/mf-remy-panel 0.8.2 → 0.9.0-dev.2

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,542 @@
1
+ import type { ReportArtifactResult, ExcelExportActionCardResult } from '@/types/chat';
2
+ export type PreviewPage = 'preview' | 'all-sessions';
3
+ export type AllSessionsTab = 'all' | 'this';
4
+ export type PreviewFocus = {
5
+ kind: 'docx';
6
+ artifact: ReportArtifactResult;
7
+ } | {
8
+ kind: 'excel';
9
+ result: ExcelExportActionCardResult;
10
+ };
11
+ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview", Pick<{
12
+ isOpen: import("vue").Ref<boolean, boolean>;
13
+ activePage: import("vue").Ref<PreviewPage, PreviewPage>;
14
+ focused: import("vue").Ref<{
15
+ kind: 'docx';
16
+ artifact: {
17
+ type: "report-artifact";
18
+ artifact: {
19
+ id: string;
20
+ conversationId: string;
21
+ title: string;
22
+ sections: ({
23
+ id?: string | undefined;
24
+ type: "heading";
25
+ level: 1 | 2 | 3;
26
+ text: string;
27
+ } | {
28
+ id?: string | undefined;
29
+ type: "paragraph";
30
+ text: string;
31
+ } | {
32
+ id?: string | undefined;
33
+ type: "bullet-list";
34
+ items: string[];
35
+ } | {
36
+ id?: string | undefined;
37
+ type: "divider";
38
+ } | {
39
+ id?: string | undefined;
40
+ type: "table";
41
+ queryId: string;
42
+ title?: string | undefined;
43
+ columns: {
44
+ id: string;
45
+ label: string;
46
+ }[];
47
+ rows: Record<string, unknown>[];
48
+ } | {
49
+ id?: string | undefined;
50
+ type: "chart";
51
+ queryId: string;
52
+ title?: string | undefined;
53
+ chartConfig?: {
54
+ type: "chart";
55
+ chartType: "line" | "bar" | "pie";
56
+ title: string;
57
+ labels: string[];
58
+ displayLabels?: string[] | undefined;
59
+ indexAxis?: "x" | "y" | undefined;
60
+ datasets: {
61
+ label: string;
62
+ data: number[];
63
+ axisKey?: "primary" | "secondary" | undefined;
64
+ valueFormat?: "number" | "currency" | undefined;
65
+ }[];
66
+ axes?: {
67
+ key: "primary" | "secondary";
68
+ label: string;
69
+ valueFormat: "number" | "currency";
70
+ }[] | undefined;
71
+ summary: string;
72
+ } | undefined;
73
+ columns: {
74
+ id: string;
75
+ label: string;
76
+ }[];
77
+ rows: Record<string, unknown>[];
78
+ })[];
79
+ timezone: string;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ };
83
+ };
84
+ } | {
85
+ kind: 'excel';
86
+ result: {
87
+ type: "excel";
88
+ title: string;
89
+ s3Key: string;
90
+ fileName: string;
91
+ rowCount: number;
92
+ previewTable: {
93
+ headers: string[];
94
+ rows: string[][];
95
+ };
96
+ };
97
+ } | null, PreviewFocus | {
98
+ kind: 'docx';
99
+ artifact: {
100
+ type: "report-artifact";
101
+ artifact: {
102
+ id: string;
103
+ conversationId: string;
104
+ title: string;
105
+ sections: ({
106
+ id?: string | undefined;
107
+ type: "heading";
108
+ level: 1 | 2 | 3;
109
+ text: string;
110
+ } | {
111
+ id?: string | undefined;
112
+ type: "paragraph";
113
+ text: string;
114
+ } | {
115
+ id?: string | undefined;
116
+ type: "bullet-list";
117
+ items: string[];
118
+ } | {
119
+ id?: string | undefined;
120
+ type: "divider";
121
+ } | {
122
+ id?: string | undefined;
123
+ type: "table";
124
+ queryId: string;
125
+ title?: string | undefined;
126
+ columns: {
127
+ id: string;
128
+ label: string;
129
+ }[];
130
+ rows: Record<string, unknown>[];
131
+ } | {
132
+ id?: string | undefined;
133
+ type: "chart";
134
+ queryId: string;
135
+ title?: string | undefined;
136
+ chartConfig?: {
137
+ type: "chart";
138
+ chartType: "line" | "bar" | "pie";
139
+ title: string;
140
+ labels: string[];
141
+ displayLabels?: string[] | undefined;
142
+ indexAxis?: "x" | "y" | undefined;
143
+ datasets: {
144
+ label: string;
145
+ data: number[];
146
+ axisKey?: "primary" | "secondary" | undefined;
147
+ valueFormat?: "number" | "currency" | undefined;
148
+ }[];
149
+ axes?: {
150
+ key: "primary" | "secondary";
151
+ label: string;
152
+ valueFormat: "number" | "currency";
153
+ }[] | undefined;
154
+ summary: string;
155
+ } | undefined;
156
+ columns: {
157
+ id: string;
158
+ label: string;
159
+ }[];
160
+ rows: Record<string, unknown>[];
161
+ })[];
162
+ timezone: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ };
166
+ };
167
+ } | {
168
+ kind: 'excel';
169
+ result: {
170
+ type: "excel";
171
+ title: string;
172
+ s3Key: string;
173
+ fileName: string;
174
+ rowCount: number;
175
+ previewTable: {
176
+ headers: string[];
177
+ rows: string[][];
178
+ };
179
+ };
180
+ } | null>;
181
+ allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
182
+ openDocx: (artifact: ReportArtifactResult) => void;
183
+ openExcel: (result: ExcelExportActionCardResult) => void;
184
+ openAllSessions: () => void;
185
+ setPage: (page: PreviewPage) => void;
186
+ clearFocused: () => void;
187
+ close: () => void;
188
+ }, "isOpen" | "activePage" | "focused" | "allSessionsTab">, Pick<{
189
+ isOpen: import("vue").Ref<boolean, boolean>;
190
+ activePage: import("vue").Ref<PreviewPage, PreviewPage>;
191
+ focused: import("vue").Ref<{
192
+ kind: 'docx';
193
+ artifact: {
194
+ type: "report-artifact";
195
+ artifact: {
196
+ id: string;
197
+ conversationId: string;
198
+ title: string;
199
+ sections: ({
200
+ id?: string | undefined;
201
+ type: "heading";
202
+ level: 1 | 2 | 3;
203
+ text: string;
204
+ } | {
205
+ id?: string | undefined;
206
+ type: "paragraph";
207
+ text: string;
208
+ } | {
209
+ id?: string | undefined;
210
+ type: "bullet-list";
211
+ items: string[];
212
+ } | {
213
+ id?: string | undefined;
214
+ type: "divider";
215
+ } | {
216
+ id?: string | undefined;
217
+ type: "table";
218
+ queryId: string;
219
+ title?: string | undefined;
220
+ columns: {
221
+ id: string;
222
+ label: string;
223
+ }[];
224
+ rows: Record<string, unknown>[];
225
+ } | {
226
+ id?: string | undefined;
227
+ type: "chart";
228
+ queryId: string;
229
+ title?: string | undefined;
230
+ chartConfig?: {
231
+ type: "chart";
232
+ chartType: "line" | "bar" | "pie";
233
+ title: string;
234
+ labels: string[];
235
+ displayLabels?: string[] | undefined;
236
+ indexAxis?: "x" | "y" | undefined;
237
+ datasets: {
238
+ label: string;
239
+ data: number[];
240
+ axisKey?: "primary" | "secondary" | undefined;
241
+ valueFormat?: "number" | "currency" | undefined;
242
+ }[];
243
+ axes?: {
244
+ key: "primary" | "secondary";
245
+ label: string;
246
+ valueFormat: "number" | "currency";
247
+ }[] | undefined;
248
+ summary: string;
249
+ } | undefined;
250
+ columns: {
251
+ id: string;
252
+ label: string;
253
+ }[];
254
+ rows: Record<string, unknown>[];
255
+ })[];
256
+ timezone: string;
257
+ createdAt: string;
258
+ updatedAt: string;
259
+ };
260
+ };
261
+ } | {
262
+ kind: 'excel';
263
+ result: {
264
+ type: "excel";
265
+ title: string;
266
+ s3Key: string;
267
+ fileName: string;
268
+ rowCount: number;
269
+ previewTable: {
270
+ headers: string[];
271
+ rows: string[][];
272
+ };
273
+ };
274
+ } | null, PreviewFocus | {
275
+ kind: 'docx';
276
+ artifact: {
277
+ type: "report-artifact";
278
+ artifact: {
279
+ id: string;
280
+ conversationId: string;
281
+ title: string;
282
+ sections: ({
283
+ id?: string | undefined;
284
+ type: "heading";
285
+ level: 1 | 2 | 3;
286
+ text: string;
287
+ } | {
288
+ id?: string | undefined;
289
+ type: "paragraph";
290
+ text: string;
291
+ } | {
292
+ id?: string | undefined;
293
+ type: "bullet-list";
294
+ items: string[];
295
+ } | {
296
+ id?: string | undefined;
297
+ type: "divider";
298
+ } | {
299
+ id?: string | undefined;
300
+ type: "table";
301
+ queryId: string;
302
+ title?: string | undefined;
303
+ columns: {
304
+ id: string;
305
+ label: string;
306
+ }[];
307
+ rows: Record<string, unknown>[];
308
+ } | {
309
+ id?: string | undefined;
310
+ type: "chart";
311
+ queryId: string;
312
+ title?: string | undefined;
313
+ chartConfig?: {
314
+ type: "chart";
315
+ chartType: "line" | "bar" | "pie";
316
+ title: string;
317
+ labels: string[];
318
+ displayLabels?: string[] | undefined;
319
+ indexAxis?: "x" | "y" | undefined;
320
+ datasets: {
321
+ label: string;
322
+ data: number[];
323
+ axisKey?: "primary" | "secondary" | undefined;
324
+ valueFormat?: "number" | "currency" | undefined;
325
+ }[];
326
+ axes?: {
327
+ key: "primary" | "secondary";
328
+ label: string;
329
+ valueFormat: "number" | "currency";
330
+ }[] | undefined;
331
+ summary: string;
332
+ } | undefined;
333
+ columns: {
334
+ id: string;
335
+ label: string;
336
+ }[];
337
+ rows: Record<string, unknown>[];
338
+ })[];
339
+ timezone: string;
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ };
343
+ };
344
+ } | {
345
+ kind: 'excel';
346
+ result: {
347
+ type: "excel";
348
+ title: string;
349
+ s3Key: string;
350
+ fileName: string;
351
+ rowCount: number;
352
+ previewTable: {
353
+ headers: string[];
354
+ rows: string[][];
355
+ };
356
+ };
357
+ } | null>;
358
+ allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
359
+ openDocx: (artifact: ReportArtifactResult) => void;
360
+ openExcel: (result: ExcelExportActionCardResult) => void;
361
+ openAllSessions: () => void;
362
+ setPage: (page: PreviewPage) => void;
363
+ clearFocused: () => void;
364
+ close: () => void;
365
+ }, never>, Pick<{
366
+ isOpen: import("vue").Ref<boolean, boolean>;
367
+ activePage: import("vue").Ref<PreviewPage, PreviewPage>;
368
+ focused: import("vue").Ref<{
369
+ kind: 'docx';
370
+ artifact: {
371
+ type: "report-artifact";
372
+ artifact: {
373
+ id: string;
374
+ conversationId: string;
375
+ title: string;
376
+ sections: ({
377
+ id?: string | undefined;
378
+ type: "heading";
379
+ level: 1 | 2 | 3;
380
+ text: string;
381
+ } | {
382
+ id?: string | undefined;
383
+ type: "paragraph";
384
+ text: string;
385
+ } | {
386
+ id?: string | undefined;
387
+ type: "bullet-list";
388
+ items: string[];
389
+ } | {
390
+ id?: string | undefined;
391
+ type: "divider";
392
+ } | {
393
+ id?: string | undefined;
394
+ type: "table";
395
+ queryId: string;
396
+ title?: string | undefined;
397
+ columns: {
398
+ id: string;
399
+ label: string;
400
+ }[];
401
+ rows: Record<string, unknown>[];
402
+ } | {
403
+ id?: string | undefined;
404
+ type: "chart";
405
+ queryId: string;
406
+ title?: string | undefined;
407
+ chartConfig?: {
408
+ type: "chart";
409
+ chartType: "line" | "bar" | "pie";
410
+ title: string;
411
+ labels: string[];
412
+ displayLabels?: string[] | undefined;
413
+ indexAxis?: "x" | "y" | undefined;
414
+ datasets: {
415
+ label: string;
416
+ data: number[];
417
+ axisKey?: "primary" | "secondary" | undefined;
418
+ valueFormat?: "number" | "currency" | undefined;
419
+ }[];
420
+ axes?: {
421
+ key: "primary" | "secondary";
422
+ label: string;
423
+ valueFormat: "number" | "currency";
424
+ }[] | undefined;
425
+ summary: string;
426
+ } | undefined;
427
+ columns: {
428
+ id: string;
429
+ label: string;
430
+ }[];
431
+ rows: Record<string, unknown>[];
432
+ })[];
433
+ timezone: string;
434
+ createdAt: string;
435
+ updatedAt: string;
436
+ };
437
+ };
438
+ } | {
439
+ kind: 'excel';
440
+ result: {
441
+ type: "excel";
442
+ title: string;
443
+ s3Key: string;
444
+ fileName: string;
445
+ rowCount: number;
446
+ previewTable: {
447
+ headers: string[];
448
+ rows: string[][];
449
+ };
450
+ };
451
+ } | null, PreviewFocus | {
452
+ kind: 'docx';
453
+ artifact: {
454
+ type: "report-artifact";
455
+ artifact: {
456
+ id: string;
457
+ conversationId: string;
458
+ title: string;
459
+ sections: ({
460
+ id?: string | undefined;
461
+ type: "heading";
462
+ level: 1 | 2 | 3;
463
+ text: string;
464
+ } | {
465
+ id?: string | undefined;
466
+ type: "paragraph";
467
+ text: string;
468
+ } | {
469
+ id?: string | undefined;
470
+ type: "bullet-list";
471
+ items: string[];
472
+ } | {
473
+ id?: string | undefined;
474
+ type: "divider";
475
+ } | {
476
+ id?: string | undefined;
477
+ type: "table";
478
+ queryId: string;
479
+ title?: string | undefined;
480
+ columns: {
481
+ id: string;
482
+ label: string;
483
+ }[];
484
+ rows: Record<string, unknown>[];
485
+ } | {
486
+ id?: string | undefined;
487
+ type: "chart";
488
+ queryId: string;
489
+ title?: string | undefined;
490
+ chartConfig?: {
491
+ type: "chart";
492
+ chartType: "line" | "bar" | "pie";
493
+ title: string;
494
+ labels: string[];
495
+ displayLabels?: string[] | undefined;
496
+ indexAxis?: "x" | "y" | undefined;
497
+ datasets: {
498
+ label: string;
499
+ data: number[];
500
+ axisKey?: "primary" | "secondary" | undefined;
501
+ valueFormat?: "number" | "currency" | undefined;
502
+ }[];
503
+ axes?: {
504
+ key: "primary" | "secondary";
505
+ label: string;
506
+ valueFormat: "number" | "currency";
507
+ }[] | undefined;
508
+ summary: string;
509
+ } | undefined;
510
+ columns: {
511
+ id: string;
512
+ label: string;
513
+ }[];
514
+ rows: Record<string, unknown>[];
515
+ })[];
516
+ timezone: string;
517
+ createdAt: string;
518
+ updatedAt: string;
519
+ };
520
+ };
521
+ } | {
522
+ kind: 'excel';
523
+ result: {
524
+ type: "excel";
525
+ title: string;
526
+ s3Key: string;
527
+ fileName: string;
528
+ rowCount: number;
529
+ previewTable: {
530
+ headers: string[];
531
+ rows: string[][];
532
+ };
533
+ };
534
+ } | null>;
535
+ allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
536
+ openDocx: (artifact: ReportArtifactResult) => void;
537
+ openExcel: (result: ExcelExportActionCardResult) => void;
538
+ openAllSessions: () => void;
539
+ setPage: (page: PreviewPage) => void;
540
+ clearFocused: () => void;
541
+ close: () => void;
542
+ }, "close" | "openDocx" | "openExcel" | "openAllSessions" | "setPage" | "clearFocused">>;