graphlit-client 1.0.20251227001 → 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
|
@@ -281,6 +281,21 @@ declare class Graphlit {
|
|
|
281
281
|
* @returns The deleted fact.
|
|
282
282
|
*/
|
|
283
283
|
deleteFact(id: string): Promise<Types.DeleteFactMutation>;
|
|
284
|
+
/**
|
|
285
|
+
* Deletes multiple facts.
|
|
286
|
+
* @param ids - The IDs of the facts to delete.
|
|
287
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
288
|
+
* @returns The deleted facts.
|
|
289
|
+
*/
|
|
290
|
+
deleteFacts(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteFactsMutation>;
|
|
291
|
+
/**
|
|
292
|
+
* Deletes all facts based on the provided filter criteria.
|
|
293
|
+
* @param filter - The filter criteria to apply when deleting facts.
|
|
294
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
295
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
296
|
+
* @returns The result of the deletion.
|
|
297
|
+
*/
|
|
298
|
+
deleteAllFacts(filter?: Types.FactFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllFactsMutation>;
|
|
284
299
|
/**
|
|
285
300
|
* Lookup a fact given its ID.
|
|
286
301
|
* @param id - ID of the fact.
|
|
@@ -295,6 +310,14 @@ declare class Graphlit {
|
|
|
295
310
|
* @returns The facts.
|
|
296
311
|
*/
|
|
297
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>;
|
|
298
321
|
/**
|
|
299
322
|
* Counts facts based on the provided filter criteria.
|
|
300
323
|
* @param filter - The filter criteria to apply when counting facts.
|
package/dist/client.js
CHANGED
|
@@ -674,42 +674,29 @@ class Graphlit {
|
|
|
674
674
|
async deleteFact(id) {
|
|
675
675
|
return this.mutateAndCheckError(Documents.DeleteFact, { id: id });
|
|
676
676
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
// filter?: Types.FactFilter,
|
|
701
|
-
// isSynchronous?: boolean,
|
|
702
|
-
// correlationId?: string,
|
|
703
|
-
// ): Promise<Types.DeleteAllFactsMutation> {
|
|
704
|
-
// return this.mutateAndCheckError<
|
|
705
|
-
// Types.DeleteAllFactsMutation,
|
|
706
|
-
// Types.DeleteAllFactsMutationVariables
|
|
707
|
-
// >(Documents.DeleteAllFacts, {
|
|
708
|
-
// filter: filter,
|
|
709
|
-
// isSynchronous: isSynchronous,
|
|
710
|
-
// correlationId: correlationId,
|
|
711
|
-
// });
|
|
712
|
-
// }
|
|
677
|
+
/**
|
|
678
|
+
* Deletes multiple facts.
|
|
679
|
+
* @param ids - The IDs of the facts to delete.
|
|
680
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
681
|
+
* @returns The deleted facts.
|
|
682
|
+
*/
|
|
683
|
+
async deleteFacts(ids, isSynchronous) {
|
|
684
|
+
return this.mutateAndCheckError(Documents.DeleteFacts, { ids: ids, isSynchronous: isSynchronous });
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Deletes all facts based on the provided filter criteria.
|
|
688
|
+
* @param filter - The filter criteria to apply when deleting facts.
|
|
689
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
690
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
691
|
+
* @returns The result of the deletion.
|
|
692
|
+
*/
|
|
693
|
+
async deleteAllFacts(filter, isSynchronous, correlationId) {
|
|
694
|
+
return this.mutateAndCheckError(Documents.DeleteAllFacts, {
|
|
695
|
+
filter: filter,
|
|
696
|
+
isSynchronous: isSynchronous,
|
|
697
|
+
correlationId: correlationId,
|
|
698
|
+
});
|
|
699
|
+
}
|
|
713
700
|
/**
|
|
714
701
|
* Lookup a fact given its ID.
|
|
715
702
|
* @param id - ID of the fact.
|
|
@@ -728,6 +715,20 @@ class Graphlit {
|
|
|
728
715
|
async queryFacts(filter, correlationId) {
|
|
729
716
|
return this.queryAndCheckError(Documents.QueryFacts, { filter: filter, correlationId: correlationId });
|
|
730
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
|
+
}
|
|
731
732
|
/**
|
|
732
733
|
* Counts facts based on the provided filter criteria.
|
|
733
734
|
* @param filter - The filter criteria to apply when counting facts.
|
|
@@ -105,9 +105,12 @@ export declare const QueryEventsClusters: import("graphql").DocumentNode;
|
|
|
105
105
|
export declare const UpdateEvent: import("graphql").DocumentNode;
|
|
106
106
|
export declare const CountFacts: import("graphql").DocumentNode;
|
|
107
107
|
export declare const CreateFact: import("graphql").DocumentNode;
|
|
108
|
+
export declare const DeleteAllFacts: import("graphql").DocumentNode;
|
|
108
109
|
export declare const DeleteFact: import("graphql").DocumentNode;
|
|
110
|
+
export declare const DeleteFacts: import("graphql").DocumentNode;
|
|
109
111
|
export declare const GetFact: import("graphql").DocumentNode;
|
|
110
112
|
export declare const QueryFacts: import("graphql").DocumentNode;
|
|
113
|
+
export declare const QueryFactsGraph: import("graphql").DocumentNode;
|
|
111
114
|
export declare const UpdateFact: import("graphql").DocumentNode;
|
|
112
115
|
export declare const CountFeeds: import("graphql").DocumentNode;
|
|
113
116
|
export declare const CreateFeed: import("graphql").DocumentNode;
|
|
@@ -7355,6 +7355,18 @@ export const CreateFact = gql `
|
|
|
7355
7355
|
}
|
|
7356
7356
|
}
|
|
7357
7357
|
`;
|
|
7358
|
+
export const DeleteAllFacts = gql `
|
|
7359
|
+
mutation DeleteAllFacts($filter: FactFilter, $isSynchronous: Boolean, $correlationId: String) {
|
|
7360
|
+
deleteAllFacts(
|
|
7361
|
+
filter: $filter
|
|
7362
|
+
isSynchronous: $isSynchronous
|
|
7363
|
+
correlationId: $correlationId
|
|
7364
|
+
) {
|
|
7365
|
+
id
|
|
7366
|
+
state
|
|
7367
|
+
}
|
|
7368
|
+
}
|
|
7369
|
+
`;
|
|
7358
7370
|
export const DeleteFact = gql `
|
|
7359
7371
|
mutation DeleteFact($id: ID!) {
|
|
7360
7372
|
deleteFact(id: $id) {
|
|
@@ -7363,6 +7375,14 @@ export const DeleteFact = gql `
|
|
|
7363
7375
|
}
|
|
7364
7376
|
}
|
|
7365
7377
|
`;
|
|
7378
|
+
export const DeleteFacts = gql `
|
|
7379
|
+
mutation DeleteFacts($ids: [ID!]!, $isSynchronous: Boolean) {
|
|
7380
|
+
deleteFacts(ids: $ids, isSynchronous: $isSynchronous) {
|
|
7381
|
+
id
|
|
7382
|
+
state
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
`;
|
|
7366
7386
|
export const GetFact = gql `
|
|
7367
7387
|
query GetFact($id: ID!, $correlationId: String) {
|
|
7368
7388
|
fact(id: $id, correlationId: $correlationId) {
|
|
@@ -7397,6 +7417,25 @@ export const QueryFacts = gql `
|
|
|
7397
7417
|
}
|
|
7398
7418
|
}
|
|
7399
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
|
+
`;
|
|
7400
7439
|
export const UpdateFact = gql `
|
|
7401
7440
|
mutation UpdateFact($fact: FactUpdateInput!) {
|
|
7402
7441
|
updateFact(fact: $fact) {
|
|
@@ -10882,6 +10882,8 @@ export type Mutation = {
|
|
|
10882
10882
|
deleteAllConversations?: Maybe<Array<Maybe<Conversation>>>;
|
|
10883
10883
|
/** Bulk deletes events based on the provided filter criteria. */
|
|
10884
10884
|
deleteAllEvents?: Maybe<Array<Maybe<Event>>>;
|
|
10885
|
+
/** Bulk deletes facts based on the provided filter criteria. */
|
|
10886
|
+
deleteAllFacts?: Maybe<Array<Maybe<Fact>>>;
|
|
10885
10887
|
/** Bulk deletes feeds based on the provided filter criteria. */
|
|
10886
10888
|
deleteAllFeeds?: Maybe<Array<Maybe<Feed>>>;
|
|
10887
10889
|
/** Bulk deletes investment funds based on the provided filter criteria. */
|
|
@@ -10954,6 +10956,8 @@ export type Mutation = {
|
|
|
10954
10956
|
deleteEvents?: Maybe<Array<Maybe<Event>>>;
|
|
10955
10957
|
/** Deletes a fact. */
|
|
10956
10958
|
deleteFact?: Maybe<Fact>;
|
|
10959
|
+
/** Bulk deletes facts. */
|
|
10960
|
+
deleteFacts?: Maybe<Array<Maybe<Fact>>>;
|
|
10957
10961
|
/** Deletes a feed. */
|
|
10958
10962
|
deleteFeed?: Maybe<Feed>;
|
|
10959
10963
|
/** Bulk deletes feeds. */
|
|
@@ -11438,6 +11442,11 @@ export type MutationDeleteAllEventsArgs = {
|
|
|
11438
11442
|
filter?: InputMaybe<EventFilter>;
|
|
11439
11443
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
11440
11444
|
};
|
|
11445
|
+
export type MutationDeleteAllFactsArgs = {
|
|
11446
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
11447
|
+
filter?: InputMaybe<FactFilter>;
|
|
11448
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
11449
|
+
};
|
|
11441
11450
|
export type MutationDeleteAllFeedsArgs = {
|
|
11442
11451
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
11443
11452
|
filter?: InputMaybe<FeedFilter>;
|
|
@@ -11599,6 +11608,10 @@ export type MutationDeleteEventsArgs = {
|
|
|
11599
11608
|
export type MutationDeleteFactArgs = {
|
|
11600
11609
|
id: Scalars['ID']['input'];
|
|
11601
11610
|
};
|
|
11611
|
+
export type MutationDeleteFactsArgs = {
|
|
11612
|
+
ids: Array<Scalars['ID']['input']>;
|
|
11613
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
11614
|
+
};
|
|
11602
11615
|
export type MutationDeleteFeedArgs = {
|
|
11603
11616
|
id: Scalars['ID']['input'];
|
|
11604
11617
|
};
|
|
@@ -26866,6 +26879,19 @@ export type CreateFactMutation = {
|
|
|
26866
26879
|
state: EntityState;
|
|
26867
26880
|
} | null;
|
|
26868
26881
|
};
|
|
26882
|
+
export type DeleteAllFactsMutationVariables = Exact<{
|
|
26883
|
+
filter?: InputMaybe<FactFilter>;
|
|
26884
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
26885
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
26886
|
+
}>;
|
|
26887
|
+
export type DeleteAllFactsMutation = {
|
|
26888
|
+
__typename?: 'Mutation';
|
|
26889
|
+
deleteAllFacts?: Array<{
|
|
26890
|
+
__typename?: 'Fact';
|
|
26891
|
+
id: string;
|
|
26892
|
+
state: EntityState;
|
|
26893
|
+
} | null> | null;
|
|
26894
|
+
};
|
|
26869
26895
|
export type DeleteFactMutationVariables = Exact<{
|
|
26870
26896
|
id: Scalars['ID']['input'];
|
|
26871
26897
|
}>;
|
|
@@ -26877,6 +26903,18 @@ export type DeleteFactMutation = {
|
|
|
26877
26903
|
state: EntityState;
|
|
26878
26904
|
} | null;
|
|
26879
26905
|
};
|
|
26906
|
+
export type DeleteFactsMutationVariables = Exact<{
|
|
26907
|
+
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
26908
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
26909
|
+
}>;
|
|
26910
|
+
export type DeleteFactsMutation = {
|
|
26911
|
+
__typename?: 'Mutation';
|
|
26912
|
+
deleteFacts?: Array<{
|
|
26913
|
+
__typename?: 'Fact';
|
|
26914
|
+
id: string;
|
|
26915
|
+
state: EntityState;
|
|
26916
|
+
} | null> | null;
|
|
26917
|
+
};
|
|
26880
26918
|
export type GetFactQueryVariables = Exact<{
|
|
26881
26919
|
id: Scalars['ID']['input'];
|
|
26882
26920
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -26922,6 +26960,33 @@ export type QueryFactsQuery = {
|
|
|
26922
26960
|
} | null> | null;
|
|
26923
26961
|
} | null;
|
|
26924
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
|
+
};
|
|
26925
26990
|
export type UpdateFactMutationVariables = Exact<{
|
|
26926
26991
|
fact: FactUpdateInput;
|
|
26927
26992
|
}>;
|