graphlit-client 1.0.20240505002 → 1.0.20240506001
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 +3 -2
- package/dist/client.js +7 -4
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -9,6 +9,7 @@ declare class Graphlit {
|
|
9
9
|
private ownerId;
|
10
10
|
private jwtSecret;
|
11
11
|
constructor(organizationId?: string, environmentId?: string, jwtSecret?: string, ownerId?: string, apiUri?: string);
|
12
|
+
testCall(): void;
|
12
13
|
refreshClient(): void;
|
13
14
|
private generateToken;
|
14
15
|
getProject(): Promise<Types.GetProjectQuery>;
|
@@ -26,8 +27,8 @@ declare class Graphlit {
|
|
26
27
|
disableAlert(id: string): Promise<Types.DisableAlertMutation>;
|
27
28
|
getAlert(id: string): Promise<Types.GetAlertQuery>;
|
28
29
|
queryAlerts(filter?: Types.AlertFilter): Promise<Types.QueryAlertsQuery>;
|
29
|
-
createCollection(
|
30
|
-
updateCollection(
|
30
|
+
createCollection(collection: Types.CollectionInput): Promise<Types.CreateCollectionMutation>;
|
31
|
+
updateCollection(collection: Types.CollectionUpdateInput): Promise<Types.UpdateCollectionMutation>;
|
31
32
|
deleteCollection(id: string): Promise<Types.DeleteCollectionMutation>;
|
32
33
|
deleteCollections(): Promise<Types.DeleteCollectionsMutation>;
|
33
34
|
deleteAllCollections(): Promise<Types.DeleteAllCollectionsMutation>;
|
package/dist/client.js
CHANGED
@@ -67,6 +67,9 @@ class Graphlit {
|
|
67
67
|
}
|
68
68
|
this.refreshClient();
|
69
69
|
}
|
70
|
+
testCall() {
|
71
|
+
this.createCollection({ name: "Dinner Table Sessions" });
|
72
|
+
}
|
70
73
|
refreshClient() {
|
71
74
|
this.client = undefined;
|
72
75
|
this.generateToken();
|
@@ -185,14 +188,14 @@ class Graphlit {
|
|
185
188
|
return this.queryAndCheckError(Documents.QueryAlerts, { filter: filter });
|
186
189
|
});
|
187
190
|
}
|
188
|
-
createCollection(
|
191
|
+
createCollection(collection) {
|
189
192
|
return __awaiter(this, void 0, void 0, function* () {
|
190
|
-
return this.mutateAndCheckError(Documents.CreateCollection, {
|
193
|
+
return this.mutateAndCheckError(Documents.CreateCollection, { collection: collection });
|
191
194
|
});
|
192
195
|
}
|
193
|
-
updateCollection(
|
196
|
+
updateCollection(collection) {
|
194
197
|
return __awaiter(this, void 0, void 0, function* () {
|
195
|
-
return this.mutateAndCheckError(Documents.UpdateCollection, {
|
198
|
+
return this.mutateAndCheckError(Documents.UpdateCollection, { collection: collection });
|
196
199
|
});
|
197
200
|
}
|
198
201
|
deleteCollection(id) {
|