graphlit-client 1.0.20240505002 → 1.0.20240506002
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 +2 -2
- package/dist/client.js +4 -4
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -26,8 +26,8 @@ declare class Graphlit {
|
|
26
26
|
disableAlert(id: string): Promise<Types.DisableAlertMutation>;
|
27
27
|
getAlert(id: string): Promise<Types.GetAlertQuery>;
|
28
28
|
queryAlerts(filter?: Types.AlertFilter): Promise<Types.QueryAlertsQuery>;
|
29
|
-
createCollection(
|
30
|
-
updateCollection(
|
29
|
+
createCollection(collection: Types.CollectionInput): Promise<Types.CreateCollectionMutation>;
|
30
|
+
updateCollection(collection: Types.CollectionUpdateInput): Promise<Types.UpdateCollectionMutation>;
|
31
31
|
deleteCollection(id: string): Promise<Types.DeleteCollectionMutation>;
|
32
32
|
deleteCollections(): Promise<Types.DeleteCollectionsMutation>;
|
33
33
|
deleteAllCollections(): Promise<Types.DeleteAllCollectionsMutation>;
|
package/dist/client.js
CHANGED
@@ -185,14 +185,14 @@ class Graphlit {
|
|
185
185
|
return this.queryAndCheckError(Documents.QueryAlerts, { filter: filter });
|
186
186
|
});
|
187
187
|
}
|
188
|
-
createCollection(
|
188
|
+
createCollection(collection) {
|
189
189
|
return __awaiter(this, void 0, void 0, function* () {
|
190
|
-
return this.mutateAndCheckError(Documents.CreateCollection, {
|
190
|
+
return this.mutateAndCheckError(Documents.CreateCollection, { collection: collection });
|
191
191
|
});
|
192
192
|
}
|
193
|
-
updateCollection(
|
193
|
+
updateCollection(collection) {
|
194
194
|
return __awaiter(this, void 0, void 0, function* () {
|
195
|
-
return this.mutateAndCheckError(Documents.UpdateCollection, {
|
195
|
+
return this.mutateAndCheckError(Documents.UpdateCollection, { collection: collection });
|
196
196
|
});
|
197
197
|
}
|
198
198
|
deleteCollection(id) {
|