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 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(Collection: Types.CollectionInput): Promise<Types.CreateCollectionMutation>;
30
- updateCollection(Collection: Types.CollectionUpdateInput): Promise<Types.UpdateCollectionMutation>;
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(Collection) {
191
+ createCollection(collection) {
189
192
  return __awaiter(this, void 0, void 0, function* () {
190
- return this.mutateAndCheckError(Documents.CreateCollection, { Collection: Collection });
193
+ return this.mutateAndCheckError(Documents.CreateCollection, { collection: collection });
191
194
  });
192
195
  }
193
- updateCollection(Collection) {
196
+ updateCollection(collection) {
194
197
  return __awaiter(this, void 0, void 0, function* () {
195
- return this.mutateAndCheckError(Documents.UpdateCollection, { Collection: Collection });
198
+ return this.mutateAndCheckError(Documents.UpdateCollection, { collection: collection });
196
199
  });
197
200
  }
198
201
  deleteCollection(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240505002",
3
+ "version": "1.0.20240506001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",