@elqnt/kg 3.0.1 → 3.0.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.
- package/dist/api/index.d.mts +92 -3
- package/dist/api/index.d.ts +92 -3
- package/dist/api/index.js +16 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +15 -1
- package/dist/api/server.d.mts +1 -0
- package/dist/api/server.d.ts +1 -0
- package/dist/{chunk-HCDFJCQL.mjs → chunk-5D7RJC7D.mjs} +105 -5
- package/dist/chunk-5D7RJC7D.mjs.map +1 -0
- package/dist/chunk-B33SF6DB.js +2 -0
- package/dist/{chunk-W4XVBGE7.js.map → chunk-B33SF6DB.js.map} +1 -1
- package/dist/chunk-BP2I7KWY.js +1031 -0
- package/dist/chunk-BP2I7KWY.js.map +1 -0
- package/dist/{chunk-2TJCYLTP.js → chunk-CNWOI7LX.js} +104 -4
- package/dist/chunk-CNWOI7LX.js.map +1 -0
- package/dist/chunk-MAEB7UOW.mjs +257 -0
- package/dist/chunk-MAEB7UOW.mjs.map +1 -0
- package/dist/chunk-SUDQ45LY.mjs +2 -0
- package/dist/chunk-WYRCAPY4.js +257 -0
- package/dist/chunk-WYRCAPY4.js.map +1 -0
- package/dist/chunk-ZEPJC46Z.mjs +1031 -0
- package/dist/chunk-ZEPJC46Z.mjs.map +1 -0
- package/dist/hooks/index.d.mts +446 -79
- package/dist/hooks/index.d.ts +446 -79
- package/dist/hooks/index.js +8 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +9 -4
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -12
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +213 -0
- package/dist/models/index.d.ts +213 -0
- package/dist/models/index.js +1 -1
- package/dist/models/index.mjs +1 -1
- package/dist/transport/index.d.mts +365 -0
- package/dist/transport/index.d.ts +365 -0
- package/dist/transport/index.js +10 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/index.mjs +10 -0
- package/dist/transport/index.mjs.map +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-2TJCYLTP.js.map +0 -1
- package/dist/chunk-7RW5MHP5.js +0 -497
- package/dist/chunk-7RW5MHP5.js.map +0 -1
- package/dist/chunk-HCDFJCQL.mjs.map +0 -1
- package/dist/chunk-JZ7UXVRW.mjs +0 -497
- package/dist/chunk-JZ7UXVRW.mjs.map +0 -1
- package/dist/chunk-NJNBEGDB.mjs +0 -2
- package/dist/chunk-W4XVBGE7.js +0 -2
- /package/dist/{chunk-NJNBEGDB.mjs.map → chunk-SUDQ45LY.mjs.map} +0 -0
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,84 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Graph, CreateGraphRequest, KGQuery, KGQueryResult,
|
|
1
|
+
import { ApiClientOptions } from '@elqnt/api-client';
|
|
2
|
+
import { Graph, CreateGraphRequest, KGQuery, KGQueryResult, KGNode, KGNodeIngestRequest } from '../models/kg.js';
|
|
3
3
|
import { GraphNodeDefinition, GraphEdgeDefinition } from '../models/kg-designer.js';
|
|
4
4
|
import { CrawlJob } from '../api/index.js';
|
|
5
|
+
import { QuickIngestItem, QuickIngestStartRequest, ExtractedNode, ExtractedEdge } from '../models/index.js';
|
|
6
|
+
export { UseAsyncOptions, UseAsyncReturn, useApiAsync, useAsync } from '@elqnt/api-client/hooks';
|
|
5
7
|
import '@elqnt/types';
|
|
6
8
|
|
|
7
|
-
interface UseAsyncOptions {
|
|
8
|
-
/** Custom error handler - called in addition to setting error state */
|
|
9
|
-
onError?: (error: string) => void;
|
|
10
|
-
}
|
|
11
|
-
interface UseAsyncReturn<TResult, TArgs extends unknown[]> {
|
|
12
|
-
/** Execute the async function */
|
|
13
|
-
execute: (...args: TArgs) => Promise<TResult>;
|
|
14
|
-
/** Whether any request is currently in flight */
|
|
15
|
-
loading: boolean;
|
|
16
|
-
/** Last error message, or null if no error */
|
|
17
|
-
error: string | null;
|
|
18
|
-
/** Clear the current error */
|
|
19
|
-
clearError: () => void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create an async operation handler with loading and error states
|
|
23
|
-
*
|
|
24
|
-
* This hook wraps async functions to automatically manage:
|
|
25
|
-
* - Loading state (using request counter for concurrent calls)
|
|
26
|
-
* - Error state (extracted from ApiResponse or Error)
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* const { execute: fetchGraphs, loading, error } = useAsync(
|
|
31
|
-
* async () => {
|
|
32
|
-
* const response = await listGraphsApi(options);
|
|
33
|
-
* if (response.error) throw new Error(response.error);
|
|
34
|
-
* return response.data?.graphs || [];
|
|
35
|
-
* }
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function useAsync<TResult, TArgs extends unknown[] = []>(asyncFn: (...args: TArgs) => Promise<TResult>, options?: UseAsyncOptions): UseAsyncReturn<TResult, TArgs>;
|
|
40
|
-
/**
|
|
41
|
-
* Create an async operation handler specifically for ApiResponse-returning functions
|
|
42
|
-
*
|
|
43
|
-
* Unlike useAsync, this handles the ApiResponse unwrapping automatically:
|
|
44
|
-
* - Extracts data using the provided extractor
|
|
45
|
-
* - Sets error state from response.error
|
|
46
|
-
* - Returns default value on error
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```tsx
|
|
50
|
-
* const { execute: fetchGraphs, loading, error } = useApiAsync(
|
|
51
|
-
* () => listGraphsApi(optionsRef.current),
|
|
52
|
-
* (data) => data.graphs || [],
|
|
53
|
-
* []
|
|
54
|
-
* );
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
declare function useApiAsync<TResponse, TResult, TArgs extends unknown[] = []>(asyncFn: (...args: TArgs) => Promise<ApiResponse<TResponse>>, extractor: (data: TResponse) => TResult, defaultValue: TResult, options?: UseAsyncOptions): UseAsyncReturn<TResult, TArgs>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Keep a mutable ref synchronized with the latest value
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```tsx
|
|
64
|
-
* function useGraphs(options: ApiClientOptions) {
|
|
65
|
-
* const optionsRef = useOptionsRef(options);
|
|
66
|
-
*
|
|
67
|
-
* const listGraphs = useCallback(async () => {
|
|
68
|
-
* // Always uses latest options
|
|
69
|
-
* return listGraphsApi(optionsRef.current);
|
|
70
|
-
* }, []); // No dependency on options - callback never changes
|
|
71
|
-
*
|
|
72
|
-
* return { listGraphs };
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
declare function useOptionsRef<T>(options: T): React.MutableRefObject<T>;
|
|
77
|
-
|
|
78
|
-
/** Options for KG hooks that require a graph ID */
|
|
79
|
-
type UseKGOptions = ApiClientOptions & {
|
|
80
|
-
graphId?: string;
|
|
81
|
-
};
|
|
82
9
|
/**
|
|
83
10
|
* Hook for knowledge graph CRUD operations
|
|
84
11
|
*
|
|
@@ -101,6 +28,208 @@ declare function useGraphs(options: ApiClientOptions): {
|
|
|
101
28
|
updateGraph: (graphId: string, updates: Partial<Graph>) => Promise<Graph | null>;
|
|
102
29
|
deleteGraph: (graphId: string) => Promise<boolean>;
|
|
103
30
|
};
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(exports, "__esModule", {value: true});
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var _chunkADIKUMMIjs = require('./chunk-ADIKUMMI.js');
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
var _chunkBP2I7KWYjs = require('./chunk-BP2I7KWY.js');
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
var _chunkCNWOI7LXjs = require('./chunk-CNWOI7LX.js');
|
|
88
|
+
require('./chunk-B33SF6DB.js');
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
var _chunk67SUELDRjs = require('./chunk-67SUELDR.js');
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
var _chunkUCKE66GBjs = require('./chunk-UCKE66GB.js');
|
|
132
|
+
require('./chunk-WYRCAPY4.js');
|
|
133
|
+
|
|
134
|
+
// consts.ts
|
|
135
|
+
var Test = "hi";
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
exports.DuplicatePolicyCreate = _chunkUCKE66GBjs.DuplicatePolicyCreate; exports.DuplicatePolicyCreateIf = _chunkUCKE66GBjs.DuplicatePolicyCreateIf; exports.DuplicatePolicyFail = _chunkUCKE66GBjs.DuplicatePolicyFail; exports.DuplicatePolicyIgnore = _chunkUCKE66GBjs.DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = _chunkUCKE66GBjs.DuplicatePolicyReplace; exports.KGDBCreate = _chunk67SUELDRjs.KGDBCreate; exports.KGDesignerEdgeCreate = _chunk67SUELDRjs.KGDesignerEdgeCreate; exports.KGDesignerEdgeDelete = _chunk67SUELDRjs.KGDesignerEdgeDelete; exports.KGDesignerEdgeGet = _chunk67SUELDRjs.KGDesignerEdgeGet; exports.KGDesignerEdgeList = _chunk67SUELDRjs.KGDesignerEdgeList; exports.KGDesignerEdgeUpdate = _chunk67SUELDRjs.KGDesignerEdgeUpdate; exports.KGDesignerNodeCreate = _chunk67SUELDRjs.KGDesignerNodeCreate; exports.KGDesignerNodeDelete = _chunk67SUELDRjs.KGDesignerNodeDelete; exports.KGDesignerNodeGet = _chunk67SUELDRjs.KGDesignerNodeGet; exports.KGDesignerNodeList = _chunk67SUELDRjs.KGDesignerNodeList; exports.KGDesignerNodeUpdate = _chunk67SUELDRjs.KGDesignerNodeUpdate; exports.KGDocumentDelete = _chunk67SUELDRjs.KGDocumentDelete; exports.KGFieldQueryOperatorArrayContains = _chunkUCKE66GBjs.KGFieldQueryOperatorArrayContains; exports.KGFieldQueryOperatorEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorGreater = _chunkUCKE66GBjs.KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorGreaterOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorIn = _chunkUCKE66GBjs.KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorLess = _chunkUCKE66GBjs.KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorLessOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = _chunkUCKE66GBjs.KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorNotEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorSimilar = _chunkUCKE66GBjs.KGFieldQueryOperatorSimilar; exports.KGGraphCreate = _chunk67SUELDRjs.KGGraphCreate; exports.KGGraphDelete = _chunk67SUELDRjs.KGGraphDelete; exports.KGGraphGet = _chunk67SUELDRjs.KGGraphGet; exports.KGGraphList = _chunk67SUELDRjs.KGGraphList; exports.KGGraphOptimize = _chunk67SUELDRjs.KGGraphOptimize; exports.KGGraphUpdate = _chunk67SUELDRjs.KGGraphUpdate; exports.KGIngestBatchSync = _chunk67SUELDRjs.KGIngestBatchSync; exports.KGIngestNodeSync = _chunk67SUELDRjs.KGIngestNodeSync; exports.KGQueryBuilder = _chunkADIKUMMIjs.KGQueryBuilder; exports.KGRelationshipDirectionIncoming = _chunkUCKE66GBjs.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkUCKE66GBjs.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk67SUELDRjs.KGSyncJobList; exports.KGSyncJobUpdate = _chunk67SUELDRjs.KGSyncJobUpdate; exports.Test = Test; exports.cancelCrawlJobApi = _chunkCNWOI7LXjs.cancelCrawlJobApi; exports.cancelFullIngestExtractionApi = _chunkCNWOI7LXjs.cancelFullIngestExtractionApi; exports.cancelQuickIngestApi = _chunkCNWOI7LXjs.cancelQuickIngestApi; exports.createDesignerEdgeApi = _chunkCNWOI7LXjs.createDesignerEdgeApi; exports.createDesignerNodeApi = _chunkCNWOI7LXjs.createDesignerNodeApi; exports.createEdgeQuery = _chunkADIKUMMIjs.createEdgeQuery; exports.createFieldQuery = _chunkADIKUMMIjs.createFieldQuery; exports.createGraphApi = _chunkCNWOI7LXjs.createGraphApi; exports.createNodeQuery = _chunkADIKUMMIjs.createNodeQuery; exports.createSimilarityQuery = _chunkADIKUMMIjs.createSimilarityQuery; exports.deleteDesignerEdgeApi = _chunkCNWOI7LXjs.deleteDesignerEdgeApi; exports.deleteDesignerNodeApi = _chunkCNWOI7LXjs.deleteDesignerNodeApi; exports.deleteGraphApi = _chunkCNWOI7LXjs.deleteGraphApi; exports.deleteKGDocumentApi = _chunkCNWOI7LXjs.deleteKGDocumentApi; exports.getCrawlJobStatusApi = _chunkCNWOI7LXjs.getCrawlJobStatusApi; exports.getCrawledPagesApi = _chunkCNWOI7LXjs.getCrawledPagesApi; exports.getDesignerEdgeApi = _chunkCNWOI7LXjs.getDesignerEdgeApi; exports.getDesignerNodeApi = _chunkCNWOI7LXjs.getDesignerNodeApi; exports.getFullIngestJobApi = _chunkCNWOI7LXjs.getFullIngestJobApi; exports.getGraphApi = _chunkCNWOI7LXjs.getGraphApi; exports.getGraphLabelsApi = _chunkCNWOI7LXjs.getGraphLabelsApi; exports.getKGNodeApi = _chunkCNWOI7LXjs.getKGNodeApi; exports.getNodeConnectionStatsApi = _chunkCNWOI7LXjs.getNodeConnectionStatsApi; exports.ingestDocumentApi = _chunkCNWOI7LXjs.ingestDocumentApi; exports.ingestFullIngestNodesApi = _chunkCNWOI7LXjs.ingestFullIngestNodesApi; exports.ingestKGNodeApi = _chunkCNWOI7LXjs.ingestKGNodeApi; exports.listCrawlJobsApi = _chunkCNWOI7LXjs.listCrawlJobsApi; exports.listDesignerEdgesApi = _chunkCNWOI7LXjs.listDesignerEdgesApi; exports.listDesignerNodesApi = _chunkCNWOI7LXjs.listDesignerNodesApi; exports.listFullIngestJobsApi = _chunkCNWOI7LXjs.listFullIngestJobsApi; exports.listGraphsApi = _chunkCNWOI7LXjs.listGraphsApi; exports.optimizeGraphApi = _chunkCNWOI7LXjs.optimizeGraphApi; exports.queryGraphApi = _chunkCNWOI7LXjs.queryGraphApi; exports.startCrawlJobApi = _chunkCNWOI7LXjs.startCrawlJobApi; exports.startFullIngestExtractionApi = _chunkCNWOI7LXjs.startFullIngestExtractionApi; exports.startQuickIngestApi = _chunkCNWOI7LXjs.startQuickIngestApi; exports.updateDesignerEdgeApi = _chunkCNWOI7LXjs.updateDesignerEdgeApi; exports.updateDesignerNodeApi = _chunkCNWOI7LXjs.updateDesignerNodeApi; exports.updateGraphApi = _chunkCNWOI7LXjs.updateGraphApi; exports.updateKGNodeApi = _chunkCNWOI7LXjs.updateKGNodeApi; exports.useApiAsync = _chunkBP2I7KWYjs.useApiAsync; exports.useAsync = _chunkBP2I7KWYjs.useAsync; exports.useCrawlJobs = _chunkBP2I7KWYjs.useCrawlJobs; exports.useFullIngest = _chunkBP2I7KWYjs.useFullIngest; exports.useGraphs = _chunkBP2I7KWYjs.useGraphs; exports.useKGDesigner = _chunkBP2I7KWYjs.useKGDesigner; exports.useKGQuery = _chunkBP2I7KWYjs.useKGQuery; exports.useOptionsRef = _chunkBP2I7KWYjs.useOptionsRef; exports.useQuickIngest = _chunkBP2I7KWYjs.useQuickIngest;
|
|
228
|
+
|
|
229
|
+
/** Options for KG hooks that require a graph ID */
|
|
230
|
+
type UseKGOptions = ApiClientOptions & {
|
|
231
|
+
graphId?: string;
|
|
232
|
+
};
|
|
104
233
|
/**
|
|
105
234
|
* Hook for querying knowledge graph nodes
|
|
106
235
|
*
|
|
@@ -119,11 +248,12 @@ declare function useKGQuery(options: UseKGOptions): {
|
|
|
119
248
|
loading: boolean;
|
|
120
249
|
error: string | null;
|
|
121
250
|
query: (queryParams: KGQuery) => Promise<KGQueryResult | null>;
|
|
122
|
-
getLabels: () => Promise<
|
|
251
|
+
getLabels: () => Promise<undefined[]>;
|
|
123
252
|
getNode: (nodeId: string) => Promise<KGNode | null>;
|
|
124
253
|
ingestNode: (node: KGNodeIngestRequest) => Promise<string | null>;
|
|
125
254
|
updateNode: (nodeId: string, updates: Partial<KGNode>) => Promise<boolean>;
|
|
126
255
|
};
|
|
256
|
+
|
|
127
257
|
/**
|
|
128
258
|
* Hook for KG designer operations (node and edge definitions)
|
|
129
259
|
*
|
|
@@ -151,6 +281,7 @@ declare function useKGDesigner(options: UseKGOptions): {
|
|
|
151
281
|
updateEdge: (label: string, updates: Partial<GraphEdgeDefinition>) => Promise<GraphEdgeDefinition | null>;
|
|
152
282
|
deleteEdge: (label: string) => Promise<boolean>;
|
|
153
283
|
};
|
|
284
|
+
|
|
154
285
|
/**
|
|
155
286
|
* Hook for web crawl job operations
|
|
156
287
|
*
|
|
@@ -191,4 +322,240 @@ declare function useCrawlJobs(options: UseKGOptions): {
|
|
|
191
322
|
}[]>;
|
|
192
323
|
};
|
|
193
324
|
|
|
194
|
-
|
|
325
|
+
/**
|
|
326
|
+
* Result from file upload to storage (S3/Azure)
|
|
327
|
+
*/
|
|
328
|
+
interface FileUploadResult$1 {
|
|
329
|
+
/** URL where the file was uploaded */
|
|
330
|
+
url: string;
|
|
331
|
+
/** Optional error if upload failed */
|
|
332
|
+
error?: string;
|
|
333
|
+
/** Page count (for PDFs) */
|
|
334
|
+
pageCount?: number;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Options for the useQuickIngest hook
|
|
338
|
+
*/
|
|
339
|
+
interface UseQuickIngestOptions extends UseKGOptions {
|
|
340
|
+
/**
|
|
341
|
+
* Function to upload a file to storage (S3/Azure).
|
|
342
|
+
* This should be provided by the consumer using server actions.
|
|
343
|
+
* Example: uploadFile from @/actions
|
|
344
|
+
*/
|
|
345
|
+
onUploadFile: (file: File) => Promise<FileUploadResult$1>;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Return type for the useQuickIngest hook
|
|
349
|
+
*/
|
|
350
|
+
interface UseQuickIngestReturn {
|
|
351
|
+
/** List of items in the ingestion queue */
|
|
352
|
+
items: QuickIngestItem[];
|
|
353
|
+
/** Whether ingestion is currently processing */
|
|
354
|
+
isProcessing: boolean;
|
|
355
|
+
/** Any error that occurred */
|
|
356
|
+
error: string | null;
|
|
357
|
+
/** Upload a file to the queue */
|
|
358
|
+
uploadFile: (file: File) => Promise<QuickIngestItem>;
|
|
359
|
+
/** Add a URL to the queue */
|
|
360
|
+
addUrl: (url: string) => void;
|
|
361
|
+
/** Remove an item from the queue */
|
|
362
|
+
removeItem: (id: string) => void;
|
|
363
|
+
/** Start the ingestion process */
|
|
364
|
+
startIngestion: (options: QuickIngestStartRequest["options"]) => Promise<void>;
|
|
365
|
+
/** Cancel the current ingestion */
|
|
366
|
+
cancelIngestion: () => void;
|
|
367
|
+
/** Clear all items from the queue */
|
|
368
|
+
clearQueue: () => void;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Hook for Quick Ingestion operations with SSE streaming
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```tsx
|
|
375
|
+
* const {
|
|
376
|
+
* items,
|
|
377
|
+
* isProcessing,
|
|
378
|
+
* uploadFile,
|
|
379
|
+
* startIngestion,
|
|
380
|
+
* } = useQuickIngest({
|
|
381
|
+
* baseUrl,
|
|
382
|
+
* orgId,
|
|
383
|
+
* graphId,
|
|
384
|
+
* onUploadFile: async (file) => {
|
|
385
|
+
* const formData = new FormData();
|
|
386
|
+
* formData.append("file", file);
|
|
387
|
+
* const result = await uploadToStorage(formData);
|
|
388
|
+
* return { url: result.fileUrl, error: result.error };
|
|
389
|
+
* },
|
|
390
|
+
* });
|
|
391
|
+
*
|
|
392
|
+
* // Upload a file
|
|
393
|
+
* await uploadFile(file);
|
|
394
|
+
*
|
|
395
|
+
* // Start processing (streams progress via SSE)
|
|
396
|
+
* await startIngestion({
|
|
397
|
+
* selectedLabels: ["article", "topic"],
|
|
398
|
+
* websiteCrawlDepth: 2,
|
|
399
|
+
* websiteMaxPages: 50,
|
|
400
|
+
* });
|
|
401
|
+
* ```
|
|
402
|
+
*/
|
|
403
|
+
declare function useQuickIngest(options: UseQuickIngestOptions): UseQuickIngestReturn;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Result from file upload to storage (S3/Azure)
|
|
407
|
+
*/
|
|
408
|
+
interface FileUploadResult {
|
|
409
|
+
/** URL where the file was uploaded */
|
|
410
|
+
url: string;
|
|
411
|
+
/** Optional error if upload failed */
|
|
412
|
+
error?: string;
|
|
413
|
+
/** Page count (for PDFs) */
|
|
414
|
+
pageCount?: number;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Options for the useFullIngest hook
|
|
418
|
+
*/
|
|
419
|
+
interface UseFullIngestOptions extends UseKGOptions {
|
|
420
|
+
/** Enable debug logging for transport */
|
|
421
|
+
debug?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Function to upload a file to storage (S3/Azure).
|
|
424
|
+
* This should be provided by the consumer using server actions.
|
|
425
|
+
* Example: uploadFile from @/actions
|
|
426
|
+
*/
|
|
427
|
+
onUploadFile?: (file: File) => Promise<FileUploadResult>;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Document info after upload
|
|
431
|
+
*/
|
|
432
|
+
interface DocumentInfo {
|
|
433
|
+
url: string;
|
|
434
|
+
pageCount: number;
|
|
435
|
+
sizeBytes: number;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Extraction progress info
|
|
439
|
+
*/
|
|
440
|
+
interface ExtractionProgress {
|
|
441
|
+
current: number;
|
|
442
|
+
total: number;
|
|
443
|
+
/** Current processing phase */
|
|
444
|
+
phase?: "extracting" | "consolidating" | "linking" | "complete";
|
|
445
|
+
/** Status message */
|
|
446
|
+
message?: string;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Ingestion progress info
|
|
450
|
+
*/
|
|
451
|
+
interface IngestProgress {
|
|
452
|
+
currentNode: number;
|
|
453
|
+
totalNodes: number;
|
|
454
|
+
currentEdge: number;
|
|
455
|
+
totalEdges: number;
|
|
456
|
+
/** Status message */
|
|
457
|
+
message?: string;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Return type for the useFullIngest hook
|
|
461
|
+
*/
|
|
462
|
+
interface UseFullIngestReturn {
|
|
463
|
+
/** Current source type */
|
|
464
|
+
sourceType: "document" | "website" | null;
|
|
465
|
+
/** Uploaded document info */
|
|
466
|
+
document: DocumentInfo | null;
|
|
467
|
+
/** Crawl job info */
|
|
468
|
+
crawlJob: CrawlJob | null;
|
|
469
|
+
/** Selected label names for extraction */
|
|
470
|
+
selectedLabels: string[];
|
|
471
|
+
/** Extracted nodes */
|
|
472
|
+
extractedNodes: ExtractedNode[];
|
|
473
|
+
/** Extracted edges/relationships */
|
|
474
|
+
extractedEdges: ExtractedEdge[];
|
|
475
|
+
/** Whether extraction is in progress */
|
|
476
|
+
isExtracting: boolean;
|
|
477
|
+
/** Extraction progress */
|
|
478
|
+
extractionProgress: ExtractionProgress | null;
|
|
479
|
+
/** Whether ingestion is in progress */
|
|
480
|
+
isIngesting: boolean;
|
|
481
|
+
/** Ingestion progress */
|
|
482
|
+
ingestProgress: IngestProgress | null;
|
|
483
|
+
/** Current job ID */
|
|
484
|
+
jobId: string | null;
|
|
485
|
+
/** Any error that occurred */
|
|
486
|
+
error: string | null;
|
|
487
|
+
/** Upload a document */
|
|
488
|
+
uploadDocument: (file: File) => Promise<void>;
|
|
489
|
+
/** Set document URL directly (for already uploaded docs) */
|
|
490
|
+
setDocumentUrl: (url: string, pageCount: number, sizeBytes: number) => void;
|
|
491
|
+
/** Start a website crawl */
|
|
492
|
+
startCrawl: (url: string, depth: number, maxPages: number) => Promise<void>;
|
|
493
|
+
/** Set selected labels */
|
|
494
|
+
setSelectedLabels: (labels: string[]) => void;
|
|
495
|
+
/** Start extraction */
|
|
496
|
+
startExtraction: () => Promise<void>;
|
|
497
|
+
/** Cancel extraction */
|
|
498
|
+
cancelExtraction: () => Promise<void>;
|
|
499
|
+
/** Remove an extracted node */
|
|
500
|
+
removeNode: (id: string) => void;
|
|
501
|
+
/** Update an extracted node */
|
|
502
|
+
updateNode: (id: string, fields: Record<string, unknown>) => void;
|
|
503
|
+
/** Remove an extracted edge */
|
|
504
|
+
removeEdge: (id: string) => void;
|
|
505
|
+
/** Ingest all extracted nodes and edges */
|
|
506
|
+
ingestNodes: () => Promise<void>;
|
|
507
|
+
/** Reset to initial state */
|
|
508
|
+
reset: () => void;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Hook for Full Ingestion operations
|
|
512
|
+
*
|
|
513
|
+
* @example
|
|
514
|
+
* ```tsx
|
|
515
|
+
* const {
|
|
516
|
+
* sourceType,
|
|
517
|
+
* document,
|
|
518
|
+
* selectedLabels,
|
|
519
|
+
* extractedNodes,
|
|
520
|
+
* isExtracting,
|
|
521
|
+
* uploadDocument,
|
|
522
|
+
* setSelectedLabels,
|
|
523
|
+
* startExtraction,
|
|
524
|
+
* ingestNodes,
|
|
525
|
+
* } = useFullIngest({ baseUrl, orgId, graphId });
|
|
526
|
+
*
|
|
527
|
+
* // Upload a document
|
|
528
|
+
* await uploadDocument(file);
|
|
529
|
+
*
|
|
530
|
+
* // Select labels to extract
|
|
531
|
+
* setSelectedLabels(["Product", "Category"]);
|
|
532
|
+
*
|
|
533
|
+
* // Start extraction
|
|
534
|
+
* await startExtraction();
|
|
535
|
+
*
|
|
536
|
+
* // Ingest extracted nodes
|
|
537
|
+
* await ingestNodes();
|
|
538
|
+
* ```
|
|
539
|
+
*/
|
|
540
|
+
declare function useFullIngest(options: UseFullIngestOptions): UseFullIngestReturn;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Keep a mutable ref synchronized with the latest value
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```tsx
|
|
547
|
+
* function useGraphs(options: ApiClientOptions) {
|
|
548
|
+
* const optionsRef = useOptionsRef(options);
|
|
549
|
+
*
|
|
550
|
+
* const listGraphs = useCallback(async () => {
|
|
551
|
+
* // Always uses latest options
|
|
552
|
+
* return listGraphsApi(optionsRef.current);
|
|
553
|
+
* }, []); // No dependency on options - callback never changes
|
|
554
|
+
*
|
|
555
|
+
* return { listGraphs };
|
|
556
|
+
* }
|
|
557
|
+
* ```
|
|
558
|
+
*/
|
|
559
|
+
declare function useOptionsRef<T>(options: T): React.MutableRefObject<T>;
|
|
560
|
+
|
|
561
|
+
export { type DocumentInfo, type ExtractionProgress, type UseFullIngestOptions, type UseFullIngestReturn, type UseKGOptions, type UseQuickIngestOptions, type UseQuickIngestReturn, useCrawlJobs, useFullIngest, useGraphs, useKGDesigner, useKGQuery, useOptionsRef, useQuickIngest };
|
package/dist/hooks/index.js
CHANGED
|
@@ -8,15 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var _chunk7RW5MHP5js = require('../chunk-7RW5MHP5.js');
|
|
12
|
-
require('../chunk-2TJCYLTP.js');
|
|
13
11
|
|
|
14
12
|
|
|
13
|
+
var _chunkBP2I7KWYjs = require('../chunk-BP2I7KWY.js');
|
|
14
|
+
require('../chunk-CNWOI7LX.js');
|
|
15
|
+
require('../chunk-WYRCAPY4.js');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.useApiAsync = _chunkBP2I7KWYjs.useApiAsync; exports.useAsync = _chunkBP2I7KWYjs.useAsync; exports.useCrawlJobs = _chunkBP2I7KWYjs.useCrawlJobs; exports.useFullIngest = _chunkBP2I7KWYjs.useFullIngest; exports.useGraphs = _chunkBP2I7KWYjs.useGraphs; exports.useKGDesigner = _chunkBP2I7KWYjs.useKGDesigner; exports.useKGQuery = _chunkBP2I7KWYjs.useKGQuery; exports.useOptionsRef = _chunkBP2I7KWYjs.useOptionsRef; exports.useQuickIngest = _chunkBP2I7KWYjs.useQuickIngest;
|
|
22
27
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/kg/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/kg/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2dAAC","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/kg/dist/hooks/index.js"}
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -4,19 +4,24 @@ import {
|
|
|
4
4
|
useApiAsync,
|
|
5
5
|
useAsync,
|
|
6
6
|
useCrawlJobs,
|
|
7
|
+
useFullIngest,
|
|
7
8
|
useGraphs,
|
|
8
9
|
useKGDesigner,
|
|
9
10
|
useKGQuery,
|
|
10
|
-
useOptionsRef
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
useOptionsRef,
|
|
12
|
+
useQuickIngest
|
|
13
|
+
} from "../chunk-ZEPJC46Z.mjs";
|
|
14
|
+
import "../chunk-5D7RJC7D.mjs";
|
|
15
|
+
import "../chunk-MAEB7UOW.mjs";
|
|
13
16
|
export {
|
|
14
17
|
useApiAsync,
|
|
15
18
|
useAsync,
|
|
16
19
|
useCrawlJobs,
|
|
20
|
+
useFullIngest,
|
|
17
21
|
useGraphs,
|
|
18
22
|
useKGDesigner,
|
|
19
23
|
useKGQuery,
|
|
20
|
-
useOptionsRef
|
|
24
|
+
useOptionsRef,
|
|
25
|
+
useQuickIngest
|
|
21
26
|
};
|
|
22
27
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { CreateGraphRequest, CreateGraphResult, DeleteDocumentRequest, DeleteDocumentResponse, DeleteGraphResult, DuplicatePolicy, DuplicatePolicyCreate, DuplicatePolicyCreateIf, DuplicatePolicyFail, DuplicatePolicyIgnore, DuplicatePolicyReplace, GetGraphResult, Graph, KGArticle, KGBatchSyncIngestResponse, KGEdge, KGEdgeIngestRequest, KGEdgeQuery, KGFieldQuery, KGFieldQueryOperator, KGFieldQueryOperatorArrayContains, KGFieldQueryOperatorEqual, KGFieldQueryOperatorGreater, KGFieldQueryOperatorGreaterOrEqual, KGFieldQueryOperatorIn, KGFieldQueryOperatorLess, KGFieldQueryOperatorLessOrEqual, KGFieldQueryOperatorLike, KGFieldQueryOperatorNotEqual, KGFieldQueryOperatorSimilar, KGLabelInfo, KGNode, KGNodeIngestRequest, KGPLabelSchema, KGPropertyFilter, KGPropertyFilterRequest, KGPropertyInfo, KGQuery, KGQueryResult, KGRelationshipDirection, KGRelationshipDirectionIncoming, KGRelationshipDirectionOutgoing, KGSyncIngestResponse, KGSyncJob, KGSyncJobListRequest, KGSyncJobListResponse, KGSyncJobUpdateRequest, KGSyncJobUpdateResponse, ListGraphsResult, UpdateGraphResult } from './models/kg.mjs';
|
|
2
2
|
export { GraphEdgeDefinition, GraphEdgeRequest, GraphEdgeResponse, GraphNodeDefinition, GraphNodeRequest, GraphNodeResponse, KGDBCreate, KGDesignerEdgeCreate, KGDesignerEdgeDelete, KGDesignerEdgeGet, KGDesignerEdgeList, KGDesignerEdgeUpdate, KGDesignerNodeCreate, KGDesignerNodeDelete, KGDesignerNodeGet, KGDesignerNodeList, KGDesignerNodeUpdate, KGDocumentDelete, KGGraphCreate, KGGraphDelete, KGGraphGet, KGGraphList, KGGraphOptimize, KGGraphUpdate, KGIngestBatchSync, KGIngestNodeSync, KGSyncJobList, KGSyncJobUpdate } from './models/kg-designer.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { ExtractedEdge, ExtractedNode, FullIngestCancelResult, FullIngestExtractionRequest, FullIngestExtractionResult, FullIngestJob, FullIngestJobEvent, FullIngestJobProgress, FullIngestJobSummary, FullIngestJobsListResponse, FullIngestNodesRequest, FullIngestNodesResult, QuickIngestCancelResult, QuickIngestItem, QuickIngestJobResult, QuickIngestStartRequest, QuickIngestUploadResult } from './models/index.mjs';
|
|
4
|
+
export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, QuickIngestEvent, cancelCrawlJobApi, cancelFullIngestExtractionApi, cancelQuickIngestApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerEdgeApi, getDesignerNodeApi, getFullIngestJobApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestFullIngestNodesApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listFullIngestJobsApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, startFullIngestExtractionApi, startQuickIngestApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.mjs';
|
|
5
|
+
export { DocumentInfo, ExtractionProgress, UseFullIngestOptions, UseFullIngestReturn, UseKGOptions, UseQuickIngestOptions, UseQuickIngestReturn, useCrawlJobs, useFullIngest, useGraphs, useKGDesigner, useKGQuery, useOptionsRef, useQuickIngest } from './hooks/index.mjs';
|
|
6
|
+
export { UseAsyncOptions, UseAsyncReturn, useApiAsync, useAsync } from '@elqnt/api-client/hooks';
|
|
5
7
|
export { KGQueryBuilder, createEdgeQuery, createFieldQuery, createNodeQuery, createSimilarityQuery } from './utils/index.mjs';
|
|
6
8
|
import '@elqnt/types';
|
|
7
9
|
import '@elqnt/api-client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { CreateGraphRequest, CreateGraphResult, DeleteDocumentRequest, DeleteDocumentResponse, DeleteGraphResult, DuplicatePolicy, DuplicatePolicyCreate, DuplicatePolicyCreateIf, DuplicatePolicyFail, DuplicatePolicyIgnore, DuplicatePolicyReplace, GetGraphResult, Graph, KGArticle, KGBatchSyncIngestResponse, KGEdge, KGEdgeIngestRequest, KGEdgeQuery, KGFieldQuery, KGFieldQueryOperator, KGFieldQueryOperatorArrayContains, KGFieldQueryOperatorEqual, KGFieldQueryOperatorGreater, KGFieldQueryOperatorGreaterOrEqual, KGFieldQueryOperatorIn, KGFieldQueryOperatorLess, KGFieldQueryOperatorLessOrEqual, KGFieldQueryOperatorLike, KGFieldQueryOperatorNotEqual, KGFieldQueryOperatorSimilar, KGLabelInfo, KGNode, KGNodeIngestRequest, KGPLabelSchema, KGPropertyFilter, KGPropertyFilterRequest, KGPropertyInfo, KGQuery, KGQueryResult, KGRelationshipDirection, KGRelationshipDirectionIncoming, KGRelationshipDirectionOutgoing, KGSyncIngestResponse, KGSyncJob, KGSyncJobListRequest, KGSyncJobListResponse, KGSyncJobUpdateRequest, KGSyncJobUpdateResponse, ListGraphsResult, UpdateGraphResult } from './models/kg.js';
|
|
2
2
|
export { GraphEdgeDefinition, GraphEdgeRequest, GraphEdgeResponse, GraphNodeDefinition, GraphNodeRequest, GraphNodeResponse, KGDBCreate, KGDesignerEdgeCreate, KGDesignerEdgeDelete, KGDesignerEdgeGet, KGDesignerEdgeList, KGDesignerEdgeUpdate, KGDesignerNodeCreate, KGDesignerNodeDelete, KGDesignerNodeGet, KGDesignerNodeList, KGDesignerNodeUpdate, KGDocumentDelete, KGGraphCreate, KGGraphDelete, KGGraphGet, KGGraphList, KGGraphOptimize, KGGraphUpdate, KGIngestBatchSync, KGIngestNodeSync, KGSyncJobList, KGSyncJobUpdate } from './models/kg-designer.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { ExtractedEdge, ExtractedNode, FullIngestCancelResult, FullIngestExtractionRequest, FullIngestExtractionResult, FullIngestJob, FullIngestJobEvent, FullIngestJobProgress, FullIngestJobSummary, FullIngestJobsListResponse, FullIngestNodesRequest, FullIngestNodesResult, QuickIngestCancelResult, QuickIngestItem, QuickIngestJobResult, QuickIngestStartRequest, QuickIngestUploadResult } from './models/index.js';
|
|
4
|
+
export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, QuickIngestEvent, cancelCrawlJobApi, cancelFullIngestExtractionApi, cancelQuickIngestApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerEdgeApi, getDesignerNodeApi, getFullIngestJobApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestFullIngestNodesApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listFullIngestJobsApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, startFullIngestExtractionApi, startQuickIngestApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.js';
|
|
5
|
+
export { DocumentInfo, ExtractionProgress, UseFullIngestOptions, UseFullIngestReturn, UseKGOptions, UseQuickIngestOptions, UseQuickIngestReturn, useCrawlJobs, useFullIngest, useGraphs, useKGDesigner, useKGQuery, useOptionsRef, useQuickIngest } from './hooks/index.js';
|
|
6
|
+
export { UseAsyncOptions, UseAsyncReturn, useApiAsync, useAsync } from '@elqnt/api-client/hooks';
|
|
5
7
|
export { KGQueryBuilder, createEdgeQuery, createFieldQuery, createNodeQuery, createSimilarityQuery } from './utils/index.js';
|
|
6
8
|
import '@elqnt/types';
|
|
7
9
|
import '@elqnt/api-client';
|