graphlit-client 1.0.20251227001 → 1.0.20251227002
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.
|
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.
|
|
@@ -105,7 +105,9 @@ 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;
|
|
111
113
|
export declare const UpdateFact: 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) {
|
|
@@ -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']>;
|