@feedmepos/mf-remy-panel 0.16.0-dev.1 → 0.17.0-dev.1
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/{HomeView-7c56daee.js → HomeView-4b829007.js} +53 -41
- package/dist/{RemyButton-66f83076.js → RemyButton-fa6467ad.js} +1 -1
- package/dist/api/connectedApps.d.ts +75 -0
- package/dist/api/memory.d.ts +123 -0
- package/dist/api/rcaActions.d.ts +59 -0
- package/dist/app-5820624d.js +30769 -0
- package/dist/app.js +1 -1
- package/dist/components/chatPanel/ChatMessages.vue.d.ts +4 -1
- package/dist/components/chatPanel/actionCards/NotifyTeamApprovalCard.vue.d.ts +15 -0
- package/dist/components/chatPanel/actionCards/RcaDriverPanel.vue.d.ts +24 -0
- package/dist/components/chatPanel/actionCards/RcaInsightCard.vue.d.ts +1 -0
- package/dist/components/expandedPanel/RcaExplorerSubpage.vue.d.ts +2 -0
- package/dist/components/expandedPanel/TasksSubpage.vue.d.ts +2 -0
- package/dist/components/integrations/ConnectedAppsManager.vue.d.ts +32 -0
- package/dist/components/memory/EpisodeTimeline.vue.d.ts +15 -0
- package/dist/components/memory/MemoryGraph.vue.d.ts +15 -0
- package/dist/components/memory/MemoryList.vue.d.ts +15 -0
- package/dist/components/memory/MemoryPanel.vue.d.ts +29 -0
- package/dist/stores/chatStore.d.ts +7 -0
- package/dist/stores/previewStore.d.ts +547 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +36 -0
- package/dist/types/tasks.d.ts +69 -0
- package/dist/utils/navigation.d.ts +10 -0
- package/package.json +1 -1
- package/dist/app-2a76af28.js +0 -27384
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReportArtifactResult, ExcelExportActionCardResult } from '@/types/chat';
|
|
2
|
-
export type PreviewPage = '
|
|
1
|
+
import type { ReportArtifactResult, ExcelExportActionCardResult, RcaInsightCardResult } from '@/types/chat';
|
|
2
|
+
export type PreviewPage = 'all-sessions' | 'tasks' | 'integrations' | 'memory';
|
|
3
3
|
export type AllSessionsTab = 'all' | 'this';
|
|
4
4
|
export type PreviewFocus = {
|
|
5
5
|
kind: 'docx';
|
|
@@ -7,6 +7,9 @@ export type PreviewFocus = {
|
|
|
7
7
|
} | {
|
|
8
8
|
kind: 'excel';
|
|
9
9
|
result: ExcelExportActionCardResult;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'rca';
|
|
12
|
+
result: RcaInsightCardResult;
|
|
10
13
|
};
|
|
11
14
|
export declare const usePreviewStore: import("pinia").StoreDefinition<"preview", Pick<{
|
|
12
15
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -127,6 +130,91 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
127
130
|
rows: string[][];
|
|
128
131
|
};
|
|
129
132
|
};
|
|
133
|
+
} | {
|
|
134
|
+
kind: 'rca';
|
|
135
|
+
result: {
|
|
136
|
+
type: "rca_insight";
|
|
137
|
+
rcaId?: string | undefined;
|
|
138
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
139
|
+
headline: string;
|
|
140
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
141
|
+
periodLabel: string;
|
|
142
|
+
baselineLabel: string;
|
|
143
|
+
metricDelta: {
|
|
144
|
+
current: number;
|
|
145
|
+
baseline: number;
|
|
146
|
+
deltaAbs: number;
|
|
147
|
+
deltaPct: number;
|
|
148
|
+
};
|
|
149
|
+
decomposition: {
|
|
150
|
+
orderCount?: {
|
|
151
|
+
current: number;
|
|
152
|
+
baseline: number;
|
|
153
|
+
deltaPct: number;
|
|
154
|
+
} | undefined;
|
|
155
|
+
aov?: {
|
|
156
|
+
current: number;
|
|
157
|
+
baseline: number;
|
|
158
|
+
deltaPct: number;
|
|
159
|
+
} | undefined;
|
|
160
|
+
};
|
|
161
|
+
localization?: {
|
|
162
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
163
|
+
topContributor: string;
|
|
164
|
+
contributionSharePct: number;
|
|
165
|
+
supportingQueryId?: string | undefined;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
drivers: {
|
|
168
|
+
label: string;
|
|
169
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
170
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
171
|
+
confidence: "high" | "medium" | "low";
|
|
172
|
+
evidence: string[];
|
|
173
|
+
rationale?: string | undefined;
|
|
174
|
+
impact?: {
|
|
175
|
+
valueLabel: string;
|
|
176
|
+
contributionSharePct?: number | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
supportingQueryIds?: string[] | undefined;
|
|
179
|
+
evidenceCharts?: {
|
|
180
|
+
type: "chart";
|
|
181
|
+
chartType: "line" | "bar" | "pie";
|
|
182
|
+
title: string;
|
|
183
|
+
labels: string[];
|
|
184
|
+
displayLabels?: string[] | undefined;
|
|
185
|
+
indexAxis?: "x" | "y" | undefined;
|
|
186
|
+
datasets: {
|
|
187
|
+
label: string;
|
|
188
|
+
data: number[];
|
|
189
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
190
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
191
|
+
}[];
|
|
192
|
+
axes?: {
|
|
193
|
+
key: "primary" | "secondary";
|
|
194
|
+
label: string;
|
|
195
|
+
valueFormat: "number" | "currency";
|
|
196
|
+
}[] | undefined;
|
|
197
|
+
summary: string;
|
|
198
|
+
}[] | undefined;
|
|
199
|
+
actions?: {
|
|
200
|
+
id: string;
|
|
201
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
prefill?: {
|
|
205
|
+
recipient?: string | undefined;
|
|
206
|
+
subject?: string | undefined;
|
|
207
|
+
message?: string | undefined;
|
|
208
|
+
taskTitle?: string | undefined;
|
|
209
|
+
dueInDays?: number | undefined;
|
|
210
|
+
query?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
supported: boolean;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
followUps?: string[] | undefined;
|
|
215
|
+
}[];
|
|
216
|
+
gaps: string[];
|
|
217
|
+
};
|
|
130
218
|
} | null, PreviewFocus | {
|
|
131
219
|
kind: 'docx';
|
|
132
220
|
artifact: {
|
|
@@ -243,15 +331,110 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
243
331
|
rows: string[][];
|
|
244
332
|
};
|
|
245
333
|
};
|
|
334
|
+
} | {
|
|
335
|
+
kind: 'rca';
|
|
336
|
+
result: {
|
|
337
|
+
type: "rca_insight";
|
|
338
|
+
rcaId?: string | undefined;
|
|
339
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
340
|
+
headline: string;
|
|
341
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
342
|
+
periodLabel: string;
|
|
343
|
+
baselineLabel: string;
|
|
344
|
+
metricDelta: {
|
|
345
|
+
current: number;
|
|
346
|
+
baseline: number;
|
|
347
|
+
deltaAbs: number;
|
|
348
|
+
deltaPct: number;
|
|
349
|
+
};
|
|
350
|
+
decomposition: {
|
|
351
|
+
orderCount?: {
|
|
352
|
+
current: number;
|
|
353
|
+
baseline: number;
|
|
354
|
+
deltaPct: number;
|
|
355
|
+
} | undefined;
|
|
356
|
+
aov?: {
|
|
357
|
+
current: number;
|
|
358
|
+
baseline: number;
|
|
359
|
+
deltaPct: number;
|
|
360
|
+
} | undefined;
|
|
361
|
+
};
|
|
362
|
+
localization?: {
|
|
363
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
364
|
+
topContributor: string;
|
|
365
|
+
contributionSharePct: number;
|
|
366
|
+
supportingQueryId?: string | undefined;
|
|
367
|
+
}[] | undefined;
|
|
368
|
+
drivers: {
|
|
369
|
+
label: string;
|
|
370
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
371
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
372
|
+
confidence: "high" | "medium" | "low";
|
|
373
|
+
evidence: string[];
|
|
374
|
+
rationale?: string | undefined;
|
|
375
|
+
impact?: {
|
|
376
|
+
valueLabel: string;
|
|
377
|
+
contributionSharePct?: number | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
supportingQueryIds?: string[] | undefined;
|
|
380
|
+
evidenceCharts?: {
|
|
381
|
+
type: "chart";
|
|
382
|
+
chartType: "line" | "bar" | "pie";
|
|
383
|
+
title: string;
|
|
384
|
+
labels: string[];
|
|
385
|
+
displayLabels?: string[] | undefined;
|
|
386
|
+
indexAxis?: "x" | "y" | undefined;
|
|
387
|
+
datasets: {
|
|
388
|
+
label: string;
|
|
389
|
+
data: number[];
|
|
390
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
391
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
392
|
+
}[];
|
|
393
|
+
axes?: {
|
|
394
|
+
key: "primary" | "secondary";
|
|
395
|
+
label: string;
|
|
396
|
+
valueFormat: "number" | "currency";
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
summary: string;
|
|
399
|
+
}[] | undefined;
|
|
400
|
+
actions?: {
|
|
401
|
+
id: string;
|
|
402
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
403
|
+
title: string;
|
|
404
|
+
description: string;
|
|
405
|
+
prefill?: {
|
|
406
|
+
recipient?: string | undefined;
|
|
407
|
+
subject?: string | undefined;
|
|
408
|
+
message?: string | undefined;
|
|
409
|
+
taskTitle?: string | undefined;
|
|
410
|
+
dueInDays?: number | undefined;
|
|
411
|
+
query?: string | undefined;
|
|
412
|
+
} | undefined;
|
|
413
|
+
supported: boolean;
|
|
414
|
+
}[] | undefined;
|
|
415
|
+
followUps?: string[] | undefined;
|
|
416
|
+
}[];
|
|
417
|
+
gaps: string[];
|
|
418
|
+
};
|
|
246
419
|
} | null>;
|
|
247
420
|
allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
|
|
421
|
+
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
422
|
+
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
423
|
+
taskCreatedAt: import("vue").Ref<number, number>;
|
|
248
424
|
openDocx: (artifact: ReportArtifactResult) => void;
|
|
249
425
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
426
|
+
openRca: (result: RcaInsightCardResult) => void;
|
|
250
427
|
openAllSessions: () => void;
|
|
428
|
+
openTasks: () => void;
|
|
429
|
+
openTaskFromRca: (taskId: string) => void;
|
|
430
|
+
openIntegrations: () => void;
|
|
431
|
+
openMemory: () => void;
|
|
251
432
|
setPage: (page: PreviewPage) => void;
|
|
252
433
|
clearFocused: () => void;
|
|
253
434
|
close: () => void;
|
|
254
|
-
|
|
435
|
+
scrollToChatMessage: (messageId: string, conversationId?: string) => void;
|
|
436
|
+
notifyTaskCreated: () => void;
|
|
437
|
+
}, "isOpen" | "activePage" | "focused" | "allSessionsTab" | "highlightedTaskId" | "scrollToChatMessageId" | "taskCreatedAt">, Pick<{
|
|
255
438
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
256
439
|
activePage: import("vue").Ref<PreviewPage, PreviewPage>;
|
|
257
440
|
focused: import("vue").Ref<{
|
|
@@ -370,6 +553,91 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
370
553
|
rows: string[][];
|
|
371
554
|
};
|
|
372
555
|
};
|
|
556
|
+
} | {
|
|
557
|
+
kind: 'rca';
|
|
558
|
+
result: {
|
|
559
|
+
type: "rca_insight";
|
|
560
|
+
rcaId?: string | undefined;
|
|
561
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
562
|
+
headline: string;
|
|
563
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
564
|
+
periodLabel: string;
|
|
565
|
+
baselineLabel: string;
|
|
566
|
+
metricDelta: {
|
|
567
|
+
current: number;
|
|
568
|
+
baseline: number;
|
|
569
|
+
deltaAbs: number;
|
|
570
|
+
deltaPct: number;
|
|
571
|
+
};
|
|
572
|
+
decomposition: {
|
|
573
|
+
orderCount?: {
|
|
574
|
+
current: number;
|
|
575
|
+
baseline: number;
|
|
576
|
+
deltaPct: number;
|
|
577
|
+
} | undefined;
|
|
578
|
+
aov?: {
|
|
579
|
+
current: number;
|
|
580
|
+
baseline: number;
|
|
581
|
+
deltaPct: number;
|
|
582
|
+
} | undefined;
|
|
583
|
+
};
|
|
584
|
+
localization?: {
|
|
585
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
586
|
+
topContributor: string;
|
|
587
|
+
contributionSharePct: number;
|
|
588
|
+
supportingQueryId?: string | undefined;
|
|
589
|
+
}[] | undefined;
|
|
590
|
+
drivers: {
|
|
591
|
+
label: string;
|
|
592
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
593
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
594
|
+
confidence: "high" | "medium" | "low";
|
|
595
|
+
evidence: string[];
|
|
596
|
+
rationale?: string | undefined;
|
|
597
|
+
impact?: {
|
|
598
|
+
valueLabel: string;
|
|
599
|
+
contributionSharePct?: number | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
supportingQueryIds?: string[] | undefined;
|
|
602
|
+
evidenceCharts?: {
|
|
603
|
+
type: "chart";
|
|
604
|
+
chartType: "line" | "bar" | "pie";
|
|
605
|
+
title: string;
|
|
606
|
+
labels: string[];
|
|
607
|
+
displayLabels?: string[] | undefined;
|
|
608
|
+
indexAxis?: "x" | "y" | undefined;
|
|
609
|
+
datasets: {
|
|
610
|
+
label: string;
|
|
611
|
+
data: number[];
|
|
612
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
613
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
614
|
+
}[];
|
|
615
|
+
axes?: {
|
|
616
|
+
key: "primary" | "secondary";
|
|
617
|
+
label: string;
|
|
618
|
+
valueFormat: "number" | "currency";
|
|
619
|
+
}[] | undefined;
|
|
620
|
+
summary: string;
|
|
621
|
+
}[] | undefined;
|
|
622
|
+
actions?: {
|
|
623
|
+
id: string;
|
|
624
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
625
|
+
title: string;
|
|
626
|
+
description: string;
|
|
627
|
+
prefill?: {
|
|
628
|
+
recipient?: string | undefined;
|
|
629
|
+
subject?: string | undefined;
|
|
630
|
+
message?: string | undefined;
|
|
631
|
+
taskTitle?: string | undefined;
|
|
632
|
+
dueInDays?: number | undefined;
|
|
633
|
+
query?: string | undefined;
|
|
634
|
+
} | undefined;
|
|
635
|
+
supported: boolean;
|
|
636
|
+
}[] | undefined;
|
|
637
|
+
followUps?: string[] | undefined;
|
|
638
|
+
}[];
|
|
639
|
+
gaps: string[];
|
|
640
|
+
};
|
|
373
641
|
} | null, PreviewFocus | {
|
|
374
642
|
kind: 'docx';
|
|
375
643
|
artifact: {
|
|
@@ -486,14 +754,109 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
486
754
|
rows: string[][];
|
|
487
755
|
};
|
|
488
756
|
};
|
|
757
|
+
} | {
|
|
758
|
+
kind: 'rca';
|
|
759
|
+
result: {
|
|
760
|
+
type: "rca_insight";
|
|
761
|
+
rcaId?: string | undefined;
|
|
762
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
763
|
+
headline: string;
|
|
764
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
765
|
+
periodLabel: string;
|
|
766
|
+
baselineLabel: string;
|
|
767
|
+
metricDelta: {
|
|
768
|
+
current: number;
|
|
769
|
+
baseline: number;
|
|
770
|
+
deltaAbs: number;
|
|
771
|
+
deltaPct: number;
|
|
772
|
+
};
|
|
773
|
+
decomposition: {
|
|
774
|
+
orderCount?: {
|
|
775
|
+
current: number;
|
|
776
|
+
baseline: number;
|
|
777
|
+
deltaPct: number;
|
|
778
|
+
} | undefined;
|
|
779
|
+
aov?: {
|
|
780
|
+
current: number;
|
|
781
|
+
baseline: number;
|
|
782
|
+
deltaPct: number;
|
|
783
|
+
} | undefined;
|
|
784
|
+
};
|
|
785
|
+
localization?: {
|
|
786
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
787
|
+
topContributor: string;
|
|
788
|
+
contributionSharePct: number;
|
|
789
|
+
supportingQueryId?: string | undefined;
|
|
790
|
+
}[] | undefined;
|
|
791
|
+
drivers: {
|
|
792
|
+
label: string;
|
|
793
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
794
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
795
|
+
confidence: "high" | "medium" | "low";
|
|
796
|
+
evidence: string[];
|
|
797
|
+
rationale?: string | undefined;
|
|
798
|
+
impact?: {
|
|
799
|
+
valueLabel: string;
|
|
800
|
+
contributionSharePct?: number | undefined;
|
|
801
|
+
} | undefined;
|
|
802
|
+
supportingQueryIds?: string[] | undefined;
|
|
803
|
+
evidenceCharts?: {
|
|
804
|
+
type: "chart";
|
|
805
|
+
chartType: "line" | "bar" | "pie";
|
|
806
|
+
title: string;
|
|
807
|
+
labels: string[];
|
|
808
|
+
displayLabels?: string[] | undefined;
|
|
809
|
+
indexAxis?: "x" | "y" | undefined;
|
|
810
|
+
datasets: {
|
|
811
|
+
label: string;
|
|
812
|
+
data: number[];
|
|
813
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
814
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
815
|
+
}[];
|
|
816
|
+
axes?: {
|
|
817
|
+
key: "primary" | "secondary";
|
|
818
|
+
label: string;
|
|
819
|
+
valueFormat: "number" | "currency";
|
|
820
|
+
}[] | undefined;
|
|
821
|
+
summary: string;
|
|
822
|
+
}[] | undefined;
|
|
823
|
+
actions?: {
|
|
824
|
+
id: string;
|
|
825
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
826
|
+
title: string;
|
|
827
|
+
description: string;
|
|
828
|
+
prefill?: {
|
|
829
|
+
recipient?: string | undefined;
|
|
830
|
+
subject?: string | undefined;
|
|
831
|
+
message?: string | undefined;
|
|
832
|
+
taskTitle?: string | undefined;
|
|
833
|
+
dueInDays?: number | undefined;
|
|
834
|
+
query?: string | undefined;
|
|
835
|
+
} | undefined;
|
|
836
|
+
supported: boolean;
|
|
837
|
+
}[] | undefined;
|
|
838
|
+
followUps?: string[] | undefined;
|
|
839
|
+
}[];
|
|
840
|
+
gaps: string[];
|
|
841
|
+
};
|
|
489
842
|
} | null>;
|
|
490
843
|
allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
|
|
844
|
+
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
845
|
+
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
846
|
+
taskCreatedAt: import("vue").Ref<number, number>;
|
|
491
847
|
openDocx: (artifact: ReportArtifactResult) => void;
|
|
492
848
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
849
|
+
openRca: (result: RcaInsightCardResult) => void;
|
|
493
850
|
openAllSessions: () => void;
|
|
851
|
+
openTasks: () => void;
|
|
852
|
+
openTaskFromRca: (taskId: string) => void;
|
|
853
|
+
openIntegrations: () => void;
|
|
854
|
+
openMemory: () => void;
|
|
494
855
|
setPage: (page: PreviewPage) => void;
|
|
495
856
|
clearFocused: () => void;
|
|
496
857
|
close: () => void;
|
|
858
|
+
scrollToChatMessage: (messageId: string, conversationId?: string) => void;
|
|
859
|
+
notifyTaskCreated: () => void;
|
|
497
860
|
}, never>, Pick<{
|
|
498
861
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
499
862
|
activePage: import("vue").Ref<PreviewPage, PreviewPage>;
|
|
@@ -613,6 +976,91 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
613
976
|
rows: string[][];
|
|
614
977
|
};
|
|
615
978
|
};
|
|
979
|
+
} | {
|
|
980
|
+
kind: 'rca';
|
|
981
|
+
result: {
|
|
982
|
+
type: "rca_insight";
|
|
983
|
+
rcaId?: string | undefined;
|
|
984
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
985
|
+
headline: string;
|
|
986
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
987
|
+
periodLabel: string;
|
|
988
|
+
baselineLabel: string;
|
|
989
|
+
metricDelta: {
|
|
990
|
+
current: number;
|
|
991
|
+
baseline: number;
|
|
992
|
+
deltaAbs: number;
|
|
993
|
+
deltaPct: number;
|
|
994
|
+
};
|
|
995
|
+
decomposition: {
|
|
996
|
+
orderCount?: {
|
|
997
|
+
current: number;
|
|
998
|
+
baseline: number;
|
|
999
|
+
deltaPct: number;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
aov?: {
|
|
1002
|
+
current: number;
|
|
1003
|
+
baseline: number;
|
|
1004
|
+
deltaPct: number;
|
|
1005
|
+
} | undefined;
|
|
1006
|
+
};
|
|
1007
|
+
localization?: {
|
|
1008
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
1009
|
+
topContributor: string;
|
|
1010
|
+
contributionSharePct: number;
|
|
1011
|
+
supportingQueryId?: string | undefined;
|
|
1012
|
+
}[] | undefined;
|
|
1013
|
+
drivers: {
|
|
1014
|
+
label: string;
|
|
1015
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
1016
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
1017
|
+
confidence: "high" | "medium" | "low";
|
|
1018
|
+
evidence: string[];
|
|
1019
|
+
rationale?: string | undefined;
|
|
1020
|
+
impact?: {
|
|
1021
|
+
valueLabel: string;
|
|
1022
|
+
contributionSharePct?: number | undefined;
|
|
1023
|
+
} | undefined;
|
|
1024
|
+
supportingQueryIds?: string[] | undefined;
|
|
1025
|
+
evidenceCharts?: {
|
|
1026
|
+
type: "chart";
|
|
1027
|
+
chartType: "line" | "bar" | "pie";
|
|
1028
|
+
title: string;
|
|
1029
|
+
labels: string[];
|
|
1030
|
+
displayLabels?: string[] | undefined;
|
|
1031
|
+
indexAxis?: "x" | "y" | undefined;
|
|
1032
|
+
datasets: {
|
|
1033
|
+
label: string;
|
|
1034
|
+
data: number[];
|
|
1035
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
1036
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
1037
|
+
}[];
|
|
1038
|
+
axes?: {
|
|
1039
|
+
key: "primary" | "secondary";
|
|
1040
|
+
label: string;
|
|
1041
|
+
valueFormat: "number" | "currency";
|
|
1042
|
+
}[] | undefined;
|
|
1043
|
+
summary: string;
|
|
1044
|
+
}[] | undefined;
|
|
1045
|
+
actions?: {
|
|
1046
|
+
id: string;
|
|
1047
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
1048
|
+
title: string;
|
|
1049
|
+
description: string;
|
|
1050
|
+
prefill?: {
|
|
1051
|
+
recipient?: string | undefined;
|
|
1052
|
+
subject?: string | undefined;
|
|
1053
|
+
message?: string | undefined;
|
|
1054
|
+
taskTitle?: string | undefined;
|
|
1055
|
+
dueInDays?: number | undefined;
|
|
1056
|
+
query?: string | undefined;
|
|
1057
|
+
} | undefined;
|
|
1058
|
+
supported: boolean;
|
|
1059
|
+
}[] | undefined;
|
|
1060
|
+
followUps?: string[] | undefined;
|
|
1061
|
+
}[];
|
|
1062
|
+
gaps: string[];
|
|
1063
|
+
};
|
|
616
1064
|
} | null, PreviewFocus | {
|
|
617
1065
|
kind: 'docx';
|
|
618
1066
|
artifact: {
|
|
@@ -729,12 +1177,107 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
729
1177
|
rows: string[][];
|
|
730
1178
|
};
|
|
731
1179
|
};
|
|
1180
|
+
} | {
|
|
1181
|
+
kind: 'rca';
|
|
1182
|
+
result: {
|
|
1183
|
+
type: "rca_insight";
|
|
1184
|
+
rcaId?: string | undefined;
|
|
1185
|
+
targetMetric: "aov" | "revenue" | "order_count";
|
|
1186
|
+
headline: string;
|
|
1187
|
+
status: "explained" | "partially_explained" | "inconclusive" | "no_data";
|
|
1188
|
+
periodLabel: string;
|
|
1189
|
+
baselineLabel: string;
|
|
1190
|
+
metricDelta: {
|
|
1191
|
+
current: number;
|
|
1192
|
+
baseline: number;
|
|
1193
|
+
deltaAbs: number;
|
|
1194
|
+
deltaPct: number;
|
|
1195
|
+
};
|
|
1196
|
+
decomposition: {
|
|
1197
|
+
orderCount?: {
|
|
1198
|
+
current: number;
|
|
1199
|
+
baseline: number;
|
|
1200
|
+
deltaPct: number;
|
|
1201
|
+
} | undefined;
|
|
1202
|
+
aov?: {
|
|
1203
|
+
current: number;
|
|
1204
|
+
baseline: number;
|
|
1205
|
+
deltaPct: number;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
};
|
|
1208
|
+
localization?: {
|
|
1209
|
+
dimension: "outlet" | "daypart" | "item" | "category" | "payment_method";
|
|
1210
|
+
topContributor: string;
|
|
1211
|
+
contributionSharePct: number;
|
|
1212
|
+
supportingQueryId?: string | undefined;
|
|
1213
|
+
}[] | undefined;
|
|
1214
|
+
drivers: {
|
|
1215
|
+
label: string;
|
|
1216
|
+
type: "demand" | "aov" | "mix" | "refund" | "discount" | "operations" | "inventory" | "loyalty" | "menu";
|
|
1217
|
+
rank: "primary" | "secondary" | "contributing" | "unconfirmed";
|
|
1218
|
+
confidence: "high" | "medium" | "low";
|
|
1219
|
+
evidence: string[];
|
|
1220
|
+
rationale?: string | undefined;
|
|
1221
|
+
impact?: {
|
|
1222
|
+
valueLabel: string;
|
|
1223
|
+
contributionSharePct?: number | undefined;
|
|
1224
|
+
} | undefined;
|
|
1225
|
+
supportingQueryIds?: string[] | undefined;
|
|
1226
|
+
evidenceCharts?: {
|
|
1227
|
+
type: "chart";
|
|
1228
|
+
chartType: "line" | "bar" | "pie";
|
|
1229
|
+
title: string;
|
|
1230
|
+
labels: string[];
|
|
1231
|
+
displayLabels?: string[] | undefined;
|
|
1232
|
+
indexAxis?: "x" | "y" | undefined;
|
|
1233
|
+
datasets: {
|
|
1234
|
+
label: string;
|
|
1235
|
+
data: number[];
|
|
1236
|
+
axisKey?: "primary" | "secondary" | undefined;
|
|
1237
|
+
valueFormat?: "number" | "currency" | undefined;
|
|
1238
|
+
}[];
|
|
1239
|
+
axes?: {
|
|
1240
|
+
key: "primary" | "secondary";
|
|
1241
|
+
label: string;
|
|
1242
|
+
valueFormat: "number" | "currency";
|
|
1243
|
+
}[] | undefined;
|
|
1244
|
+
summary: string;
|
|
1245
|
+
}[] | undefined;
|
|
1246
|
+
actions?: {
|
|
1247
|
+
id: string;
|
|
1248
|
+
kind: import("@/types/chat").RcaActionKind;
|
|
1249
|
+
title: string;
|
|
1250
|
+
description: string;
|
|
1251
|
+
prefill?: {
|
|
1252
|
+
recipient?: string | undefined;
|
|
1253
|
+
subject?: string | undefined;
|
|
1254
|
+
message?: string | undefined;
|
|
1255
|
+
taskTitle?: string | undefined;
|
|
1256
|
+
dueInDays?: number | undefined;
|
|
1257
|
+
query?: string | undefined;
|
|
1258
|
+
} | undefined;
|
|
1259
|
+
supported: boolean;
|
|
1260
|
+
}[] | undefined;
|
|
1261
|
+
followUps?: string[] | undefined;
|
|
1262
|
+
}[];
|
|
1263
|
+
gaps: string[];
|
|
1264
|
+
};
|
|
732
1265
|
} | null>;
|
|
733
1266
|
allSessionsTab: import("vue").Ref<AllSessionsTab, AllSessionsTab>;
|
|
1267
|
+
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
1268
|
+
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
1269
|
+
taskCreatedAt: import("vue").Ref<number, number>;
|
|
734
1270
|
openDocx: (artifact: ReportArtifactResult) => void;
|
|
735
1271
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
1272
|
+
openRca: (result: RcaInsightCardResult) => void;
|
|
736
1273
|
openAllSessions: () => void;
|
|
1274
|
+
openTasks: () => void;
|
|
1275
|
+
openTaskFromRca: (taskId: string) => void;
|
|
1276
|
+
openIntegrations: () => void;
|
|
1277
|
+
openMemory: () => void;
|
|
737
1278
|
setPage: (page: PreviewPage) => void;
|
|
738
1279
|
clearFocused: () => void;
|
|
739
1280
|
close: () => void;
|
|
740
|
-
|
|
1281
|
+
scrollToChatMessage: (messageId: string, conversationId?: string) => void;
|
|
1282
|
+
notifyTaskCreated: () => void;
|
|
1283
|
+
}, "close" | "openDocx" | "openExcel" | "openRca" | "openAllSessions" | "openTasks" | "openTaskFromRca" | "openIntegrations" | "openMemory" | "setPage" | "clearFocused" | "scrollToChatMessage" | "notifyTaskCreated">>;
|