@elqnt/kg 2.1.0 → 3.0.0

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.
Files changed (48) hide show
  1. package/README.md +357 -39
  2. package/dist/api/index.d.mts +250 -2
  3. package/dist/api/index.d.ts +250 -2
  4. package/dist/api/index.js +4 -2
  5. package/dist/api/index.js.map +1 -1
  6. package/dist/api/index.mjs +3 -1
  7. package/dist/api/server.d.mts +219 -0
  8. package/dist/api/server.d.ts +219 -0
  9. package/dist/api/server.js +442 -0
  10. package/dist/api/server.js.map +1 -0
  11. package/dist/api/server.mjs +442 -0
  12. package/dist/api/server.mjs.map +1 -0
  13. package/dist/{chunk-JSMI4PFC.js → chunk-2TJCYLTP.js} +67 -65
  14. package/dist/chunk-2TJCYLTP.js.map +1 -0
  15. package/dist/chunk-7RW5MHP5.js +497 -0
  16. package/dist/chunk-7RW5MHP5.js.map +1 -0
  17. package/dist/chunk-ADIKUMMI.js +238 -0
  18. package/dist/chunk-ADIKUMMI.js.map +1 -0
  19. package/dist/chunk-CAXPQTKI.mjs +238 -0
  20. package/dist/chunk-CAXPQTKI.mjs.map +1 -0
  21. package/dist/{chunk-55R4PZ5A.mjs → chunk-HCDFJCQL.mjs} +65 -63
  22. package/dist/chunk-HCDFJCQL.mjs.map +1 -0
  23. package/dist/chunk-JZ7UXVRW.mjs +497 -0
  24. package/dist/chunk-JZ7UXVRW.mjs.map +1 -0
  25. package/dist/hooks/index.d.mts +109 -4
  26. package/dist/hooks/index.d.ts +109 -4
  27. package/dist/hooks/index.js +9 -3
  28. package/dist/hooks/index.js.map +1 -1
  29. package/dist/hooks/index.mjs +10 -4
  30. package/dist/index.d.mts +3 -2
  31. package/dist/index.d.ts +3 -2
  32. package/dist/index.js +23 -3
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +24 -4
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/utils/index.d.mts +277 -0
  37. package/dist/utils/index.d.ts +277 -0
  38. package/dist/utils/index.js +44 -0
  39. package/dist/utils/index.js.map +1 -0
  40. package/dist/utils/index.mjs +44 -0
  41. package/dist/utils/index.mjs.map +1 -0
  42. package/package.json +15 -5
  43. package/dist/chunk-55R4PZ5A.mjs.map +0 -1
  44. package/dist/chunk-BQZLJ5LD.mjs +0 -577
  45. package/dist/chunk-BQZLJ5LD.mjs.map +0 -1
  46. package/dist/chunk-JSMI4PFC.js.map +0 -1
  47. package/dist/chunk-KATHAUDG.js +0 -577
  48. package/dist/chunk-KATHAUDG.js.map +0 -1
@@ -1,9 +1,81 @@
1
- import { ApiClientOptions } from '@elqnt/api-client';
1
+ import { ApiResponse, ApiClientOptions } from '@elqnt/api-client';
2
2
  import { Graph, CreateGraphRequest, KGQuery, KGQueryResult, KGLabelInfo, KGNode, KGNodeIngestRequest } from '../models/kg.mjs';
3
3
  import { GraphNodeDefinition, GraphEdgeDefinition } from '../models/kg-designer.mjs';
4
4
  import { CrawlJob } from '../api/index.mjs';
5
5
  import '@elqnt/types';
6
6
 
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 */
7
79
  type UseKGOptions = ApiClientOptions & {
8
80
  graphId?: string;
9
81
  };
@@ -31,6 +103,17 @@ declare function useGraphs(options: ApiClientOptions): {
31
103
  };
32
104
  /**
33
105
  * Hook for querying knowledge graph nodes
106
+ *
107
+ * @example
108
+ * ```tsx
109
+ * const { query, getLabels, loading, error } = useKGQuery({
110
+ * baseUrl: apiGatewayUrl,
111
+ * orgId: selectedOrgId,
112
+ * graphId: selectedGraphId,
113
+ * });
114
+ *
115
+ * const result = await query({ label: "Person", fields: [], limit: 10 });
116
+ * ```
34
117
  */
35
118
  declare function useKGQuery(options: UseKGOptions): {
36
119
  loading: boolean;
@@ -43,6 +126,17 @@ declare function useKGQuery(options: UseKGOptions): {
43
126
  };
44
127
  /**
45
128
  * Hook for KG designer operations (node and edge definitions)
129
+ *
130
+ * @example
131
+ * ```tsx
132
+ * const { listNodes, createNode, listEdges, createEdge } = useKGDesigner({
133
+ * baseUrl: apiGatewayUrl,
134
+ * orgId: selectedOrgId,
135
+ * graphId: selectedGraphId,
136
+ * });
137
+ *
138
+ * const nodes = await listNodes();
139
+ * ```
46
140
  */
47
141
  declare function useKGDesigner(options: UseKGOptions): {
48
142
  loading: boolean;
@@ -59,6 +153,17 @@ declare function useKGDesigner(options: UseKGOptions): {
59
153
  };
60
154
  /**
61
155
  * Hook for web crawl job operations
156
+ *
157
+ * @example
158
+ * ```tsx
159
+ * const { listJobs, startJob, getJobStatus } = useCrawlJobs({
160
+ * baseUrl: apiGatewayUrl,
161
+ * orgId: selectedOrgId,
162
+ * graphId: selectedGraphId,
163
+ * });
164
+ *
165
+ * const jobId = await startJob({ baseUrl: "https://example.com", depth: 2, maxPages: 100 });
166
+ * ```
62
167
  */
63
168
  declare function useCrawlJobs(options: UseKGOptions): {
64
169
  loading: boolean;
@@ -78,12 +183,12 @@ declare function useCrawlJobs(options: UseKGOptions): {
78
183
  }) => Promise<string | null>;
79
184
  getJobStatus: (jobId: string) => Promise<CrawlJob | null>;
80
185
  cancelJob: (jobId: string) => Promise<boolean>;
81
- getCrawledPages: (jobId: string) => Promise<Array<{
186
+ getCrawledPages: (jobId: string) => Promise<{
82
187
  url: string;
83
188
  title: string;
84
189
  status: string;
85
190
  processedAt: string;
86
- }>>;
191
+ }[]>;
87
192
  };
88
193
 
89
- export { type UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery };
194
+ export { type UseAsyncOptions, type UseAsyncReturn, type UseKGOptions, useApiAsync, useAsync, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery, useOptionsRef };
@@ -1,9 +1,81 @@
1
- import { ApiClientOptions } from '@elqnt/api-client';
1
+ import { ApiResponse, ApiClientOptions } from '@elqnt/api-client';
2
2
  import { Graph, CreateGraphRequest, KGQuery, KGQueryResult, KGLabelInfo, 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
5
  import '@elqnt/types';
6
6
 
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 */
7
79
  type UseKGOptions = ApiClientOptions & {
8
80
  graphId?: string;
9
81
  };
@@ -31,6 +103,17 @@ declare function useGraphs(options: ApiClientOptions): {
31
103
  };
32
104
  /**
33
105
  * Hook for querying knowledge graph nodes
106
+ *
107
+ * @example
108
+ * ```tsx
109
+ * const { query, getLabels, loading, error } = useKGQuery({
110
+ * baseUrl: apiGatewayUrl,
111
+ * orgId: selectedOrgId,
112
+ * graphId: selectedGraphId,
113
+ * });
114
+ *
115
+ * const result = await query({ label: "Person", fields: [], limit: 10 });
116
+ * ```
34
117
  */
35
118
  declare function useKGQuery(options: UseKGOptions): {
36
119
  loading: boolean;
@@ -43,6 +126,17 @@ declare function useKGQuery(options: UseKGOptions): {
43
126
  };
44
127
  /**
45
128
  * Hook for KG designer operations (node and edge definitions)
129
+ *
130
+ * @example
131
+ * ```tsx
132
+ * const { listNodes, createNode, listEdges, createEdge } = useKGDesigner({
133
+ * baseUrl: apiGatewayUrl,
134
+ * orgId: selectedOrgId,
135
+ * graphId: selectedGraphId,
136
+ * });
137
+ *
138
+ * const nodes = await listNodes();
139
+ * ```
46
140
  */
47
141
  declare function useKGDesigner(options: UseKGOptions): {
48
142
  loading: boolean;
@@ -59,6 +153,17 @@ declare function useKGDesigner(options: UseKGOptions): {
59
153
  };
60
154
  /**
61
155
  * Hook for web crawl job operations
156
+ *
157
+ * @example
158
+ * ```tsx
159
+ * const { listJobs, startJob, getJobStatus } = useCrawlJobs({
160
+ * baseUrl: apiGatewayUrl,
161
+ * orgId: selectedOrgId,
162
+ * graphId: selectedGraphId,
163
+ * });
164
+ *
165
+ * const jobId = await startJob({ baseUrl: "https://example.com", depth: 2, maxPages: 100 });
166
+ * ```
62
167
  */
63
168
  declare function useCrawlJobs(options: UseKGOptions): {
64
169
  loading: boolean;
@@ -78,12 +183,12 @@ declare function useCrawlJobs(options: UseKGOptions): {
78
183
  }) => Promise<string | null>;
79
184
  getJobStatus: (jobId: string) => Promise<CrawlJob | null>;
80
185
  cancelJob: (jobId: string) => Promise<boolean>;
81
- getCrawledPages: (jobId: string) => Promise<Array<{
186
+ getCrawledPages: (jobId: string) => Promise<{
82
187
  url: string;
83
188
  title: string;
84
189
  status: string;
85
190
  processedAt: string;
86
- }>>;
191
+ }[]>;
87
192
  };
88
193
 
89
- export { type UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery };
194
+ export { type UseAsyncOptions, type UseAsyncReturn, type UseKGOptions, useApiAsync, useAsync, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery, useOptionsRef };
@@ -5,12 +5,18 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkKATHAUDGjs = require('../chunk-KATHAUDG.js');
9
- require('../chunk-JSMI4PFC.js');
10
8
 
11
9
 
12
10
 
11
+ var _chunk7RW5MHP5js = require('../chunk-7RW5MHP5.js');
12
+ require('../chunk-2TJCYLTP.js');
13
13
 
14
14
 
15
- exports.useCrawlJobs = _chunkKATHAUDGjs.useCrawlJobs; exports.useGraphs = _chunkKATHAUDGjs.useGraphs; exports.useKGDesigner = _chunkKATHAUDGjs.useKGDesigner; exports.useKGQuery = _chunkKATHAUDGjs.useKGQuery;
15
+
16
+
17
+
18
+
19
+
20
+
21
+ exports.useApiAsync = _chunk7RW5MHP5js.useApiAsync; exports.useAsync = _chunk7RW5MHP5js.useAsync; exports.useCrawlJobs = _chunk7RW5MHP5js.useCrawlJobs; exports.useGraphs = _chunk7RW5MHP5js.useGraphs; exports.useKGDesigner = _chunk7RW5MHP5js.useKGDesigner; exports.useKGQuery = _chunk7RW5MHP5js.useKGQuery; exports.useOptionsRef = _chunk7RW5MHP5js.useOptionsRef;
16
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,+MAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/hooks/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/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,yWAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/hooks/index.js"}
@@ -1,16 +1,22 @@
1
1
  "use client";
2
2
  "use client";
3
3
  import {
4
+ useApiAsync,
5
+ useAsync,
4
6
  useCrawlJobs,
5
7
  useGraphs,
6
8
  useKGDesigner,
7
- useKGQuery
8
- } from "../chunk-BQZLJ5LD.mjs";
9
- import "../chunk-55R4PZ5A.mjs";
9
+ useKGQuery,
10
+ useOptionsRef
11
+ } from "../chunk-JZ7UXVRW.mjs";
12
+ import "../chunk-HCDFJCQL.mjs";
10
13
  export {
14
+ useApiAsync,
15
+ useAsync,
11
16
  useCrawlJobs,
12
17
  useGraphs,
13
18
  useKGDesigner,
14
- useKGQuery
19
+ useKGQuery,
20
+ useOptionsRef
15
21
  };
16
22
  //# sourceMappingURL=index.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,7 +1,8 @@
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 { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.mjs';
4
- export { UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery } from './hooks/index.mjs';
3
+ export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerEdgeApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.mjs';
4
+ export { UseAsyncOptions, UseAsyncReturn, UseKGOptions, useApiAsync, useAsync, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery, useOptionsRef } from './hooks/index.mjs';
5
+ export { KGQueryBuilder, createEdgeQuery, createFieldQuery, createNodeQuery, createSimilarityQuery } from './utils/index.mjs';
5
6
  import '@elqnt/types';
6
7
  import '@elqnt/api-client';
7
8
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
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 { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.js';
4
- export { UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery } from './hooks/index.js';
3
+ export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerEdgeApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.js';
4
+ export { UseAsyncOptions, UseAsyncReturn, UseKGOptions, useApiAsync, useAsync, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery, useOptionsRef } from './hooks/index.js';
5
+ export { KGQueryBuilder, createEdgeQuery, createFieldQuery, createNodeQuery, createSimilarityQuery } from './utils/index.js';
5
6
  import '@elqnt/types';
6
7
  import '@elqnt/api-client';
7
8
 
package/dist/index.js CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkKATHAUDGjs = require('./chunk-KATHAUDG.js');
8
7
 
9
8
 
10
9
 
10
+ var _chunk7RW5MHP5js = require('./chunk-7RW5MHP5.js');
11
11
 
12
12
 
13
13
 
@@ -34,7 +34,18 @@ var _chunkKATHAUDGjs = require('./chunk-KATHAUDG.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkJSMI4PFCjs = require('./chunk-JSMI4PFC.js');
37
+
38
+
39
+
40
+
41
+ var _chunk2TJCYLTPjs = require('./chunk-2TJCYLTP.js');
42
+
43
+
44
+
45
+
46
+
47
+
48
+ var _chunkADIKUMMIjs = require('./chunk-ADIKUMMI.js');
38
49
  require('./chunk-W4XVBGE7.js');
39
50
 
40
51
 
@@ -155,5 +166,14 @@ var Test = "hi";
155
166
 
156
167
 
157
168
 
158
- 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.KGRelationshipDirectionIncoming = _chunkUCKE66GBjs.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkUCKE66GBjs.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk67SUELDRjs.KGSyncJobList; exports.KGSyncJobUpdate = _chunk67SUELDRjs.KGSyncJobUpdate; exports.Test = Test; exports.cancelCrawlJobApi = _chunkJSMI4PFCjs.cancelCrawlJobApi; exports.createDesignerEdgeApi = _chunkJSMI4PFCjs.createDesignerEdgeApi; exports.createDesignerNodeApi = _chunkJSMI4PFCjs.createDesignerNodeApi; exports.createGraphApi = _chunkJSMI4PFCjs.createGraphApi; exports.deleteDesignerEdgeApi = _chunkJSMI4PFCjs.deleteDesignerEdgeApi; exports.deleteDesignerNodeApi = _chunkJSMI4PFCjs.deleteDesignerNodeApi; exports.deleteGraphApi = _chunkJSMI4PFCjs.deleteGraphApi; exports.deleteKGDocumentApi = _chunkJSMI4PFCjs.deleteKGDocumentApi; exports.getCrawlJobStatusApi = _chunkJSMI4PFCjs.getCrawlJobStatusApi; exports.getCrawledPagesApi = _chunkJSMI4PFCjs.getCrawledPagesApi; exports.getDesignerNodeApi = _chunkJSMI4PFCjs.getDesignerNodeApi; exports.getGraphApi = _chunkJSMI4PFCjs.getGraphApi; exports.getGraphLabelsApi = _chunkJSMI4PFCjs.getGraphLabelsApi; exports.getKGNodeApi = _chunkJSMI4PFCjs.getKGNodeApi; exports.getNodeConnectionStatsApi = _chunkJSMI4PFCjs.getNodeConnectionStatsApi; exports.ingestDocumentApi = _chunkJSMI4PFCjs.ingestDocumentApi; exports.ingestKGNodeApi = _chunkJSMI4PFCjs.ingestKGNodeApi; exports.listCrawlJobsApi = _chunkJSMI4PFCjs.listCrawlJobsApi; exports.listDesignerEdgesApi = _chunkJSMI4PFCjs.listDesignerEdgesApi; exports.listDesignerNodesApi = _chunkJSMI4PFCjs.listDesignerNodesApi; exports.listGraphsApi = _chunkJSMI4PFCjs.listGraphsApi; exports.optimizeGraphApi = _chunkJSMI4PFCjs.optimizeGraphApi; exports.queryGraphApi = _chunkJSMI4PFCjs.queryGraphApi; exports.startCrawlJobApi = _chunkJSMI4PFCjs.startCrawlJobApi; exports.updateDesignerEdgeApi = _chunkJSMI4PFCjs.updateDesignerEdgeApi; exports.updateDesignerNodeApi = _chunkJSMI4PFCjs.updateDesignerNodeApi; exports.updateGraphApi = _chunkJSMI4PFCjs.updateGraphApi; exports.updateKGNodeApi = _chunkJSMI4PFCjs.updateKGNodeApi; exports.useCrawlJobs = _chunkKATHAUDGjs.useCrawlJobs; exports.useGraphs = _chunkKATHAUDGjs.useGraphs; exports.useKGDesigner = _chunkKATHAUDGjs.useKGDesigner; exports.useKGQuery = _chunkKATHAUDGjs.useKGQuery;
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ 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 = _chunk2TJCYLTPjs.cancelCrawlJobApi; exports.createDesignerEdgeApi = _chunk2TJCYLTPjs.createDesignerEdgeApi; exports.createDesignerNodeApi = _chunk2TJCYLTPjs.createDesignerNodeApi; exports.createEdgeQuery = _chunkADIKUMMIjs.createEdgeQuery; exports.createFieldQuery = _chunkADIKUMMIjs.createFieldQuery; exports.createGraphApi = _chunk2TJCYLTPjs.createGraphApi; exports.createNodeQuery = _chunkADIKUMMIjs.createNodeQuery; exports.createSimilarityQuery = _chunkADIKUMMIjs.createSimilarityQuery; exports.deleteDesignerEdgeApi = _chunk2TJCYLTPjs.deleteDesignerEdgeApi; exports.deleteDesignerNodeApi = _chunk2TJCYLTPjs.deleteDesignerNodeApi; exports.deleteGraphApi = _chunk2TJCYLTPjs.deleteGraphApi; exports.deleteKGDocumentApi = _chunk2TJCYLTPjs.deleteKGDocumentApi; exports.getCrawlJobStatusApi = _chunk2TJCYLTPjs.getCrawlJobStatusApi; exports.getCrawledPagesApi = _chunk2TJCYLTPjs.getCrawledPagesApi; exports.getDesignerEdgeApi = _chunk2TJCYLTPjs.getDesignerEdgeApi; exports.getDesignerNodeApi = _chunk2TJCYLTPjs.getDesignerNodeApi; exports.getGraphApi = _chunk2TJCYLTPjs.getGraphApi; exports.getGraphLabelsApi = _chunk2TJCYLTPjs.getGraphLabelsApi; exports.getKGNodeApi = _chunk2TJCYLTPjs.getKGNodeApi; exports.getNodeConnectionStatsApi = _chunk2TJCYLTPjs.getNodeConnectionStatsApi; exports.ingestDocumentApi = _chunk2TJCYLTPjs.ingestDocumentApi; exports.ingestKGNodeApi = _chunk2TJCYLTPjs.ingestKGNodeApi; exports.listCrawlJobsApi = _chunk2TJCYLTPjs.listCrawlJobsApi; exports.listDesignerEdgesApi = _chunk2TJCYLTPjs.listDesignerEdgesApi; exports.listDesignerNodesApi = _chunk2TJCYLTPjs.listDesignerNodesApi; exports.listGraphsApi = _chunk2TJCYLTPjs.listGraphsApi; exports.optimizeGraphApi = _chunk2TJCYLTPjs.optimizeGraphApi; exports.queryGraphApi = _chunk2TJCYLTPjs.queryGraphApi; exports.startCrawlJobApi = _chunk2TJCYLTPjs.startCrawlJobApi; exports.updateDesignerEdgeApi = _chunk2TJCYLTPjs.updateDesignerEdgeApi; exports.updateDesignerNodeApi = _chunk2TJCYLTPjs.updateDesignerNodeApi; exports.updateGraphApi = _chunk2TJCYLTPjs.updateGraphApi; exports.updateKGNodeApi = _chunk2TJCYLTPjs.updateKGNodeApi; exports.useApiAsync = _chunk7RW5MHP5js.useApiAsync; exports.useAsync = _chunk7RW5MHP5js.useAsync; exports.useCrawlJobs = _chunk7RW5MHP5js.useCrawlJobs; exports.useGraphs = _chunk7RW5MHP5js.useGraphs; exports.useKGDesigner = _chunk7RW5MHP5js.useKGDesigner; exports.useKGQuery = _chunk7RW5MHP5js.useKGQuery; exports.useOptionsRef = _chunk7RW5MHP5js.useOptionsRef;
159
179
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","../consts.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;AClFO,IAAM,KAAA,EAAO,IAAA;ADoFpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gsJAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","sourcesContent":[null,"export const Test = \"hi\";"]}
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","../consts.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;AC7FO,IAAM,KAAA,EAAO,IAAA;AD+FpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,otKAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","sourcesContent":[null,"export const Test = \"hi\";"]}
package/dist/index.mjs CHANGED
@@ -1,10 +1,13 @@
1
1
  "use client";
2
2
  import {
3
+ useApiAsync,
4
+ useAsync,
3
5
  useCrawlJobs,
4
6
  useGraphs,
5
7
  useKGDesigner,
6
- useKGQuery
7
- } from "./chunk-BQZLJ5LD.mjs";
8
+ useKGQuery,
9
+ useOptionsRef
10
+ } from "./chunk-JZ7UXVRW.mjs";
8
11
  import {
9
12
  cancelCrawlJobApi,
10
13
  createDesignerEdgeApi,
@@ -16,6 +19,7 @@ import {
16
19
  deleteKGDocumentApi,
17
20
  getCrawlJobStatusApi,
18
21
  getCrawledPagesApi,
22
+ getDesignerEdgeApi,
19
23
  getDesignerNodeApi,
20
24
  getGraphApi,
21
25
  getGraphLabelsApi,
@@ -34,7 +38,14 @@ import {
34
38
  updateDesignerNodeApi,
35
39
  updateGraphApi,
36
40
  updateKGNodeApi
37
- } from "./chunk-55R4PZ5A.mjs";
41
+ } from "./chunk-HCDFJCQL.mjs";
42
+ import {
43
+ KGQueryBuilder,
44
+ createEdgeQuery,
45
+ createFieldQuery,
46
+ createNodeQuery,
47
+ createSimilarityQuery
48
+ } from "./chunk-CAXPQTKI.mjs";
38
49
  import "./chunk-NJNBEGDB.mjs";
39
50
  import {
40
51
  KGDBCreate,
@@ -118,6 +129,7 @@ export {
118
129
  KGGraphUpdate,
119
130
  KGIngestBatchSync,
120
131
  KGIngestNodeSync,
132
+ KGQueryBuilder,
121
133
  KGRelationshipDirectionIncoming,
122
134
  KGRelationshipDirectionOutgoing,
123
135
  KGSyncJobList,
@@ -126,13 +138,18 @@ export {
126
138
  cancelCrawlJobApi,
127
139
  createDesignerEdgeApi,
128
140
  createDesignerNodeApi,
141
+ createEdgeQuery,
142
+ createFieldQuery,
129
143
  createGraphApi,
144
+ createNodeQuery,
145
+ createSimilarityQuery,
130
146
  deleteDesignerEdgeApi,
131
147
  deleteDesignerNodeApi,
132
148
  deleteGraphApi,
133
149
  deleteKGDocumentApi,
134
150
  getCrawlJobStatusApi,
135
151
  getCrawledPagesApi,
152
+ getDesignerEdgeApi,
136
153
  getDesignerNodeApi,
137
154
  getGraphApi,
138
155
  getGraphLabelsApi,
@@ -151,9 +168,12 @@ export {
151
168
  updateDesignerNodeApi,
152
169
  updateGraphApi,
153
170
  updateKGNodeApi,
171
+ useApiAsync,
172
+ useAsync,
154
173
  useCrawlJobs,
155
174
  useGraphs,
156
175
  useKGDesigner,
157
- useKGQuery
176
+ useKGQuery,
177
+ useOptionsRef
158
178
  };
159
179
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../consts.ts"],"sourcesContent":["export const Test = \"hi\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,OAAO;","names":[]}
1
+ {"version":3,"sources":["../consts.ts"],"sourcesContent":["export const Test = \"hi\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,OAAO;","names":[]}