graphlit-client 1.0.20250306002 → 1.0.20250315001
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
@@ -17,6 +17,7 @@ declare class Graphlit {
|
|
17
17
|
lookupProjectCredits(correlationId: string): Promise<Types.LookupCreditsQuery>;
|
18
18
|
queryProjectUsage(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryUsageQuery>;
|
19
19
|
queryProjectCredits(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryCreditsQuery>;
|
20
|
+
sendNotification(connector: Types.IntegrationConnectorInput, text: string, textType?: Types.TextTypes): Promise<Types.SendNotificationMutation>;
|
20
21
|
mapWeb(uri: string, allowedPaths?: string[], excludedPaths?: string[], correlationId?: string): Promise<Types.MapWebQuery>;
|
21
22
|
searchWeb(text: string, service?: Types.SearchServiceTypes, limit?: number, correlationId?: string): Promise<Types.SearchWebQuery>;
|
22
23
|
createAlert(alert: Types.AlertInput, correlationId?: string): Promise<Types.CreateAlertMutation>;
|
@@ -98,23 +99,28 @@ declare class Graphlit {
|
|
98
99
|
disableFeed(id: string): Promise<Types.DeleteFeedMutation>;
|
99
100
|
getFeed(id: string): Promise<Types.GetFeedQuery>;
|
100
101
|
queryFeeds(filter?: Types.FeedFilter): Promise<Types.QueryFeedsQuery>;
|
102
|
+
feedExists(filter?: Types.FeedFilter): Promise<Types.FeedExistsQuery>;
|
101
103
|
isFeedDone(id: string): Promise<Types.IsFeedDoneQuery>;
|
102
104
|
promptSpecifications(prompt: string, ids: [string]): Promise<Types.PromptSpecificationsMutation>;
|
103
105
|
createSpecification(specification: Types.SpecificationInput): Promise<Types.CreateSpecificationMutation>;
|
104
106
|
updateSpecification(specification: Types.SpecificationUpdateInput): Promise<Types.UpdateSpecificationMutation>;
|
107
|
+
upsertSpecification(specification: Types.SpecificationInput): Promise<Types.UpsertSpecificationMutation>;
|
105
108
|
deleteSpecification(id: string): Promise<Types.DeleteSpecificationMutation>;
|
106
109
|
deleteSpecifications(ids: [string], isSynchronous?: boolean): Promise<Types.DeleteSpecificationsMutation>;
|
107
110
|
deleteAllSpecifications(filter?: Types.SpecificationFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllSpecificationsMutation>;
|
108
111
|
getSpecification(id: string): Promise<Types.GetSpecificationQuery>;
|
109
112
|
querySpecifications(filter?: Types.SpecificationFilter): Promise<Types.QuerySpecificationsQuery>;
|
113
|
+
specificationExists(filter?: Types.SpecificationFilter): Promise<Types.SpecificationExistsQuery>;
|
110
114
|
queryModels(filter?: Types.ModelFilter): Promise<Types.QueryModelsQuery>;
|
111
115
|
createWorkflow(workflow: Types.WorkflowInput): Promise<Types.CreateWorkflowMutation>;
|
112
116
|
updateWorkflow(workflow: Types.WorkflowUpdateInput): Promise<Types.UpdateWorkflowMutation>;
|
117
|
+
upsertWorkflow(workflow: Types.WorkflowInput): Promise<Types.UpsertWorkflowMutation>;
|
113
118
|
deleteWorkflow(id: string): Promise<Types.DeleteWorkflowMutation>;
|
114
119
|
deleteWorkflows(ids: [string], isSynchronous?: boolean): Promise<Types.DeleteWorkflowsMutation>;
|
115
120
|
deleteAllWorkflows(filter?: Types.WorkflowFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllWorkflowsMutation>;
|
116
121
|
getWorkflow(id: string): Promise<Types.GetWorkflowQuery>;
|
117
122
|
queryWorkflows(filter?: Types.WorkflowFilter): Promise<Types.QueryWorkflowsQuery>;
|
123
|
+
workflowExists(filter?: Types.WorkflowFilter): Promise<Types.WorkflowExistsQuery>;
|
118
124
|
createUser(user: Types.UserInput): Promise<Types.CreateUserMutation>;
|
119
125
|
updateUser(user: Types.UserUpdateInput): Promise<Types.UpdateUserMutation>;
|
120
126
|
deleteUser(id: string): Promise<Types.DeleteUserMutation>;
|
@@ -124,6 +130,7 @@ declare class Graphlit {
|
|
124
130
|
disableUser(id: string): Promise<Types.DeleteUserMutation>;
|
125
131
|
createCategory(category: Types.CategoryInput): Promise<Types.CreateCategoryMutation>;
|
126
132
|
updateCategory(category: Types.CategoryUpdateInput): Promise<Types.UpdateCategoryMutation>;
|
133
|
+
upsertCategory(category: Types.CategoryInput): Promise<Types.UpsertCategoryMutation>;
|
127
134
|
deleteCategory(id: string): Promise<Types.DeleteCategoryMutation>;
|
128
135
|
deleteCategories(ids: [string], isSynchronous?: boolean): Promise<Types.DeleteCategoriesMutation>;
|
129
136
|
deleteAllCategories(filter?: Types.CategoryFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllCategoriesMutation>;
|
@@ -131,6 +138,7 @@ declare class Graphlit {
|
|
131
138
|
queryCategories(filter?: Types.CategoryFilter): Promise<Types.QueryCategoriesQuery>;
|
132
139
|
createLabel(label: Types.LabelInput): Promise<Types.CreateLabelMutation>;
|
133
140
|
updateLabel(label: Types.LabelUpdateInput): Promise<Types.UpdateLabelMutation>;
|
141
|
+
upsertLabel(label: Types.LabelInput): Promise<Types.UpsertLabelMutation>;
|
134
142
|
deleteLabel(id: string): Promise<Types.DeleteLabelMutation>;
|
135
143
|
deleteLabels(ids: [string], isSynchronous?: boolean): Promise<Types.DeleteLabelsMutation>;
|
136
144
|
deleteAllLabels(filter?: Types.LabelFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllLabelsMutation>;
|
package/dist/client.js
CHANGED
@@ -143,6 +143,11 @@ class Graphlit {
|
|
143
143
|
return this.queryAndCheckError(Documents.QueryCredits, { startDate: startDate, duration: duration });
|
144
144
|
});
|
145
145
|
}
|
146
|
+
sendNotification(connector, text, textType) {
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
148
|
+
return this.mutateAndCheckError(Documents.SendNotification, { connector: connector, text: text, textType: textType });
|
149
|
+
});
|
150
|
+
}
|
146
151
|
mapWeb(uri, allowedPaths, excludedPaths, correlationId) {
|
147
152
|
return __awaiter(this, void 0, void 0, function* () {
|
148
153
|
return this.queryAndCheckError(Documents.MapWeb, { uri: uri, allowedPaths: allowedPaths, excludedPaths: excludedPaths, correlationId: correlationId });
|
@@ -548,6 +553,11 @@ class Graphlit {
|
|
548
553
|
return this.queryAndCheckError(Documents.QueryFeeds, { filter: filter });
|
549
554
|
});
|
550
555
|
}
|
556
|
+
feedExists(filter) {
|
557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
558
|
+
return this.queryAndCheckError(Documents.FeedExists, { filter: filter });
|
559
|
+
});
|
560
|
+
}
|
551
561
|
isFeedDone(id) {
|
552
562
|
return __awaiter(this, void 0, void 0, function* () {
|
553
563
|
return this.queryAndCheckError(Documents.IsFeedDone, { id: id });
|
@@ -568,6 +578,11 @@ class Graphlit {
|
|
568
578
|
return this.mutateAndCheckError(Documents.UpdateSpecification, { specification: specification });
|
569
579
|
});
|
570
580
|
}
|
581
|
+
upsertSpecification(specification) {
|
582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
583
|
+
return this.mutateAndCheckError(Documents.UpsertSpecification, { specification: specification });
|
584
|
+
});
|
585
|
+
}
|
571
586
|
deleteSpecification(id) {
|
572
587
|
return __awaiter(this, void 0, void 0, function* () {
|
573
588
|
return this.mutateAndCheckError(Documents.DeleteSpecification, { id: id });
|
@@ -593,6 +608,11 @@ class Graphlit {
|
|
593
608
|
return this.queryAndCheckError(Documents.QuerySpecifications, { filter: filter });
|
594
609
|
});
|
595
610
|
}
|
611
|
+
specificationExists(filter) {
|
612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
613
|
+
return this.queryAndCheckError(Documents.SpecificationExists, { filter: filter });
|
614
|
+
});
|
615
|
+
}
|
596
616
|
queryModels(filter) {
|
597
617
|
return __awaiter(this, void 0, void 0, function* () {
|
598
618
|
return this.queryAndCheckError(Documents.QueryModels, { filter: filter });
|
@@ -608,6 +628,11 @@ class Graphlit {
|
|
608
628
|
return this.mutateAndCheckError(Documents.UpdateWorkflow, { workflow: workflow });
|
609
629
|
});
|
610
630
|
}
|
631
|
+
upsertWorkflow(workflow) {
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
633
|
+
return this.mutateAndCheckError(Documents.UpsertWorkflow, { workflow: workflow });
|
634
|
+
});
|
635
|
+
}
|
611
636
|
deleteWorkflow(id) {
|
612
637
|
return __awaiter(this, void 0, void 0, function* () {
|
613
638
|
return this.mutateAndCheckError(Documents.DeleteWorkflow, { id: id });
|
@@ -633,6 +658,11 @@ class Graphlit {
|
|
633
658
|
return this.queryAndCheckError(Documents.QueryWorkflows, { filter: filter });
|
634
659
|
});
|
635
660
|
}
|
661
|
+
workflowExists(filter) {
|
662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
663
|
+
return this.queryAndCheckError(Documents.WorkflowExists, { filter: filter });
|
664
|
+
});
|
665
|
+
}
|
636
666
|
createUser(user) {
|
637
667
|
return __awaiter(this, void 0, void 0, function* () {
|
638
668
|
return this.mutateAndCheckError(Documents.CreateUser, { user: user });
|
@@ -678,6 +708,11 @@ class Graphlit {
|
|
678
708
|
return this.mutateAndCheckError(Documents.UpdateCategory, { category: category });
|
679
709
|
});
|
680
710
|
}
|
711
|
+
upsertCategory(category) {
|
712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
713
|
+
return this.mutateAndCheckError(Documents.UpsertCategory, { category: category });
|
714
|
+
});
|
715
|
+
}
|
681
716
|
deleteCategory(id) {
|
682
717
|
return __awaiter(this, void 0, void 0, function* () {
|
683
718
|
return this.mutateAndCheckError(Documents.DeleteCategory, { id: id });
|
@@ -713,6 +748,11 @@ class Graphlit {
|
|
713
748
|
return this.mutateAndCheckError(Documents.UpdateLabel, { label: label });
|
714
749
|
});
|
715
750
|
}
|
751
|
+
upsertLabel(label) {
|
752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
753
|
+
return this.mutateAndCheckError(Documents.UpsertLabel, { label: label });
|
754
|
+
});
|
755
|
+
}
|
716
756
|
deleteLabel(id) {
|
717
757
|
return __awaiter(this, void 0, void 0, function* () {
|
718
758
|
return this.mutateAndCheckError(Documents.DeleteLabel, { id: id });
|
@@ -16,6 +16,7 @@ export declare const DeleteCategory: import("graphql").DocumentNode;
|
|
16
16
|
export declare const GetCategory: import("graphql").DocumentNode;
|
17
17
|
export declare const QueryCategories: import("graphql").DocumentNode;
|
18
18
|
export declare const UpdateCategory: import("graphql").DocumentNode;
|
19
|
+
export declare const UpsertCategory: import("graphql").DocumentNode;
|
19
20
|
export declare const AddContentsToCollections: import("graphql").DocumentNode;
|
20
21
|
export declare const CountCollections: import("graphql").DocumentNode;
|
21
22
|
export declare const CreateCollection: import("graphql").DocumentNode;
|
@@ -88,6 +89,7 @@ export declare const DeleteFeed: import("graphql").DocumentNode;
|
|
88
89
|
export declare const DeleteFeeds: import("graphql").DocumentNode;
|
89
90
|
export declare const DisableFeed: import("graphql").DocumentNode;
|
90
91
|
export declare const EnableFeed: import("graphql").DocumentNode;
|
92
|
+
export declare const FeedExists: import("graphql").DocumentNode;
|
91
93
|
export declare const GetFeed: import("graphql").DocumentNode;
|
92
94
|
export declare const GetSharePointConsentUri: import("graphql").DocumentNode;
|
93
95
|
export declare const IsFeedDone: import("graphql").DocumentNode;
|
@@ -108,6 +110,7 @@ export declare const DeleteLabels: import("graphql").DocumentNode;
|
|
108
110
|
export declare const GetLabel: import("graphql").DocumentNode;
|
109
111
|
export declare const QueryLabels: import("graphql").DocumentNode;
|
110
112
|
export declare const UpdateLabel: import("graphql").DocumentNode;
|
113
|
+
export declare const UpsertLabel: import("graphql").DocumentNode;
|
111
114
|
export declare const CountMedicalConditions: import("graphql").DocumentNode;
|
112
115
|
export declare const CreateMedicalCondition: import("graphql").DocumentNode;
|
113
116
|
export declare const DeleteAllMedicalConditions: import("graphql").DocumentNode;
|
@@ -196,6 +199,7 @@ export declare const DeleteMedicalTherapy: import("graphql").DocumentNode;
|
|
196
199
|
export declare const GetMedicalTherapy: import("graphql").DocumentNode;
|
197
200
|
export declare const QueryMedicalTherapies: import("graphql").DocumentNode;
|
198
201
|
export declare const UpdateMedicalTherapy: import("graphql").DocumentNode;
|
202
|
+
export declare const SendNotification: import("graphql").DocumentNode;
|
199
203
|
export declare const CreateObservation: import("graphql").DocumentNode;
|
200
204
|
export declare const DeleteObservation: import("graphql").DocumentNode;
|
201
205
|
export declare const UpdateObservation: import("graphql").DocumentNode;
|
@@ -264,7 +268,9 @@ export declare const GetSpecification: import("graphql").DocumentNode;
|
|
264
268
|
export declare const PromptSpecifications: import("graphql").DocumentNode;
|
265
269
|
export declare const QueryModels: import("graphql").DocumentNode;
|
266
270
|
export declare const QuerySpecifications: import("graphql").DocumentNode;
|
271
|
+
export declare const SpecificationExists: import("graphql").DocumentNode;
|
267
272
|
export declare const UpdateSpecification: import("graphql").DocumentNode;
|
273
|
+
export declare const UpsertSpecification: import("graphql").DocumentNode;
|
268
274
|
export declare const CountUsers: import("graphql").DocumentNode;
|
269
275
|
export declare const CreateUser: import("graphql").DocumentNode;
|
270
276
|
export declare const DeleteUser: import("graphql").DocumentNode;
|
@@ -281,3 +287,5 @@ export declare const DeleteWorkflows: import("graphql").DocumentNode;
|
|
281
287
|
export declare const GetWorkflow: import("graphql").DocumentNode;
|
282
288
|
export declare const QueryWorkflows: import("graphql").DocumentNode;
|
283
289
|
export declare const UpdateWorkflow: import("graphql").DocumentNode;
|
290
|
+
export declare const UpsertWorkflow: import("graphql").DocumentNode;
|
291
|
+
export declare const WorkflowExists: import("graphql").DocumentNode;
|