This repository was archived by the owner on Mar 28, 2025. It is now read-only.
File tree 4 files changed +10
-21
lines changed
4 files changed +10
-21
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " getindexify" ,
3
- "version" : " 0.0.38 " ,
3
+ "version" : " 0.0.39 " ,
4
4
"description" : " This is the TypeScript client for interacting with the Indexify service." ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change @@ -62,26 +62,13 @@ class IndexifyClient {
62
62
return new IndexifyClient (
63
63
serviceUrl ,
64
64
namespace ,
65
- response . data . namespace . extraction_graphs . map (
66
- ( item : {
67
- id : string ;
68
- name : string ;
69
- extractor : string ;
70
- filters_eq : string ;
71
- input_params : Record < string , string | number > ;
72
- content_source : string ;
73
- } ) => {
74
- // abstraction for filters_eq
75
- return {
76
- id : item . id ,
77
- name : item . name ,
78
- extractor : item . extractor ,
79
- labels_eq : item . filters_eq ,
80
- input_params : item . input_params ,
81
- content_source : item . content_source ,
82
- } ;
83
- }
84
- ) as IExtractionGraph [ ] ,
65
+ response . data . namespace . extraction_graphs . map ( ( graph : { extraction_policies : any [ ] ; } ) => ( {
66
+ ...graph ,
67
+ extraction_policies : graph . extraction_policies . map ( ( policy : { filters_eq : any ; } ) => ( {
68
+ ...policy ,
69
+ labels_eq : policy . filters_eq , // Transform filters_eq to labels_eq
70
+ } ) )
71
+ } ) ) ,
85
72
IndexifyClient . getHttpsAgent ( { mtlsConfig } )
86
73
) ;
87
74
}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export interface IExtractionPolicy {
71
71
labels_eq ?: string ;
72
72
input_params ?: Record < string , string | number > ;
73
73
content_source ?: string ;
74
+ graph_name : string ;
74
75
}
75
76
76
77
export interface ITaskContentMetadata {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ async function setupExtractionGraph(
26
26
const extractionPolicy : IExtractionPolicy = {
27
27
extractor,
28
28
name : `extractor.${ nanoid } ` ,
29
+ graph_name : extractionGraphName
29
30
} ;
30
31
const resp = await client . createExtractionGraph (
31
32
extractionGraphName ,
You can’t perform that action at this time.
0 commit comments