graphlit-client 1.0.20251227002 → 1.0.20251227003
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/client.d.ts
CHANGED
|
@@ -310,6 +310,14 @@ declare class Graphlit {
|
|
|
310
310
|
* @returns The facts.
|
|
311
311
|
*/
|
|
312
312
|
queryFacts(filter?: Types.FactFilter, correlationId?: string): Promise<Types.QueryFactsQuery>;
|
|
313
|
+
/**
|
|
314
|
+
* Retrieves facts as a knowledge graph.
|
|
315
|
+
* @param filter - The filter criteria to apply when retrieving facts, optional.
|
|
316
|
+
* @param graph - The graph input parameters, optional.
|
|
317
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
318
|
+
* @returns The facts graph with nodes and edges.
|
|
319
|
+
*/
|
|
320
|
+
queryFactsGraph(filter?: Types.FactFilter, graph?: Types.FactGraphInput, correlationId?: string): Promise<Types.QueryFactsGraphQuery>;
|
|
313
321
|
/**
|
|
314
322
|
* Counts facts based on the provided filter criteria.
|
|
315
323
|
* @param filter - The filter criteria to apply when counting facts.
|
package/dist/client.js
CHANGED
|
@@ -715,6 +715,20 @@ class Graphlit {
|
|
|
715
715
|
async queryFacts(filter, correlationId) {
|
|
716
716
|
return this.queryAndCheckError(Documents.QueryFacts, { filter: filter, correlationId: correlationId });
|
|
717
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* Retrieves facts as a knowledge graph.
|
|
720
|
+
* @param filter - The filter criteria to apply when retrieving facts, optional.
|
|
721
|
+
* @param graph - The graph input parameters, optional.
|
|
722
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
723
|
+
* @returns The facts graph with nodes and edges.
|
|
724
|
+
*/
|
|
725
|
+
async queryFactsGraph(filter, graph, correlationId) {
|
|
726
|
+
return this.queryAndCheckError(Documents.QueryFactsGraph, {
|
|
727
|
+
filter: filter,
|
|
728
|
+
graph: graph,
|
|
729
|
+
correlationId: correlationId,
|
|
730
|
+
});
|
|
731
|
+
}
|
|
718
732
|
/**
|
|
719
733
|
* Counts facts based on the provided filter criteria.
|
|
720
734
|
* @param filter - The filter criteria to apply when counting facts.
|
|
@@ -110,6 +110,7 @@ export declare const DeleteFact: import("graphql").DocumentNode;
|
|
|
110
110
|
export declare const DeleteFacts: import("graphql").DocumentNode;
|
|
111
111
|
export declare const GetFact: import("graphql").DocumentNode;
|
|
112
112
|
export declare const QueryFacts: import("graphql").DocumentNode;
|
|
113
|
+
export declare const QueryFactsGraph: import("graphql").DocumentNode;
|
|
113
114
|
export declare const UpdateFact: import("graphql").DocumentNode;
|
|
114
115
|
export declare const CountFeeds: import("graphql").DocumentNode;
|
|
115
116
|
export declare const CreateFeed: import("graphql").DocumentNode;
|
|
@@ -7417,6 +7417,25 @@ export const QueryFacts = gql `
|
|
|
7417
7417
|
}
|
|
7418
7418
|
}
|
|
7419
7419
|
`;
|
|
7420
|
+
export const QueryFactsGraph = gql `
|
|
7421
|
+
query QueryFactsGraph($filter: FactFilter, $graph: FactGraphInput, $correlationId: String) {
|
|
7422
|
+
facts(filter: $filter, graph: $graph, correlationId: $correlationId) {
|
|
7423
|
+
graph {
|
|
7424
|
+
nodes {
|
|
7425
|
+
id
|
|
7426
|
+
name
|
|
7427
|
+
type
|
|
7428
|
+
metadata
|
|
7429
|
+
}
|
|
7430
|
+
edges {
|
|
7431
|
+
from
|
|
7432
|
+
to
|
|
7433
|
+
relation
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7436
|
+
}
|
|
7437
|
+
}
|
|
7438
|
+
`;
|
|
7420
7439
|
export const UpdateFact = gql `
|
|
7421
7440
|
mutation UpdateFact($fact: FactUpdateInput!) {
|
|
7422
7441
|
updateFact(fact: $fact) {
|
|
@@ -26960,6 +26960,33 @@ export type QueryFactsQuery = {
|
|
|
26960
26960
|
} | null> | null;
|
|
26961
26961
|
} | null;
|
|
26962
26962
|
};
|
|
26963
|
+
export type QueryFactsGraphQueryVariables = Exact<{
|
|
26964
|
+
filter?: InputMaybe<FactFilter>;
|
|
26965
|
+
graph?: InputMaybe<FactGraphInput>;
|
|
26966
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
26967
|
+
}>;
|
|
26968
|
+
export type QueryFactsGraphQuery = {
|
|
26969
|
+
__typename?: 'Query';
|
|
26970
|
+
facts?: {
|
|
26971
|
+
__typename?: 'FactResults';
|
|
26972
|
+
graph?: {
|
|
26973
|
+
__typename?: 'Graph';
|
|
26974
|
+
nodes?: Array<{
|
|
26975
|
+
__typename?: 'GraphNode';
|
|
26976
|
+
id: string;
|
|
26977
|
+
name: string;
|
|
26978
|
+
type: EntityTypes;
|
|
26979
|
+
metadata?: string | null;
|
|
26980
|
+
} | null> | null;
|
|
26981
|
+
edges?: Array<{
|
|
26982
|
+
__typename?: 'GraphEdge';
|
|
26983
|
+
from: string;
|
|
26984
|
+
to: string;
|
|
26985
|
+
relation?: string | null;
|
|
26986
|
+
} | null> | null;
|
|
26987
|
+
} | null;
|
|
26988
|
+
} | null;
|
|
26989
|
+
};
|
|
26963
26990
|
export type UpdateFactMutationVariables = Exact<{
|
|
26964
26991
|
fact: FactUpdateInput;
|
|
26965
26992
|
}>;
|