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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.299-dev",
3
+ "version": "1.0.300-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -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;
@@ -1,6 +1 @@
1
- /**
2
- * Question log. The "Dưới ngưỡng" filter is the useful one day to day: it is
3
- * effectively the list of things customers ask that the knowledge base cannot
4
- * yet answer.
5
- */
6
1
  export declare const RagLogsPage: () => import("react/jsx-runtime").JSX.Element;
@@ -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;