gotrip-fx-transaction-form 1.0.299-dev → 1.0.300-dev
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/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
/** Document to preview; null closes the dialog. */
|
|
3
|
+
documentId: number | null;
|
|
4
|
+
title: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Shows the uploaded source file so an admin can check it against the chunks
|
|
9
|
+
* that were extracted from it.
|
|
10
|
+
*
|
|
11
|
+
* The file is fetched as a short-lived signed URL each time the dialog opens
|
|
12
|
+
* rather than being cached, since the URL expires after 30 minutes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const RagDocumentPreviewDialog: ({ documentId, title, onClose }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ERagDocumentStatus, ERagQueryOutcome, IPaginated, IRagChunk, IRagDocument, IRagIndexHealth, IRagPreviewResult, IRagQueryLog, IRagSettings } from '../types/rag';
|
|
1
|
+
import { ERagDocumentStatus, ERagQueryOutcome, IPaginated, IRagChunk, IRagDocument, IRagDocumentFile, IRagIndexHealth, IRagPreviewResult, IRagQueryLog, IRagSettings } from '../types/rag';
|
|
2
2
|
export declare const useRagAdmin: () => {
|
|
3
3
|
listDocuments: (params: {
|
|
4
4
|
page?: number;
|
|
@@ -8,6 +8,7 @@ export declare const useRagAdmin: () => {
|
|
|
8
8
|
}) => Promise<IPaginated<IRagDocument>>;
|
|
9
9
|
uploadDocument: (file: File, title?: string) => Promise<IRagDocument>;
|
|
10
10
|
getDocument: (id: number) => Promise<IRagDocument>;
|
|
11
|
+
getDocumentFileUrl: (id: number) => Promise<IRagDocumentFile>;
|
|
11
12
|
updateDocument: (id: number, changes: {
|
|
12
13
|
title?: string;
|
|
13
14
|
status?: ERagDocumentStatus;
|
package/types/types/rag.d.ts
CHANGED
|
@@ -102,6 +102,12 @@ export interface IRagIndexHealth {
|
|
|
102
102
|
actualPoints: number | null;
|
|
103
103
|
inSync: boolean;
|
|
104
104
|
}
|
|
105
|
+
export interface IRagDocumentFile {
|
|
106
|
+
url: string;
|
|
107
|
+
expiresAt: number;
|
|
108
|
+
filename: string;
|
|
109
|
+
sourceType: ERagSourceType;
|
|
110
|
+
}
|
|
105
111
|
export interface IPaginated<T> {
|
|
106
112
|
data: T[];
|
|
107
113
|
total: number;
|